re PR debug/47590 (pragma optimize doesn't recompute derived options (was: var tracki...
[gcc.git] / gcc / ChangeLog
1 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2
3 PR debug/47590
4 * target.def (delay_sched2, delay_vartrack): New.
5 * doc/tm.texi.in: Update.
6 * doc/tm.texi: Rebuild.
7 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
8 * var-tracking.c (gate_handle_var_tracking): Likewise.
9 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
10 (bfin_flag_var_tracking): Drop.
11 (output_file_start): Don't save and override flag_var_tracking.
12 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
13 (bfin_reorg): Test original variables.
14 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
16 (ia64_flag_var_tracking): Drop.
17 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
18 (ia64_file_start): Don't save and override flag_var_tracking.
19 (ia64_override_options_after_change): Ditto
20 flag_schedule_insns_after_reload.
21 (ia64_reorg): Test original variables.
22 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
23 (picochip_flag_var_tracking): Drop.
24 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
25 (picochip_option_override): Don't save and override
26 flag_schedule_insns_after_reload.
27 (picochip_asm_file_start): Ditto flag_var_tracking.
28 (picochip_reorg): Test original variables.
29 * config/spu/spu.c (spu_flag_var_tracking): Drop.
30 (TARGET_DELAY_VARTRACK): Define.
31 (spu_var_tracking): New.
32 (spu_machine_dependent_reorg): Call it.
33 (asm_file_start): Don't save and override flag_var_tracking.
34
35 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
36
37 PR target/49163
38 * config/sh/predicates.md (general_movsrc_operand): Return 0
39 for memory and memory subreg of which address is an invalid
40 indexed address for QI and HImode.
41 (general_movdst_operand): Likewise.
42
43 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
44
45 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
46 edges only, when there is a non-local label in the function.
47 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
48
49 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
50
51 * config/i386/constraints.md (Y3): New register constraint.
52 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
53 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
54 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
55 *sse2_interleave_lowv2df.
56
57 2011-06-02 Julian Brown <julian@codesourcery.com>
58
59 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
60 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
61 (arm_cortex_a5_tune): New.
62
63 2011-06-02 Julian Brown <julian@codesourcery.com>
64
65 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
66 * config/arm/arm.c (arm_default_branch_cost): New.
67 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
68 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
69 (arm_fa726_tune): Set branch_cost field using
70 arm_default_branch_cost.
71 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
72 current_tune structure.
73 * dojump.c (tm_p.h): Include file.
74
75 2011-06-02 Julian Brown <julian@codesourcery.com>
76
77 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
78 tuning.
79 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
80 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
81 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
82 field.
83 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
84 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
85 (arm_fa726te_tune): Add prefer_constant_pool setting.
86 (arm_v6t2_tune, arm_cortex_tune): New.
87 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
88 prefer_constant_pool setting.
89
90 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
91
92 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
93 switch statement.
94 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
95 (*movdf_internal) <case 6,7,8>: Ditto.
96
97 * config/i386/constraints.md (Y4): New register constraint.
98 * config/i386/sse.md (vec_set<mode>_0): Merge with
99 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
100 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
101 *vec_extractv2di_1_sse.
102 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
103 and *vec_concatv2di_rex64_sse.
104
105 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
106
107 PR target/48807
108 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
109 of cgraph_local_info for null before attempting to use it.
110
111 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
112
113 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
114 (current_function_dynamic_alloc_count): Delete.
115 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
116 (expand_builtin_nonlocal_goto): Remove obsolete comment.
117 (expand_builtin_update_setjmp_buf): Remove dead code.
118 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
119 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
120 support.
121 * function.c (instantiate_virtual_regs): Likewise.
122 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
123 for a block with a single abnormal incoming edge.
124 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
125 (SETJMP_VIA_SAVE_AREA): Delete.
126 * config/sparc/sparc-protos.h (load_got_register): Declare.
127 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
128 (load_got_register): Make global.
129 (sparc_frame_pointer_required): Add 'static'.
130 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
131 (sparc_builtin_setjmp_frame_value): New function.
132 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
133 (save_stack_nonlocal): New expander.
134 (restore_stack_nonlocal): Likewise.
135 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
136 (nonlocal_goto_internal): New insn.
137 (goto_handler_and_restore): Delete.
138 (builtin_setjmp_setup): Likewise.
139 (do_builtin_setjmp_setup): Likewise.
140 (setjmp): Likewise.
141 (builtin_setjmp_receiver): New expander.
142
143 2011-06-01 David Li <davidxl@google.com>
144
145 PR middle-end/49261
146 * tree-pretty-print.c (dump_function_header): Format cleanup.
147
148 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
149
150 PR target/49238
151 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
152 needed when original operands are used for msw_skip comparison.
153
154 2011-06-01 Jakub Jelinek <jakub@redhat.com>
155
156 PR debug/49250
157 * var-tracking.c (add_uses, add_stores): Don't call
158 cselib_subst_to_values on ENTRY_VALUE.
159
160 2011-06-01 Diego Novillo <dnovillo@google.com>
161
162 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
163 output_record_start with LTO_null instead of output_zero.
164 (lto_output_ts_binfo_tree_pointers): Likewise.
165 (lto_output_tree): Likewise.
166 (output_eh_try_list): Likewise.
167 (output_eh_region): Likewise.
168 (output_eh_lp): Likewise.
169 (output_eh_regions): Likewise.
170 (output_bb): Likewise.
171 (output_function): Likewise.
172 (output_unreferenced_globals): Likewise.
173 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
174 instead of NUM_TREE_CODES.
175 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
176 (lto_output_int_in_range): Change << to >> when shifting VAL.
177
178 2011-06-01 Diego Novillo <dnovillo@google.com>
179
180 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
181 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
182
183 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
184
185 PR target/45074
186 * optabs.h (valid_multiword_target_p): Declare.
187 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
188 doing multi-word operations.
189 * optabs.c (expand_binop): Likewise.
190 (expand_doubleword_bswap): Likewise.
191 (expand_absneg_bit): Likewise.
192 (expand_unop): Likewise.
193 (expand_copysign_bit): Likewise.
194 (multiword_target_p): New function.
195
196 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
197
198 PR rtl-optimization/48830
199 PR rtl-optimization/48808
200 PR rtl-optimization/48792
201 * reload.c (push_reload): Check contains_reg_of_mode.
202 * reload1.c (strip_paradoxical_subreg): New function.
203 (gen_reload_chain_without_interm_reg_p): Use it to handle
204 paradoxical subregs.
205 (emit_output_reload_insns, gen_reload): Likewise.
206
207 2011-06-01 David Li <davidxl@google.com>
208
209 * predict.c : Change pass name
210 * ipa.c: Ditto.
211 * dce.c: Ditto.
212 * tree-profile.c: Ditto.
213 * except.c: Ditto.
214
215 2011-06-01 David Li <davidxl@google.com>
216
217 * tree-pretty-print.c (dump_function_header): New function.
218 * final.c (rest_of_clean_state): Use header dumper.
219 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
220 * passes.c (pass_init_dump_file): Use header dumper.
221
222 2011-06-01 Jakub Jelinek <jakub@redhat.com>
223
224 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
225 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
226 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
227 New functions.
228 (mem_loc_descriptor): Use them.
229
230 * var-tracking.c (create_entry_value): New function.
231 (vt_add_function_parameter): Use it.
232
233 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
234
235 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
236 Include <signal.h>, <ucontext.h>.
237 (sigill_caught): Define.
238 (sigill_hdlr): New function.
239 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
240 insns can be executed.
241 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
242 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
243
244 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
245
246 * config/t-slibgcc-darwin: Move to ...
247 * config/t-slibgcc-dummy: ... this. Clarify comments.
248 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
249 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
250 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
251 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
252 Remove i386/t-crtstuff from tmake_file.
253 (i[34567]86-*-solaris2*): Remove t-svr4,
254 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
255 t-slibgcc-dummy.
256 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
257 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
258 sparc/t-crtfm from tmake_file.
259 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
260 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
261 Remove extra_parts.
262 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
263 * config/i386/t-nwld (SHLIB_LINK): Remove.
264 * config/i386/t-rtems-i386: Rename to ...
265 * config/i386/t-rtems: ... this.
266 ($(T)crti.o, $(T)crtn.o): Remove.
267 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
268 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
269 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
270 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
271 EXTRA_MULTILIB_PARTS): Remove.
272 * config/sparc/t-sol2-64: Likewise.
273 * config/sparc/t-sol2: Remove.
274 * config/sparc/t-crtin: Remove.
275 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
276 * config/i386/gmon-sol2.c: Remove.
277 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
278 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
279 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
280 * config/i386/sol2-gc1.asm: Remove.
281 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
282 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
283 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
284 * config/t-slibgcc-sld: Remove.
285
286 2011-06-01 Jakub Jelinek <jakub@redhat.com>
287
288 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
289 base_type_for_mode with op_mode instead of mode.
290
291 2011-06-01 Paul Brook <paul@cpodesourcery.com>
292
293 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
294 Cortex-A15.
295 * config/arm/arm-tune.md: Regenerate.
296 * config/arm/arm-tables.opt: Regenerate.
297 * config/arm/arm.c (FL_DIV): Rename...
298 (FL_THUMB_DIV): ... to this.
299 (FL_ARM_DIV): Define.
300 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
301 (arm_arch_hwdiv): Remove.
302 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
303 (arm_issue_rate): Add cortexr5.
304 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
305 __ARM_ARCH_EXT_IDIV__.
306 (TARGET_IDIV): Define.
307 (arm_arch_hwdiv): Remove.
308 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
309 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
310 (divsi3, udivsi3): New patterns.
311 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
312 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
313
314 2011-06-01 Martin Jambor <mjambor@suse.cz>
315
316 * ipa-utils.c (ipa_dfs_info): New field scc_no.
317 * ipa-utils.c (searchc): Set scc_no.
318
319 2011-06-01 Martin Jambor <mjambor@suse.cz>
320
321 * ipa-utils.c (searchc_env): New field allow_overwritable.
322 (searchc): do not ignore edges to overwritable nodes if indicated
323 by env->allow_overwritable.
324 (ipa_reduced_postorder): Set env.allow_overwritable.
325
326 2011-06-01 Richard Guenther <rguenther@suse.de>
327
328 * tree.c (free_lang_data): Do not reset boolean_type_node nor
329 char_type_node.
330 * lto-streamer.c (lto_record_common_node): Take node pointer,
331 do not register types.
332 (lto_preload_common_nodes): Explicitly skip preloading nodes
333 that differ between frontends.
334
335 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
336
337 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
338 NON_FLOAT_REGS.
339
340 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
341
342 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
343 parameter value for dump. Dump cost on outermost call only.
344 (rs6000_memory_move_cost): Dump cost on outermost call only.
345
346 2011-05-31 Jakub Jelinek <jakub@redhat.com>
347
348 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
349 DW_OP_GNU_convert ops.
350
351 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
352 cselib_preserve_constants.
353 (cselib_lookup_1): If cselib_preserve_constants,
354 a new VALUE is being created for REG and there is a VALUE for the
355 same register in wider mode, add another loc with lowpart SUBREG of
356 the wider VALUE.
357 (cselib_subst_to_values): Handle ENTRY_VALUE.
358 * var-tracking.c (replace_expr_with_values): Return NULL for
359 ENTRY_VALUE too.
360 * dwarf2out.c (convert_descriptor_to_signed): New function.
361 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
362 instead of two shifts.
363 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
364 the right mode if needed.
365 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
366 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
367 convert_descriptor_to_signed.
368 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
369 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
370
371 PR target/48688
372 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
373
374 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
375
376 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
377 of X87MODEI12 and SWI48x instead of SSEMODEI24.
378 (SWI248x): New mode iterator, rename from X87MODEI.
379 (X87MODEI): Remove mode iterator.
380 (X87MODEI12): Ditto.
381 (SSEMODEI24): Ditto.
382
383 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
384
385 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
386 * doc/invoke.texi: Document max-vartrack-expr-depth.
387 * var-tracking.c (EXPR_DEPTH): New.
388 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
389
390 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
391
392 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
393 * config/i386/sse.md: Add n to negated FMA pattern names.
394
395 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
396
397 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
398
399 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
400
401 * gengtype-state.c (read_state_params_structs): Initialize previous.
402
403 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
404
405 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
406 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
407
408 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
409
410 * config/i386/i386.md (*movtf_internal): Avoid allocating general
411 registers. Penalize F*r->o alternative to prevent partial memory
412 stalls. Slightly penalize *roF->*r alternative. Generate SSE
413 CONST_DOUBLE immediates when optimizing function for size. Do not move
414 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
415 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
416 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
417 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
418 alternatives.
419 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
420
421 (fp_register_operand splitters): Use fp_register_operand
422 constraint. Do not use FP_REG_P in insn condition.
423 (any_fp_register_operand splitters): Use any_fp_register_operand
424 constraint. Do not use ANY_FP_REG_P in insn condition.
425
426 2011-05-31 Jan Hubicka <jh@suse.cz>
427
428 * cgraph.h (cgraph_inline_failed_t): Give enum a name
429 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
430 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
431 (lto_output_edge): Use output_enum and var_len_unsigned.
432 (lto_output_varpool_node): Likewise.
433 (input_overwrite_node): Do not take resolution parameter;
434 extract it from a bitpack.
435 (input_node): Do not read resolution; use input_enum and
436 var_len_unsigned.
437 (input_varpool_node): Likewise.
438 (input_edge): Likewise.
439 (input_cgraph_1): Likewise.
440
441 2011-05-31 Richard Guenther <rguenther@suse.de>
442
443 * gimple.c (gimple_register_canonical_type): Do not register
444 any types via gimple_register_type.
445
446 2011-05-31 Jan Hubicka <jh@suse.cz>
447
448 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
449 of thunks.
450
451 2011-05-31 Jakub Jelinek <jakub@redhat.com>
452
453 PR rtl-optimization/49235
454 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
455 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
456
457 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
458
459 PR tree-optimization/49093
460 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
461 data references.
462
463 2011-05-31 Dodji Seketeli <dodji@redhat.com>
464
465 PR debug/49047
466 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
467 for concrete functions containing the code of cloned functions.
468
469 2011-05-31 Richard Guenther <rguenther@suse.de>
470
471 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
472 to ...
473 (forward_propagate_into_comparison_1): ... this.
474 (forward_propagate_comparison): Rename to ...
475 (forward_propagate_into_comparison): ... this. Split out
476 real forward propagation code to ...
477 (forward_propagate_comparison): ... this.
478 (forward_propagate_into_gimple_cond): Remove looping.
479 (forward_propagate_into_cond): Likewise.
480 (simplify_not_neg_expr): Return whether we have done something.
481 (simplify_gimple_switch): Likewise.
482 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
483 (ssa_forward_propagate_and_combine): ... this. Re-structure
484 to do a forward forward-propagation walk on BBs and a backward
485 stmt combining walk on BBs. Consistently re-scan changed statements.
486 (pass_forwprop): Adjust.
487
488 2011-05-30 Ian Lance Taylor <iant@google.com>
489
490 * godump.c (go_format_type): Correct length of name added to
491 obstack for anonymous field.
492
493 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
494
495 PR target/49186
496 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
497 part of the second operand is 0.
498
499 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
500
501 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
502 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
503 to memory for !TARGET_MEMORY_MISMATCH_STALL.
504 (*movdf_internal_rex64): Do not penalize F->r alternative.
505 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
506 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
507 when optimizing function for size. Do not move CONST_DOUBLEs
508 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
509 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
510 SUBREGs. Do not check for MEM_P operands in the insn condition,
511 check for ANY_FP_REGNO_P instead.
512 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
513 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
514 function for speed.
515 * config/i386/i386.c (ix86_option_override_internal): Do not
516 set TARGET_INTEGER_DFMODE_MOVES here.
517
518 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
519
520 PR target/49168
521 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
522
523 2011-05-30 Jakub Jelinek <jakub@redhat.com>
524
525 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
526 DW_TAG_rvalue_reference_type even for
527 -gdwarf-4 -fno-debug-types-section.
528
529 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
530
531 PR tree-optimization/46728
532 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
533 (build_and_insert_binop): New.
534 (gimple_expand_builtin_pow): Reorder args for
535 build_and_insert_call; use build_and_insert_binop; add more
536 optimizations for fractional exponents.
537
538 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
539
540 PR bootstrap/49190
541
542 Revert:
543 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
544
545 * tree.h (struct tree_identifier): Inherit from tree_typed, not
546 tree_common.
547 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
548 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
549 TS_BASE instead of TS_COMMON.
550 * varasm.c (assemble_name): Remove assert.
551
552 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
553
554 * config.gcc: Keep obselete list sorted.
555
556 2011-05-30 Jakub Jelinek <jakub@redhat.com>
557 Eric Botcazou <ebotcazou@adacore.com>
558
559 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
560 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
561 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
562 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
563 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
564
565 2011-05-30 Richard Guenther <rguenther@suse.de>
566
567 * gimple.c (gimple_types_compatible_p_1): Compare record
568 and union type members properly.
569
570 2011-05-30 Richard Guenther <rguenther@suse.de>
571
572 PR tree-optimization/49210
573 * ipa-split.c (split_function): Care for the case where the call
574 result is not trivially convertible to the result holding variable.
575
576 2011-05-30 Richard Guenther <rguenther@suse.de>
577
578 PR tree-optimization/49218
579 * tree-vrp.c (adjust_range_with_scev): Properly check whether
580 overflow occured.
581
582 2011-05-30 Richard Guenther <rguenther@suse.de>
583
584 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
585 New function split out from ...
586 (forward_propagate_into_gimple_cond): ... here. Adjust.
587 (forward_propagate_into_cond): Likewise.
588 (forward_propagate_comparison): Also propagate into
589 comparisons on assignment RHS. Change return value to
590 behave similar to forward_propagate_into_cond.
591 (tree_ssa_forward_propagate_single_use_vars): Handle
592 strict-overflow warnings properly for forward_propagate_comparison.
593
594 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
595
596 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
597 from plugin linker.
598 * configure: Regenerate.
599
600 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
601
602 PR tree-optimization/49199
603 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
604 non-reduction operands are either defined in the loop or by induction.
605
606 2011-05-29 Xinliang David Li <davidxl@google.com>
607
608 * opts-global.c (handle_common_deferred_options): Handle new options.
609 * passes.c (register_one_dump_file): Call register_pass_name.
610 (execute_one_pass): Check explicit enable/disable flag.
611 (passr_hash): New function.
612 (passr_eq): Ditto.
613 (register_pass_name): Ditto.
614 (get_pass_by_name): Ditto.
615 (pass_hash): Ditto.
616 (pass_eq): Ditto.
617 (enable_pass): Ditto.
618 (disable_pass): Ditto.
619 (is_pass_explicitly_enabled_or_disabled): Ditto.
620
621 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
622
623 * config/i386/i386.md (*movoi_internal_avx): Use
624 standard_sse_constant_opcode for alternative 0.
625 (*movti_internal_sse): Ditto.
626 (*movti_internal_rex64): Use standard_sse_constant_opcode for
627 alternative 2.
628 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
629 sselog1 type moves.
630 (*movsi_internal): Ditto.
631 (*movdi_internal): Ditto. Add ssecvt type moves.
632
633 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
634
635 PR target/48830
636 * rtlanal.c (simplify_subreg_regno): Adjust comment.
637
638 2011-05-29 Jakub Jelinek <jakub@redhat.com>
639
640 PR rtl-optimization/49095
641 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
642 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
643
644 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
645
646 PR target/43995
647 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
648 recurse_p argument. Only follow register copies if it is set,
649 and prevent mips_find_pic_call_symbol from recursing.
650 (mips_find_pic_call_symbol): Add a recurse_p argument.
651 Pass it to mips_pic_call_symbol_from_set.
652 (mips_annotate_pic_calls): Update accordingly.
653
654 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
655
656 * emit-rtl.c (try_split): Use a loop to search for
657 NOTE_INSN_CALL_ARG_LOCATIONs.
658
659 2011-05-29 Richard Guenther <rguenther@suse.de>
660
661 PR tree-optimization/49217
662 * ipa-pure-const.c (propagate_pure_const): Fix typos.
663
664 2011-05-28 Jan Hubicka <jh@suse.cz>
665
666 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
667 length.
668 (string_slot_free): Remove
669 (create_output_block): Initialize obstack.
670 (destroy_output_block): Free obstack.
671 (lto_string_index): Add PERSISTENT parameter; do not duplicate
672 the string unless it needs to be added into the hash.
673 (lto_output_string_with_length): Add persistent attribute;
674 handle NULL strings.
675 (lto_output_string): Add PERSISTENT parameter.
676 (output_string_cst, output_identifier): Simplify.
677 (lto_output_location_bitpack): Update.
678 (lto_output_builtin_tree): Update.
679 * lto-streamer.h (struct output_block): Add obstack.
680 (lto_output_string, lto_output_string_with_length): Remove
681 declarations; functions are static now.
682
683 2011-05-28 Jan Hubicka <jh@suse.cz>
684
685 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
686 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
687 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
688 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
689 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
690 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
691 unpack_ts_decl_with_vis_value_fields,
692 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
693 lto_get_builtin_tree): Use enum and variable length i/o.
694 * basic-block.h (profile_status_d): Add PROFILE_LAST.
695 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
696 New functions.
697 (bp_pack_enum, bp_unpack_enum): New macros.
698
699 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
700
701 * genrecog.c: Remove redundant forward declarations.
702
703 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
704
705 * config.gcc: Deprecate mips*-*-openbsd*.
706
707 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
708
709 PR bootstrap/49195
710 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
711 for match_op_dup.
712
713 2011-05-27 Andrew Pinski <pinskia@gmail.com>
714
715 PR middle-end/48981
716 * gengtype.c (vec_prefix_type): New function.
717 (note_def_vec): Use vec_prefix_type and change the length
718 attribute to be based on the prefix.
719 * vec.c: Include coretypes.h before vec.h.
720 (struct vec_prefix): Remove.
721 (vec_gc_p_reserve): Change the offsetof to sizeof.
722 (vec_gc_p_reserve_exact): Likewise.
723 (vec_heap_p_reserve): Likewise.
724 (vec_heap_p_reserve_exact): Likewise.
725 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
726 (vec_stack_p_reserve): Change the offsetof to sizeof.
727 (vec_stack_p_reserve_exact): Likewise.
728 * vec.h (struct vec_prefix): New struct definition.
729 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
730 (VEC_T_GTY(T,B)): Likewise.
731 (DEF_VEC_FUNC_P(T)): Use prefix field.
732 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
733 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
734
735 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
736
737 PR tree-optimization/46728
738 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
739 (powi_as_mults): Add gimple_set_location.
740 (build_and_insert_call): New.
741 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
742 0.5, 0.25, 0.75, 1./3., or 1./6.
743
744 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
745
746 * doc/contrib.texi: Update copyright years.
747 (Contributors): Add Zdenek Sojka.
748
749 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
750
751 * c-decl.c (c_push_function_context): Copy the current statement
752 list stack.
753 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
754 (finish_struct): Call building_stmt_list_p instead of checking
755 cur_stmt_list.
756 * c-parser.c (c_parser_postfix_expression): Likewise.
757 * c-typeck.c (c_end_compound_stmt): Likewise.
758 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
759 * tree-iterator.c (stmt_list_cache): Change to a VEC.
760 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
761 (free_stmt_list): Likewise.
762 * tree.h (struct tree_statement_list): Include typed_tree instead
763 of tree_common.
764 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
765 as TS_TYPED instead of TS_COMMON.
766
767 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
768 Uros Bizjak <ubizjak@gmail.com>
769
770 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
771 (HAVE_AS_IX86_TLSGDPTL): Define.
772 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
773 (HAVE_AS_IX86_TLSLDMPLT): Define.
774 * configure: Regenerate.
775 * config.in: Regenerate.
776 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
777 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
778 TARGET_SUN_TLS, use @tlsgdplt or @plt.
779 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
780 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
781 @tlsldmplt or @plt.
782 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
783
784 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
785
786 * sched-int.h (struct _haifa_deps_insn_data): New members cond
787 and reverse_cond.
788 (INSN_COND, INSN_REVERSE_COND): New macros.
789 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
790 once.
791 (sched_get_condition_with_rev): Cache the results, and look them up
792 if possible.
793 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
794 are clobbered by the current insn.
795 * target.def (exposed_pipline): New sched data hook.
796 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
797 * doc/tm.texi: Regenerate.
798
799 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
800
801 PR tree-optimization/49170
802 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
803 sincos or cexp.
804
805 2011-05-27 Richard Guenther <rguenther@suse.de>
806
807 PR middle-end/49189
808 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
809 of comparisons.
810
811 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
812
813 * haifa-sched.c (sched_scan_info): Remove.
814 (schedule_block): Call sched_extend_luids rather than sched_init_luids
815 with NULL args.
816 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
817 Remove functions.
818 (sched_scan): Remove.
819 (sched_extend_luids): Renamed from luids_extend_insn and no longer
820 static. All callers changed.
821 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
822 static. All callers changed.
823 (sched_init_luids): Remove all arguments except the first. All
824 callers changed. Don't use sched_scan.
825 (haifa_init_h_i_d): Likewise.
826 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
827 manually rather than using sched_init_luids. Likewise with
828 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
829 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
830 rather than sched_init_luids with NULL args.
831 * sel-sched-ir.c (new_insns): Remove variable.
832 (sched_scan): New static function, previously in haifa-sched.c. Remove
833 all arguments but the first two; all callers changed.
834 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
835 rather than sched_init_luids.
836 (sel_init_bbs): Remove second argument. All callers changed.
837 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
838 with NULL arguments.
839 (create_insn_rtx_from_pattern): Likewise.
840 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
841 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
842 (sched_init_insn_luid, sched_extend_luids): Declare.
843 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
844 declarations.
845
846 2011-05-27 Richard Guenther <rguenther@suse.de>
847
848 PR middle-end/49177
849 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
850 A CMP B ? (T) true : (T) false for non-integral types T again.
851
852 2011-05-27 Jan Hubicka <jh@suse.cz>
853
854 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
855 so 0 means NULL string.
856 (lto_output_string_with_length): ... here.
857 (lto_output_string, output_string_cst, output_identifier): Update
858 handling of NULL strings.
859 (lto_output_location_bitpack): New function.
860 (lto_output_location): Use it.
861 (lto_output_tree_ref): Use output_record_start.
862 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
863 len values.
864 * lto-streamer-in.c (string_for_index): Break out from ...; offset
865 values by 1.
866 (input_string_internal): ... here;
867 (input_string_cst, input_identifier, lto_input_string): Update handling
868 of NULL strings.
869 (lto_input_location_bitpack): New function
870 (lto_input_location): Use it.
871 (unpack_ts_type_common_value_fields): Pack align & alias in var len
872 values.
873 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
874 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
875 (bp_pack_value): Sanity check the value range.
876 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
877 New functions.
878 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
879 New functions.
880
881 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
882
883 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
884 call_arg_location instructions down the floor.
885
886 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
887
888 PR rtl-optimization/49154
889 * ira.c (setup_pressure_classes): Process class without sublcasses
890 as a candidate for pressure classes.
891
892 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
893
894 PR rtl-optimization/48575
895 * genrecog.c (position_type): New enum.
896 (position): New structure.
897 (decision): Use position structure instead of a string.
898 (root_pos, peep2_insn_pos_list): New variables.
899 (next_position, compare_positions): New functions.
900 (new_decision): Use position structures instead of strings.
901 (maybe_both_true): Likewise.
902 (change_state): Likewise.
903 (write_tree): Likewise.
904 (make_insn_sequence): Likewise.
905
906 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
907
908 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
909 TS_BASE instead of TS_COMMON.
910 (find_decls_types_r): Check for TS_TYPED structure before looking at
911 TREE_TYPE.
912 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
913 Add chain field.
914 (BLOCK_CHAIN): Use new chain field.
915
916 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
917
918 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
919 moves expensive on Power7 also.
920
921 2011-05-26 Richard Guenther <rguenther@suse.de>
922
923 * fold-const.c (fold_unary_loc): Remove bogus code.
924
925 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
926
927 * tree.h (struct tree_identifier): Inherit from tree_typed, not
928 tree_common.
929 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
930 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
931 TS_BASE instead of TS_COMMON.
932 * varasm.c (assemble_name): Remove assert.
933
934 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
935
936 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
937 substituted first.
938 * libgcc-std.ver: Delete file.
939
940 2011-05-26 Richard Guenther <rguenther@suse.de>
941
942 PR tree-optimization/48702
943 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
944 only when we know the base address is within bounds.
945 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
946 assume the base address of TARGET_MEM_REFs is in bounds.
947
948 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
949
950 PR target/49099
951 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
952 declaration in TARGET_SOLARIS.
953
954 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
955
956 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
957 The instruction is then expanded explicitly.
958 (supported_compare): Callable instruction.
959 (compare): Likewise.
960
961 2011-05-26 Jakub Jelinek <jakub@redhat.com>
962
963 PR c++/49165
964 * gimplify.c (shortcut_cond_r): Don't special case
965 COND_EXPRs if they have void type on one of their arms.
966
967 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
968
969 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
970 to reduce duplication, and to achieve a slightly more logical order
971 of operations.
972
973 2011-05-26 Jakub Jelinek <jakub@redhat.com>
974
975 PR tree-optimization/49161
976 * tree-vrp.c (struct case_info): New type.
977 (compare_case_labels): Sort case_info structs instead of
978 trees, and not primarily by CASE_LABEL uids but by
979 label_for_block indexes.
980 (find_switch_asserts): Put case labels into struct case_info
981 array instead of TREE_VEC, adjust sorting, compare label_for_block
982 values instead of CASE_LABELs.
983
984 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
985
986 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
987 ("orndi3_neon"): Likewise.
988 ("bic<mode>3_neon"): Likewise.
989
990 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
991
992 PR tree-optimization/49038
993 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
994 Ensure at least one epilogue iteration if required by data
995 accesses with gaps.
996 * tree-vectorizer.h (struct _loop_vec_info): Add new field
997 to mark loops that require peeling for gaps.
998 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
999 (vect_get_known_peeling_cost): Take peeling for gaps into
1000 account.
1001 (vect_transform_loop): Generate epilogue if required by data
1002 access with gaps.
1003 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1004 loop as requiring an epilogue if there are gaps in the end of
1005 the strided group.
1006
1007 2011-05-25 Ian Lance Taylor <iant@google.com>
1008
1009 * godump.c (go_format_type): Output the first field with a usable
1010 Go type, if any.
1011
1012 2011-05-25 Ian Lance Taylor <iant@google.com>
1013
1014 * godump.c (go_format_type): Check for invalid type names, pointer
1015 target types, and struct field types.
1016
1017 2011-05-25 Jason Merrill <jason@redhat.com>
1018
1019 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1020
1021 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1022
1023 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1024
1025 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1026
1027 * config/i386/i386.md (*movqi_extv_1)): Put back
1028 "register_operand" check in "type" calculation.
1029 (*movqi_extzv_2): Likewise.
1030
1031 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1032
1033 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1034
1035 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1036
1037 PR bootstrap/49160
1038 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1039 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1040 __divxc3, __divtc3): Wrap definitions in #ifndef.
1041
1042 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1043
1044 PR target/49142
1045 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1046 "register_operand" check and replace q_regs_operand with
1047 QIreg_operand in "type" calculation.
1048 (*movqi_extv_1): Likewise.
1049 (*movqi_extzv_2_rex64): Likewise.
1050 (*movqi_extzv_2): Likewise.
1051
1052 * config/i386/predicates.md (QIreg_operand): New.
1053
1054 2011-05-25 Richard Guenther <rguenther@suse.de>
1055
1056 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1057 type-based offset disambiguation, streamline MEM_REF and
1058 TARGET_MEM_REF handling.
1059
1060 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1061
1062 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1063 (bdesc_special_args): Add pause intrinsic.
1064
1065 * config/i386/i386.md (UNSPEC_PAUSE): New.
1066 (pause): Likewise.
1067 (*pause): Likewise.
1068 * config/i386/ia32intrin.h (__pause): Likewise.
1069
1070 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1071 pause intrinsic.
1072
1073 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1074
1075 PR tree-optimization/46728
1076 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1077 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1078
1079 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1080
1081 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1082 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1083 instead of TS_COMMON.
1084
1085 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1086
1087 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1088 LIBGCC2_GNU_PREFIX is defined.
1089 (__N): New macro.
1090 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1091 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1092 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1093 __clz_tab): Define using __N.
1094 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1095 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1096 * target.def (libfunc_gnu_prefix): New hook.
1097 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1098 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1099 * doc/tm.texi: Regenerate.
1100 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1101 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1102 account.
1103 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1104 (init_optabs): Likewise for the bswap libfuncs.
1105 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1106 and divide.
1107 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1108 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1109 * libgcc-std.ver: Remove.
1110 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1111 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1112 libgcc-std.ver.
1113 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1114 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1115 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1116 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1117 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1118 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1119 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1120 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1121 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1122 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1123
1124 2011-05-25 Jan Hubicka <jh@suse.cz>
1125
1126 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1127 (lto_output_tree): Use output_record_start.
1128 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1129 (lto_get_pickled_tree): Use input_record_start.
1130 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1131 (lto_value_range_error): New function.
1132 * lto-streamer.h (lto_value_range_error): Declare.
1133 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1134 (lto_output_enum, lto_input_enum): New macros.
1135
1136 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1137
1138 * common.opt (flag_stack_usage_info): New variable.
1139 (-Wstack-usage): New option.
1140 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1141 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1142 <OPT_fstack_usage>: Likewise.
1143 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1144 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1145 of flag_stack_usage.
1146 (emit_library_call_value_1): Likewise.
1147 * explow.c (allocate_dynamic_stack_space): Likewise.
1148 * function.c (instantiate_virtual_regs ): Likewise.
1149 (prepare_function_start): Likewise.
1150 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1151 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1152 * config/arm/arm.c (arm_expand_prologue): Likewise.
1153 (thumb1_expand_prologue): Likewise.
1154 * config/avr/avr.c (expand_prologue): Likewise.
1155 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1156 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1157 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1158 * config/mips/mips.c (mips_expand_prologue): Likewise.
1159 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1160 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1161 * config/s390/s390.c (s390_emit_prologue): Likewise.
1162 * config/sh/sh.c (sh_expand_prologue): Likewise.
1163 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1164 * config/spu/spu.c (spu_expand_prologue): Likewise.
1165
1166 2011-05-25 Richard Guenther <rguenther@suse.de>
1167
1168 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1169 (gimple_canonical_types_compatible_p): Likewise.
1170
1171 2011-05-25 Jan Hubicka <jh@suse.cz>
1172
1173 PR middle-end/49062
1174 * ipa.c (function_and_variable_visibility): Only add to same
1175 comdat group list if DECL_ONE_ONLY.
1176
1177 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1178
1179 PR rtl-optimization/49014
1180 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1181
1182 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1183
1184 PR target/49128
1185 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1186
1187 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1188
1189 PR rtl-optimization/48757
1190 * ira-build.c (loop_with_eh_edge_p): Rename to
1191 loop_with_complex_edge_p, check edges on complexity, make function
1192 conditional.
1193 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1194 conditional.
1195
1196 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1197
1198 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1199 force flag_ira_share_save_slots to 0.
1200
1201 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1202
1203 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1204 (vt_initialize): Set PROLOGUE_BB unconditionally.
1205 Add block comment about CFA_BASE_RTX machinery.
1206 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1207 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1208
1209 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1210
1211 PR objc/48187
1212 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1213 parsing of syntax error in ObjC instance variable lists. In
1214 particular, avoid an infinite loop if there is a stray ']'.
1215 Updated error message.
1216
1217 2011-05-24 Ian Lance Taylor <iant@google.com>
1218
1219 * godump.c (go_define): Don't accept a string immediately after
1220 another operand.
1221
1222 2011-05-24 Ian Lance Taylor <iant@google.com>
1223
1224 * godump.c (struct godump_container): Add invalid_hash field.
1225 (go_format_type): Return false if type is found in invalid_hash.
1226 (go_output_typedef): Add invalid type to invalid_hash.
1227 (go_finish): Create and delete invalid_hash.
1228
1229 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1230
1231 PR tree-optimization/46728
1232 * tree-ssa-math-opts.c (powi_table): New.
1233 (powi_lookup_cost): New.
1234 (powi_cost): New.
1235 (powi_as_mults_1): New.
1236 (powi_as_mults): New.
1237 (gimple_expand_builtin_powi): New.
1238 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1239 (gate_cse_sincos): Remove sincos/cexp restriction.
1240
1241 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1242
1243 PR target/3746
1244 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1245 mips-tdump native.
1246 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1247 * mips-tdump.c: Likewise.
1248
1249 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1250
1251 PR target/49128
1252 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1253 add -mno-XXX. Handle FMA.
1254
1255 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1256
1257 PR rtl-optimization/48633
1258 * ira-build.c (loop_with_eh_edge_p): New function.
1259 (mark_loops_for_removal): Use it.
1260
1261 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1262
1263 PR rtl-optimization/48971
1264 * ira.c (setup_pressure_classes): Don't check register move cost
1265 for classes with one registers. Don't add pressure class if there
1266 is a pressure class with the same available hard registers.
1267 Check contains_reg_of_mode. Fix a typo in collecting
1268 temp_hard_regset. Ignore hard registers not belonging to a class.
1269
1270 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1271
1272 PR target/49133
1273 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1274
1275 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1276 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1277
1278 PR gcov-profile/48845
1279 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1280
1281 2011-05-24 Richard Guenther <rguenther@suse.de>
1282
1283 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1284 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1285 (gimple_types_compatible_p_1): Adjust.
1286 (iterative_hash_canonical_type): Do not bother about complete vs.
1287 incomplete types.
1288 (gimple_canonical_types_compatible_p): Likewise.
1289
1290 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1291
1292 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1293
1294 2011-05-24 Richard Guenther <rguenther@suse.de>
1295
1296 PR bootstrap/49078
1297 * gimple.c (gimple_register_canonical_type): Revert
1298 previous change.
1299 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1300 does not for a tree for the case where it matters. Cache
1301 pointer-type alias-sets.
1302
1303 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1304
1305 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1306 (OBJS): Remove options.o, opts-common.o and prefix.o.
1307 (OBJS-libcommon-target): New.
1308 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1309 (BACKEND): Include libcommon-target.a.
1310 (MOSTLYCLEANFILES): Include libcommon-target.a.
1311 (libcommon-target.a): New.
1312 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1313 prefix.o.
1314
1315 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1316
1317 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1318 parts of output shared with the driver.
1319 * optc-gen.awk: Don't generate parts of output not shared with the
1320 driver.
1321 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1322 * doc/options.texi (SourcerInclude): Mention options-save.c.
1323 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1324 (OBJS): Add options-save.o.
1325 (options-save.c, options-save.o): New.
1326 (options.o): Update dependencies.
1327 (gcc-options.o): Remove.
1328 (mostlyclean): Remove options-save.c.
1329
1330 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1331
1332 PR debug/49032
1333 * dbxout.c: Include cgraph.h.
1334 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1335 and without value expr, return NULL if no varpool node exists for
1336 it or if it is not needed.
1337 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1338
1339 PR c/49120
1340 * c-decl.c (start_decl): Convert expr to void_type_node.
1341
1342 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1343
1344 PR rtl-optimization/48826
1345 * emit-rtl.c (try_split): When splitting a call that is followed
1346 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1347
1348 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1349
1350 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1351 parameters passed in memory prefer using DECL_INCOMING_RTL over
1352 the pseudos it will be copied into.
1353
1354 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1355
1356 PR target/47315
1357 * config/i386/i386.c (ix86_option_override_internal): Save the
1358 initial options after checking vzeroupper.
1359
1360 2011-05-23 David Li <davidxl@google.com>
1361
1362 PR tree-optimization/48988
1363 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1364 Initialize has_valid_pred for each pred chain.
1365
1366 2011-05-23 Richard Guenther <rguenther@suse.de>
1367
1368 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1369 (iterative_hash_gimple_type): Always hash type names.
1370
1371 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1372
1373 * c-typeck.c (build_function_call_vec): Tweak call to
1374 check_function_arguments.
1375
1376 2011-05-23 Richard Guenther <rguenther@suse.de>
1377
1378 PR tree-optimization/49115
1379 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1380 is not necessarily carried out, do not claim it kills the ref.
1381 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1382
1383 2011-05-23 Richard Guenther <rguenther@suse.de>
1384
1385 PR middle-end/15419
1386 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1387 what pointer types we accept for folding.
1388
1389 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1390
1391 * gthr-gnat.c: Remove.
1392 * gthr-gnat.h: Remove.
1393 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1394 * config/t-freebsd (LIB2ADDEH): Likewise.
1395 * config/t-linux (LIB2ADDEH): Likewise.
1396 * config/t-sol2 (LIB2ADDEH): Likewise.
1397 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1398 * configure.ac (target_thread_file): Remove gnat handling.
1399 * configure: Regenerate.
1400 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1401
1402 2011-05-23 Tristan Gingold <gingold@adacore.com>
1403 Eric Botcazou <ebotcazou@adacore.com>
1404
1405 * gcov.c (create_file_names): If no object directory is specified,
1406 keep the directory of the file.
1407
1408 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1409
1410 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1411 * configure: Regenerate.
1412
1413 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1414
1415 PR middle-end/48973
1416 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1417 failed and the comparison has a single bit signed type, use
1418 constm1_rtx instead of const1_rtx for true value.
1419 (do_store_flag): If ops->type is single bit signed type, disable
1420 signel bit test optimization and pass -1 instead of 1 as last
1421 parameter to emit_store_flag_force.
1422
1423 2011-05-23 Tom de Vries <tom@codesourcery.com>
1424
1425 PR target/45098
1426 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1427 function.
1428 (infer_loop_bounds_from_undefined): Use new function.
1429
1430 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1431
1432 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1433 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1434 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1435 and -O0 otherwise.
1436 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1437
1438 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1439
1440 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1441 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1442 returns true.
1443
1444 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1445
1446 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1447
1448 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1449
1450 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1451 UNSPEC_MOVE_PIC pattern.
1452
1453 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1454
1455 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1456 (sparc-*-rtems*): Likewise.
1457 (sparc64-*-elf*): Likewise.
1458 (sparc64-*-rtems*): Likewise.
1459 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1460 * config/sparc/t-crtin: New file.
1461 * config/sparc/t-sol2 (crti.o): Delete rule.
1462 (crtn.o): Likewise.
1463 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1464 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1465 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1466 (ENDFILE_SPEC): Add crtn.o.
1467
1468 2011-05-22 Tom de Vries <tom@codesourcery.com>
1469
1470 PR middle-end/48689
1471 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1472 CODE_CONTAINS_STRUCT (TS_COMMON).
1473
1474 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1475
1476 PR middle-end/49029
1477 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1478 only after deciding which mode to use.
1479
1480 2011-05-22 Tom de Vries <tom@codesourcery.com>
1481
1482 PR target/45098
1483 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1484 for call to get_shiftadd_cost.
1485
1486 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1487
1488 PR target/49104
1489 * config/i386/cpuid.h (bit_MMXEXT): New define.
1490
1491 2011-05-22 Nick Clifton <nickc@redhat.com>
1492
1493 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1494 initialisation of non-existant args[2] element. Use args[] array
1495 not arg[] array to pass arguments to build_function_type_list.
1496
1497 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1498
1499 PR tree-optimization/49087
1500 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1501
1502 2011-05-21 Jason Merrill <jason@redhat.com>
1503
1504 PR c++/49092
1505 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1506 static storage duration.
1507
1508 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1509
1510 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1511 frame pointer.
1512
1513 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1514
1515 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1516 false if there are call-saved registers here...
1517 (sparc_can_use_return_insn_p): ...but here instead.
1518 (save_or_restore_regs): Fix thinko.
1519 (sparc_expand_prologue): Use current_function_is_leaf.
1520 (sparc_frame_pointer_required): Likewise.
1521
1522 2011-05-21 Nick Clifton <nickc@redhat.com>
1523
1524 PR target/49098
1525 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1526
1527 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1528
1529 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1530 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1531
1532 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1533
1534 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1535 * optc-gen.awk: Move common code to opt-read.awk.
1536 * opth-gen.awk: Likewise.
1537 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1538
1539 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1540
1541 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1542
1543 2011-05-20 Tom de Vries <tom@codesourcery.com>
1544
1545 PR target/45098
1546 * tree-ssa-loop-ivopts.c: Include expmed.h.
1547 (get_shiftadd_cost): New function.
1548 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1549
1550 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1551
1552 PR bootstrap/49086
1553 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1554 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1555
1556 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1557
1558 * Makefile.in: Update comment referring to $(OBJS-common).
1559
1560 2011-05-20 Ian Lance Taylor <iant@google.com>
1561
1562 * godump.c (go_output_typedef): Put enum constants in the macro
1563 hash table to avoid duplicate Go const definitions.
1564
1565 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1566
1567 * Makefile.in (LIBDEPS): Add libcommon.a.
1568 (LIBS): Likewise.
1569 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1570 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1571 pretty-print.o and version.o.
1572 (OBJS-libcommon): New.
1573 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1574 (BACKEND): Add libcommon.a.
1575 (MOSTLYCLEANFILES): Likewise.
1576 (libcommon.a): New.
1577 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1578 (cpp$(exeext)): Likewise.
1579 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1580 pretty-print.o and input.o.
1581 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1582 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1583 (errors.o): Remove.
1584 (mips-tfile): Don't explicitly use version.o.
1585 (mips-tdump): Likewise.
1586 (gcov.o): Depend on $(DIAGNOSTIC_H).
1587 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1588 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1589 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1590 * gcov-dump.c: Include intl.h and diagnostic.h.
1591 (main): Initialize diagnostics.
1592 * gcov.c: Include diagnostic.h.
1593 (fnotice): Remove.
1594 (main): Initialize diagnostics.
1595 * lto-wrapper.c: Include diagnostic.h.
1596 (main): Initialize diagnostics.
1597
1598 2011-05-20 Michael Matz <matz@suse.de>
1599
1600 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1601
1602 2011-05-20 Michael Matz <matz@suse.de>
1603 Richard Guenther <rguenther@suse.de>
1604
1605 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1606 use lto_streamer_cache_append directly instead of returning a VEC.
1607 (preload_common_node): Remove.
1608 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1609 track seen nodes.
1610 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1611
1612 2011-05-20 Richard Guenther <rguenther@suse.de>
1613
1614 PR tree-optimization/49079
1615 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1616 MEM_REFs correctly for the trailing array access detection.
1617 Special case constants the same way as decls for overall size
1618 constraining.
1619
1620 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1621
1622 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1623 argument expansion.
1624
1625 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1626
1627 PR tree-optimization/49073
1628 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1629 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1630 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1631
1632 2011-05-20 Richard Guenther <rguenther@suse.de>
1633
1634 PR middle-end/48849
1635 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1636 of pointer types the same way the middle-end does.
1637
1638 2011-05-20 Richard Guenther <rguenther@suse.de>
1639
1640 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1641 or pointer-to chains. Delay all fixup to uniquify_nodes.
1642
1643 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1644
1645 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1646 (fma4_fmaddsub): Likewise
1647
1648 2011-05-19 Jan Hubicka <jh@suse.cz>
1649
1650 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1651 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1652 (type_pair_cache): New static var.
1653 (lookup_type_pair): Use fixed sized custom hash; make inline.
1654 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1655 calls of lookup_type_pair.
1656 (print_gimple_types_stats): Remove cache stats.
1657 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1658 and gtc_ob.
1659
1660 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1661
1662 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1663 when TARGET_RDRND is active.
1664 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1665 Generate dummy SImode target register when target is NULL.
1666
1667 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1668
1669 * config/arm/arm-fpus.def: New.
1670 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1671 arm-fpus.def.
1672 * config/arm/arm-tables.opt: Regenerate.
1673 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1674 (arm_option_override): Don't decode FPU name to string here.
1675 * config/arm/arm.opt (mfpu=): Use Enum.
1676 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1677 Update dependencies.
1678
1679 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1680
1681 * collect2.c: Include diagnostic.h.
1682 (fatal_perror, fatal, error, fancy_abort): Remove.
1683 (main): Set progname. Call xmalloc_set_program_name and
1684 diagnostic_initialize.
1685 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1686 scan_libraries, resolve_lib_name): Call fatal_error instead of
1687 fatal and fatal_perror.
1688 * collect2.h (error, fatal, fatal_perror): Don't declare.
1689 * tlink.c: Include diagnostic-core.h.
1690 (recompile_files): Call fatal_error instead of fatal_perror.
1691 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1692 pretty-print.o and input.o.
1693 (collect2.o, tlink.o): Update dependencies.
1694
1695 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1696
1697 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1698
1699 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1700
1701 PR target/40483
1702 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1703 COMDAT group syntax, both SPARC and x86 variants.
1704 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1705 * configure: Regenerate.
1706 * config/sol2.h (TARGET_SOLARIS): Define.
1707 (PUSHSECTION_FORMAT): Remove.
1708 (SECTION_NAME_FORMAT): Define.
1709 * config/sol2.c: Include hashtab.h.
1710 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1711 expansion, using SECTION_NAME_FORMAT.
1712 (solaris_comdat_htab): New variable.
1713 (struct comdat_entry): Define.
1714 (comdat_hash): New function.
1715 (comdat_eq): New function.
1716 (solaris_elf_asm_comdat_section): New function.
1717 (solaris_define_comdat_signature): New function.
1718 (solaris_code_end): New function.
1719 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1720 (solaris_code_end): Declare.
1721 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1722 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1723 solaris_code_end.
1724 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1725 Remove ATTRIBUTE_UNUSED.
1726 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1727 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1728 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1729 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1730 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1731 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1732 (PUSHSECTION_FORMAT): Remove.
1733 (SECTION_NAME_FORMAT): Redefine.
1734
1735 2011-05-19 Kai Tietz <ktietz@redhat.com>
1736
1737 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1738 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1739 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1740
1741 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1742 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1743
1744 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1745
1746 2011-05-19 Richard Guenther <rguenther@suse.de>
1747
1748 PR middle-end/48985
1749 * tree-object-size.c (addr_object_size): If the pointed-to
1750 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1751
1752 2011-05-19 Richard Guenther <rguenther@suse.de>
1753
1754 * gimple.c (gimple_types_compatible_p_1): Compare names of
1755 the types themselves.
1756 (iterative_hash_gimple_type): And hash them that way.
1757 (gimple_register_type_1): If we register a main variant properly
1758 initialize the leader to ourselves.
1759
1760 2011-05-19 Tom de Vries <tom@codesourcery.com>
1761
1762 PR target/45098
1763 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1764 get_loop_invariant_expr_id.
1765 (get_loop_invariant_expr_id): Use get_expr_id.
1766 (parm_decl_cost): New function.
1767 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1768 Improve bound cost estimation. Use different inv_expr_id for elim and
1769 express cases.
1770
1771 2011-05-19 Tom de Vries <tom@codesourcery.com>
1772
1773 PR target/45098
1774 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1775 cost_base.cost == 0.
1776
1777 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1778
1779 PR target/49002
1780 * config/i386/sse.md
1781 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
1782 load cast.
1783
1784 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1785
1786 PR tree-optimization/49039
1787 * tree-vrp.c (extract_range_from_binary_expr): For
1788 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1789 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1790
1791 2011-05-18 Tom de Vries <tom@codesourcery.com>
1792
1793 PR target/45098
1794 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1795
1796 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1797
1798 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1799 (*tls_global_dynamic_64): Ditto.
1800 (*tls_local_dynamic_base_32_gnu): Ditto.
1801 (*tls_local_dynamic_base_64): Ditto.
1802 (tls_initial_exec_64_sun): Ditto.
1803
1804 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1805
1806 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1807 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1808 bf592-none.
1809 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1810 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1811 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1812 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1813 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1814 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1815 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1816
1817 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1818
1819 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1820 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1821 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1822 target_thread_pointer, arm_structure_size_boundary, struct
1823 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1824 struct abi_name, arm_all_abis): Remove.
1825 (arm_option_override) Don't process most enumerated option values here.
1826 Don't process target_fpe_name here. Work with integer not string for
1827 structure size boundary; use separate diagnostics for each case.
1828 * config/arm/arm.h (enum float_abi_type, enum
1829 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1830 to arm-opts.h.
1831 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1832 arm_structure_size_boundary): Remove.
1833 * config/arm/arm.opt (mabi=): Use Enum and Init.
1834 (arm_abi_type): New Enum and EnumValue entries.
1835 (mfloat-abi=): Use Enum and Init.
1836 (float_abi_type): New Enum and EnumValue entries.
1837 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1838 (mfp16-format=): Use Enum and Init.
1839 (arm_fp16_format_type): New Enum and EnumValue entries.
1840 (mstructure-size-boundary=): Use UInteger and Init.
1841 (mtp=): Use Enum and Init.
1842 (arm_tp_type): New Enum and EnumValue entries.
1843
1844 2011-05-18 Richard Guenther <rguenther@suse.de>
1845
1846 PR tree-optimization/49018
1847 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1848 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1849 gimple_has_side_effects.
1850
1851 2011-05-18 Richard Guenther <rguenther@suse.de>
1852
1853 * gimple.c (gimple_register_type_1): New function, split out from ...
1854 (gimple_register_type): ... here. Avoid infinite recursion.
1855
1856 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1857
1858 PR tree-optimization/41881
1859 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1860 reduction_chains along with a macro for its access.
1861 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1862 (destroy_loop_vec_info): Free reduction chains.
1863 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1864 (vect_is_slp_reduction): New function.
1865 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1866 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1867 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1868 definition types for reduction chains.
1869 (vect_supported_load_permutation_p): Don't allow permutations for
1870 reduction chains.
1871 (vect_analyze_slp_instance): Support reduction chains.
1872 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1873 (vect_get_constant_vectors): Handle reduction chains.
1874 (vect_schedule_slp_instance): Mark the first statement of the
1875 reduction chain as reduction.
1876
1877 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1878
1879 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1880 names for group elements access.
1881 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1882 reduction chains as well. Remove data reference and interleaving
1883 related words from the fields names.
1884 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1885 elements access.
1886 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1887 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1888 vect_update_interleaving_chain, vect_same_range_drs,
1889 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1890 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1891 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1892 vect_analyze_group_access, vect_analyze_data_ref_access,
1893 vect_create_data_ref_ptr, vect_transform_strided_load,
1894 vect_record_strided_load_vectors): Likewise.
1895 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1896 vect_model_load_cost, vectorizable_store, vectorizable_load,
1897 vect_remove_stores, new_stmt_vec_info): Likewise.
1898 * tree-vect-slp.c (vect_build_slp_tree,
1899 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1900
1901 2011-05-18 Richard Guenther <rguenther@suse.de>
1902
1903 PR middle-end/48989
1904 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1905 operand verification.
1906 (verify_gimple_assign_binary): Likewise.
1907 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1908 to non-1-precision BOOLEAN_TYPEs.
1909
1910 2011-05-18 Tom de Vries <tom@codesourcery.com>
1911
1912 PR target/45098
1913 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1914
1915 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1916
1917 PR tree-optimization/49000
1918 * tree-ssa.c (execute_update_addresses_taken): Call
1919 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1920 be rewritten and decl has been marked for renaming, reset
1921 the debug stmt.
1922
1923 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1924
1925 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1926 enum_opts_set when testing if attributes have set -mfpmath=.
1927
1928 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1929
1930 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1931
1932 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1933
1934 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1935 info->entry with 0
1936 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1937 id.transform_lang_insert_block with NULL.
1938
1939 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1940
1941 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1942 (output_fp_compare): Change args 3 and 4 to bool.
1943 (ix86_expand_call): Change arg 6 to bool.
1944 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1945 (ix86_attr_length_vex_default): Change arg 3 to bool.
1946 * config/i386/i386.md: Update all uses.
1947 * config/i386/i386.c: Ditto.
1948 (ix86_flags_dependent): Change return type to bool.
1949
1950 2011-05-17 Richard Guenther <rguenther@suse.de>
1951
1952 * gimple.c (type_hash_pair_compare): Fix comparison.
1953
1954 2011-05-17 Richard Guenther <rguenther@suse.de>
1955
1956 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1957 case some more, fix final hash value of the non-singleton case.
1958
1959 2011-05-17 Richard Guenther <rguenther@suse.de>
1960
1961 PR bootstrap/49013
1962 Revert
1963 2011-05-16 Richard Guenther <rguenther@suse.de>
1964
1965 * gimple.c (gimple_types_compatible_p_1): Use names of the
1966 type itself, not its main variant.
1967 (iterative_hash_gimple_type): Likewise.
1968
1969 2011-05-17 Richard Guenther <rguenther@suse.de>
1970
1971 * gimple.c (gimple_register_canonical_type): Use the main-variant
1972 leader for computing the canonical type.
1973
1974 2011-05-17 Nick Clifton <nickc@redhat.com>
1975
1976 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1977 moves.
1978
1979 * config/rx/rx.md: Add peephole to remove redundant extensions
1980 after loads.
1981 (bitset_in_memory): Use rx_restricted_mem_operand.
1982 (bitinvert_in_memory): Likewise.
1983 (bitclr_in_memory): Likewise.
1984
1985 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1986 Nick Clifton <nickc@redhat.com>
1987
1988 * config/rx/rx.md: Add peepholes to match a register move followed
1989 by a comparison of the moved register. Replace these with an
1990 addition of zero that does both actions in one instruction.
1991
1992 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1993
1994 PR target/48986
1995 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1996 predicate to allow CONST_INT.
1997 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1998
1999 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2000
2001 * opts-common.c (opt_enum_arg_to_value): New.
2002 * opts.h (opt_enum_arg_to_value): Declare.
2003 * config/i386/i386.opt (fpmath): Remove.
2004 (mfpmath=): Use Enum, Init and Save.
2005 (fpmath_unit): New Enum and EnumValue entries.
2006 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2007 name for function fpmath state.
2008 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2009 * config/i386/i386.c: Include diagnostic.h.
2010 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2011 (ix86_target_string): Take enum fpmath_unit value instead of string.
2012 (ix86_debug_options): Update call to ix86_target_string.
2013 (ix86_option_override_internal): Don't process fpmath strings here.
2014 (x86_function_specific_save, ix86_function_specific_restore):
2015 Don't handle fpmath state specially.
2016 (ix86_function_specific_print): Pass fpmath state to
2017 ix86_target_string instead of printing in this function.
2018 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2019 Handle enum attributes.
2020 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2021 (ix86_valid_target_attribute_tree): Update option_strings
2022 handling. Handle fpmath as enum option.
2023 (ix86_can_inline_p): Update field names for function fpmath state.
2024 (ix86_expand_builtin): Update call to ix86_target_string.
2025 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2026 (ix86_fpmath): Remove.
2027 * config/i386/t-i386 (i386.o): Update dependencies.
2028
2029 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2030
2031 PR preprocessor/48677
2032 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2033 from decoded_options[0], not from itself.
2034
2035 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2036
2037 * config/i386/constraints.md (z): New constraint.
2038 * config/i386/i386.c (c): New mode attribute.
2039 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2040 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2041 constraint for operand 0.
2042 (*call_vzeroupper): Ditto.
2043 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2044 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2045 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2046 Use "lzm" constraint for operand 0.
2047 (*call_pop_vzeroupper): Ditto.
2048 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2049 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2050 constraint for operand 0.
2051 (*sibcall_vzeroupper): Ditto.
2052 (*sibcall_rex64_ms_sysv): Ditto.
2053 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2054 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2055 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2056 (*sibcall_pop_vzeroupper): Ditto.
2057 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2058 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2059 mode iterator. Use "<c>zm" constraint for operand 1.
2060 (*call_value_vzeroupper): Ditto.
2061 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2062 for operand 1.
2063 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2064 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2065 *call_value_pop_1. Use "lzm" constraint for operand 1.
2066 (*call_value_pop_vzeroupper): Ditto.
2067 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2068 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2069 mode iterator. Use "Uz" constraint for operand 1.
2070 (*sibcall_value_vzeroupper): Ditto.
2071 (*sibcall_value_rex64_ms_sysv): Ditto.
2072 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2073 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2074 constraint for operand 1.
2075 (*sibcall_value_pop_vzeroupper): Ditto.
2076 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2077 and "z" constraint for operand 2.
2078 (*tls_global_dynamic_32_gnu): Ditto.
2079 (*tls_local_dynamic_base_32_gnu): Ditto.
2080 (*tls_local_dynamic_base_64): Ditto.
2081 (*tls_local_dynamic_32_once): Ditto.
2082 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2083 Update all callers.
2084 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2085
2086 2011-05-16 Richard Guenther <rguenther@suse.de>
2087
2088 * gimple.c (gimple_types_compatible_p_1): Use names of the
2089 type itself, not its main variant.
2090 (iterative_hash_gimple_type): Likewise.
2091
2092 2011-05-16 Richard Guenther <rguenther@suse.de>
2093
2094 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2095 always visit pointer target and function result and argument types.
2096
2097 2011-05-16 Jason Merrill <jason@redhat.com>
2098
2099 PR c++/48999
2100 * tree-inline.c (copy_statement_list): Put back recursion.
2101
2102 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2103
2104 PR target/27663
2105 PR target/41076
2106 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2107 * config/avr/avr.md ("*ior<mode>qi.byte0",
2108 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2109
2110 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2111
2112 PR target/45099
2113 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2114 register is needed for a function argument.
2115
2116 2011-05-16 Richard Guenther <rguenther@suse.de>
2117
2118 * gimple.c (struct type_hash_pair): New type.
2119 (type_hash_pair_compare): New function.
2120 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2121
2122 2011-05-16 Revital Eres <revital.eres@linaro.org>
2123
2124 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2125
2126 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2127
2128 * config/i386/i386.md (floating point move splitters): Fix
2129 usage of standard_80387_constant_p.
2130 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2131
2132 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2133
2134 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2135
2136 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2137
2138 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2139 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2140 (tree_ssa_lim_finalize): Likewise.
2141
2142 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2143
2144 * config/i386/constraint.md (Yd, Yx): New register constraints.
2145 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2146 Yd conditional register constraint.
2147 (*movtf_internal): Use standard_sse_constant_opcode.
2148 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2149 Yx conditional register constraint.
2150 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2151 Yd conditional register constraint. Use standard_sse_constant_p to
2152 check for valid SSE constants and call standard_sse_constant_opcode to
2153 output SSE insn.
2154 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2155 constants and call standard_sse_constant_opcode to output SSE insn.
2156 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2157 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2158 optimize_size is set.
2159 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2160
2161 2011-05-14 Tobias Burnus <burnus@net-b.de>
2162
2163 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2164
2165 2011-05-13 Martin Jambor <mjambor@suse.cz>
2166
2167 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2168 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2169 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2170 (evaluate_conditions_for_ipcp_clone): Removed.
2171 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2172 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2173 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2174
2175 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2176
2177 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2178 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2179 lieu of MAY_HAVE_DEBUG_STMTS.
2180 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2181 debug statements if !MAY_HAVE_DEBUG_STMTS.
2182
2183 2011-05-13 Martin Thuresson <martint@google.com>
2184
2185 PR gcov-profile/47793
2186 * libgcov.c (gcov_exit): Support relative profile paths.
2187 * doc/invoke.texi (-fprofile-dir): Update for above change.
2188
2189 2011-05-13 Richard Guenther <rguenther@suse.de>
2190
2191 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2192 type-pair caching, do not compare hashes.
2193
2194 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2195
2196 PR middle-end/48965
2197 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2198 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2199
2200 2011-05-13 Kai Tietz <ktietz@redhat.com>
2201
2202 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2203 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2204 compatible type for TRUTH_NOT_EXPR.
2205
2206 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2207
2208 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2209 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2210 can_create_pseudo_p ().
2211
2212 2011-05-13 Richard Guenther <rguenther@suse.de>
2213
2214 PR lto/48978
2215 * gimple.c (iterative_hash_gimple_type): Revert change in
2216 pointer target and function result and argument hashing.
2217
2218 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2219
2220 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2221 (*movxf_internal_nointeger): Ditto.
2222 (*movdf_internal_rex64): Ditto.
2223 (*movdf_internal): Ditto.
2224 (*movdf_internal_nointeger): Ditto.
2225 (*movsf_internal): Ditto.
2226 (sincos splitters): Use can_create_pseudo ().
2227
2228 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2229
2230 * config/i386/i386-opts.h: New.
2231 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2232 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2233 ix86_section_threshold): Remove.
2234 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2235 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2236 OPT_mbranch_cost_.
2237 (ix86_option_override_internal): Don't decode strings for options
2238 other than -march=, -mtune= and -mfpmath=. Don't allow for
2239 __attribute__ uses in remaining diagnostics for options with
2240 string arguments. Don't check for integer arguments being negative.
2241 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2242 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2243 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2244 ix86_branch_cost, ix86_section_threshold): Remove.
2245 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2246 HeaderInclude.
2247 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2248 but not Var.
2249 (masm=): Use Enum and Init.
2250 (asm_dialect): New Enum and EnumValue entries.
2251 (mbranch-cost=): Use UInteger.
2252 (mlarge-data-threshold=): Use UInteger and Init.
2253 (mcmodel=): Use Enum and Init.
2254 (cmodel): New Enum and EnumValue entries.
2255 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2256 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2257 mregparm=): Use UInteger.
2258 (mstringop-strategy=): Use Enum and Init.
2259 (stringop_alg): New Enum and EnumValue entries.
2260 (mtls-dialect=): Use Enum and Init.
2261 (tls_dialect): New Enum and EnumValue entries.
2262 (mabi=): Use Enum and Init.
2263 (calling_abi): New Enum and EnumValue entries.
2264 (mveclibabi=): Use Enum and Init.
2265 (ix86_veclibabi): New Enum and EnumValue entries.
2266
2267 2011-05-13 Nick Clifton <nickc@redhat.com>
2268
2269 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2270 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2271
2272 2011-05-13 Kai Tietz <ktietz@redhat.com>
2273
2274 PR middle-end/48984
2275 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2276 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2277 (gimple_boolify): Check for cast for boolean_type_node instead for
2278 BOOLEAN_TYPE.
2279
2280 2011-05-13 Richard Guenther <rguenther@suse.de>
2281
2282 PR tree-optimization/48172
2283 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2284 multiplying by number of iterations for equal step.
2285 (vect_create_cond_for_alias_checks): Likewise.
2286
2287 2011-05-13 Andreas Schwab <schwab@redhat.com>
2288
2289 * configure.ac: Use AS_HELP_STRING throughout.
2290 * configure: Regenerate.
2291
2292 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2293
2294 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2295 (ix86_emit_restore_regs_using_mov): Likewise.
2296 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2297
2298 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2299
2300 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2301 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2302 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2303 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2304 RTX_OK_FOR_OLO10_P): ...here.
2305 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2306 SYMBOLIC_CONST.
2307
2308 2011-05-12 Kai Tietz <ktietz@redhat.com>
2309
2310 * gimplify.c (gimple_boolify): Re-boolify expression
2311 arguments even if expression type is of kind BOOLEAN_TYPE.
2312 (gimplify_boolean_expr): Removed.
2313 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2314 and XOR. Additional take care that we keep expression's type.
2315 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2316 of TRUTH_AND|OR|XOR_EXPR.
2317
2318 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2319
2320 PR tree-optimization/48975
2321 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2322 on all bbs here and free and clear ifc_bbs at the end.
2323
2324 2011-05-12 Richard Guenther <rguenther@suse.de>
2325
2326 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2327 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2328 until after simple checks.
2329 (gimple_types_compatible_p): Likewise.
2330 (iterative_hash_gimple_type): Always hash pointer targets
2331 and function return and argument types.
2332 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2333 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2334 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2335 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2336 completely in the simple compare section.
2337 (gimple_register_canonical_type): Query the cache again after
2338 registering.
2339
2340 2011-05-12 Richard Guenther <rguenther@suse.de>
2341
2342 PR tree-optimization/48172
2343 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2344 the number of iterations from the segment size calculation.
2345 (vect_create_cond_for_alias_checks): Adjust.
2346
2347 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2348
2349 PR debug/48967
2350 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2351 if validate_subreg fails.
2352
2353 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2354
2355 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2356 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2357 early.
2358
2359 2011-05-12 DJ Delorie <dj@redhat.com>
2360
2361 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2362 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2363 created builtin into rx_builtins array.
2364 (rx_builtin_decl): New function.
2365 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2366
2367 2011-05-12 DJ Delorie <dj@redhat.com>
2368 Nick Clifton <nickc@redhat.com>
2369
2370 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2371 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2372 (rx_is_legitimate_address): Add pre-decrement and post-increment
2373 addressing in HImode and QImode. Fix test for out of range
2374 REG+INT addressing.
2375 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2376 (rx_align_for_label): Test label before extracting its usage count.
2377 (rx_adjust_insn_lengths): Fix selection of insn codes.
2378 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2379
2380 2011-05-11 Jason Merrill <jason@redhat.com>
2381
2382 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2383
2384 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2385
2386 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2387 reindent the subsequent block.
2388
2389 2011-05-11 Satoru Takabayashi <satorux@google.com>
2390 Paul Pluzhnikov <ppluzhnikov@google.com>
2391
2392 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2393 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2394 * config.in: Add LINKER_HASH_STYLE.
2395 * configure.ac: Add --with-linker-hash-style.
2396 * configure: Regenerate.
2397
2398 2011-05-11 Richard Guenther <rguenther@suse.de>
2399
2400 PR middle-end/48964
2401 * gimple.c (iterative_hash_canonical_type): Fix typo.
2402
2403 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2404
2405 * config/i386/i386.c (legitimize_tls_address)
2406 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2407 expanders directly for TARGET_GNU2_TLS. Determine pic and
2408 __tls_get_addr symbol reference here. Update call to
2409 gen_tls_global_dynamic_{32,64} for added arguments.
2410 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2411 expanders directly for TARGET_GNU2_TLS. Determine
2412 __tls_get_addr symbol reference here. Update call to
2413 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2414 unique UNSPEC REG_EQUIV to libcall block.
2415 (ix86_tls_get_addr): Declare static.
2416 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2417 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2418 Do not determine pic and __tls_get_addr symbol reference here. Do not
2419 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2420 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2421 (tls_global_dynamic_64): Add operand 2. Do not determine
2422 __tls_get_addr symbol reference here. Do not call
2423 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2424 (tls_local_dynamic_base64): Ditto for operand 1.
2425
2426 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2427
2428 * function.c (expand_function_start): Initialize stack_check_probe_note
2429 only if the generic stack checking mechanism is used.
2430
2431 2011-05-11 Richard Guenther <rguenther@suse.de>
2432
2433 PR tree-optimization/15256
2434 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2435 (A & B) | C, combine (A op CST1) op CST2.
2436 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2437 visit assigns that have uses.
2438
2439 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2440
2441 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2442 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2443 (unpack_ts_type_common_value_fields): ...this. Update comment.
2444 (unpack_value_fields): Adjust for renaming.
2445 (lto_input_ts_type_tree_pointers): Split into...
2446 (lto_input_ts_type_common_tree_pointer): ...this and...
2447 (lto_input_ts_type_non_common_tree_pointers): ...this.
2448 (lto_input_tree_pointers): Adjust for above split.
2449 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2450 (pack_ts_type_common_value_fields): ...this. Update comment.
2451 (lto_output_ts_type_tree_pointers): Split into...
2452 (lto_output_ts_type_common_tree_pointers): ...this and...
2453 (lto_output_ts_type_non_common_tree_pointers): ...this.
2454 (lto_output_tree_pointers): Adjust for above split.
2455 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2456 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2457 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2458 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2459 Define.
2460 (struct tree_type): Split into...
2461 (struct tree_type_common: ...this and...
2462 (struct tree_type_with_lang_specific): ...this and...
2463 (struct tree_type_non_common): ...this. Adjust accessor macros
2464 accordingly.
2465 (TYPE_VALUES_RAW): Define.
2466 (union tree_node): Update for above changes.
2467 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2468 TS_TYPE_NON_COMMON.
2469 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2470 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2471 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2472 * treestructu.def (TS_TYPE): Remove.
2473 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2474 Define.
2475
2476 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2477
2478 PR debug/48159
2479 * tree-ssa.c (reset_debug_uses): New function.
2480 * tree-flow.h (reset_debug_uses): New prototype.
2481 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2482 * tree-loop-distribution.c (generate_loops_for_partition): Call
2483 reset_debug_uses on the stmts that will be removed. Keep around
2484 all debug stmts, don't count them as bits in partition bitmap.
2485 (generate_builtin): Don't count debug stmts or labels as bits in
2486 partition bitmap.
2487
2488 2011-05-11 Richard Guenther <rguenther@suse.de>
2489
2490 * gimple.c (gimple_type_hash_1): Merge with ...
2491 (gimple_type_hash): ... this.
2492 (gtc_visit): Remove mode parameter and simplify accordingly.
2493 (gimple_types_compatible_p_1): Likewise.
2494 (gimple_types_compatible_p): Likewise.
2495 (iterative_hash_gimple_type): Likewise.
2496 (visit): Likewise.
2497 (gimple_type_eq): Adjust.
2498
2499 2011-05-11 Revital Eres <revital.eres@linaro.org>
2500
2501 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2502 enters the branch create an anti edge in the opposite direction
2503 to prevent the creation of reg-moves.
2504 * modulo-sched.c: Adjust comment to reflect the fact we are
2505 scheduling closing branch.
2506 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2507 (stage_count): New field in struct partial_schedule.
2508 (calculate_stage_count): New function.
2509 (normalize_sched_times): Rename to reset_sched_times and handle
2510 incrementing the sched time of the nodes by a constant value
2511 passed as parameter.
2512 (duplicate_insns_of_cycles): Skip closing branch.
2513 (sms_schedule_by_order): Schedule closing branch.
2514 (ps_insn_find_column): Handle closing branch.
2515 (sms_schedule): Call reset_sched_times and adjust the code to
2516 support scheduling of the closing branch.
2517 (ps_insert_empty_row): Update calls to normalize_sched_times
2518 and rotate_partial_schedule functions.
2519
2520 2011-05-11 Richard Guenther <rguenther@suse.de>
2521
2522 PR middle-end/48953
2523 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2524
2525 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2526
2527 * opts.c (finish_options): Move warning settings from process_options.
2528 * toplev.c (process_options): Move warning settings to finish_options.
2529
2530 2011-05-11 Richard Guenther <rguenther@suse.de>
2531
2532 PR tree-optimization/18041
2533 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2534 (simplify_bitwise_binary): ... this. Handle operand conversions
2535 by applying them to the result instead.
2536 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2537
2538 2011-05-11 Richard Guenther <rguenther@suse.de>
2539
2540 * gimple.c (gimple_canonical_types_compatible_p): Split out
2541 from gimple_types_compatible_p and friends. Do not recurse
2542 to pointed-to types.
2543 (gimple_canonical_type_eq): Use it.
2544 (iterative_hash_canonical_type): Split out from
2545 iterative_hash_gimple_type and friends. Do not recurse
2546 to pointed-to types.
2547 (gimple_canonical_type_hash): Use it, allocate the hash here.
2548
2549 2011-05-11 Revital Eres <revital.eres@linaro.org>
2550
2551 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2552 recognizing doloop.
2553
2554 2011-05-11 Revital Eres <revital.eres@linaro.org>
2555
2556 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2557 instead of PREV_INSN.
2558
2559 2011-05-11 Revital Eres <revital.eres@linaro.org>
2560
2561 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2562 * loop-doloop.c (doloop_condition_get): Likewise.
2563 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2564 (doloop_end): New.
2565 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2566
2567 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2568
2569 * tree.def (CASE_LABEL_EXPR): Add an operand.
2570 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2571
2572 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2573
2574 * c-decl.c (c_override_global_bindings_to_false): Remove.
2575 (global_bindings_p): Don't check
2576 c_override_global_bindings_to_false.
2577 * c-tree.h (c_override_global_bindings_to_false): Remove.
2578 * c-typeck.c (composite_type): Don't set
2579 c_override_global_bindings_to_false.
2580
2581 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2582
2583 PR target/48857, 48495
2584 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2585 (VSX_MODE): Ditto.
2586 (VSX_MOVE_MODE): Ditto.
2587 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2588 VSX vector types. Add V2DImode.
2589 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2590 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2591 (MODES_TIEABLE_P): Ditto.
2592
2593 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2594 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2595 VSX_VECTOR_MODE.
2596 (init_cumulative_args): Ditto.
2597 (rs6000_function_arg_boundary): Ditto.
2598 (rs6000_function_arg_advance_1): Ditto.
2599 (rs6000_function_arg): Ditto.
2600 (rs6000_function_ok_for_sibcall): Ditto.
2601 (emit_frame_save): Ditto.
2602 (rs6000_function_value): Ditto.
2603 (rs6000_libcall_value): Ditto.
2604
2605 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2606
2607 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2608 i386/darwin-lib.h to $libgcc_tm_file.
2609 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2610
2611 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2612
2613 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2614
2615 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2616
2617 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2618 * config/rs6000/rs6000-tables.opt: New file (generated).
2619 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2620 rs6000/rs6000-tables.opt to extra_options.
2621 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2622 * config/rs6000/rs6000.c (rs6000_select): Remove.
2623 (processor_target_table): Move contents to rs6000-cpus.def.
2624 (darwin_rs6000_override_options): Check
2625 global_options_set.x_rs6000_cpu_index instead of
2626 rs6000_select[1].string.
2627 (rs6000_option_override_internal): Likewise.
2628 (rs6000_handle_option): Don't assert that global structures are in
2629 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2630 (rs6000_default_cpu): New variable.
2631 (rs6000_file_start): Set it instead of local default_cpu. Check
2632 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2633 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2634 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2635 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2636 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2637 rs6000_select): Remove.
2638 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2639 Remove.
2640 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2641 * config/rs6000/t-rs6000
2642 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2643 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2644 global_options_set.x_rs6000_cpu_index instead of
2645 rs6000_select[1].string.
2646 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2647 global_options_set.x_rs6000_cpu_index instead of
2648 rs6000_select[1].string.
2649
2650 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2651
2652 * config.gcc (libgcc_tm_file): Define instead of including files
2653 from ../../libgcc/config/ in tm_file.
2654 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2655 * configure: Regenerate.
2656 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2657 libgcc_tm.h, cs-libgcc_tm.h): New.
2658 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2659 (clean): Remove libgcc_tm.h.
2660 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2661 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2662 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2663
2664 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2665
2666 PR target/48896
2667 * config/avr/avr.c (avr_ret_register): Return unsigned int
2668 instead of int.
2669 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2670 it to avr_libcall_value.
2671 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2672 expand_expr.
2673 (avr_expand_binop_builtin): Ditto.
2674 (avr_expand_unop_builtin): Ditto.
2675
2676 2011-05-10 DJ Delorie <dj@redhat.com>
2677
2678 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2679 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2680 * config/rx/rx.c (rx_align_for_label): Add label and
2681 uses_threshold parameters. Do not align when the label is not
2682 used enough.
2683 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2684
2685 2011-05-10 Richard Guenther <rguenther@suse.de>
2686
2687 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2688 a series of conversions and apply foldings similar to what
2689 fold-const does.
2690 (tree_ssa_forward_propagate_single_use_vars): Call it.
2691
2692 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2693
2694 PR tree-optimization/48611
2695 PR tree-optimization/48794
2696 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2697 referenced from RESX or EH_DISPATCH arguments.
2698
2699 PR debug/48928
2700 * dfp.c (decimal_to_decnumber): Handle conversion from
2701 dconst{1,2,m1,half}.
2702
2703 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2704
2705 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2706 for !flag_prefer_avx128.
2707 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2708
2709 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2710
2711 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2712 (fold_ternary_loc): Use expr_location_or.
2713
2714 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2715
2716 PR debug/48853
2717 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2718 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2719 Pmode and mem_mode is not VOIDmode.
2720
2721 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2722
2723 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2724 TYPE_QUAL_RESTRICT): Convert to enum.
2725
2726 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2727
2728 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2729 (const_pow2_1_to_8_operand): Ditto.
2730 (const_pow2_1_to_128_operand): Ditto.
2731 (const_pow2_1_to_32768_operand): Ditto.
2732 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2733 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2734 in insn constraint to check integer value of operand 3.
2735 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2736
2737 (PINSR_MODE): New mode iterator.
2738 (sse2p4_1): New mode attribute.
2739 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2740 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2741 iterator. Use const_int_operand instead of
2742 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2743 exact_log2 in insn constraint to check integer value of operand 3.
2744
2745 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2746
2747 * config/i386/sse.md (blendbits): Remove mode attribute.
2748 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2749 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2750 Check integer value of operand 3 in insn constraint.
2751
2752 2011-05-09 Richard Guenther <rguenther@suse.de>
2753
2754 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2755 for diagnostics.
2756 (lto_symtab_merge): Likewise. Do not register types here.
2757 (lto_symtab_merge_decls_2): Likewise.
2758 (lto_symtab_merge_decls_1): Likewise.
2759 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2760 * gimple.c (enum gtc_mode): Declare.
2761 (gimple_types_compatible_p): Make static.
2762
2763 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2764
2765 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2766 temporary register to match Pmode.
2767
2768 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2769
2770 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2771 and *vec_concatv4si_1_avx.
2772
2773 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2774
2775 PR rtl-optimization/48927
2776 * ira-conflicts.c (commutative_constraint_p): Use
2777 recog_data.alternative_enabled_p to disable alternatives where
2778 "enabled" attribute is false.
2779 (get_dup_num): Ditto.
2780 * ira-lives.c (single_reg_class): Ditto.
2781 (ira_implicitly_set_insn_hard_regs): Ditto.
2782
2783 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2784
2785 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2786 (dataflow_set_preserve_mem_locs): Likewise.
2787
2788 2011-05-09 Philipp Thomas <pth@suse.de>
2789
2790 * config/mep/mep.c (mep_validate_vliw): Syntax description
2791 should not be translated.
2792
2793 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2794
2795 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2796 * config/mips/mips-tables.opt: New file (generated).
2797 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2798 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2799 MIPS_ARCH_OPTION_NATIVE): Define.
2800 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2801 mips-cpus.def.
2802 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2803 mips_parse_cpu): Remove.
2804 (mips_cpu_info_from_opt, mips_default_arch): New.
2805 (mips_handle_option): Don't assert that global structures are in
2806 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2807 (mips_option_override): Use new variables and functions to set
2808 state of these options. Use strcmp to check for individual CPU names.
2809 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2810 definition.
2811 * config/mips/mips.opt (march=): Use ToLower and Enum.
2812 (mips): Use ToLower, Enum and Var.
2813 (mtune=): Use ToLower and Enum.
2814 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2815
2816 2011-05-08 Jan Hubicka <jh@suse.cz>
2817
2818 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2819 Arrange type pairs to be UID ordered.
2820 (gimple_lookup_type_leader): Make inline.
2821
2822 2011-05-09 Nick Clifton <nickc@redhat.com>
2823
2824 PR target/48899
2825 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2826 PROCESSOR_DEFAULT.
2827
2828 PR target/48897
2829 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2830 variable 's'.
2831
2832 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2833
2834 * combine.c (simplify_comparison): Abstract out parts into...
2835 (simplify_compare_const): ... new function.
2836 (try_combine): Generalize parallel arithmetic/compare combining
2837 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2838
2839 2011-05-08 Jan Hubicka <jh@suse.cz>
2840
2841 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2842 (cgraph_create_virtual_clone): Call hooks once virtual clone
2843 is finished.
2844 * cgraph.h (cgraph_clone_node): Update prototype.
2845 * ipa-cp.c (ipcp_estimate_growth): Use
2846 estimate_ipcp_clone_size_and_time.
2847 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2848 * lto-cgraph.c (input_node): Update.
2849 * ipa-inline.c (recursive_inlining): Update.
2850 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2851 (evaluate_conditions_for_known_args): Break out from ...
2852 (evaluate_conditions_for_edge): ... here.
2853 (evaluate_conditions_for_ipcp_clone): New function.
2854 (inline_node_duplication_hook): Update clone summary based
2855 on parameter map.
2856 (estimate_callee_size_and_time): Rename to ...
2857 (estimate_node_size_and_time): take NODE instead of EDGE;
2858 take POSSIBLE_TRUTHS as argument.
2859 (estimate_callee_size_and_time): Update.
2860 (estimate_ipcp_clone_size_and_time): New function.
2861 (do_estimate_edge_time): Update.
2862
2863 2011-05-08 Richard Guenther <rguenther@suse.de>
2864
2865 PR middle-end/48908
2866 PR middle-end/48905
2867 * expmed.c (expand_shift_1): Compute adjusted constant shift
2868 amount manually.
2869
2870 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2871
2872 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2873
2874 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2875
2876 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2877
2878 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2879
2880 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2881
2882 2011-05-07 Jan Hubicka <jh@suse.cz>
2883
2884 * ipa-inline-transform.c (inline_call): Account when program size
2885 decreases.
2886 * ipa-inline.c (relative_time_benefit): New function.
2887 (edge_badness): Reorganize to be power 2 based; fix thinko when
2888 computing badness for negative growth; update comments to match
2889 reality; better dumps.
2890
2891 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2892
2893 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2894 type to bool and adjust comment.
2895 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2896 (fold_mathfn_compare): Remove calls to global_bindings_p.
2897 (fold_inf_compare): Likewise.
2898 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2899 * c-tree.h (global_bindings_p): Adjust prototype.
2900 * c-decl.c (global_bindings_p): Return bool and simplify.
2901
2902 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2903
2904 PR tree-optimization/48837
2905 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2906 when accumulator transformation is performed.
2907
2908 2011-05-06 Jan Hubicka <jh@suse.cz>
2909
2910 * i386.h (ix86_tune_indices): Add
2911 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2912 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2913 * i386.c (initial_ix86_tune_features): Add
2914 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2915 (software_prefetching_beneficial_p): Remove predicate.
2916 (ix86_option_override_internal): Use new macro.
2917
2918 2011-05-06 Jan Hubicka <jh@suse.cz>
2919
2920 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2921
2922 2011-05-06 Jan Hubicka <jh@suse.cz>
2923
2924 * cgraph.c (cgraph_add_thunk): Create real function node instead
2925 of alias node; finalize it and mark needed/reachale; arrange visibility
2926 to be right and add it into the corresponding same comdat group list.
2927 (dump_cgraph_node): Dump thunks.
2928 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2929 cgraph_function_with_gimple_body_p,
2930 cgraph_first_function_with_gimple_body,
2931 cgraph_next_function_with_gimple_body): New functions.
2932 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2933 New macros.
2934 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2935 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2936 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2937 devirtualization when optimizing.
2938 (verify_cgraph_node): Verify thunks.
2939 (cgraph_analyze_function): Analyze thunks.
2940 (cgraph_mark_functions_to_output): Output thunks only in combination
2941 with function they are assigned to.
2942 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2943 alias into normal node.
2944 (assemble_thunks): New functoin.
2945 (cgraph_expand_function): Use it.
2946 * lto-cgraph.c (lto_output_node): Stream thunks.
2947 (input_overwrite_node): Stream in thunks.
2948 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2949 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2950 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2951 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2952 (inline_analyze_function): Do not care about thunk jump functions.
2953 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2954 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2955 cgraph_function_with_gimple_body_p.
2956 * passes.c (do_per_function_toporder): Use
2957 cgraph_function_with_gimple_body_p.
2958 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2959 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2960 (function_called_by_processed_nodes_p): Likewise.
2961
2962 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2963
2964 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2965 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2966 entries.
2967 (mabi=): Replace with separate entries for mabi=altivec,
2968 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2969 mabi=ieeelongdouble and mabi=ibmlongdouble.
2970 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2971 check for -mabi=spe without SPE ABI support here.
2972 (rs6000_handle_option): Replace OPT_mabi_ handling with
2973 OPT_mabi_altivec and OPT_mabi_spe handling.
2974
2975 2011-05-06 Cary Coutant <ccoutant@google.com>
2976
2977 * dwarf2out.c (contains_subprogram_definition): New function.
2978 (should_move_die_to_comdat): Call it.
2979
2980 2011-05-06 Jeff Law <law@redhat.com>
2981
2982 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2983 remove_ctrl_stmt_and_useless_edges.
2984 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2985 (fixup_template_block, thread_single_edge): Likewise.
2986 (mark_threaded_blocks): Use THREAD_TARGET.
2987
2988 2011-05-06 Alan Modra <amodra@gmail.com>
2989
2990 PR target/48900
2991 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2992 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2993
2994 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2995
2996 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2997 constraint modifier to "r".
2998
2999 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3000
3001 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3002 fall through for OPT_mcmodel_.
3003
3004 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3005
3006 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3007 instruction sizes.
3008 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3009
3010 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3011
3012 PR target/47930
3013 * config/arm/arm.opt (marm): Document it.
3014 (mthumb): Reject negative variant.
3015
3016 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3017
3018 PR target/48898
3019 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3020 Fix typo in "ccvt" variable name.
3021
3022 2011-05-06 Tristan Gingold <gingold@adacore.com>
3023
3024 PR target/48895
3025 * config/vms/vms-ar.c (main): Remove cwd variable.
3026
3027 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3028
3029 PR debug/48902
3030 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3031
3032 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3033
3034 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3035 * gimplify.c (gimplify_switch_expr): Likewise.
3036 * omp-low.c (expand_omp_sections): Likewise.
3037 * tree-eh.c (lower_try_finally_switch): Likewise.
3038 (lower_eh_dispatch): Likewise.
3039 * tree.h (build_case_label): Declare.
3040 * tree.c (build_case_label): Define.
3041
3042 2011-05-05 Jason Merrill <jason@redhat.com>
3043
3044 PR c++/40975
3045 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3046 (copy_statement_list): Don't recurse.
3047 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3048 STATEMENT_LIST.
3049
3050 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3051
3052 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3053 through from -mfpu= handling.
3054 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3055
3056 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3057
3058 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3059 POST_MODIFY.
3060
3061 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3062
3063 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3064 for 11.31.
3065 (hppa[12]*-*-hpux11*): Ditto.
3066 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3067 * config/ia64/hpux-unix2003.h: New.
3068 * config/pa/pa-hpux1131.opt: New.
3069 * config/pa/pa-hpux1131.h: New.
3070 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3071 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3072 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3073
3074 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3075
3076 PR debug/48853
3077 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3078 instead of mode as 3rd argument to recursive call.
3079 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3080 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3081 VOIDmode.
3082 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3083 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3084 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3085 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3086
3087 2011-05-05 Julian Brown <julian@codesourcery.com>
3088
3089 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3090 parenthesis in D-register case.
3091
3092 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3093
3094 * opt-functions.awk (var_type_struct): Handle Enum options.
3095 * optc-gen.awk: Don't check range of variables of character type.
3096 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3097 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3098 rs6000_sdata_name, rs6000_explicit_options): Remove.
3099 (rs6000_option_override_internal): Check for -malign-power here.
3100 Use global_options_set instead of rs6000_explicit_options.
3101 (rs6000_parse_fpu_option): Remove.
3102 (rs6000_handle_option): Access variables via opts and opts_set
3103 pointers. Use error_at and warning_at. Add fall-through
3104 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3105 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3106 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3107 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3108 here. Don't use rs6000_parse_fpu_option.
3109 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3110 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3111 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3112 (mrecip=): Use Var.
3113 (mspe): Use Var and Save.
3114 (mtraceback=): Use Enum and Var.
3115 (rs6000_traceback_type): New Enum and EnumValue entries.
3116 (mfloat-gprs=): Use Enum, Var and Save.
3117 (rs6000_float_gprs): New Enum and EnumValue entries.
3118 (mlong-double-): use Var and Save.
3119 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3120 (malign-): Use Enum and Var.
3121 (rs6000_alignment_flags): New Enum and EnumValue entries.
3122 (mfpu=): Use Enum.
3123 (fpu_type_t): New Enum and EnumValue entries.
3124 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3125 global_options_set instead of rs6000_explicit_options.
3126 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3127 global_options_set instead of rs6000_explicit_options.
3128 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3129 global_options_set instead of rs6000_explicit_options.
3130 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3131 global_options_set instead of rs6000_explicit_options.
3132 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3133 global_options_set instead of rs6000_explicit_options.
3134 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3135 global_options_set instead of rs6000_explicit_options.
3136 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3137 definition.
3138 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3139 global_options_set instead of rs6000_explicit_options.
3140 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3141 (rs6000_cmodel): New Enum and EnumValue entries.
3142 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3143 global_options_set instead of rs6000_explicit_options.
3144 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3145 (mtls-size=): Use Enum and Var.
3146 (rs6000_tls_size): New Enum and EnumValue entries.
3147
3148 2011-05-05 Michael Matz <matz@suse.de>
3149
3150 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3151 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3152 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3153 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3154 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3155 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3156 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3157 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3158 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3159 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3160 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3161 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3162 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3163 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3164 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3165 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3166
3167 2011-05-05 Richard Guenther <rguenther@suse.de>
3168
3169 * expmed.c (expand_variable_shift): Rename to ...
3170 (expand_shift_1): ... this. Take an expanded shift amount.
3171 For rotates recurse directly not building trees for the shift amount.
3172 (expand_variable_shift): Wrap around expand_shift_1.
3173 (expand_shift): Adjust.
3174
3175 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3176
3177 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3178
3179 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3180
3181 * tree.h (get_pending_sizes): Remove prototype.
3182 (put_pending_size): Likewise.
3183 (put_pending_sizes): Likewise.
3184 * stor-layout.c (pending_sizes): Delete.
3185 (get_pending_sizes): Likewise.
3186 (put_pending_size): Likewise.
3187 (put_pending_sizes): Likewise.
3188 (variable_size): Do not call put_pending_size and tidy up.
3189 * function.h (struct function): Remove dont_save_pending_sizes_p.
3190 * lto-streamer-in.c (input_function): Do not stream it.
3191 * lto-streamer-out.c (output_function): Likewise.
3192 * tree-inline.c (initialize_cfun): Do not copy it.
3193 * c-decl.c (store_parm_decls): Do not set it.
3194 * omp-low.c (create_task_copyfn): Likewise.
3195 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3196
3197 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3198
3199 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3200 conditions.
3201 (*movdf_internal): Ditto.
3202 (*movdf_internal_nointeger): Ditto.
3203 (*movsf_internal): Ditto.
3204
3205 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3206
3207 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3208 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3209 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3210 (c_variable_size): Remove.
3211 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3212 call put_pending_sizes.
3213 (get_parm_info): Add parameter expr. Use it to set
3214 arg_info->pending_sizes.
3215 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3216 get_pending_sizes.
3217 * c-parser.c (c_parser_parms_declarator): Update call to
3218 c_parser_parms_list_declarator.
3219 (c_parser_parms_list_declarator): Take parameter expr. Update
3220 call to push_parm_decl. Update recursive call. Don't call
3221 get_pending_sizes. Update calls to get_parm_info.
3222 (c_parser_objc_method_definition): Update calls to
3223 c_parser_objc_method_decl and objc_start_method_definition.
3224 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3225 (c_parser_objc_method_decl): Add parameter expr. Update call to
3226 grokparm.
3227 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3228 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3229 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3230
3231 2011-05-05 Michael Hope <michael.hope@linaro.org>
3232
3233 PR pch/45979
3234 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3235 __ARM_EABI__ hosts.
3236
3237 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3238
3239 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3240 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3241 (spu_output_mi_thunk): New function.
3242
3243 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3244
3245 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3246 targetm.asm_out.print_operand.
3247 * config/sol2.c: Include target.h.
3248
3249 2011-05-04 Jan Hubicka <jh@suse.cz>
3250
3251 * ipa-inline.c (reset_edge_caches): New function.
3252 (update_caller_keys): Add check_inlinablity_for; do not
3253 reset edge caches; remove now unnecesary loop.
3254 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3255 (update_all_callee_keys): Likewise.
3256 (inline_small_functions): Sanity check cache; update code
3257 recomputing it.
3258
3259 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3260
3261 PR rtl-optimization/47612
3262 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3263 as the last insn of the sequence to be moved.
3264
3265 2011-05-04 Tobias Burnus <burnus@net-b.de>
3266
3267 PR fortran/48864
3268 * doc/invoke.texi (Ofast): Document that it
3269 enables Fortran's -fno-protect-parens.
3270
3271 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3272
3273 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3274
3275 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3276
3277 * stor-layout.c (variable_size): Do not issue errors.
3278
3279 2011-05-04 Richard Guenther <rguenther@suse.de>
3280
3281 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3282 for array-ref indices.
3283 (tree_coverage_counter_addr): Likewise.
3284 (build_fn_info_type): Use size_int for index types.
3285 (build_gcov_info): Likewise.
3286
3287 2011-05-04 Richard Guenther <rguenther@suse.de>
3288
3289 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3290 to build_int_cst.
3291 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3292 for constructor indices.
3293 (push_init_level): Likewise.
3294
3295 2011-05-04 Richard Guenther <rguenther@suse.de>
3296
3297 * explow.c (promote_mode): Move variable declarations before code.
3298
3299 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3300
3301 * tree.h (build_function_type_array): Declare.
3302 (build_varargs_function_type_array): Declare.
3303 (build_function_type_vec, build_varargs_function_type_vec): Define.
3304 * tree.c (build_function_type_array_1): New function.
3305 (build_function_type_array): New function.
3306 (build_varargs_function_type_array): New function.
3307
3308 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3309
3310 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3311 before setting STMT_VINFO_TYPE.
3312
3313 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3314
3315 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3316 instead of spu_pass_by_reference.
3317
3318 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3319
3320 * calls.c (emit_library_call_value_1): Invoke
3321 promote_function_mode hook on libcall arguments.
3322 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3323 argument being NULL.
3324 * targhooks.c (default_promote_function_mode): Lisewise.
3325 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3326 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3327
3328 * doc/tm.texi: Document that TYPE argument might be NULL.
3329
3330 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3331
3332 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3333
3334 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3335
3336 From Bernd Schmidt
3337 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3338
3339 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3340
3341 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3342 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3343 Move ...
3344 * mips-tfile.c: ... here.
3345 Don't include coretypes.h, tm.h, filenames.h.
3346 (saber_stop): Remove definition and all calls.
3347 [__SABER__]: Remove.
3348 (__LINE__): Remove default.
3349 (Size_t, Ptrdiff_t): Remove definitions.
3350 Replace by size_t, ptrdiff_t.
3351 [!MIPS_DEBUGGING_INFO]: Remove.
3352 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3353 (progname): Add const.
3354 (STATIC): Remove.
3355 Replace all uses by static.
3356 (ALIGN_SYMTABLE_OFFSET): Remove default.
3357 * mips-tdump.c: Don't include coretypes.h, tm.h.
3358 Remove !MIPS_IS_STAB guard.
3359 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3360 $(TM_H), filenames.h dependencies.
3361 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3362
3363 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3364
3365 From Jie Zhang
3366 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3367 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3368
3369 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3370
3371 From Bernd Schmidt
3372 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3373 account and save/restore RETS.
3374 (PROFILE_BEFORE_PROLOGUE): Define.
3375 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3376 the push insn to use predecrement.
3377
3378 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3379
3380 From Jie Zhang
3381 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3382
3383 2011-05-04 Nick Clifton <nickc@redhat.com>
3384
3385 * config/mn10300/mn10300.c: Include cfgloop.h.
3386 (DUMP): New macro.
3387 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3388 Lcc or a FLcc insn into the instruction stream.
3389 (mn10300_block_contains_call): New function. Returns true if the
3390 given basic block contains a CALL insn.
3391 (mn10300_loop_contains_call_insn): New function. Returns true if
3392 the given loop contains a CALL insn.
3393 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3394 to use the SETLB and Lcc or FLcc insns.
3395 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3396 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3397 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3398 disable the SETLB optimization.
3399 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3400 __SETLB__ or __NO_SETLB__.
3401 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3402 (movsf_internal): Handle MDR register.
3403 (cmpsi): Make visible.
3404 (setlb): New pattern.
3405 (Lcc): New pattern.
3406 (FLcc): New pattern.
3407
3408 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3409
3410 PR target/48860
3411 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3412 for reg<->xmm moves.
3413 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3414 (vec_concatv2di_rex64_sse): Ditto.
3415 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3416 (*vec_extractv2di_1_rex64): Ditto.
3417
3418 Revert:
3419 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3420
3421 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3422 reg<->xmm moves.
3423 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3424
3425 2011-05-04 Richard Guenther <rguenther@suse.de>
3426
3427 * tree.h (int_const_binop): Remove notrunc argument.
3428 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3429 create integer constants that are properly truncated.
3430 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3431 (const_binop): Remove zero notrunc argument to int_const_binop.
3432 (size_binop_loc): Likewise.
3433 (fold_div_compare): Likewise.
3434 (maybe_canonicalize_comparison_1): Likewise.
3435 (fold_comparison): Likewise.
3436 (fold_binary_loc): Likewise.
3437 (multiple_of_p): Likewise.
3438 * expr.c (store_constructor): Likewise.
3439 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3440 (maybe_fold_stmt_addition): Likewise.
3441 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3442 * stor-layout.c (layout_type): Likewise.
3443 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3444 * tree-sra.c (build_ref_for_offset): Likewise.
3445 (build_user_friendly_ref_for_offset): Likewise.
3446 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3447 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3448 * tree-ssa-loop-niter.c (inverse): Likewise.
3449 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3450 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3451 * tree-switch-conversion.c (check_range): Likewise.
3452 (build_constructors): Likewise.
3453 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3454 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3455 (extract_range_from_assert): Likewise.
3456 (vrp_int_const_binop): Likewise.
3457 (extract_range_from_binary_expr): Likewise.
3458 (extract_range_from_unary_expr): Likewise.
3459 (check_array_ref): Likewise.
3460 (find_case_label_range): Likewise.
3461 (simplify_div_or_mod_using_ranges): Likewise.
3462 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3463 comparing case labels for merging.
3464
3465 2011-05-03 Mark Wielaard <mjw@redhat.com>
3466
3467 * dwarf2out.c (debug_str_hash_forced): Removed.
3468 (gen_label_for_indirect_string): Removed.
3469 (get_debug_string_label): Removed.
3470 (AT_string_form): Generate label directly.
3471 (output_indirect_string): Test indirect_string_node for
3472 DW_FORM_strp instead of checking label and refcount.
3473 (prune_indirect_string): Removed.
3474 (prune_unused_types): Don't check debug_str_hash_forced or
3475 call prune_indirect_string.
3476
3477 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3478
3479 PR other/48093
3480 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3481
3482 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3483
3484 PR debug/47994
3485 PR debug/47919
3486 * combine.c (try_combine): Skip debug insns at m_split tests.
3487
3488 2011-04-26 Mark Wielaard <mjw@redhat.com>
3489
3490 PR42288
3491 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3492 when info_section_emitted.
3493
3494 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3495
3496 * config/mips/mips-opts.h: New.
3497 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3498 to mips-opts.h.
3499 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3500 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3501 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3502 via opts pointer.
3503 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3504 mips-opts.h.
3505 (mips_abi, mips_code_readable): Don't declare.
3506 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3507 (mabi=): Use Enum and Var.
3508 (mips_abi): New Enum and EnumValue entries.
3509 (mcode-readable=): Use Enum and Var.
3510 (mips_code_readable_setting): New Enum and EnumValue entries.
3511 (mr10k-cache-barrier=): Use Enum and Var.
3512 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3513
3514 2011-05-03 Jan Hubicka <jh@suse.cz>
3515
3516 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3517 replace hash by pointer map.
3518 (cgraph_node_set_element_def, cgraph_node_set_element,
3519 const_cgraph_node_set_element, varpool_node_set_element_def,
3520 varpool_node_set_element, const_varpool_node_set_element): Remove.
3521 (free_cgraph_node_set, free_varpool_node_set): New function.
3522 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3523 * tree-emutls.c: Free varpool node set.
3524 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3525 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3526 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3527 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3528 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3529 Move here from ipa.c; implement using pointer_map
3530 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3531 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3532 debug_cgraph_node_set, varpool_node_set_new,
3533 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3534 dump_varpool_node_set, debug_varpool_node_set):
3535 Move to ipa-uitls.c.
3536 * passes.c (ipa_write_summaries): Update.
3537
3538 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3539
3540 From Mike Frysinger:
3541 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3542 bf542/bf544/bf547/bf548/bf549.
3543
3544 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3545
3546 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3547
3548 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3549
3550 From Bernd Schmidt:
3551 * config/bfin/bfin.md (MOVCC): New mode_macro.
3552 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3553 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3554 comments from generated assembly.
3555
3556 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3557
3558 From Bernd Schmidt
3559 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3560 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3561 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3562 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3563 * config/bfin/lib1funcs.asm (___muldi3): New function.
3564
3565 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3566
3567 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3568 build_function_type_list instead of build_function_type.
3569 Rearrange initialization of `args' to do so.
3570
3571 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3572
3573 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3574 instead of build_function_type.
3575
3576 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3577
3578 * config/rs6000/rs6000.c (spe_init_builtins): Call
3579 build_function_type_list instead of build_function_type.
3580 (paired_init_builtins, altivec_init_builtins): Likewise.
3581 (builtin_function_type): Likewise.
3582
3583 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3584
3585 * config/sh/sh.c (sh_media_init_builtins): Call
3586 build_function_type_list instead of build_function_type.
3587
3588 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3589
3590 * config/sparc/sparc.c (sparc_file_end): Call
3591 build_function_type_list instead of build_function_type.
3592
3593 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3594
3595 * config/alpha/alpha.c (alpha_init_builtins): Call
3596 build_function_type_list instead of build_function_type.
3597
3598 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3599
3600 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3601 build_function_type_list instead of build_function_type.
3602
3603 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3604
3605 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3606 build_function_type_list instead of build_function_type.
3607 Delete `endlink' variable.
3608
3609 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3610
3611 * config/avr/avr.c (avr_init_builtins): Call
3612 build_function_type_list instead of build_function_type.
3613
3614 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3615
3616 * config/picochip/picochip.c (picochip_init_builtins): Call
3617 build_function_type_list instead of build_function_type.
3618 Delete `endlink' variable.
3619
3620 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3621
3622 * config/bfin/bfin.c (bfin_init_builtins): Call
3623 build_function_type_list instead of build_function_type.
3624
3625 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3626
3627 From Bernd Schmidt
3628 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3629 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3630
3631 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3632
3633 From Jie Zhang:
3634 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3635 libbffastfp overrides libgcc when -mfast-fp.
3636
3637 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3638
3639 Originally from Bernd Schmidt
3640 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3641 * config/bfin/bfin.c (override_options): Test it and error if
3642 TARGET_FDPIC.
3643
3644 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3645
3646 Originally From Bernd Schmidt
3647 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3648 FD-PIC.
3649
3650 2011-05-03 Jeff Law <law@redhat.com>
3651
3652 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3653 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3654 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3655 than accessing AUX field directly. Free the AUX field before
3656 clearing it.
3657 (thread_block, thread_through_loop_header): Likewise.
3658 (thread_single_edge, mark_threaded_blocks): Likewise.
3659 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3660 (register_jump_thread): Do not attempt to thread to a NULL edge.
3661
3662 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3663
3664 * function.c (init_function_start): Call decide_function_section.
3665 * varasm.c (decide_function_section): New function.
3666 (assemble_start_function): When not using
3667 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3668 or first_function_block_is_cold.
3669 * rtl.h (decide_function_section): Declare.
3670
3671 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3672 Jakub Jelinek <jakub@redhat.com>
3673
3674 PR target/48774
3675 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3676 only succeed if req_mode is the same as set_mode.
3677
3678 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3679
3680 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3681 * genemit.c (gen_exp): Handle RETURN.
3682 * emit-rtl.c (verify_rtx_sharing): Likewise.
3683 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3684 * rtl.c (copy_rtx): RETURN is shared.
3685 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3686 (ret_rtx): New.
3687 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3688 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3689 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3690 * config/cris/cris.c (cris_expand_return): Likewise.
3691 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3692 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3693 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3694 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3695 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3696 Likewise.
3697 * config/v850/v850.c (expand_epilogue): Likewise.
3698 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3699 * config/arm/arm.md (epilogue): Likewise.
3700 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3701 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3702 variable to ret_reg.
3703
3704 2011-05-03 Richard Guenther <rguenther@suse.de>
3705
3706 PR lto/48846
3707 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3708 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3709 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3710
3711 2011-05-03 Richard Guenther <rguenther@suse.de>
3712
3713 * c-decl.c (grokdeclarator): Instead of looking at
3714 TREE_OVERFLOW check if the constant fits in the index type.
3715
3716 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3717
3718 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3719 (vec_store_lanes<mode><mode>): Likewise.
3720
3721 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3722
3723 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3724 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3725 convert_optab_index values.
3726 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3727 * genopinit.c (optabs): Initialize the new optabs.
3728 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3729 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3730 (expand_STORE_LANES): New functions.
3731 * tree.h (build_array_type_nelts): Declare.
3732 * tree.c (build_array_type_nelts): New function.
3733 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3734 (vect_model_load_cost): Likewise.
3735 (vect_store_lanes_supported, vect_load_lanes_supported)
3736 (vect_record_strided_load_vectors): Declare.
3737 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3738 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3739 (vect_transform_strided_load): Split out statement recording into...
3740 (vect_record_strided_load_vectors): ...this new function.
3741 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3742 (write_vector_array, create_array_ref): New functions.
3743 (vect_model_store_cost): Add store_lanes_p argument.
3744 (vect_model_load_cost): Add load_lanes_p argument.
3745 (vectorizable_store): Try to use store-lanes functions for
3746 interleaved stores.
3747 (vectorizable_load): Likewise load-lanes and loads.
3748 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3749 to vect_model_store_cost.
3750 (vect_build_slp_tree): Likewise vect_model_load_cost.
3751
3752 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3753
3754 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3755 * hooks.c (hook_bool_mode_uhwi_false): New function.
3756 * target.def (array_mode_supported_p): New hook.
3757 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3758 * doc/tm.texi: Regenerate.
3759 * stor-layout.c (mode_for_array): New function.
3760 (layout_type): Use it.
3761 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3762 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3763
3764 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3765
3766 PR target/48723
3767 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3768 for -fstack-check if the size to allocate is negative.
3769
3770 2011-05-02 Lawrence Crowl <crowl@google.com>
3771
3772 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3773 (timevar_cond_start): New for starting a timer only when it is not
3774 already running.
3775 (timevar_cond_stop): New for stopping a timer when it was not already
3776 running.
3777
3778 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3779 (timevar_cond_start): New as above.
3780 (timevar_cond_stop): New as above.
3781
3782 * timevar.def: Add start/stop timers for compiler phases,
3783 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3784 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3785 and TV_PHASE_FINALIZE.
3786 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3787 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3788 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3789 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3790 Make unused TV_OVERLOAD into a start/stop timer.
3791
3792 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3793 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3794 to indicate that they are start/stop timers.
3795
3796 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3797 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3798 Move initialization to do_compile.
3799 (do_compile): Add initialization from above.
3800 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3801
3802 * c-decl.c (c_write_global_declarations): Add start/stop of
3803 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3804
3805 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3806 or TV_PARSE_INLINE, as appropriate.
3807 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3808 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3809
3810 2011-05-02 Jason Merrill <jason@redhat.com>
3811
3812 PR c++/40975
3813 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3814
3815 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3816
3817 PR c/35445
3818 * c-decl.c (finish_decl): Only create a composite if the types are
3819 compatible.
3820
3821 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3822
3823 * config/fr30/fr30-protos.h (Mmode): Don't define.
3824 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3825 definition where used.
3826 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3827 define. Expand definitions where used.
3828 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3829 Expand definitions where used.
3830 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3831 rx_function_arg, rx_function_arg_advance,
3832 rx_function_arg_boundary): Expand definitions of those macros.
3833 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3834 definition where used.
3835
3836 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3837
3838 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3839 reg<->xmm moves.
3840 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3841 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3842 with *movv2sf_internal_rex64_avx.
3843 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3844 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3845 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3846 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3847 "vex" in "prefix" attribute calculation.
3848 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3849
3850 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3851
3852 PR target/47951
3853 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3854 inputs match the output.
3855
3856 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3857
3858 PR target/47955
3859 * config/m68k/m68k.c (m68k_expand_prologue): Set
3860 current_function_static_stack_size.
3861
3862 2011-05-02 Jan Hubicka <jh@suse.cz>
3863
3864 * lto-streamer.c (lto_streamer_cache_insert_1,
3865 lto_streamer_cache_lookup, lto_streamer_cache_create,
3866 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3867 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3868
3869 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3870
3871 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3872 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3873 config/m68k/t-opts: New files.
3874 * config/m68k/m68k-tables.opt: New file (generated).
3875 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3876 extra_options and m68k/t-opts to tmake_file.
3877 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3878 (all_isas): Initialize using m68k-isas.def.
3879 (all_microarchs): Initialize using m68k-microarchs.def.
3880 (m68k_find_selection): Remove.
3881 (m68k_handle_option): Don't assert that global structures are in
3882 use. Use error_at. Access variables via opts pointer. Don't
3883 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3884 directly for -m68020-40 and -m68020-60.
3885 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3886 m68k_tune_entry here.
3887 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3888 to m68k-opts.h.
3889 (m68k_library_id_string): Remove declaration.
3890 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3891 (m68k_library_id_string): New Variable.
3892 (march=, mcpu=, mtune=): Use Enum and Var.
3893
3894 2011-05-02 Richard Guenther <rguenther@suse.de>
3895
3896 * varasm.c (output_constructor_regular_field): Compute zero-based
3897 index with double-ints. Make sure to ICE instead of producing
3898 wrong code.
3899 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3900 in asserts. Properly use a signed type.
3901
3902 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3903
3904 * config/i386/sse.md (V): New mode iterator.
3905 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3906 TARGET_SSE2.
3907 (V_256): Rename from AVX256MODE.
3908 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3909 condition to all users.
3910 (VF1): Ditto.
3911 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3912 condition to all users.
3913 (VF_128): Make V4SF mode unconditional.
3914 (VF_256): Rename from AVX256MODEF2P.
3915 (VI4F_128): Rename from SSEMODE4S.
3916 (VI8F_128): Rename from SSEMODE2D.
3917 (VI4F_256): Rename from AVX256MODE8P.
3918 (VI8F_256): Rename from AVX256MODE4P.
3919 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3920 (ssescalarmodesuffix): Remove SF and DF modes.
3921 (SSEMODE124): Remove.
3922 (SSEMODE1248): Ditto.
3923 (SSEMODEF2P): Ditto.
3924 (AVXMODEF2P): Ditto.
3925 (AVXMODEFDP): Ditto.
3926 (AVXMODEFSP): Ditto.
3927 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3928 unconditional.
3929 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3930 unconditional.
3931 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3932 xop_pcmov_<mode>256. Use V mode iterator.
3933
3934 Adjust RTX patterns globally for renamed mode attributes.
3935
3936 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3937
3938 * haifa-sched.c (sched_emit_insn): Emit insn before first
3939 non-scheduled insn. Inform back-end about new insn. Add
3940 new insn to scheduled_insns list.
3941
3942 2011-05-02 Richard Guenther <rguenther@suse.de>
3943
3944 PR tree-optimization/48822
3945 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3946 (process_scc): Indicate which iteration we start.
3947
3948 2011-05-02 Jan Hubicka <jh@suse.cz>
3949
3950 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3951 (lto_section_overrun): New.
3952 * lto-section-out.c (append_block): Rename to ...
3953 (lto_append_block): ... this one; export.
3954 (lto_output_1_stream): Move lto lto-streamer.h
3955 (lto_output_data_stream): Update.
3956 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3957 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3958 functions.
3959
3960 2011-05-02 Richard Guenther <rguenther@suse.de>
3961
3962 * tree.c (tree_code_counts): New global array.
3963 (record_node_allocation_statistics): Count individual tree codes.
3964 (dump_tree_statistics): Dump individual code stats.
3965
3966 2011-05-01 Jan Hubicka <jh@suse.cz>
3967
3968 * ipa-inline.c (caller_growth_limits): Fix thinko when
3969 looking for largest stack frame.
3970 * ipa-inline.h (dump_inline_summary): Declare.
3971 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3972 on stack usage.
3973 (dump_inline_summary): Export.
3974 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3975
3976 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3977
3978 * reginfo.c (memory_move_cost): Change rclass argument type form
3979 'enum reg_class' to reg_class_t.
3980 * reload.h (memory_move_cost): Update prototype.
3981 * postreload.c reload_cse_simplify_set): Change type dclass var to
3982 reg_class_t.
3983 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3984 Update prototype.
3985 (ira_allocate_and_set_costs): Change aclass argument type form
3986 'enum reg_class' to reg_class_t.
3987 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3988 Change aclass argument type to reg_class_t.
3989 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3990 to reg_class_t.
3991 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3992 memory_move_cost call.
3993
3994 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3995 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3996 Change type tmp var to reg_class_t.
3997
3998 2011-04-30 Jan Hubicka <jh@suse.cz>
3999
4000 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4001 inlining into function with flatten attribute.
4002 (want_inline_small_function_p): Be more realistic about inlining
4003 cold calls where callee size grows.
4004
4005 2011-04-30 Jan Hubicka <jh@suse.cz>
4006
4007 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4008 flags.
4009
4010 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4011
4012 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4013 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4014 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4015 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4016 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4017 (print_operand): Rename to...
4018 (sparc_print_operand): ...this. Make static. Adjust
4019 sparc_print_operand function call.
4020 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4021 functions.
4022
4023 2011-04-30 Jan Hubicka <jh@suse.cz>
4024
4025 PR middle-end/48752
4026 * ipa-inline.c (early_inliner): Disable when doing late
4027 addition of function.
4028
4029 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4030
4031 * dwarf2out.c (get_address_mode): New inline.
4032 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4033 if not dwarf_strict emit
4034 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4035 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4036 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4037 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4038 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4039 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4040 mem_loc_descriptor callers.
4041 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4042 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4043 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4044 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4045 (base_types): New variable.
4046 (get_base_type_offset, calc_base_type_die_sizes,
4047 base_type_for_mode, mark_base_types, base_type_cmp,
4048 move_marked_base_types): New functions.
4049 (calc_die_sizes): Assert that die_offset is 0 or equal to
4050 next_die_offset.
4051 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4052 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4053 callers. If not dwarf_strict, call mem_loc_descriptor even for
4054 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4055 (gen_subprogram_die): Don't give up on call site parameters
4056 with non-integral or large integral modes. Adjust
4057 mem_loc_descriptor callers.
4058 (prune_unused_types): Call prune_unused_types_mark on base_types
4059 vector entries.
4060 (resolve_addr): Call mark_base_types.
4061 (dwarf2out_finish): Call move_marked_base_types.
4062
4063 PR tree-optimization/48809
4064 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4065 type.
4066 (gen_inbound_check): Don't compute index_expr - range_min in utype
4067 again, instead reuse SSA_NAME initialized in build_arrays.
4068 Remove two useless gsi_for_stmt calls.
4069
4070 2011-04-29 Jeff Law <law@redhat.com>
4071
4072 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4073
4074 2011-04-29 Martin Jambor <mjambor@suse.cz>
4075
4076 * cgraph.h (cgraph_postorder): Remove declaration.
4077 * ipa-utils.h (ipa_free_postorder_info): Declare.
4078 (ipa_reverse_postorder): Likewise.
4079 * cgraphunit.c: Include ipa-utils.h.
4080 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4081 * ipa-inline.c: Include ipa-utils.h.
4082 (ipa_inline): Update call to ipa_reverse_postorder.
4083 * ipa-pure-const.c (propagate_pure_const): Update call to
4084 ipa_reduced_postorder and ipa_print_order. Call
4085 ipa_free_postorder_info to clean up.
4086 (propagate_nothrow): Likewise.
4087 * ipa-reference.c (propagate): Removed a useless call to
4088 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4089 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4090 * ipa.c: Include ipa-utils.h.
4091 (ipa_profile): Update call to ipa_reverse_postorder.
4092 (cgraph_postorder): Moved to...
4093 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4094 (ipa_utils_print_order): Renamed to ipa_print_order.
4095 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4096 comments.
4097 (ipa_free_postorder_info): New function.
4098 * passes.c: Include ipa-utils.h.
4099 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4100 (ipa_write_summaries): Likewise.
4101 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4102 (cgraphunit.o): Likewise.
4103 (ipa.o): Likewise.
4104 (ipa-inline.o): Likewise.
4105
4106 2011-04-29 Jan Hubicka <jh@suse.cz>
4107
4108 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4109 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4110 * ipa-inline.h (clause_t): Turn into unsigned int.
4111 * ipa-inline-analysis.c (add_clause): Do more simplification.
4112 (and_predicates): Shortcut more cases.
4113 (predicates_equal_p): Move forward; check that clauses are properly
4114 ordered.
4115 (or_predicates): Shortcut more cases.
4116 (edge_execution_predicate): Rewrite as...
4117 (set_cond_stmt_execution_predicate): ... this function; handle
4118 __builtin_constant_p.
4119 (set_switch_stmt_execution_predicate): New .
4120 (compute_bb_predicates): New.
4121 (will_be_nonconstant_predicate): Update TODO.
4122 (estimate_function_body_sizes): Use compute_bb_predicates
4123 and free them later, always try to estimate if stmt is constant.
4124 (estimate_time_after_inlining, estimate_size_after_inlining):
4125 Gracefully handle optimized out edges.
4126 (read_predicate): Fix off by one error.
4127
4128 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4129
4130 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4131
4132 2011-04-27 Xinliang David Li <davidxl@google.com>
4133
4134 * tree-profile.c (init_ic_make_global_vars): Set
4135 tls attribute on ic vars.
4136 * coverage.c (coverage_end_function): Initialize
4137 function_list with zero.
4138
4139 2011-04-29 Richard Guenther <rguenther@suse.de>
4140
4141 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4142 for the type of the result.
4143 (fold_builtin_isascii): Likewise.
4144 (fold_builtin_toascii): Use integer_type_node where appropriate.
4145 (fold_builtin_logb): Likewise.
4146 (fold_builtin_frexp): Likewise.
4147 (fold_builtin_strstr): Likewise.
4148 (fold_builtin_strpbrk): Likewise.
4149 (fold_builtin_fputs): Likewise.
4150 (fold_builtin_sprintf): Likewise.
4151 (fold_builtin_snprintf): Likewise.
4152 (fold_builtin_printf): Likewise.
4153 (do_mpfr_remquo): Use a proper type for the assigned constant.
4154 (do_mpfr_lgamma_r): Likewise.
4155 * dwarf2out.c (resolve_one_addr): Use size_int.
4156 * except.c (init_eh): Likewise.
4157 (assign_filter_values): Use integer_type_node for filter values.
4158 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4159 indices.
4160 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4161 for EH region numbers.
4162 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4163 for the shift amount.
4164
4165 2011-04-29 Richard Guenther <rguenther@suse.de>
4166
4167 * expr.h (expand_shift): Rename to ...
4168 (expand_variable_shift): ... this.
4169 (expand_shift): Take a constant shift amount.
4170 * expmed.c (expand_shift): Rename to ...
4171 (expand_variable_shift): ... this.
4172 (expand_shift): New wrapper around expand_variable_shift.
4173 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4174 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4175 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4176 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4177 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4178 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4179 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4180 emit_store_flag_1, emit_store_flag): Likewise.
4181 * builtins.c (expand_builtin_signbit): Likewise.
4182 * calls.c (load_register_parameters): Likewise.
4183 * function.c (assign_parm_setup_block): Likewise.
4184 * lower-subreg.c (resolve_shift_zext): Likewise.
4185 * optabs.c (widen_bswap, expand_abs_nojump,
4186 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4187 * spu/spu.c (spu_expand_extv): Likewise.
4188 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4189
4190 2011-04-29 Richard Guenther <rguenther@suse.de>
4191
4192 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4193 for the remapped region number.
4194 * predict.c (build_predict_expr): Use integer_type_node for the
4195 predict kind.
4196 * fold-const.c (fold_binary_loc): Use integer_type_node for
4197 the shift amount. Use a proper type for the PLUS_EXPR operand.
4198
4199 2011-04-29 Michael Matz <matz@suse.de>
4200
4201 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4202 other trees that just builtins.
4203 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4204
4205 2011-04-29 Richard Guenther <rguenther@suse.de>
4206
4207 * tree-nested.c (get_trampoline_type): Use size_int.
4208 (get_nl_goto_field): Likewise.
4209 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4210 for all indexes.
4211 (lower_eh_constructs_2): Likewise.
4212 (lower_resx): Likewise.
4213 (lower_eh_dispatch): Likewise.
4214 * tree-mudflap.c (mf_build_string): Use size_int.
4215 (mudflap_register_call): Use integer_type_node for the flag.
4216 (mudflap_enqueue_constant): Use size_int.
4217 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4218 instead of rebuilding it.
4219
4220 2011-04-29 Richard Guenther <rguenther@suse.de>
4221
4222 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4223 Handle OBJ_TYPE_REF.
4224 (find_func_aliases_for_call): Use it more consistently.
4225
4226 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4227
4228 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4229 (rank_for_schedule): Use it.
4230 (schedule_block): Set it.
4231
4232 2011-04-28 David Li <davidxl@google.com>
4233
4234 * tree.c (crc32_string): Use crc32_byte.
4235 (crc32_byte): New function.
4236 * tree.h (crc32_byte): New function.
4237 * gcov.c (read_graph_file): Handle new cfg_cksum.
4238 (read_count_file): Ditto.
4239 * profile.c (instrument_values): Ditto.
4240 (get_exec_counts): Ditto.
4241 (read_profile_edge_counts): Ditto.
4242 (compute_branch_probabilities): Ditto.
4243 (compute_value_histograms): Ditto.
4244 (branch_prob): Ditto.
4245 (end_branch_prob): Ditto.
4246 * coverage.c (read_counts_file): Ditto.
4247 (get_coverage_counts): Ditto.
4248 (tree_coverage_counter_addr): Ditto.
4249 (coverage_checksum_string): Ditto.
4250 (coverage_begin_output): Ditto.
4251 (coverage_end_function): Ditto.
4252 (build_fn_info_type): Ditto.
4253 (build_fn_info_value): Ditto.
4254 * libgcov.c (gcov_exit): Ditto.
4255 * gcov-dump.c (tag_function): Ditto.
4256 (compute_checksum): Remove.
4257
4258 2011-04-29 Alan Modra <amodra@gmail.com>
4259
4260 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4261 unspec plus offset. Tidy macho code.
4262
4263 2011-04-29 Martin Jambor <mjambor@suse.cz>
4264
4265 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4266 node instead of a decl. Update all callers.
4267 * cgraph.h: Update declaration.
4268
4269 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4270
4271 PR tree-optimization/48765
4272 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4273 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4274 to indicate if loop aware SLP is being used. Scan the statements
4275 and update the vectorization factor according to the type of
4276 vectorization before statement analysis.
4277 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4278 pass it to vect_analyze_loop_operations.
4279 (vectorizable_reduction): Set number of copies to 1 in case of pure
4280 SLP statement.
4281 * tree-vect-stmts.c (vectorizable_conversion,
4282 vectorizable_assignment, vectorizable_shift,
4283 vectorizable_operation, vectorizable_type_demotion,
4284 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4285 Likewise.
4286 (vectorizable_condition): Move the check that it is not SLP
4287 vectorization before the number of copies check.
4288 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4289 to vectorize the loop using SLP.
4290
4291 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4292
4293 PR middle-end/48597
4294 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4295 inline asm.
4296
4297 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4298
4299 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4300 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4301 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4302 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4303 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4304 linux*.h headers.
4305 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4306 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4307 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4308 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4309 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4310 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4311 REG_NAME.
4312 * config/i386/linux.h (REG_NAME): Don't define.
4313 * config/i386/linux64.h (REG_NAME): Don't define.
4314 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4315 Undefine before defining.
4316
4317 2011-04-28 Jan Hubicka <jh@suse.cz>
4318
4319 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4320 nonconstant_names array.
4321 (estimate_function_body_sizes): Build nonconstant_names array; handle
4322 BUILT_IN_CONSTANT_P.
4323
4324 2011-04-28 Richard Guenther <rguenther@suse.de>
4325
4326 PR bootstrap/48804
4327 Revert
4328 2011-04-28 Richard Guenther <rguenther@suse.de>
4329
4330 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4331 as late as possible.
4332
4333 2011-04-28 Richard Guenther <rguenther@suse.de>
4334
4335 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4336 (debug_constraint): Do it here.
4337 (dump_constraints): And here.
4338 (rewrite_constraints): And here.
4339 (dump_constraint_edge): Remove.
4340 (dump_constraint_graph): Rewrite to produce DOT output.
4341 (solve_constraints): Build succ graph as late as possible.
4342 Dump constraint graphs before and after solving.
4343
4344 2011-04-28 Richard Guenther <rguenther@suse.de>
4345
4346 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4347 New function split out from ...
4348 (find_func_aliases): ... here. Call it.
4349 (find_func_aliases_for_call): Likewise.
4350
4351 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4352
4353 * internal-fn.h (internal_fn_name_array): Declare.
4354 (internal_fn_flags_array): Likewise.
4355
4356 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4357
4358 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4359 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4360 Move from sse.md.
4361 (ssemodefsuffix): Remove.
4362 (ssevecmodesuffix): New mode attribute.
4363 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4364 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4365 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4366 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4367 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4368 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4369 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4370 ssemodesuffix mode attribute.
4371 (float splitters): Use ssevecmodesuffix mode attribute.
4372 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4373 (sseinsmode): Rename from avxvecmode.
4374 (avxsizesuffix): Rename from avxmodesuffix.
4375 (sseintvecmode): Rename from avxpermvecmode.
4376 (ssedoublevecmode): Rename from ssedoublesizemode.
4377 (ssehalfvecmode): Rename from avxhalfvecmode.
4378 (ssescalarmode): Rename from avxscalarmode.
4379 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4380 templates for ssemodesuffix mode attribute.
4381 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4382 mode attribute.
4383
4384 Adjust RTX patterns globally for renamed mode attributes.
4385
4386 2011-04-27 Jan Hubcika <jh@suse.cz>
4387
4388 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4389 * ipa-inline-analysis.c: Include alloc-pool.h.
4390 (edge_predicate_pool): New.
4391 (trye_predicate_p): New function
4392 (false_predicate_p): New function.
4393 (add_clause): Sanity check that false clauses are "optimized";
4394 never add clauses to predicate that is already known to be false.
4395 (and_predicate): Use flase_predicate_p.
4396 (evaulate_predicate): Rename to ...
4397 (evaluate_predicate): ... this one; update all callers; assert
4398 that false is not listed among possible truths.
4399 (dump_predicate): Use true_predicate_p.
4400 (account_size_time): Use false_predicate_p.
4401 (evaulate_conditions_for_edge): Rename to ...
4402 (evaluate_conditions_for_edge) ... this one.
4403 (edge_set_predicate): New function.
4404 (inline_edge_duplication_hook): Duplicate edge predicates.
4405 (inline_edge_removal_hook): Free edge predicates.
4406 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4407 (dump_inline_summary): Update.
4408 (estimate_function_body_sizes): Set edge predicates.
4409 (estimate_calls_size_and_time): Handle predicates.
4410 (estimate_callee_size_and_time): Update.
4411 (remap_predicate): Add toplev_predicate; update comment.
4412 (remap_edge_predicates): New function.
4413 (inline_merge_summary): Compute toplev predicate; update.
4414 (read_predicate): New function.
4415 (read_inline_edge_summary): Use it.
4416 (inline_read_section): Likewise.
4417 (write_predicate): New function.
4418 (write_inline_edge_summary): Use it.
4419 (inline_write_summary): Likewise.
4420 (inline_free_summary): Free alloc pool and edge summary vec.
4421
4422 2011-04-27 Richard Guenther <rguenther@suse.de>
4423
4424 * tree-ssa-structalias.c (changed_count): Remove.
4425 (changed): Use a bitmap.
4426 (unify_nodes): Adjust.
4427 (do_sd_constraint): Likewise.
4428 (do_ds_constraint): Likewise.
4429 (do_complex_constraint): Likewise.
4430 (solve_graph): Likewise.
4431
4432 2011-04-27 Jan Hubicka <jh@suse.cz>
4433
4434 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4435
4436 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4437
4438 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4439 (avx_vperm2f128_*_operand): Ditto.
4440 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4441 Use avx_vpermilp_parallel in insn condition.
4442 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4443 Use avx_vperm2f128_parallel in insn condition.
4444
4445 2011-04-27 Richard Guenther <rguenther@suse.de>
4446
4447 * Makefile.in (tree-ssa-structalias.o): Remove
4448 gt-tree-ssa-structalias.h dependency.
4449 (GTFILES): Remove tree-ssa-structalias.c.
4450 * tree.c (allocate_decl_uid): New function.
4451 (make_node_stat): Use it.
4452 (copy_node_stat): Likewise.
4453 * tree.h (allocate_decl_uid): Declare.
4454 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4455 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4456 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4457 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4458 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4459 (struct heapvar_map): Likewise.
4460 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4461 heapvar_insert): Likewise.
4462 (make_heapvar_for): Rename to ...
4463 (make_heapvar): ... this. Simplify.
4464 (fake_var_decl_obstack): New global var.
4465 (build_fake_var_decl): New function.
4466 (make_constraint_from_heapvar): Adjust.
4467 (handle_lhs_call): Likewise.
4468 (create_function_info_for): Likewise.
4469 (intra_create_variable_infos): Likewise.
4470 (init_alias_vars): Allocate fake_var_decl_obstack.
4471 (init_alias_heapvars, delete_alias_heapvars): Remove.
4472 (compute_points_to_sets): Do not call init_alias_heapvars.
4473 (ipa_pta_execute): Likewise.
4474 (delete_points_to_sets): Free fake_var_decl_obstack.
4475
4476 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4477
4478 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4479 (si_from_UTItype, si_to_UTItype): New functions.
4480 (__udivmodti4): Use them to implement type-punning.
4481 * config/spu/multi3.c (union qword_TItype): New data type.
4482 (si_from_TItype, si_to_TItype): New functions.
4483 (__multi3): Use them to implement type-punning.
4484
4485 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4486
4487 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4488
4489 2011-04-27 Jan Hubicka <jh@suse.cz>
4490
4491 * ipa-prop.c (function_insertion_hook_holder): New holder.
4492 (ipa_add_new_function): New function.
4493 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4494 Register/deregister holder.
4495
4496 2011-04-27 Richard Guenther <rguenther@suse.de>
4497
4498 PR tree-optimization/48772
4499 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4500
4501 2011-04-27 Richard Guenther <rguenther@suse.de>
4502
4503 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4504 TARGET_MEM_REF handling.
4505
4506 2011-04-27 Nick Clifton <nickc@redhat.com>
4507
4508 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4509 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4510 (REG_CLASS_NAMES): Likewise.
4511 (REG_CLASS_CONTENTS): Likewise.
4512 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4513 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4514 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4515 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4516 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4517 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4518 duplicate register classes.
4519 (frv_class_likely_spilled_p): Likewise.
4520 (frv_register_move_cost): Likewise.
4521
4522 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4523 end of the regno_reg_class array.
4524
4525 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4526
4527 PR c/48742
4528 * c-typeck.c (build_binary_op): Don't wrap arguments if
4529 int_operands is true.
4530
4531 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4532
4533 PR target/48767
4534 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4535 targetm.calls.must_pass_in_stack for void type.
4536
4537 2011-04-26 Jan Hubicka <jh@suse.cz>
4538
4539 * cgraphbuild.c (build_cgraph_edges): Update call
4540 of cgraph_create_edge and cgraph_create_indirect_edge.
4541 * cgraph.c (cgraph_create_edge_including_clones,
4542 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4543 cgraph_update_edges_for_call_stmt_node): Do not take nest
4544 argument; do not initialize call_stmt_size/time.
4545 (dump_cgraph_node): Do not dump nest.
4546 (cgraph_clone_edge): Do not take loop_nest argument;
4547 do not propagate it; do not clone call_stmt_size/time.
4548 (cgraph_clone_node): Likewise.
4549 (cgraph_create_virtual_clone): Update.
4550 * cgraph.h (struct cgraph_edge): Remove
4551 call_stmt_size/call_stmt_time/loop_nest.
4552 (cgraph_create_edge, cgraph_create_indirect_edge,
4553 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4554 prototype.
4555 * tree-emutls.c (gen_emutls_addr): Update.
4556 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4557 loop_nest; handle indirect calls, too.
4558 (clone_inlined_nodes): Do not care about updating inline summaries.
4559 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4560 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4561 stream call_stmt_size/call_stmt_time/loop_nest.
4562 * ipa-inline.c (edge_badness): Update.
4563 (ipa_inline): dump summaries after inlining.
4564 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4565 New.
4566 (inline_edge_summary): New function.
4567 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4568 (inline_edge_removal_hook): Handle edge summaries.
4569 (inline_edge_duplication_hook): New hook.
4570 (inline_summary_alloc): Alloc hooks.
4571 (initialize_growth_caches): Do not register removal hooks.
4572 (free_growth_caches); Do not free removal hook.
4573 (dump_inline_edge_summary): New function.
4574 (dump_inline_summary): Use it.
4575 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4576 (inline_update_callee_summaries): New function.
4577 (inline_merge_summary): Use it.
4578 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4579 (read_inline_edge_summary): New function.
4580 (inline_read_section): Use it.
4581 (write_inline_edge_summary): New function.
4582 (inline_write_summary): Use it.
4583 (inline_free_summary): Free edge new holders.
4584 * tree-inline.c (copy_bb): Update.
4585
4586 2011-04-26 Jason Merrill <jason@redhat.com>
4587
4588 * tree-eh.c (lower_try_finally_switch): Create the label along with
4589 the CASE_LABEL_EXPR.
4590
4591 2011-04-26 David S. Miller <davem@davemloft.net>
4592 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4593
4594 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4595 * configure: Regenerate.
4596
4597 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4598
4599 PR target/48258
4600 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4601 reduction.
4602 (VEC_reduc): New code iterator and splitters for vector reduction.
4603 (VEC_reduc_name): Ditto.
4604 (VEC_reduc_rtx): Ditto.
4605 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4606 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4607
4608 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4609 support for extracting SF on VSX.
4610
4611 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4612 generating xscvspdp.
4613 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4614 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4615 double add, minimum, maximum vector reduction.
4616 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4617 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4618 optimize double vector reduction.
4619 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4620
4621 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4622
4623 * config/fr30/fr30.h (inhibit_libc): Don't define.
4624 * config/m32r/m32r-protos.h: Correct comment.
4625 * config/v850/v850.h (GHS_default_section_names,
4626 GHS_current_section_names): Use tree, not union tree_node *.
4627
4628 2011-04-26 Xinliang David Li <davidxl@google.com>
4629
4630 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4631 * c-family/c-opts.c (c_common_handle_option): Set
4632 warn_maybe_uninitialized.
4633 * opts.c (common_handle_option): Ditto.
4634 * common.opt: New option.
4635 * tree-ssa.c (warn_uninit): Add one more parameter.
4636 (warn_uninitialized_var): Pass warning code.
4637 * tree-flow.h: Interface change.
4638
4639 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4640
4641 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4642 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4643 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4644
4645 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4646
4647 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4648 * config/mips/mips.opt (mmips-tfile): Remove.
4649
4650 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4651 mips-tdump reference to ...
4652 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4653 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4654 reference by Tru64 UNIX.
4655
4656 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4657
4658 PR debug/48768
4659 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4660 is error_mark_node, set value to NULL.
4661
4662 PR tree-optimization/48734
4663 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4664 if return value from maybe_fold_*_comparsions isn't something
4665 the code is prepared to handle.
4666
4667 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4668
4669 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4670 mode check.
4671 (ext_QIreg_nomode_operands): Remove.
4672 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4673 (*andsi_1): Ditto.
4674 (*andhi_1): Ditto.
4675
4676 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4677
4678 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4679
4680 2011-04-26 Richard Guenther <rguenther@suse.de>
4681
4682 * c-typeck.c (build_unary_op): Do not expand array-refs via
4683 pointer arithmetic. Only adjust qualifiers for function types.
4684
4685 2011-04-26 Richard Guenther <rguenther@suse.de>
4686
4687 PR middle-end/48694
4688 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4689 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4690 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4691 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4692
4693 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4694
4695 * doc/extend.texi: Document __underlying_type.
4696
4697 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4698
4699 * config/rs6000/titan.md (automata_option "progress"): Remove.
4700
4701 2011-04-25 Jeff Law <law@redhat.com>
4702
4703 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4704
4705 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4706
4707 * system.h (ENUM_BITFIELD): Remove.
4708
4709 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4710 Eric Botcazou <ebotcazou@adacore.com>
4711
4712 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4713 for STORE_FLAG_VALUE==-1 case.
4714
4715 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4716
4717 PR target/43804
4718 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4719 LEGITIMATE_PIC_OPERAND_P.
4720
4721 2011-04-24 Jan Hubicka <jh@suse.cz>
4722
4723 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4724 WPA hack.
4725 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4726 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4727 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4728 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4729 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4730 Sanity check predicate length.
4731 (remap_predicate): Likewise; sanity check jump functions.
4732 (inline_read_section, inline_write_summary): Sanity check
4733 predicate length.
4734
4735 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4736
4737 PR other/48748
4738 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4739 __is_literal_type, and __is_trivial; update throughout about
4740 possibly cv-qualified void types.
4741
4742 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4743
4744 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4745 testsuite and make it version agnostic.
4746
4747 2011-04-22 Jan Hubicka <jh@suse.cz>
4748
4749 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4750
4751 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4752
4753 PR c/48685
4754 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4755 to VOID_TYPE even around MODIFY_EXPR.
4756
4757 2011-04-22 Mike Stump <mikestump@comcast.net>
4758
4759 * gensupport.c (read_md_rtx): Fix typo in comment.
4760 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4761 comment.
4762
4763 2011-04-22 Jan Hubicka <jh@suse.cz>
4764
4765 * gengtype.c (open_base_files): Add ipa-inline.h include.
4766 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4767 ipa-prop.c; update all uses.
4768 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4769 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4770 merge summary of inlined function into former caller.
4771 * ipa-inline.c (max_benefit): Remove.
4772 (edge_badness): Compensate for removal of benefits.
4773 (update_caller_keys): Use
4774 reset_node_growth_cache/reset_edge_growth_cache.
4775 (update_callee_keys): Likewise.
4776 (update_all_callee_keys): Likewise.
4777 (inline_small_functions): Do not collect max_benefit; do not reset
4778 estimated_growth; call free_growth_caches and initialize_growth_caches.
4779 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4780 struct size_time_entry): New structures.
4781 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4782 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4783 and estimated_growth.
4784 (edge_growth_cache_entry): New structure.
4785 (node_growth_cache, edge_growth_cache): New global vars.
4786 (estimate_growth): Turn into inline.
4787 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4788 initialize_growth_caches, free_growth_caches): Declare.
4789 (estimate_edge_growth): Rewrite.
4790 (estimate_edge_time): Implement as inline cache lookup.
4791 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4792 functions.
4793 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4794 (NUM_CONDITIONS): New constant.
4795 (predicate_conditions): New enum.
4796 (IS_NOT_CONSTANT): New constant.
4797 (edge_removal_hook_holder): New var.
4798 (node_growth_cache, edge_growth_cache): New global vars.
4799 (true_predicate, single_cond_predicate, false_predicate,
4800 not_inlined_predicate, add_condition, add_clause, and_predicates,
4801 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4802 dump_clause, dump_predicate, account_size_time,
4803 evaulate_conditions_for_edge): New functions.
4804 (inline_summary_alloc): Move to heap.
4805 (inline_node_removal_hook): Clear condition and entry vectors.
4806 (inline_edge_removal_hook): New function.
4807 (initialize_growth_caches, free_growth_caches): New function.
4808 (dump_inline_summary): Update.
4809 (edge_execution_predicate): New function.
4810 (will_be_nonconstant_predicate): New function.
4811 (estimate_function_body_sizes): Compute BB and constantness predicates.
4812 (compute_inline_parameters): Do not clear estimated_growth.
4813 (estimate_edge_size_and_time): New function.
4814 (estimate_calls_size_and_time): New function.
4815 (estimate_callee_size_and_time): New function.
4816 (remap_predicate): New function.
4817 (inline_merge_summary): New function.
4818 (do_estimate_edge_time): New function based on...
4819 (estimate_edge_time): ... this one.
4820 (do_estimate_edge_growth): New function.
4821 (do_estimate_growth): New function based on....
4822 (estimate_growth): ... this one.
4823 (inline_analyze_function): Analyze after deciding on jump functions.
4824 (inline_read_section): New function.
4825 (inline_read_summary): Use it.
4826 (inline_write_summary): Write all the new data.
4827 * ipa-prop.c (ipa_get_param_decl_index): Export.
4828 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4829 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4830 Declare.
4831 (ipa_get_lattice): Move here from ipa-cp.c
4832 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4833 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4834 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4835 cgraph_edge_inlinable_p): Remove.
4836 * cgraphunit.c: Include ipainline.h
4837 (cgraph_process_new_functions): Update call of
4838 compute_inline_parameters.
4839
4840 2011-04-22 Richard Guenther <rguenther@suse.de>
4841
4842 * tree.c (build_int_cst): Properly create canonicalized integer
4843 constants.
4844 (build_int_cst_type): Remove scary comments.
4845
4846 2011-04-22 Xinliang David Li <davidxl@google.com>
4847
4848 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4849 by default when -Wno-error is not specified.
4850 * opts-global.c (decode_options): Remove call to
4851 control_warning_options.
4852
4853 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4854
4855 PR tree-optimization/48717
4856 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4857 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4858
4859 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4860
4861 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4862 definition where used.
4863
4864 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4865
4866 PR c/48716
4867 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4868 TREE_STATIC variables declared inside of some OpenMP construct.
4869
4870 2011-04-22 Martin Jambor <mjambor@suse.cz>
4871
4872 PR middle-end/48585
4873 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4874
4875 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4876
4877 PR c/36750
4878 * c-typeck.c (pop_init_level): Do not warn about initializing
4879 with ` = {0}'.
4880
4881 2011-04-22 Alan Modra <amodra@gmail.com>
4882
4883 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4884 when returning call_cookie.
4885 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4886 pointers, to functions with no more vector args than the current
4887 function, and some non-local calls for ABI_V4.
4888 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4889 sibcall_nonlocal_aix64): Combine to ..
4890 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4891 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4892 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4893 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4894 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4895 operand.
4896 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4897 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4898 sibcall_value_symbolic_64): Delete.
4899
4900 2011-04-21 Xinliang David Li <davidxl@google.com>
4901
4902 * cgraph.h: Remove pid.
4903 * cgraph.c: Remove pid.
4904 * value-prof.c (init_node_map): New function.
4905 (del_node_map): New function.
4906 (find_func_by_funcdef_no): New function.
4907 (gimple_ic_transform): Call new function.
4908 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4909 * function.c (get_last_funcdef_no): New function.
4910 * function.h (get_last_funcdef_no): New function.
4911 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4912 to libgcov function.
4913 (tree-profiling): Call node map init and delete function.
4914
4915 2011-04-21 Ian Lance Taylor <iant@google.com>
4916
4917 * godump.c (go_format_type): Use exported Go name for anonymous
4918 field name.
4919
4920 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4921
4922 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4923 Call builtin_function_type_list instead of builtin_function_type.
4924 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4925
4926 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4927
4928 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4929 build_function_type_list instead of build_function_type.
4930 Delete variable `endlink'.
4931
4932 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4933
4934 * config/s390/s390.c (s390_init_builtins): Call
4935 build_function_type_list instead of build_function_type.
4936
4937 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4938
4939 * config/ia64/ia64.c (ia64_init_builtins): Call
4940 build_function_type_list instead of builtin_function_type.
4941
4942 2011-04-21 Easwaran Raman <eraman@google.com>
4943
4944 * cfgexpand.c (stack_var): Remove OFFSET...
4945 (add_stack_var): ...and its reference here...
4946 (expand_stack_vars): ...and here.
4947 (stack_var_cmp): Sort by descending order of size.
4948 (partition_stack_vars): Change heuristic.
4949 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4950 (dump_stack_var_partition): Add newline after each partition.
4951
4952 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4953 Jeff Law <law@redhat.com>
4954
4955 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4956 * gengtype.c (matching_file_name_substitute): Likewise.
4957
4958 2011-04-21 Richard Guenther <rguenther@suse.de>
4959
4960 PR lto/48703
4961 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4962
4963 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4964
4965 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4966
4967 2011-04-21 Richard Guenther <rguenther@suse.de>
4968
4969 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4970 file name.
4971
4972 2011-04-21 Richard Guenther <rguenther@suse.de>
4973
4974 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4975 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4976 Use DECL_P, not SSA_VAR_P.
4977 (ptr_derefs_may_alias_p): Likewise.
4978 (ptr_deref_may_alias_ref_p_1): Likewise.
4979 (decl_refs_may_alias_p): Likewise.
4980 (refs_may_alias_p_1): Likewise.
4981 (ref_maybe_used_by_call_p_1): Likewise.
4982 (call_may_clobber_ref_p_1): Likewise.
4983 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4984 are either MEM_REF or TARGET_MEM_REF.
4985 (indirect_refs_may_alias_p): Likewise.
4986 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4987 for MEM_EXPR of indirect calls.
4988
4989 2011-04-21 Tristan Gingold <gingold@adacore.com>
4990
4991 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4992 (dst_file_info_struct): Remove flen field.
4993 (lookup_filename): Remove code that set flen field.
4994
4995 2011-04-21 Tristan Gingold <gingold@adacore.com>
4996
4997 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4998
4999 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5000
5001 PR target/48708
5002 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5003 vec_extract and vec_concat for non-SSE4_1 targets.
5004
5005 2011-04-21 Richard Guenther <rguenther@suse.de>
5006
5007 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5008 return statements.
5009
5010 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5011
5012 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5013 undefine.
5014 (FILE): Don't undefine.
5015
5016 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5017
5018 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5019 struct rtx_def *.
5020 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5021 struct rtx_def *.
5022 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5023 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5024 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5025 rtx_def *.
5026 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5027 definitions where used.
5028 * config/microblaze/microblaze.h (struct microblaze_args): Use
5029 rtx, not struct rtx_def *.
5030 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5031 rtx_def *.
5032 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5033 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5034 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5035 not struct rtx_def *.
5036 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5037 struct rtx_def *.
5038 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5039 rtx_def *.
5040 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5041
5042 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5043
5044 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5045 operand_equal_p to compare DR_BASE_ADDRESSes.
5046 (vect_check_interleaving): Likewise.
5047
5048 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5049
5050 PR target/46329
5051 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5052 for all Neon struct constants.
5053
5054 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5055
5056 * target.def (legitimate_constant_p): New hook.
5057 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5058 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5059 * doc/tm.texi: Regenerate.
5060 * hooks.h (hook_bool_mode_rtx_true): Declare.
5061 * hooks.c (hook_bool_mode_rtx_true): Define.
5062 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5063 * calls.c (precompute_register_parameters): Replace uses of
5064 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5065 (emit_library_call_value_1): Likewise.
5066 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5067 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5068 * ira-costs.c (scan_one_insn): Likewise.
5069 * recog.c (general_operand, immediate_operand): Likewise.
5070 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5071 * reload1.c (init_eliminable_invariants): Likewise.
5072
5073 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5074 mode argument.
5075 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5076 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5077 argument.
5078 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5079 * config/alpha/predicates.md (input_operand): Update call to
5080 alpha_legitimate_constant_p.
5081
5082 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5083 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5084 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5085 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5086 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5087 (arm_legitimate_constant_p): New functions.
5088 (arm_cannot_force_const_mem): Make static.
5089
5090 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5091
5092 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5093 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5094 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5095 instead of bfin_legitimate_constant_p.
5096 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5097 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5098
5099 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5100
5101 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5102
5103 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5104 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5105 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5106 (frv_legitimate_constant_p): Make static. Add a mode argument.
5107
5108 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5109 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5110 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5111
5112 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5113 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5114 * config/i386/i386.c (legitimate_constant_p): Rename to...
5115 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5116 argument.
5117 (ix86_cannot_force_const_mem): Update accordingly.
5118 (ix86_legitimate_address_p): Likewise.
5119 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5120 * config/i386/i386.md: Update commentary.
5121
5122 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5123 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5124 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5125 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5126
5127 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5128
5129 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5130 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5131 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5132 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5133
5134 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5135 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5136 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5137
5138 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5139 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5140 (m32r_legitimate_constant_p): New function.
5141
5142 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5143 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5144 LEGITIMATE_CONSTANT_P.
5145 (LEGITIMATE_CONSTANT_P): Delete.
5146 * config/m68k/m68k.c (m68k_expand_prologue): Call
5147 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5148 (m68k_legitimate_constant_p): New function.
5149 * config/m68k/m68k.md: Update comments.
5150
5151 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5152 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5153 (mcore_legitimate_constant_p): New function.
5154
5155 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5156 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5157 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5158 Add a mode argument.
5159 (mep_legitimate_address): Update accordingly.
5160 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5161
5162 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5163 Delete.
5164 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5165 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5166 static. Check OP's mode for VOIDmode.
5167 (microblaze_legitimate_constant_p): New function.
5168 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5169
5170 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5171 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5172 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5173 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5174 * config/mips/predicates.md: Update comments.
5175
5176 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5177 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5178 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5179 (mmix_legitimate_constant_p): Make static, return a bool, and take
5180 a mode argument.
5181 (mmix_print_operand_address): Update accordingly.
5182
5183 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5184 Delete.
5185 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5186 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5187 static. Add a mode argument.
5188 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5189
5190 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5191
5192 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5193 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5194 (pa_legitimate_constant_p): New function.
5195
5196 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5197
5198 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5199 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5200 (pdp11_legitimate_constant_p): New function.
5201
5202 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5203 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5204 (rs6000_legitimate_constant_p): New function.
5205
5206 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5207 (rx_legitimate_constant_p): ...this.
5208 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5209 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5210 (rx_legitimate_constant_p): ...this.
5211 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5212 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5213
5214 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5215 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5216 * config/s390/s390.c (legitimate_constant_p): Rename to...
5217 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5218 and add a mode argument.
5219 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5220
5221 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5222
5223 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5224 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5225 (sh_legitimate_constant_p): New function.
5226
5227 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5228 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5229 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5230 (legitimate_constant_p): Rename to...
5231 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5232 argument.
5233 (constant_address_p): Update accordingly.
5234
5235 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5236 argument and return a bool.
5237 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5238 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5239 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5240 (spu_rtx_costs): Update accordingly.
5241 * config/spu/predicates.md (vec_imm_operand): Likewise.
5242
5243 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5244
5245 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5246 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5247 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5248
5249 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5250 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5251 * config/vax/vax.c (legitimate_constant_p): Likewise.
5252
5253 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5254 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5255 (xtensa_legitimate_constant_p): New function.
5256
5257 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5258
5259 * target.def (cannot_force_const_mem): Add a mode argument.
5260 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5261 * doc/tm.texi: Regenerate.
5262 * hooks.h (hook_bool_mode_rtx_false): Declare.
5263 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5264 (hook_bool_mode_const_rtx_true): Likewise.
5265 (hook_bool_mode_rtx_false): New function.
5266 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5267 to be non-VOID. Update call to cannot_force_const_mem.
5268 (find_reloads): Update accordingly.
5269 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5270 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5271 argument.
5272 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5273 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5274 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5275 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5276 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5277 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5278 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5279 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5280 (m68k_cannot_force_const_mem): ...this new function.
5281 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5282 argument.
5283 (mips_const_insns, mips_legitimize_const_move): Update calls.
5284 (mips_secondary_reload_class): Likewise.
5285 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5286 (pa_cannot_force_const_mem): ...this new function.
5287 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5288 (rs6000_cannot_force_const_mem): ...this new function.
5289 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5290 argument.
5291 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5292 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5293 to...
5294 (xtensa_cannot_force_const_mem): ...this new function.
5295
5296 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5297
5298 * config/mips/mips.c (mips16_build_function_stub): Call
5299 build_function_type_list instead of build_function_type.
5300 (mips16_build_call_stub): Likewise.
5301
5302 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5303
5304 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5305 instead of build_function_type.
5306
5307 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5308
5309 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5310 instead of build_function_type.
5311
5312 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5313
5314 PR target/48678
5315 * config/i386/i386.md (insv): Change operand 0 constraint to
5316 "register_operand". Change operand 1 and 2 constraint to
5317 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5318 * config/i386/sse.md (sse4_1_pinsrb): Export.
5319 (sse2_pinsrw): Ditto.
5320 (sse4_1_pinsrd): Ditto.
5321 (sse4_1_pinsrq): Ditto.
5322 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5323 * config/i386/i386.c (ix86_expand_pinsr): New.
5324
5325 2011-04-20 Easwaran Raman <eraman@google.com>
5326
5327 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5328 containing union type only with -fstrict-aliasing.
5329
5330 2011-04-20 Jim Meyering <meyering@redhat.com>
5331
5332 Remove useless if-before-free tests.
5333 * calls.c (expand_call, save_area): Likewise.
5334 * cfgcleanup.c (try_forward_edges): Likewise.
5335 * collect2.c (collect_execute): Likewise.
5336 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5337 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5338 * coverage.c (coverage_checksum_string): Likewise.
5339 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5340 * cselib.c (cselib_init): Likewise.
5341 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5342 (df_set_clean_cfg): Likewise.
5343 * function.c (free_after_compilation): Likewise.
5344 * gcc.c (do_spec_1, main): Likewise.
5345 * gcov.c (create_file_names): Likewise.
5346 * gensupport.c (identify_predicable_attribute): Likewise.
5347 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5348 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5349 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5350 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5351 * ipa-pure-const.c (local_pure_const): Likewise.
5352 * ipa-reference.c (propagate): Likewise.
5353 * ira-costs.c (free_ira_costs): Likewise.
5354 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5355 * matrix-reorg.c (mat_free): Likewise.
5356 * prefix.c (get_key_value): Likewise.
5357 * profile.c (compute_value_histograms): Likewise.
5358 * reload1.c (free_reg_equiv): Likewise.
5359 * sched-deps.c (free_deps): Likewise.
5360 * sel-sched-ir.c (fence_clear): Likewise.
5361 * sese.c (set_rename, if_region_set_false_region): Likewise.
5362 * tree-data-ref.c (free_rdg): Likewise.
5363 * tree-eh.c (lower_try_finally): Likewise.
5364 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5365 * tree-ssa-live.c (delete_var_map): Likewise.
5366 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5367 * tree-ssa-pre.c (phi_trans_add): Likewise.
5368
5369 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5370
5371 PR tree-optimization/48611
5372 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5373 beyond ERT_MUST_NOT_THROW region.
5374
5375 2011-04-20 Catherine Moore <clm@codesourcery.com>
5376
5377 * config/mips/mips.opt (mfix-24k): New.
5378 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5379 * config/mips/mips.md (length): Increase by 4 for stores if
5380 fixing 24K errata.
5381 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5382 all noreorder if fixing 24K errata.
5383 * doc/invoke.texi: Document mfix-24k.
5384
5385 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5386
5387 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5388 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5389
5390 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5391
5392 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5393 (const_ok_for_op): ... to here.
5394
5395 2011-04-20 Kai Tietz <ktietz@redhat.com>
5396
5397 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5398 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5399
5400 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5401
5402 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5403
5404 2011-04-20 Richard Guenther <rguenther@suse.de>
5405
5406 PR tree-optimization/47892
5407 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5408 are if-convertible.
5409
5410 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5411
5412 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5413
5414 2011-04-20 Tristan Gingold <gingold@adacore.com>
5415
5416 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5417
5418 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5419
5420 PR target/18145
5421
5422 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5423 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5424 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5425 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5426 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5427
5428 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5429 New prototype.
5430
5431 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5432 (avr_asm_named_section, avr_asm_output_aligned_common,
5433 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5434 New functions to update...
5435 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5436 (avr_asm_init_sections): Overwrite section callbacks for
5437 data_section, bss_section.
5438 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5439 from here to...
5440 (avr_file_end): ...here.
5441
5442 2011-04-20 Richard Guenther <rguenther@suse.de>
5443
5444 PR middle-end/48695
5445 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5446 objects and types here. Adjust for their offset before comparing.
5447
5448 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5449
5450 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5451 statement per copy.
5452
5453 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5454
5455 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5456 (GIMPLE_H): Include $(INTERNAL_FN_H).
5457 (OBJS-common): Add internal-fn.o.
5458 (internal-fn.o): New rule.
5459 * internal-fn.def: New file.
5460 * internal-fn.h: Likewise.
5461 * internal-fn.c: Likewise.
5462 * gimple.h: Include internal-fn.h.
5463 (GF_CALL_INTERNAL): New gf_mask.
5464 (gimple_statement_call): Put fntype into a union with a new
5465 internal_fn field.
5466 (gimple_build_call_internal): Declare.
5467 (gimple_build_call_internal_vec): Likewise.
5468 (gimple_call_same_target_p): Likewise.
5469 (gimple_call_internal_p): New function.
5470 (gimple_call_internal_fn): Likewise.
5471 (gimple_call_fntype): Return null for internal calls.
5472 (gimple_call_set_fntype): Assert that the function is not internal.
5473 (gimple_call_set_fn): Likewise.
5474 (gimple_call_set_fndecl): Likewise.
5475 (gimple_call_set_internal_fn): New function.
5476 (gimple_call_addr_fndecl): Handle null functions.
5477 (gimple_call_return_type): Likewise null types.
5478 * gimple.c (gimple_build_call_internal_1): New function.
5479 (gimple_build_call_internal): Likewise.
5480 (gimple_build_call_internal_vec): Likewise.
5481 (gimple_call_same_target_p): Likewise.
5482 (gimple_call_flags): Handle calls to internal functions.
5483 (gimple_call_fnspec): New function.
5484 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5485 (gimple_has_side_effects): Handle null functions.
5486 (gimple_rhs_has_side_effects): Likewise.
5487 (gimple_call_copy_skip_args): Handle calls to internal functions.
5488 * cfgexpand.c (expand_call_stmt): Likewise.
5489 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5490 * gimple-fold.c (gimple_fold_call): Handle null functions.
5491 (gimple_fold_stmt_to_constant_1): Don't fold
5492 calls to internal functions.
5493 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5494 functions.
5495 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5496 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5497 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5498 (do_warn_unused_result): Likewise.
5499 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5500 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5501 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5502 the target of a call.
5503 (initialize_hash_element): Update accordingly.
5504 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5505 (iterative_hash_hashable_expr): Handle calls to internal functions.
5506 (print_expr_hash_elt): Likewise.
5507 * tree-ssa-pre.c (can_value_number_call): Likewise.
5508 (eliminate): Handle null functions.
5509 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5510 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5511 (find_func_aliases): Likewise.
5512 * value-prof.c (gimple_ic_transform): Likewise.
5513 (gimple_indirect_call_to_profile): Likewise.
5514 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5515 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5516
5517 2011-04-19 Jan Hubicka <jh@suse.cz>
5518
5519 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5520 * ipa-inline.c (inline_small_functions): Compute summaries first,
5521 populate heap later.
5522
5523 2011-04-19 Jan Hubicka <jh@suse.cz>
5524
5525 * cgraph.h (save_inline_function_body): Remove.
5526 * ipa-inline-transform.c: New file, broke out of...
5527 * ipa-inline.c: ... this one; Update toplevel comment.
5528 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5529 make global.
5530 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5531 (cgraph_mark_inline_edge): Rename to inline_call; move to
5532 ipa-inline-transform.c.
5533 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5534 move to ipa-inline-transform.c
5535 (recursive_inlining, inline_small_functions, flatten_function,
5536 ipa_inline, inline_always_inline_functions,
5537 early_inline_small_functions): Update.
5538 (inline_transform): Move to ipa-inline-transform.c.
5539 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5540 Declare.
5541 * Makefile.in (ipa-inline-transform.o): New file.
5542 * cgraphunit.c (save_inline_function_body): Move to
5543 ipa-inline-transform.c
5544
5545 2011-04-19 DJ Delorie <dj@redhat.com>
5546
5547 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5548 registers if we already know there aren't any.
5549 (m32c_emit_epilogue): Don't emit a barrier here.
5550 (m32c_emit_eh_epilogue): Likewise.
5551 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5552 operands at expand time.
5553 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5554 int" wchar type.
5555 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5556 duplicates. Provide aliases instead.
5557 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5558 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5559 the compiler.
5560
5561 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5562
5563 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5564 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5565 (general_or_i64_p, sparc_register_move_cost): New function.
5566
5567 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5568
5569 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5570 Add lynx, mipssde. Sort table.
5571
5572 2011-04-19 Xinliang David Li <davidxl@google.com>
5573
5574 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5575 not negative.
5576
5577 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5578
5579 PR target/48678
5580 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5581 is a SUBREG with non-MODE_INT mode inside of it.
5582
5583 2011-04-19 Martin Jambor <mjambor@suse.cz>
5584
5585 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5586 also according to actual contants.
5587 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5588 (gimple_fold_call): Use it.
5589 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5590
5591 2011-04-19 Martin Jambor <mjambor@suse.cz>
5592
5593 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5594 non-pointer assignments.
5595
5596 2011-04-19 Martin Jambor <mjambor@suse.cz>
5597
5598 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5599 account anc_offset and otr_type from the indirect edge info.
5600 * ipa-prop.c (get_ancestor_addr_info): New function.
5601 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5602 get_ancestor_addr_info, call it.
5603 (ipa_note_param_call): Do not initialize information about polymorphic
5604 calls, return the indirect call graph edge. Remove the last
5605 parameter, adjust all callers.
5606 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5607 parameters. Initialize polymorphic information in the indirect edge.
5608
5609 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5610
5611 PR lto/48148
5612 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5613 the types if they have different enumeration identifiers.
5614
5615 2011-04-19 Jan Hubicka <jh@suse.cz>
5616
5617 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5618 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5619 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5620 (optimize_function_for_size_p) ... here.
5621
5622 2011-04-19 Richard Guenther <rguenther@suse.de>
5623
5624 PR lto/48207
5625 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5626 langhook.
5627
5628 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5629
5630 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5631 if DECL_NO_INLINE_WARNING_P is set on the function.
5632
5633 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5634
5635 PR fortran/47976
5636 * reload1.c (inc_for_reload): Return void. All callers changed.
5637 (emit_input_reload_insns): Don't try to delete previous output
5638 reloads to a register, or record spill_reg_store for autoincs.
5639
5640 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5641
5642 * gengtype.h: Updated copyright year.
5643 (struct input_file_st): Add inpisplugin field.
5644 (type_fileloc): New function.
5645 * gengtype.c
5646 (write_typed_struct_alloc_def): Add gcc_assert.
5647 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5648 (write_typed_alloc_defns): Don't output for plugin files.
5649 (input_file_by_name): Clear inpisplugin field.
5650 (main): Set inpisplugin field for plugin files.
5651
5652 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5653
5654 * gengtype-state.c (string_eq): New.
5655 (read_state): Use string_eq instead of strcmp when creating the
5656 state_ident_tab.
5657
5658 2011-04-19 Wei Guozhi <carrot@google.com>
5659
5660 PR target/47855
5661 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5662 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5663 linkage.
5664 * config/arm/constraints.md (Uu): New constraint.
5665 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5666
5667 2011-04-19 Tristan Gingold <gingold@adacore.com>
5668
5669 * config.gcc (-*-*-*vms): Added.
5670 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5671 definitions moved.
5672 * config/vms/vms-ld.c: New file.
5673 * config/vms/vms-ar.c: New file.
5674 * config/vms/t-vmsnative: New file.
5675
5676 2011-04-18 Xinliang David Li <davidxl@google.com>
5677
5678 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5679
5680 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5681
5682 PR middle-end/48661
5683 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5684 if TREE_TYPE (v) is non-NULL.
5685
5686 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5687 gimple_get_virt_mehtod_for_binfo.
5688 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5689 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5690 callers.
5691 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5692
5693 2011-04-18 Michael Matz <matz@suse.de>
5694 Steve Ellcey <sje@cup.hp.com>
5695
5696 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5697 use its mode as source mode if it isn't VOIDmode.
5698
5699 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5700
5701 * doc/passes.texi: Fill crossref nodes.
5702
5703 2011-04-18 Jim Meyering <meyering@redhat.com>
5704
5705 Fix doubled-word typos in comments and strings
5706 * config/alpha/vms-unwind.h: s/for for/for/
5707 * config/arm/unwind-arm.h: Likewise.
5708 * config/microblaze/microblaze.c: Likewise.
5709 * config/sh/constraints.md: s/in in/in/
5710 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5711
5712 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5713
5714 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5715 (AVX_FLOAT_MODE_P): Ditto.
5716 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5717 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5718 (AVX_VEC_FLOAT_MODE_P): Ditto.
5719 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5720 (UNSPEC_MASKSTORE): Ditto.
5721 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5722 Merge from <sse>_movmsk<ssemodesuffix> and
5723 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5724 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5725 iterator.
5726 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5727 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5728 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5729
5730 2011-04-18 Jan Hubicka <jh@suse.cz>
5731
5732 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5733
5734 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5735 (want_inline_function_called_once_p): Break out the logic from
5736 ipa_inline.
5737 (edge_badness): Ensure that profile is not misupdated.
5738 (lookup_recursive_calls): Prioritize by call frequencies.
5739 (inline_small_functions): Move program size estimates here;
5740 actually process whole queue even when unit growth has been
5741 met. (to properly compute inline_failed reasons and for the
5742 case unit size decrease.) Revisit comments on recursive inlining.
5743 (ipa_inline): Remove unit summary code; first inline hot calls
5744 of functions called once, cold calls next.
5745 (order, nnodes): Remove unused variables.
5746 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5747 (GTFILES): Remove ipa-inline.c
5748 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5749
5750 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5751
5752 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5753
5754 2011-04-18 Jie Zhang <jie@codesourcery.com>
5755 Richard Earnshaw <rearnsha@arm.com>
5756
5757 * arm.c (neon_builtin_type_bits): Remove.
5758 (typedef enum neon_builtin_mode): New.
5759 (T_MAX): Don't define.
5760 (typedef enum neon_builtin_datum): Remove bits, codes[],
5761 num_vars and base_fcode. Add mode, code and fcode.
5762 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5763 VAR10): Change accordingly.
5764 (neon_builtin_data[]): Change accordingly
5765 (arm_init_neon_builtins): Change accordingly.
5766 (neon_builtin_compare): Remove.
5767 (locate_neon_builtin_icode): Remove.
5768 (arm_expand_neon_builtin): Change accordingly.
5769
5770 * arm.h (enum arm_builtins): Move to ...
5771 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5772
5773 * arm.c (arm_builtin_decl): Declare.
5774 (TARGET_BUILTIN_DECL): Define.
5775 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5776 (arm_builtin_decls[]): New.
5777 (arm_init_neon_builtins): Store builtin declarations in
5778 arm_builtin_decls[].
5779 (arm_init_tls_builtins): Likewise.
5780 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5781 (arm_builtin_decl): New.
5782
5783 2011-04-18 Richard Guenther <rguenther@suse.de>
5784
5785 * tree.c (upper_bound_in_type): Build properly canonicalized
5786 INTEGER_CSTs.
5787 (lower_bound_in_type): Likewise.
5788
5789 2011-04-18 Richard Guenther <rguenther@suse.de>
5790
5791 * gimple.h (gimple_call_addr_fndecl): New function.
5792 (gimple_call_fndecl): Use it.
5793 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5794 for direct calls.
5795 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5796 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5797
5798 2011-04-18 Richard Guenther <rguenther@suse.de>
5799
5800 PR middle-end/48650
5801 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5802
5803 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5804
5805 PR lto/48492
5806 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5807 DECL_IN_CONSTANT_POOL without RTL.
5808
5809 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5810 Ira Rosen <ira.rosen@linaro.org>
5811
5812 PR target/48252
5813 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5814 to match neon_vzip/vuzp/vtrn_internal.
5815 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5816 outputs explicitly dependent on both inputs.
5817 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5818
5819 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5820
5821 PR tree-optimization/48616
5822 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5823 whether the shift is by scalar or vector based on whether all SLP
5824 scalar stmts have the same rhs.
5825
5826 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5827
5828 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5829 memory operands.
5830
5831 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5832
5833 PR target/43700
5834 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5835 registers.
5836
5837 2011-04-17 Jan Hubicka <jh@suse.cz>
5838
5839 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5840 * cgrpahunit.c (cgraph_finalize_function): Do not set
5841 finalized_by_frontend.
5842 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5843 finalized_by_frontend.
5844
5845 2011-04-17 Jan Hubicka <jh@suse.cz>
5846
5847 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5848 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5849 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5850 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5851 method.
5852 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5853 gimple-fold.c
5854 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5855
5856 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5857
5858 PR lto/48538
5859 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5860 is non-null before accessing it.
5861 (input_cgraph): Remove trailing spaces.
5862
5863 2011-04-17 Revital Eres <revital.eres@linaro.org>
5864
5865 * params.def (sms-min-sc): New param flag.
5866 * modulo-sched.c (sms_schedule): Use it.
5867 * doc/invoke.texi (sms-min-sc): Document it.
5868
5869 2011-04-17 Jan Hubicka <jh@suse.cz>
5870
5871 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5872 present, also set gimple_call_set_cannot_inline.
5873 * ipa-inline.c: Update toplevel comment.
5874 (MAX_TIME): Remove.
5875 (cgraph_clone_inlined_nodes): Fix linebreaks.
5876 (cgraph_check_inline_limits): Restructure to ...
5877 (caller_growth_limits): ... this one; be more tolerant
5878 on growth in nested inline chains; add explanatory comment;
5879 fix stack accounting thinko introduced by previous patch.
5880 (cgraph_default_inline_p): Remove.
5881 (report_inline_failed_reason): New function.
5882 (can_inline_edge_p): New function.
5883 (can_early_inline_edge_p): New function.
5884 (leaf_node_p): Move upwards in file.
5885 (want_early_inline_function_p): New function.
5886 (want_inline_small_function_p): New function.
5887 (want_inline_self_recursive_call_p): New function.
5888 (cgraph_edge_badness): Rename to ...
5889 (edge_badness) ... this one; fix linebreaks.
5890 (update_edge_key): Update call of edge_baddness; add
5891 detailed dump about queue updates.
5892 (update_caller_keys): Use can_inline_edge_p and
5893 want_inline_small_function_p.
5894 (cgraph_decide_recursive_inlining): Rename to...
5895 (recursive_inlining): Use can_inline_edge_p and
5896 want_inline_self_recursive_call_p; simplify and remove no longer
5897 valid FIXME.
5898 (cgraph_set_inline_failed): Remove.
5899 (add_new_edges_to_heap): Use can_inline_edge_p and
5900 want_inline_small_function_p.
5901 (cgraph_decide_inlining_of_small_functions): Rename to ...
5902 (inline_small_functions): ... this one; cleanup; use
5903 can/want predicates; cleanup debug ouput; work edges till fibheap
5904 is exhausted and do not stop once unit growth is reached; remove
5905 later loop processing remaining edges.
5906 (cgraph_flatten): Rename to ...
5907 (flatten_function): ... this one; use can_inline_edge_p
5908 and can_early_inline_edge_p predicates.
5909 (cgraph_decide_inlining): Rename to ...
5910 (ipa_inline): ... this one; remove unreachable nodes before
5911 inlining functions called once; simplify the pass.
5912 (cgraph_perform_always_inlining): Rename to ...
5913 (inline_always_inline_functions): ... this one; use
5914 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5915 (cgraph_decide_inlining_incrementally): Rename to ...
5916 (early_inline_small_functions): ... this one; simplify
5917 using new predicates; cleanup; make dumps prettier.
5918 (cgraph_early_inlining): Rename to ...
5919 (early_inliner): newer inline regular functions into always-inlines;
5920 fix updating of call stmt summaries.
5921 (pass_early_inline): Update for new names.
5922 (inline_transform): Fix formating.
5923 (gate_cgraph_decide_inlining): Rename to ...
5924 (pass_ipa_inline): ... this one.
5925 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5926 * ipa-inline-analysis.c (dump_inline_summary): Update.
5927 (compute_inline_parameters): Do not compute disregard_inline_limits;
5928 look for mismatching arguments.
5929 (estimate_growth): Fix handlig of non-trivial self recursion.
5930 (inline_read_summary): Do not read info->disregard_inline_limits.
5931 (inline_write_summary): Do not write info->disregard_inline_limits.
5932 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5933 and move all checks into can_inline_edge_p predicate; re-enable code
5934 comparing optimization levels.
5935 (expand_call_inline): Do not test inline_forbidden_into_p.
5936 * Makefile.in (ipa-inline.o): Update arguments.
5937
5938 2011-04-17 Revital Eres <revital.eres@linaro.org>
5939
5940 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5941
5942 2011-04-17 Revital Eres <revital.eres@linaro.org>
5943
5944 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5945
5946 2011-04-17 Michael Matz <matz@suse.de>
5947
5948 PR tree-optimization/48622
5949 PR lto/48645
5950 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5951 in same order as they're written.
5952
5953 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5954
5955 * config/pa/predicates.md: Reorganize and simplify predicates.
5956 Eliminate duplicate code checks.
5957 (arith_operand): Rename to arith14_operand
5958 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5959 * config/pa/pa.md: Use renamed operands.
5960 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5961 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5962 arith11_operand, adddi3_operand, indexed_memory_operand,
5963 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5964 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5965 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5966 move_dest_operand, move_src_operand, prefetch_cc_operand,
5967 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5968 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5969 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5970 div_operand, int5_operand, movb_comparison_operator,
5971 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5972 arith_double_operand, ireg_operand, lhs_lshift_operand,
5973 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5974 integer_store_memory_operand): Likewise.
5975 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5976 (integer_store_memory_operand, read_only_operand,
5977 function_label_operand, borx_reg_operand,
5978 non_hard_reg_operand): Likewise.
5979 (eq_neq_comparison_operator): Delete unused operator.
5980 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5981 function_label_operand.
5982 (emit_move_sequence): Likewise.
5983
5984 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5985
5986 * config/i386/sse.md (sseunpackmode): New mode attribute.
5987 (ssepackmode): Ditto.
5988 (vec_pack_trunc_<mode>): Macroize expander from
5989 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5990 (vec_unpacks_lo_<mode>): Macroize expander from
5991 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5992 (vec_unpacks_hi_<mode>): Macroize expander from
5993 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5994 (vec_unpacku_lo_<mode>): Macroize expander from
5995 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5996 (vec_unpacku_hi_<mode>): Macroize expander from
5997 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5998 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5999 ix86_expand_sse4_unpack.
6000 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6001
6002 2011-04-16 Jan Hubicka <jh@suse.cz>
6003
6004 * cgraphbuild.c: Include ipa-inline.h.
6005 (reset_inline_failed): Use initialize_inline_failed.
6006 * cgraph.c: Include ipa-inline.h.
6007 (cgraph_create_node_1): Do not initialize estimated_growth.
6008 (initialize_inline_failed): More to ipa-inline-analysis.c
6009 (dump_cgraph_node): Do not dump inline flags.
6010 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6011 and disregard_inline_limits flags.
6012 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6013 time, size, estimated_growth.
6014 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6015 Update.
6016 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6017 DECL_DISREGARD_INLINE_LIMITS.
6018 (cgraph_analyze_function): Do not initialize
6019 node->local.disregard_inline_limits.
6020 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6021 inlinable, versionable and disregard_inline_limits.
6022 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6023 cgraph_check_inline_limits, cgraph_default_inline_p,
6024 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6025 add_new_edges_to_heap): Update.
6026 (cgraph_decide_inlining_of_small_function): Update; set
6027 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6028 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6029 cgraph_decide_inlining_incrementally): Update.
6030 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6031 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6032 time, size and estimated_growth parameters.
6033 (estimate_edge_growth): Update.
6034 (initialize_inline_failed): Declare.
6035 * ipa-split.c: Include ipa-inline.h
6036 (execute_split_functions): Update.
6037 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6038 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6039 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6040 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6041 estimated_growth to INT_MIN.
6042 (inline_node_duplication_hook): Likewise.
6043 (dump_inline_summary): Dump new fields.
6044 (compute_inline_parameters): Update.
6045 (estimate_edge_time, estimate_time_after_inlining,
6046 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6047 inline_write_summary):
6048 (initialize_inline_failed): Move here from cgraph.c.
6049 * tree-sra.c: Include ipa-inline.h.
6050 (ipa_sra_preliminary_function_checks): Update.
6051 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6052 ipa-inline.h.
6053
6054 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6055
6056 * config/i386/sse.md (V16): New mode iterator.
6057 (VI1, VI8): Ditto.
6058 (AVXMODEQI, AVXMODEDI): Remove.
6059 (sse2, sse3): New mode attribute.
6060 (mov<mode>): Use V16 mode iterator.
6061 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6062 (push<mode>1): Use V16 mode iterator.
6063 (movmisalign<mode>): Ditto.
6064 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6065 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6066 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6067 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6068 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6069 avx_movdqu<avxmodesuffix>.
6070 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6071 *avx_movdqu<avxmodesuffix>.
6072 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6073 avx_lddqu<avxmodesuffix>.
6074 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6075 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6076 avx_movnt<AVXMODEDI:mode>.
6077 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6078 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6079
6080 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6081
6082 PR target/48629
6083 * haifa-sched.c (prune_ready_list, schedule_block): Use
6084 sched_pressure_p rather than flag_sched_pressure.
6085
6086 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6087
6088 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6089 cgraph_get_node instead of cgraph_get_create_node.
6090
6091 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6092
6093 * cfgexpand.c (expand_debug_expr): Use
6094 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6095
6096 2011-04-15 Michael Matz <matz@suse.de>
6097
6098 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6099 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6100 * function.c (gimplify_parameters): Ditto.
6101 * gimplify.c (gimplify_vla_decl): Ditto.
6102
6103 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6104 (gimple_call_set_alloca_for_var): New inline function.
6105 (gimple_call_alloca_for_var_p): Ditto.
6106 * gimple.c (gimple_build_call_from_tree): Remember
6107 CALL_ALLOCA_FOR_VAR_P state.
6108 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6109
6110 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6111 calls if they were for VLA objects.
6112
6113 2011-04-15 Martin Jambor <mjambor@suse.cz>
6114
6115 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6116 of ADR_EXPRs.
6117
6118 2011-04-15 Martin Jambor <mjambor@suse.cz>
6119
6120 PR middle-end/48601
6121 * tree-emutls.c (lower_emutls_function_body): Call
6122 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6123 result is non-NULL.
6124
6125 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6126
6127 * c-decl.c (detect_field_duplicates): Call
6128 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6129
6130 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6131
6132 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6133 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6134 * ipa-pure-const.c (check_stmt): Call it.
6135 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6136
6137 2011-04-15 Richard Guenther <rguenther@suse.de>
6138
6139 PR tree-optimization/48290
6140 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6141 Properly decide inhibiting propagation based on the valueized
6142 operand. Do loop-closed SSA form preserving here ...
6143 (init_copy_prop): ... not here.
6144
6145 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6146
6147 PR target/48612
6148 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6149 (*ieee_smax<mode>3): Likewise.
6150
6151 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6152
6153 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6154 Replace match_operand with match_dup for the third operand in
6155 these expanders.
6156
6157 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6158
6159 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6160 to track processing of conditionals. Update all callers.
6161 (try_combine, simplify_if_then_else): Update.
6162
6163 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6164
6165 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6166 -fsched-pressure.
6167
6168 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6169
6170 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6171 instead of match_operand for operand 3.
6172
6173 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6174
6175 * recog.h (insn_operand_data): Add an "allows_mem" field.
6176 * genoutput.c (output_operand_data): Initialize it.
6177 * optabs.c (maybe_legitimize_operand_same_code): New function.
6178 (maybe_legitimize_operand): Use it when matching the original
6179 op->value.
6180
6181 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6182
6183 * gimplify.c: Fix issues in comments throughout.
6184 (voidify_wrapper_expr): Fix long line.
6185 (build_stack_save_restore): Likewise.
6186 (gimplify_loop_expr): Likewise.
6187 (gimplify_compound_lval): Likewise.
6188 (gimplify_init_ctor_eval): Likewise.
6189 (gimplify_modify_expr_rhs): Likewise.
6190 (omp_notice_threadprivate_variable): Likewise.
6191
6192 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6193
6194 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6195 original one if this is not a builtin function.
6196
6197 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6198
6199 PR target/48605
6200 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6201 offset it as needed based on top 2 bits in operands[3], change
6202 MEM mode to SFmode and mask those 2 bits away from operands[3].
6203
6204 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6205
6206 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6207 change from objc_declare_protocols() to objc_declare_protocol().
6208
6209 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6210
6211 * config/i386/sse.md (sse4_1): New mode attribute.
6212 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6213 avx_blend<ssemodesuffix><avxmodesuffix> and
6214 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6215 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6216 avx_blendv<ssemodesuffix><avxmodesuffix> and
6217 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6218 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6219 avx_dp<ssemodesuffix><avxmodesuffix> and
6220 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6221 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6222 (sse4_1_packusdw): Merge with *avx_packusdw.
6223 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6224 (sse4_1_pblendw): Merge with *avx_pblendw.
6225 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6226 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6227 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6228 VF mode iterator.
6229 (sse4_1_round<ssescalarmodesuffix>): Merge with
6230 *avx_round<ssescalarmodesuffix>.
6231 (aesenc): Merge with *avx_aesenc.
6232 (aesenclast): Merge with *avx_aesenclast.
6233 (aesdec): Merge with *avx_aesdec.
6234 (aesdeclast): Merge with *avx_aesdeclast.
6235 (pclmulqdq): Merge with *pclmulqdq.
6236 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6237 New predicate.
6238 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6239
6240 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6241
6242 PR middle-end/48608
6243 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6244 (align_local_variable): This. Update DECL_ALIGN.
6245 (add_stack_var): Updated.
6246 (expand_one_stack_var): Likewise.
6247
6248 2011-04-14 Richard Guenther <rguenther@suse.de>
6249
6250 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6251 Remove.
6252 (dse_initialize_block_local_data, dse_leave_block,
6253 record_voperand_set, get_stmt_uid): Likewise.
6254 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6255 (dse_optimize_stmt): Remove voperand set handling code.
6256 Simplify and improve to handle any kind of killing stmt.
6257 (dse_record_phi): Remove.
6258 (dse_enter_block): Simplify.
6259 (tree_ssa_dse): Likewise.
6260 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6261
6262 2011-04-14 Jan Hubicka <jh@suse.cz>
6263
6264 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6265 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6266 (cgraph_local_info): Remove inline_summary.
6267 * ipa-cp.c: Include ipa-inline.h.
6268 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6269 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6270 accesor.
6271 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6272 (input_overwrite_node): Do not set inline summary.
6273 (input_node): Do not stream inline summary.
6274 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6275 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6276 growth; we do not have inline parameters computed for that anyway.
6277 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6278 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6279 (inline_summary_t): New type and VECtor.
6280 (debug_inline_summary, dump_inline_summaries): Declare.
6281 (inline_summary): Use VOCtor.
6282 (estimate_edge_growth): Kill hack computing call stmt size directly.
6283 * lto-section-in.c (lto_section_name): Add inline section.
6284 * ipa-inline-analysis.c: Include lto-streamer.h
6285 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6286 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6287 (inline_summary_vec): Define.
6288 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6289 dump_inline_summaries): New functions.
6290 (estimate_function_body_sizes): Properly compute size/time of outgoing
6291 calls.
6292 (compute_inline_parameters): Alloc inline_summary; do not compute
6293 size/time of incomming calls.
6294 (estimate_edge_time): Avoid missing time summary hack.
6295 (inline_read_summary): Read inline summary info.
6296 (inline_write_summary): Write inline summary info.
6297 (inline_free_summary): Free all hooks and inline summary vector.
6298 * lto-streamer.h: Add LTO_section_inline_summary section.
6299 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6300 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6301
6302 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6303
6304 * tree-vectorizer.h (vect_strided_store_supported): Add a
6305 HOST_WIDE_INT argument.
6306 (vect_strided_load_supported): Likewise.
6307 (vect_permute_store_chain): Return void.
6308 (vect_transform_strided_load): Likewise.
6309 (vect_permute_load_chain): Delete.
6310 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6311 count argument. Check that the count is a power of two.
6312 (vect_strided_load_supported): Likewise.
6313 (vect_permute_store_chain): Return void. Update after above changes.
6314 Assert that the access is supported.
6315 (vect_permute_load_chain): Likewise.
6316 (vect_transform_strided_load): Return void.
6317 * tree-vect-stmts.c (vectorizable_store): Update calls after
6318 above interface changes.
6319 (vectorizable_load): Likewise.
6320 (vect_analyze_stmt): Don't check for strided powers of two here.
6321
6322 2011-04-14 Richard Guenther <rguenther@suse.de>
6323
6324 PR tree-optimization/48590
6325 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6326 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6327 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6328 BUILT_IN_STACK_SAVE.
6329 * tree-ssa-dce.c (propagate_necessity): Handle
6330 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6331
6332 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6333
6334 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6335 objc_declare_class.
6336
6337 2011-04-14 Richard Guenther <rguenther@suse.de>
6338
6339 * tree.h (get_object_alignment_1): Declare.
6340 * builtins.c (get_object_alignment_1): Split out worker from ...
6341 (get_object_alignment): ... here.
6342 * fold-const.c (get_pointer_modulus_and_residue): Use
6343 get_object_alignment_1.
6344
6345 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6346
6347 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6348 type parameter.
6349 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6350 parameter. Generalise code to handle arrays as well as vectors.
6351 (vect_setup_realignment): Update accordingly.
6352 * tree-vect-stmts.c (vectorizable_store): Likewise.
6353 (vectorizable_load): Likewise.
6354
6355 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6356
6357 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6358 within the per-copy loop.
6359
6360 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6361
6362 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6363 in the dump file.
6364
6365 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6366
6367 * doc/options.texi (Negative): Explicitly mention that the
6368 Negative chain must be circular.
6369
6370 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6371
6372 * function.h (block_chainon): Declare.
6373 * function.c (block_chainon): Define.
6374
6375 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6376 Eric Weddington <eric.weddington@atmel.com>
6377 Georg-Johann Lay <avr@gjlay.de>
6378
6379 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6380 New Includes
6381 (avr_init_builtins, avr_expand_builtin,
6382 avr_expand_delay_cycles, avr_expand_unop_builtin,
6383 avr_expand_binop_builtin ): New functions.
6384 (avr_builtin_id): New enum
6385 (struct avr_builtin_description): New struct
6386 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6387 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6388
6389 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6390 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6391 UNSPECV_DELAY_CYCLES): new enumeration values
6392 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6393 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6394 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6395 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6396 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6397 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6398 "fmulsu"): New insns
6399
6400 * config/avr/avr-c.c: fix line endings
6401 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6402 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6403 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6404 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6405 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6406
6407 * doc/extend.texi (AVR Built-in Functions): New node
6408 (Target Builtins): Add documentation of AVR
6409 built-in functions.
6410
6411 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6412
6413 PR target/44643
6414 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6415 alone. Error if non-const data has attribute progmem.
6416
6417 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6418
6419 * tree.h (struct tree_constructor): Include tree_typed instead of
6420 tree_common.
6421 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6422 TS_TYPED instead of TS_COMMON.
6423
6424 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6425
6426 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6427 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6428 (sse2_psadbw): Merge with *avx_psadbw.
6429 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6430 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6431 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6432 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6433 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6434 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6435 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6436 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6437 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6438 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6439 (ssse3_palignrti): Merge with *avx_palignrti.
6440
6441 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6442
6443 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6444 * tree-ssanames.c (fini_ssanames): VEC_free it.
6445 (make_ssa_name_fn): Update for VECness of free_ssanames.
6446 (release_ssa_name, release_dead_ssa_names): Likewise.
6447 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6448 tree_common.
6449 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6450 TS_TYPED instead of TS_COMMON.
6451
6452 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6453
6454 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6455 statistics_counter_event.
6456 * tree-ssa-copyrename.c (stats): Define.
6457 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6458 statistics_counter_event.
6459 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6460 (bswap_stats, widen_mul_stats): Define.
6461 (insert_reciprocals): Increment rdivs_inserted.
6462 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6463 rfuncs_inserted. Add calls to statistics_counter_event.
6464 (execute_cse_sincos_1): Increment inserted.
6465 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6466 statistics_counter_event.
6467 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6468 of bswap_stats. Add calls to statistics_counter_event.
6469 (convert_mult_to_widen): Increment widen_mults_inserted.
6470 (convert_plusminus_to_widen): Increment maccs_inserted.
6471 (convert_mult_to_fma): Increment fmas_inserted.
6472 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6473 calls to statistics_counter_event.
6474
6475 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6476
6477 PR rtl-optimization/48455
6478 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6479 `temp_costs->mem_cost'.
6480
6481 2011-04-13 Jan Hubicka <jh@suse.cz>
6482
6483 * ipa-inline.h: New file.
6484 * ipa-inline-analysis.c: New file. Broken out of ...
6485 * ipa-inline.c: ... this file; update toplevel comment;
6486 include ipa-inline.h
6487 (inline_summary): Move to ipa-inline.h
6488 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6489 ipa-inline-analysis.c.
6490 (cgraph_estimate_time_after_inlining): Rename to
6491 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6492 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6493 to estimate_edge_growth.
6494 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6495 rename to estimate_size_after_inlining.
6496 (cgraph_mark_inline_edge): Update for new naming convention.
6497 (cgraph_check_inline_limits): Likewise.
6498 (cgraph_edge_badness): Likewise.
6499 (cgraph_decide_recursive_inlining): Likewise.
6500 (cgraph_decide_inlining_of_small_functions): Likewise.
6501 (cgraph_decide_inlining_incrementally): Likewise.
6502 (cgraph_estimate_growth): Rename to estimate_growth; move to
6503 ipa-inline-analysis.c.
6504 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6505 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6506 (compute_inline_parameters): Likewise.
6507 (compute_inline_parameters_for_current): Likewise.
6508 (pass_inline_parameters): Likewise.
6509 (inline_indirect_intraprocedural_analysis): Likewise.
6510 (analyze_function): Rename to inline_analyze_function; likewise.
6511 (add_new_function): Move to ipa-inline-analysis.c.
6512 (inline_generate_summary): Likewise.
6513 (inline_read_summary): Likewise.
6514 (inline_write_summary): Likewise.
6515 * Makefile.in (ipa-inline-analysis.c): New file.
6516
6517 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6518
6519 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6520 * configure: Regenerate.
6521
6522 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6523
6524 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6525 instead of tree_common.
6526 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6527 Likewise.
6528 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6529 TS_TYPED rather than TS_COMMON.
6530 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6531
6532 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6533
6534 PR target/45263
6535 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6536 r20 around calls of __tablejump_elpm__
6537
6538 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6539
6540 PR middle-end/48591
6541 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6542 NULL.
6543 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6544
6545 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6546
6547 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6548 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6549 (cfi_vec): New typedef.
6550 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6551 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6552 (cie_cfi_vec): New static variable.
6553 (cie_cfi_head): Delete.
6554 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6555 declaration changed. Use vector rather than list operations.
6556 (new_cfi): Don't initialize the dw_cfi_next field.
6557 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6558 rather than list operations.
6559 (lookup_cfa): Use vector rather than list operations.
6560 (output_cfis): New argument upto. Accept a cfi_vec rather than
6561 a dw_cfi_ref list head as argument. All callers changed.
6562 Iterate over the vector using upto as a maximum index.
6563 (output_all_cfis): New static function.
6564 (output_fde): Use vector rather than list operations. Use the
6565 new upto argument for output_cfis rather than manipulating a
6566 list.
6567 (dwarf2out_begin_prologue): Change initializations to match
6568 new struct members.
6569 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6570 from the vector length rather than searching for the end of a list.
6571 Use output_all_cfis.
6572 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6573
6574 2011-04-13 Nick Clifton <nickc@redhat.com>
6575
6576 * config/rx/rx.md (movmemsi): Do not use this pattern when
6577 volatile pointers are involved.
6578
6579 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6580
6581 * config/i386/sse.md (pinsrbits): Remove.
6582 (sse2_packsswb): Merge with *avx_packsswb.
6583 (sse2_packssdw): Merge with *avx_packssdw.
6584 (sse2_packuswb): Merge with *avx_packuswb.
6585 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6586 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6587 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6588 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6589 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6590 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6591 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6592 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6593 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6594 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6595 (sse2_loadld): Merge with *avx_loadld.
6596 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6597 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6598 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6599 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6600 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6601
6602 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6603
6604 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6605 calling TREE_CHAIN.
6606 * print-tree.c (print_node): Likewise.
6607 * tree-inline.c (copy_tree_r): Likewise.
6608 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6609 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6610 instead of TS_COMMON.
6611 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6612 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6613 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6614 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6615 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6616 ...and these...
6617 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6618 * tree.h: ...here.
6619 (TREE_CHAIN): Check for a TS_COMMON structure.
6620 (TREE_TYPE): Check for a TS_TYPED structure.
6621
6622 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6623
6624 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6625 cgraph_get_create_node instead of cgraph_node.
6626
6627 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6628
6629 * c-parser.c (c_parser_initelt): Updated call to
6630 objc_build_message_expr.
6631 (c_parser_postfix_expression): Likewise.
6632
6633 2011-04-12 Kai Tietz <ktietz@redhat.com>
6634
6635 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6636 MASK_MS_BITFIELD_LAYOUT bit.
6637
6638 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6639
6640 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6641 assert it is always true.
6642 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6643 moves.
6644
6645 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6646
6647 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6648 compiling Objective-C to be more efficient.
6649
6650 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6651
6652 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6653 argv_copied.
6654
6655 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6656
6657 * recog.h, genoutput.c, optabs.c: Revert last patch.
6658
6659 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6660
6661 PR target/48090
6662 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6663
6664 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6665
6666 * recog.h (insn_operand_data): Add an "allows_mem" field.
6667 * genoutput.c (output_operand_data): Initialize it.
6668 * optabs.c (maybe_legitimize_operand_same_code): New function.
6669 (maybe_legitimize_operand): Use it when matching the original
6670 op->value.
6671
6672 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6673
6674 * genpreds.c (process_define_predicate): Move most processing
6675 to gensupport.c. Continue to validate the expression.
6676 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6677 (process_define_predicate): Move processing to gensupport.c.
6678 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6679 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6680 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6681 argument.
6682 (valid_predicate_name_p): New function, split out from old
6683 genpreds.c:process_define_predicate.
6684 (process_define_predicate): New function, combining code from
6685 old genpreds.c and genrecog.c functions.
6686 (process_rtx): Call it for DEFINE_PREDICATE and
6687 DEFINE_SPECIAL_PREDICATE.
6688
6689 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6690
6691 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6692 size of a '%A' memory reference.
6693 (T_DREG, T_QREG): New neon_builtin_type_bits.
6694 (arm_init_neon_builtins): Assert that the load and store operands
6695 are neon_struct_operands.
6696 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6697 (NEON_ARG_MEMORY): New builtin_arg.
6698 (neon_dereference_pointer): New function.
6699 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6700 Handle NEON_ARG_MEMORY.
6701 (arm_expand_neon_builtin): Update after above interface changes.
6702 Use NEON_ARG_MEMORY for loads and stores.
6703 * config/arm/predicates.md (neon_struct_operand): New predicate.
6704 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6705 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6706 (V_four_elem): Tweak formatting.
6707 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6708 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6709 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6710 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6711 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6712 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6713 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6714 Use %A in the output template.
6715 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6716 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6717 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6718 the width of the memory access. Remove post-increment.
6719 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6720
6721 2011-04-12 Nick Clifton <nickc@redhat.com>
6722
6723 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6724 instruction for interrupt handlers if the target is the basic V850
6725 architecture.
6726 (expand_epilogue): Likewise.
6727
6728 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6729
6730 PR rtl-optimization/48549
6731 * combine.c (propagate_for_debug): Also stop after BB_END of
6732 this_basic_block. Process LAST and just stop processing after it.
6733 (combine_instructions): If last_combined_insn has been deleted,
6734 set last_combined_insn to its PREV_INSN.
6735
6736 2011-04-12 Richard Guenther <rguenther@suse.de>
6737
6738 PR tree-optimization/46076
6739 * gimple.h (struct gimple_statement_call): Add fntype field.
6740 (gimple_call_fntype): Adjust.
6741 (gimple_call_set_fntype): New function.
6742 * gimple.c (gimple_build_call_1): Set the call function type.
6743 * gimplify.c (gimplify_call_expr): Preserve the function
6744 type the frontend used for the call.
6745 (gimplify_modify_expr): Likewise.
6746 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6747 function type.
6748 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6749 function type.
6750 * tree-ssa.c (useless_type_conversion_p): Function pointer
6751 conversions are useless.
6752
6753 2011-04-12 Martin Jambor <mjambor@suse.cz>
6754
6755 * cgraph.h (cgraph_node): Remove function declaration.
6756 (cgraph_create_node): Declare.
6757 (cgraph_get_create_node): Likewise.
6758 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6759 Updated all callers.
6760 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6761 the decl does not already exist. Call cgraph_get_create_node instead
6762 of cgraph_node.
6763 (cgraph_get_create_node): New function.
6764 (cgraph_same_body_alias): Update comment.
6765 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6766 assert it does not return NULL.
6767 (cgraph_update_edges_for_call_stmt): Likewise.
6768 (cgraph_clone_edge): Likewise.
6769 (cgraph_create_virtual_clone): Likewise.
6770 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6771 instead of cgraph_node.
6772 (cgraph_add_new_function): Call cgraph_create_node or
6773 cgraph_get_create_node instead of cgraph_node.
6774 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6775 instead of cgraph_node.
6776 (record_eh_tables): Likewise.
6777 (mark_address): Likewise.
6778 (mark_load): Likewise.
6779 (build_cgraph_edges): Call cgraph_get_create_node instead
6780 of cgraph_node.
6781 (rebuild_cgraph_edges): Likewise.
6782 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6783 instead of cgraph_node.
6784 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6785 cgraph_node.
6786 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6787 cgraph_create_node instead of cgraph_node.
6788 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6789 of cgraph_node.
6790 * lto-cgraph.c (input_node): Likewise.
6791 * lto-streamer-in.c (input_function): Likewise.
6792 * varasm.c (mark_decl_referenced): Likewise.
6793 (assemble_alias): Likewise.
6794
6795 2011-04-12 Martin Jambor <mjambor@suse.cz>
6796
6797 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6798 instead of cgraph_node and assert it does not return NULL.
6799 * lto-streamer-in.c (lto_read_body): Likewise.
6800 * omp-low.c (new_omp_context): Likewise.
6801 (create_task_copyfn): Likewise.
6802 * tree-emutls.c (lower_emutls_function_body): Likewise.
6803 * matrix-reorg.c (transform_allocation_sites): Likewise.
6804
6805 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6806
6807 PR c/48552
6808 * c-typeck.c (build_asm_expr): Error out on attempts to use
6809 void type outputs or inputs for constraints that allow reg or
6810 don't allow memory.
6811
6812 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6813 Richard Earnshaw <rearnsha@arm.com>
6814
6815 PR target/48250
6816 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6817 to use sign-magnitude offsets. Reject unsupported unaligned
6818 cases. Add detailed description in comments.
6819 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6820 condition from TARGET_32BIT to TARGET_ARM.
6821
6822 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6823
6824 * tree.h (struct typed_tree): New.
6825 (struct tree_common): Include it instead of tree_base.
6826 (TREE_TYPE): Update for new location of type field.
6827 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6828 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6829 (union tree_node): Add typed field.
6830 * treestruct.def (TS_TYPED): New.
6831 * lto-streamer.c (check_handled_ts_structures): Handle it.
6832 * tree.c (MARK_TS_TYPED): New macro.
6833 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6834
6835 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6836
6837 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6838 (force_nonfallthru): Do not alter the loop nest if no basic block
6839 was created.
6840
6841 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6842
6843 * config/i386/sse.md (VI): New mode iterator.
6844 (SSEMODEI): Remove.
6845 (AVX256MODEI): Ditto.
6846 (AVXMODEF4P): Ditto.
6847 (avxvecpsmode): Ditto.
6848 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6849 (sse2_andnot<mode>3): New expander.
6850 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6851 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6852 (<any_logic:code><mode>3): Use VI mode iterator.
6853 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6854 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6855 (*andnottf3): Handle AVX three-operand constraints.
6856 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6857
6858 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6859 Robert Millan <rmh@gnu.org>
6860
6861 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6862 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6863 GNU_USER_DYNAMIC_LINKER64): Define.
6864 (REG_NAME): Don't undefine.
6865 (MD_UNWIND_SUPPORT): Undefine.
6866 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6867 (REG_NAME): Don't undefine.
6868 (MD_UNWIND_SUPPORT): Undefine.
6869 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6870
6871 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6872
6873 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6874 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6875
6876 2011-04-11 Xinliang David Li <davidxl@google.com>
6877
6878 * value-profile.c (check_ic_target): New function.
6879 (gimple_ic_transform): Sanity check indirect call target.
6880 * gimple-low.c (gimple_check_call_args): Interface change.
6881 (gimple_check_call_matching_types): New function.
6882 * tree-inline.c (tree_can_inline_p): Call new function.
6883
6884 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6885
6886 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6887 tree-pretty-print.h & realmpfr.h.
6888
6889 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6890
6891 PR middle-end/48464
6892 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6893 (setup_allocno_and_important_classes): Ditto.
6894
6895 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6896
6897 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6898 GNU_USER_DYNAMIC_LINKER.
6899 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6900 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6901 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6902 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6903 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6904 GNU_USER_TARGET_OS_CPP_BUILTINS.
6905 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6906 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6907 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6908 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6909 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6910 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6911 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6912 GNU_USER_TARGET_OS_CPP_BUILTINS.
6913 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6914 GNU_USER_DYNAMIC_LINKER.
6915 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6916 GNU_USER_TARGET_OS_CPP_BUILTINS.
6917 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6918 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6919 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6920 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6921 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6922 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6923 GNU_USER_DYNAMIC_LINKER64): Remove.
6924 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6925 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6926 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6927 GNU_USER_DYNAMIC_LINKER.
6928 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6929 GNU_USER_TARGET_OS_CPP_BUILTINS.
6930 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6931 GNU_USER_TARGET_OS_CPP_BUILTINS.
6932 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6933 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6934 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6935 GNU_USER_TARGET_OS_CPP_BUILTINS.
6936 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6937 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6938 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6939 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6940 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6941 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6942 GNU_USER_DYNAMIC_LINKER.
6943 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6944 GNU_USER_TARGET_OS_CPP_BUILTINS.
6945 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6946 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6947 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6948 GNU_USER_DYNAMIC_LINKER.
6949 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6950 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6951 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6952 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6953 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6954 GNU_USER_DYNAMIC_LINKER.
6955 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6956 GNU_USER_DYNAMIC_LINKERN32.
6957 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6958 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6959 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6960 GNU_USER_DYNAMIC_LINKER32.
6961 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6962 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6963 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6964 GNU_USER_DYNAMIC_LINKER.
6965 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6966 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6967 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6968 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6969 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6970 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6971 GNU_USER_DYNAMIC_LINKER32.
6972 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6973 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6974 GNU_USER_DYNAMIC_LINKER.
6975 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6976 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6977 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6978 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6979 GNU_USER_DYNAMIC_LINKER64.
6980 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6981 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6982 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6983 GNU_USER_DYNAMIC_LINKER.
6984 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6985 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6986 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6987 GNU_USER_DYNAMIC_LINKER.
6988 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6989 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6990 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6991 GNU_USER_DYNAMIC_LINKER32.
6992 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6993 GNU_USER_DYNAMIC_LINKER64.
6994 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6995 GNU_USER_DYNAMIC_LINKER64.
6996 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6997 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6998 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6999 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7000 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7001
7002 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7003
7004 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7005 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7006 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7007 GNU_USER_DYNAMIC_LINKER.
7008 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7009 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7010 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7011 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7012 GNU_USER_DYNAMIC_LINKER64.
7013 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7014 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7015 GNU_USER_LINK_EMULATION.
7016 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7017 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7018 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7019 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7020 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7021 CPP_SPEC, CC1_SPEC): Remove.
7022 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7023 (GNU_USER_DYNAMIC_LINKER): Define.
7024 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7025 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7026 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7027 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7028 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7029 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7030 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7031 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7032 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7033 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7034 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7035 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7036 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7037 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7038 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7039 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7040 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7041 GNU_USER_DYNAMIC_LINKER.
7042 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7043 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7044 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7045 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7046 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7047 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7048 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7049 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7050 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7051 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7052
7053 2011-04-11 Kai Tietz <ktietz@redhat.com>
7054
7055 PR target/9601
7056 PR target/11772
7057 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7058 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7059 comment.
7060 (ix86_is_msabi_thiscall): Removed.
7061 (ix86_is_type_thiscall): Likewise.
7062 (ix86_get_callcvt): New function.
7063 (ix86_comp_type_attributes): Simplify check.
7064 (ix86_function_regparm): Use ix86_get_callcvt for calling
7065 convention attribute checks.
7066 (ix86_return_pops_args): Likewise.
7067 (ix86_static_chain): Likewise.
7068 (x86_this_parameter): Likewise.
7069 (x86_output_mi_thunk): Likewise.
7070 (ix86_function_type_abi): Optimize check for types without attributes.
7071 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7072 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7073 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7074 by flag-values.
7075 (IX86_BASE_CALLCVT): Helper macro.
7076 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7077 Use ix86_get_callcvt for calling convention attribute checks and avoid
7078 symbol-decoration for stdcall in TARGET_RTD case.
7079 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7080 Likewise.
7081 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7082 for declaration.
7083
7084 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7085
7086 * config/i386/sse.md (VI_128): New mode iterator.
7087 (VI12_128): Rename from SSEMODE12.
7088 (VI14_128): Rename from SSEMODE14.
7089 (VI124_128): New mode iterator.
7090 (VI24_128): Rename from SSEMODE248.
7091 (VI248_128): Rename from SSEMODE248.
7092 (SSEMODE124C8): Remove.
7093 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7094 (*sse2_<plusminus_insn><mode>3): Merge with
7095 *avx_<plusminus_insn><mode>3.
7096 (*mulv8hi3): Merge with *avx_mulv8hi3.
7097 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7098 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7099 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7100 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7101 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7102 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7103 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7104 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7105 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7106 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7107 (*<smaxmin:code>v8hi3): Ditto.
7108 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7109 (*<smaxmin:code>v16qi3): Ditto.
7110 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7111 (*sse2_eq<mode>3): Ditto.
7112 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7113 (*sse2_gt<mode>3): Ditto.
7114 (vcondv2di): Split out of vcond<mode>.
7115 (vconduv2di): Split out of vcondu<mode>.
7116
7117 2011-04-11 Richard Guenther <rguenther@suse.de>
7118
7119 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7120 before calling tree_low_cst.
7121
7122 2011-04-11 Richard Guenther <rguenther@suse.de>
7123
7124 * stor-layout.c (layout_type): Compute all array index size operations
7125 in the original type.
7126 (initialize_sizetypes): Add comment.
7127 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7128
7129 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7130
7131 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7132
7133 2011-04-11 Martin Jambor <mjambor@suse.cz>
7134
7135 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7136 of cgraph_node, handle NULL return value.
7137 (cgraph_global_info): Likewise.
7138 (cgraph_rtl_info): Likewise.
7139 * tree-inline.c (estimate_num_insns): Likewise.
7140 * gimplify.c (unshare_body): Likewise.
7141 (unvisit_body): Likewise.
7142 (gimplify_body): Likewise.
7143 * predict.c (optimize_function_for_size_p): Likewise.
7144 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7145 (call_may_clobber_ref_p_1): Likewise.
7146 * varasm.c (function_section_1): Likewise.
7147 (assemble_start_function): Likewise.
7148
7149 2011-04-11 Martin Jambor <mjambor@suse.cz>
7150
7151 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7152 of cgraph_node.
7153 * final.c (rest_of_clean_state): Likewise.
7154 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7155 * passes.c (pass_init_dump_file): Likewise.
7156 (execute_all_ipa_transforms): Likewise.
7157 (function_called_by_processed_nodes_p): Likewise.
7158 * predict.c (maybe_hot_frequency_p): Likewise.
7159 (probably_never_executed_bb_p): Likewise.
7160 (compute_function_frequency): Likewise.
7161 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7162 (unnest_nesting_tree_1): Likewise.
7163 (lower_nested_functions): Likewise.
7164 * tree-optimize.c (execute_fixup_cfg): Likewise.
7165 (tree_rest_of_compilation): Likewise.
7166 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7167 * tree-sra.c (ipa_early_sra): Likewise.
7168 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7169 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7170 * ipa.c (record_cdtor_fn): Likewise.
7171 * ipa-inline.c (cgraph_early_inlining): Likewise.
7172 (compute_inline_parameters_for_current): Likewise.
7173 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7174 * ipa-pure-const.c (local_pure_const): Likewise.
7175 * ipa-split.c (split_function): Likewise.
7176 (execute_split_functions): Likewise.
7177 * cgraphbuild.c (build_cgraph_edges): Likewise.
7178 (rebuild_cgraph_edges): Likewise.
7179 (cgraph_rebuild_references): Likewise.
7180 (remove_cgraph_callee_edges): Likewise.
7181 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7182 (verify_cgraph_node): Likewise.
7183 (cgraph_analyze_functions): Likewise.
7184 (cgraph_preserve_function_body_p): Likewise.
7185 (save_inline_function_body): Likewise.
7186 (save_inline_function_body): Likewise.
7187 * tree-inline.c (copy_bb): Likewise.
7188 (optimize_inline_calls): Likewise.
7189
7190 2011-04-11 Martin Jambor <mjambor@suse.cz>
7191
7192 PR tree-optimization/48195
7193 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7194 ipa_check_create_edge_args.
7195 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7196 ipa_check_create_edge_args.
7197 * ipa-inline.c (inline_generate_summary): Do not call
7198 ipa_check_create_node_params and ipa_check_create_edge_args.
7199 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7200 ipa_check_create_edge_args.
7201
7202 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7203
7204 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7205 instead of loop.
7206 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7207 * function.c (record_hard_reg_sets): Likewise.
7208 * ira.c (compute_regs_asm_clobbered): Likewise.
7209 * sched-deps.c (sched_analyze_1): Likewise.
7210 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7211
7212 2011-04-09 Xinliang David Li <davidxl@google.com>
7213
7214 PR tree-optimization/PR48484
7215 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7216 has_valid_pred lazily
7217
7218 2011-04-09 Duncan Sands <baldrick@free.fr>
7219
7220 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7221
7222 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7223
7224 * combine.c (combine_validate_cost): Adjust comments. Set registered
7225 cost of I0 to zero at the end, if any.
7226
7227 2011-04-08 Xinliang David Li <davidxl@google.com>
7228
7229 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7230 to insane profile data.
7231
7232 2011-04-08 Xinliang David Li <davidxl@google.com>
7233
7234 * ipa-cp.c (ipcp_update_profiling): Correct
7235 negative scale factor due to insane profile data.
7236
7237 2011-04-08 Xinliang David Li <davidxl@google.com>
7238
7239 * final.c (dump_basic_block_info): New function.
7240 (final): Dump basic block.
7241 (final_scan_insn): Remove old dump.
7242
7243 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7244
7245 PR target/47829
7246 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7247 crtbegin/crtend.
7248
7249 2011-04-08 Michael Matz <matz@suse.de>
7250
7251 PR middle-end/48389
7252 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7253 functions.
7254 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7255 * rtl.h (rebuild_jump_labels_chain): Declare.
7256 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7257 insns inserted on edges.
7258
7259 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7260
7261 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7262 * config/arm/arm-arches.def: New.
7263 * config/arm/arm-opts.h: New.
7264 * config/arm/genopt.sh: New.
7265 * config/arm/arm-tables.opt: New (generated).
7266 * config/arm/arm.c (arm_handle_option, arm_target_help,
7267 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7268 (all_architectures): Get most table contents from arm-arches.def.
7269 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7270 arm_selected_tune here.
7271 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7272 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7273 (march=, mcpu=, mtune=): Use Enum and Var.
7274 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7275 (arm.o): Update dependencies.
7276
7277 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7278
7279 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7280 of header_file.
7281 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7282 (write_typed_alloc_defns): Likewise.
7283 (main): Calls write_typed_alloc_defns with output_header.
7284
7285 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7286
7287 PR inline-asm/48435
7288 * ira-color.c (setup_profitable_hard_regs): Add comments.
7289 Don't take prohibited hard regs into account.
7290 (setup_conflict_profitable_regs): Rename to
7291 get_conflict_profitable_regs.
7292 (check_hard_reg_p): Check prohibited hard regs.
7293
7294 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7295
7296 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7297 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7298 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7299
7300 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7301
7302 PR target/48366
7303 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7304 move from floating point to shift amount register.
7305 (emit_move_sequence): Remove secondary reload support for floating
7306 point to shift amount amount register copies.
7307 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7308 amount register copies.
7309 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7310 register, return false if mode isn't a scalar integer mode.
7311 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7312
7313 2011-04-08 Richard Guenther <rguenther@suse.de>
7314
7315 * gimple.c (gimple_call_flags): Remove kludge.
7316
7317 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7318
7319 * sel-sched.c (sel_region_init): Move call to
7320 sel_setup_region_sched_flags after setup_current_loop_nest.
7321
7322 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7323
7324 PR rtl-optimization/48272
7325 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7326 init_insn_reg_pressure_info. Adjust a caller.
7327 * sched-int.h (init_insn_reg_pressure_info): Declare.
7328 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7329 when sched-pressure is enabled.
7330
7331 2011-04-08 Richard Guenther <rguenther@suse.de>
7332
7333 * gimple.c (gimple_set_modified): Do not queue calls to
7334 MODIFIED_NORETURN_CALLS here ...
7335 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7336
7337 2011-04-08 Richard Guenther <rguenther@suse.de>
7338
7339 PR lto/48467
7340 * toplev.c (lang_dependent_init): Do not open asm_out_file
7341 in WPA mode, nor perform debug machinery initialization.
7342 (finalize): Do not unlink asm_out_file in WPA mode.
7343
7344 2011-04-08 Richard Guenther <rguenther@suse.de>
7345
7346 * gimple.h (gimple_call_fntype): New function.
7347 (gimple_call_return_type): Use it.
7348 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7349 * gimple-low.c (gimple_check_call_args): Likewise.
7350 * gimple.c (gimple_call_flags): Likewise.
7351 (gimple_call_arg_flags): Likewise.
7352 (gimple_call_return_flags): Likewise.
7353 * tree-cfg.c (verify_gimple_call): Likewise.
7354 (do_warn_unused_result): Likewise.
7355 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7356 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7357
7358 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7359
7360 PR rtl-optimization/48235
7361 * sel-sched.c (code_motion_process_successors): Recompute the last
7362 insn in basic block if control flow changed.
7363 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7364 Update condition for ilist_remove.
7365
7366 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7367
7368 PR rtl-optimization/48302
7369 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7370 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7371 it to record added preheader blocks.
7372 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7373 on to sel_add_loop_preheaders.
7374 (sel_region_init): Move call to setup_current_loop_nest after
7375 sel_init_bbs.
7376
7377 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7378
7379 PR target/48273
7380 * cfgloop.h (loop_has_exit_edges): New helper.
7381 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7382 non-clonable.
7383 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7384 that have no exit edges.
7385
7386 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7387
7388 PR rtl-optimization/48442
7389 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7390 all callers. Adjust assert.
7391
7392 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7393
7394 PR tree-optimization/48377
7395 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7396 is_packed to true even for types with smaller TYPE_ALIGN than
7397 TYPE_SIZE.
7398
7399 2011-04-08 Richard Guenther <rguenther@suse.de>
7400
7401 PR bootstrap/48513
7402 * doc/tm.texi: Re-generate.
7403
7404 2011-04-08 Wei Guozhi <carrot@google.com>
7405
7406 PR target/47855
7407 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7408 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7409 * config/arm/arm.md (*push_multi): Change the length computation to
7410 call a C function.
7411
7412 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7413
7414 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7415 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7416 * doc/tm.texi: Regenerate.
7417 * system.h (ASM_OUTPUT_BSS): Poison.
7418 * varasm.c (asm_output_bss): Remove function.
7419 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7420
7421 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7422 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7423 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7424 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7425 Likewise.
7426 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7427 Likewise.
7428 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7429 Likewise.
7430 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7431
7432 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7433
7434 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7435 EnumValue lines.
7436
7437 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7438
7439 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7440 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7441 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7442 OPT_mcpu32.
7443 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7444 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7445 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7446 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7447 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7448 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7449 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7450 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7451 options. Don't map other m68k options manually. Don't handle
7452 old-style options as canonical.
7453 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7454 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7455
7456 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7457
7458 * basic-block.h (force_nonfallthru): Move to...
7459 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7460 (force_nonfallthru): ...here.
7461 * cfghooks.c (force_nonfallthru): New function.
7462 * cfgrtl.c (force_nonfallthru): Rename into...
7463 (rtl_force_nonfallthru): ...this.
7464 (commit_one_edge_insertion): Do not set AUX field.
7465 (commit_edge_insertions): Do not discover new basic blocks.
7466 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7467 (cfg_layout_rtl_cfg_hooks): Likewise.
7468 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7469 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7470 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7471
7472 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7473
7474 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7475 Remove macros.
7476
7477 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7478
7479 * config/i386/sse.md: Update copyright year.
7480 (avxcvtvecmode): Remove.
7481 (sse_movhlps): Merge with *avx_movhlps.
7482 (sse_movlhps): Merge with *avx_movlhps.
7483 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7484 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7485 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7486 (sse_loadhps): Merge with *avx_loadhps.
7487 (sse_storelps): Merge with *avx_storelps.
7488 (sse_loadlps): Merge with *avx_loadlps.
7489 (sse_movss): Merge with *avx_movss.
7490 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7491 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7492 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7493 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7494 (vec_set<mode>_0): Ditto.
7495 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7496 (sse4_1_insertps): Merge with *avx_insertps.
7497 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7498 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7499 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7500 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7501 (sse2_storehpd): Merge with *avx_storehpd.
7502 (sse2_loadhpd): Merge with *avx_loadhpd.
7503 (sse2_loadlpd): Merge with *avx_loadlpd.
7504 (sse2_movsd): Merge with *avx_movsd.
7505 (*vec_concatv2df): Merge with *vec_concatv2df.
7506
7507 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7508
7509 PR debug/48343
7510 * combine.c (combine_instructions): Add last_combined_insn,
7511 update it if insn is after it, pass it to all try_combine calls.
7512 (try_combine): Add last_combined_insn parameter, pass it instead of
7513 i3 to propagate_for_debug.
7514
7515 2011-04-07 Nick Clifton <nickc@redhat.com>
7516
7517 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7518 to handle MDR <-> data register transfers.
7519 (movhi_internal): Likewise.
7520
7521 2011-04-07 Alan Modra <amodra@gmail.com>
7522
7523 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7524 previous stack info.
7525
7526 2011-04-07 Tom de Vries <tom@codesourcery.com>
7527
7528 PR target/43920
7529 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7530 flow_find_cross_jump. Swap variables to implement backward replacement.
7531 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7532
7533 2011-04-07 Tom de Vries <tom@codesourcery.com>
7534
7535 PR target/43920
7536 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7537 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7538 and bb2.
7539 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7540 src1 or src2. Redirect edges to the last basic block. Update
7541 frequency and count on multiple basic blocks in case of fallthru.
7542
7543 2011-04-07 Tom de Vries <tom@codesourcery.com>
7544
7545 PR target/43920
7546 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7547 function.
7548 (old_insns_match_p): Change return type. Replace return false/true
7549 with return dir_none/dir_both. Use can_replace_by.
7550 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7551 direction from dir_p. Register replacement direction in dir, last_dir
7552 and afterlast_dir. Handle new return type of old_insns_match_p using
7553 merge_dir. Return replacement direction in dir_p.
7554 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7555 return type of old_insns_match_p.
7556 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7557 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7558 flow_find_cross_jump.
7559 * basic-block.h (enum replace_direction): New type.
7560 (flow_find_cross_jump): Add parameter to declaration.
7561
7562 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7563
7564 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7565 (AVXMODEDCVTPS2DQ): Ditto.
7566 (VEC_FLOAT_MODE): Ditto.
7567 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7568 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7569 (<any_logic:code><mode>3): Use VF mode iterator.
7570 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7571 Use VF mode iterator.
7572 (copysign<mode>3): Use VF mode iterator.
7573 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7574 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7575 (*<any_logic:code><MODEF:mode>3): Merge with
7576 *avx_<any_logic:code><MODEF:mode>3.
7577 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7578 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7579 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7580 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7581 (sse2_cvtdq2ps): Use %v modifier.
7582 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7583 (avx_cvtps2dq<avxmodesuffix>): Remove.
7584 (sse2_cvtps2dq): Use %v modifier.
7585 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7586 (avx_cvttps2dq<avxmodesuffix>): Remove.
7587 (sse2_cvttps2dq): Use %v modifier.
7588 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7589 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7590 (sse2_cvtsd2siq): Fix insn template.
7591 (sse2_cvtsd2siq_2): Ditto.
7592 (sse2_cvttsd2siq): Ditto.
7593 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7594 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7595
7596 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7597
7598 * gcov-io.c: Use GCC Runtime Library Exception.
7599
7600 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7601
7602 PR debug/48466
7603 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7604 as base_reg whatever register reg has been eliminated to, instead
7605 of hardcoding STACK_POINTER_REGNUM.
7606
7607 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7608
7609 * doc/tm.texi.in: Document C target hooks as separate from general
7610 target hooks.
7611 * doc/tm.texi: Regenerate.
7612 * genhooks.c (struct hook_desc): Add docname field.
7613 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7614 docname field.
7615 (hook_array): Include c-target.def.
7616 (emit_documentation): Use docname field in output.
7617 (emit_init_macros): Take docname argument. Only emit definitions
7618 for hooks matching docname.
7619 (main): Expect additional arguments in all cases. Pass argument
7620 to emit_init_macros.
7621 * target.def: Move initial macro definitions and comments to
7622 target-hooks-macros.h.
7623 (gcc_targetcm): Move to c-family/c-target.def.
7624 * target.h (targetcm): Move declaration to c-family/c-target.h.
7625 * targhooks.c (default_handle_c_option): Move to
7626 c-family/c-opts.c.
7627 * targhooks.h (default_handle_c_option): Move declaration to
7628 c-family/c-common.h.
7629 * target-hooks-macros.h: New file.
7630 * config.gcc (target_has_targetcm): Define and use to add to
7631 c_target_objs and cxx_target_objs.
7632 * config/default-c.c: New file.
7633 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7634 of target.h and target-def.h.
7635 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7636 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7637 darwin_check_cfstring_format_arg): Make static.
7638 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7639 TARGET_STRING_OBJECT_REF_TYPE_P,
7640 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7641 * config/darwin-protos.h (darwin_objc_construct_string,
7642 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7643 declare.
7644 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7645 TARGET_STRING_OBJECT_REF_TYPE_P,
7646 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7647 * config/t-darwin (darwin-c.o): Update dependencies.
7648 * system.h (TARGET_HAS_TARGETCM): Poison.
7649 * Makefile.in (TARGET_H): Update.
7650 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7651 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7652 (default-c.o): New target.
7653 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7654 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7655 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7656 c-target.def.
7657 (build/genhooks.o): Update dependencies.
7658
7659 2011-04-06 Richard Guenther <rguenther@suse.de>
7660
7661 * ipa-inline.c (enum inlining_mode): Remove.
7662 (cgraph_flatten): Use some other token.
7663 (cgraph_edge_early_inlinable_p): New function, split out from ...
7664 (cgraph_perform_always_inlining): New function, split out from ...
7665 (cgraph_decide_inlining_incrementally): ... here.
7666 (cgraph_mark_inline_edge): Adjust.
7667 (cgraph_early_inlining): Re-structure.
7668 (pass_early_inline): Require SSA form.
7669
7670 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7671 Julian Brown <julian@codesourcery.com>
7672 Mark Shinwell <shinwell@codesourcery.com>
7673
7674 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7675 LO_REGS only for Thumb-1.
7676 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7677 be used in short instructions when optimising for size on Thumb-2.
7678
7679 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7680
7681 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7682 associated with user returns to be preserved.
7683
7684 2011-04-06 Tristan Gingold <gingold@adacore.com>
7685
7686 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7687 symbol_queue_size, DBXOUT_DECR_NESTING,
7688 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7689 if XCOFF_DEBUGGING_INFO.
7690
7691 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7692
7693 * config/i386/i386.md (attribute isa): New.
7694 (attribute enabled): New.
7695 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7696 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7697 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7698 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7699 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7700 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7701 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7702 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7703
7704 * config/i386/sse.md (VF): New mode iterator.
7705 (VF1): Ditto.
7706 (VF2): Ditto.
7707 (VF_128): Ditto.
7708 (SSEMODEF4): Remove.
7709 (attribute sse): Handle V8SF and V4DF modes.
7710 (<absneg:code><mode>2): Use VF mode iterator.
7711 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7712 mode iterator.
7713 (<plusminus_insn><mode>3): Use VF mode iterator.
7714 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7715 Use VF mode iterator.
7716 (<sse>_vm<plusminus_insn><mode>3): Merge with
7717 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7718 (mul<mode>3): Use VF mode iterator.
7719 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7720 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7721 mode iterator.
7722 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7723 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7724 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7725 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7726 mode iterator.
7727 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7728 Use VF1 mode iterator.
7729 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7730 (sqrt<VF2:mode>2): New expander.
7731 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7732 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7733 and sqrtv2df2. Use VF mode iterator.
7734 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7735 mode iterator.
7736 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7737 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7738 Use VF1 mode iterator.
7739 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7740 (<smaxmin:code><mode>3): Use VF mode iterator.
7741 (*<smaxmin:code><mode>3_finite): Merge with
7742 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7743 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7744 (<sse>_vm<smaxmin:code><mode>2): Merge with
7745 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7746 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7747 mode iterator.
7748 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7749 mode iterator.
7750 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7751 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7752 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7753 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7754 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7755 VF mode iterator.
7756 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7757 Use VF_128 mode iterator.
7758 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7759 mode iterator.
7760 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7761 VF_128 mode iterator.
7762 (vcond<mode>): Use VF mode iterator.
7763 * config/i386/predicates.md (sse_comparison_operator): Merge with
7764 avx_comparison_float_operator. Do not declare as special_predicate.
7765 * config/i386/i386.c (struct builtin_description): Update for renamed
7766 compare patterns.
7767 (ix86_expand_args_builtin): Ditto.
7768 (ix86_expand_sse_compare_mask): Ditto.
7769
7770 2011-04-06 Richard Guenther <rguenther@suse.de>
7771
7772 * tree-inline.c (estimate_num_insns): For calls simply account
7773 for all passed arguments and a used return value.
7774
7775 2011-04-06 Richard Guenther <rguenther@suse.de>
7776
7777 PR tree-optimization/47663
7778 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7779 call_stmt_time fields.
7780 (cgraph_edge_inlinable_p): Declare.
7781 (cgraph_edge_recursive_p): New inline function.
7782 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7783 (cgraph_clone_edge): Copy it.
7784 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7785 Account for call stmt time.
7786 (cgraph_estimate_time_after_inlining): Take edge argument.
7787 (cgraph_estimate_edge_growth): Account call stmt size.
7788 (cgraph_estimate_size_after_inlining): Take edge argument.
7789 (cgraph_mark_inline_edge): Adjust.
7790 (cgraph_check_inline_limits): Likewise.
7791 (cgraph_recursive_inlining_p): Remove.
7792 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7793 (cgraph_decide_recursive_inlining): Take edge argument and
7794 adjust.
7795 (cgraph_decide_inlining_of_small_functions): Do not avoid
7796 diags for recursive inlining here.
7797 (cgraph_flatten): Adjust.
7798 (cgraph_decide_inlining_incrementally): Likewise.
7799 (estimate_function_body_sizes): Remove call cost handling.
7800 (compute_inline_parameters): Initialize caller edge call costs.
7801 (cgraph_estimate_edge_growth): New function.
7802 (cgraph_estimate_growth): Use it.
7803 (cgraph_edge_badness): Likewise.
7804 (cgraph_check_inline_limits): Take an edge argument.
7805 (cgraph_decide_inlining_of_small_functions): Adjust.
7806 (cgraph_decide_inlining): Likewise.
7807 * tree-inline.c (estimate_num_insns): Only account for call
7808 return value if it is used.
7809 (expand_call_inline): Avoid diagnostics on recursive inline
7810 functions here.
7811 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7812 (input_edge): Input edge call costs.
7813
7814 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7815
7816 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7817
7818 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7819
7820 * doc/invoke.texi (Spec Files): Fix typo.
7821
7822 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7823
7824 * profile.c (branch_prob): Move declaration of local variable. Remove
7825 obsolete ??? comment. Expand the location explicitly instead of using
7826 the LOCATION_FILE and LOCATION_LINE macros.
7827
7828 2011-04-06 Wei Guozhi <carrot@google.com>
7829
7830 PR target/47855
7831 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7832 (arm_cond_branch): Likewise.
7833 (arm_cond_branch_reversed): Likewise.
7834 (arm_jump): Likewise.
7835 (push_multi): Likewise.
7836 * config/arm/constraints.md (Py): New constraint.
7837
7838 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7839
7840 PR bootstrap/48471
7841 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7842 Move these...
7843 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7844 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7845 #ifdef DBX_DEBUGGING_INFO.
7846
7847 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7848
7849 PR bootstrap/48403
7850 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7851 if old and new states differ.
7852
7853 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7854
7855 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7856 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7857 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7858 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7859 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7860 mcfv4e): Use Alias.
7861 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7862 ColdFire options to -mcpu= options.
7863
7864 2011-04-05 Jeff Law <law@redhat.com>
7865
7866 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7867 check if BB is a successor of LOOP->header and return
7868 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7869
7870 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7871
7872 * cprop.c (struct reg_use): Remove.
7873 (reg_use_table): Make an array of RTX.
7874 (find_used_regs, constprop_register, local_cprop_pass,
7875 bypass_block): Simplify users of reg_use_table.
7876 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7877 on one of the uses found by find_used_regs.
7878
7879 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7880
7881 PR bootstrap/48469
7882 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7883 declaration.
7884
7885 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7886
7887 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7888 as an rtx.
7889 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7890
7891 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7892
7893 PR middle-end/48441
7894 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7895
7896 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7897
7898 * combine.c: Include obstack.h.
7899 (struct insn_link): Define.
7900 (uid_log_links): Adjust type.
7901 (FOR_EACH_LOG_LINK): New macro.
7902 (insn_link_obstack): Declare.
7903 (alloc_insn_link): Define.
7904 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7905 type of link variables.
7906 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7907 (try_combine, record_promoted_values, distribute_notes): Likewise.
7908 (distribute_links): Likewise. Tweak prototype.
7909 (clear_log_links): Delete.
7910 (adjust_for_new_dest): Call alloc_insn_link.
7911 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7912
7913 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7914
7915 * gcse.c (modify_mem_list): Convert to an array of VECs.
7916 (canon_modify_mem_list, compute_transp): Tweak formatting.
7917 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7918 (load_killed_in_block_p): Likewise.
7919 (record_last_mem_set_info): Likewise.
7920 (clear_modify_mem_tables): Likewise.
7921
7922 2011-04-05 Tom de Vries <tom@codesourcery.com>
7923
7924 PR middle-end/48461
7925 * function.c (emit_use_return_register_into_block): Only define if
7926 HAVE_return.
7927
7928 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7929
7930 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7931
7932 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7933
7934 * config/rx/rx-opts.h: New.
7935 * config/rx/rx.c (rx_cpu_type): Remove.
7936 (rx_handle_option): Don't assert that global structures are in
7937 use. Access variables via opts pointer. Defer most handling of
7938 OPT_mint_register_. Use error_at.
7939 (rx_option_override): Handle deferred OPT_mint_register_ here.
7940 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7941 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7942 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7943 (rx_cpu_types): New Enum and EnumValue entries.
7944 (mint-register=): Use Defer and use Var accordingly.
7945
7946 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7947
7948 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7949 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7950 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7951 Move these...
7952 (debug_free_queue, debug_nesting, symbol_queue_index):
7953 ...and these...
7954 * dbxout.c: ...to here. Make static.
7955
7956 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7957
7958 * gcse.c (modify_pair): Define. Define a VEC of it.
7959 (canon_modify_mem_list): Convert to an array of VECs.
7960 (free_insn_expr_list_list): Delete.
7961 (clear_modify_mem_tables): Call VEC_free instead.
7962 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7963 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7964 (canon_list_insert, compute_transp): Likewise.
7965
7966 2011-04-05 Tom de Vries <tom@codesourcery.com>
7967
7968 PR target/43920
7969 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7970 for size.
7971
7972 2011-04-05 Tom de Vries <tom@codesourcery.com>
7973
7974 PR target/43920
7975 * function.c (emit_use_return_register_into_block): New function.
7976 (thread_prologue_and_epilogue_insns): Use
7977 emit_use_return_register_into_block.
7978
7979 2011-04-05 Tom de Vries <tom@codesourcery.com>
7980
7981 PR target/43920
7982 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7983 insn.
7984
7985 2011-04-05 Tom de Vries <tom@codesourcery.com>
7986
7987 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7988
7989 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7990
7991 * config/arm/arm.md (define_constants for unspec): Replace with
7992 define_c_enum.
7993 (define_constants for unspecv): Replace with define_c_enum.
7994 * config/arm/neon.md (define_constants for unspec): Replace with
7995 define_c_enum.
7996
7997 2011-04-04 Richard Henderson <rth@redhat.com>
7998
7999 PR bootstrap/48400
8000 * dwarf2out.c (output_line_info): Always emit line info from
8001 at least one section.
8002 (dwarf2out_init): Create text_section_line_info here ...
8003 (set_cur_line_info_table): ... not here.
8004
8005 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8006
8007 PR target/48380
8008 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8009 not called.
8010
8011 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8012
8013 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8014
8015 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8016 (expr_equiv_p): Remove.
8017 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8018 (hash_scan_set): Update call to insert_set_in_table.
8019 (dump_hash_table): Dump <dest, src> pair.
8020 (lookup_set): Simplify. Lookup <dest, src> pair.
8021 (compute_transp): Remove, fold heavily simplified code into...
8022 (compute_local_properties): ...here. Expect COMP and TRANSP
8023 unconditionally.
8024 (find_avail_set): Take set directly from struct expr.
8025 (find_bypass-set): Likewise.
8026 (bypass_block): Likewise.
8027 (cprop_insn): Likewise. Remove redundant INSN_P test.
8028
8029 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8030 checks on form of COND from find_implicit_sets to here.
8031 (find_implicit_sets): Cleanup control flow. Split critical edges
8032 if it exposes implicit sets. Allocate/resize implicit_sets as
8033 necessary.
8034 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8035 changed something. Run df_analyze after find_implicit_sets if any
8036 edges were split. Do not allocate implicit_sets here.
8037
8038 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8039 (gcse_obstack): Renamed to cprop_obstack.
8040 (GNEW, GNEWVEC, GNEWVAR): Remove.
8041 (gmalloc): Remove.
8042 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8043 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8044 (gcse_alloc): Likewise, and rename to cprop_alloc.
8045 (alloc_gcse_men, free_gcse_mem): Remove.
8046 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8047 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8048 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8049
8050 * cprop.c (oprs_not_set_p): Remove.
8051 (mark_set, mark_clobber): Remove.
8052 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8053 (reg_not_set_p): New function.
8054 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8055 (cprop_insn): Likewise.
8056 (cprop_jump): Use FOR_EACH_EDGE.
8057
8058 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8059
8060 PR bootstrap/48403
8061 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8062 (rank_for_schedule): Use scheduled_insns vector instead of
8063 last_scheduled_insn.
8064 (ok_for_early_queue_removal): Likewise.
8065 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8066 we have a dbg_cnt.
8067 (choose_ready): Likewise.
8068 (commit_schedule): Use VEC_iterate.
8069 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8070 a dbg_cnt, use it and ensure the first insn is in the ready list.
8071 (haifa_sched_init): Allocate scheduled_insns.
8072 (sched_extend_ready_list): Don't allocate it; reserve space.
8073 (haifa_sched_finish): Free it.
8074
8075 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8076
8077 * optc-gen.awk: Always remove type from Variable entry before
8078 recording in var_seen.
8079
8080 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8081
8082 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8083 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8084 call to tidy_fallthru_edges.
8085
8086 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8087
8088 * doc/options.texi (ToLower): Document.
8089 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8090 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8091 * opts.h (cl_option): Add cl_tolower field.
8092 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8093 arguments with lowercase strings.
8094 * config/rx/rx.opt (mcpu=): Add ToLower.
8095 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8096 argument.
8097
8098 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8099
8100 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8101
8102 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8103
8104 * config/vax/vax.c: Include reload.h.
8105
8106 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8107
8108 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8109 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8110 (sparc_preferred_reload_class): New function.
8111
8112 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8113
8114 PR debug/48401
8115 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8116 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8117
8118 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8119
8120 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8121 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8122
8123 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8124
8125 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8126 (ASM_OUTPUT_ALIGNED_BSS): Define.
8127
8128 2011-04-03 Michael Matz <matz@suse.de>
8129
8130 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8131 and next_slot members.
8132 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8133 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8134 (lto_streamer_cache_append): Declare.
8135 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8136 unsigned index, remove offset parameter, ensure that we append
8137 or update existing entries.
8138 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8139 parameter, update next_slot for append.
8140 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8141 parameter.
8142 (lto_streamer_cache_insert_at): Likewise.
8143 (lto_streamer_cache_append): New function.
8144 (lto_streamer_cache_lookup): Use unsigned index.
8145 (lto_streamer_cache_get): Likewise.
8146 (lto_record_common_node): Don't test tree_node_can_be_shared.
8147 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8148 (lto_streamer_cache_delete): Don't free offsets member.
8149 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8150 (lto_output_string_with_length): Use lto_output_data_stream.
8151 (lto_output_tree_header): Remove ix parameter, don't write it.
8152 (lto_output_builtin_tree): Likewise.
8153 (lto_write_tree): Adjust callers to above, don't track and write
8154 offset, write unsigned index.
8155 (output_unreferenced_globals): Don't emit all global vars.
8156 (write_global_references): Use unsigned indices.
8157 (lto_output_decl_state_refs): Likewise.
8158 (write_symbol): Likewise.
8159 * lto-streamer-in.c (lto_input_chain): Move earlier.
8160 (input_function): Use unsigned index.
8161 (input_alias_pairs): Don't read and then ignore all global vars.
8162 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8163 don't pass it back, use lto_streamer_cache_append.
8164 (lto_register_var_decl_in_symtab): Use unsigned index.
8165 (lto_register_function_decl_in_symtab): Likewise.
8166 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8167 index.
8168 (lto_get_builtin_tree): Don't read index, use
8169 lto_streamer_cache_append.
8170 (lto_read_tree): Adjust call to lto_materialize_tree.
8171
8172 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8173 don't use function calls in arguments to MIN.
8174
8175 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8176 twice.
8177
8178 * gimple.c (gimple_type_leader_entry): Mark deletable.
8179
8180 2011-04-03 Alan Modra <amodra@gmail.com>
8181
8182 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8183
8184 2011-04-03 Michael Matz <matz@suse.de>
8185
8186 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8187 an integer.
8188 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8189
8190 2011-04-03 Michael Matz <matz@suse.de>
8191
8192 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8193 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8194 without function context.
8195 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8196 current_function_decl and cfun.
8197
8198 2011-04-03 Michael Matz <matz@suse.de>
8199
8200 * tree.c (decl_init_priority_insert): Don't create entry for
8201 default priority.
8202 (decl_fini_priority_insert): Ditto.
8203 (fields_compatible_p, find_compatible_field): Remove.
8204 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8205 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8206
8207 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8208
8209 * combine.c (try_combine): Remove useless local variable.
8210
8211 2011-04-03 Richard Guenther <rguenther@suse.de>
8212 Ira Rosen <ira.rosen@linaro.org>
8213
8214 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8215 non-variable offsets and compare the remaining bases of the two
8216 accesses instead of looking for exact same data-ref.
8217
8218 2011-04-02 Kai Tietz <ktietz@redhat.com>
8219
8220 PR target/48416
8221 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8222
8223 * i386.c (ix86_is_msabi_thiscall): New helper function.
8224 (ix86_is_type_thiscall): New helper function.
8225 (ix86_comp_type_attributes): Handle thiscall for method-functions
8226 special.
8227 (init_cumulative_args): Likewise.
8228 (find_drap_reg): Likewise.
8229 (ix86_static_chain): Likewise.
8230 (x86_this_parameter): Likewise.
8231 (x86_output_mi_thunk): Likewise.
8232
8233 2011-04-01 Olivier Hainque <hainque@adacore.com>
8234 Nicolas Setton <setton@adacore.com>
8235 Eric Botcazou <ebotcazou@adacore.com>
8236
8237 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8238 (add_gnat_descriptive_type_attribute): New function.
8239 (gen_array_type_die): Call it.
8240 (gen_enumeration_type_die): Likewise.
8241 (gen_struct_or_union_type_die): Likewise.
8242 (modified_type_die): Likewise.
8243 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8244 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8245 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8246
8247 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8248
8249 PR bootstrap/48148
8250 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8251 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8252
8253 Revert:
8254 2011-03-17 Richard Guenther <rguenther@suse.de>
8255
8256 PR bootstrap/48148
8257 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8258 origin for decls in other ltrans units.
8259 (input_varpool_node): Likewise.
8260
8261 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8262
8263 PR middle-end/48335
8264 * expr.c (expand_assignment): Handle all possibilities
8265 if TO_RTX is CONCAT.
8266 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8267 (store_split_bit_field): If SUBREG_REG (op0) or
8268 op0 itself has smaller mode than word, return it
8269 for offset 0 and const0_rtx for out-of-bounds stores.
8270 If word is const0_rtx, skip it.
8271
8272 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8273
8274 * config/h8300/h8300.c (print_operand_address): Rename to...
8275 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8276 Call h8300_print_operand and h8300_print_operand_address instead of
8277 print_operand and print_operand_address. Declare.
8278 (print_operand): Renake to...
8279 (h8300_print_operand): ...this. Make static. Adjust comments.
8280 Call h8300_print_operand instead of print_operand. Declare.
8281 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8282 (h8300_register_move_cost): Likewise.
8283 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8284 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8285 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8286 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8287 * config/h8300/h8300-protos.h (print_operand): Delete.
8288 (print_operand_address): Delete.
8289
8290 2011-04-01 Richard Henderson <rth@redhat.com>
8291
8292 PR 48400
8293 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8294 in strict mode before dwarf4. Re-order tests to early out
8295 before switching sections.
8296
8297 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8298
8299 * config/h8300/constraints.md: New file.
8300 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8301 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8302 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8303 * config/h8300/predicates.md (bit_operand): Likewise.
8304 (incdec_operand): Use satisfies_constraint_M and
8305 satisfies_constraint_O. Don't use C code block.
8306 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8307 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8308 (compute_mov_length): Use satisfies_constraint_G.
8309 (fix_bit_operand): Use satisfies_constraint_U.
8310 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8311 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8312 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8313 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8314 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8315 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8316 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8317 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8318 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8319 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8320 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8321 (EXTRA_MEMORY_CONSTRAINT): Delete.
8322
8323 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8324 Michael Meissner <meissner@linux.vnet.ibm.com>
8325
8326 PR target/48262
8327 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8328 operands, as per the specifications.
8329
8330 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8331 (vec_extract_evenv4sf): Ditto.
8332 (vec_extract_evenv8hi): Ditto.
8333 (vec_extract_evenv16qi): Ditto.
8334 (vec_extract_oddv4si): Ditto.
8335
8336 2011-03-31 Mark Wielaard <mjw@redhat.com>
8337
8338 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8339 high_pc attribute if the CU has no associated code. Only output
8340 DW_AT_entry_pc for CU if not generating strict dwarf and
8341 dwarf_version < 4.
8342
8343 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8344
8345 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8346 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8347 out of ...
8348 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8349 * final.c (final_start_function): Call the new function rather
8350 than using a NULL argument for dwarf2out_frame_debug.
8351
8352 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8353 that contains the prologue.
8354
8355 * haifa-sched.c (queue_insn): New arg REASON. All callers
8356 changed. Print it in debugging output.
8357
8358 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8359
8360 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8361 Split most of the code into...
8362 (begin_move_insn): ... here. New function.
8363 (ebb_sched_info): Add a pointer to it.
8364 * haifa-sched.c (scheduled_insns): New static variable.
8365 (sched_extend_ready_list): Allocate it.
8366 (schedule_block): Use it to record the order of scheduled insns.
8367 Perform RTL changes to move insns only after all scheduling
8368 decisions have been made.
8369 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8370 begin_move_insn field.
8371 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8372 * sched-int.h (struct haifa_sched_info): Remove second argument
8373 from begin_schedule_ready hook. Add new member begin_move_insn.
8374 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8375 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8376
8377 * haifa-sched.c (prune_ready_list): New function, broken out of
8378 schedule_block.
8379 (schedule_block): Use it.
8380
8381 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8382
8383 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8384
8385 2011-04-01 Kai Tietz <ktietz@redhat.com>
8386
8387 * config.gcc (*-*-mingw*): Allow as option the
8388 posix threading model.
8389 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8390 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8391 definition.
8392 (CPP_SPEC): Add pthread/no-pthread handling.
8393 (LIB_SPEC): Likewise.
8394 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8395 (LIB_SPEC): Likewise.
8396 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8397 flag to pass -pthread option for shared libgcc build.
8398 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8399 for shared libgcc build.
8400 * config/i386/t-mingw-pthread: New file.
8401 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8402 New define to enable use of library pthread by default.
8403 * config/i386/mingw.opt (pthread): New driver option.
8404 (no-pthread): New driver option.
8405 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8406 * config/i386/mingw-w64.opt: Likewise.
8407
8408 2011-04-01 Gary Funck <gary@intrepid.com>
8409
8410 * c-decl.c (grokdeclarator): Fix formatting.
8411
8412 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8413
8414 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8415 instead of n_operands.
8416 (set_storage_via_setmem): Likewise.
8417 * optabs.c (maybe_gen_insn): Likewise.
8418 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8419 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8420 (mips_expand_builtin_direct): Likewise.
8421 * config/spu/spu.c (expand_builtin_args): Likewise.
8422
8423 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8424
8425 * recog.h (insn_data_d): Add n_generator_args.
8426 * genoutput.c (data): Likewise.
8427 (output_insn_data): Print it.
8428 (max_opno, num_dups): Delete.
8429 (scan_operands): Just fill in "d->operand[...]".
8430 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8431
8432 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8433
8434 * gensupport.h (pattern_stats): New structure.
8435 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8436 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8437 (max_operand_1, max_operand_vec): Delete.
8438 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8439
8440 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8441
8442 * emit-rtl.c (emit_pattern_after_setloc): New function.
8443 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8444 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8445 (emit_pattern_after): New function.
8446 (emit_insn_after, emit_jump_insn_after): Call it.
8447 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8448 (emit_pattern_before_setloc): New function.
8449 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8450 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8451 Likewise.
8452 (emit_pattern_before): New function.
8453 (emit_insn_before, emit_jump_insn_before): Call it.
8454 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8455
8456 2011-03-31 Richard Henderson <rth@redhat.com>
8457
8458 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8459 (dw_separate_line_info_entry): Remove.
8460 (enum dw_line_info_opcode): New.
8461 (dw_line_info_entry): Use it.
8462 (dw_line_info_table, dw_line_info_table_p): New.
8463 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8464 (line_info_table, line_info_label_num): Remove.
8465 (line_info_table_in_use): Remove.
8466 (separate_line_info_table): Remove.
8467 (separate_line_info_table_allocated): Remove.
8468 (separate_line_info_table_in_use): Remove.
8469 (LINE_INFO_TABLE_INCREMENT): Remove.
8470 (line_info_label_num): New.
8471 (cur_line_info_table): New.
8472 (text_section_line_info, cold_text_section_line_info): New.
8473 (separate_line_info): New.
8474 (SEPARATE_LINE_CODE_LABEL): Remove.
8475 (print_dwarf_line_table): Remove.
8476 (debug_dwarf): Don't dump it.
8477 (output_one_line_info_table): New.
8478 (output_line_info): Use it.
8479 (new_line_info_table): New.
8480 (set_cur_line_info_table): New.
8481 (dwarf2out_switch_text_section): Use it.
8482 (dwarf2out_begin_function): Likewise.
8483 (push_dw_line_info_entry): New.
8484 (dwarf2out_source_line): Rewrite for new line info tables.
8485 (dwarf2out_init): Remove dead initailizations.
8486
8487 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8488
8489 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8490 various flags.
8491 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8492 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8493 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8494 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8495 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8496 * opt-functions.awk (flag_init, switch_bit_fields): New.
8497 (switch_flags): Don't handle flags moved to bit-fields. Don't
8498 generate CL_MISSING_OK or CL_SAVE.
8499 * optc-gen.awk: Update to generate bit-field output as well as
8500 flags field.
8501 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8502 bit-field instead of CL_REJECT_DRIVER flag.
8503 * opts-common.c (generate_canonical_option,
8504 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8505 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8506 instead of CL_REJECT_NEGATIVE flag.
8507 * toplev.c (print_switch_values): Use cl_report bit-field instead
8508 of CL_REPORT flag.
8509
8510 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8511
8512 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8513 a zero minimum index only if it is redundant.
8514
8515 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8516
8517 PR rtl-optimization/48381
8518 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8519 instead of ira_class_hard_reg_index for calculating conflicting
8520 hard registers.
8521
8522 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8523
8524 * cprop.c: Clean up hash table building.
8525 (reg_avail_info): Remove.
8526 (oprs_available_p): Remove.
8527 (record_last_reg_set_info): Remove.
8528 (record_last_set_info): Remove.
8529 (reg_available_p): New function.
8530 (gcse_constant_p): Do not treat unfolded conditions as constants.
8531 (make_set_regs_unavailable): New function.
8532 (hash_scan_set): Simplify with new reg_available_p.
8533 (compute_hash_table_work): Traverse insns stream only once.
8534 Do not compute reg_avail_info. Traverse insns in reverse order.
8535 Record implicit sets after recording explicit sets from the block.
8536
8537 2011-03-31 Michael Matz <matz@suse.de>
8538
8539 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8540
8541 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8542
8543 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8544 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8545 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8546 (h8300_mode_dependent_address_p): New function.
8547 (h8300_get_index): Make static.
8548
8549 2011-03-31 Jeff Law <law@redhat.com>
8550
8551 * reload1.c (elimination_effects): Fix typo in recent change.
8552
8553 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8554 typo potentially leading to null pointer dereference.
8555
8556 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8557 (setup_save_areas): Corresponding changes to avoid useless
8558 assignments.
8559
8560 * jump.c (reversed_comparison_code_parts): Avoid successive return
8561 statements when REVERSE_CONDITION is defined.
8562
8563 * expr.c (expand_assignment): Avoid useless assignments.
8564 (expand_expr_real_1): Likewise.
8565 (expand_expr_real_2): Avoid useless statements.
8566
8567 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8568
8569 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8570
8571 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8572 statements.
8573
8574 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8575
8576 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8577
8578 PR target/47109
8579 * doc/tm.texi.in (TARGET_VERSION): Remove.
8580 * doc/tm.texi: Regenerate.
8581 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8582 * collect2.c (main): Don't use TARGET_VERSION.
8583 * mips-tdump.c (main): Don't use TARGET_VERSION.
8584 * mips-tfile.c (main): Don't use TARGET_VERSION.
8585 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8586 * config/rs6000/vxworksae.h: Remove.
8587 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8588 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8589 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8590 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8591 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8592 * config/arm/arm.h (TARGET_VERSION): Remove.
8593 * config/arm/coff.h (TARGET_VERSION): Remove.
8594 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8595 * config/arm/elf.h (TARGET_VERSION): Remove.
8596 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8597 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8598 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8599 * config/arm/pe.h (TARGET_VERSION): Remove.
8600 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8601 * config/arm/semi.h (TARGET_VERSION): Remove.
8602 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8603 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8604 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8605 * config/avr/avr.h (TARGET_VERSION): Remove.
8606 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8607 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8608 * config/frv/frv.h (TARGET_VERSION): Remove.
8609 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8610 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8611 * config/i386/darwin.h (TARGET_VERSION): Remove.
8612 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8613 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8614 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8615 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8616 * config/i386/gnu.h (TARGET_VERSION): Remove.
8617 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8618 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8619 * config/i386/linux.h (TARGET_VERSION): Remove.
8620 * config/i386/linux64.h (TARGET_VERSION): Remove.
8621 * config/i386/lynx.h (TARGET_VERSION): Remove.
8622 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8623 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8624 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8625 * config/i386/netware.h (TARGET_VERSION): Remove.
8626 * config/i386/nto.h (TARGET_VERSION): Remove.
8627 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8628 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8629 * config/ia64/elf.h (TARGET_VERSION): Remove.
8630 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8631 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8632 * config/ia64/linux.h (TARGET_VERSION): Remove.
8633 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8634 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8635 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8636 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8637 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8638 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8639 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8640 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8641 * config/m68k/linux.h (TARGET_VERSION): Remove.
8642 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8643 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8644 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8645 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8646 * config/mep/mep.h (TARGET_VERSION): Remove.
8647 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8648 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8649 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8650 * config/mips/linux.h (TARGET_VERSION): Remove.
8651 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8652 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8653 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8654 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8655 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8656 * config/pa/pa.h (TARGET_VERSION): Remove.
8657 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8658 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8659 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8660 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8661 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8662 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8663 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8664 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8665 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8666 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8667 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8668 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8669 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8670 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8671 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8672 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8673 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8674 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8675 * config/s390/linux.h (TARGET_VERSION): Remove.
8676 * config/s390/s390.h (TARGET_VERSION): Remove.
8677 * config/s390/tpf.h (TARGET_VERSION): Remove.
8678 * config/score/score.h (TARGET_VERSION): Remove.
8679 * config/sh/linux.h (TARGET_VERSION): Remove.
8680 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8681 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8682 * config/sh/sh.h (TARGET_VERSION): Remove.
8683 * config/sh/sh64.h (TARGET_VERSION): Remove.
8684 * config/sh/superh.h (TARGET_VERSION): Remove.
8685 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8686 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8687 * config/sparc/linux.h (TARGET_VERSION): Remove.
8688 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8689 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8690 TARGET_NAME32, TARGET_NAME): Remove.
8691 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8692 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8693 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8694 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8695 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8696 * config/spu/spu.h (TARGET_VERSION): Remove.
8697 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8698 * config/v850/v850.h (TARGET_VERSION): Remove.
8699 * config/vax/linux.h (TARGET_VERSION): Remove.
8700 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8701 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8702 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8703
8704 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8705
8706 PR target/48142
8707 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8708 frame-related from frame-unrelated adjustments to the stack pointer.
8709
8710 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8711
8712 * common.opt (fdebug-types-section): Move earlier.
8713 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8714
8715 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8716
8717 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8718 var.
8719
8720 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8721
8722 * tree.h (CASE_CHAIN): Define.
8723 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8724 (gimple_redirect_edge_and_branch): Likewise.
8725
8726 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8727
8728 PR middle-end/48367
8729 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8730 calculation.
8731
8732 2011-03-30 Jeff Law <law@redhat.com>
8733
8734 * PR bootstrap/48371
8735 * reload1.c (reload): Fix botch in last change.
8736
8737 * reload.h (struct reload): Fix typo introduced in last change.
8738
8739 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8740
8741 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8742 Undocumented. Remove help text.
8743 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8744 -mhard-float.
8745
8746 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8747
8748 * doc/options.texi (NegativeAlias): Document.
8749 (Alias): Mention NegativeAlias.
8750 * opt-functions.awk: Handle NegativeAlias.
8751 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8752 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8753 * opts.h (CL_NEGATIVE_ALIAS): Define.
8754 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8755 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8756 OPT_mspe_.
8757 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8758 Alias entries.
8759 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8760 mno-spe and mno-isel instead of mspe=no and -misel=no.
8761
8762 2011-03-29 Mark Wielaard <mjw@redhat.com>
8763
8764 * common.opt (fdebug-types-section): New flag.
8765 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8766 * dwarf2out.c (use_debug_types): New define.
8767 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8768 (print_die): Guard output of type unit signatures using
8769 use_debug_types.
8770 (build_abbrev_table): Replace assert of dwarf_version >= 4
8771 with assert on use_debug_types.
8772 (size_of_die): Likewise.
8773 (unmark_dies): Likewise.
8774 (value_format): Decide AT_ref_external form on use_debug_types.
8775 (output_die): Replace dwarf_version version check guard with
8776 use_debug_types where appropriate.
8777 (modified_type_die): Likewise.
8778 (gen_reference_type_die): Likewise.
8779 (dwarf2out_start_source_file): Likewise.
8780 (dwarf2out_end_source_file): Likewise.
8781 (prune_unused_types_walk_attribs): Likewise.
8782 (dwarf2out_finish): Likewise.
8783
8784 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8785
8786 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8787
8788 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8789
8790 PR rtl-optimization/48332
8791 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8792 mode of input operand N and modeN to its actual mode.
8793
8794 2011-03-30 Jeff Law <law@redhat.com>
8795
8796 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8797 define accessor macro.
8798 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8799 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8800 (reg_equiv_init): Likewise.
8801 (reg_equivs_size): New variable.
8802 (reg_equiv_init_size): Remove.
8803 (allocate_initial_values): Move prototype to here from....
8804 * integrate.h (allocate_initial_values): Remove prototype.
8805 * integrate.c: Include reload.h.
8806 (allocate_initial_values): Corresponding changes.
8807 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8808 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8809 (update_equiv_regs): Corresponding changes.
8810 (ira): Corresponding changes.
8811 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8812 (push_secondary_reload): Corresponding changes.
8813 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8814 (make_memloc, find_reloads_address): Corresponding changes.
8815 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8816 (find_reloads_address_1): Corresponding changes.
8817 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8818 (refers_to_regno_for_reload_p): Corresponding changes.
8819 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8820 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8821 * reload1.c: Include ggc.h.
8822 (grow_reg_equivs): New function.
8823 (replace_pseudos_in, reload): Corresponding changes.
8824 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8825 (eliminate_regs_1, elimination_effects): Corresponding changes.
8826 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8827 (delete_output_reload): Likewise.
8828 * caller-save.c (mark_referenced_regs): Corresponding changes.
8829 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8830 * frv/predicates.md (frv_load_operand): Corresponding changes.
8831 * microblaze/microblaze.c (double_memory_operand): Corresponding
8832 changes.
8833 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8834 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8835 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8836 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8837 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8838 changes.
8839 * pa/pa.c (emit_move_sequence): Corresponding changes.
8840 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8841
8842 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8843
8844 PR target/47551
8845 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8846 structure modes. Don't check neon_vector_mem_operand for
8847 vector or structure modes.
8848
8849 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8850 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8851
8852 PR target/43590
8853 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8854 operand 1 and reshuffle the operands to match.
8855 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8856
8857 2011-03-30 Christian Schüler <cschueler@gmx.de>
8858
8859 PR driver/48208
8860 * config/c.opt (F): Added 'Driver' to -F option.
8861
8862 PR driver/48260
8863 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8864 handler function.
8865 * config/darwin.opt: Added '-arch' option.
8866
8867 2011-03-30 Nick Clifton <nickc@redhat.com>
8868
8869 * config/rx/rx.md: Add peepholes and patterns to combine
8870 extending loads and simple arithmetic instructions.
8871 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8872 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8873 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8874 modes to use pre-decrement and post-increment addressing.
8875 (rx_is_restricted_memory_address): Add range checking of REG+INT
8876 addresses.
8877 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8878 (rx_memory_move_cost): Adjust cost of stores.
8879 (rx_adjust_insn_length): New function.
8880
8881 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8882
8883 PR c/48305
8884 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8885 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8886 matching arg00/arg01 types.
8887
8888 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8889
8890 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8891 last_location to UNKNOWN_LOCATION.
8892
8893 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8894
8895 PR target/48349
8896 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8897 FLOAT_SSE_REGS.
8898
8899 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8900 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8901
8902 PR bootstrap/48337
8903 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8904 Init(PROCESSOR_V7).
8905 (sparc_cpu): Likewise.
8906 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8907 PROCESSOR_V7.
8908
8909 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8910
8911 PR target/48336
8912 PR middle-end/48342
8913 PR rtl-optimization/48345
8914 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8915 hard regs for given mode from profitable regs when doing secondary
8916 allocation.
8917
8918 2011-03-29 Jeff Law <law@redhat.com>
8919
8920 PR bootstrap/48327
8921 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8922 do_not_duplicate field.
8923 (lookup_redirection_data): Corresponding changes.
8924 (create_duplicates): Always create a template block.
8925 (redirect_edges): Remove code which reused the original block
8926 when it was going to become unreachable code.
8927 (thread_block): Don't set do_not_duplicate field.
8928
8929 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8930
8931 * lto-opts.c (register_user_option_p, lto_register_user_option):
8932 Make type argument unsigned.
8933 * lto-streamer.h (lto_register_user_option): Make type argument
8934 unsigned.
8935 * opth-gen.awk: Make CL_* macros unsigned.
8936 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8937 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8938 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8939 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8940 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8941 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8942 (find_opt): Make lang_mask argument unsigned.
8943
8944 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8945
8946 PR rtl-optimization/48331
8947 PR rtl-optimization/48334
8948 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8949 for any used algorithm.
8950
8951 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8952
8953 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8954 to parent_max.
8955
8956 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8957
8958 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8959 (alpha_option_override): Don't set alpha_sr_alias_set.
8960 (emit_frame_store_1): Use gen_frame_mem rather than calling
8961 set_mem_alias_set.
8962 (alpha_expand_epilogue): Ditto.
8963
8964 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8965
8966 PR tree-optimization/48290
8967 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8968 vectorization, check that relevant phis in the basic block after
8969 the inner loop are really inner loop's exit phis.
8970
8971 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8972
8973 PR debug/48190
8974 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8975 (cached_dw_loc_list_def): New structure.
8976 (cached_dw_loc_list): New typedef.
8977 (cached_dw_loc_list_table): New variable.
8978 (cached_dw_loc_list_table_hash): New function.
8979 (cached_dw_loc_list_table_eq): Likewise.
8980 (add_location_or_const_value_attribute): Take a bool cache_p.
8981 Cache the list when the parameter is true.
8982 (gen_formal_parameter_die): Update caller.
8983 (gen_variable_die): Likewise.
8984 (dwarf2out_finish): Likewise.
8985 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8986 while generating debug info for the decl.
8987 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8988 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8989 (resolve_addr): Cache the result of resolving a chain of
8990 location lists.
8991
8992 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8993
8994 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8995 conflict object hard regset nodes have intersecting hard reg sets.
8996
8997 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8998 after regstat_init_n_sets_and_refs.
8999
9000 * ira.c: Add more comments at the top.
9001 (setup_stack_reg_pressure_class, setup_pressure_classes):
9002 Add comments how we compute the register pressure classes.
9003 (setup_allocno_and_important_classes): Add more comments.
9004 (setup_class_translate_array, reorder_important_classes)
9005 (setup_reg_class_relations): Add comments.
9006
9007 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9008 start of the file.
9009
9010 * ira-color.c: Add 2011 to the Copyright line.
9011 (assign_hard_reg): Add more comments.
9012 (improve_allocation): Ditto.
9013
9014 * ira-costs.c: Add 2011 to the Copyright line.
9015 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9016 comments.
9017 (setup_regno_cost_classes_by_mode): Ditto.
9018
9019 Initial patches from ira-improv branch:
9020
9021 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9022
9023 * ira-build.c (ira_create_object): Remove initialization of
9024 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9025 (ira_create_allocno): Remove initialization of
9026 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9027 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9028 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9029 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9030 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9031 Initialize ALLOCNO_ADD_DATA.
9032 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9033 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9034 ALLOCNO_REG.
9035 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9036 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9037
9038 * ira.c (ira_reallocate): Remove.
9039 (setup_pressure_classes): Call
9040 ira_init_register_move_cost_if_necessary. Use
9041 ira_register_move_cost instead of ira_get_register_move_cost.
9042 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9043 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9044
9045 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9046 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9047 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9048 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9049 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9050 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9051 Fix formatting.
9052 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9053 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9054 (struct allocno_color_data): New.
9055 (allocno_color_data_t): New typedef.
9056 (allocno_color_data): New definition.
9057 (ALLOCNO_COLOR_DATA): New macro.
9058 (struct object_color_data): New.
9059 (object_color_data_t): New typedef.
9060 (object_color_data): New definition.
9061 (OBJECT_COLOR_DATA): New macro.
9062 (update_copy_costs, calculate_allocno_spill_cost): Call
9063 ira_init_register_move_cost_if_necessary. Use
9064 ira_register_move_cost instead of ira_get_register_move_cost.
9065 (move_spill_restore, update_curr_costs): Ditto.
9066 (allocno_spill_priority): Make it inline.
9067 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9068 (struct coalesce_data, coalesce_data_t): New.
9069 (allocno_coalesce_data): New definition.
9070 (ALLOCNO_COALESCE_DATA): New macro.
9071 (merge_allocnos, coalesced_allocno_conflict_p): Use
9072 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9073 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9074 (coalesce_allocnos): Ditto.
9075 (setup_coalesced_allocno_costs_and_nums): Ditto.
9076 (collect_spilled_coalesced_allocnos): Ditto.
9077 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9078 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9079 (coalesce_spill_slots): Ditto.
9080 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9081 free allocno_coalesce_data.
9082
9083 * ira-conflicts.c: Fix formatting.
9084 (process_regs_for_copy): Call
9085 ira_init_register_move_cost_if_necessary. Use
9086 ira_register_move_cost instead of ira_get_register_move_cost.
9087 (build_object_conflicts): Optimize.
9088
9089 * ira-costs.c (record_reg_classes): Optimize. Call
9090 ira_init_register_move_cost_if_necessary. Use
9091 ira_register_move_cost, ira_may_move_in_cost, and
9092 ira_may_move_out_cost instead of ira_get_register_move_cost and
9093 ira_get_may_move_cost.
9094 (record_address_regs): Ditto.
9095 (scan_one_insn): Optimize.
9096 (find_costs_and_classes): Optimize.
9097 (process_bb_node_for_hard_reg_moves): Call
9098 ira_init_register_move_cost_if_necessary. Use
9099 ira_register_move_cost instead of ira_get_register_move_cost.
9100
9101 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9102 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9103 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9104 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9105 definitions.
9106 (ira_initiate_emit_data, ira_finish_emit_data)
9107 (create_new_allocno): New functions.
9108 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9109 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9110 Use ira_register_move_cost instead of ira_get_register_move_cost.
9111
9112 * ira-int.h: Fix some comments.
9113 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9114 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9115 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9116 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9117 add_data.
9118 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9119 bitfield after mode. Make hard_regno a short int. Make
9120 hard_regno short. Remove first_coalesced_allocno and
9121 next_coalesced_allocno. Move mem_optimized_dest_p,
9122 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9123 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9124 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9125 temp, colorable_p. Add new member add_data.
9126 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9127 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9128 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9129 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9130 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9131 (ALLOCNO_ADD_DATA): New macro.
9132 (ira_emit_data_t): New typedef.
9133 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9134 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9135 from struct ira_allocno.
9136 (ALLOCNO_EMIT_DATA): New macro.
9137 (ira_allocno_emit_data, allocno_emit_reg): New.
9138 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9139 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9140 (OBJECT_ADD_DATA): New macro.
9141 (ira_reallocate): Remove.
9142 (ira_initiate_emit_data, ira_finish_emit_data): New.
9143 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9144 (ira_init_register_move_cost_if_necessary): New.
9145 (ira_object_conflict_iter_next): Merge into
9146 ira_object_conflict_iter_cond.
9147 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9148
9149 * ira-live.c (process_single_reg_class_operands): Call
9150 ira_init_register_move_cost_if_necessary. Use
9151 ira_register_move_cost instead of ira_get_register_move_cost.
9152
9153 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9154
9155 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9156
9157 * ira-costs.c: Fix formatting.
9158 (cost_classes, cost_classes_num): Remove.
9159 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9160 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9161 (cost_classes_del, cost_classes_htab): New.
9162 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9163 (initiate_regno_cost_classes, setup_cost_classes): New.
9164 (setup_regno_cost_classes_by_aclass): New.
9165 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9166 (record_reg_classes): Use regno_cost_classes instead of
9167 cost_classes. Move checking opposite operand up.
9168 (record_address_regs): Use regno_cost_classes
9169 instead of cost_classes.
9170 (scan_one_insn): Ditto. Use always general register.
9171 (print_allocno_costs): Use regno_cost_classes instead of
9172 cost_classes.
9173 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9174 (find_costs_and_classes): Set up cost classes for each registers.
9175 Use also their mode for this. Use regno_cost_classes instead of
9176 cost_classes.
9177 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9178 cost_classes.
9179 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9180 (ira_costs, ira_set_pseudo_classes): Call
9181 initiate_regno_cost_classes and finish_regno_cost_classes.
9182
9183 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9184
9185 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9186
9187 * target.def (ira_cover_classes): Remove.
9188
9189 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9190
9191 * doc/tm.texi.in: Ditto.
9192
9193 * ira-conflicts.c: Remove mentioning cover classes from the file.
9194 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9195 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9196
9197 * targhooks.c (default_ira_cover_classes): Remove.
9198
9199 * targhooks.h (default_ira_cover_classes): Ditto.
9200
9201 * haifa-sched.c: Remove mentioning cover classes from the file.
9202 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9203 ira_pressure_classes and ira_pressure_classes_num instead of
9204 ira_reg_class_cover_size and ira_reg_class_cover. Use
9205 sched_regno_pressure_class instead of sched_regno_cover_class.
9206 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9207 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9208
9209 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9210 classes from the file.
9211 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9212 (struct object_hard_regs, struct object_hard_regs_node): New.
9213 (struct ira_object): New members profitable_hard_regs,
9214 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9215 (struct ira_allocno): Rename cover_class to aclass. Rename
9216 cover_class_cost and updated_cover_class_cost to class_cost and
9217 updated_class_cost. Remove splay_removed_p and
9218 left_conflict_size. Add new members colorable_p.
9219 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9220 (ALLOCNO_COLORABLE_P): New macro.
9221 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9222 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9223 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9224 (OBJECT_...): Rename parameter C to O.
9225 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9226 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9227 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9228 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9229 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9230 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9231 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9232 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9233 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9234 x_ira_reg_class_subunion.
9235 (ira_max_memory_move_cost, ira_max_register_move_cost)
9236 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9237 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9238 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9239 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9240 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9241 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9242 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9243 (ira_tune_allocno_costs_and_cover_classes): Rename to
9244 ira_tune_allocno_costs.
9245 (ira_debug_hard_regs_forest): New.
9246 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9247 (ira_object_conflict_iter_next): Fix comments.
9248 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9249 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9250 cover_class to aclass.
9251 (ira_allocate_and_accumulate_costs): Ditto.
9252 (ira_allocate_and_set_or_copy_costs): Ditto.
9253
9254 * opts.c (decode_options): Remove ira_cover_class check.
9255
9256 * ira-color.c: Remove mentioning cover classes from the file. Use
9257 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9258 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9259 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9260 (splay-tree.h): Remove include.
9261 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9262 before copy_freq_compare_func.
9263 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9264 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9265 New definitions.
9266 (hard_regs_roots, hard_regs_node_vec): Ditto.
9267 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9268 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9269 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9270 (create_new_object_hard_regs_node): Ditto.
9271 (add_new_object_hard_regs_node_to_forest): Ditto.
9272 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9273 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9274 Ditto.
9275 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9276 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9277 (remove_unused_object_hard_regs_nodes): Ditto.
9278 (enumerate_object_hard_regs_nodes): Ditto.
9279 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9280 (object_hard_regs_subnode_t): Ditto.
9281 (struct object_hard_regs_subnode): Ditto.
9282 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9283 (setup_object_hard_regs_subnode_index): Ditto.
9284 (get_object_hard_regs_subnodes_num): Ditto.
9285 (form_object_hard_regs_nodes_forest): Ditto.
9286 (finish_object_hard_regs_nodes_tree): Ditto.
9287 (finish_object_hard_regs_nodes_forest): Ditto.
9288 (allocnos_have_intersected_live_ranges_p): Rename to
9289 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9290 (pseudos_have_intersected_live_ranges_p): Rename to
9291 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9292 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9293 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9294 (update_copy_costs): Remove assert. Skip cost update if the hard
9295 reg does not belong the class.
9296 (assign_hard_reg): Process only profitable hard regs.
9297 (uncolorable_allocnos_num): Make it scalar.
9298 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9299 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9300 and ira_reg_class_max_nregs.
9301 (bucket_allocno_compare_func): Check frequency first.
9302 (sort_bucket): Add compare function as a parameter.
9303 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9304 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9305 (push_allocno_to_stack): Rewrite for checking new allocno
9306 colorability.
9307 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9308 (push_only_colorable): Pass new parameter to sort_bucket.
9309 (push_allocno_to_spill): Remove.
9310 (allocno_spill_priority_compare): Make it inline and rewrite.
9311 (splay_tree_allocate, splay_tree_free): Remove.
9312 (allocno_spill_sort_compare): New function.
9313 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9314 build and use splay tree. Choose first allocno in uncolorable
9315 allocno bucket to spill. Remove setting spill cost.
9316 (all_conflicting_hard_regs): Remove.
9317 (setup_allocno_available_regs_num): Check only profitable hard
9318 regs. Print info about hard regs nodes.
9319 (setup_allocno_left_conflicts_size): Remove.
9320 (put_allocno_into_bucket): Don't call
9321 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9322 (improve_allocation): New.
9323 (color_allocnos): Call setup_profitable_hard_regs,
9324 form_object_hard_regs_nodes_forest, improve_allocation,
9325 finish_object_hard_regs_nodes_forest. Setup spill cost.
9326 (print_loop_title): Use pressure classes.
9327 (color_allocnso): Ditto.
9328 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9329 and allocnos_for_spilling.
9330 (ira_sort_regnos_for_alter_reg): Don't setup members
9331 {first,next}_coalesced_allocno.
9332 (color): Remove allocating and freeing removed_splay_allocno_vec.
9333 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9334 prohibited_class_mode_regs.
9335
9336 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9337 formatting.
9338 (update_allocno_pressure_excess_length): Use pressure classes.
9339 (inc_register_pressure, dec_register_pressure): Check for pressure
9340 class.
9341 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9342 pressure class. Use ira_reg_class_nregs instead of
9343 ira_reg_class_max_nregs.
9344 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9345 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9346 (single_reg_class): Use ira_reg_class_nregs instead of
9347 ira_reg_class_max_nregs.
9348 (process_bb_node_lives): Use pressure classes.
9349
9350 * ira-emit.c: Remove mentioning cover classes from the file. Use
9351 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9352 (change_loop): Use pressure classes.
9353 (modify_move_list): Call ira_set_allocno_class instead of
9354 ira_set_allocno_cover_class.
9355
9356 * ira-build.c: Remove mentioning cover classes from the file. Use
9357 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9358 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9359 ALLOCNO_UPDATED_CLASS_COST instead of
9360 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9361 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9362 (ira_create_allocno): Remove initialization of
9363 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9364 ALLOCNO_COLORABLE_P.
9365 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9366 Update conflict regs for the objects.
9367 (create_cap_allocno): Remove assert. Don't propagate
9368 ALLOCNO_AVAILABLE_REGS_NUM.
9369 (ira_free_allocno_costs): New function.
9370 (finish_allocno): Change a part of code into call of
9371 ira_free_allocno_costs.
9372 (low_pressure_loop_node_p): Use pressure classes.
9373 (object_range_compare_func): Don't compare classes.
9374 (setup_min_max_conflict_allocno_ids): Ditto.
9375
9376 * loop-invariant.c: Remove mentioning cover classes from the file.
9377 Use ira_pressure_classes and ira_pressure_classes_num instead of
9378 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9379 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9380 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9381 Use reg_allocno_class instead of reg_cover_class.
9382 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9383 STACK_REG_COVER_CLASS.
9384 (get_regno_cover_class): Rename to get_regno_pressure_class.
9385 (move_loop_invariants): Initialize and finalize regstat.
9386
9387 * ira.c: Remove mentioning cover classes from the file. Add
9388 comments about coloring without cover classes. Use ALLOCNO_CLASS
9389 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9390 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9391 setup_class_subset_and_memory_move_costs.
9392 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9393 (setup_cover_and_important_classes): Rename to
9394 setup_allocno_and_important_classes.
9395 (setup_class_translate_array): New.
9396 (setup_class_translate): Call it for allocno and pressure classes.
9397 (cover_class_order): Rename to allocno_class_order.
9398 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9399 of ira_class_translate.
9400 (reorder_important_classes): Set up ira_important_class_nums.
9401 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9402 (print_class_cover): Rename to print_classes. Add parameter.
9403 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9404 Print pressure classes too.
9405 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9406 setup_reg_subclasses.
9407 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9408 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9409 (setup_prohibited_class_mode_regs): Use
9410 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9411 (clarify_prohibited_class_mode_regs): New function.
9412 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9413 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9414 (ira_init_once): Initialize them.
9415 (free_register_move_costs): Process them.
9416 (ira_init): Move calls of find_reg_classes and
9417 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9418 Call clarify_prohibited_class_mode_regs.
9419 (ira_no_alloc_reg): Remove.
9420 (too_high_register_pressure_p): Use pressure classes.
9421
9422 * sched-deps.c: Remove mentioning cover classes from the file.
9423 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9424 ira_pressure_classes and ira_pressure_classes_num instead of
9425 ira_reg_class_cover_size and ira_reg_class_cover.
9426 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9427 sched_regno_pressure_class instead of sched_regno_cover_class.
9428 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9429 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9430
9431 * ira.h: Add 2010 to Copyright.
9432 (ira_no_alloc_reg): Remove external.
9433 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9434 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9435 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9436 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9437 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9438 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9439 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9440 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9441 x_ira_no_alloc_regs.
9442 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9443 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9444 ira_allocno_classes_num and ira_allocno_classes.
9445 (ira_class_translate): Rename to ira_allocno_class_translate.
9446 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9447 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9448 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9449 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9450 (ira_no_alloc_regs): New.
9451
9452 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9453 classes from the file. Use ALLOCNO_CLASS instead of
9454 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9455 ALLOCNO_COVER_CLASS_COST.
9456 (regno_cover_class): Rename to regno_aclass.
9457 (record_reg_classes): Use ira_reg_class_subunion instead of
9458 ira_reg_class_union.
9459 (record_address_regs): Check overflow.
9460 (scan_one_insn): Ditto.
9461 (print_allocno_costs): Print total mem cost fore regional allocation.
9462 (print_pseudo_costs): Use REG_N_REFS.
9463 (find_costs_and_classes): Use classes intersected with them on the
9464 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9465 ira_reg_class_union. Use ira_allocno_class_translate and
9466 regno_aclass instead of ira_class_translate and regno_cover_class.
9467 Modify code for finding regno_aclass. Setup preferred classes for
9468 the next pass.
9469 (setup_allocno_cover_class_and_costs): Rename to
9470 setup_allocno_class_and_costs. Use regno_aclass instead of
9471 regno_cover_class. Use ira_set_allocno_class instead of
9472 ira_set_allocno_cover_class.
9473 (init_costs, finish_costs): Use regno_aclass instead of
9474 regno_cover_class.
9475 (ira_costs): Use setup_allocno_class_and_costs instead of
9476 setup_allocno_cover_class_and_costs.
9477 (ira_tune_allocno_costs_and_cover_classes): Rename to
9478 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9479 by processing objects. Use ira_reg_class_max_nregs instead of
9480 ira_reg_class_nregs.
9481
9482 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9483
9484 * sched-int.h: Remove mentioning cover classes from the file.
9485 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9486
9487 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9488 classes from the file.
9489 (struct reg_pref): Rename coverclass into allocnoclass.
9490 (reg_cover_class): Rename to reg_allocno_class.
9491
9492 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9493
9494 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9495
9496 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9497
9498 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9499
9500 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9501
9502 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9503
9504 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9505
9506 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9507
9508 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9509
9510 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9511
9512 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9513 (i386_ira_cover_classes): Ditto.
9514
9515 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9516
9517 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9518
9519 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9520
9521 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9522
9523 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9524
9525 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9526
9527 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9528 (mips_ira_cover_classes): Ditto.
9529
9530 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9531
9532 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9533
9534 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9535
9536 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9537
9538 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9539
9540 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9541 (IRA_COVER_CLASSES_VSX): Ditto.
9542
9543 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9544 (rs6000_ira_cover_classes): Ditto.
9545
9546 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9547
9548 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9549
9550 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9551
9552 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9553
9554 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9555
9556 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9557
9558 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9559
9560 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9561
9562 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9563
9564 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9565
9566 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9567
9568 PR debug/48253
9569 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9570 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9571 dw_fde_unlikely_section_end_label, cold_in_std_section,
9572 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9573 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9574 fields.
9575 (output_fde): Use dw_fde_second_{begin,end} if second is
9576 true, otherwise dw_fde_{begin,end}.
9577 (output_call_frame_info): Test dw_fde_second_begin != NULL
9578 instead of dw_fde_switched_sections.
9579 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9580 fields, initialize new fields. Initialize in_std_section
9581 unconditionally from the first partition.
9582 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9583 dw_fde_second_begin is non-NULL.
9584 (dwarf2out_switch_text_section): Stop initializing removed
9585 dw_fde_struct fields, initialize new fields, initialize
9586 also dw_fde_end here. Set dw_fde_switch_cfi even when
9587 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9588 (struct var_loc_list_def): Add last_before_switch field.
9589 (arange_table, arange_table_allocated, arange_table_in_use,
9590 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9591 (size_of_aranges): Count !in_std_section and !second_in_std_section
9592 hunks in fdes, instead of looking at arange_table_in_use.
9593 (output_aranges): Add aranges_length argument, don't call
9594 size_of_aranges here. Instead of using aranges_table*
9595 emit ranges for fdes when !in_std_section resp.
9596 !second_in_std_section.
9597 (dw_loc_list): Break ranges crossing section switch.
9598 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9599 use dw_fde_second_end instead of dw_fde_end as end of last range.
9600 (gen_subprogram_die): Don't call add_arange. Use
9601 dw_fde_{begin,end} for first partition and if switched
9602 section dw_fde_second_{begin,end} for the second.
9603 (var_location_switch_text_section_1,
9604 var_location_switch_text_section): New functions.
9605 (dwarf2out_begin_function): Initialize cold_text_section even
9606 when function_section () isn't text_section.
9607 (prune_unused_types): Don't walk arange_table.
9608 (dwarf2out_finish): Don't needlessly test
9609 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9610 If info_section_emitted, call size_of_aranges and if it indicates
9611 non-empty .debug_aranges, call output_aranges with the computed
9612 size. Stop using removed dw_fde_struct fields, use
9613 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9614 for second.
9615
9616 PR debug/48203
9617 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9618 create ENTRY_VALUE if incoming or address of incoming's MEM
9619 is a hard REG.
9620 * dwarf2out.c (mem_loc_descriptor): Don't emit
9621 DW_OP_GNU_entry_value of DW_OP_fbreg.
9622 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9623 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9624 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9625 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9626 ENTRY_VALUE_EXPs.
9627 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9628 is a REG_P or MEM_P with REG_P address, compute hash directly
9629 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9630 (preserve_only_constants): Don't clear VALUES forwaring
9631 ENTRY_VALUE to some other VALUE.
9632
9633 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9634
9635 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9636 instead of GEN_INT.
9637
9638 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9639
9640 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9641 block before expanding the statement.
9642 (expand_gimple_stmt_1): Likewise. Set them here...
9643 (expand_gimple_stmt): ...and not here. Tidy.
9644 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9645 unknown.
9646
9647 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9648
9649 * Makefile.in: New rule for cprop.o.
9650 * gcse.c: Move constant/copy propagation to cprop.c.
9651 (compute_local_properties): Only handle expression tables.
9652 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9653 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9654 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9655 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9656 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9657 compute_cprop_data, find_used_regs, try_replace_reg,
9658 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9659 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9660 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9661 find_bypass_set, reg_killed_on_edge, bypass_block,
9662 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9663 execute_rtl_cprop, pass_rtl_cprop): Move to...
9664 * cprop.c: ...here. New file, constant/copy propagation for RTL
9665 moved from gcse.c to here with minor cleanups in duplicated code.
9666
9667 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9668
9669 * config/i386/i386.c (flag_opts): Fix a typo in
9670 -mavx256-split-unaligned-store.
9671
9672 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9673
9674 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9675 LIBCALL_VALUE): Remove macros.
9676 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9677 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9678 (h8300_function_value, h8300_libcall_value,
9679 h8300_function_value_regno_p): New functions.
9680
9681 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9682
9683 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9684
9685 2011-03-28 Jeff Law <law@redhat.com>
9686
9687 * tree-ssa-threadupdate.c (redirect_edges): Call
9688 create_edge_and_update_destination_phis as needed.
9689 (create_edge_and_update_destination_phis): Accept new BB argument.
9690 All callers updated.
9691 (thread_block): Do not update the profile when threading around
9692 intermediate blocks.
9693 (thread_single_edge): Likewise.
9694 (determine_bb_domination_status): If BB is not a successor of the
9695 loop header, return NONDOMINATING.
9696 (register_jump_thread): Note when we register a jump thread around
9697 an intermediate block.
9698 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9699 (thread_across_edge): Use it.
9700
9701 2011-03-28 Tristan Gingold <gingold@adacore.com>
9702
9703 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9704 when for_return is 2.
9705
9706 2011-03-28 Jeff Law <law@redhat.com>
9707
9708 * var-tracking.c (canonicalize_values_mark): Delete unused
9709 lhs assignment.
9710 (canonicalize_values_star, set_variable_part): Likewise.
9711 (clobber_variable_part, delete_variable_part): Likewise.
9712
9713 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9714
9715 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9716
9717 2011-03-28 Martin Jambor <mjambor@suse.cz>
9718
9719 * tree-inline.c (expand_call_inline): Do not check that destination
9720 node is analyzed.
9721 (optimize_inline_calls): Assert that destination node is analyzed.
9722 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9723 not call tree_lowering_passes.
9724 * cgraph.h (cgraph_analyze_function): Declare.
9725 * cgraphunit.c (cgraph_analyze_function): Make public.
9726
9727 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9728
9729 * config/sparc/sparc-opts.h: New.
9730 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9731 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9732 (sparc_option_override): Store processor_type enumeration rather
9733 than string in cpu_default. Remove name and enumeration from
9734 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9735 without using sparc_select. Use target_flags_explicit instead of
9736 fpu_option_set.
9737 * config/sparc/sparc.h (enum processor_type): Move to
9738 sparc-opts.h.
9739 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9740 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9741 HeaderInclude entry.
9742 (mcpu=, mtune=): Use Var and Enum.
9743 (sparc_processor_type): New Enum and EnumValue entries.
9744
9745 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9746 Iain Sandoe <iains@gcc.gnu.org>
9747
9748 PR target/48245
9749 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9750
9751 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9752
9753 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9754 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9755 Insert new statements at it in lieu of STMT.
9756 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9757 * tree-vect-stmts.c (vectorizable_store): Likewise.
9758 (vectorizable_load): Likewise.
9759
9760 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9761
9762 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9763 (divtf3): Ditto.
9764 (multf3): Ditto.
9765 (subtf3): Ditto.
9766
9767 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9768
9769 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9770 unaligned 256bit load/store.
9771 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9772 (*avx_movdqu<avxmodesuffix>): Likewise.
9773
9774 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9775
9776 PR target/48288
9777 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9778 * config/pa/pa.md (iordi3): Use new predicate in expander.
9779 (iorsi3): Likewise.
9780
9781 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9782
9783 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9784 FUNCTION_VALUE_REGNO_P): Remove macros.
9785 * config/mips/mips-protos.h (mips_function_value): Remove.
9786 * config/mips/mips.c (mips_function_value): Rename to...
9787 (mips_function_value_1): ... this. Make static. Handle receiving
9788 the function type in 'fn_decl_or_type' argument.
9789 (mips_function_value, mips_libcall_value,
9790 mips_function_value_regno_p): New function.
9791 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9792 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9793
9794 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9795
9796 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9797 and -mavx256-split-unaligned-store.
9798 (ix86_option_override_internal): Split 32-byte AVX unaligned
9799 load/store by default.
9800 (ix86_avx256_split_vector_move_misalign): New.
9801 (ix86_expand_vector_move_misalign): Use it.
9802
9803 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9804 -mavx256-split-unaligned-store.
9805
9806 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9807 256bit load/store. Generate unaligned store on misaligned memory
9808 operand.
9809 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9810 256bit load/store.
9811 (*avx_movdqu<avxmodesuffix>): Likewise.
9812
9813 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9814 -mavx256-split-unaligned-store.
9815
9816 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9817
9818 PR target/38598
9819 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9820 Update commentary.
9821
9822 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9823
9824 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9825 opno arguments with an expand_operand. Use create_input_operand.
9826 (mips_prepare_builtin_target): Delete.
9827 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9828 functions.
9829 (mips_expand_builtin_direct): Use create_output_operand and
9830 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9831 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9832 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9833
9834 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9835
9836 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9837 function.
9838 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9839
9840 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9841
9842 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9843 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9844 basic blocks and call commit_edge_insertions directly.
9845 (fixup_abnormal_edges): Move from here to...
9846 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9847 on the edges and return whether some have actually been inserted.
9848 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9849 compensation code.
9850
9851 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9852
9853 PR rtl-optimization/48144
9854 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9855 (merge_expr_data): ... here.
9856 (av_set_intersect): Rename to av_set_code_motion_filter.
9857 Update all callers. Call merge_history_vect when an expression
9858 is found in both sets.
9859 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9860
9861 2011-03-26 Alan Modra <amodra@gmail.com>
9862
9863 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9864 cmodel medium addresses.
9865 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9866 64-bit gpr loads and stores.
9867 (rs6000_secondary_reload_ppc64): New function.
9868 * config/rs6000/rs6000-protos.h: Declare it.
9869 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9870
9871 2011-03-26 Alan Modra <amodra@gmail.com>
9872
9873 PR target/47487
9874 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9875 GNU Go in traceback table.
9876
9877 2011-03-25 Richard Henderson <rth@redhat.com>
9878
9879 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9880 if there are exactly 6 operands.
9881 (set_storage_via_setmem): Similarly.
9882
9883 2011-03-25 Kai Tietz <ktietz@redhat.com>
9884
9885 * collect2.c (write_c_file_stat): Handle backslash
9886 as right-hand directory separator.
9887 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9888 checking just for slash.
9889 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9890 instead of checking for trailing slash.
9891 * gcc.c (record_temp_file): Use filename_cmp instead
9892 of strcmp.
9893 (do_spec_1): Likewise.
9894 (replace_outfile_spec_function): Likewise.
9895 (is_directory): Use filename_ncmp instead of strncmp.
9896 (print_multilib_info): Likewise.
9897 * gcov.c (find_source): Use filename_cmp instead
9898 instead of strcmp.
9899 (make_gcov_file_name): Fix order of slash/backslash
9900 checks.
9901 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9902 (add_standard_paths): Likewise.
9903 * mips-tfile.c (saber_stop): Handle backslash.
9904 * prefix.c (update_path): Use filename_ncmp instead of
9905 strncmp.
9906 * profile.c (output_location): Use filename_cmp instead
9907 of strcmp.
9908 * read-md.c (handle_toplevel_file): Handle backslash.
9909 * tlink.c (frob_extension): Likewise.
9910 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9911 strcmp.
9912 * tree-dump.c (dequeue_and_dump): Handle backslash.
9913 * tree.c (get_file_function_name): Likewise.
9914 * gengtype.c (read_input_list): Likewise.
9915 (get_file_realbasename): Likewise.
9916 (get_output_file_with_visibility): Use filename_cmp
9917 instead of strcmp.
9918
9919 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9920
9921 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9922 case to VFPv1.
9923
9924 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9925
9926 * fold-const.c (expr_location_or): New function.
9927 (fold_truth_not_expr): Call it.
9928
9929 2011-03-25 Jeff Law <law@redhat.com>
9930
9931 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9932 va_end.
9933 * c-family/c-common.c (def_fn_type): Likewise.
9934 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9935 * emit-rtl.c (gen_rtvec): Likewise.
9936 * lto/lto-lang.c (def_fn_type): Likewise.
9937
9938 2011-03-25 Richard Guenther <rguenther@suse.de>
9939
9940 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9941 also generate copies.
9942 (fini_copy_prop): Handle constant values properly.
9943
9944 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9945
9946 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9947 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9948 (hash_loc_operands, compare_loc_operands): Handle
9949 DW_OP_GNU_entry_value.
9950
9951 2011-03-25 Kai Tietz <ktietz@redhat.com>
9952
9953 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9954 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9955 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9956 comment and use macro TARGET_64BIT_MS_ABI instead.
9957 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9958 and change default behavior for 32-bit MS_ABI.
9959 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9960 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9961 32-bit, too.
9962 (ix86_cfun_abi): Likewise.
9963 (ix86_maybe_switch_abi): Adjust comment.
9964 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9965 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9966 instead of checking for SYSV_ABI.
9967 (ix86_nsaved_sseregs): Likewise.
9968 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9969 to 16 bytes.
9970 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9971 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9972 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9973 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9974 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9975
9976 2011-03-25 Richard Guenther <rguenther@suse.de>
9977
9978 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9979 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9980 (verify_gimple): Remove.
9981 * tree-cfg.c (verify_gimple_call): Merge verification
9982 from verify_stmts.
9983 (verify_gimple_phi): Merge verification from verify_stmts.
9984 (verify_gimple_label): New function.
9985 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9986 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9987 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9988 (verify_stmts): Rename to verify_gimple_in_cfg.
9989 (verify_gimple_in_cfg): New function.
9990 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9991 * tree-ssa.c (verify_ssa): Likewise.
9992 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9993
9994 2011-03-25 Richard Guenther <rguenther@suse.de>
9995
9996 * passes.c (init_optimization_passes): Add FRE pass after
9997 early SRA.
9998
9999 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10000 Andrew Stubbs <ams@codesourcery.com>
10001
10002 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10003 for Cortex-A8.
10004 (arm_movdi_vfp_cortexa8): New pattern.
10005 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10006 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10007 instructions when tuning for Cortex-A8. Set attribute "arch".
10008 * config/arm/arm.md: Move include arm-tune.md up a bit.
10009 (define_attr "arch"): Add "onlya8" and "nota8" values.
10010 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10011
10012 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10013
10014 PR bootstrap/48282
10015 Revert:
10016 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10017
10018 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10019 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10020 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10021 * passes.c (init_optimization_passes): Move
10022 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10023
10024 2011-03-25 Kai Tietz <ktietz@redhat.com>
10025
10026 * c-typeck.c (comptypes_internal): Replace target
10027 hook call of comp_type_attributes by version in tree.c file.
10028 * gimple.c (gimple_types_compatible_p_1): Likewise.
10029 * tree-ssa.c (useless_type_conversion_p): Likewise.
10030 * tree.c (build_type_attribute_qual_variant): Likewise.
10031 (attribute_value_equal): New static helper function.
10032 (comp_type_attributes): New function.
10033 (merge_attributes): Use attribute_value_equal for comparison.
10034 (attribute_list_contained): Likewise.
10035 * tree.h (comp_type_attributes): New prototype.
10036
10037 2011-03-25 Richard Guenther <rguenther@suse.de>
10038
10039 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10040 of complex types at -O0.
10041 (verify_gimple_assign_binary): Likewise.
10042 (verify_gimple_assign_ternary): Likewise.
10043
10044 2011-03-24 Mark Wielaard <mjw@redhat.com>
10045
10046 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10047 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10048
10049 2011-03-24 Mark Wielaard <mjw@redhat.com>
10050
10051 PR debug/48041
10052 * dwarf2out.c (output_abbrev_section): Only write table when
10053 abbrev_die_table_in_use > 1.
10054
10055 2011-02-24 Richard Henderson <rth@redhat.com>
10056
10057 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10058 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10059 (alpha_expand_unaligned_load_words): Use extql.
10060 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10061 (emit_insxl): Handle all modes for consistency.
10062
10063 2011-02-24 Richard Henderson <rth@redhat.com>
10064
10065 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10066 (alpha_expand_unaligned_load): Likewise.
10067 (alpha_expand_unaligned_store): Likewise.
10068 (alpha_expand_unaligned_load_words): Likewise.
10069 (alpha_expand_unaligned_store_words): Likewise.
10070 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10071 (alpha_split_lock_test_and_set_12): Likewise.
10072 (print_operand, alpha_fold_builtin_extxx): Likewise.
10073 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10074 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10075 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10076 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10077 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10078 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10079 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10080 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10081 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10082 (extwl, extll, extql): Similarly.
10083 (inswh, inslh, insqh): Similarly.
10084 (mskbl, mskwl, mskll, mskql): Similarly.
10085 (mskwh, msklh, mskqh): Similarly.
10086
10087 2011-02-24 Richard Henderson <rth@redhat.com>
10088
10089 * config/alpha/alpha.md (attribute isa): Add er, ner.
10090 (attribute enabled): Handle them.
10091 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10092
10093 2011-02-24 Richard Henderson <rth@redhat.com>
10094
10095 * config/alpha/alpha.md (attribute isa): Add vms.
10096 (attribute enabled): Handle it.
10097 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10098 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10099 (*movtf): Rename from *movtf_internal for consistency.
10100 (*movsi): Merge with *movsi_nt_vms.
10101 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10102 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10103 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10104 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10105
10106 2011-02-24 Richard Henderson <rth@redhat.com>
10107
10108 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10109 (extendqisi2, extendhisi2): Likewise.
10110 (extendqidi2): Simplify BWX/non-BWX expansions.
10111 (extendhidi2): Similarly.
10112
10113 2011-02-24 Richard Henderson <rth@redhat.com>
10114
10115 * config/alpha/alpha.md (attribute isa): New.
10116 (attribute enabled): New.
10117 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10118 (zero_extendqisi2, zero_extendqidi2): Similarly.
10119 (zero_extendhisi2, zero_extendhidi2): Similarly.
10120 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10121
10122 2011-02-24 Richard Henderson <rth@redhat.com>
10123
10124 * config/alpha/predicates.md (input_operand): Revert last change;
10125 update comment to mention 32-bit VMS rather than Windows.
10126
10127 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10128
10129 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10130 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10131 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10132 * passes.c (init_optimization_passes): Move
10133 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10134
10135 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10136
10137 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10138
10139 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10140
10141 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10142 correctly.
10143
10144 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10145
10146 PR debug/48204
10147 * simplify-rtx.c (simplify_const_unary_operation): Call
10148 real_convert when changing mode class with FLOAT_EXTEND.
10149
10150 2011-03-24 Nick Clifton <nickc@redhat.com>
10151
10152 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10153 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10154 * config/rx/rx.c (rx_option_override): Set align_jumps,
10155 align_loops and align_labels if not set by the user.
10156 (rx_align_for_label): New function.
10157 (rx_max_skip_for_label): New function.
10158 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10159 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10160 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10161 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10162 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10163
10164 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10165
10166 PR rtl-optimization/48263
10167 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10168 and original commutative_p handling. Use maybe_gen_insn.
10169
10170 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10171
10172 * reload.c (find_reloads_subreg_address): Add address_reloaded
10173 parameter and return true there if the full address has been
10174 reloaded.
10175 (find_reloads_toplev): Pass address_reloaded flag.
10176 (find_reloads_address_1): Don't use address_reloaded parameter.
10177
10178 2011-03-24 Jeff Law <law@redhat.com>
10179
10180 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10181 unused variable "ann".
10182 (remove_unused_locals): Likewise.
10183
10184 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10185 statement.
10186
10187 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10188 after it is freed.
10189
10190 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10191
10192 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10193 for invalid symbolic addresses.
10194 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10195 larl operands.
10196
10197 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10198
10199 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10200 the argument in calls to fold_truth_not_expr.
10201
10202 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10203
10204 * tree.c (record_node_allocation_statistics): New function.
10205 (make_node_stat, copy_node_stat, build_string): Call it.
10206 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10207 (build1_stat, build_omp_clause): Likewise.
10208
10209 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10210
10211 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10212 last commit.
10213
10214 2011-03-24 Richard Guenther <rguenther@suse.de>
10215
10216 PR tree-optimization/48271
10217 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10218 blocks that still exist.
10219
10220 2011-03-24 Richard Guenther <rguenther@suse.de>
10221
10222 PR tree-optimization/48270
10223 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10224 not free datarefs before ddrs.
10225
10226 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10227
10228 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10229 from the address built for a reference with variable offset.
10230
10231 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10232
10233 PR target/48237
10234 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10235 alternatives that can be handled with movq or movabsq insn.
10236 (*movdf_internal): Disable for !TARGET_64BIT.
10237 (*movdf_internal_nointeger): Ditto.
10238 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10239
10240 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10241
10242 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10243 (FUNCTION_ARG_ADVANCE): Likewise.
10244 * tm.texi.in: Change references to them to hook references.
10245 * tm.texi: Regenerate.
10246 * targhooks.c (default_function_arg): Eliminate check for target macro.
10247 (default_function_incoming_arg): Likewise.
10248 (default_function_arg_advance): Likewise.
10249 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10250 (function_arg_advance): Likewise.
10251 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10252
10253 2011-03-24 Richard Guenther <rguenther@suse.de>
10254
10255 PR middle-end/48269
10256 * tree-object-size.c (addr_object_size): Do not double-account
10257 for MEM_REF offsets.
10258
10259 2011-03-24 Diego Novillo <dnovillo@google.com>
10260
10261 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10262 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10263 (lto_input_data_block): Move from lto-opts.c. Make extern.
10264 Update all users.
10265 (lto_input_string): Rename from input_string. Make extern.
10266 Update all users.
10267 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10268 output_string_with_length.
10269 Output 0 to indicate a non-NULL string. Update all callers to
10270 not emit 0.
10271 (lto_output_string): Rename from output_string. Make extern.
10272 Update all users.
10273 (lto_output_decl_state_streams): Make extern.
10274 (lto_output_decl_state_refs): Make extern.
10275 * lto-streamer.h (lto_input_string): Declare.
10276 (lto_input_data_block): Declare.
10277 (lto_output_string): Declare.
10278 (lto_output_string_with_length): Declare.
10279 (lto_output_decl_state_streams): Declare.
10280 (lto_output_decl_state_refs): Declare.
10281
10282 2011-03-24 Richard Guenther <rguenther@suse.de>
10283
10284 PR tree-optimization/46562
10285 * tree.c (build_invariant_address): New function.
10286 * tree.h (build_invariant_address): Declare.
10287 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10288 a renamed function moved ...
10289 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10290 Take valueization callback parameter.
10291 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10292 * gimple-fold.h: New file.
10293 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10294 (ccp_fold, fold_const_aggregate_ref,
10295 fold_ctor_reference, fold_nonarray_ctor_reference,
10296 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10297 get_base_constructor): Move ...
10298 * gimple-fold.c: ... here.
10299 (gimple_fold_stmt_to_constant_1): New function
10300 split out from ccp_fold. Take a valueization callback parameter.
10301 Valueize all operands.
10302 (gimple_fold_stmt_to_constant): New wrapper function.
10303 (fold_const_aggregate_ref_1): New function split out from
10304 fold_const_aggregate_ref. Take a valueization callback parameter.
10305 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10306 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10307 invariant POINTER_PLUS_EXPRs to invariant form.
10308 (vn_valueize): New function.
10309 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10310 * tree-vrp.c (vrp_valueize): New function.
10311 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10312 to fold statements to constants.
10313 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10314 function declarations.
10315 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10316 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10317
10318 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10319
10320 * config/h8300/predicates.md (jump_address_operand): Fix register
10321 mode check.
10322
10323 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10324
10325 * doc/invoke.texi (max-stores-to-sink): Document.
10326 * params.h (MAX_STORES_TO_SINK): Define.
10327 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10328 if either vectorization or if-conversion is disabled.
10329 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10330 tree-vect-data-refs.c vect_equal_offsets.
10331 (dr_equal_offsets_p): New function.
10332 (find_data_references_in_bb): Remove static.
10333 * tree-data-ref.h (find_data_references_in_bb): Declare.
10334 (dr_equal_offsets_p): Likewise.
10335 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10336 (vect_drs_dependent_in_basic_block): Update calls to
10337 vect_equal_offsets.
10338 (vect_check_interleaving): Likewise.
10339 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10340 (cond_if_else_store_replacement): Rename to...
10341 (cond_if_else_store_replacement_1): ... this. Change arguments and
10342 documentation.
10343 (cond_if_else_store_replacement): New function.
10344 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10345 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10346
10347 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10348
10349 PR target/46934
10350 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10351 to subtract lower bound instead of GEN_INT().
10352
10353 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10354
10355 PR other/48179
10356 PR other/48221
10357 PR other/48234
10358 * doc/extend.texi (Alignment): Move section to match order in TOC.
10359 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10360 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10361
10362 2011-03-23 Jeff Law <law@redhat.com>
10363
10364 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10365 before removing the edge.
10366
10367 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10368 it may have been freed by redirect_branch_edge or
10369 redirect_edge_succ_nodup.
10370
10371 2011-03-23 Richard Guenther <rguenther@suse.de>
10372
10373 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10374 (check_va_list_escapes): Likewise.
10375 (check_all_va_list_escapes): Likewise.
10376
10377 2011-03-23 Richard Guenther <rguenther@suse.de>
10378
10379 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10380 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10381 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10382 (alias.o): Likewise.
10383 (ipa-type-escape.o): Remove.
10384 (ipa-struct-reorg.o): Likewise.
10385 (GTFILES): Remove ipa-struct-reorg.c.
10386 * alias.c: Do not include ipa-type-escape.h.
10387 * tree-ssa-alias.c: Likewise.
10388 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10389 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10390 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10391 and ipa-type-escape passes.
10392 * tree-pass.h (pass_ipa_type_escape): Remove.
10393 (pass_ipa_struct_reorg): Likewise.
10394 * ipa-struct-reorg.h: Remove.
10395 * ipa-struct-reorg.c: Likewise.
10396 * ipa-type-escape.h: Likewise.
10397 * ipa-type-escape.c: Likewise.
10398 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10399 (--param struct-reorg-cold-struct-ratio): Likewise.
10400 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10401 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10402 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10403
10404 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10405
10406 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10407 cpu attribute value.
10408 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10409 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10410 * config/s390/s390.c (processor_flags_table): New constant array.
10411 (s390_handle_arch_option): Remove.
10412 (s390_handle_option): Remove s390_handle_arch_option invocations
10413 and OPT_mwarn_framesize_ handling.
10414 (s390_option_override): Remove s390_handle_arch_option invocation.
10415 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10416 warnings.
10417 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10418 * config/s390/s390.opt (s390_tune, s390_arch)
10419 (march=): Replace s390_arch_option enum and values with
10420 processor_type. Set variable name to s390_arch. Set
10421 initialization value.
10422 (mtune=): Replace s390_arch_option with processor_type. Set
10423 variable name to s390_tune. Set initialization value.
10424
10425 2011-03-23 Julian Brown <julian@codesourcery.com>
10426
10427 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10428 accesses which are not naturally aligned.
10429
10430 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10431
10432 PR target/47553
10433 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10434
10435 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10436
10437 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10438 parameter from "int" to "enum insn_code".
10439 (expand_operand_type): New enum.
10440 (expand_operand): New structure.
10441 (create_expand_operand): New function.
10442 (create_fixed_operand, create_output_operand): Likewise
10443 (create_input_operand, create_convert_operand_to): Likewise.
10444 (create_convert_operand_from, create_address_operand): Likewise.
10445 (create_integer_operand): Likewise.
10446 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10447 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10448 (expand_insn, expand_jump_insn): Likewise.
10449 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10450 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10451 (expand_movstr, expand_builtin___clear_cache): Likewise.
10452 (expand_builtin_lock_release): Likewise.
10453 * explow.c (allocate_dynamic_stack_space): Likewise.
10454 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10455 and use the default handling in that case.
10456 * expmed.c (check_predicate_volatile_ok): Delete.
10457 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10458 (emit_cstore): Likewise.
10459 * expr.c (emit_block_move_via_movmem): Likewise.
10460 (set_storage_via_setmem, expand_assignment): Likewise.
10461 (emit_storent_insn, try_casesi): Likewise.
10462 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10463 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10464 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10465 (expand_twoval_unop, expand_twoval_binop): Likewise.
10466 (expand_unop_direct, emit_indirect_jump): Likewise.
10467 (emit_conditional_move, vector_compare_rtx): Likewise.
10468 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10469 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10470 (expand_sync_lock_test_and_set): Likewise.
10471 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10472 (emit_unop_insn): Likewise.
10473 (expand_copysign_absneg): Change icode to an insn_code.
10474 (create_convert_operand_from_type): New function.
10475 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10476 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10477 (expand_insn, expand_jump_insn): Likewise.
10478 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10479 than const_int_operand for operand 2.
10480
10481 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10482
10483 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10484 if possible.
10485
10486 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10487
10488 * emit-rtl.c (emit_pattern_before_noloc): New function.
10489 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10490 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10491 (emit_pattern_after_noloc): New function.
10492 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10493 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10494
10495 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10496
10497 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10498 (__ffsDI2): Likewise.
10499
10500 2011-03-22 Richard Henderson <rth@redhat.com>
10501
10502 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10503 of !TARGET_ABI_OPEN_VMS.
10504 (alpha_trampoline_init, alpha_start_function): Likewise.
10505 (alpha_expand_epilogue, alpha_file_start): Likewise.
10506 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10507 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10508 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10509 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10510 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10511
10512 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10513
10514 * config/s390/s390-opts.h: New.
10515 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10516 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10517 s390_stack_guard): Remove.
10518 (s390_handle_arch_option): Return void. Take enum
10519 s390_arch_option value instead of string and searching array.
10520 (s390_handle_option): Don't assert that global structures are in
10521 use. Access variables via opts pointer. Use error_at. Don't use
10522 sscanf for -mstack-guard= or -mstack-size=. Update call to
10523 s390_handle_arch_option.
10524 (s390_option_override): Update call to s390_handle_arch_option.
10525 (s390_emit_prologue): Use %d format for s390_stack_size in
10526 diagnostic. Use %wd for HOST_WIDE_INT.
10527 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10528 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10529 * config/s390/s390.opt (config/s390/s390-opts.h): New
10530 HeaderInclude entry.
10531 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10532 s390_arch_flags, s390_warn_framesize): New Variable entries.
10533 (s390_arch_option): New Enum and EnumValue entries.
10534 (march=): Use Enum instead of Var.
10535 (mstack-guard=, mstack-size=): Use UInteger and Var.
10536 (mtune=): Use Enum.
10537
10538 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10539
10540 * config/score/score.c (score_handle_option): Don't assert that
10541 global structures are in use. Access target_flags via opts
10542 pointer. Use value of -march= option to determine target_flags
10543 settings.
10544 * config/score/score.opt (march=): Use Enum.
10545 (score_arch): New Enum and EnumValue entries.
10546
10547 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10548
10549 * config/mep/mep.c (option_mtiny_specified): Remove.
10550 (mep_option_override): Move register handling for -mivc2 from
10551 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10552 instead of option_mtiny_specified.
10553 (mep_handle_option): Access target_flags via opts pointer. Don't
10554 assert that global structures are in use. Defer part of -mivc2
10555 handling and move it to mep_option_override.
10556 * config/mep/mep.opt (IVC2): New Mask entry.
10557 (mivc2): Use Var and Defer instead of Mask.
10558
10559 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10560
10561 * config/v850/v850-opts.h: New.
10562 * config/v850/v850.c (small_memory): Replace with
10563 small_memory_physical_max array. Make that array static const.
10564 (v850_handle_memory_option): Take integer value of argument. Take
10565 gcc_options pointer, option text and location. Return void.
10566 Update for changes to small memory structures.
10567 (v850_handle_option): Access target_flags via opts pointer. Don't
10568 assert that global structures are in use. Update calls to
10569 v850_handle_memory_option.
10570 (v850_encode_data_area): Update references to small memory settings.
10571 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10572 (enum small_memory_type): Move to v850-opts.h.
10573 * config/v850/v850.opt (config/v850/v850-opts.h): New
10574 HeaderInclude entry.
10575 (small_memory_max): New Variable entry.
10576 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10577 (mtda, mzda): Likewise.
10578
10579 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10580
10581 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10582 pointer. Don't assert that global structures are in use.
10583
10584 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10585
10586 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10587 via opts pointer. Don't assert that global structures are in use.
10588
10589 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10590
10591 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10592 (munix=93): Use Var.
10593 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10594 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10595 * config/pa/pa-opts.h: New.
10596 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10597 (pa_handle_option): Don't assert that global structures are in
10598 use. Access target_flags via opts pointer. Don't handle
10599 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10600 OPT_munix_98 here.
10601 (pa_option_override): Handle deferred OPT_mfixed_range_.
10602
10603 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10604
10605 * config/mn10300/mn10300-opts.h: New.
10606 * config/mn10300/mn10300.c (mn10300_processor,
10607 mn10300_tune_string): Remove.
10608 (mn10300_handle_option): Don't assert that global structures are
10609 in use. Access mn10300_processor via opts pointer. Don't handle
10610 OPT_mtune_ here.
10611 * config/mn10300/mn10300.h (enum processor_type): Move to
10612 mn10300-opts.h.
10613 (mn10300_processor): Remove.
10614 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10615 HeaderInclude entry.
10616 (mn10300_processor): New Variable entry.
10617 (mtune=): Use Var.
10618
10619 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10620
10621 * config/microblaze/microblaze.c: Don't include opts.h.
10622 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10623 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10624 (mno-clearbss): Use Var and Warn.
10625
10626 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10627
10628 * config/m32r/m32r-opts.h: New.
10629 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10630 (m32r_handle_option): Don't assert that global structures are in
10631 use. Access target_flags and m32r_cache_flush_func via opts
10632 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10633 OPT_mno_flush_trap here.
10634 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10635 include of m32r-opts.h.
10636 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10637 HeaderInclude entry.
10638 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10639 (mmodel=): Use Enum and Var.
10640 (m32r_model): New Enum and EnumValue entries.
10641 (mno-flush-trap): Use Var.
10642 (msdata=): Use Enum and Var.
10643 (m32r_sdata): New Enum and EnumValue entries.
10644
10645 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10646
10647 * config/m32c/m32c.c: Don't include opts.h.
10648 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10649 m32c_handle_option): Remove.
10650 (m32c_option_override): Check global_options_set.x_target_memregs
10651 instead of target_memregs_set.
10652 * config/m32c/m32c.h (target_memregs): Remove.
10653 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10654 variable.
10655
10656 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10657
10658 * config/iq2000/iq2000-opts.h: New.
10659 * config/iq2000/iq2000.c: Don't include opts.h.
10660 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10661 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10662 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10663 HeaderInclude entry.
10664 (iq2000_tune): New Variable entry.
10665 (march=): Add comment. Use Enum.
10666 (iq2000_arch): New Enum and EnumValue entries.
10667 (mcpu=): Use Enum and Var.
10668 (iq2000_tune): New Enum and EnumValue entries.
10669
10670 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10671
10672 * config/ia64/ia64-opts.h: New.
10673 * config/ia64/ia64.c (ia64_tune): Remove.
10674 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10675 here. Use error_at.
10676 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10677 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10678 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10679 HeaderInclude entry.
10680 (ia64_tune): New Variable entry.
10681 (mfixed-range=): Use Defer and Var.
10682 (mtune=): Use Enum and Var.
10683 (ia64_tune): New Enum and EnumValue entries.
10684
10685 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10686
10687 * config/frv/frv-opts.h: New.
10688 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10689 frv-opts.h.
10690 (frv_cpu_type): Remove.
10691 * config/frv/frv.c: Don't include opts.h.
10692 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10693 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10694 (frv_cpu_type): New Variable entry.
10695 (frv_cpu): New Enum and EnumValue entries.
10696
10697 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10698
10699 * config/cris/cris.c (cris_handle_option): Access target_flags via
10700 opts pointer. Don't assert that global structures are in use.
10701 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10702 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10703
10704 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10705
10706 * config/bfin/bfin-opts.h: New.
10707 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10708 bfin_si_revision, bfin_workarounds): Remove.
10709 (bfin_cpus): Make static const.
10710 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10711 not bfin_lib_id_given.
10712 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10713 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10714 pointer. Use error_at. Don't assert that global structures are in use.
10715 * config/bfin/bfin.h: Include bfin-opts.h.
10716 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10717 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10718 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10719 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10720 entries.
10721
10722 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10723
10724 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10725 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10726 or -msoft-float here.
10727 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10728 -msoft-float and -mhard-float.
10729 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10730 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10731 msoft-float.
10732 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10733 -msoft-float.
10734 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10735 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10736 not mhard-float.
10737 (LIBGCC_SPEC): Don't handle -msoft-float.
10738 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10739 -mhard-float.
10740 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10741 msoft-float.
10742 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10743 -mfloat-abi=*, not -msoft-float and -mhard-float.
10744 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10745 -msoft-float.
10746 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10747 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10748 mhard-float and msoft-float.
10749 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10750 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10751 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10752 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10753 mhard-float.
10754 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10755 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10756 msoft-float.
10757 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10758 not mhard-float.
10759 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10760 not msoft-float.
10761
10762 2011-03-22 Richard Henderson <rth@redhat.com>
10763
10764 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10765 TARGET_ABI_WINDOWS_NT.
10766 (alpha_output_function_end_prologue): Likewise.
10767 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10768 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10769 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10770 (trap, *movsi_nt_vms): Likewise.
10771 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10772 (*tablejump_osf_nt_internal): Remove.
10773 * config/alpha/predicates.md (input_operand): Only test Pmode.
10774
10775 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10776
10777 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10778 via opts pointer. Use error_at. Don't assert that global
10779 structures are in use.
10780
10781 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10782
10783 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10784 (ix86_handle_option): Access ix86_isa_flags and
10785 ix86_isa_flags_explicit via opts pointer. Don't assert that
10786 global structures are in use.
10787 (ix86_function_specific_save, ix86_function_specific_restore):
10788 Update ix86_isa_flags_explicit field name.
10789 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10790 (ix86_isa_flags_explicit): Rename TargetSave entry to
10791 x_ix86_isa_flags_explicit.
10792
10793 2011-03-22 Richard Henderson <rth@redhat.com>
10794
10795 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10796 (alpha_option_override, direct_return): Likewise.
10797 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10798 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10799 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10800 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10801 (alpha_expand_epilogue, alpha_end_function): Likewise.
10802 (alpha_init_libfuncs): Likewise.
10803 (struct machine_function): Remove unicosmk members.
10804 (print_operand) ['t']: Remove.
10805 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10806 unicosmk_output_module_name, unicosmk_output_common,
10807 current_section_align, unicosmk_output_text_section_asm_op,
10808 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10809 unicosmk_section_type_flags, unicosmk_unique_section,
10810 unicosmk_asm_named_section, unicosmk_insert_attributes,
10811 unicosmk_output_align, unicosmk_defer_case_vector,
10812 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10813 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10814 unicosmk_output_ssib, unicosmk_add_call_info_word,
10815 unicosmk_extern_head, unicosmk_output_default_externs,
10816 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10817 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10818 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10819 * config/alpha/alpha-protos.h: Update.
10820 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10821 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10822 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10823 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10824 (*mulsi_se, mulvsi3): Likewise.
10825 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10826 (*divmodsi_internal, call, call_value, realign): Likewise.
10827 (moddi3, umoddi3): Likewise; remove duplicate expander.
10828 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10829 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10830 (*movdi_nofix): Remove r/U alternative.
10831 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10832 * config/alpha/constraints.md ("U"): Remove.
10833 * config/alpha/predicates.md (call_operand"): Don't test
10834 TARGET_ABI_UNICOSMK.
10835
10836 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10837
10838 * target.def (handle_option): Take gcc_options and
10839 cl_decoded_option pointers and location_t.
10840 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10841 * doc/tm.texi: Regenerate.
10842 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10843 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10844 * lto-opts.c (lto_reissue_options): Generate option structure for
10845 targetm.handle_option call.
10846 * opts.c (target_handle_option): Update call to
10847 targetm.handle_option. Remove assertions about values now passed
10848 down to hook.
10849 * targhooks.c (default_target_handle_option): New.
10850 * targhooks.h (default_target_handle_option): Declare.
10851 * config/alpha/alpha.c: Include opts.h.
10852 (alpha_handle_option): Update to new hook interface.
10853 * config/arm/arm.c: Include opts.h.
10854 (arm_handle_option): Update to new hook interface.
10855 * config/arm/t-arm (arm.o): Update dependencies.
10856 * config/bfin/bfin.c: Include opts.h.
10857 (bfin_handle_option): Update to new hook interface.
10858 * config/cris/cris.c: Include opts.h.
10859 (cris_handle_option): Update to new hook interface.
10860 * config/frv/frv.c: Include opts.h.
10861 (frv_handle_option): Update to new hook interface.
10862 * config/i386/i386.c: Include opts.h.
10863 (ix86_handle_option): Update to new hook interface.
10864 (ix86_valid_target_attribute_inner_p): Generate option structure
10865 for call to ix86_handle_option.
10866 * config/i386/t-i386 (i386.o): Update dependencies.
10867 * config/ia64/ia64.c: Include opts.h.
10868 (ia64_handle_option): Update to new hook interface.
10869 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10870 * config/iq2000/iq2000.c: Include opts.h.
10871 (iq2000_handle_option): Update to new hook interface.
10872 * config/m32c/m32c.c: Include opts.h.
10873 (m32c_handle_option): Update to new hook interface.
10874 * config/m32r/m32r.c: Include opts.h.
10875 (m32r_handle_option): Update to new hook interface.
10876 * config/m68k/m68k.c: Include opts.h.
10877 (m68k_handle_option): Update to new hook interface.
10878 * config/mep/mep.c: Include opts.h.
10879 (mep_handle_option): Update to new hook interface.
10880 * config/microblaze/microblaze.c: Include opts.h.
10881 (microblaze_handle_option): Update to new hook interface.
10882 * config/mips/mips.c: Include opts.h.
10883 (mips_handle_option): Update to new hook interface.
10884 * config/mn10300/mn10300.c: Include opts.h.
10885 (mn10300_handle_option): Update to new hook interface.
10886 * config/pa/pa.c: Include opts.h.
10887 (pa_handle_option): Update to new hook interface.
10888 * config/pdp11/pdp11.c: Include opts.h.
10889 (pdp11_handle_option): Update to new hook interface.
10890 * config/rs6000/rs6000.c: Include opts.h.
10891 (rs6000_handle_option): Update to new hook interface.
10892 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10893 * config/rx/rx.c: Include opts.h.
10894 (rx_handle_option): Update to new hook interface.
10895 * config/s390/s390.c: Include opts.h.
10896 (s390_handle_option): Update to new hook interface.
10897 * config/score/score.c: Include opts.h.
10898 (score_handle_option): Update to new hook interface.
10899 * config/sh/sh.c: Include opts.h.
10900 (sh_handle_option): Update to new hook interface.
10901 * config/sparc/sparc.c: Include opts.h.
10902 (sparc_handle_option): Update to new hook interface.
10903 * config/v850/v850.c: Include opts.h.
10904 (v850_handle_option): Update to new hook interface.
10905
10906 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10907
10908 * gcc.c (driver_unknown_option_callback): Only permit and save
10909 unknown -Wno- options.
10910 (driver_wrong_lang_callback): Save options directly instead of via
10911 driver_unknown_option_callback.
10912
10913 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10914
10915 * combine.c (simplify_set): Try harder to find the best CC mode when
10916 simplifying a nested COMPARE on the RHS.
10917
10918 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10919
10920 * config/alpha/gnu.h: Remove.
10921 * config/arc: Remove directory.
10922 * config/arm/netbsd.h: Remove.
10923 * config/arm/t-pe: Remove.
10924 * config/crx: Remove directory.
10925 * config/i386/netbsd.h: Remove.
10926 * config/m68hc11: Remove directory.
10927 * config/m68k/uclinux-oldabi.h: Remove.
10928 * config/mcore/mcore-pe.h: Remove.
10929 * config/mcore/t-mcore-pe: Remove.
10930 * config/netbsd-aout.h: Remove.
10931 * config/rs6000/gnu.h: Remove.
10932 * config/sh/sh-symbian.h: Remove.
10933 * config/sh/symbian-base.c: Remove.
10934 * config/sh/symbian-c.c: Remove.
10935 * config/sh/symbian-cxx.c: Remove.
10936 * config/sh/symbian-post.h: Remove.
10937 * config/sh/symbian-pre.h: Remove.
10938 * config/sh/t-symbian: Remove.
10939 * config/svr3.h: Remove.
10940 * config/vax/netbsd.h: Remove.
10941 * config.build: Don't handle i[34567]86-*-pe.
10942 * config.gcc: Remove handling of deprecations for most deprecated
10943 targets.
10944 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10945 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10946 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10947 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10948 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10949 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10950 Remove cases.
10951 * config.host: Don't handle i[34567]86-*-pe.
10952 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10953 (ASM_SPEC32): Don't handle -mcall-gnu.
10954 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10955 -mcall-gnu.
10956 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10957 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10958 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10959 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10960 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10961 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10962 conditional on SYMBIAN.
10963 * configure.ac: Don't handle powerpc*-*-gnu*.
10964 * configure: Regenerate.
10965 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10966 * doc/install-old.texi (m6811, m6812): Don't mention.
10967 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10968 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10969 (m68k-uclinuxoldabi): Don't mention.
10970 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10971 Remove.
10972 (-mcall-gnu): Remove.
10973 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10974 families): Remove constraint documentation.
10975
10976 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10977
10978 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10979 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10980 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10981
10982 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10983
10984 PR target/48226
10985 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10986 vector when peeking at the next token for vector, don't expand the
10987 keywords.
10988
10989 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10990
10991 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10992 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10993 * config/avr/avr.c (init_cumulative_args)
10994 (avr_function_arg_advance): Use it.
10995 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10996 sibcall epilogues.
10997 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10998 (avr_function_ok_for_sibcall): ...this new function.
10999 (avr_lookup_function_attribute1): New static Function.
11000 (avr_naked_function_p, interrupt_function_p)
11001 (signal_function_p, avr_OS_task_function_p)
11002 (avr_OS_main_function_p): Use it.
11003 * config/avr/avr.md ("sibcall", "sibcall_value")
11004 ("sibcall_epilogue"): New expander.
11005 ("*call_insn", "*call_value_insn"): New insn.
11006 ("call_insn", "call_value_insn"): Remove
11007 ("call", "call_value", "epilogue"): Change expander to handle
11008 sibling calls.
11009
11010 2011-03-21 Nick Clifton <nickc@redhat.com>
11011
11012 * doc/invoke.texi (Overall Options): Move closing brace to end of
11013 options list.
11014 (Optimization Options): Add missing @gol.
11015 (Directory Options): Likewise.
11016 (i386 and x86-64 Options): Likewise.
11017 (RS6000 and PowerPC Options): Likewise.
11018 (i386 and x86-64 Windows Options): Likewise.
11019 (V850 Options): Add text missing from descriptions.
11020
11021 2011-03-22 Richard Henderson <rth@redhat.com>
11022
11023 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11024 (avr_incoming_return_addr_rtx): New.
11025 (emit_push_byte): New.
11026 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11027 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11028 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11029 (emit_pop_byte): New.
11030 (expand_epilogue): Use it. Pop frame pointer by bytes.
11031 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11032 (INCOMING_RETURN_ADDR_RTX): New.
11033 (INCOMING_FRAME_SP_OFFSET): New.
11034 (ARG_POINTER_CFA_OFFSET): New.
11035 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11036 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11037 (pophi): Remove.
11038
11039 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11040
11041 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11042
11043 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11044 (FUNCTION_ARG_ADVANCE): Likewise.
11045 * tm.texi.in: Change references to them to hook references.
11046 * tm.texi: Regenerate.
11047 * targhooks.c (default_function_arg): Eliminate check for target
11048 macro.
11049 (default_function_incoming_arg): Likewise.
11050 (default_function_arg_advance): Likewise.
11051 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11052 (function_arg_advance): Likewise.
11053 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11054
11055 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11056
11057 * tree.c (build_call_1): New function.
11058 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11059
11060 2011-03-22 Richard Guenther <rguenther@suse.de>
11061
11062 PR tree-optimization/48228
11063 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11064 for single-arg PHIs.
11065
11066 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11067
11068 PR rtl-optimization/48143
11069 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11070 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11071 sse2_cvtps2pd): Likewise.
11072
11073 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11074
11075 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11076
11077 2011-03-22 Richard Guenther <rguenther@suse.de>
11078
11079 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11080 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11081 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11082 and REALIGN_LOAD_EXPR.
11083 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11084 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11085 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11086 DOT_PROD_EXPR case ...
11087 (expand_expr_real_2): ... here.
11088 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11089 and REALIGN_LOAD_EXPR.
11090 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11091 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11092 (vect_create_epilog_for_reduction): Likewise.
11093 (vectorizable_reduction): Likewise.
11094 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11095 * tree-vect-stmts.c (vectorizable_load): Likewise.
11096
11097 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11098
11099 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11100
11101 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11102
11103 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11104 handling for PLTOFF/GOTOFF.
11105
11106 2011-03-22 Nick Clifton <nickc@redhat.com>
11107
11108 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11109 trailing backslash from the end of the macro definition.
11110
11111 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11112
11113 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11114 and PLT unspecs.
11115
11116 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11117
11118 * expr.h (prepare_operand): Move to...
11119 * optabs.h (prepare_operand): ...here and change the insn code
11120 parameter from "int" to "enum insn_code".
11121 (insn_operand_matches): Declare.
11122 * expr.c (init_expr_target): Use insn_operand_matches.
11123 (compress_float_constant): Likewise.
11124 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11125 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11126 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11127 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11128 Likewise.
11129 (gen_cond_trap): Likewise.
11130 (prepare_operand): Likewise. Change icode to an insn_code.
11131 (insn_operand_matches): New function.
11132 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11133 * reload1.c (gen_reload): Likewise.
11134 * targhooks.c (default_secondary_reload): Likewise.
11135
11136 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11137
11138 * config/alpha/alpha.md (unspec): New define_c_enum.
11139 (unspecv): Ditto.
11140
11141 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11142
11143 PR debug/48214
11144 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11145 between a call and its CALL_ARG_LOCATION note.
11146
11147 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11148
11149 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11150
11151 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11152
11153 PR c/42544
11154 PR c/48197
11155 * c-common.c (shorten_compare): If primopN is first sign-extended
11156 to opN and then zero-extended to result type, set primopN to opN.
11157
11158 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11159
11160 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11161 for barrier handlers.
11162
11163 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11164
11165 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11166 UNSPEC constants to be in the unspec enumeration, and redefine
11167 all UNSPECV constants to be in the unspecv enumeration, so that
11168 dumps print which unspec/unspec_volatile this is.
11169 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11170 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11171 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11172 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11173 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11174
11175 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11176 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11177 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11178 * config/rs6000/sync.md (isync, lwsync): Ditto.
11179
11180 2011-03-21 Richard Guenther <rguenther@suse.de>
11181
11182 * params.def (lto-min-partition): Fix typo.
11183
11184 2011-03-21 Richard Guenther <rguenther@suse.de>
11185
11186 PR c/47939
11187 * c-decl.c (grokdeclarator): Drop to the main variant only
11188 for array types. Drop flag_gen_aux_info check.
11189
11190 2011-03-21 Richard Guenther <rguenther@suse.de>
11191
11192 PR translation/47911
11193 * params.def (lto-partitions): Fix typo.
11194 (lto-min-partition): Fix wording.
11195
11196 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11197
11198 * config/rs6000/t-freebsd: Remove duplication from file.
11199
11200 2011-03-21 Richard Guenther <rguenther@suse.de>
11201
11202 PR middle-end/47661
11203 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11204
11205 2011-03-21 Richard Guenther <rguenther@suse.de>
11206
11207 PR lto/48210
11208 * params.def (lto-partitions): Require at least 1 partition.
11209
11210 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11211
11212 * gthr-solaris.h: Remove.
11213 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11214 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11215 (LIB_SPEC): Likewise.
11216 * config/sol2.opt (threads): Remove.
11217 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11218 (sparc*-*-solaris2*): Likewise.
11219 * configure.ac (enable_threads): Enable solaris support.
11220 * configure: Regenerate.
11221 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11222 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11223 solaris.
11224
11225 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11226
11227 * config.gcc: Obsolete *-*-solaris2.8*.
11228 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11229
11230 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11231
11232 PR bootstrap/48135
11233 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11234 reference. Solaris 8 perl works.
11235
11236 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11237
11238 PR bootstrap/48135
11239 * doc/install.texi (Prerequisites): Move jar etc. up.
11240 Explain support library version requirements.
11241
11242 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11243
11244 PR bootstrap/48135
11245 * doc/install.texi (Prerequisites): Move Perl to build
11246 requirements. Always necessary on Solaris 2 with Sun ld.
11247
11248 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11249
11250 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11251 binutils 2.21.
11252 (Specific, i?86-*-solaris2.[89]): Likewise.
11253 (Specific, i?86-*-solaris2.10): Likewise.
11254 (Specific, mips-sgi-irix6): Likewise.
11255 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11256 Update for binutils 2.21.
11257
11258 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11259
11260 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11261 Allow -fuse-linker-plugin for non-default plugin linker.
11262 * configure: Regenerate.
11263
11264 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11265
11266 PR bootstrap/48167
11267 * gengtype.c (files_rules): Added rule for cp/parser.h.
11268
11269 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11270
11271 PR target/48213
11272 * config/s390/s390.c (s390_delegitimize_address): Don't call
11273 lowpart_subreg if orig_x has BLKmode.
11274
11275 2011-03-21 Kai Tietz <ktietz@redhat.com>
11276
11277 PR target/12171
11278 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11279 * tree.h (attribute_spec): Add new member affects_type_identity.
11280 * attribs.c (empty_attribute_table): Adjust attribute_spec
11281 initializers.
11282 * config/alpha/alpha.c: Likewise.
11283 * config/arc/arc.c: Likewise.
11284 * config/arm/arm.c: Likewise.
11285 * config/avr/avr.c: Likewise.
11286 * config/bfin/bfin.c: Likewise.
11287 * config/crx/crx.c: Likewise.
11288 * config/darwin.h: Likewise.
11289 * config/h8300/h8300.c: Likewise.
11290 * config/i386/cygming.h: Likewise.
11291 * config/i386/i386.c: Likewise.
11292 * config/ia64/ia64.c: Likewise.
11293 * config/m32c/m32c.c: Likewise.
11294 * config/m32r/m32r.c: Likewise.
11295 * config/m68hc11/m68hc11.c: Likewise.
11296 * config/m68k/m68k.c: Likewise.
11297 * config/mcore/mcore.c: Likewise.
11298 * config/mep/mep.c: Likewise.
11299 * config/microblaze/microblaze.c: Likewise.
11300 * config/mips/mips.c: Likewise.
11301 * config/rs6000/rs6000.c: Likewise.
11302 * config/rx/rx.c: Likewise.
11303 * config/sh/sh.c: Likewise.
11304 * config/sol2.h: Likewise.
11305 * config/sparc/sparc.c: Likewise.
11306 * config/spu/spu.c: Likewise.
11307 * config/stormy16/stormy16.c: Likewise.
11308 * config/v850/v850.c: Likewise.
11309
11310 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11311
11312 * simplify-rtx.c (simplify_binary_operation_1): Handle
11313 (xor (and A B) C) case when B and C are both constants.
11314
11315 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11316
11317 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11318
11319 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11320
11321 PR bootstrap/48168
11322 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11323
11324 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11325
11326 PR rtl-optimization/48156
11327 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11328 assume df and df_lr are not NULL.
11329
11330 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11331
11332 PR debug/48023
11333 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11334 between a call and its CALL_ARG_LOCATION note.
11335
11336 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11337
11338 PR debug/48178
11339 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11340 between a call and its corresponding CALL_ARG_LOCATION note.
11341
11342 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11343
11344 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11345 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11346 * haifa-sched.c (setup_ref_regs): Ditto.
11347 * caller-save.c (add_used_regs_1): Ditto.
11348 * dse.c (look_for_hardregs): Ditto.
11349 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11350 * sched-rgn.c (check_live_1): Ditto.
11351
11352 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11353
11354 * c-decl.c (diagnose_mismatched_decls): Give an error for
11355 redefining a typedef with variably modified type.
11356
11357 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11358
11359 * c-decl.c (grokfield): Don't allow typedefs for structures or
11360 unions with no tag by default.
11361 * doc/extend.texi (Unnamed Fields): Update.
11362
11363 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11364
11365 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11366 Rewrite using indirect functions.
11367 (lwp_slwpcb): Ditto.
11368 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11369 (avx_vinsertf128<mode>): Ditto.
11370
11371 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11372
11373 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11374 unspecs.
11375
11376 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11377
11378 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11379 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11380
11381 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11382
11383 PR rtl-optimization/48170
11384 * gcse.c (hoist_code): Remove bogus asserts.
11385
11386 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11387
11388 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11389 computation for prologue/epilogue.
11390
11391 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11392
11393 * Makefile.in (check-consistency): Remove.
11394
11395 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11396
11397 PR debug/48176
11398 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11399 arange_table_in_use is 0, but either text_section_used or
11400 cold_text_section_used is true. Don't call it if
11401 !info_section_emitted.
11402
11403 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11404
11405 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11406 FUNCTION_VALUE_REGNO_P): Remove.
11407 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11408 Remove.
11409 * config/avr/avr.c (avr_ret_register): Make static inline.
11410 (avr_function_value_regno_p): New function.
11411 (avr_libcall_value): Make static. Add 'func' argument.
11412 (avr_function_value): Make static. Rename 'func' argument to
11413 'fn_decl_or_type', forward it to avr_libcall_value. Call
11414 avr_ret_register function instead of RET_REGISTER macro.
11415 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11416
11417 2011-03-18 Jason Merrill <jason@redhat.com>
11418
11419 PR c++/23372
11420 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11421
11422 2011-03-18 Richard Guenther <rguenther@suse.de>
11423
11424 * doc/install.texi (--enable-gold): Remove.
11425 (--with-plugin-ld): Document.
11426 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11427
11428 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11429
11430 PR middle-end/47790
11431 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11432 again after expansion changes.
11433
11434 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11435
11436 * combine.c (try_combine): Do simplification only call of
11437 subst() on i2 even when i1 is present. Update comments.
11438
11439 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11440
11441 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11442 and UNSPEC_PCREL_SYMOFF.
11443
11444 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11445
11446 * config/s390/s390.md: Use define_c_enum for the unspec constant
11447 definitions.
11448
11449 2011-03-18 Richard Henderson <rth@redhat.com>
11450 Jakub Jelinek <jakub@redhat.com>
11451
11452 PR bootstrap/48161
11453 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11454 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11455
11456 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11457
11458 PR middle-end/47725
11459 * combine.c (cant_combine_insn_p): Don't check zero/sign
11460 extended hard registers.
11461
11462 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11463
11464 PR middle-end/47725
11465 * combine.c (cant_combine_insn_p): Check zero/sign extended
11466 hard registers.
11467
11468 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11469
11470 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11471 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11472 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11473 Change return type to bool.
11474 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11475
11476 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11477
11478 PR debug/48163
11479 * var-tracking.c (prepare_call_arguments): If CALL target
11480 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11481 pc instead of looking it up using cselib_lookup and use
11482 Pmode for it if x has VOIDmode.
11483 * dwarf2out.c (gen_subprogram_die): If also both first and
11484 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11485
11486 PR debug/48163
11487 * function.c (assign_parms): For data.passed_pointer parms
11488 use MEM of data.entry_parm instead of data.entry_parm itself
11489 as DECL_INCOMING_RTL.
11490 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11491 also when passed and declared mode is the same, DECL_RTL
11492 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11493 a MEM too.
11494
11495 2011-03-16 Jeff Law <law@redhat.com>
11496
11497 PR rtl-optimization/37273
11498 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11499 handle them like argument loads from stack slots. Do not double
11500 count memory for memory constants and argument loads from stack slots.
11501
11502 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11503
11504 PR debug/48160
11505 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11506
11507 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11508
11509 PR target/48171
11510 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11511
11512 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11513
11514 PR bootstrap/48153
11515 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11516 if dwarf_strict.
11517 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11518 Clear call_arg_locations and call_arg_loc_last always.
11519
11520 PR middle-end/48152
11521 * var-tracking.c (prepare_call_arguments): If argument needs to be
11522 passed by reference, adjust argtype and mode.
11523
11524 2011-03-17 Richard Guenther <rguenther@suse.de>
11525
11526 PR middle-end/48134
11527 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11528 a value make sure to fold the statement.
11529
11530 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11531
11532 PR target/43872
11533 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11534 return condition with !cfun->calls_alloca.
11535
11536 2011-03-17 Richard Guenther <rguenther@suse.de>
11537
11538 PR bootstrap/48148
11539 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11540 origin for decls in other ltrans units.
11541 (input_varpool_node): Likewise.
11542
11543 2011-03-17 Richard Guenther <rguenther@suse.de>
11544
11545 PR middle-end/48165
11546 * tree-object-size.c (compute_object_offset): Properly return
11547 the offset operand of MEM_REFs as sizetype.
11548
11549 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11550
11551 PR rtl-optimization/48141
11552 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11553 * dse.c: Include params.h.
11554 (active_local_stores_len): New variable.
11555 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11556 to NULL.
11557 (record_store, check_mem_read_rtx): Decrease it when removing
11558 from the chain.
11559 (scan_insn): Likewise. Increase it when adding to chain, if it
11560 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11561 set active_local_stores to NULL before the addition.
11562 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11563
11564 PR rtl-optimization/48141
11565 * dse.c (record_store): If no positions are needed in an insn
11566 that cannot be deleted, at least unchain it from active_local_stores.
11567
11568 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11569
11570 PR debug/47510
11571 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11572 (lookup_type_die_strip_naming_typedef): ... here.
11573 (get_context_die): Use it.
11574 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11575 the anonymous struct named by the naming typedef.
11576
11577 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11578
11579 PR target/48154
11580 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11581 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11582
11583 2011-03-16 Jeff Law <law@redhat.com>
11584
11585 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11586 check for operands of conditional. Allow type to be a pointer.
11587
11588 2011-03-16 Richard Guenther <rguenther@suse.de>
11589
11590 PR tree-optimization/48149
11591 * fold-const.c (fold_binary_loc): Fold
11592 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11593
11594 2011-03-16 Richard Guenther <rguenther@suse.de>
11595
11596 PR tree-optimization/26134
11597 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11598 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11599 (non_rewritable_mem_ref_base): Handle complex type component
11600 accesses, constrain offsets for vector and complex extracts
11601 more properly.
11602
11603 2011-03-16 Richard Guenther <rguenther@suse.de>
11604
11605 PR tree-optimization/48146
11606 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11607 operands avoiding the need for renaming.
11608
11609 2011-03-16 Richard Guenther <rguenther@suse.de>
11610
11611 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11612 constant folding. Move MEM_REF canonicalization first.
11613 Rely on fold_const_aggregate_ref for initializer folding.
11614 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11615
11616 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11617
11618 PR middle-end/48136
11619 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11620 arg0/arg1 or their arguments are always fold converted to matching
11621 types.
11622
11623 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11624 to nargs.
11625
11626 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11627
11628 PR lto/46944
11629 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11630 Handle in-tree gold.
11631 (ld_vers): Extract binutils version for gold.
11632 (gcc_cv_ld_hidden): Handle gold here.
11633 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11634 * configure: Regenerate.
11635 * config.in: Regenerate.
11636 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11637 -fuse-linker-plugin otherwise.
11638 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11639 (LINK_COMMAND_SPEC): Use it.
11640 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11641
11642 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11643
11644 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11645 * calls.c: Remove debug.h include.
11646 (emit_call_1): Don't call virtual_call_token debug hook.
11647 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11648 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11649 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11650 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11651 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11652 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11653 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11654 dwarf2out_virtual_call): Remove.
11655 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11656 copy_call_info and virtual_call hooks.
11657 (dwarf2out_init): Don't initialize vcall_insn_table,
11658 debug_dcall_section and debug_vcall_section.
11659 (prune_unused_types): Don't mark nodes from dcall_table.
11660 (dwarf2out_finish): Don't output dcall or vcall tables.
11661 * final.c (final_scan_insn): Don't call direct_call or
11662 virtual_call debug hooks.
11663 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11664 virtual_call_token, copy_call_info and virtual_call hooks.
11665 (debug_nothing_uid): Remove prototype.
11666 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11667 copy_call_info and virtual_call hooks.
11668 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11669 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11670 * debug.c (do_nothing_debug_hooks): Likewise.
11671 (debug_nothing_uid): Remove.
11672 * doc/invoke.texi (-fenable-icf-debug): Remove.
11673 * common.opt (-fenable-icf-debug): Likewise.
11674
11675 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11676 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11677 call's MEM. Handle functions returning aggregate through a hidden
11678 first pointer. For virtual calls add clobbered pc to call arguments
11679 chain.
11680 * dwarf2out.c (gen_subprogram_die): Emit
11681 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11682 can't be emitted.
11683
11684 PR debug/45882
11685 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11686 * rtl.h (ENTRY_VALUE_EXP): Define.
11687 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11688 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11689 * print-rtl.c (print_rtx): Likewise.
11690 * gengtype.c (adjust_field_rtx_def): Likewise.
11691 * var-tracking.c (vt_add_function_parameter): Adjust
11692 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11693 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11694 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11695 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11696 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11697
11698 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11699 Call var_location debug hook even on CALL_INSNs.
11700 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11701 * rtl.def (ENTRY_VALUE): New.
11702 * dwarf2out.c: Include cfglayout.h.
11703 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11704 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11705 (struct call_arg_loc_node): New type.
11706 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11707 tail_call_site_count): New variables.
11708 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11709 DW_TAG_GNU_call_site_parameter.
11710 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11711 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11712 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11713 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11714 and DW_AT_GNU_all_source_call_sites.
11715 (mem_loc_descriptor): Handle ENTRY_VALUE.
11716 (add_src_coords_attributes): Don't add enything if
11717 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11718 (dwarf2out_abstract_function): Save and clear call_arg_location,
11719 call_site_count and tail_call_site_count around dwarf2out_decl call.
11720 (gen_call_site_die): New function.
11721 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11722 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11723 (dwarf2out_function_decl): Clear call_arg_locations,
11724 call_arg_loc_last, set call_site_count and tail_call_site_count
11725 to -1 and free block_map.
11726 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11727 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11728 followed by any real instructions.
11729 (dwarf2out_begin_function): Set call_site_count and
11730 tail_call_site_count to 0.
11731 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11732 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11733 attempt to force a DIE for it and worst case remove the attribute.
11734 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11735 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11736 the decl itself.
11737 * var-tracking.c: Include tm_p.h.
11738 (vt_stack_adjustments): For calls call note_register_arguments.
11739 (argument_reg_set): New variable.
11740 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11741 ensure the VALUE is resolved.
11742 (call_arguments): New variable.
11743 (prepare_call_arguments): New function.
11744 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11745 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11746 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11747 always use the best expression.
11748 (vt_expand_loc): Add ignore_cur_loc argument.
11749 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11750 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11751 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11752 note for all calls.
11753 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11754 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11755 argument. Don't call cselib_preserve_only_values and
11756 cselib_reset_table.
11757 (note_register_arguments): New function.
11758 (vt_initialize): Compute argument_reg_set. Call
11759 vt_add_function_parameters before processing basic blocks instead of
11760 afterwards. For calls call prepare_call_arguments before calling
11761 cselib_process_insn.
11762 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11763 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11764 (var-tracking.o): Depend on $(TM_P_H).
11765 * cfglayout.h (insn_scope): New prototype.
11766 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11767 * cfglayout.c (insn_scope): No longer static.
11768 * insn-notes.def (CALL_ARG_LOCATION): New.
11769 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11770 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11771 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11772 nothing for DECL_EXTERNAL BLOCK_VARS.
11773
11774 2011-03-16 Alan Modra <amodra@gmail.com>
11775
11776 PR target/45844
11777 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11778 create invalid offset address for vsx splat insn.
11779 * config/rs6000/predicates.md (splat_input_operand): New.
11780 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11781
11782 2011-03-15 Xinliang David Li <davidxl@google.com>
11783
11784 PR c/47837
11785 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11786 (normalize_preds): New function.
11787 (is_use_properly_guarded): Normalize def predicates.
11788
11789 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11790
11791 PR target/46788
11792 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11793 in the output template.
11794
11795 2011-03-15 Richard Guenther <rguenther@suse.de>
11796
11797 PR middle-end/47650
11798 * tree-pretty-print.c (dump_function_declaration): Properly
11799 dump unprototyped and varargs function types.
11800
11801 2011-03-15 Richard Guenther <rguenther@suse.de>
11802
11803 PR tree-optimization/13954
11804 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11805 and friends.
11806
11807 2011-03-15 Richard Guenther <rguenther@suse.de>
11808
11809 PR tree-optimization/48037
11810 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11811 selects into BIT_FIELD_REFs.
11812 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11813 vector select.
11814
11815 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11816
11817 PR tree-optimization/48129
11818 * builtins.c (fold_builtin_snprintf): Convert to type of
11819 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11820 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11821
11822 2011-03-15 Richard Guenther <rguenther@suse.de>
11823
11824 PR tree-optimization/41490
11825 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11826 value but with VUSE.
11827 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11828 return statements.
11829 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11830 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11831 * tree-tailcall.c (find_tail_calls): Ignore returns.
11832
11833 2011-03-15 Richard Guenther <rguenther@suse.de>
11834
11835 PR middle-end/48031
11836 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11837 or variable-indexed array accesses when in gimple form.
11838
11839 2011-03-15 Richard Guenther <rguenther@suse.de>
11840
11841 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11842
11843 2011-03-15 Alan Modra <amodra@gmail.com>
11844
11845 PR target/48032
11846 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11847 presume symbol_refs without a symbol_ref_decl are suitably
11848 aligned, nor other trees we may see here. Handle anchor symbols.
11849 (legitimate_constant_pool_address_p): Comment. Add mode param.
11850 Check cmodel=medium addresses. Adjust all calls.
11851 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11852 creating cmodel=medium optimized access to locals.
11853 * config/rs6000/constraints.md (R): Pass QImode to
11854 legitimate_constant_pool_address_p.
11855 * config/rs6000/predicates.md (input_operand): Pass mode to
11856 legitimate_constant_pool_address_p.
11857 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11858 Update prototype.
11859
11860 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11861
11862 PR target/48053
11863 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11864 64-bit constants being loaded into registers other than GPRs such
11865 as loading 0 into a VSX register.
11866
11867 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11868
11869 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11870
11871 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11872
11873 PR middle-end/47917
11874 * builtins.c (fold_builtin_snprintf): New function.
11875 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11876 (fold_builtin_4): Likewise.
11877
11878 PR middle-end/38878
11879 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11880 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11881 and C - X == X also strip nops from +/-/p+ operand.
11882 When optimizing -X == C, fold C to arg0's type.
11883
11884 PR debug/47946
11885 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11886 emit it as add_AT_int instead of add_AT_unsigned.
11887
11888 2011-03-14 Tom Tromey <tromey@redhat.com>
11889
11890 * unwind-dw2.c: Include sys/sdt.h if it exists.
11891 (_Unwind_DebugHook): Use STAP_PROBE2.
11892 * config.in, configure: Rebuild.
11893 * configure.ac: Check for sys/sdt.h.
11894
11895 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11896
11897 * config/i386/i386.md (ROUND_FLOOR): New constant.
11898 (ROUND_CEIL): Ditto.
11899 (ROUND_TRUNC): Ditto.
11900 (ROUND_MXCSR): Ditto.
11901 (ROUND_NO_EXC): Ditto.
11902 (rint<mode>2): Use new defines instead of numerical constants.
11903 (floor<mode>2): Ditto.
11904 (ceil<mode>2): Ditto.
11905 (btrunc<mode>2): Ditto.
11906 * config/i386/i386-builtin-types.def: Define ROUND function type
11907 aliases.
11908 * config/i386/i386.c (enum ix86_builtins): Add
11909 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11910 (struct builtin_description): Add
11911 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11912 (ix86_expand_sse_round): New static function.
11913 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11914 function types.
11915 (ix86_builtin_vectorized_function): Handle
11916 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11917
11918 2011-03-14 Tom Tromey <tromey@redhat.com>
11919
11920 * c-parser.c (c_parser_asm_string_literal): Clear
11921 warn_overlength_strings.
11922
11923 2011-03-14 Tom Tromey <tromey@redhat.com>
11924
11925 * c-parser.c (disable_extension_diagnostics): Save
11926 warn_overlength_strings.
11927 (restore_extension_diagnostics): Restore warn_overlength_strings.
11928
11929 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11930
11931 * BASE-VER: Change to 4.7.0.
11932
11933 2011-03-14 Richard Guenther <rguenther@suse.de>
11934
11935 PR middle-end/48098
11936 * tree.c (build_vector_from_val): Adjust assert to requirements
11937 and reality.
11938
11939 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11940
11941 PR bootstrap/48102
11942 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11943
11944 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11945
11946 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11947 terms of target_flags_explicit. Adjust copyright year.
11948
11949 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11950 * config/rs6000/t-freebsd: New file. Add override for
11951 LIB2FUNCS_EXTRA.
11952
11953 2011-03-13 Chris Demetriou <cgd@google.com>
11954
11955 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11956 (-fno-diagnostics-show-option): this, to reflect current default.
11957 (-Werror=): Update text about -fno-diagnostics-show-option.
11958
11959 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11960
11961 PR target/48053
11962 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11963 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11964 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11965 mode is not V2DImode or V2DFmode.
11966 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11967 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11968 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11969 registers to 0.
11970 (movdi_internal64): Likewise.
11971
11972 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11973
11974 PR tree-optimization/47127
11975 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11976 parameter.
11977 (set_cloog_options): Same.
11978 (scop_to_clast): Same.
11979 (print_clast_stmt): Do not call cloog_state_malloc and
11980 cloog_state_free.
11981 (print_generated_program): Same.
11982 (gloog): Same.
11983 * graphite-clast-to-gimple.h (cloog_state): Declared.
11984 (scop_to_clast): Adjust declaration.
11985 * graphite.c (cloog_state): Defined here.
11986 (graphite_initialize): Call cloog_state_malloc.
11987 (graphite_finalize): Call cloog_state_free.
11988
11989 2011-03-11 Jason Merrill <jason@redhat.com>
11990
11991 * attribs.c (lookup_attribute_spec): Take const_tree.
11992 * tree.h: Adjust.
11993
11994 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11995
11996 * config/sparc/sparc.c (sparc_option_override): Use
11997 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11998
11999 2011-03-11 Richard Guenther <rguenther@suse.de>
12000
12001 PR tree-optimization/48067
12002 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12003 multiplication result will be only used once on the target
12004 stmt.
12005
12006 2011-03-11 Richard Guenther <rguenther@suse.de>
12007
12008 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12009
12010 2011-03-11 Richard Guenther <rguenther@suse.de>
12011
12012 PR lto/48073
12013 * tree.c (find_decls_types_r): Do not walk types only reachable
12014 from IDENTIFIER_NODEs.
12015
12016 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12017
12018 PR middle-end/48044
12019 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12020 all vnode->force_output nodes as needed.
12021
12022 2011-03-11 Jason Merrill <jason@redhat.com>
12023
12024 PR c++/48069
12025 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12026 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12027
12028 2011-03-11 Martin Jambor <mjambor@suse.cz>
12029
12030 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12031 cgraph_node.
12032
12033 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12034
12035 PR tree-optimization/48063
12036 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12037 inline functions called once if !tree_can_inline_p (node->callers).
12038
12039 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12040
12041 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12042 extra_objs.
12043 * config/score/score3.c: Delete.
12044 * config/score/score3.h: Delete.
12045 * config/score/mul-div.S: Delete.
12046 * config/score/sfp-machine.h: Add new file.
12047 * config/score/constraints.md: Add new file.
12048 * config/score/t-score-softfp: Add new file.
12049 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12050 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12051 (score7_extra_constraint): Delete.
12052 (score7_option_override): Remove unused code.
12053 * config/score/score.c: Remove score3 and score5 define and code.
12054 * config/score/score.h: Remove score3 and score5 define and code.
12055 * config/score/score.md: Remove score3 template and unusual insn.
12056 * config/score/score.opt: Remove score3 and score5 options.
12057
12058 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12059
12060 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12061 when _HPUX_SOURCE is defined.
12062 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12063
12064 2011-03-10 Jason Merrill <jason@redhat.com>
12065
12066 PR c++/48029
12067 * stor-layout.c (layout_type): Don't set structural equality
12068 on arrays of incomplete type.
12069 * tree.c (type_hash_eq): Handle comparing them properly.
12070
12071 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12072
12073 PR debug/48043
12074 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12075 result mode matches original rtl mode.
12076
12077 2011-03-10 Nick Clifton <nickc@redhat.com>
12078
12079 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12080 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12081
12082 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12083
12084 PR rtl-optimization/47866
12085 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12086 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12087 if target wasn't scalar.
12088 * function.c (assign_stack_temp_for_type): Assert that neither
12089 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12090 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12091 macro.
12092 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12093
12094 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12095
12096 * config/s390/s390-protos.h (s390_label_align): New prototype.
12097 * config/s390/s390.c (s390_label_align): New function.
12098 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12099
12100 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12101
12102 PR target/47755
12103 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12104 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12105 (output_vec_const_move): Ditto.
12106
12107 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12108
12109 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12110 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12111 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12112 Change 'rclass' argument and result type to reg_class_t.
12113 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12114
12115 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12116
12117 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12118 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12119 (TARGET_MEMORY_MOVE_COST): Define.
12120 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12121
12122 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12123
12124 PR debug/47881
12125 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12126 removed anything.
12127
12128 PR tree-optimization/48022
12129 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12130 for EQ/NE_EXPR.
12131
12132 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12133
12134 PR debug/47991
12135 * var-tracking.c (find_use_val): Return NULL for
12136 cui->sets && cui->store_p BLKmode MEMs.
12137
12138 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12139
12140 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12141 Remove.
12142 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12143 xstormy16_print_operand_address): Remove.
12144 * config/stormy16/stormy16.c (xstormy16_print_operand,
12145 xstormy16_print_operand_address): Make static.
12146 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12147
12148 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12149
12150 PR target/47862
12151 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12152 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12153 before definition.
12154
12155 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12156
12157 PR bootstrap/48000
12158 * cfgloopmanip.c (fix_bb_placements): Return immediately
12159 if FROM is BASE_LOOP's header.
12160
12161 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12162
12163 * gimplify.c (gimplify_function_tree): Fix building calls
12164 to __builtin_return_address.
12165
12166 2011-03-07 Alan Modra <amodra@gmail.com>
12167
12168 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12169 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12170 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12171 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12172 return_mode args.
12173 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12174 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12175 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12176 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12177 * config/rs6000/rs6000.c
12178 (rs6000_elf_end_indicate_exec_stack): Rename to..
12179 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12180 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12181 (rs6000_file_start): ..here.
12182 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12183 file scope variables.
12184 (call_ABI_of_interest): New function.
12185 (init_cumulative_args): Set above vars when function return value
12186 is a float, vector, or small struct.
12187 (rs6000_function_arg_advance_1): Likewise for function args.
12188 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12189 references float args.
12190
12191 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12192
12193 * doc/cfg.texi: Remove "See" before @ref.
12194 * doc/invoke.texi: Likewise.
12195
12196 2011-03-05 Jason Merrill <jason@redhat.com>
12197
12198 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12199
12200 2011-03-05 Anthony Green <green@moxielogic.com>
12201
12202 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12203
12204 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12205
12206 PR rtl-optimization/47899
12207 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12208 to flow_loop_nested_p when moving the loop upward.
12209
12210 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12211
12212 PR target/47719
12213 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12214
12215 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12216
12217 PR tree-optimization/47967
12218 * ipa-cp.c (build_const_val): Return NULL instead of creating
12219 VIEW_CONVERT_EXPR for mismatching sizes.
12220 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12221 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12222 give up on versioning.
12223
12224 2011-03-05 Alan Modra <amodra@gmail.com>
12225
12226 PR target/47986
12227 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12228 full cmodel medium/large lo_sum + high addresses.
12229
12230 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12231
12232 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12233 pool references in UNSPEC_LTREL_OFFSET.
12234
12235 2011-03-04 Jan Hubicka <jh@suse.cz>
12236
12237 PR lto/47497
12238 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12239 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12240 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12241 Add node pointers.
12242 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12243 cgraph_add_thunk): Add node pointers.
12244 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12245 associated to right node.
12246 (input_node): Update use of cgraph_same_body_alias
12247 and cgraph_add_thunk.
12248
12249 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12250
12251 * config/i386/i386.opt (mprefer-avx128): New flag.
12252 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12253 modes when the flag -mprefer-avx128 is on.
12254
12255 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12256
12257 * dwarf2out.c (compare_loc_operands): Fix address handling.
12258
12259 2011-03-04 Alan Modra <amodra@gmail.com>
12260
12261 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12262
12263 2011-03-04 Richard Guenther <rguenther@suse.de>
12264
12265 PR middle-end/47968
12266 * expmed.c (extract_bit_field_1): Prefer vector modes that
12267 vec_extract patterns can handle.
12268
12269 2011-03-04 Richard Guenther <rguenther@suse.de>
12270
12271 PR middle-end/47975
12272 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12273
12274 2011-03-04 Richard Henderson <rth@redhat.com>
12275
12276 * explow.c (emit_stack_save): Remove 'after' parameter.
12277 (emit_stack_restore): Likewise.
12278 * expr.h: Update to match.
12279 * builtins.c, calls.c, stmt.c: Likewise.
12280 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12281 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12282 * function.c (expand_function_end): Insert the emit_stack_save
12283 sequence before parm_birth_insn instead of after.
12284
12285 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12286
12287 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12288 (ssse3_pmaddubsw128): Ditto.
12289 (ssse3_pmaddubsw): Ditto.
12290
12291 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12292
12293 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12294
12295 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12296
12297 PR c/47963
12298 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12299 on TYPE_SIZE_UNIT if it is a DECL.
12300
12301 PR debug/47283
12302 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12303 first operand is not is_gimple_mem_ref_addr, try to fold it.
12304 If the operand still isn't is_gimple_mem_ref_addr, clear
12305 MEM_EXPR on op0.
12306
12307 2011-03-03 Richard Guenther <rguenther@suse.de>
12308
12309 PR middle-end/47283
12310 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12311 match comment.
12312 (refs_may_alias_p_1): For release branches return true if
12313 we are confused by our input.
12314
12315 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12316
12317 * config/s390/s390.c (s390_function_value): Rename to ...
12318 (s390_function_and_libcall_value): ... this.
12319 (s390_function_value): New function.
12320 (s390_libcall_value): New function.
12321 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12322 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12323 target macro definitions.
12324 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12325
12326 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12327
12328 * config/i386/freebsd64.h (CC1_SPEC): Define.
12329 * config/i386/linux64.h (CC1_SPEC): Define.
12330 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12331
12332 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12333
12334 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12335 Remove.
12336 * config/stormy16/stormy16.c: Include reload.h.
12337 (xstormy16_memory_move_cost): New function.
12338 (TARGET_MEMORY_MOVE_COST): Define.
12339
12340 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12341
12342 PR rtl-optimization/47925
12343 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12344 with side effects. Remove the more-specific check for volatile asms.
12345
12346 2011-03-02 Alan Modra <amodra@gmail.com>
12347
12348 PR target/47935
12349 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12350 toc relative addresses for valid offsets.
12351
12352 2011-03-01 Richard Guenther <rguenther@suse.de>
12353
12354 PR tree-optimization/47890
12355 * tree-vect-loop.c (get_initial_def_for_induction): Set
12356 related stmt properly.
12357
12358 2011-03-01 Richard Guenther <rguenther@suse.de>
12359
12360 PR lto/47924
12361 * lto-streamer.c (lto_record_common_node): Also register
12362 the canonical type.
12363
12364 2011-03-01 Richard Guenther <rguenther@suse.de>
12365
12366 PR lto/46911
12367 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12368 Do not stream DECL_ABSTRACT_ORIGIN.
12369 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12370 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12371 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12372 Do not stream DECL_ABSTRACT_ORIGIN.
12373 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12374 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12375
12376 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12377
12378 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12379 FUNCTION_VALUE_REGNO_P): Remove.
12380 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12381 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12382 Add 'outgoing' argument.
12383 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12384 function.
12385 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12386 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12387
12388 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12389
12390 PR debug/28047
12391 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12392 (lookup_filename): Likewise.
12393 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12394
12395 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12396 Jakub Jelinek <jakub@redhat.com>
12397
12398 PR middle-end/47893
12399 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12400 (assign_stack_local_1): Change last argument type to int.
12401 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12402 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12403 don't record padding space into frame_space_list nor use those areas.
12404 (assign_stack_local): Adjust caller.
12405 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12406 of assign_stack_local, pass 0 as last argument.
12407 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12408 callers.
12409
12410 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12411
12412 PR debug/47283
12413 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12414 Use target address_mode and pointer_mode hooks instead of hardcoded
12415 Pmode and ptr_mode. Handle some simple cases of extending if
12416 POINTERS_EXTEND_UNSIGNED < 0.
12417 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12418 Call convert_debug_memory_address.
12419 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12420 convert_debug_memory_address.
12421
12422 PR middle-end/46790
12423 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12424 * configure: Regenerated.
12425 * config.in: Regenerated.
12426 * varasm.c (default_function_section): Return NULL
12427 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12428
12429 2011-02-28 Martin Jambor <mjambor@suse.cz>
12430
12431 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12432 the description to match the printed values.
12433
12434 2011-02-28 Richard Guenther <rguenther@suse.de>
12435
12436 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12437 of the copied scope tree.
12438
12439 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12440
12441 * doc/extend.texi (Function Attributes): Avoid deeply (and
12442 wrongly) nested tables.
12443
12444 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12445
12446 PR middle-end/47903
12447 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12448 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12449 r isn't op0 nor op1.
12450
12451 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12452
12453 * config/avr/avr.md: Remove magic comment for emacs.
12454
12455 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12456
12457 PR target/45261
12458 * config/avr/avr.c (avr_option_override): Use error on bad options.
12459 (avr_help): New function.
12460 (TARGET_HELP): Define.
12461
12462 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12463
12464 PR target/42240
12465 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12466 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12467
12468 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12469
12470 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12471 (ARM Options): Ditto.
12472 (i386 and x86-64 Options): Ditto.
12473 (RX Options): Ditto.
12474 (SPARC Options): Ditto.
12475
12476 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12477
12478 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12479 FreeBSD 6 and later. Generally use cpu generic.
12480
12481 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12482
12483 * doc/cpp.texi: Update copyright years.
12484
12485 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12486
12487 PR target/46898
12488 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12489
12490 2011-02-25 Jon Beniston <jon@beniston.com>
12491
12492 PR target/46898
12493 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12494 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12495 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12496 (lm32_block_move_inline): Add type cast to remove warning.
12497 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12498 (gen_int_relational): Move declarations to start of function.
12499
12500 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12501
12502 PR tree-optimization/45470
12503 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12504 can throw internally only.
12505 * tree-vect-stmts.c (vectorizable_call): Likewise.
12506
12507 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12508
12509 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12510 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12511 * config/stormy16/stormy16-protos.h
12512 (xstormy16_preferred_reload_class): Remove.
12513 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12514 static. Change 'rclass' argument and return type to reg_class_t.
12515 (TARGET_PREFERRED_RELOAD_CLASS,
12516 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12517
12518 2011-02-24 Richard Guenther <rguenther@suse.de>
12519
12520 * lto-streamer-in.c (input_bb): Do not find referenced vars
12521 in debug statements.
12522
12523 2011-02-23 Jason Merrill <jason@redhat.com>
12524
12525 * common.opt (fabi-version): Document v5 and v6.
12526
12527 2011-02-23 Richard Guenther <rguenther@suse.de>
12528
12529 PR tree-optimization/47849
12530 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12531
12532 2011-02-23 Jie Zhang <jie@codesourcery.com>
12533
12534 * opts-common.c (decode_cmdline_option): Print empty string
12535 argument as "" in decoded->orig_option_with_args_text.
12536 * gcc.c (execute): Print empty string argument as ""
12537 in the verbose output.
12538 (do_spec_1): Keep empty string argument.
12539
12540 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12541
12542 * config.gcc: Declare score-* and crx-* obsolete.
12543
12544 2011-02-23 Jie Zhang <jie@codesourcery.com>
12545
12546 PR rtl-optimization/47763
12547 * web.c (web_main): Ignore naked clobber when replacing register.
12548
12549 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12550
12551 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12552 Remove.
12553
12554 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12555
12556 PR doc/47848
12557 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12558
12559 2011-02-22 Mike Stump <mikestump@comcast.net>
12560
12561 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12562 assembler.
12563 * configure: Regenerate.
12564
12565 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12566
12567 PR rtl-optimization/46002
12568 * ira-color.c (update_copy_costs): Change class intersection
12569 test to reg_class_contents[] test of 'hard_regno'.
12570
12571 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12572
12573 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12574 than Driver option.
12575 * config/hpux11.opt (mt): Likewise.
12576 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12577 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12578 * config/vax/elf.opt (mno-asm-pic): Likewise.
12579 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12580
12581 2011-02-21 Mike Stump <mikestump@comcast.net>
12582
12583 PR target/47822
12584 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12585 tree so we can get save the type.
12586 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12587 for CFString instead of trying to use past the end of the builtins.
12588 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12589 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12590 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12591 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12592 Rename to darwin_builtin_cfstring.
12593 (darwin_init_cfstring_builtins): Return the built type.
12594
12595 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12596
12597 PR target/47840
12598 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12599 (_mm256_insert_epi64): Use _mm_insert_epi64.
12600
12601 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12602
12603 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12604 * config/stormy16/stormy16-protos.h
12605 (xstormy16_mode_dependent_address_p): Remove.
12606 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12607 Make static. Change return type to bool. Change argument type to
12608 const_rtx. Remove dead code.
12609 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12610
12611 2011-02-21 Richard Guenther <rguenther@suse.de>
12612
12613 PR lto/47820
12614 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12615 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12616 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12617 TUs context.
12618 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12619 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12620
12621 2011-02-20 Richard Guenther <rguenther@suse.de>
12622
12623 PR lto/47822
12624 * tree.c (free_lang_data_in_decl): Clean builtins from
12625 the TU decl BLOCK_VARS.
12626
12627 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12628
12629 PR debug/47620
12630 PR debug/47630
12631 * haifa-sched.c (fix_tick_ready): Skip tick computation
12632 for debug insns.
12633
12634 2011-02-19 Richard Guenther <rguenther@suse.de>
12635
12636 PR lto/47647
12637 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12638 Remove lazy BLOCK_VARS streaming.
12639 (lto_input_ts_block_tree_pointers): Likewise.
12640 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12641
12642 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12643
12644 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12645
12646 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12647
12648 * config/i386/biarch32.h, config/i386/mach.h,
12649 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12650
12651 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12652
12653 PR target/47800
12654 * config/i386/i386.md (peephole2 for shift and plus): Use
12655 operands[1] original mode in the first insn.
12656
12657 2011-02-18 Mike Stump <mikestump@comcast.net>
12658
12659 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12660
12661 2011-02-18 Jan Hubicka <jh@suse.cz>
12662
12663 PR middle-end/47788
12664 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12665 to zero when the function is not inlinable at all.
12666
12667 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12668
12669 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12670 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12671 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12672 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12673 * config/pa/t-pa64: Likewise.
12674 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12675
12676 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12677
12678 PR driver/47787
12679 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12680
12681 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12682
12683 PR target/47792
12684 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12685
12686 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12687
12688 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12689 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12690 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12691 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12692 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12693 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12694 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12695 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12696 m32r_legitimate_address_p): New functions.
12697 * config/m32r/constraints.md (constraint "S"): Don't use
12698 STORE_PREINC_PREDEC_P.
12699 (constraint "U"): Don't use LOAD_POSTINC_P.
12700
12701 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12702
12703 PR rtl-optimization/46178
12704 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12705 compute ira_hard_regno_cover_class[].
12706
12707 2011-02-18 Richard Guenther <rguenther@suse.de>
12708
12709 PR lto/47798
12710 * lto-streamer.h (lto_global_var_decls): Declare.
12711 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12712 statics for global var processing.
12713
12714 2011-02-18 Richard Guenther <rguenther@suse.de>
12715
12716 PR tree-optimization/47737
12717 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12718 edge dominance check.
12719
12720 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12721
12722 PR debug/47780
12723 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12724 avoid invalid rtx sharing.
12725
12726 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12727
12728 * doc/cpp.texi (Obsolete Features): Add background on the
12729 origin of assertions.
12730
12731 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12732
12733 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12734 objc_abi == 2.
12735 * config/darwin.c (output_objc_section_asm_op): Added support for
12736 ABI v1 and v2.
12737 (is_objc_metadata): New.
12738 (darwin_objc2_section): New.
12739 (darwin_objc1_section): New.
12740 (machopic_select_section): Added support for ABI v1 and v2.
12741 (darwin_emit_objc_zeroed): New.
12742 (darwin_output_aligned_bss): Detect objc metadata and treat it
12743 appropriately.
12744 (darwin_asm_output_aligned_decl_common): Same.
12745 (darwin_asm_output_aligned_decl_local): Same.
12746 * config/darwin-sections.def: Updated for ABI v1 and v2.
12747 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12748 compiling Objective-C code for the NeXT runtime, default to using
12749 ABI version 0 for 32-bit, and version 2 for 64-bit.
12750
12751 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12752
12753 * common.opt (optimize_fast): New Variable.
12754 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12755 instead of local variable ofast.
12756
12757 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12758
12759 * doc/invoke.texi (fobjc-abi-version): Documented.
12760 (fobjc-nilcheck): Documented.
12761 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12762 version.
12763
12764 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12765
12766 PR driver/47390
12767 * common.opt (export-dynamic): New Driver option.
12768 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12769
12770 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12771
12772 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12773
12774 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12775 Jan Hubicka <jh@suse.cz>
12776
12777 PR debug/47106
12778 PR debug/47402
12779 * cfgexpand.c (account_used_vars_for_block): Remove.
12780 (estimated_stack_frame_size): Use referenced vars.
12781 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12782 that were referenced in the original function. Test src_fn
12783 rather than cfun. Drop redundant get_var_ann.
12784 (setup_one_parameter): Drop redundant get_var_ann.
12785 (declare_return_variable): Likewise.
12786 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12787 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12788 * ipa-inline.c (compute_inline_parameters): Do not compute
12789 disregard_inline_limits here.
12790 (compute_inlinable_for_current, pass_inlinable): New.
12791 (pass_inline_parameters): Require PROP_referenced_vars.
12792 * cgraphunit.c (cgraph_process_new_functions): Don't run
12793 compute_inline_parameters explicitly unless function is in SSA form.
12794 (cgraph_analyze_function): Set .disregard_inline_limits.
12795 * tree-sra.c (convert_callers): Compute inliner parameters
12796 only for functions already in SSA form.
12797
12798 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12799
12800 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12801 -mlittle-endian-data.
12802
12803 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12804
12805 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12806 -mno-fpu, not -fpu and -no-fpu.
12807 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12808 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12809
12810 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12811
12812 PR target/43653
12813 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12814 input reload with PLUS RTX.
12815
12816 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12817
12818 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12819 of InverseVar(MDMX).
12820
12821 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12822
12823 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12824 --m4-340.
12825
12826 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12827
12828 * config/mn10300/mn10300.opt (mno-crt0): New.
12829
12830 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12831
12832 * config/m68k/uclinux.opt (static-libc): New Driver option.
12833
12834 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12835
12836 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12837
12838 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12839
12840 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12841 %{muser-extend-enabled}.
12842
12843 2011-02-16 Richard Guenther <rguenther@suse.de>
12844
12845 PR tree-optimization/47738
12846 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12847 the TODO from tree_predictive_commoning.
12848
12849 2011-02-15 Jeff Law <law@redhat.com>
12850
12851 Revert
12852 2011-01-25 Jeff Law <law@redhat.com>
12853
12854 PR rtl-optimization/37273
12855 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12856 handle them like argument loads from stack slots. Do not double
12857 count memory for memory constants and argument loads from stack slots.
12858
12859 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12860
12861 PR middle-end/47725
12862 * combine.c (cant_combine_insn_p): Revert the last change.
12863
12864 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12865
12866 PR target/47755
12867 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12868 mode for vector constants. Remove code that checks for TImode.
12869
12870 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12871
12872 PR debug/47106
12873 PR debug/47402
12874 * cgraph.h (compute_inline_parameters): Return void.
12875 * ipa-inline.c (compute_inline_parameters): Adjust.
12876
12877 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12878
12879 PR debug/47106
12880 PR debug/47402
12881 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12882 rather than decl.
12883 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12884 * ipa-inline.c (compute_inline_parameters): Adjust.
12885
12886 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12887
12888 PR debug/47106
12889 PR debug/47402
12890 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12891 Adjust all users. Pass FN to...
12892 * tree-flow-inline.h (first_referenced_var): ... this. Add
12893 fn argument.
12894 * ipa-struct-reorg.c: Adjust.
12895 * tree-dfa.c: Adjust.
12896 * tree-into-ssa.c: Adjust.
12897 * tree-sra.c: Adjust.
12898 * tree-ssa-alias.c: Adjust.
12899 * tree-ssa-live.c: Adjust.
12900 * tree-ssa.c: Adjust.
12901 * tree-ssanames.c: Adjust.
12902 * tree-tailcall.c: Adjust.
12903
12904 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12905
12906 PR debug/47106
12907 PR debug/47402
12908 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12909 Adjust all callers.
12910 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12911 * tree-flow-inline.h: Adjust.
12912 * gimple-pretty-print.c: Adjust.
12913 * tree-into-ssa.c: Adjust.
12914 * tree-ssa.c: Adjust.
12915 * cfgexpand.c: Adjust.
12916
12917 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12918
12919 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12920 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12921 (EXTRA_CONSTRAINT): Delete.
12922 * config/iq2000/constraints.md: New file.
12923 * config/iq2000/iq2000.md: Include it.
12924 (define_insn ""): Delete.
12925 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12926 unsupported constraint letters from patterns.
12927 (call_value, call_value_internal1): Likewise.
12928 (call_value_multiple_internal1): Likewise.
12929
12930 2011-02-15 Nick Clifton <nickc@redhat.com>
12931
12932 * config/mn10300/mn10300.c: Include tm-constrs.h.
12933 (struct liw_data): New data structure describing an LIW candidate
12934 instruction.
12935 (extract_bundle): Use struct liw_data. Allow small integer
12936 operands for some instructions.
12937 (check_liw_constraints): Use struct liw_data. Remove swapped
12938 parameter. Add comments describing the checks. Fix bug when
12939 assigning the source of liw1 to the source of liw2.
12940 (liw_candidate): Delete. Code moved into extract_bundle.
12941 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12942 before swapping.
12943 * config/mn10300/predicates.md (liw_operand): New predicate.
12944 Allows registers and small integer constants.
12945 * config/mn10300/constraints.md (O): New constraint. Accetps
12946 integers in the range -8 to +7 inclusive.
12947 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12948 for moving a small integer into a register. Give this alternative
12949 LIW attributes.
12950 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12951 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12952 using the J,K,L and M constraints,
12953 (liw): Remove SI mode on second operands to allow for HI and QI
12954 mode values.
12955 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12956 instruction.
12957
12958 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12959
12960 PR middle-end/47725
12961 * combine.c (cant_combine_insn_p): Check zero/sign extended
12962 hard registers.
12963
12964 2011-02-15 Richard Guenther <rguenther@suse.de>
12965
12966 PR tree-optimization/47743
12967 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12968 for a non-type-compatible VN lookup bail out.
12969
12970 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12971
12972 * config/fr30/constraints.md: New file.
12973 * config/fr30/fr30.md: Include it.
12974 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12975 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12976 (EXTRA_CONSTRAINT): Delete.
12977
12978 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12979
12980 * config/frv/constraints.md: New file.
12981 * config/frv/predicates.md: Include it.
12982 * config/frv/frv.c (reg_class_from_letter): Delete.
12983 (frv_option_override): Don't initialize it.
12984 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12985 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12986 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12987 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12988 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12989 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12990 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12991 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12992 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12993 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12994 (REG_CLASS_FROM_CONSTRAINT): Delete.
12995
12996 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12997
12998 PR middle-end/47581
12999 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13000 if frame size is 0 in a leaf function.
13001
13002 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13003
13004 PR pch/14940
13005 * config/alpha/host-osf.c: New file.
13006 * config/alpha/x-osf: New file.
13007 * config.host (alpha*-dec-osf*): Use it.
13008
13009 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13010
13011 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13012 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13013 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13014 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13015 type to const_rtx.
13016 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13017
13018 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13019
13020 * config/stormy16/constraints.md: New file.
13021 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13022 Use satisfies_constraint_Q and satisfies_constraint_R.
13023 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13024 Delete.
13025 (xstormy16_legitiamte_address_p): Declare.
13026 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13027 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13028 (EXTRA_CONSTRAINT): Delete.
13029 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13030 Un-staticize.
13031 (xstormy16_extra_constraint_p): Delete.
13032
13033 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13034
13035 PR tree-optimization/46494
13036 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13037 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13038 (pass_rtl_loop_done): Add TODO_verify_flow.
13039 * fwprop.c (pass_rtl_fwprop): Likewise.
13040 * modulo-sched.c (pass_sms): Likewise.
13041 * tree-ssa-dom.c (pass_dominator): Likewise.
13042 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13043 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13044 (pass_tree_loop_done): Likewise.
13045 * tree-ssa-pre.c (execute_pre): Likewise.
13046 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13047 * tree-ssa-sink.c (pass_sink_code): Likewise.
13048 * tree-vrp.c (pass_vrp): Likewise.
13049
13050 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13051
13052 * config/v850/constraints.md: New file.
13053 * config/v850/v850.md: Include it.
13054 * config/v850/predicates.md (reg_or_0_operand): Use
13055 satisfies_constraint_G.
13056 (special_symbolref_operand): Use satisfies_constraint_K.
13057 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13058 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13059 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13060 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13061 (EXTRA_CONSTRAINT): Delete.
13062 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13063 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13064 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13065
13066 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13067
13068 PR target/47696
13069 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13070 description.
13071
13072 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13073
13074 * config/mcore/constraints.md: New file.
13075 * config/mcore/mcore.md: Include it.
13076 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13077 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13078 (REG_CLASS_FROM_LETTER): Delete.
13079 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13080 insn_const_int_ok_for_constraint.
13081 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13082 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13083 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13084 (EXTRA_CONSTRAINT): Delete.
13085
13086 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13087
13088 PR ada/41929
13089 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13090 (IS_SIGHANDLER): Define.
13091 (sparc64_is_sighandler): New function, split off from
13092 sparc64_fallback_frame_state.
13093 (sparc_is_sighandler): New function, split off from
13094 sparc_fallback_frame_state.
13095 (sparc64_fallback_frame_state): Merge with ...
13096 (sparc_fallback_frame_state): ... this into ...
13097 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13098 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13099 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13100 stack instead of hardcoded offsets.
13101
13102 2011-02-14 Andriy Gapon <avg@freebsd.org>
13103
13104 PR target/45808
13105 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13106
13107 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13108
13109 * configure: Regenerate.
13110
13111 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13112
13113 PR driver/45731
13114 * gcc.c (asm_options): Correct spec matching --target-help.
13115
13116 2011-02-12 Martin Jambor <mjambor@suse.cz>
13117
13118 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13119 to gimple call error.
13120
13121 2011-02-12 Mike Stump <mikestump@comcast.net>
13122
13123 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13124 comments in backslash regions.
13125
13126 2011-02-12 Mike Stump <mikestump@comcast.net>
13127 Jakub Jelinek <jakub@redhat.com>
13128 Iain Sandoe <iains@gcc.gnu.org>
13129
13130 PR target/47324
13131 * dwarf2out.c (output_cfa_loc): When required, apply the
13132 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13133 (output_loc_sequence): Likewise.
13134 (output_loc_operands_raw): Likewise.
13135 (output_loc_sequence_raw): Likewise.
13136 (output_cfa_loc): Likewise.
13137 (output_loc_list): Suppress register number adjustment when
13138 calling output_loc_sequence()
13139 (output_die): Likewise.
13140
13141 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13142
13143 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13144 Remove macros.
13145 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13146 xtensa_memory_move_cost): New functions.
13147 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13148
13149 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13150
13151 PR lto/47225
13152 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13153 in the current directory.
13154 * configure: Rebuilt.
13155
13156 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13157
13158 * config/darwin.c (darwin_override_options): Add a hunk missed
13159 from the commit of r168571. Trim comment line lengths and
13160 correct indents of the preceding block.
13161
13162 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13163
13164 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13165 the switch.
13166
13167 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13168
13169 * common.opt (nostartfiles): New Driver option.
13170
13171 2011-02-11 Xinliang David Li <davidxl@google.com>
13172
13173 PR tree-optimization/47707
13174 * tree-chrec.c (convert_affine_scev): Keep type precision.
13175
13176 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13177
13178 PR tree-optimization/47420
13179 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13180
13181 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13182
13183 PR rtl-optimization/47614
13184 * rtl.h (check_for_inc_dec): Declare.
13185 * dse.c (check_for_inc_dec): Externalize...
13186 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13187 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13188
13189 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13190
13191 PR driver/47678
13192 * gcc.c (main): Do not compile inputs if there were errors in
13193 option handling.
13194 * opts-common.c (read_cmdline_option): Check for wrong language
13195 after other error checks.
13196
13197 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13198
13199 * cgraph.c: Fix comment typos.
13200 * cgraph.h: Likewise.
13201 * cgraphunit.c: Likewise.
13202 * ipa-cp.c: Likewise.
13203 * ipa-inline.c: Likewise.
13204 * ipa-prop.c: Likewise.
13205 * ipa-pure-const.c: Likewise.
13206 * ipa-ref.c: Likewise.
13207 * ipa-reference.c: Likewise.
13208
13209 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13210
13211 PR debug/47684
13212 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13213
13214 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13215
13216 PR testsuite/47400
13217 * doc/sourcebuild.texi (Require Support): Document
13218 dg-require-ascii-locale.
13219
13220 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13221
13222 * doc/lto.texi (Write summary): Fix missing parentheses.
13223
13224 2011-02-10 DJ Delorie <dj@redhat.com>
13225
13226 * config/m32c/m32c.c (m32c_option_override): Disable
13227 -fcombine-stack-adjustments until flag value tracking and compare
13228 optimization can be rewritten.
13229
13230 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13231
13232 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13233 PROCESSOR_POWER7.
13234 (PROCESSOR_DEFAULT64): Likewise.
13235
13236 2011-02-10 Richard Henderson <rth@redhat.com>
13237
13238 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13239 change from 2011-02-03.
13240 * config/rx/rx.c (flags_from_code): Likewise.
13241 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13242 is valid, n/pz otherwise.
13243 (rx_select_cc_mode): Return CCmode if Y is not zero.
13244
13245 2011-02-10 Richard Guenther <rguenther@suse.de>
13246
13247 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13248
13249 2011-02-10 Richard Guenther <rguenther@suse.de>
13250
13251 PR tree-optimization/47677
13252 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13253
13254 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13255
13256 PR target/47665
13257 * combine.c (make_compound_operation): Only change shifts into
13258 multiplication for SCALAR_INT_MODE_P.
13259
13260 2011-02-10 Jie Zhang <jie@codesourcery.com>
13261
13262 PR testsuite/47622
13263 Revert
13264 2011-02-05 Jie Zhang <jie@codesourcery.com>
13265 PR debug/42631
13266 * web.c (entry_register): Don't clobber the number of the
13267 first uninitialized reference in used[].
13268
13269 2011-02-09 Richard Guenther <rguenther@suse.de>
13270
13271 PR tree-optimization/47664
13272 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13273 all edges again.
13274
13275 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13276
13277 PR target/46481
13278 PR target/47032
13279 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13280 PROCESSOR_POWER7.
13281 (PROCESSOR_DEFAULT64): Same.
13282 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13283
13284 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13285
13286 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13287
13288 2011-02-09 Martin Jambor <mjambor@suse.cz>
13289
13290 PR middle-end/45505
13291 * tree-sra.c (struct access): New flags grp_scalar_read and
13292 grp_scalar_write. Changed description of assignment read and write
13293 flags.
13294 (dump_access): Dump new flags, reorder all of them.
13295 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13296 to detect multiple scalar reads.
13297 (analyze_access_subtree): Use the new scalar read write flags instead
13298 of the old flags. Adjusted comments.
13299
13300 2011-02-08 DJ Delorie <dj@redhat.com>
13301
13302 PR target/47548
13303 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13304 patterns.
13305
13306 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13307
13308 * config/m68k/uclinux.opt: New.
13309 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13310
13311 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13312
13313 * config/cris/elf.opt (sim): New Driver option.
13314
13315 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13316
13317 * config/xtensa/elf.opt: New.
13318 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13319
13320 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13321
13322 * config/vax/elf.opt: New.
13323 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13324
13325 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13326
13327 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13328
13329 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13330
13331 * config/gnu-user.opt: New.
13332 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13333 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13334 *-*-uclinux*): Use gnu-user.opt.
13335
13336 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13337
13338 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13339 * config/i386/gnu.h (CPP_SPEC): Likewise.
13340
13341 2011-02-08 Ian Lance Taylor <iant@google.com>
13342
13343 * common.opt (fcx-limited-range): Add SetByCombined flag.
13344 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13345 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13346 (fassociative-math, freciprocal-math): Likewise.
13347 (funsafe-math-optimizations): Likewise.
13348 * opth-gen.awk: Handle SetByCombined.
13349 * optc-gen.awk: Likewise.
13350 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13351 (set_unsafe_math_optimizations_flags): Likewise.
13352 * doc/options.texi (Option properties): Document SetByCombined.
13353
13354 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13355
13356 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13357 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13358 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13359 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13360 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13361
13362 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13363
13364 PR tree-optimization/46834
13365 PR tree-optimization/46994
13366 PR tree-optimization/46995
13367 * graphite-sese-to-poly.c (used_outside_reduction): New.
13368 (detect_commutative_reduction): Call used_outside_reduction.
13369 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13370 translate_scalar_reduction_to_array only when at least one
13371 loop-phi/close-phi tuple has been detected.
13372
13373 2011-02-08 Richard Guenther <rguenther@suse.de>
13374
13375 PR middle-end/47639
13376 * tree-vect-generic.c (expand_vector_operations_1): Update
13377 stmts here ...
13378 (expand_vector_operations): ... not here. Cleanup EH info
13379 and the CFG if required.
13380
13381 2011-02-08 Richard Guenther <rguenther@suse.de>
13382
13383 PR tree-optimization/47641
13384 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13385 require type compatibility.
13386
13387 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13388
13389 * gimple-low.c (lower_function_body): Don't remove the location of
13390 the return statement here.
13391 (lower_gimple_return): Do it here instead but only if the return
13392 statement is actually used twice.
13393
13394 2011-02-08 Richard Guenther <rguenther@suse.de>
13395
13396 PR tree-optimization/47632
13397 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13398 unused up_to_stmt parameter, return whether cfg-cleanup is
13399 necessary, remove EH info properly.
13400 (forward_propagate_into_gimple_cond): Adjust caller.
13401 (forward_propagate_into_cond): Likewise.
13402 (forward_propagate_comparison): Likewise.
13403 (tree_ssa_forward_propagate_single_use_vars): Make
13404 forward_propagate_comparison case similar to the two others.
13405
13406 2011-02-08 Nick Clifton <nickc@redhat.com>
13407
13408 * config/mn10300/mn10300.opt (mliw): New command line option.
13409 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13410 (liw_bundling): New automaton.
13411 (liw): New attribute.
13412 (liw_op): New attribute.
13413 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13414 (movsi_internal): Add LIW attributes.
13415 (andsi3): Likewise.
13416 (iorsi3): Likewise.
13417 (xorsi3): Likewise.
13418 (addsi3): Separate register and immediate alternatives.
13419 Add LIW attributes.
13420 (subsi3): Likewise.
13421 (cmpsi): Likewise.
13422 (aslsi3): Likewise.
13423 (lshrsi3): Likewise.
13424 (ashrsi3): Likewise.
13425 (liw): New pattern.
13426 * config/mn10300/mn10300.c (liw_op_names): New
13427 (mn10300_print_operand): Handle 'W' operand descriptor.
13428 (extract_bundle): New function.
13429 (check_liw_constraints): New function.
13430 (liw_candidate): New function.
13431 (mn10300_bundle_liw): New function.
13432 (mn10300_reorg): New function.
13433 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13434 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13435 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13436 __LIW__ or __NO_LIW__.
13437 * doc/invoke.texi: Describe the -mliw command line option.
13438
13439 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13440
13441 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13442 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13443 pthread_mutex_unlock): Remove.
13444 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13445 * config/pa/t-pa64: Likewise.
13446 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13447 shared libc if not linking against libpthread.
13448 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13449
13450 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13451
13452 PR target/47558
13453 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13454 on 10.6 and later to ensure that we always use the unwinder from
13455 the system. Only add -no_compact_unwind when tarteting darwin
13456 10.6 or later.
13457
13458 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13459
13460 PR target/46997
13461 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13462 (vec_interleave_lowv2sf): Ditto.
13463 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13464 (vec_extract_oddv2sf): Ditto.
13465
13466 2011-02-07 Mike Stump <mikestump@comcast.net>
13467
13468 PR target/42333
13469 Add __ieee_divdc3 entry point.
13470 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13471 entry point.
13472 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13473 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13474 * config/darwin.c (darwin_rename_builtins): Add.
13475 * config/darwin-protos.h (darwin_rename_builtins): Add.
13476
13477 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13478
13479 PR target/47636
13480 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13481 for the condition.
13482
13483 2011-02-07 Mike Stump <mikestump@comcast.net>
13484
13485 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13486
13487 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13488
13489 PR target/47534
13490 * config/avr/libgcc.S (exit): Move .endfunc
13491
13492 2011-02-07 Richard Guenther <rguenther@suse.de>
13493
13494 PR tree-optimization/47615
13495 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13496 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13497 (run_scc_vn): Initialize it.
13498 (visit_reference_op_load): Use it.
13499 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13500
13501 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13502
13503 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13504 DImode trapping arithmetic libfuncs.
13505
13506 2011-02-07 Richard Guenther <rguenther@suse.de>
13507
13508 PR tree-optimization/47621
13509 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13510 two duplicates ...
13511 (execute_update_addresses_taken): ... here. Make it more
13512 conservative in what we accept.
13513
13514 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13515
13516 * config/sparc/freebsd.h (ASM_SPEC): Define.
13517 * config/sparc/vxworks.h (ASM_SPEC): Define.
13518
13519 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13520
13521 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13522
13523 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13524
13525 * doc/invoke.texi: Remove reference to compiler internals from
13526 user documentation.
13527
13528 * reg-notes.def: Remove REG_VALUE_PROFILE.
13529 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13530
13531 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13532
13533 PR middle-end/47610
13534 * varasm.c (default_section_type_flags): If decl is NULL,
13535 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13536
13537 2011-02-05 Jie Zhang <jie@codesourcery.com>
13538
13539 PR debug/42631
13540 * web.c (entry_register): Don't clobber the number of the
13541 first uninitialized reference in used[].
13542
13543 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13544
13545 PR tree-optimization/46194
13546 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13547 (build_classic_dist_vector_1): Do not represent classic distance
13548 vectors when the access functions are variating in different loops.
13549
13550 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13551
13552 * config/mips/iris6.opt: New.
13553 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13554
13555 2011-02-04 Richard Henderson <rth@redhat.com>
13556 Steve Ellcey <sje@cup.hp.com>
13557
13558 PR target/46997
13559 * config/ia64/predicates.md (mux1_brcst_element): New.
13560 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13561 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13562 (ia64_unpack_sign): New.
13563 (ia64_expand_unpack): Rewrite using new routines.
13564 (ia64_expand_widen_sum): Ditto.
13565 (ia64_expand_dot_prod_v8qi): Ditto.
13566 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13567 routines, add endian check.
13568 (pmpy2_even): Rename from pmpy2_r, add endian check.
13569 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13570 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13571 (vec_widen_smult_hi_v4hi): Ditto.
13572 (vec_widen_umult_lo_v4hi): Ditto.
13573 (vec_widen_umult_hi_v4hi): Ditto.
13574 (mulv2si3): Change endian checks.
13575 (sdot_prodv4hi): Rewrite with new calls.
13576 (udot_prodv4hi): New.
13577 (vec_pack_ssat_v4hi): Add endian check.
13578 (vec_pack_usat_v4hi): Ditto.
13579 (vec_pack_ssat_v2si): Ditto.
13580 (max1_even): Rename from max1_r, add endian check.
13581 (max1_odd): Rename from max1_l, add endian check.
13582 (*mux1_rev): Format change.
13583 (*mux1_mix): Ditto.
13584 (*mux1_shuf): Ditto.
13585 (*mux1_alt): Ditto.
13586 (*mux1_brcst_v8qi): Use new predicate.
13587 (vec_extract_evenv8qi): Remove endian check.
13588 (vec_extract_oddv8qi): Ditto.
13589 (vec_interleave_lowv4hi): Format change.
13590 (vec_interleave_highv4hi): Ditto.
13591 (mix2_even): Rename from mix2_r, add endian check.
13592 (mix2_odd): Rename from mux2_l, add endian check.
13593 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13594 (vec_extract_evenodd_helper): Format change.
13595 (vec_extract_evenv4hi): Remove endian check.
13596 (vec_extract_oddv4hi): Remove endian check.
13597 (vec_interleave_lowv2si): Format change.
13598 (vec_interleave_highv2si): Format change.
13599 (vec_initv2si): Remove endian check.
13600 (vecinit_v2si): Add endian check.
13601 (reduc_splus_v2sf): Add endian check.
13602 (reduc_smax_v2sf): Ditto.
13603 (reduc_smin_v2sf): Ditto.
13604 (vec_initv2sf): Remove endian check.
13605 (fpack): Add endian check.
13606 (fswap): Add endian check.
13607 (vec_interleave_highv2sf): Add endian check.
13608 (vec_interleave_lowv2sf): Add endian check.
13609 (fmix_lr): Add endian check.
13610 (vec_setv2sf): Format change.
13611 (*vec_extractv2sf_0_be): Use shift to extract operand.
13612 (*vec_extractv2sf_1_be): New.
13613 (vec_pack_trunc_v4hi): Add endian check.
13614 (vec_pack_trunc_v2si): Format change.
13615
13616 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13617
13618 PR inline-asm/23200
13619 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13620 do bb, locus and block comparison and disallow loads if it is not set.
13621 (stmt_is_replaceable_p): New function.
13622 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13623 callers.
13624 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13625 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13626 SSA_NAME_DEF_STMT.
13627 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13628
13629 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13630
13631 * config/rs6000/xilinx.opt: New.
13632 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13633
13634 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13635
13636 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13637
13638 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13639
13640 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13641 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13642 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13643 secondary_reload_info, xtensa_secondary_reload): Remove.
13644 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13645 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13646 (xtensa_preferred_reload_class): Make static. Change return and
13647 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13648 Use CONST_DOUBLE_P predicate.
13649 (xtensa_preferred_output_reload_class): New function.
13650 (xtensa_secondary_reload): Make static.
13651
13652 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13653
13654 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13655 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13656 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13657
13658 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13659
13660 PR middle-end/31490
13661 * output.h (SECTION_RELRO): Define.
13662 (SECTION_MACH_DEP): Adjust.
13663 (get_variable_section): New prototype.
13664 * varpool.c (varpool_finalize_named_section_flags): New function.
13665 (varpool_assemble_pending_decls): Call it.
13666 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13667 * cgraphunit.c (cgraph_output_in_order): Call
13668 varpool_finalize_named_section_flags.
13669 * varasm.c (get_section): Allow section flags conflicts between
13670 relro and read-only sections if the section hasn't been declared yet.
13671 Set SECTION_OVERRIDE after diagnosing section type conflict.
13672 (get_variable_section): No longer static.
13673 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13674 readonly sections that need relocations.
13675 (decl_readonly_section_1): New function.
13676 (decl_readonly_section): Use it.
13677
13678 Revert:
13679 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13680 Steve Ellcey <sje@cup.hp.com>
13681
13682 PR middle-end/31490
13683 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13684 if section attribute used.
13685
13686 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13687
13688 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13689 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13690 (darwin_init_sections): Remove assertion.
13691
13692 2011-02-03 Nick Clifton <nickc@redhat.com>
13693
13694 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13695 lt and ge.
13696 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13697 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13698 instead of "n" and "pz".
13699 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13700 CC_FLAG_S.
13701
13702 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13703
13704 PR target/47312
13705 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13706 fma, expand FMA_EXPR as fma{,f,l} call.
13707
13708 PR lto/47274
13709 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13710 copy them into a unsigned char variable and pass address of it to
13711 lto_output_data_stream.
13712
13713 PR target/47564
13714 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13715 around backend_init_target and lang_dependent_init_target calls.
13716 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13717 (verify_cgraph_node): Don't call set_cfun here. Use
13718 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13719 Set error_found for incorrectly represented calls to thunks.
13720
13721 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13722
13723 PR debug/43092
13724 PR rtl-optimization/43494
13725 * rtl.h (for_each_inc_dec_fn): New type.
13726 (for_each_inc_dec): Declare.
13727 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13728 (for_each_inc_dec_find_inc_dec): New fn.
13729 (for_each_inc_dec_find_mem): New fn.
13730 (for_each_inc_dec): New fn.
13731 * dse.c (struct insn_size): Remove.
13732 (replace_inc_dec, replace_inc_dec_mem): Remove.
13733 (emit_inc_dec_insn_before): New fn.
13734 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13735 (canon_address): Pass mem modes to cselib_lookup.
13736 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13737 (cselib_lookup_from_insn): Likewise.
13738 (cselib_subst_to_values): Likewise.
13739 * cselib.c (find_slot_memmode): New var.
13740 (cselib_find_slot): New fn. Use it instead of
13741 htab_find_slot_with_hash everywhere.
13742 (entry_and_rtx_equal_p): Use find_slot_memmode.
13743 (autoinc_split): New fn.
13744 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13745 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13746 Deal with autoinc. Special-case recursion into MEMs.
13747 (cselib_hash_rtx): Likewise.
13748 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13749 address and MEM modes.
13750 (cselib_subst_to_values): Add memmode, pass it on.
13751 Deal with autoinc.
13752 (cselib_lookup): Add memmode argument, pass it on.
13753 (cselib_lookup_from_insn): Add memmode.
13754 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13755 (struct cselib_record_autoinc_data): New.
13756 (cselib_record_autoinc_cb): New fn.
13757 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13758 mode to cselib_lookup. Reset autoinced REGs here instead of...
13759 (cselib_process_insn): ... here.
13760 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13761 to cselib_lookup.
13762 (add_uses): Likewise, also to cselib_subst_to_values.
13763 (add_stores): Likewise.
13764 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13765 cselib_subst_to_values.
13766 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13767 * gcse.c (do_local_cprop): Adjusted.
13768 * postreload.c (reload_cse_simplify_set): Adjusted.
13769 (reload_cse_simplify_operands): Adjusted.
13770 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13771
13772 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13773
13774 PR tree-optimization/45122
13775 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13776 unsafe assumptions when there's more than one loop exit.
13777
13778 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13779
13780 PR target/47272
13781 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13782 Document using vector double with the load/store builtins, and
13783 that the load/store builtins always use Altivec instructions.
13784
13785 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13786 to use altivec memory instructions, even on VSX.
13787 (vector_altivec_store_<mode>): Ditto.
13788
13789 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13790 function.
13791
13792 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13793 V2DF, V2DI support to load/store overloaded builtins.
13794
13795 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13796 altivec load/store builtins for V2DF/V2DI types.
13797
13798 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13799 set avoid indexed addresses on power6 if -maltivec.
13800 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13801 vector_altivec_load/vector_altivec_store builtins.
13802 (altivec_expand_st_builtin): Ditto.
13803 (altivec_expand_builtin): Add VSX memory builtins.
13804 (rs6000_init_builtins): Add V2DI types to internal types.
13805 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13806 load/store builtins.
13807 (rs6000_address_for_altivec): Insure memory address is appropriate
13808 for Altivec.
13809
13810 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13811 vec_vsx_ld and vec_vsx_st.
13812 (vsx_store_<mode>): Ditto.
13813
13814 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13815 variables to hold long long types for VSX vector memory builtins.
13816 (RS6000_BTI_unsigned_long_long): Ditto.
13817 (long_long_integer_type_internal_node): Ditti.
13818 (long_long_unsigned_type_internal_node): Ditti.
13819
13820 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13821 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13822 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13823
13824 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13825 short cuts.
13826 (vec_vsx_st): Ditto.
13827
13828 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13829
13830 * config/pa/pa-hpux10.opt: New.
13831 * config/hpux11.opt (pthread): New Driver option.
13832 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13833 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13834
13835 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13836
13837 * config/ia64/vms.opt: New.
13838 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13839
13840 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13841
13842 PR target/47580
13843 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13844 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13845 generator functions.
13846 (vsx_floatuns<VSi><mode>2): Ditto.
13847 (vsx_fix_trunc<mode><VSi>2): Ditto.
13848 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13849
13850 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13851
13852 * config/i386/djgpp.opt (posix): New Driver option.
13853
13854 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13855
13856 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13857 Move to the unsupported targets list.
13858
13859 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13860
13861 PR rtl-optimization/47525
13862 * df-scan.c: Update copyright years.
13863 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13864 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13865
13866 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13867
13868 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13869 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13870 (ASM_OUTPUT_ASCII): Remove.
13871 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13872
13873 2011-02-02 Jeff Law <law@redhat.com>
13874
13875 PR middle-end/47543
13876 * reload.c (find_reloads_address): Handle reg+d address where both
13877 components are invalid by reloading the entire address.
13878
13879 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13880 Richard Guenther <rguenther@suse.de>
13881
13882 PR tree-optimization/40979
13883 PR bootstrap/47044
13884 * passes.c (init_optimization_passes): After LIM call copy_prop
13885 and DCE to clean up.
13886 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13887
13888 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13889
13890 PR tree-optimization/47576
13891 PR tree-optimization/47555
13892 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13893 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13894 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13895 * tree-scalar-evolution.c (follow_ssa_edge): Use
13896 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13897
13898 2011-02-02 Richard Guenther <rguenther@suse.de>
13899
13900 PR tree-optimization/47566
13901 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13902
13903 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13904
13905 PR debug/47106
13906 PR debug/47402
13907 * tree-inline.c (declare_return_variable): Remove unused caller
13908 variable.
13909
13910 PR debug/47106
13911 PR debug/47402
13912 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13913 * cfgexpand.c (account_used_vars_for_block): Use them.
13914 * tree-nrv.c (tree_nrv): Likewise.
13915 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13916 (dump_scope_block): Likewise.
13917 (remove_unused_locals): Likewise.
13918
13919 PR debug/47106
13920 PR debug/47402
13921 * tree-inline.c (declare_return_variable): Add result decl to
13922 local decls only once.
13923 * gimple-low.c (record_vars_into): Mark newly-created variables
13924 as referenced.
13925
13926 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13927
13928 PR debug/47498
13929 PR debug/47501
13930 PR debug/45136
13931 PR debug/45130
13932 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13933 debug insns.
13934 (no_real_insns_p, schedule_block, set_priorities): Drop special
13935 treatment of boundary debug insns.
13936 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13937 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13938 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13939 (BOUNDARY_DEBUG_INSN_P): Likewise.
13940 (SCHEDULE_DEBUG_INSN_P): Likewise.
13941 * sched-rgn.c (init_ready_list): Drop special treatment of
13942 boundary debug insns.
13943 * final.c (rest_of_clean_state): Clear notes' BB.
13944
13945 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13946
13947 * config/openbsd.opt (assert=): New Driver option.
13948
13949 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13950
13951 * config/i386/nto.opt: New.
13952 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13953
13954 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13955
13956 * config/i386/netware.opt: New.
13957 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13958
13959 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13960
13961 * config/interix.opt (posix): New Driver option.
13962
13963 2011-02-01 DJ Delorie <dj@redhat.com>
13964
13965 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13966
13967 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13968 class for A0/A1.
13969
13970 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13971
13972 PR tree-optimization/47561
13973 * toplev.c (process_options): Print the Graphite flags. Add
13974 flag_loop_flatten to the list of options requiring Graphite.
13975
13976 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13977
13978 * config/i386/cygming.opt (posix): New Driver option.
13979
13980 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13981
13982 * config/arm/vxworks.opt: New.
13983 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13984
13985 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13986
13987 * config/alpha/elf.opt: New.
13988 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13989 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13990
13991 2011-02-01 Richard Guenther <rguenther@suse.de>
13992
13993 PR tree-optimization/47559
13994 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13995 store-motion on references that can throw.
13996
13997 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13998
13999 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14000 * tree-pass.h (TDF_CSELIB): New macro.
14001 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14002 cselib_lookup): Check for it rather than for TDF_DETAILS.
14003
14004 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14005
14006 PR driver/47547
14007 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14008 is HOST_BIT_BUCKET.
14009
14010 * opts.c (finish_options): Don't add x_aux_base_name if it is
14011 HOST_BIT_BUCKET.
14012
14013 2011-02-01 Richard Guenther <rguenther@suse.de>
14014
14015 PR tree-optimization/47555
14016 Revert
14017 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14018
14019 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14020
14021 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14022
14023 PR gcc/46692
14024 * config/lm32/t-lm32: Add multilib for all CPU options.
14025
14026 2011-02-01 Richard Guenther <rguenther@suse.de>
14027
14028 PR tree-optimization/47541
14029 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14030 sure to have a field at offset zero.
14031
14032 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14033
14034 * config/arc/arc.opt (EB, EL): New Driver options.
14035
14036 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14037
14038 * config/alpha/osf5.opt: New.
14039 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14040
14041 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14042
14043 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14044
14045 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14046
14047 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14048 -floop-interchange.
14049 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14050 is an alias of -floop-interchange and that it requires the
14051 Graphite infrastructure.
14052 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14053 flag_loop_interchange based on the value of flag_tree_loop_linear.
14054
14055 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14056 Richard Guenther <rguenther@suse.de>
14057
14058 PR tree-optimization/47538
14059 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14060 type instead of r1type, except for comparisons. For right
14061 shifts and comparisons punt if there are mismatches in
14062 sizetype vs. non-sizetype types.
14063
14064 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14065
14066 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14067 avx_runtime.
14068
14069 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14070
14071 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14072 version number.
14073 * configure: Regenerate.
14074
14075 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14076
14077 * configure.ac (gcc_cv_ld_static_option): Define.
14078 (gcc_cv_ld_dynamic_option): Define.
14079 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14080 instead.
14081 (HAVE_LD_STATIC_DYNAMIC): Update message.
14082 (LD_STATIC_OPTION): Define.
14083 (LD_DYNAMIC_OPTION): Define.
14084 * configure: Regenerate.
14085 * config.in: Regenerate.
14086 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14087 HAVE_LD_STATIC_DYNAMIC]: Use them.
14088
14089 2011-01-31 Nick Clifton <nickc@redhat.com>
14090
14091 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14092 registers inside interrupt handlers if the handler is not a leaf
14093 function.
14094
14095 2011-01-31 Nick Clifton <nickc@redhat.com>
14096
14097 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14098 reg_renumber returning an INVALID_REGNUM.
14099
14100 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14101
14102 PR libgcj/44341
14103 * doc/install.texi: Document host options discarded when cross
14104 configuring target libraries.
14105
14106 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14107
14108 Reverted:
14109 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14110 PR debug/45136
14111 PR debug/45130
14112 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14113 debug insns.
14114 (no_real_insns_p, schedule_block, set_priorities): Drop special
14115 treatment of boundary debug insns.
14116 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14117 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14118 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14119 (BOUNDARY_DEBUG_INSN_P): Likewise.
14120 (SCHEDULE_DEBUG_INSN_P): Likewise.
14121 * sched-rgn.c (init_ready_list): Drop special treatment of
14122 boundary debug insns.
14123 * final.c (rest_of_clean-state): Clear notes' BB.
14124
14125 2011-01-31 Alan Modra <amodra@gmail.com>
14126
14127 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14128 toc relative expressions as we do in print_operand_address.
14129
14130 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14131
14132 * doc/extend.texi: Follow spelling conventions.
14133 * doc/invoke.texi: Fix a typo.
14134
14135 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14136
14137 * config/hpux11.opt: New.
14138 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14139 ia64*-*-hpux*): Use hpux11.opt.
14140
14141 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14142
14143 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14144 to tmake_file.
14145
14146 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14147
14148 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14149 support sites.
14150
14151 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14152
14153 * doc/install.texi (Binaries): Remove outdated reference for
14154 Motorola 68HC11/68HC12 downloads.
14155
14156 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14157
14158 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14159 Drepper's paper.
14160
14161 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14162
14163 PR bootstrap/47147
14164 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14165 used by NetBSD.
14166
14167 2011-01-28 Ahmad Sharif <asharif@google.com>
14168
14169 * value-prof.c (check_counter): Corrected error message.
14170
14171 2011-01-29 Jie Zhang <jie@codesourcery.com>
14172
14173 * config/arm/arm.c (arm_legitimize_reload_address): New.
14174 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14175 arm_legitimize_reload_address.
14176 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14177
14178 2011-01-28 Ian Lance Taylor <iant@google.com>
14179
14180 * godump.c (go_define): Ignore macros whose definitions include
14181 two adjacent operands.
14182
14183 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14184
14185 PR target/42894
14186 * varasm.c (force_const_mem): Store copy of x in desc->constant
14187 instead of x itself.
14188 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14189 itself into REG_EQUAL note.
14190
14191 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14192
14193 * config/freebsd.opt (posix, rdynamic): New Driver options.
14194
14195 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14196
14197 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14198 -Bstatic/-Bdynamic.
14199 * configure: Regenerate.
14200
14201 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14202
14203 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14204 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14205
14206 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14207
14208 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14209 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14210 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14211 (s390_preferred_reload_class): Make static. Change return and
14212 'rclass' argument type to reg_class_t.
14213
14214 2011-01-27 Jan Hubicka <jh@suse.cz>
14215
14216 PR middle-end/46949
14217 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14218 (process_function_and_variable_attributes): Check defined weakrefs.
14219
14220 2011-01-27 Martin Jambor <mjambor@suse.cz>
14221
14222 PR tree-optimization/47228
14223 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14224 build_ref_for_offset.
14225
14226 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14227
14228 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14229
14230 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14231
14232 PR rtl-optimization/46856
14233 * postreload.c (reload_combine_recognize_const_pattern): Do not
14234 separate cc0 setter and user on cc0 targets.
14235
14236 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14237
14238 PR c/43082
14239 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14240 passed a VOID_TYPE expression, immediately emit an error and
14241 return error_mark_node.
14242
14243 2011-01-26 Jeff Law <law@redhat.com>
14244
14245 PR rtl-optimization/47464
14246 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14247 rather than may_trap_p as needed.
14248
14249 2011-01-26 DJ Delorie <dj@redhat.com>
14250
14251 PR rtl-optimization/46878
14252 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14253 setter/user dependency as well.
14254
14255 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14256
14257 PR rtl-optimization/44469
14258 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14259 after removing trivially dead basic blocks.
14260
14261 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14262
14263 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14264 * config/frv/frv.h (LINK_SPEC): Likewise.
14265 * config/i386/netware.h (LINK_SPEC): Likewise.
14266 * config/m68k/linux.h (ASM_SPEC): Likewise.
14267 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14268 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14269 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14270 * config/sparc/linux.h (ASM_SPEC): Likewise.
14271 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14272 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14273
14274 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14275
14276 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14277 * config/frv/frv.h (ASM_SPEC): Likewise.
14278 * config/m68k/linux.h (ASM_SPEC): Likewise.
14279 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14280 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14281 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14282 * config/sparc/linux.h (ASM_SPEC): Likewise.
14283 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14284 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14285
14286 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14287
14288 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14289 * config/frv/frv.h (LINK_SPEC): Likewise.
14290 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14291
14292 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14293
14294 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14295 * config/frv/frv.h (ASM_SPEC): Likewise.
14296 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14297 * config/m68k/linux.h (ASM_SPEC): Likewise.
14298 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14299 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14300 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14301 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14302 * config/sparc/linux.h (ASM_SPEC): Likewise.
14303 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14304 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14305 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14306
14307 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14308
14309 PR target/46997
14310 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14311 (*mux2): Ditto.
14312 (vec_extract_evenodd_help): Ditto.
14313 (vec_extract_evenv4hi): Ditto.
14314 (vec_extract_oddv4hi): Ditto.
14315 (vec_interleave_lowv2si): Ditto.
14316 (vec_interleave_highv2si): Ditto.
14317 (vec_extract_evenv2si): Ditto.
14318 (vec_extract_oddv2si: Ditto.
14319 (vec_pack_trunc_v2si): Ditto.
14320
14321 2011-01-22 Jan Hubicka <jh@suse.cz>
14322
14323 PR target/47237
14324 * cgraph.h (cgraph_local_info): New field can_change_signature.
14325 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14326 signature can change.
14327 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14328 can change.
14329 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14330 (cgraph_function_versioning): We can not change signature of functions
14331 that don't allow that.
14332 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14333 (lto_input_node): Likewise.
14334 * ipa-inline.c (compute_inline_parameters): Compute
14335 local.can_change_signature.
14336 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14337 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14338 functions that can not change signature.
14339 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14340 init_cumulative_args): Do not use local calling conventions
14341 for functions that can not change signature.
14342
14343 2011-01-22 Jan Hubicka <jh@suse.cz>
14344
14345 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14346
14347 2011-01-26 Richard Guenther <rguenther@suse.de>
14348
14349 PR tree-optimization/47190
14350 * cgraphunit.c (process_common_attributes): New function.
14351 (process_function_and_variable_attributes): Use it.
14352
14353 2011-01-26 Richard Guenther <rguenther@suse.de>
14354
14355 PR lto/47423
14356 * cgraphbuild.c (record_eh_tables): Record reference to personality
14357 function.
14358
14359 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14360
14361 PR debug/45454
14362 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14363 non-debug insns from moving up.
14364
14365 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14366
14367 PR target/40125
14368 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14369 t-dlldir{,-x} fragment for build and add it to tmake_file.
14370 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14371 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14372 * config/i386/t-dlldir: New file.
14373 (SHLIB_DLLDIR): Define.
14374 * config/i386/t-dlldir-x: New file.
14375 (SHLIB_DLLDIR): Define.
14376 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14377 (SHLIB_INSTALL): Use it.
14378
14379 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14380
14381 PR target/47246
14382 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14383 lower bound of the allowed Thumb-2 coprocessor load/store
14384 index range to -256. Add explaining comment.
14385
14386 2011-01-25 Ian Lance Taylor <iant@google.com>
14387
14388 * godump.c (go_define): Improve lexing of macro expansion to only
14389 accept expressions which match Go spec.
14390
14391 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14392
14393 PR c++/43601
14394 * tree.c (handle_dll_attribute): Handle it.
14395 * doc/extend.texi (@item dllexport): Mention it.
14396 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14397
14398 2011-01-25 Ian Lance Taylor <iant@google.com>
14399
14400 PR tree-optimization/26854
14401 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14402 (decl_jump_unsafe): Move higher in file, with no other change.
14403 (bind): Set has_jump_unsafe_decl if appropriate.
14404 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14405 (check_earlier_gotos): Likewise.
14406 (c_check_switch_jump_warnings): Likewise.
14407
14408 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14409
14410 * doc/invoke.texi (Warning Options): Add missing hyphen.
14411 (-fprofile-dir): Minor grammatical fixes.
14412 (-fbranch-probabilities): Likewise.
14413
14414 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14415
14416 PR debug/45136
14417 PR debug/45130
14418 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14419 debug insns.
14420 (no_real_insns_p, schedule_block, set_priorities): Drop special
14421 treatment of boundary debug insns.
14422 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14423 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14424 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14425 (BOUNDARY_DEBUG_INSN_P): Likewise.
14426 (SCHEDULE_DEBUG_INSN_P): Likewise.
14427 * sched-rgn.c (init_ready_list): Drop special treatment of
14428 boundary debug insns.
14429 * final.c (rest_of_clean-state): Clear notes' BB.
14430
14431 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14432
14433 * Makefile.in (LAMBDA_H): Removed.
14434 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14435 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14436 lambda-trans.o, and tree-loop-linear.o.
14437 (lto-symtab.o): Remove dependence on LAMBDA_H.
14438 (tree-loop-linear.o): Remove rule.
14439 (lambda-mat.o): Same.
14440 (lambda-trans.o): Same.
14441 (lambda-code.o): Same.
14442 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14443 (tree-vect-slp.o): Same.
14444 * hwint.h (gcd): Moved here.
14445 (least_common_multiple): Same.
14446 * lambda-code.c: Removed.
14447 * lambda-mat.c: Removed.
14448 * lambda-trans.c: Removed.
14449 * lambda.h: Removed.
14450 * tree-loop-linear.c: Removed.
14451 * lto-symtab.c: Do not include lambda.h.
14452 * omega.c (gcd): Removed.
14453 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14454 * tree-data-ref.c (print_lambda_vector): Moved here.
14455 (lambda_vector_copy): Same.
14456 (lambda_matrix_copy): Same.
14457 (lambda_matrix_id): Same.
14458 (lambda_vector_first_nz): Same.
14459 (lambda_matrix_row_add): Same.
14460 (lambda_matrix_row_exchange): Same.
14461 (lambda_vector_mult_const): Same.
14462 (lambda_vector_negate): Same.
14463 (lambda_matrix_row_negate): Same.
14464 (lambda_vector_equal): Same.
14465 (lambda_matrix_right_hermite): Same.
14466 * tree-data-ref.h: Do not include lambda.h.
14467 (lambda_vector): Moved here.
14468 (lambda_matrix): Same.
14469 (dependence_level): Same.
14470 (lambda_transform_legal_p): Removed declaration.
14471 (lambda_collect_parameters): Same.
14472 (lambda_compute_access_matrices): Same.
14473 (lambda_vector_gcd): Same.
14474 (lambda_vector_new): Same.
14475 (lambda_vector_clear): Same.
14476 (lambda_vector_lexico_pos): Same.
14477 (lambda_vector_zerop): Same.
14478 (lambda_matrix_new): Same.
14479 * tree-flow.h (least_common_multiple): Removed declaration.
14480 * tree-parloops.c (lambda_trans_matrix): Moved here.
14481 (LTM_MATRIX): Same.
14482 (LTM_ROWSIZE): Same.
14483 (LTM_COLSIZE): Same.
14484 (LTM_DENOMINATOR): Same.
14485 (lambda_trans_matrix_new): Same.
14486 (lambda_matrix_vector_mult): Same.
14487 (lambda_transform_legal_p): Same.
14488 * tree-pass.h (pass_linear_transform): Removed declaration.
14489 * tree-ssa-loop.c (tree_linear_transform): Removed.
14490 (gate_tree_linear_transform): Removed.
14491 (pass_linear_transform): Removed.
14492 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14493 flag_loop_interchange.
14494
14495 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14496
14497 PR tree-optimization/47265
14498 PR tree-optimization/47443
14499 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14500 if name still has some uses.
14501
14502 2011-01-25 Martin Jambor <mjambor@suse.cz>
14503
14504 PR tree-optimization/47382
14505 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14506 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14507
14508 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14509
14510 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14511 sjlj_except_unwind_info.
14512
14513 2011-01-25 Richard Guenther <rguenther@suse.de>
14514
14515 PR tree-optimization/47426
14516 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14517 visible functions results escape.
14518
14519 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14520
14521 PR target/45701
14522 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14523 (arm_get_frame_offsets): Use it.
14524
14525 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14526 Jakub Jelinek <jakub@redhat.com>
14527
14528 PR tree-optimization/47271
14529 * tree-if-conv.c (bb_postdominates_preds): New.
14530 (if_convertible_bb_p): Call bb_postdominates_preds.
14531 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14532 (predicate_scalar_phi): Call bb_postdominates_preds.
14533
14534 2011-01-25 Nick Clifton <nickc@redhat.com>
14535
14536 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14537 * config/rx/rx.c (rx_function_value): Likewise.
14538 (rx_promote_function_mode): Likewise.
14539 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14540 in order to make it legitimate.
14541 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14542 make sure that the first operand is the same as the result register.
14543 (addsi3_unspec): Delete.
14544 (subdi3): Do not accept immediate operands.
14545 (subdi3_internal): Likewise.
14546
14547 2011-01-25 Jeff Law <law@redhat.com>
14548
14549 PR rtl-optimization/37273
14550 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14551 handle them like argument loads from stack slots. Do not double
14552 count memory for memory constants and argument loads from stack slots.
14553
14554 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14555
14556 PR tree-optimization/47427
14557 PR tree-optimization/47428
14558 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14559 coalesce if the new root var would be TREE_READONLY.
14560
14561 2011-01-25 Richard Guenther <rguenther@suse.de>
14562
14563 PR middle-end/47414
14564 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14565 correct type for TBAA.
14566
14567 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14568
14569 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14570 (close_phi_written_to_memory): Call for_each_index with
14571 dr_indices_valid_in_loop.
14572
14573 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14574
14575 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14576 when it is initialized.
14577
14578 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14579
14580 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14581 call to graphite_find_data_references_in_stmt.
14582 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14583 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14584 call to graphite_find_data_references_in_stmt.
14585 (analyze_drs_in_stmts): Same.
14586 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14587 in which the scalar analysis of indices is performed.
14588 (create_data_ref): Same. Update call to dr_analyze_indices.
14589 (find_data_references_in_stmt): Update call to create_data_ref.
14590 (graphite_find_data_references_in_stmt): Same.
14591 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14592 declaration.
14593 (create_data_ref): Same.
14594 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14595 call to create_data_ref.
14596
14597 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14598
14599 * graphite-sese-to-poly.c (build_poly_scop): Move
14600 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14601
14602 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14603
14604 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14605 VAR_DECL, PARM_DECL, and RESULT_DECL.
14606
14607 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14608
14609 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14610 in a reduction PBB.
14611 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14612 that have already been marked as PBB_IS_REDUCTION.
14613
14614 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14615
14616 * graphite-scop-detection.c (same_close_phi_node): New.
14617 (remove_duplicate_close_phi): New.
14618 (make_close_phi_nodes_unique): New.
14619 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14620
14621 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14622
14623 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14624 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14625 of both data references to be the same.
14626
14627 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14628
14629 * graphite-dependences.c (build_lexicographical_constraint): Remove
14630 the gdim parameter.
14631 (build_lexicographical_constraint): Adjust call to
14632 ppl_powerset_is_empty.
14633 (dependence_polyhedron): Same.
14634 (graphite_legal_transform_dr): Same.
14635 (graphite_carried_dependence_level_k): Same.
14636 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14637 parameter.
14638 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14639
14640 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14641
14642 * graphite-sese-to-poly.c
14643 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14644 (close_phi_written_to_memory): New.
14645 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14646 and unshare_expr.
14647
14648 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14649
14650 * doc/install.texi: Update the expected version number of PPL to 0.11.
14651 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14652 #if PPL_VERSION_MINOR < 11.
14653
14654 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14655
14656 * graphite-dependences.c: Include graphite-cloog-util.h.
14657 (new_poly_ddr): Inlined into dependence_polyhedron.
14658 (free_poly_ddr): Moved close by new_poly_ddr.
14659 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14660 Early return NULL when ppl_powerset_is_empty returns true.
14661 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14662 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14663 (graphite_legal_transform_dr): Call new_poly_ddr.
14664 (graphite_carried_dependence_level_k): Same.
14665 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14666 (dot_transformed_deps_stmt_1): Removed.
14667 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14668 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14669 (dot_deps_1): Call dot_deps_2.
14670 * Makefile.in (graphite-dependences.o): Add missing dependence on
14671 graphite-cloog-util.h.
14672
14673 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14674
14675 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14676 (build_lexicographical_constraint): Same.
14677 (dependence_polyhedron_1): Same.
14678 (graphite_legal_transform_dr): Same.
14679 (graphite_carried_dependence_level_k): Same.
14680 * graphite-ppl.c (ppl_powerset_is_empty): New.
14681 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14682 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14683
14684 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14685
14686 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14687 the "a followed by b" relation and document it.
14688
14689 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14690
14691 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14692 iteration when the bag of constraints is empty.
14693
14694 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14695
14696 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14697
14698 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14699
14700 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14701 nest and two loop depths as parameters.
14702 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14703 lst_perfect_nestify.
14704
14705 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14706
14707 * graphite-dependences.c (print_pddr): Call
14708 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14709
14710 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14711
14712 * graphite-ppl.c (debug_gmp_value): New.
14713 * graphite-ppl.h (debug_gmp_value): Declared.
14714
14715 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14716
14717 * doc/install.texi: Document availability of cloog-0.16.
14718
14719 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14720
14721 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14722 invalid postdominance info.
14723
14724 2011-01-24 Jan Hubicka <jh@suse.cz>
14725
14726 PR c/21659
14727 * doc/extend.texi (weak pragma): Drop claim that it must
14728 appear before definition.
14729 * varasm.c (merge_weak, declare_weak): Only sanity check
14730 that DECL is not output at a time it is declared weak.
14731
14732 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14733
14734 * machmode.def: Fixed comments.
14735
14736 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14737
14738 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14739
14740 2011-01-24 Paul Koning <ni1d@arrl.net>
14741
14742 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14743 WORDS_BIG_ENDIAN.
14744
14745 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14746
14747 PR target/46519
14748 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14749 (block_info): Add scanned and prev.
14750 (move_or_delete_vzeroupper_2): Return if the basic block
14751 has been scanned and the upper 128bit state is unchanged
14752 from the last scan.
14753 (move_or_delete_vzeroupper_1): Return true if the exit
14754 state is changed.
14755 (move_or_delete_vzeroupper): Visit basic blocks using the
14756 work-list based algorithm based on vt_find_locations in
14757 var-tracking.c.
14758
14759 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14760
14761 2011-01-24 Nick Clifton <nickc@redhat.com>
14762
14763 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14764 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14765 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14766 then define __v850e1__.
14767 * doc/invoke.texi: Document -mv850es.
14768
14769 2011-01-24 Richard Henderson <rth@redhat.com>
14770
14771 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14772 compound unordered comparisons.
14773 * config/rx/rx.c (rx_split_fp_compare): Remove.
14774 * config/rx/rx-protos.h: Update.
14775 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14776 (cbranchsf4): Don't call rx_split_fp_compare.
14777 (*cbranchsf4): Use rx_split_cbranch.
14778 (*cmpsf): Don't accept "i" constraint.
14779 (*conditional_branch): Only valid after reload.
14780 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14781
14782 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14783
14784 PR target/47385
14785 * config/rs6000/altivec.md (vector constant splitters): Add
14786 support for creating vector single precision constants if -mvsx is
14787 used and we would create the constant using Altivec primitives.
14788
14789 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14790 Richard Sandiford <rdsandiford@googlemail.com>
14791
14792 PR rtl-optimization/47166
14793 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14794 mechanism for PRE_MODIFY and POST_MODIFY.
14795 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14796 reloadreg.
14797
14798 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14799
14800 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14801
14802 2011-01-22 Jan Hubicka <jh@suse.cz>
14803
14804 PR lto/47333
14805 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14806
14807 2011-01-22 Jan Hubicka <jh@suse.cz>
14808
14809 PR tree-optimization/43884
14810 PR lto/44334
14811 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14812 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14813
14814 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14815
14816 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14817 * config/s390/s390.c (s390_register_move_cost,
14818 s390_memory_move_cost): New.
14819 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14820
14821 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14822
14823 PR middle-end/47401
14824 * except.c (sjlj_assign_call_site_values): Move setting the
14825 crtl->uses_eh_lsda flag to ...
14826 (sjlj_mark_call_sites): ... here.
14827 (sjlj_emit_function_enter): Support NULL dispatch label.
14828 (sjlj_build_landing_pads): In a function with no landing pads
14829 that still has must-not-throw regions, generate code to register
14830 a personality function with empty LSDA.
14831
14832 2011-01-21 Richard Henderson <rth@redhat.com>
14833
14834 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14835
14836 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14837
14838 * compare-elim.c: New file.
14839 * Makefile.in (OBJS-common): Add it.
14840 (compare-elim.o): New.
14841 * common.opt (fcompare-elim): New.
14842 * opts.c (default_options_table): Add OPT_fcompare_elim.
14843 * tree-pass.h (pass_compare_elim_after_reload): New.
14844 * passes.c (init_optimization_passes): Add it.
14845 * recog.h: Protect against re-inclusion.
14846 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14847 * doc/invoke.texi (-fcompare-elim): Document it.
14848 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14849 * doc/tm.texi: Rebuild.
14850
14851 2011-01-22 Nick Clifton <nickc@redhat.com>
14852
14853 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14854 rx_split_fp_compare.
14855
14856 2011-01-22 Nick Clifton <nickc@redhat.com>
14857
14858 * config/rx/rx.md (UNSPEC_CONST): New.
14859 (deallocate_and_return): Wrap the amount popped off the stack in
14860 an UNSPEC_CONST in order to stop it being rejected by
14861 -mmax-constant-size.
14862 (pop_and_return): Add a "(return)" rtx.
14863 (call): Drop the immediate operand.
14864 (call_internal): Likewise.
14865 (call_value): Likewise.
14866 (call_value_internal): Likewise.
14867 (sibcall_internal): Likewise.
14868 (sibcall_value_internal): Likewise.
14869 (sibcall): Likewise. Generate an explicit call using
14870 sibcall_internal.
14871 (sibcall_value): Likewise.
14872 (mov<>): FAIL if a constant operand is not legitimate.
14873 (addsi3_unpsec): New pattern.
14874
14875 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14876 (ok_for_max_constant): New function.
14877 (gen_safe_add): New function.
14878 (rx_expand_prologue): Use gen_safe_add.
14879 (rx_expand_epilogue): Likewise.
14880 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14881 UNSPEC CONSTs.
14882
14883 2011-01-21 Jeff Law <law@redhat.com>
14884
14885 PR tree-optimization/47053
14886 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14887 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14888 statements are deleted.
14889 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14890 is nonempty, then purge dead edges and cleanup the CFG.
14891
14892 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14893
14894 PR debug/47402
14895 Temporarily revert:
14896 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14897 PR debug/47106
14898 * tree-dfa.c (create_var_ann): Mark variable as used.
14899
14900 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14901
14902 PR middle-end/45566
14903 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14904 notes from other section in hot/cold partitioning even if
14905 last_action is -3. Increment call_site_base.
14906
14907 PR rtl-optimization/47366
14908 * fwprop.c (forward_propagate_into): Return bool. If
14909 any changes are made, -fnon-call-exceptions is used and
14910 REG_EH_REGION note is present, call purge_dead_edges
14911 and return true if it purged anything.
14912 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14913 any EH edges were purged.
14914
14915 2011-01-21 Jeff Law <law@redhat.com>
14916
14917 PR rtl-optimization/41619
14918 * caller-save.c (setup_save_areas): Break out code to determine
14919 which hard regs are live across calls by examining the reload chains
14920 so that it is always used.
14921 Eliminate code which checked REG_N_CALLS_CROSSED.
14922
14923 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14924
14925 PR tree-optimization/47355
14926 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14927 NOP has non-debug uses beyond PHIs in new_bb.
14928
14929 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14930
14931 PR debug/47106
14932 * cfgexpand.c (account_used_vars_for_block): Only account vars
14933 that are annotated as used.
14934 (estimated_stack_frame_size): Don't set TREE_USED.
14935 * tree-dfa.c (create_var_ann): Mark variable as used.
14936
14937 2011-01-21 Richard Guenther <rguenther@suse.de>
14938
14939 PR middle-end/47395
14940 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14941
14942 2011-01-21 Richard Guenther <rguenther@suse.de>
14943
14944 PR tree-optimization/47365
14945 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14946 (vn_reference_lookup_pieces): Adjust.
14947 (vn_reference_lookup): Likewise.
14948 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14949 (vn_reference_lookup_3): Only look through kills if in
14950 VN_WALKREWRITE mode.
14951 (vn_reference_lookup_pieces): Adjust.
14952 (vn_reference_lookup): Likewise.
14953 (visit_reference_op_load): Likewise.
14954 (visit_reference_op_store): Likewise.
14955 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14956 (compute_avail): Likewise.
14957 (eliminate): Likewise.
14958
14959 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14960
14961 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14962 DECL_IGNORED_P non-reg vars if they are used.
14963
14964 PR tree-optimization/47391
14965 * varpool.c (const_value_known_p): Return false if
14966 decl is volatile.
14967
14968 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14969
14970 PR bootstrap/47215
14971 * config/i386/i386.c (ix86_local_alignment): Handle
14972 case for va_list_type_node is nil.
14973 (ix86_canonical_va_list_type): Likewise.
14974
14975 2011-01-21 Alan Modra <amodra@gmail.com>
14976
14977 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14978 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14979
14980 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14981
14982 * config/arm/arm.md (define_attr type): Rename f_load
14983 and f_store to f_fpa_load and f_fpa_store. Update.
14984 (write_conflict): Deal with rename fallout.
14985 (*push_fp_multi): Likewise.
14986 * config/arm/fpa.md (f_load): Use f_fpa_load.
14987 (f_store): Use f_fpa_store.
14988 (*movsf_fpa): Likewise.
14989 (*movdf_fpa): Likewise.
14990 (*movxf_fpa): Likewise.
14991 (*thumb2_movsf_fpa): Likewise.
14992 (*thumb2_movdf_fpa): Likewise.
14993 (*thumb2_movxf_fpa): Likewise.
14994 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14995 f_loadd and f_stored.
14996 (*thumb2_movdi_vfp): Likewise.
14997 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14998 (*thumb2_movsi_vfp): Likewise.
14999 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15000 Use f_loads instead of f_load.
15001 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15002
15003 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15004
15005 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15006 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15007 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15008 (xtensa_mode_dependent_address_p): New function.
15009 (constantpool_address_p): Make static. Change return type to bool.
15010 Change argument type to const_rtx. Use CONST_INT_P predicate.
15011
15012 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15013
15014 PR debug/46583
15015 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15016
15017 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15018
15019 PR debug/47283
15020 * cfgexpand.c (expand_debug_expr): Instead of generating
15021 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15022 etc. handling.
15023
15024 2011-01-20 Richard Guenther <rguenther@suse.de>
15025
15026 PR middle-end/47370
15027 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15028 the pointer operand of MEM_REFs.
15029
15030 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15031
15032 PR tree-optimization/46130
15033 * ipa-split.c (consider_split): If return_bb contains non-virtual
15034 PHIs other than for retval or if split_function would not adjust it,
15035 refuse to split.
15036
15037 2011-01-20 Richard Guenther <rguenther@suse.de>
15038
15039 PR tree-optimization/47167
15040 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15041 Revert previous change, only avoid enumeral type changes.
15042
15043 2011-01-19 Mike Stump <mikestump@comcast.net>
15044
15045 * doc/tm.texi.in (BRANCH_COST): Englishify.
15046 * doc/tm.texi (BRANCH_COST): Likewise.
15047
15048 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15049
15050 PR c++/47291
15051 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15052 (gen_scheduled_generic_parms_dies): New functions.
15053 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15054 generation for the end of CU compilation.
15055 (dwarf2out_finish): Generate template parameters DIEs here.
15056
15057 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15058
15059 PR debug/46240
15060 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15061 debug bind stmt on merge edges.
15062
15063 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15064
15065 PR debug/47079
15066 PR debug/46724
15067 * function.c (instantiate_expr): Instantiate incoming rtl of
15068 implicit arguments, and recurse on VALUE_EXPRs.
15069 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15070 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15071
15072 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15073
15074 * c-parser.c (c_parser_for_statement): Initialize
15075 collection_expression.
15076
15077 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15078
15079 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15080
15081 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15082
15083 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15084 (LINK_SHLIB_SPEC): Don't use %(link_path).
15085 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15086
15087 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15088
15089 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15090 (NO_SHARED_LIB_SUPPORT): Remove.
15091 (LINK_SHLIB_SPEC): Remove one conditional definition.
15092
15093 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15094
15095 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15096 %{call_shared}.
15097 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15098 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15099 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15100 %{call_shared} and conditionals on these options not being passed.
15101 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15102 %{call_shared}.
15103
15104 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15105
15106 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15107 simplify.
15108
15109 * ipa-split.c: Spelling fixes.
15110
15111 2011-01-19 Richard Henderson <rth@redhat.com>
15112
15113 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15114 (*mulsi3): Likewise.
15115
15116 * longlong.h [__mn10300__] (count_leading_zeros): New.
15117 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15118 [__mn10300__] (add_ssaaaa, subddmmss): New.
15119 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15120 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15121
15122 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15123
15124 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15125
15126 2011-01-19 Richard Henderson <rth@redhat.com>
15127
15128 * config/mn10300/mn10300.md (addsi3_flags): New.
15129 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15130 (subsi3_flags, subc_internal, subdi3): New.
15131 (subdi3_internal, *subdi3_degenerate): New.
15132 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15133
15134 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15135 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15136 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15137 * config/mn10300/mn10300-protos.h: Update.
15138 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15139 (return_ret): Likewise. Rename from return_internal_regs.
15140 (return_internal): Remove.
15141
15142 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15143 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15144 (mn10300_legitimate_constant_p): Likewise.
15145 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15146 (mn10300_frame_size): New.
15147 (mn10300_expand_prologue): Use it.
15148 (mn10300_expand_epilogue): Likewise.
15149 (mn10300_initial_offset): Likewise.
15150 * config/mn10300/mn10300-protos.h: Update.
15151 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15152 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15153 (prologue, epilogue, return_internal): Tidy output code.
15154 (mn10300_store_multiple_operation, return): Likewise.
15155 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15156 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15157 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15158 (load_pic, am33_load_pic): New.
15159 (mn10300_load_pic0, mn10300_load_pic1): New.
15160
15161 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15162 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15163 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15164 (cc_flags_for_mode, cc_flags_for_code): New.
15165 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15166 overflow flag is not valid. Validate that the flags we need
15167 for the comparison are valid.
15168 (mn10300_output_cmp): Remove.
15169 (mn10300_output_add): New.
15170 (mn10300_select_cc_mode): Use cc_flags_for_code.
15171 (mn10300_split_cbranch): New.
15172 (mn10300_match_ccmode): New.
15173 (mn10300_split_and_operand_count): New.
15174 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15175 to the function.
15176 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15177 (addsi3): ... here. Use mn10300_output_add.
15178 (*addsi3_flags): New.
15179 (*am33_subsi3, *mn10300_subsi3): Merge...
15180 (subsi3): ... here. Use attribute isa.
15181 (*subsi3_flags): New.
15182 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15183 when possible.
15184 (*am33_andsi3, *mn10300_andsi3): Merge...
15185 (andsi3): ... here.
15186 (*andsi3_flags): New.
15187 (andsi3 splitters): New.
15188 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15189 (iorsi3): ... here.
15190 (*iorsi3_flags): New.
15191 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15192 (xorsi3): ... here.
15193 (*xorsi3_flags): New.
15194 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15195 (one_cmplsi2): ... here.
15196 (*one_cmplsi2_flags): New.
15197 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15198 instead of "dax" in constraints. Use mn10300_split_cbranch.
15199 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15200 use matching constraints to eliminate a self-comparison.
15201 (*integer_conditional_branch): Rename from integer_conditional_branch.
15202 Use int_mode_flags to match CC_REG.
15203 (*cbranchsi4_btst, *btstsi): New.
15204 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15205 mn10300_split_cbranch.
15206 (*am33_cmpsf): Rename from am33_cmpsf.
15207 (*float_conditional_branch): Rename from float_conditional_branch.
15208 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15209 (zero_extendqisi2): ... here.
15210 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15211 (zero_extendhisi2): ... here.
15212 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15213 (extendqisi2): ... here.
15214 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15215 (extendhisi2): ... here.
15216 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15217 (ashlsi3): ... here.
15218 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15219 (lshrsi3): ... here.
15220 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15221 (ashrsi3): ... here.
15222 (consecutive add peephole): Remove.
15223 * config/mn10300/predicates.md (label_ref_operand): New.
15224 (int_mode_flags): New.
15225 (CCZN_comparison_operator): New.
15226
15227 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15228 (throughput_42_latency_43): New reservation.
15229 (mulsidi3, umulsidi3): New expanders.
15230 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15231 the MDR register to allocation; separately allocate the low and
15232 high parts of the DImode result.
15233 (umulsidi3_internal): Similarly.
15234 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15235 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15236 (udivsi3, umodsi3): Remove.
15237 (udivmodsi4, divmodsi4): New expanders.
15238 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15239 (*divmodsi4): Simiarly.
15240 (ext_internal): New.
15241
15242 * config/mn10300/constraints.md ("z"): New constraint.
15243 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15244 (FIXED_REGISTERS): Don't fix MDR.
15245 (CALL_USED_REGSITERS): Reformat nicely.
15246 (REG_ALLOC_ORDER): Add MDR.
15247 (enum regclass): Add MDR_REGS.
15248 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15249 (IRA_COVER_CLASSES): Add MDR_REGS.
15250 (REGNO_REG_CLASS): Handle MDR_REG.
15251 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15252 (mn10300_register_move_cost): Likewise.
15253 * config/mn10300/mn10300.md (MDR_REG): New.
15254 (*movsi_internal): Handle moves to/from MDR_REGS.
15255
15256 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15257 POST_MODIFY.
15258 (mn10300_secondary_reload): Tidy combination reload classes.
15259 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15260 addresses for AM33. Allow symbolic offsets for reg+imm.
15261 (mn10300_regno_in_class_p): New.
15262 (mn10300_legitimize_reload_address): New.
15263 * config/mn10300/mn10300.h (enum reg_class): Remove
15264 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15265 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15266 SP_OR_GENERAL_REGS.
15267 (REG_CLASS_NAMES): Update to match.
15268 (REG_CLASS_CONTENTS): Likewise.
15269 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15270 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15271 (REGNO_IN_RANGE_P): Remove.
15272 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15273 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15274 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15275 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15276 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15277 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15278 (REGNO_GENERAL_P): New.
15279 (HAVE_POST_MODIFY_DISP): New.
15280 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15281 (LEGITIMIZE_RELOAD_ADDRESS): New.
15282 * config/mn10300/mn10300-protos.h: Update.
15283
15284 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15285 DATA_REGS for AM33 stack-pointer destination.
15286 (mn10300_preferred_output_reload_class): Likewise.
15287 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15288 into a form appropriate for ...
15289 (TARGET_SECONDARY_RELOAD): New.
15290 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15291 * config/mn10300/mn10300-protos.h: Update.
15292 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15293 reload_insi; use the "A" constraint for the scratch; handle AM33
15294 moves of sp to non-address registers.
15295
15296 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15297 (*movqi_internal): ... here.
15298 (*am33_movhi, *mn10300_movhi): Merge into...
15299 (*movhi_internal): ... here.
15300 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15301 as the source/destination of moves from/to SP.
15302 (movsf): Only allow for AM33-2.
15303 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15304 any integer constant constraint. Only allow for AM33-2. Tidy
15305 all of the alternative outputs.
15306 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15307 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15308 for MN103.
15309 (udivsi3, umodsi3): New patterns for MN103 only.
15310
15311 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15312
15313 * doc/tm.texi.in: Spell out that a lack of register class unions
15314 can lead to ICEs.
15315 * doc/tm.texi: Regenerate.
15316
15317 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15318
15319 PR rtl-optimization/47337
15320 * dce.c (check_argument_store): New function.
15321 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15322
15323 PR tree-optimization/47290
15324 * tree-eh.c (infinite_empty_loop_p): New function.
15325 (cleanup_empty_eh): Use it.
15326
15327 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15328
15329 PR target/46997
15330 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15331 (a64_expand_widen_sum): Ditto.
15332 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15333 (vec_extract_evenodd_help): Ditto.
15334 (vec_extract_evenv4hi): Ditto.
15335 (vec_extract_oddv4hi): Ditto.
15336 (vec_extract_evenv2si): Ditto.
15337 (vec_extract_oddv2si): Ditto.
15338 (vec_extract_evenv2sf): Ditto.
15339 (vec_extract_oddv2sf): Ditto.
15340 (vec_pack_trunc_v4hi: Ditto.
15341 (vec_pack_trunc_v2si): Ditto.
15342 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15343 (vec_interleave_highv8qi): Ditto.
15344 (mix1_r): Ditto.
15345 (vec_extract_oddv8qi): Ditto.
15346 (vec_interleave_lowv4hi): Ditto.
15347 (vec_interleave_highv4hi): Ditto.
15348 (vec_interleave_lowv2si): Ditto.
15349 (vec_interleave_highv2si): Ditto.
15350
15351 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15352
15353 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15354 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15355 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15356 (pa_c_mode_for_suffix): New.
15357 (TARGET_EXPAND_BUILTIN): Define.
15358 (TARGET_C_MODE_FOR_SUFFIX): Define.
15359 (pa_builtins): Define.
15360 (pa_init_builtins): Register __float128 type and init new support
15361 builtins.
15362 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15363 * config/pa/quadlib.c (_U_Qfcopysign): New.
15364
15365 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15366
15367 PR middle-end/46894
15368 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15369 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15370 are defined.
15371
15372 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15373
15374 PR tree-optimization/47179
15375 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15376 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15377
15378 2011-01-18 Richard Guenther <rguenther@suse.de>
15379
15380 PR rtl-optimization/47216
15381 * emit-rtl.c: Include tree-flow.h.
15382 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15383 of replicating it with different semantics.
15384 * Makefile.in (emit-rtl.o): Adjust.
15385
15386 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15387
15388 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15389 (cortex_a9_dp): Handle neon types correctly.
15390
15391 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15392
15393 PR rtl-optimization/47299
15394 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15395 subtarget. Use normal multiplication if both operands are constants.
15396 * expmed.c (expand_widening_mult): Don't try to optimize constant
15397 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15398 before using it.
15399
15400 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15401
15402 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15403 spacing after 'e.g.', typos, comma, hyphenation.
15404
15405 2011-01-17 Richard Henderson <rth@redhat.com>
15406
15407 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15408 (rx_restricted_mem_operand): New.
15409 (rx_shift_operand): Use register_operand.
15410 (rx_source_operand, rx_compare_operand): Likewise.
15411 * config/rx/rx.md (addsi3_flags): New expander.
15412 (adddi3): Rewrite as expander.
15413 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15414 (subsi3_flags): New expander.
15415 (subdi3): Rewrite as expander.
15416 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15417
15418 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15419 (rx_init_builtins): Remove sat builtin.
15420 (rx_expand_builtin): Likewise.
15421 * config/rx/rx.md (ssaddsi3): New.
15422 (*sat): Rename from sat. Represent the CC_REG input.
15423
15424 * config/rx/predicates.md (rshift_operator): New.
15425 * config/rx/rx.c (rx_expand_insv): Remove.
15426 * config/rx/rx-protos.h: Update.
15427 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15428 operand to the canonical position.
15429 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15430 (*bitclr, *bitclr_in_memory): Similarly.
15431 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15432 (insv): Retain the zero_extract in the expansion.
15433
15434 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15435 (bswaphi2, bitinvert, revw): Likewise.
15436
15437 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15438 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15439 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15440 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15441 (bitset, bitset_in_memory): Likewise.
15442 (bitinvert, bitinvert_in_memory): Likewise.
15443 (bitclr, bitclr_in_memory): Likewise.
15444 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15445 (rx_strend, rx_cmpstrn): Likewise.
15446 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15447 (bitop peep2 patterns): Remove.
15448
15449 * config/rx/rx.c (rx_match_ccmode): New.
15450 * config/rx/rx-protos.h: Update.
15451 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15452 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15453 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15454 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15455 (fix_truncsfsi2, floatsisf2): Likewise.
15456 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15457 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15458 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15459 (*subsi3_flags, *xorsi3_flags): New.
15460
15461 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15462
15463 * config/rx/rx.c (rx_print_operand): Remove workaround for
15464 unsplit comparison operations.
15465
15466 * config/rx/rx.md (movsicc): Split after reload.
15467 (*movsicc): Merge *movsieq and *movsine via match_operator.
15468 (*stcc): New pattern.
15469
15470 * config/rx/rx.c (rx_float_compare_mode): Remove.
15471 * config/rx/rx.h (rx_float_compare_mode): Remove.
15472 * config/rx/rx.md (cstoresi4): Split after reload.
15473 (*sccc): New pattern.
15474
15475 * config/rx/predicates.md (label_ref_operand): New.
15476 (rx_z_comparison_operator): New.
15477 (rx_zs_comparison_operator): New.
15478 (rx_fp_comparison_operator): New.
15479 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15480 Validate that the flags are set properly for the comparison.
15481 (rx_gen_cond_branch_template): Remove.
15482 (rx_cc_modes_compatible): Remove.
15483 (mode_from_flags): New.
15484 (flags_from_code): Rename from flags_needed_for_conditional.
15485 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15486 (rx_select_cc_mode): Likewise.
15487 (rx_split_fp_compare): New.
15488 (rx_split_cbranch): New.
15489 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15490 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15491 (*cbranchsf4): Similarly.
15492 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15493 match_operator and rx_split_cbranch.
15494 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15495 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15496 (*cmpsi): Rename from cmpsi.
15497 (*tstsi): Rename from tstsi.
15498 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15499 (*conditional_branch): Rename from conditional_branch.
15500 (*reveresed_conditional_branch): Remove.
15501 (b<code>): Remove expander.
15502 * config/rx/rx-protos.h: Update.
15503
15504 * config/rx/rx.c (rx_compare_redundant): Remove.
15505 * config/rx/rx.md (cmpsi): Don't use it.
15506 * config/rx/rx-protos.h: Update.
15507
15508 * config/rx/rx-modes.def (CC_F): New mode.
15509 * config/rx/rx.c (rx_select_cc_mode): New.
15510 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15511 * config/rx/rx-protos.h: Update.
15512
15513 2011-01-17 Richard Henderson <rth@redhat.com>
15514
15515 * except.c (dump_eh_tree): Fix stray ; after for statement.
15516
15517 2011-01-17 Richard Guenther <rguenther@suse.de>
15518
15519 PR tree-optimization/47313
15520 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15521 handling before copying the body. Properly deal with
15522 by-reference result in SSA form.
15523
15524 2011-01-17 Ian Lance Taylor <iant@google.com>
15525
15526 PR target/47219
15527 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15528 (struct_value_alias_set): Don't define.
15529 (sparc_option_override): Don't set sparc_sr_alias_set and
15530 struct_value_alias_set.
15531 (save_or_restore_regs): Use gen_frame_mem rather than calling
15532 set_mem_alias_set.
15533 (sparc_struct_value_rtx): Likewise.
15534
15535 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15536
15537 PR target/47318
15538 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15539 (_mm_maskstore_pd): Likewise.
15540 (_mm_maskload_ps): Likewise.
15541 (_mm_maskstore_ps): Likewise.
15542 (_mm256_maskload_pd): Change mask to __m256i.
15543 (_mm256_maskstore_pd): Likewise.
15544 (_mm256_maskload_ps): Likewise.
15545 (_mm256_maskstore_ps): Likewise.
15546
15547 * config/i386/i386-builtin-types.def: Updated.
15548 (ix86_expand_special_args_builtin): Likewise.
15549
15550 * config/i386/i386.c (bdesc_special_args): Update
15551 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15552 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15553 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15554 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15555
15556 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15557 Use <avxpermvecmode> on mask register.
15558 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15559
15560 2011-01-17 Olivier Hainque <hainque@adacore.com>
15561 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15562 Eric Botcazou <ebotcazou@adacore.com>
15563
15564 PR target/46655
15565 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15566 if <= USHRT_MAX in 32-bit mode.
15567
15568 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15569
15570 * doc/install.texi (Configuration, Specific): Wrap long
15571 lines in examples. Allow line wrapping in long options
15572 and URLs where beneficial for PDF output.
15573
15574 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15575
15576 * config/mips/mips.c (mips_classify_symbol): Don't return
15577 SYMBOL_PC_RELATIVE for nonlocal labels.
15578
15579 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15580
15581 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15582
15583 2011-01-15 Jan Hubicka <jh@suse.cz>
15584
15585 PR tree-optimization/47276
15586 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15587 declarations as needed.
15588
15589 2011-01-15 Martin Jambor <mjambor@suse.cz>
15590
15591 * common.opt (fdevirtualize): New flag.
15592 * doc/invoke.texi (Option Summary): Document it.
15593 * opts.c (default_options_table): Add devirtualize flag.
15594 * ipa-prop.c (detect_type_change): Return immediately if
15595 devirtualize flag is not set.
15596 (detect_type_change_ssa): Likewise.
15597 (compute_known_type_jump_func): Likewise.
15598 (ipa_analyze_virtual_call_uses): Likewise.
15599
15600 2011-01-14 Martin Jambor <mjambor@suse.cz>
15601
15602 PR tree-optimization/45934
15603 PR tree-optimization/46302
15604 * ipa-prop.c (type_change_info): New type.
15605 (stmt_may_be_vtbl_ptr_store): New function.
15606 (check_stmt_for_type_change): Likewise.
15607 (detect_type_change): Likewise.
15608 (detect_type_change_ssa): Likewise.
15609 (compute_complex_assign_jump_func): Check for dynamic type change.
15610 (compute_complex_ancestor_jump_func): Likewise.
15611 (compute_known_type_jump_func): Likewise.
15612 (compute_scalar_jump_functions): Likewise.
15613 (ipa_analyze_virtual_call_uses): Likewise.
15614 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15615
15616 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15617
15618 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15619 * config/i386/i386.opt (msse5): New Alias.
15620
15621 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15622
15623 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15624 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15625 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15626 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15627
15628 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15629
15630 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15631 -mcpu options.
15632 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15633 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15634 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15635 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15636 Likewise.
15637 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15638
15639 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15640
15641 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15642
15643 2011-01-14 Mike Stump <mikestump@comcast.net>
15644
15645 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15646 * config/fr30/fr30.md: Likweise
15647 (movsi_push): Likewise.
15648 (movsi_pop): Likewise.
15649 (enter_func): Likewise.
15650 * config/moxie/moxie.md (movsi_push): Likewise.
15651 (movsi_pop): Likewise.
15652
15653 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15654
15655 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15656 %{no_archive} %{exact_version}.
15657 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15658 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15659 %{no_archive} %{exact_version}.
15660 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15661 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15662 * config/mips/vxworks.h: Likewise.
15663
15664 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15665
15666 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15667
15668 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15669
15670 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15671 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15672
15673 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15674
15675 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15676 -nodefaultlib.
15677
15678 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15679
15680 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15681 for mcpu not cpu.
15682 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15683 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15684 not cpu.
15685 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15686 Don't handle -shlib.
15687
15688 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15689
15690 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15691 (CC1_SPEC): Don't handle -profile.
15692
15693 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15694
15695 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15696 * config/mips/mips.h (CC1_SPEC): Likewise.
15697
15698 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15699
15700 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15701 * config/mips/mips.h (CC1_SPEC): Likewise.
15702
15703 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15704
15705 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15706 * config/m32r/linux.h (LINK_SPEC): Likewise.
15707 * config/mips/linux.h (LINK_SPEC): Likewise.
15708 * config/mips/linux64.h (LINK_SPEC): Likewise.
15709 * config/sparc/linux.h (LINK_SPEC): Likewise.
15710 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15711 LINK_SPEC): Likewise.
15712 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15713
15714 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15715
15716 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15717 %{version:-v}.
15718 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15719
15720 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15721
15722 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15723 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15724
15725 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15726
15727 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15728
15729 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15730
15731 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15732 supports -Bstatic/-Bdynamic.
15733 * configure: Regenerate.
15734
15735 2011-01-14 Jan Hubicka <jh@suse.cz>
15736 Jack Howarth <howarth@bromo.med.uc.edu>
15737
15738 PR target/46037
15739 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15740 when checking debug_info_level. Test write_symbols instead of
15741 debug_hooks->var_location when setting flag_var_tracking_uninit.
15742
15743 2011-01-14 Richard Guenther <rguenther@suse.de>
15744
15745 PR tree-optimization/47179
15746 * target.def (ref_may_alias_errno): New target hook.
15747 * targhooks.h (default_ref_may_alias_errno): Declare.
15748 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15749 (default_ref_may_alias_errno): New function.
15750 * target.h (struct ao_ref_s): Declare.
15751 * tree-ssa-alias.c: Include target.h.
15752 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15753 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15754 (targhooks.o): Likewise.
15755 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15756 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15757
15758 2011-01-14 Richard Guenther <rguenther@suse.de>
15759
15760 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15761
15762 2011-01-14 Richard Guenther <rguenther@suse.de>
15763
15764 PR tree-optimization/47280
15765 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15766 return CFG changes.
15767 (tree_ssa_forward_propagate_single_use_vars): Deal with
15768 CFG changes from associate_plusminus.
15769
15770 2011-01-14 Richard Guenther <rguenther@suse.de>
15771
15772 PR middle-end/47281
15773 Revert
15774 2011-01-11 Richard Guenther <rguenther@suse.de>
15775
15776 PR tree-optimization/46076
15777 * tree-ssa.c (useless_type_conversion_p): Conversions from
15778 unprototyped to empty argument list function types are useless.
15779
15780 2011-01-14 Richard Guenther <rguenther@suse.de>
15781
15782 PR tree-optimization/47286
15783 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15784
15785 2011-01-14 Martin Jambor <mjambor@suse.cz>
15786
15787 PR middle-end/46823
15788 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15789
15790 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15791
15792 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15793 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15794 * config/xtensa/xtensa.c (xtensa_libcall_value,
15795 xtensa_function_value_regno_p): New functions.
15796 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15797
15798 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15799
15800 PR c++/47213
15801 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15802 PE specific hook.
15803 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15804 New function prototype.
15805 * config/i386/winnt.c (i386_pe_assemble_visibility):
15806 Warn only if attribute was specified by user.
15807
15808 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15809
15810 PR target/47251
15811 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15812 floating point.
15813 (floatunsdidf2_fcfidu): Ditto.
15814
15815 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15816
15817 * config/s390/s390.c (print_operand_address): Replace 'error' with
15818 'output_operand_lossage'.
15819 (print_operand): Likewise.
15820
15821 2011-01-13 Jeff Law <law@redhat.com>
15822
15823 PR rtl-optimization/39077
15824 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15825 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15826 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15827 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15828 * gcse.c (prune_insertions_deletions): New function.
15829 (compute_pre_data): Use it.
15830
15831 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15832
15833 PR debug/PR46973
15834 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15835 static function.
15836 (prune_unused_types_mark): Use it.
15837
15838 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15839
15840 PR rtl-optimization/45352
15841 * sel-sched.c: Update copyright years.
15842 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15843 in the advancing loop when we have issued issue_rate insns.
15844
15845 2011-01-12 Richard Henderson <rth@redhat.com>
15846
15847 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15848 (TARGET_MD_ASM_CLOBBERS): New.
15849
15850 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15851 (TARGET_DELEGITIMIZE_ADDRESS): New.
15852
15853 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15854 (clzsi2, *bsch): New patterns.
15855
15856 * config/mn10300/mn10300.md (INT): New mode iterator.
15857 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15858
15859 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15860 flag_split_wide_types.
15861
15862 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15863 (mn10300_trampoline_init): Rewrite without a template, an immediate
15864 load and a direct branch.
15865 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15866
15867 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15868
15869 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15870 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15871 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15872 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15873
15874 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15875
15876 PR debug/47209
15877 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15878 of type.
15879
15880 2011-01-12 Jan Hubicka <jh@suse.cz>
15881
15882 PR driver/47244
15883 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15884 (PLUGIN_COND_CLOSE): New macro.
15885 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15886
15887 2011-01-12 Richard Guenther <rguenther@suse.de>
15888
15889 PR lto/47259
15890 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15891 register variables in a MEM_REF.
15892
15893 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15894
15895 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15896 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15897 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15898 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15899 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15900 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15901 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15902 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15903 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15904 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15905 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15906 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15907 * config/gnu-user.h: New. Copied from linux.h.
15908 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15909 GNU_USER_TARGET_STARTFILE_SPEC.
15910 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15911 GNU_USER_TARGET_ENDFILE_SPEC.
15912 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15913 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15914 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15915 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15916 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15917 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15918 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15919 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15920 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15921 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15922 * config/arm/linux-eabi.h (CC1_SPEC): Use
15923 GNU_USER_TARGET_CC1_SPEC.
15924 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15925 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15926 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15927 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15928 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15929 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15930 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15931 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15932
15933 2011-01-12 Richard Guenther <rguenther@suse.de>
15934
15935 PR other/46946
15936 * doc/invoke.texi (ffast-math): Document it is turned on
15937 with -Ofast.
15938
15939 2011-01-12 Jan Hubicka <jh@suse.cz>
15940
15941 PR tree-optimization/47233
15942 * opts.c (common_handle_option): Disable ipa-reference with profile
15943 feedback.
15944
15945 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15946
15947 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15948 error message.
15949
15950 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15951
15952 * c-parser.c (c_lex_one_token): Updated and reindented some
15953 comments. No changes in code.
15954
15955 2011-01-11 Ian Lance Taylor <iant@google.com>
15956
15957 * godump.c (go_output_var): Don't output the variable if there is
15958 already a type with the same name.
15959
15960 2011-01-11 Ian Lance Taylor <iant@google.com>
15961
15962 * godump.c (go_format_type): Don't generate float80.
15963
15964 2011-01-11 Richard Henderson <rth@redhat.com>
15965
15966 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15967 declaration. Rewrite for both speed and size.
15968 (mn10300_address_cost_1): Remove.
15969 (mn10300_register_move_cost): New.
15970 (mn10300_memory_move_cost): New.
15971 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15972 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15973 extensions, shifts, BSWAP, CLZ.
15974 (mn10300_wide_const_load_uses_clr): Remove.
15975 (TARGET_REGISTER_MOVE_COST): New.
15976 (TARGET_MEMORY_MOVE_COST): New.
15977 * config/mn10300/mn10300-protos.h: Update.
15978 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15979
15980 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15981 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15982 * config/mn10300/mn10300-protos.h: Update.
15983 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15984 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15985 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15986 (*test_int_bitfield, *test_byte_bitfield): Remove.
15987 (*bit_test, *subreg_bit_test): Remove.
15988 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15989
15990 * config/mn10300/constraints.md ("c"): Rename from "A".
15991 ("A", "D"): New constraint letters.
15992 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15993 (fmssf4, fnmasf4, fnmssf4): Likewise.
15994
15995 * config/mn10300/mn10300.md (isa): New attribute.
15996 (enabled): New attribute.
15997
15998 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15999 (abssf2, negsf2): Define only for hardware fp.
16000 (sqrtsf2): Reformat.
16001 (addsf3, subsf3, mulsf3): Merge expander and insn.
16002
16003 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16004 (DEBUGGER_AUTO_OFFSET): Remove.
16005 (DEBUGGER_ARG_OFFSET): Remove.
16006
16007 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16008 Emit register stores with the same offsets as the hardware.
16009 (mn10300_store_multiple_operation): Don't check that the register
16010 save offsets are monotonic.
16011 * config/mn10300/mn10300-protos.h: Update.
16012
16013 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16014
16015 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16016 in terms of the value on the stack, not the MDR register.
16017
16018 2011-01-11 Jan Hubicka <jh@suse.cz>
16019
16020 PR lto/45721
16021 PR lto/45375
16022 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16023 (symbol_alias_set_destroy, symbol_alias_set_contains,
16024 propagate_aliases_backward): Declare.
16025 * lto-streamer-out.c (struct sets): New sturcture.
16026 (trivally_defined_alias): New function.
16027 (output_alias_pair_p): Rewrite.
16028 (output_unreferenced_globals): Fix output of alias pairs.
16029 (produce_symtab): Likewise.
16030 * ipa.c (function_and_variable_visibility): Set weak alias destination
16031 as needed in lto.
16032 * varasm.c (symbol_alias_set_t): Remove.
16033 (symbol_alias_set_destroy): Export.
16034 (propagate_aliases_forward, propagate_aliases_backward): New functions
16035 based on ...
16036 (compute_visible_aliases): ... this one; remove.
16037 (trivially_visible_alias): New
16038 (trivially_defined_alias): New.
16039 (remove_unreachable_alias_pairs): Rewrite.
16040 (finish_aliases_1): Reorganize code checking if alias is defined.
16041 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16042 in LTO mode.
16043
16044 2011-01-11 Richard Guenther <rguenther@suse.de>
16045
16046 PR tree-optimization/46076
16047 * tree-ssa.c (useless_type_conversion_p): Conversions from
16048 unprototyped to empty argument list function types are useless.
16049
16050 2011-01-11 Richard Guenther <rguenther@suse.de>
16051
16052 PR middle-end/45235
16053 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16054 volatile MEMs as MEM_READONLY_P.
16055
16056 2011-01-11 Richard Guenther <rguenther@suse.de>
16057
16058 PR tree-optimization/47239
16059 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16060
16061 2011-01-11 Jeff Law <law@redhat.com>
16062
16063 PR tree-optimization/47086
16064 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16065 IVs from statements that might throw.
16066
16067 2011-01-10 Jan Hubicka <jh@suse.cz>
16068
16069 PR lto/45375
16070 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16071
16072 2011-01-10 Jan Hubicka <jh@suse.cz>
16073
16074 PR lto/45375
16075 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16076 when correcting profile.
16077
16078 2011-01-10 Jan Hubicka <jh@suse.cz>
16079
16080 PR lto/46083
16081 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16082 DECL_FINI_PRIORITY.
16083 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16084 Restore DECL_FINI_PRIORITY.
16085
16086 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16087
16088 * doc/gimple.texi: Fix quoting of multi-word return values in
16089 @deftypefn statements. Ensure presence of return value. Wrap
16090 overlong @deftypefn lines.
16091 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16092 descriptions of removed functions.
16093 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16094 of multi-word return value in @deftypefn statement.
16095
16096 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16097
16098 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16099 (Conditional Expressions, Logical Operators)
16100 (Statement and operand traversals): Do not indent smallexample
16101 code. Fix duplicate function argument in example.
16102
16103 2011-01-10 Jeff Law <law@redhat.com>
16104
16105 PR tree-optimization/47141
16106 * ipa-split.c (split_function): Handle case where we are
16107 returning a value and the return block has a virtual operand phi.
16108
16109 2011-01-10 Jan Hubicka <jh@suse.cz>
16110
16111 PR tree-optimization/47234
16112 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16113 (pass_feedback_split_functions): Declare.
16114 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16115 tree-profile.
16116 * ipa-split.c (gate_split_functions): Update comments; disable
16117 split-functions for profile_arc_flag and branch_probabilities.
16118 (gate_feedback_split_functions): New function.
16119 (execute_feedback_split_functions): New function.
16120 (pass_feedback_split_functions): New global var.
16121
16122 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16123
16124 PR lto/46760
16125 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16126 calling gimple_call_set_cannot_inline.
16127
16128 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16129
16130 * config/darwin-sections.def: Remove unused section.
16131
16132 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16133
16134 PR c++/47218
16135 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16136
16137 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16138
16139 PR objc/47232
16140 * c-parser.c (c_parser_declaration_or_fndef): Improved
16141 error message.
16142
16143 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16144
16145 * config/i386/winnt.c (i386_pe_start_function): Make sure
16146 to switch back to function's section.
16147
16148 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16149
16150 PR gcc/46902
16151 PR testsuite/46912
16152 * plugin.c: Move include of dlfcn.h from here...
16153 * system.h: ... to here.
16154
16155 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16156
16157 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16158 file name.
16159 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16160 two extra empty pages in PDF output.
16161
16162 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16163
16164 PR objc/47078
16165 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16166 for error recovery purposes behave as if it was not specified so
16167 that the default type is usd.
16168
16169 2011-01-07 Jan Hubicka <jh@suse.cz>
16170
16171 PR tree-optmization/46469
16172 * ipa.c (function_and_variable_visibility): Clear needed flags on
16173 nodes with external decls; handle weakrefs merging correctly.
16174
16175 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16176
16177 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16178 not false.
16179
16180 2011-01-07 Jan Hubicka <jh@suse.cz>
16181
16182 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16183 and no longer claim that gold is required for linker plugin.
16184 * configure: Regenerate.
16185 * gcc.c (PLUGIN_COND): New macro.
16186 (LINK_COMMAND_SPEC): Use it.
16187 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16188 * config.in (HAVE_LTO_PLUGIN): New.
16189 * configure.ac (--with-lto-plugin): New parameter; autodetect
16190 HAVE_LTO_PLUGIN.
16191
16192 2011-01-07 Jan Hubicka <jh@suse.cz>
16193
16194 PR tree-optimization/46367
16195 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16196 when we can update original.
16197 (cgraph_mark_inline_edge): Sanity check.
16198 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16199
16200 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16201
16202 * config/spu/spu.h (ASM_COMMENT_START): Define.
16203
16204 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16205
16206 PR driver/42445
16207 * gcc.c (%>S): New.
16208 (SWITCH_KEEP_FOR_GCC): Likewise.
16209 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16210 (do_spec_1): Handle "%>".
16211
16212 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16213
16214 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16215
16216 PR target/47201
16217 * config/i386/i386.c (ix86_delegitimize_address): If
16218 simplify_gen_subreg fails, return orig_x.
16219
16220 PR bootstrap/47187
16221 * value-prof.c (gimple_stringop_fixed_value): Handle
16222 lhs of the call properly.
16223
16224 2011-01-07 Jan Hubicka <jh@suse.cz>
16225
16226 PR lto/45375
16227 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16228
16229 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16230
16231 * target.def (function_switched_text_sections): New hook.
16232 * doc/tm.texi: Regenerated.
16233 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16234 * final.c (default_function_switched_text_sections): New.
16235 (final_scan_insn): Call function_switched_text_sections when a
16236 mid-function section change occurs.
16237 * output.h (default_function_switched_text_sections): Declare.
16238 * config/darwin-protos.h (darwin_function_switched_text_sections):
16239 Likewise.
16240 * config/darwin.c (darwin_function_switched_text_sections): New.
16241 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16242
16243 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16244
16245 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16246 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16247 the secondary code fragment when outputting for DWARF == 2.
16248
16249 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16250
16251 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16252 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16253 Remove.
16254 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16255 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16256
16257 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16258
16259 PR debug/46704
16260 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16261 when it is not empty.
16262
16263 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16264
16265 Bobcat Enablement
16266 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16267 (case ${target}): Add btver1.
16268 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16269 -march=native recognize btver1 processors.
16270 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16271 btver1 def_and_undef
16272 * config/i386/i386.c (struct processor_costs btver1_cost): New
16273 btver1 cost table.
16274 (m_BTVER1): New definition.
16275 (m_AMD_MULTIPLE): Includes m_BTVER1.
16276 (initial_ix86_tune_features): Add btver1 tune.
16277 (processor_target_table): Add btver1 entry.
16278 (static const char *const cpu_names): Add btver1 entry.
16279 (software_prefetching_beneficial_p): Add btver1.
16280 (ix86_option_override_internal): Add btver1 instruction sets.
16281 (ix86_issue_rate): Add btver1.
16282 (ix86_adjust_cost): Add btver1.
16283 * config/i386/i386.h (TARGET_BTVER1): New definition.
16284 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16285 (enum processor_type): Add PROCESSOR_BTVER1.
16286 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16287
16288 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16289
16290 PR target/43309
16291 * config/i386/i386.c (legitimize_tls_address)
16292 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16293 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16294 (tls_initial_exec_64_sun): New pattern.
16295
16296 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16297
16298 * doc/invoke.texi (Overall Options): Improve wording and markup
16299 of the description of -wrapper.
16300
16301 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16302
16303 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16304 rdynamic, threads): New Driver options.
16305
16306 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16307
16308 PR target/38118
16309 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16310 if coming from .tdata.
16311 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16312
16313 2011-01-06 Jan Hubicka <jh@suse.cz>
16314
16315 PR lto/47188
16316 * collect2.c (main): Do not enable LTOmode when plugin is active.
16317
16318 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16319
16320 PR other/45915
16321 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16322 --version output if supported.
16323 * configure: Regenerate.
16324
16325 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16326
16327 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16328 Driver options.
16329
16330 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16331
16332 PR c/47150
16333 * c-convert.c (convert): When converting a complex expression
16334 other than COMPLEX_EXPR to a different complex type, ensure
16335 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16336 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16337 when converting COMPLEX_TYPE.
16338
16339 2011-01-06 Ira Rosen <irar@il.ibm.com>
16340
16341 PR tree-optimization/47139
16342 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16343 only the last reduction value is used outside the loop. Update
16344 documentation.
16345
16346 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16347
16348 * config/rtems.opt: New.
16349 * config.gcc (*-*-rtems*): Use rtems.opt.
16350
16351 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16352
16353 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16354 processors do not support 3DNow instructions.
16355
16356 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16357
16358 * config/spu/spu.c (spu_option_override): Set parameter
16359 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16360
16361 2011-01-05 Jan Hubicka <jh@suse.cz>
16362
16363 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16364 at the command line.
16365
16366 2011-01-05 Martin Jambor <mjambor@suse.cz>
16367
16368 PR lto/47162
16369 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16370 deltas on streamed outgoing edges.
16371 (output_node_opt_summary): Output info for outgoing edges only when
16372 the node is in new parameter set.
16373 (output_cgraph_opt_summary): New parameter set, passed to the two
16374 aforementioned functions. Update its forward declaration and its
16375 callee too.
16376
16377 2011-01-05 Tom Tromey <tromey@redhat.com>
16378
16379 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16380 operator to c_finish_omp_atomic.
16381 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16382 (build_unary_op): Update.
16383 (build_modify_expr): Update.
16384 (build_asm_expr): Update.
16385
16386 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16387
16388 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16389 newly inserted insns.
16390 (pad_bb): Likewise.
16391 (spu_emit_branch_hint): Likewise.
16392 (insert_hbrp_for_ilb_runout): Likewise.
16393 (spu_machine_dependent_reorg): Call df_finish_pass after
16394 schedule_insns returns.
16395
16396 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16397
16398 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16399
16400 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16401
16402 PR tree-optimization/47005
16403 * tree-sra.c (struct access): Add 'non_addressable' bit.
16404 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16405 (decide_one_param_reduction): Return 0 if the parameter is passed by
16406 reference and one of the accesses in the group is non_addressable.
16407
16408 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16409
16410 PR tree-optimization/47056
16411 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16412 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16413 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16414
16415 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16416
16417 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16418 initializer. Skip view conversions from aggregate types.
16419
16420 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16421
16422 PR bootstrap/47055
16423 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16424
16425 2011-01-04 Philipp Thomas <pth@suse.de>
16426
16427 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16428 obvious typo.
16429
16430 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16431
16432 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16433 on empty epilogue sequences.
16434
16435 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16436
16437 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16438 non-static): New Driver options.
16439
16440 2011-01-04 Jie Zhang <jie@codesourcery.com>
16441
16442 PR driver/47137
16443 * gcc.c (default_compilers[]): Set combinable field to 0
16444 for all assembly languages.
16445
16446 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16447
16448 * config/mips/loongson3a.md: New file.
16449 * config/mips/mips.md: Include loongson3a.md.
16450 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16451 TUNE_LOONGSON_3A.
16452
16453 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16454
16455 PR middle-end/47017
16456 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16457 instead of convert_memory_address_addr_space on the base expression.
16458
16459 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16460
16461 * config/spu/spu.c (spu_option_override): Update error text
16462 for bad -march= / -mtune= values.
16463
16464 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16465
16466 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16467 if branch-hint optimization will be performed.
16468
16469 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16470
16471 PR tree-optimization/47148
16472 * ipa-split.c (split_function): Convert arguments to
16473 DECL_ARG_TYPE if possible.
16474
16475 PR tree-optimization/47155
16476 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16477 when computing uns.
16478
16479 PR rtl-optimization/47157
16480 * combine.c (try_combine): If undobuf.other_insn becomes
16481 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16482 and set *new_direct_jump_p too.
16483
16484 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16485
16486 PR tree-optimization/47021
16487 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16488
16489 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16490
16491 * gcc.c (process_command): Update copyright notice dates.
16492 * gcov.c (print_version): Likewise.
16493 * gcov-dump.c (print_version): Likewise.
16494 * mips-tfile.c (main): Likewise.
16495 * mips-tdump.c (main): Likewise.
16496
16497 2011-01-03 Martin Jambor <mjambor@suse.cz>
16498
16499 PR tree-optimization/46801
16500 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16501 aggregate fields start at byte boundary instead of the bit-field flag.
16502
16503 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16504
16505 PR driver/47137
16506 * gcc.c (main): Revert revision 168407.
16507
16508 2011-01-03 Martin Jambor <mjambor@suse.cz>
16509
16510 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16511
16512 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16513
16514 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16515 vector optab to expand vector/scalar shift, update gimple to vector.
16516
16517 2011-01-03 Martin Jambor <mjambor@suse.cz>
16518
16519 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16520 a thunk.
16521
16522 2011-01-03 Martin Jambor <mjambor@suse.cz>
16523
16524 PR tree-optimization/46984
16525 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16526 HOST_WIDE_INT.
16527 (cgraph_create_indirect_edge): Fixed line length.
16528 (cgraph_indirect_call_info): Declare.
16529 (cgraph_make_edge_direct) Update declaration.
16530 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16531 (cgraph_create_indirect_edge): Use it.
16532 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16533 callees.
16534 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16535 the new thunk_delta representation.
16536 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16537 HOST_WIDE_INT.
16538 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16539 (ipa_read_indirect_edge_info): Likewise.
16540 * lto-cgraph.c (output_edge_opt_summary): New function.
16541 (output_node_opt_summary): Call it on all outgoing edges.
16542 (input_edge_opt_summary): New function.
16543 (input_node_opt_summary): Call it on all outgoing edges.
16544
16545 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16546
16547 PR driver/47137
16548 * gcc.c (main): Don't check have_o when settting combine_inputs.
16549
16550 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16551
16552 * regrename.c: Add general comment describing the pass.
16553 (struct du_head): Remove 'length' field.
16554 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16555 (regrename_optimize): Do not sort chains. Rework comments, add others.
16556 Force renaming to the preferred class (if any) in the first pass and do
16557 not consider registers that belong to it in the second pass.
16558 (create_new_chain): Do not set 'length' field.
16559 (scan_rtx_reg): Likewise.
16560
16561 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16562
16563 PR tree-optimization/47140
16564 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16565 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16566 to bit_value_binop.
16567
16568 PR rtl-optimization/47028
16569 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16570 parm_birth_insn instead of at the beginning of first bb.
16571
16572 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16573
16574 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16575 Remove the word "see" before "@pxref".
16576 * doc/rtl.texi: Remove the word "see" before "@pxref".
16577
16578 2011-01-01 Jan Hubicka <jh@suse.cz>
16579
16580 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16581 memory.
16582
16583 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16584
16585 PR target/38662
16586 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16587
16588 \f
16589 Copyright (C) 2011 Free Software Foundation, Inc.
16590
16591 Copying and distribution of this file, with or without modification,
16592 are permitted in any medium without royalty provided the copyright
16593 notice and this notice are preserved.