lto-streamer-in.c (get_resolution): Move to lto/lto.c.
[gcc.git] / gcc / ChangeLog
1 2011-06-03 Diego Novillo <dnovillo@google.com>
2
3 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
4 (lto_register_var_decl_in_symtab): Likewise.
5 (lto_register_function_decl_in_symtab): Likewise.
6 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
7 logic to lto_read_decls.
8
9 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10
11 * config/alpha/t-osf5: Remove.
12 * config/alpha/t-osf-pthread: Remove.
13 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
14 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
15
16 2011-06-03 Julian Brown <julian@codesourcery.com>
17
18 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
19 (strongarm1110): Use strongarm tuning.
20 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped
21 field.
22 * config/arm/arm.c (arm_strongarm_tune): New.
23 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
24 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
25 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
26 setting, using previous defaults or 1 for Cortex-A5.
27 (arm_option_override): Set max_insns_skipped from current tuning.
28
29 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
30
31 * doc/install.texi (Options specification): Document --with-specs.
32
33 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
34
35 * config/arm/neon.md (orndi3_neon): Actually split it.
36
37 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
38
39 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
40 * var-tracking.c (reverse_op): Limite recurse depth to 5.
41
42 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
43
44 PR debug/47590
45 * target.def (delay_sched2, delay_vartrack): New.
46 * doc/tm.texi.in: Update.
47 * doc/tm.texi: Rebuild.
48 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
49 * var-tracking.c (gate_handle_var_tracking): Likewise.
50 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
51 (bfin_flag_var_tracking): Drop.
52 (output_file_start): Don't save and override flag_var_tracking.
53 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
54 (bfin_reorg): Test original variables.
55 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
56 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
57 (ia64_flag_var_tracking): Drop.
58 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
59 (ia64_file_start): Don't save and override flag_var_tracking.
60 (ia64_override_options_after_change): Ditto
61 flag_schedule_insns_after_reload.
62 (ia64_reorg): Test original variables.
63 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
64 (picochip_flag_var_tracking): Drop.
65 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
66 (picochip_option_override): Don't save and override
67 flag_schedule_insns_after_reload.
68 (picochip_asm_file_start): Ditto flag_var_tracking.
69 (picochip_reorg): Test original variables.
70 * config/spu/spu.c (spu_flag_var_tracking): Drop.
71 (TARGET_DELAY_VARTRACK): Define.
72 (spu_var_tracking): New.
73 (spu_machine_dependent_reorg): Call it.
74 (asm_file_start): Don't save and override flag_var_tracking.
75
76 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
77
78 PR target/49163
79 * config/sh/predicates.md (general_movsrc_operand): Return 0
80 for memory and memory subreg of which address is an invalid
81 indexed address for QI and HImode.
82 (general_movdst_operand): Likewise.
83
84 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
85
86 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
87 edges only, when there is a non-local label in the function.
88 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
89
90 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
91
92 * config/i386/constraints.md (Y3): New register constraint.
93 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
94 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
95 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
96 *sse2_interleave_lowv2df.
97
98 2011-06-02 Julian Brown <julian@codesourcery.com>
99
100 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
101 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
102 (arm_cortex_a5_tune): New.
103
104 2011-06-02 Julian Brown <julian@codesourcery.com>
105
106 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
107 * config/arm/arm.c (arm_default_branch_cost): New.
108 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
109 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
110 (arm_fa726_tune): Set branch_cost field using
111 arm_default_branch_cost.
112 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
113 current_tune structure.
114 * dojump.c (tm_p.h): Include file.
115
116 2011-06-02 Julian Brown <julian@codesourcery.com>
117
118 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
119 tuning.
120 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
121 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
122 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
123 field.
124 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
125 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
126 (arm_fa726te_tune): Add prefer_constant_pool setting.
127 (arm_v6t2_tune, arm_cortex_tune): New.
128 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
129 prefer_constant_pool setting.
130
131 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
132
133 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
134 switch statement.
135 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
136 (*movdf_internal) <case 6,7,8>: Ditto.
137
138 * config/i386/constraints.md (Y4): New register constraint.
139 * config/i386/sse.md (vec_set<mode>_0): Merge with
140 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
141 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
142 *vec_extractv2di_1_sse.
143 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
144 and *vec_concatv2di_rex64_sse.
145
146 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
147
148 PR target/48807
149 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
150 of cgraph_local_info for null before attempting to use it.
151
152 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
153
154 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
155 (current_function_dynamic_alloc_count): Delete.
156 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
157 (expand_builtin_nonlocal_goto): Remove obsolete comment.
158 (expand_builtin_update_setjmp_buf): Remove dead code.
159 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
160 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
161 support.
162 * function.c (instantiate_virtual_regs): Likewise.
163 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
164 for a block with a single abnormal incoming edge.
165 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
166 (SETJMP_VIA_SAVE_AREA): Delete.
167 * config/sparc/sparc-protos.h (load_got_register): Declare.
168 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
169 (load_got_register): Make global.
170 (sparc_frame_pointer_required): Add 'static'.
171 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
172 (sparc_builtin_setjmp_frame_value): New function.
173 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
174 (save_stack_nonlocal): New expander.
175 (restore_stack_nonlocal): Likewise.
176 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
177 (nonlocal_goto_internal): New insn.
178 (goto_handler_and_restore): Delete.
179 (builtin_setjmp_setup): Likewise.
180 (do_builtin_setjmp_setup): Likewise.
181 (setjmp): Likewise.
182 (builtin_setjmp_receiver): New expander.
183
184 2011-06-01 David Li <davidxl@google.com>
185
186 PR middle-end/49261
187 * tree-pretty-print.c (dump_function_header): Format cleanup.
188
189 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
190
191 PR target/49238
192 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
193 needed when original operands are used for msw_skip comparison.
194
195 2011-06-01 Jakub Jelinek <jakub@redhat.com>
196
197 PR debug/49250
198 * var-tracking.c (add_uses, add_stores): Don't call
199 cselib_subst_to_values on ENTRY_VALUE.
200
201 2011-06-01 Diego Novillo <dnovillo@google.com>
202
203 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
204 output_record_start with LTO_null instead of output_zero.
205 (lto_output_ts_binfo_tree_pointers): Likewise.
206 (lto_output_tree): Likewise.
207 (output_eh_try_list): Likewise.
208 (output_eh_region): Likewise.
209 (output_eh_lp): Likewise.
210 (output_eh_regions): Likewise.
211 (output_bb): Likewise.
212 (output_function): Likewise.
213 (output_unreferenced_globals): Likewise.
214 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
215 instead of NUM_TREE_CODES.
216 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
217 (lto_output_int_in_range): Change << to >> when shifting VAL.
218
219 2011-06-01 Diego Novillo <dnovillo@google.com>
220
221 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
222 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
223
224 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
225
226 PR target/45074
227 * optabs.h (valid_multiword_target_p): Declare.
228 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
229 doing multi-word operations.
230 * optabs.c (expand_binop): Likewise.
231 (expand_doubleword_bswap): Likewise.
232 (expand_absneg_bit): Likewise.
233 (expand_unop): Likewise.
234 (expand_copysign_bit): Likewise.
235 (multiword_target_p): New function.
236
237 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
238
239 PR rtl-optimization/48830
240 PR rtl-optimization/48808
241 PR rtl-optimization/48792
242 * reload.c (push_reload): Check contains_reg_of_mode.
243 * reload1.c (strip_paradoxical_subreg): New function.
244 (gen_reload_chain_without_interm_reg_p): Use it to handle
245 paradoxical subregs.
246 (emit_output_reload_insns, gen_reload): Likewise.
247
248 2011-06-01 David Li <davidxl@google.com>
249
250 * predict.c : Change pass name
251 * ipa.c: Ditto.
252 * dce.c: Ditto.
253 * tree-profile.c: Ditto.
254 * except.c: Ditto.
255
256 2011-06-01 David Li <davidxl@google.com>
257
258 * tree-pretty-print.c (dump_function_header): New function.
259 * final.c (rest_of_clean_state): Use header dumper.
260 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
261 * passes.c (pass_init_dump_file): Use header dumper.
262
263 2011-06-01 Jakub Jelinek <jakub@redhat.com>
264
265 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
266 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
267 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
268 New functions.
269 (mem_loc_descriptor): Use them.
270
271 * var-tracking.c (create_entry_value): New function.
272 (vt_add_function_parameter): Use it.
273
274 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
275
276 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
277 Include <signal.h>, <ucontext.h>.
278 (sigill_caught): Define.
279 (sigill_hdlr): New function.
280 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
281 insns can be executed.
282 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
283 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
284
285 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
286
287 * config/t-slibgcc-darwin: Move to ...
288 * config/t-slibgcc-dummy: ... this. Clarify comments.
289 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
290 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
291 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
292 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
293 Remove i386/t-crtstuff from tmake_file.
294 (i[34567]86-*-solaris2*): Remove t-svr4,
295 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
296 t-slibgcc-dummy.
297 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
298 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
299 sparc/t-crtfm from tmake_file.
300 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
301 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
302 Remove extra_parts.
303 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
304 * config/i386/t-nwld (SHLIB_LINK): Remove.
305 * config/i386/t-rtems-i386: Rename to ...
306 * config/i386/t-rtems: ... this.
307 ($(T)crti.o, $(T)crtn.o): Remove.
308 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
309 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
310 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
311 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
312 EXTRA_MULTILIB_PARTS): Remove.
313 * config/sparc/t-sol2-64: Likewise.
314 * config/sparc/t-sol2: Remove.
315 * config/sparc/t-crtin: Remove.
316 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
317 * config/i386/gmon-sol2.c: Remove.
318 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
319 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
320 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
321 * config/i386/sol2-gc1.asm: Remove.
322 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
323 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
324 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
325 * config/t-slibgcc-sld: Remove.
326
327 2011-06-01 Jakub Jelinek <jakub@redhat.com>
328
329 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
330 base_type_for_mode with op_mode instead of mode.
331
332 2011-06-01 Paul Brook <paul@cpodesourcery.com>
333
334 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
335 Cortex-A15.
336 * config/arm/arm-tune.md: Regenerate.
337 * config/arm/arm-tables.opt: Regenerate.
338 * config/arm/arm.c (FL_DIV): Rename...
339 (FL_THUMB_DIV): ... to this.
340 (FL_ARM_DIV): Define.
341 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
342 (arm_arch_hwdiv): Remove.
343 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
344 (arm_issue_rate): Add cortexr5.
345 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
346 __ARM_ARCH_EXT_IDIV__.
347 (TARGET_IDIV): Define.
348 (arm_arch_hwdiv): Remove.
349 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
350 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
351 (divsi3, udivsi3): New patterns.
352 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
353 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
354
355 2011-06-01 Martin Jambor <mjambor@suse.cz>
356
357 * ipa-utils.c (ipa_dfs_info): New field scc_no.
358 * ipa-utils.c (searchc): Set scc_no.
359
360 2011-06-01 Martin Jambor <mjambor@suse.cz>
361
362 * ipa-utils.c (searchc_env): New field allow_overwritable.
363 (searchc): do not ignore edges to overwritable nodes if indicated
364 by env->allow_overwritable.
365 (ipa_reduced_postorder): Set env.allow_overwritable.
366
367 2011-06-01 Richard Guenther <rguenther@suse.de>
368
369 * tree.c (free_lang_data): Do not reset boolean_type_node nor
370 char_type_node.
371 * lto-streamer.c (lto_record_common_node): Take node pointer,
372 do not register types.
373 (lto_preload_common_nodes): Explicitly skip preloading nodes
374 that differ between frontends.
375
376 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
377
378 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
379 NON_FLOAT_REGS.
380
381 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
382
383 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
384 parameter value for dump. Dump cost on outermost call only.
385 (rs6000_memory_move_cost): Dump cost on outermost call only.
386
387 2011-05-31 Jakub Jelinek <jakub@redhat.com>
388
389 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
390 DW_OP_GNU_convert ops.
391
392 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
393 cselib_preserve_constants.
394 (cselib_lookup_1): If cselib_preserve_constants,
395 a new VALUE is being created for REG and there is a VALUE for the
396 same register in wider mode, add another loc with lowpart SUBREG of
397 the wider VALUE.
398 (cselib_subst_to_values): Handle ENTRY_VALUE.
399 * var-tracking.c (replace_expr_with_values): Return NULL for
400 ENTRY_VALUE too.
401 * dwarf2out.c (convert_descriptor_to_signed): New function.
402 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
403 instead of two shifts.
404 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
405 the right mode if needed.
406 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
407 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
408 convert_descriptor_to_signed.
409 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
410 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
411
412 PR target/48688
413 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
414
415 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
416
417 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
418 of X87MODEI12 and SWI48x instead of SSEMODEI24.
419 (SWI248x): New mode iterator, rename from X87MODEI.
420 (X87MODEI): Remove mode iterator.
421 (X87MODEI12): Ditto.
422 (SSEMODEI24): Ditto.
423
424 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
425
426 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
427 * doc/invoke.texi: Document max-vartrack-expr-depth.
428 * var-tracking.c (EXPR_DEPTH): New.
429 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
430
431 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
432
433 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
434 * config/i386/sse.md: Add n to negated FMA pattern names.
435
436 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
437
438 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
439
440 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
441
442 * gengtype-state.c (read_state_params_structs): Initialize previous.
443
444 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
445
446 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
447 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
448
449 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
450
451 * config/i386/i386.md (*movtf_internal): Avoid allocating general
452 registers. Penalize F*r->o alternative to prevent partial memory
453 stalls. Slightly penalize *roF->*r alternative. Generate SSE
454 CONST_DOUBLE immediates when optimizing function for size. Do not move
455 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
456 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
457 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
458 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
459 alternatives.
460 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
461
462 (fp_register_operand splitters): Use fp_register_operand
463 constraint. Do not use FP_REG_P in insn condition.
464 (any_fp_register_operand splitters): Use any_fp_register_operand
465 constraint. Do not use ANY_FP_REG_P in insn condition.
466
467 2011-05-31 Jan Hubicka <jh@suse.cz>
468
469 * cgraph.h (cgraph_inline_failed_t): Give enum a name
470 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
471 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
472 (lto_output_edge): Use output_enum and var_len_unsigned.
473 (lto_output_varpool_node): Likewise.
474 (input_overwrite_node): Do not take resolution parameter;
475 extract it from a bitpack.
476 (input_node): Do not read resolution; use input_enum and
477 var_len_unsigned.
478 (input_varpool_node): Likewise.
479 (input_edge): Likewise.
480 (input_cgraph_1): Likewise.
481
482 2011-05-31 Richard Guenther <rguenther@suse.de>
483
484 * gimple.c (gimple_register_canonical_type): Do not register
485 any types via gimple_register_type.
486
487 2011-05-31 Jan Hubicka <jh@suse.cz>
488
489 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
490 of thunks.
491
492 2011-05-31 Jakub Jelinek <jakub@redhat.com>
493
494 PR rtl-optimization/49235
495 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
496 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
497
498 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
499
500 PR tree-optimization/49093
501 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
502 data references.
503
504 2011-05-31 Dodji Seketeli <dodji@redhat.com>
505
506 PR debug/49047
507 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
508 for concrete functions containing the code of cloned functions.
509
510 2011-05-31 Richard Guenther <rguenther@suse.de>
511
512 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
513 to ...
514 (forward_propagate_into_comparison_1): ... this.
515 (forward_propagate_comparison): Rename to ...
516 (forward_propagate_into_comparison): ... this. Split out
517 real forward propagation code to ...
518 (forward_propagate_comparison): ... this.
519 (forward_propagate_into_gimple_cond): Remove looping.
520 (forward_propagate_into_cond): Likewise.
521 (simplify_not_neg_expr): Return whether we have done something.
522 (simplify_gimple_switch): Likewise.
523 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
524 (ssa_forward_propagate_and_combine): ... this. Re-structure
525 to do a forward forward-propagation walk on BBs and a backward
526 stmt combining walk on BBs. Consistently re-scan changed statements.
527 (pass_forwprop): Adjust.
528
529 2011-05-30 Ian Lance Taylor <iant@google.com>
530
531 * godump.c (go_format_type): Correct length of name added to
532 obstack for anonymous field.
533
534 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
535
536 PR target/49186
537 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
538 part of the second operand is 0.
539
540 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
541
542 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
543 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
544 to memory for !TARGET_MEMORY_MISMATCH_STALL.
545 (*movdf_internal_rex64): Do not penalize F->r alternative.
546 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
547 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
548 when optimizing function for size. Do not move CONST_DOUBLEs
549 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
550 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
551 SUBREGs. Do not check for MEM_P operands in the insn condition,
552 check for ANY_FP_REGNO_P instead.
553 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
554 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
555 function for speed.
556 * config/i386/i386.c (ix86_option_override_internal): Do not
557 set TARGET_INTEGER_DFMODE_MOVES here.
558
559 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
560
561 PR target/49168
562 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
563
564 2011-05-30 Jakub Jelinek <jakub@redhat.com>
565
566 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
567 DW_TAG_rvalue_reference_type even for
568 -gdwarf-4 -fno-debug-types-section.
569
570 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
571
572 PR tree-optimization/46728
573 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
574 (build_and_insert_binop): New.
575 (gimple_expand_builtin_pow): Reorder args for
576 build_and_insert_call; use build_and_insert_binop; add more
577 optimizations for fractional exponents.
578
579 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
580
581 PR bootstrap/49190
582
583 Revert:
584 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
585
586 * tree.h (struct tree_identifier): Inherit from tree_typed, not
587 tree_common.
588 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
589 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
590 TS_BASE instead of TS_COMMON.
591 * varasm.c (assemble_name): Remove assert.
592
593 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
594
595 * config.gcc: Keep obselete list sorted.
596
597 2011-05-30 Jakub Jelinek <jakub@redhat.com>
598 Eric Botcazou <ebotcazou@adacore.com>
599
600 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
601 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
602 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
603 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
604 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
605
606 2011-05-30 Richard Guenther <rguenther@suse.de>
607
608 * gimple.c (gimple_types_compatible_p_1): Compare record
609 and union type members properly.
610
611 2011-05-30 Richard Guenther <rguenther@suse.de>
612
613 PR tree-optimization/49210
614 * ipa-split.c (split_function): Care for the case where the call
615 result is not trivially convertible to the result holding variable.
616
617 2011-05-30 Richard Guenther <rguenther@suse.de>
618
619 PR tree-optimization/49218
620 * tree-vrp.c (adjust_range_with_scev): Properly check whether
621 overflow occured.
622
623 2011-05-30 Richard Guenther <rguenther@suse.de>
624
625 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
626 New function split out from ...
627 (forward_propagate_into_gimple_cond): ... here. Adjust.
628 (forward_propagate_into_cond): Likewise.
629 (forward_propagate_comparison): Also propagate into
630 comparisons on assignment RHS. Change return value to
631 behave similar to forward_propagate_into_cond.
632 (tree_ssa_forward_propagate_single_use_vars): Handle
633 strict-overflow warnings properly for forward_propagate_comparison.
634
635 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
636
637 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
638 from plugin linker.
639 * configure: Regenerate.
640
641 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
642
643 PR tree-optimization/49199
644 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
645 non-reduction operands are either defined in the loop or by induction.
646
647 2011-05-29 Xinliang David Li <davidxl@google.com>
648
649 * opts-global.c (handle_common_deferred_options): Handle new options.
650 * passes.c (register_one_dump_file): Call register_pass_name.
651 (execute_one_pass): Check explicit enable/disable flag.
652 (passr_hash): New function.
653 (passr_eq): Ditto.
654 (register_pass_name): Ditto.
655 (get_pass_by_name): Ditto.
656 (pass_hash): Ditto.
657 (pass_eq): Ditto.
658 (enable_pass): Ditto.
659 (disable_pass): Ditto.
660 (is_pass_explicitly_enabled_or_disabled): Ditto.
661
662 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
663
664 * config/i386/i386.md (*movoi_internal_avx): Use
665 standard_sse_constant_opcode for alternative 0.
666 (*movti_internal_sse): Ditto.
667 (*movti_internal_rex64): Use standard_sse_constant_opcode for
668 alternative 2.
669 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
670 sselog1 type moves.
671 (*movsi_internal): Ditto.
672 (*movdi_internal): Ditto. Add ssecvt type moves.
673
674 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
675
676 PR target/48830
677 * rtlanal.c (simplify_subreg_regno): Adjust comment.
678
679 2011-05-29 Jakub Jelinek <jakub@redhat.com>
680
681 PR rtl-optimization/49095
682 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
683 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
684
685 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
686
687 PR target/43995
688 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
689 recurse_p argument. Only follow register copies if it is set,
690 and prevent mips_find_pic_call_symbol from recursing.
691 (mips_find_pic_call_symbol): Add a recurse_p argument.
692 Pass it to mips_pic_call_symbol_from_set.
693 (mips_annotate_pic_calls): Update accordingly.
694
695 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
696
697 * emit-rtl.c (try_split): Use a loop to search for
698 NOTE_INSN_CALL_ARG_LOCATIONs.
699
700 2011-05-29 Richard Guenther <rguenther@suse.de>
701
702 PR tree-optimization/49217
703 * ipa-pure-const.c (propagate_pure_const): Fix typos.
704
705 2011-05-28 Jan Hubicka <jh@suse.cz>
706
707 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
708 length.
709 (string_slot_free): Remove
710 (create_output_block): Initialize obstack.
711 (destroy_output_block): Free obstack.
712 (lto_string_index): Add PERSISTENT parameter; do not duplicate
713 the string unless it needs to be added into the hash.
714 (lto_output_string_with_length): Add persistent attribute;
715 handle NULL strings.
716 (lto_output_string): Add PERSISTENT parameter.
717 (output_string_cst, output_identifier): Simplify.
718 (lto_output_location_bitpack): Update.
719 (lto_output_builtin_tree): Update.
720 * lto-streamer.h (struct output_block): Add obstack.
721 (lto_output_string, lto_output_string_with_length): Remove
722 declarations; functions are static now.
723
724 2011-05-28 Jan Hubicka <jh@suse.cz>
725
726 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
727 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
728 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
729 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
730 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
731 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
732 unpack_ts_decl_with_vis_value_fields,
733 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
734 lto_get_builtin_tree): Use enum and variable length i/o.
735 * basic-block.h (profile_status_d): Add PROFILE_LAST.
736 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
737 New functions.
738 (bp_pack_enum, bp_unpack_enum): New macros.
739
740 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
741
742 * genrecog.c: Remove redundant forward declarations.
743
744 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
745
746 * config.gcc: Deprecate mips*-*-openbsd*.
747
748 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
749
750 PR bootstrap/49195
751 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
752 for match_op_dup.
753
754 2011-05-27 Andrew Pinski <pinskia@gmail.com>
755
756 PR middle-end/48981
757 * gengtype.c (vec_prefix_type): New function.
758 (note_def_vec): Use vec_prefix_type and change the length
759 attribute to be based on the prefix.
760 * vec.c: Include coretypes.h before vec.h.
761 (struct vec_prefix): Remove.
762 (vec_gc_p_reserve): Change the offsetof to sizeof.
763 (vec_gc_p_reserve_exact): Likewise.
764 (vec_heap_p_reserve): Likewise.
765 (vec_heap_p_reserve_exact): Likewise.
766 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
767 (vec_stack_p_reserve): Change the offsetof to sizeof.
768 (vec_stack_p_reserve_exact): Likewise.
769 * vec.h (struct vec_prefix): New struct definition.
770 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
771 (VEC_T_GTY(T,B)): Likewise.
772 (DEF_VEC_FUNC_P(T)): Use prefix field.
773 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
774 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
775
776 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
777
778 PR tree-optimization/46728
779 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
780 (powi_as_mults): Add gimple_set_location.
781 (build_and_insert_call): New.
782 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
783 0.5, 0.25, 0.75, 1./3., or 1./6.
784
785 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
786
787 * doc/contrib.texi: Update copyright years.
788 (Contributors): Add Zdenek Sojka.
789
790 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
791
792 * c-decl.c (c_push_function_context): Copy the current statement
793 list stack.
794 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
795 (finish_struct): Call building_stmt_list_p instead of checking
796 cur_stmt_list.
797 * c-parser.c (c_parser_postfix_expression): Likewise.
798 * c-typeck.c (c_end_compound_stmt): Likewise.
799 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
800 * tree-iterator.c (stmt_list_cache): Change to a VEC.
801 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
802 (free_stmt_list): Likewise.
803 * tree.h (struct tree_statement_list): Include typed_tree instead
804 of tree_common.
805 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
806 as TS_TYPED instead of TS_COMMON.
807
808 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
809 Uros Bizjak <ubizjak@gmail.com>
810
811 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
812 (HAVE_AS_IX86_TLSGDPTL): Define.
813 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
814 (HAVE_AS_IX86_TLSLDMPLT): Define.
815 * configure: Regenerate.
816 * config.in: Regenerate.
817 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
818 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
819 TARGET_SUN_TLS, use @tlsgdplt or @plt.
820 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
821 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
822 @tlsldmplt or @plt.
823 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
824
825 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
826
827 * sched-int.h (struct _haifa_deps_insn_data): New members cond
828 and reverse_cond.
829 (INSN_COND, INSN_REVERSE_COND): New macros.
830 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
831 once.
832 (sched_get_condition_with_rev): Cache the results, and look them up
833 if possible.
834 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
835 are clobbered by the current insn.
836 * target.def (exposed_pipline): New sched data hook.
837 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
838 * doc/tm.texi: Regenerate.
839
840 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
841
842 PR tree-optimization/49170
843 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
844 sincos or cexp.
845
846 2011-05-27 Richard Guenther <rguenther@suse.de>
847
848 PR middle-end/49189
849 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
850 of comparisons.
851
852 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
853
854 * haifa-sched.c (sched_scan_info): Remove.
855 (schedule_block): Call sched_extend_luids rather than sched_init_luids
856 with NULL args.
857 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
858 Remove functions.
859 (sched_scan): Remove.
860 (sched_extend_luids): Renamed from luids_extend_insn and no longer
861 static. All callers changed.
862 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
863 static. All callers changed.
864 (sched_init_luids): Remove all arguments except the first. All
865 callers changed. Don't use sched_scan.
866 (haifa_init_h_i_d): Likewise.
867 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
868 manually rather than using sched_init_luids. Likewise with
869 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
870 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
871 rather than sched_init_luids with NULL args.
872 * sel-sched-ir.c (new_insns): Remove variable.
873 (sched_scan): New static function, previously in haifa-sched.c. Remove
874 all arguments but the first two; all callers changed.
875 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
876 rather than sched_init_luids.
877 (sel_init_bbs): Remove second argument. All callers changed.
878 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
879 with NULL arguments.
880 (create_insn_rtx_from_pattern): Likewise.
881 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
882 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
883 (sched_init_insn_luid, sched_extend_luids): Declare.
884 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
885 declarations.
886
887 2011-05-27 Richard Guenther <rguenther@suse.de>
888
889 PR middle-end/49177
890 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
891 A CMP B ? (T) true : (T) false for non-integral types T again.
892
893 2011-05-27 Jan Hubicka <jh@suse.cz>
894
895 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
896 so 0 means NULL string.
897 (lto_output_string_with_length): ... here.
898 (lto_output_string, output_string_cst, output_identifier): Update
899 handling of NULL strings.
900 (lto_output_location_bitpack): New function.
901 (lto_output_location): Use it.
902 (lto_output_tree_ref): Use output_record_start.
903 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
904 len values.
905 * lto-streamer-in.c (string_for_index): Break out from ...; offset
906 values by 1.
907 (input_string_internal): ... here;
908 (input_string_cst, input_identifier, lto_input_string): Update handling
909 of NULL strings.
910 (lto_input_location_bitpack): New function
911 (lto_input_location): Use it.
912 (unpack_ts_type_common_value_fields): Pack align & alias in var len
913 values.
914 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
915 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
916 (bp_pack_value): Sanity check the value range.
917 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
918 New functions.
919 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
920 New functions.
921
922 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
923
924 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
925 call_arg_location instructions down the floor.
926
927 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
928
929 PR rtl-optimization/49154
930 * ira.c (setup_pressure_classes): Process class without sublcasses
931 as a candidate for pressure classes.
932
933 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
934
935 PR rtl-optimization/48575
936 * genrecog.c (position_type): New enum.
937 (position): New structure.
938 (decision): Use position structure instead of a string.
939 (root_pos, peep2_insn_pos_list): New variables.
940 (next_position, compare_positions): New functions.
941 (new_decision): Use position structures instead of strings.
942 (maybe_both_true): Likewise.
943 (change_state): Likewise.
944 (write_tree): Likewise.
945 (make_insn_sequence): Likewise.
946
947 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
948
949 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
950 TS_BASE instead of TS_COMMON.
951 (find_decls_types_r): Check for TS_TYPED structure before looking at
952 TREE_TYPE.
953 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
954 Add chain field.
955 (BLOCK_CHAIN): Use new chain field.
956
957 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
958
959 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
960 moves expensive on Power7 also.
961
962 2011-05-26 Richard Guenther <rguenther@suse.de>
963
964 * fold-const.c (fold_unary_loc): Remove bogus code.
965
966 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
967
968 * tree.h (struct tree_identifier): Inherit from tree_typed, not
969 tree_common.
970 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
971 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
972 TS_BASE instead of TS_COMMON.
973 * varasm.c (assemble_name): Remove assert.
974
975 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
976
977 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
978 substituted first.
979 * libgcc-std.ver: Delete file.
980
981 2011-05-26 Richard Guenther <rguenther@suse.de>
982
983 PR tree-optimization/48702
984 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
985 only when we know the base address is within bounds.
986 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
987 assume the base address of TARGET_MEM_REFs is in bounds.
988
989 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
990
991 PR target/49099
992 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
993 declaration in TARGET_SOLARIS.
994
995 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
996
997 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
998 The instruction is then expanded explicitly.
999 (supported_compare): Callable instruction.
1000 (compare): Likewise.
1001
1002 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1003
1004 PR c++/49165
1005 * gimplify.c (shortcut_cond_r): Don't special case
1006 COND_EXPRs if they have void type on one of their arms.
1007
1008 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1009
1010 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1011 to reduce duplication, and to achieve a slightly more logical order
1012 of operations.
1013
1014 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1015
1016 PR tree-optimization/49161
1017 * tree-vrp.c (struct case_info): New type.
1018 (compare_case_labels): Sort case_info structs instead of
1019 trees, and not primarily by CASE_LABEL uids but by
1020 label_for_block indexes.
1021 (find_switch_asserts): Put case labels into struct case_info
1022 array instead of TREE_VEC, adjust sorting, compare label_for_block
1023 values instead of CASE_LABELs.
1024
1025 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1026
1027 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1028 ("orndi3_neon"): Likewise.
1029 ("bic<mode>3_neon"): Likewise.
1030
1031 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1032
1033 PR tree-optimization/49038
1034 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1035 Ensure at least one epilogue iteration if required by data
1036 accesses with gaps.
1037 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1038 to mark loops that require peeling for gaps.
1039 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1040 (vect_get_known_peeling_cost): Take peeling for gaps into
1041 account.
1042 (vect_transform_loop): Generate epilogue if required by data
1043 access with gaps.
1044 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1045 loop as requiring an epilogue if there are gaps in the end of
1046 the strided group.
1047
1048 2011-05-25 Ian Lance Taylor <iant@google.com>
1049
1050 * godump.c (go_format_type): Output the first field with a usable
1051 Go type, if any.
1052
1053 2011-05-25 Ian Lance Taylor <iant@google.com>
1054
1055 * godump.c (go_format_type): Check for invalid type names, pointer
1056 target types, and struct field types.
1057
1058 2011-05-25 Jason Merrill <jason@redhat.com>
1059
1060 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1061
1062 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1063
1064 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1065
1066 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1067
1068 * config/i386/i386.md (*movqi_extv_1)): Put back
1069 "register_operand" check in "type" calculation.
1070 (*movqi_extzv_2): Likewise.
1071
1072 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1073
1074 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1075
1076 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1077
1078 PR bootstrap/49160
1079 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1080 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1081 __divxc3, __divtc3): Wrap definitions in #ifndef.
1082
1083 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1084
1085 PR target/49142
1086 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1087 "register_operand" check and replace q_regs_operand with
1088 QIreg_operand in "type" calculation.
1089 (*movqi_extv_1): Likewise.
1090 (*movqi_extzv_2_rex64): Likewise.
1091 (*movqi_extzv_2): Likewise.
1092
1093 * config/i386/predicates.md (QIreg_operand): New.
1094
1095 2011-05-25 Richard Guenther <rguenther@suse.de>
1096
1097 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1098 type-based offset disambiguation, streamline MEM_REF and
1099 TARGET_MEM_REF handling.
1100
1101 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1102
1103 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1104 (bdesc_special_args): Add pause intrinsic.
1105
1106 * config/i386/i386.md (UNSPEC_PAUSE): New.
1107 (pause): Likewise.
1108 (*pause): Likewise.
1109 * config/i386/ia32intrin.h (__pause): Likewise.
1110
1111 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1112 pause intrinsic.
1113
1114 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1115
1116 PR tree-optimization/46728
1117 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1118 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1119
1120 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1121
1122 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1123 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1124 instead of TS_COMMON.
1125
1126 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1127
1128 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1129 LIBGCC2_GNU_PREFIX is defined.
1130 (__N): New macro.
1131 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1132 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1133 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1134 __clz_tab): Define using __N.
1135 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1136 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1137 * target.def (libfunc_gnu_prefix): New hook.
1138 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1139 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1140 * doc/tm.texi: Regenerate.
1141 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1142 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1143 account.
1144 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1145 (init_optabs): Likewise for the bswap libfuncs.
1146 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1147 and divide.
1148 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1149 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1150 * libgcc-std.ver: Remove.
1151 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1152 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1153 libgcc-std.ver.
1154 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1155 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1156 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1157 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1158 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1159 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1160 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1161 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1162 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1163 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1164
1165 2011-05-25 Jan Hubicka <jh@suse.cz>
1166
1167 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1168 (lto_output_tree): Use output_record_start.
1169 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1170 (lto_get_pickled_tree): Use input_record_start.
1171 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1172 (lto_value_range_error): New function.
1173 * lto-streamer.h (lto_value_range_error): Declare.
1174 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1175 (lto_output_enum, lto_input_enum): New macros.
1176
1177 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1178
1179 * common.opt (flag_stack_usage_info): New variable.
1180 (-Wstack-usage): New option.
1181 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1182 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1183 <OPT_fstack_usage>: Likewise.
1184 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1185 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1186 of flag_stack_usage.
1187 (emit_library_call_value_1): Likewise.
1188 * explow.c (allocate_dynamic_stack_space): Likewise.
1189 * function.c (instantiate_virtual_regs ): Likewise.
1190 (prepare_function_start): Likewise.
1191 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1192 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1193 * config/arm/arm.c (arm_expand_prologue): Likewise.
1194 (thumb1_expand_prologue): Likewise.
1195 * config/avr/avr.c (expand_prologue): Likewise.
1196 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1197 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1198 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1199 * config/mips/mips.c (mips_expand_prologue): Likewise.
1200 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1201 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1202 * config/s390/s390.c (s390_emit_prologue): Likewise.
1203 * config/sh/sh.c (sh_expand_prologue): Likewise.
1204 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1205 * config/spu/spu.c (spu_expand_prologue): Likewise.
1206
1207 2011-05-25 Richard Guenther <rguenther@suse.de>
1208
1209 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1210 (gimple_canonical_types_compatible_p): Likewise.
1211
1212 2011-05-25 Jan Hubicka <jh@suse.cz>
1213
1214 PR middle-end/49062
1215 * ipa.c (function_and_variable_visibility): Only add to same
1216 comdat group list if DECL_ONE_ONLY.
1217
1218 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1219
1220 PR rtl-optimization/49014
1221 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1222
1223 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1224
1225 PR target/49128
1226 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1227
1228 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1229
1230 PR rtl-optimization/48757
1231 * ira-build.c (loop_with_eh_edge_p): Rename to
1232 loop_with_complex_edge_p, check edges on complexity, make function
1233 conditional.
1234 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1235 conditional.
1236
1237 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1238
1239 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1240 force flag_ira_share_save_slots to 0.
1241
1242 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1243
1244 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1245 (vt_initialize): Set PROLOGUE_BB unconditionally.
1246 Add block comment about CFA_BASE_RTX machinery.
1247 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1248 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1249
1250 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1251
1252 PR objc/48187
1253 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1254 parsing of syntax error in ObjC instance variable lists. In
1255 particular, avoid an infinite loop if there is a stray ']'.
1256 Updated error message.
1257
1258 2011-05-24 Ian Lance Taylor <iant@google.com>
1259
1260 * godump.c (go_define): Don't accept a string immediately after
1261 another operand.
1262
1263 2011-05-24 Ian Lance Taylor <iant@google.com>
1264
1265 * godump.c (struct godump_container): Add invalid_hash field.
1266 (go_format_type): Return false if type is found in invalid_hash.
1267 (go_output_typedef): Add invalid type to invalid_hash.
1268 (go_finish): Create and delete invalid_hash.
1269
1270 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1271
1272 PR tree-optimization/46728
1273 * tree-ssa-math-opts.c (powi_table): New.
1274 (powi_lookup_cost): New.
1275 (powi_cost): New.
1276 (powi_as_mults_1): New.
1277 (powi_as_mults): New.
1278 (gimple_expand_builtin_powi): New.
1279 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1280 (gate_cse_sincos): Remove sincos/cexp restriction.
1281
1282 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1283
1284 PR target/3746
1285 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1286 mips-tdump native.
1287 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1288 * mips-tdump.c: Likewise.
1289
1290 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1291
1292 PR target/49128
1293 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1294 add -mno-XXX. Handle FMA.
1295
1296 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1297
1298 PR rtl-optimization/48633
1299 * ira-build.c (loop_with_eh_edge_p): New function.
1300 (mark_loops_for_removal): Use it.
1301
1302 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1303
1304 PR rtl-optimization/48971
1305 * ira.c (setup_pressure_classes): Don't check register move cost
1306 for classes with one registers. Don't add pressure class if there
1307 is a pressure class with the same available hard registers.
1308 Check contains_reg_of_mode. Fix a typo in collecting
1309 temp_hard_regset. Ignore hard registers not belonging to a class.
1310
1311 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1312
1313 PR target/49133
1314 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1315
1316 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1317 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1318
1319 PR gcov-profile/48845
1320 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1321
1322 2011-05-24 Richard Guenther <rguenther@suse.de>
1323
1324 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1325 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1326 (gimple_types_compatible_p_1): Adjust.
1327 (iterative_hash_canonical_type): Do not bother about complete vs.
1328 incomplete types.
1329 (gimple_canonical_types_compatible_p): Likewise.
1330
1331 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1332
1333 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1334
1335 2011-05-24 Richard Guenther <rguenther@suse.de>
1336
1337 PR bootstrap/49078
1338 * gimple.c (gimple_register_canonical_type): Revert
1339 previous change.
1340 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1341 does not for a tree for the case where it matters. Cache
1342 pointer-type alias-sets.
1343
1344 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1345
1346 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1347 (OBJS): Remove options.o, opts-common.o and prefix.o.
1348 (OBJS-libcommon-target): New.
1349 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1350 (BACKEND): Include libcommon-target.a.
1351 (MOSTLYCLEANFILES): Include libcommon-target.a.
1352 (libcommon-target.a): New.
1353 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1354 prefix.o.
1355
1356 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1357
1358 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1359 parts of output shared with the driver.
1360 * optc-gen.awk: Don't generate parts of output not shared with the
1361 driver.
1362 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1363 * doc/options.texi (SourcerInclude): Mention options-save.c.
1364 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1365 (OBJS): Add options-save.o.
1366 (options-save.c, options-save.o): New.
1367 (options.o): Update dependencies.
1368 (gcc-options.o): Remove.
1369 (mostlyclean): Remove options-save.c.
1370
1371 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1372
1373 PR debug/49032
1374 * dbxout.c: Include cgraph.h.
1375 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1376 and without value expr, return NULL if no varpool node exists for
1377 it or if it is not needed.
1378 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1379
1380 PR c/49120
1381 * c-decl.c (start_decl): Convert expr to void_type_node.
1382
1383 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1384
1385 PR rtl-optimization/48826
1386 * emit-rtl.c (try_split): When splitting a call that is followed
1387 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1388
1389 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1390
1391 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1392 parameters passed in memory prefer using DECL_INCOMING_RTL over
1393 the pseudos it will be copied into.
1394
1395 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1396
1397 PR target/47315
1398 * config/i386/i386.c (ix86_option_override_internal): Save the
1399 initial options after checking vzeroupper.
1400
1401 2011-05-23 David Li <davidxl@google.com>
1402
1403 PR tree-optimization/48988
1404 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1405 Initialize has_valid_pred for each pred chain.
1406
1407 2011-05-23 Richard Guenther <rguenther@suse.de>
1408
1409 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1410 (iterative_hash_gimple_type): Always hash type names.
1411
1412 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1413
1414 * c-typeck.c (build_function_call_vec): Tweak call to
1415 check_function_arguments.
1416
1417 2011-05-23 Richard Guenther <rguenther@suse.de>
1418
1419 PR tree-optimization/49115
1420 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1421 is not necessarily carried out, do not claim it kills the ref.
1422 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1423
1424 2011-05-23 Richard Guenther <rguenther@suse.de>
1425
1426 PR middle-end/15419
1427 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1428 what pointer types we accept for folding.
1429
1430 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1431
1432 * gthr-gnat.c: Remove.
1433 * gthr-gnat.h: Remove.
1434 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1435 * config/t-freebsd (LIB2ADDEH): Likewise.
1436 * config/t-linux (LIB2ADDEH): Likewise.
1437 * config/t-sol2 (LIB2ADDEH): Likewise.
1438 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1439 * configure.ac (target_thread_file): Remove gnat handling.
1440 * configure: Regenerate.
1441 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1442
1443 2011-05-23 Tristan Gingold <gingold@adacore.com>
1444 Eric Botcazou <ebotcazou@adacore.com>
1445
1446 * gcov.c (create_file_names): If no object directory is specified,
1447 keep the directory of the file.
1448
1449 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1450
1451 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1452 * configure: Regenerate.
1453
1454 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1455
1456 PR middle-end/48973
1457 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1458 failed and the comparison has a single bit signed type, use
1459 constm1_rtx instead of const1_rtx for true value.
1460 (do_store_flag): If ops->type is single bit signed type, disable
1461 signel bit test optimization and pass -1 instead of 1 as last
1462 parameter to emit_store_flag_force.
1463
1464 2011-05-23 Tom de Vries <tom@codesourcery.com>
1465
1466 PR target/45098
1467 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1468 function.
1469 (infer_loop_bounds_from_undefined): Use new function.
1470
1471 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1472
1473 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1474 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1475 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1476 and -O0 otherwise.
1477 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1478
1479 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1480
1481 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1482 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1483 returns true.
1484
1485 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1486
1487 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1488
1489 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1490
1491 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1492 UNSPEC_MOVE_PIC pattern.
1493
1494 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1495
1496 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1497 (sparc-*-rtems*): Likewise.
1498 (sparc64-*-elf*): Likewise.
1499 (sparc64-*-rtems*): Likewise.
1500 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1501 * config/sparc/t-crtin: New file.
1502 * config/sparc/t-sol2 (crti.o): Delete rule.
1503 (crtn.o): Likewise.
1504 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1505 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1506 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1507 (ENDFILE_SPEC): Add crtn.o.
1508
1509 2011-05-22 Tom de Vries <tom@codesourcery.com>
1510
1511 PR middle-end/48689
1512 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1513 CODE_CONTAINS_STRUCT (TS_COMMON).
1514
1515 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1516
1517 PR middle-end/49029
1518 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1519 only after deciding which mode to use.
1520
1521 2011-05-22 Tom de Vries <tom@codesourcery.com>
1522
1523 PR target/45098
1524 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1525 for call to get_shiftadd_cost.
1526
1527 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1528
1529 PR target/49104
1530 * config/i386/cpuid.h (bit_MMXEXT): New define.
1531
1532 2011-05-22 Nick Clifton <nickc@redhat.com>
1533
1534 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1535 initialisation of non-existant args[2] element. Use args[] array
1536 not arg[] array to pass arguments to build_function_type_list.
1537
1538 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1539
1540 PR tree-optimization/49087
1541 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1542
1543 2011-05-21 Jason Merrill <jason@redhat.com>
1544
1545 PR c++/49092
1546 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1547 static storage duration.
1548
1549 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1550
1551 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1552 frame pointer.
1553
1554 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1555
1556 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1557 false if there are call-saved registers here...
1558 (sparc_can_use_return_insn_p): ...but here instead.
1559 (save_or_restore_regs): Fix thinko.
1560 (sparc_expand_prologue): Use current_function_is_leaf.
1561 (sparc_frame_pointer_required): Likewise.
1562
1563 2011-05-21 Nick Clifton <nickc@redhat.com>
1564
1565 PR target/49098
1566 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1567
1568 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1569
1570 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1571 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1572
1573 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1574
1575 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1576 * optc-gen.awk: Move common code to opt-read.awk.
1577 * opth-gen.awk: Likewise.
1578 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1579
1580 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1581
1582 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1583
1584 2011-05-20 Tom de Vries <tom@codesourcery.com>
1585
1586 PR target/45098
1587 * tree-ssa-loop-ivopts.c: Include expmed.h.
1588 (get_shiftadd_cost): New function.
1589 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1590
1591 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1592
1593 PR bootstrap/49086
1594 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1595 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1596
1597 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1598
1599 * Makefile.in: Update comment referring to $(OBJS-common).
1600
1601 2011-05-20 Ian Lance Taylor <iant@google.com>
1602
1603 * godump.c (go_output_typedef): Put enum constants in the macro
1604 hash table to avoid duplicate Go const definitions.
1605
1606 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1607
1608 * Makefile.in (LIBDEPS): Add libcommon.a.
1609 (LIBS): Likewise.
1610 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1611 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1612 pretty-print.o and version.o.
1613 (OBJS-libcommon): New.
1614 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1615 (BACKEND): Add libcommon.a.
1616 (MOSTLYCLEANFILES): Likewise.
1617 (libcommon.a): New.
1618 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1619 (cpp$(exeext)): Likewise.
1620 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1621 pretty-print.o and input.o.
1622 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1623 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1624 (errors.o): Remove.
1625 (mips-tfile): Don't explicitly use version.o.
1626 (mips-tdump): Likewise.
1627 (gcov.o): Depend on $(DIAGNOSTIC_H).
1628 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1629 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1630 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1631 * gcov-dump.c: Include intl.h and diagnostic.h.
1632 (main): Initialize diagnostics.
1633 * gcov.c: Include diagnostic.h.
1634 (fnotice): Remove.
1635 (main): Initialize diagnostics.
1636 * lto-wrapper.c: Include diagnostic.h.
1637 (main): Initialize diagnostics.
1638
1639 2011-05-20 Michael Matz <matz@suse.de>
1640
1641 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1642
1643 2011-05-20 Michael Matz <matz@suse.de>
1644 Richard Guenther <rguenther@suse.de>
1645
1646 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1647 use lto_streamer_cache_append directly instead of returning a VEC.
1648 (preload_common_node): Remove.
1649 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1650 track seen nodes.
1651 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1652
1653 2011-05-20 Richard Guenther <rguenther@suse.de>
1654
1655 PR tree-optimization/49079
1656 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1657 MEM_REFs correctly for the trailing array access detection.
1658 Special case constants the same way as decls for overall size
1659 constraining.
1660
1661 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1662
1663 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1664 argument expansion.
1665
1666 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1667
1668 PR tree-optimization/49073
1669 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1670 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1671 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1672
1673 2011-05-20 Richard Guenther <rguenther@suse.de>
1674
1675 PR middle-end/48849
1676 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1677 of pointer types the same way the middle-end does.
1678
1679 2011-05-20 Richard Guenther <rguenther@suse.de>
1680
1681 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1682 or pointer-to chains. Delay all fixup to uniquify_nodes.
1683
1684 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1685
1686 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1687 (fma4_fmaddsub): Likewise
1688
1689 2011-05-19 Jan Hubicka <jh@suse.cz>
1690
1691 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1692 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1693 (type_pair_cache): New static var.
1694 (lookup_type_pair): Use fixed sized custom hash; make inline.
1695 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1696 calls of lookup_type_pair.
1697 (print_gimple_types_stats): Remove cache stats.
1698 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1699 and gtc_ob.
1700
1701 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1702
1703 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1704 when TARGET_RDRND is active.
1705 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1706 Generate dummy SImode target register when target is NULL.
1707
1708 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1709
1710 * config/arm/arm-fpus.def: New.
1711 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1712 arm-fpus.def.
1713 * config/arm/arm-tables.opt: Regenerate.
1714 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1715 (arm_option_override): Don't decode FPU name to string here.
1716 * config/arm/arm.opt (mfpu=): Use Enum.
1717 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1718 Update dependencies.
1719
1720 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1721
1722 * collect2.c: Include diagnostic.h.
1723 (fatal_perror, fatal, error, fancy_abort): Remove.
1724 (main): Set progname. Call xmalloc_set_program_name and
1725 diagnostic_initialize.
1726 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1727 scan_libraries, resolve_lib_name): Call fatal_error instead of
1728 fatal and fatal_perror.
1729 * collect2.h (error, fatal, fatal_perror): Don't declare.
1730 * tlink.c: Include diagnostic-core.h.
1731 (recompile_files): Call fatal_error instead of fatal_perror.
1732 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1733 pretty-print.o and input.o.
1734 (collect2.o, tlink.o): Update dependencies.
1735
1736 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1737
1738 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1739
1740 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1741
1742 PR target/40483
1743 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1744 COMDAT group syntax, both SPARC and x86 variants.
1745 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1746 * configure: Regenerate.
1747 * config/sol2.h (TARGET_SOLARIS): Define.
1748 (PUSHSECTION_FORMAT): Remove.
1749 (SECTION_NAME_FORMAT): Define.
1750 * config/sol2.c: Include hashtab.h.
1751 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1752 expansion, using SECTION_NAME_FORMAT.
1753 (solaris_comdat_htab): New variable.
1754 (struct comdat_entry): Define.
1755 (comdat_hash): New function.
1756 (comdat_eq): New function.
1757 (solaris_elf_asm_comdat_section): New function.
1758 (solaris_define_comdat_signature): New function.
1759 (solaris_code_end): New function.
1760 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1761 (solaris_code_end): Declare.
1762 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1763 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1764 solaris_code_end.
1765 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1766 Remove ATTRIBUTE_UNUSED.
1767 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1768 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1769 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1770 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1771 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1772 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1773 (PUSHSECTION_FORMAT): Remove.
1774 (SECTION_NAME_FORMAT): Redefine.
1775
1776 2011-05-19 Kai Tietz <ktietz@redhat.com>
1777
1778 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1779 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1780 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1781
1782 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1783 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1784
1785 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1786
1787 2011-05-19 Richard Guenther <rguenther@suse.de>
1788
1789 PR middle-end/48985
1790 * tree-object-size.c (addr_object_size): If the pointed-to
1791 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1792
1793 2011-05-19 Richard Guenther <rguenther@suse.de>
1794
1795 * gimple.c (gimple_types_compatible_p_1): Compare names of
1796 the types themselves.
1797 (iterative_hash_gimple_type): And hash them that way.
1798 (gimple_register_type_1): If we register a main variant properly
1799 initialize the leader to ourselves.
1800
1801 2011-05-19 Tom de Vries <tom@codesourcery.com>
1802
1803 PR target/45098
1804 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1805 get_loop_invariant_expr_id.
1806 (get_loop_invariant_expr_id): Use get_expr_id.
1807 (parm_decl_cost): New function.
1808 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1809 Improve bound cost estimation. Use different inv_expr_id for elim and
1810 express cases.
1811
1812 2011-05-19 Tom de Vries <tom@codesourcery.com>
1813
1814 PR target/45098
1815 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1816 cost_base.cost == 0.
1817
1818 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1819
1820 PR target/49002
1821 * config/i386/sse.md
1822 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
1823 load cast.
1824
1825 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1826
1827 PR tree-optimization/49039
1828 * tree-vrp.c (extract_range_from_binary_expr): For
1829 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1830 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1831
1832 2011-05-18 Tom de Vries <tom@codesourcery.com>
1833
1834 PR target/45098
1835 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1836
1837 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1838
1839 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1840 (*tls_global_dynamic_64): Ditto.
1841 (*tls_local_dynamic_base_32_gnu): Ditto.
1842 (*tls_local_dynamic_base_64): Ditto.
1843 (tls_initial_exec_64_sun): Ditto.
1844
1845 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1846
1847 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1848 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1849 bf592-none.
1850 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1851 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1852 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1853 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1854 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1855 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1856 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1857
1858 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1859
1860 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1861 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1862 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1863 target_thread_pointer, arm_structure_size_boundary, struct
1864 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1865 struct abi_name, arm_all_abis): Remove.
1866 (arm_option_override) Don't process most enumerated option values here.
1867 Don't process target_fpe_name here. Work with integer not string for
1868 structure size boundary; use separate diagnostics for each case.
1869 * config/arm/arm.h (enum float_abi_type, enum
1870 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1871 to arm-opts.h.
1872 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1873 arm_structure_size_boundary): Remove.
1874 * config/arm/arm.opt (mabi=): Use Enum and Init.
1875 (arm_abi_type): New Enum and EnumValue entries.
1876 (mfloat-abi=): Use Enum and Init.
1877 (float_abi_type): New Enum and EnumValue entries.
1878 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1879 (mfp16-format=): Use Enum and Init.
1880 (arm_fp16_format_type): New Enum and EnumValue entries.
1881 (mstructure-size-boundary=): Use UInteger and Init.
1882 (mtp=): Use Enum and Init.
1883 (arm_tp_type): New Enum and EnumValue entries.
1884
1885 2011-05-18 Richard Guenther <rguenther@suse.de>
1886
1887 PR tree-optimization/49018
1888 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1889 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1890 gimple_has_side_effects.
1891
1892 2011-05-18 Richard Guenther <rguenther@suse.de>
1893
1894 * gimple.c (gimple_register_type_1): New function, split out from ...
1895 (gimple_register_type): ... here. Avoid infinite recursion.
1896
1897 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1898
1899 PR tree-optimization/41881
1900 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1901 reduction_chains along with a macro for its access.
1902 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1903 (destroy_loop_vec_info): Free reduction chains.
1904 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1905 (vect_is_slp_reduction): New function.
1906 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1907 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1908 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1909 definition types for reduction chains.
1910 (vect_supported_load_permutation_p): Don't allow permutations for
1911 reduction chains.
1912 (vect_analyze_slp_instance): Support reduction chains.
1913 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1914 (vect_get_constant_vectors): Handle reduction chains.
1915 (vect_schedule_slp_instance): Mark the first statement of the
1916 reduction chain as reduction.
1917
1918 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1919
1920 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1921 names for group elements access.
1922 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1923 reduction chains as well. Remove data reference and interleaving
1924 related words from the fields names.
1925 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1926 elements access.
1927 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1928 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1929 vect_update_interleaving_chain, vect_same_range_drs,
1930 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1931 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1932 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1933 vect_analyze_group_access, vect_analyze_data_ref_access,
1934 vect_create_data_ref_ptr, vect_transform_strided_load,
1935 vect_record_strided_load_vectors): Likewise.
1936 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1937 vect_model_load_cost, vectorizable_store, vectorizable_load,
1938 vect_remove_stores, new_stmt_vec_info): Likewise.
1939 * tree-vect-slp.c (vect_build_slp_tree,
1940 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1941
1942 2011-05-18 Richard Guenther <rguenther@suse.de>
1943
1944 PR middle-end/48989
1945 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1946 operand verification.
1947 (verify_gimple_assign_binary): Likewise.
1948 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1949 to non-1-precision BOOLEAN_TYPEs.
1950
1951 2011-05-18 Tom de Vries <tom@codesourcery.com>
1952
1953 PR target/45098
1954 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1955
1956 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1957
1958 PR tree-optimization/49000
1959 * tree-ssa.c (execute_update_addresses_taken): Call
1960 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1961 be rewritten and decl has been marked for renaming, reset
1962 the debug stmt.
1963
1964 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1965
1966 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1967 enum_opts_set when testing if attributes have set -mfpmath=.
1968
1969 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1970
1971 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1972
1973 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1974
1975 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1976 info->entry with 0
1977 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1978 id.transform_lang_insert_block with NULL.
1979
1980 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1981
1982 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1983 (output_fp_compare): Change args 3 and 4 to bool.
1984 (ix86_expand_call): Change arg 6 to bool.
1985 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1986 (ix86_attr_length_vex_default): Change arg 3 to bool.
1987 * config/i386/i386.md: Update all uses.
1988 * config/i386/i386.c: Ditto.
1989 (ix86_flags_dependent): Change return type to bool.
1990
1991 2011-05-17 Richard Guenther <rguenther@suse.de>
1992
1993 * gimple.c (type_hash_pair_compare): Fix comparison.
1994
1995 2011-05-17 Richard Guenther <rguenther@suse.de>
1996
1997 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1998 case some more, fix final hash value of the non-singleton case.
1999
2000 2011-05-17 Richard Guenther <rguenther@suse.de>
2001
2002 PR bootstrap/49013
2003 Revert
2004 2011-05-16 Richard Guenther <rguenther@suse.de>
2005
2006 * gimple.c (gimple_types_compatible_p_1): Use names of the
2007 type itself, not its main variant.
2008 (iterative_hash_gimple_type): Likewise.
2009
2010 2011-05-17 Richard Guenther <rguenther@suse.de>
2011
2012 * gimple.c (gimple_register_canonical_type): Use the main-variant
2013 leader for computing the canonical type.
2014
2015 2011-05-17 Nick Clifton <nickc@redhat.com>
2016
2017 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2018 moves.
2019
2020 * config/rx/rx.md: Add peephole to remove redundant extensions
2021 after loads.
2022 (bitset_in_memory): Use rx_restricted_mem_operand.
2023 (bitinvert_in_memory): Likewise.
2024 (bitclr_in_memory): Likewise.
2025
2026 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2027 Nick Clifton <nickc@redhat.com>
2028
2029 * config/rx/rx.md: Add peepholes to match a register move followed
2030 by a comparison of the moved register. Replace these with an
2031 addition of zero that does both actions in one instruction.
2032
2033 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2034
2035 PR target/48986
2036 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2037 predicate to allow CONST_INT.
2038 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2039
2040 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2041
2042 * opts-common.c (opt_enum_arg_to_value): New.
2043 * opts.h (opt_enum_arg_to_value): Declare.
2044 * config/i386/i386.opt (fpmath): Remove.
2045 (mfpmath=): Use Enum, Init and Save.
2046 (fpmath_unit): New Enum and EnumValue entries.
2047 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2048 name for function fpmath state.
2049 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2050 * config/i386/i386.c: Include diagnostic.h.
2051 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2052 (ix86_target_string): Take enum fpmath_unit value instead of string.
2053 (ix86_debug_options): Update call to ix86_target_string.
2054 (ix86_option_override_internal): Don't process fpmath strings here.
2055 (x86_function_specific_save, ix86_function_specific_restore):
2056 Don't handle fpmath state specially.
2057 (ix86_function_specific_print): Pass fpmath state to
2058 ix86_target_string instead of printing in this function.
2059 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2060 Handle enum attributes.
2061 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2062 (ix86_valid_target_attribute_tree): Update option_strings
2063 handling. Handle fpmath as enum option.
2064 (ix86_can_inline_p): Update field names for function fpmath state.
2065 (ix86_expand_builtin): Update call to ix86_target_string.
2066 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2067 (ix86_fpmath): Remove.
2068 * config/i386/t-i386 (i386.o): Update dependencies.
2069
2070 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2071
2072 PR preprocessor/48677
2073 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2074 from decoded_options[0], not from itself.
2075
2076 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2077
2078 * config/i386/constraints.md (z): New constraint.
2079 * config/i386/i386.c (c): New mode attribute.
2080 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2081 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2082 constraint for operand 0.
2083 (*call_vzeroupper): Ditto.
2084 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2085 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2086 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2087 Use "lzm" constraint for operand 0.
2088 (*call_pop_vzeroupper): Ditto.
2089 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2090 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2091 constraint for operand 0.
2092 (*sibcall_vzeroupper): Ditto.
2093 (*sibcall_rex64_ms_sysv): Ditto.
2094 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2095 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2096 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2097 (*sibcall_pop_vzeroupper): Ditto.
2098 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2099 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2100 mode iterator. Use "<c>zm" constraint for operand 1.
2101 (*call_value_vzeroupper): Ditto.
2102 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2103 for operand 1.
2104 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2105 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2106 *call_value_pop_1. Use "lzm" constraint for operand 1.
2107 (*call_value_pop_vzeroupper): Ditto.
2108 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2109 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2110 mode iterator. Use "Uz" constraint for operand 1.
2111 (*sibcall_value_vzeroupper): Ditto.
2112 (*sibcall_value_rex64_ms_sysv): Ditto.
2113 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2114 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2115 constraint for operand 1.
2116 (*sibcall_value_pop_vzeroupper): Ditto.
2117 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2118 and "z" constraint for operand 2.
2119 (*tls_global_dynamic_32_gnu): Ditto.
2120 (*tls_local_dynamic_base_32_gnu): Ditto.
2121 (*tls_local_dynamic_base_64): Ditto.
2122 (*tls_local_dynamic_32_once): Ditto.
2123 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2124 Update all callers.
2125 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2126
2127 2011-05-16 Richard Guenther <rguenther@suse.de>
2128
2129 * gimple.c (gimple_types_compatible_p_1): Use names of the
2130 type itself, not its main variant.
2131 (iterative_hash_gimple_type): Likewise.
2132
2133 2011-05-16 Richard Guenther <rguenther@suse.de>
2134
2135 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2136 always visit pointer target and function result and argument types.
2137
2138 2011-05-16 Jason Merrill <jason@redhat.com>
2139
2140 PR c++/48999
2141 * tree-inline.c (copy_statement_list): Put back recursion.
2142
2143 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2144
2145 PR target/27663
2146 PR target/41076
2147 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2148 * config/avr/avr.md ("*ior<mode>qi.byte0",
2149 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2150
2151 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2152
2153 PR target/45099
2154 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2155 register is needed for a function argument.
2156
2157 2011-05-16 Richard Guenther <rguenther@suse.de>
2158
2159 * gimple.c (struct type_hash_pair): New type.
2160 (type_hash_pair_compare): New function.
2161 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2162
2163 2011-05-16 Revital Eres <revital.eres@linaro.org>
2164
2165 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2166
2167 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2168
2169 * config/i386/i386.md (floating point move splitters): Fix
2170 usage of standard_80387_constant_p.
2171 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2172
2173 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2174
2175 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2176
2177 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2178
2179 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2180 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2181 (tree_ssa_lim_finalize): Likewise.
2182
2183 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2184
2185 * config/i386/constraint.md (Yd, Yx): New register constraints.
2186 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2187 Yd conditional register constraint.
2188 (*movtf_internal): Use standard_sse_constant_opcode.
2189 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2190 Yx conditional register constraint.
2191 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2192 Yd conditional register constraint. Use standard_sse_constant_p to
2193 check for valid SSE constants and call standard_sse_constant_opcode to
2194 output SSE insn.
2195 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2196 constants and call standard_sse_constant_opcode to output SSE insn.
2197 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2198 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2199 optimize_size is set.
2200 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2201
2202 2011-05-14 Tobias Burnus <burnus@net-b.de>
2203
2204 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2205
2206 2011-05-13 Martin Jambor <mjambor@suse.cz>
2207
2208 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2209 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2210 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2211 (evaluate_conditions_for_ipcp_clone): Removed.
2212 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2213 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2214 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2215
2216 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2217
2218 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2219 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2220 lieu of MAY_HAVE_DEBUG_STMTS.
2221 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2222 debug statements if !MAY_HAVE_DEBUG_STMTS.
2223
2224 2011-05-13 Martin Thuresson <martint@google.com>
2225
2226 PR gcov-profile/47793
2227 * libgcov.c (gcov_exit): Support relative profile paths.
2228 * doc/invoke.texi (-fprofile-dir): Update for above change.
2229
2230 2011-05-13 Richard Guenther <rguenther@suse.de>
2231
2232 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2233 type-pair caching, do not compare hashes.
2234
2235 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2236
2237 PR middle-end/48965
2238 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2239 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2240
2241 2011-05-13 Kai Tietz <ktietz@redhat.com>
2242
2243 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2244 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2245 compatible type for TRUTH_NOT_EXPR.
2246
2247 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2248
2249 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2250 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2251 can_create_pseudo_p ().
2252
2253 2011-05-13 Richard Guenther <rguenther@suse.de>
2254
2255 PR lto/48978
2256 * gimple.c (iterative_hash_gimple_type): Revert change in
2257 pointer target and function result and argument hashing.
2258
2259 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2260
2261 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2262 (*movxf_internal_nointeger): Ditto.
2263 (*movdf_internal_rex64): Ditto.
2264 (*movdf_internal): Ditto.
2265 (*movdf_internal_nointeger): Ditto.
2266 (*movsf_internal): Ditto.
2267 (sincos splitters): Use can_create_pseudo ().
2268
2269 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2270
2271 * config/i386/i386-opts.h: New.
2272 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2273 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2274 ix86_section_threshold): Remove.
2275 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2276 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2277 OPT_mbranch_cost_.
2278 (ix86_option_override_internal): Don't decode strings for options
2279 other than -march=, -mtune= and -mfpmath=. Don't allow for
2280 __attribute__ uses in remaining diagnostics for options with
2281 string arguments. Don't check for integer arguments being negative.
2282 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2283 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2284 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2285 ix86_branch_cost, ix86_section_threshold): Remove.
2286 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2287 HeaderInclude.
2288 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2289 but not Var.
2290 (masm=): Use Enum and Init.
2291 (asm_dialect): New Enum and EnumValue entries.
2292 (mbranch-cost=): Use UInteger.
2293 (mlarge-data-threshold=): Use UInteger and Init.
2294 (mcmodel=): Use Enum and Init.
2295 (cmodel): New Enum and EnumValue entries.
2296 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2297 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2298 mregparm=): Use UInteger.
2299 (mstringop-strategy=): Use Enum and Init.
2300 (stringop_alg): New Enum and EnumValue entries.
2301 (mtls-dialect=): Use Enum and Init.
2302 (tls_dialect): New Enum and EnumValue entries.
2303 (mabi=): Use Enum and Init.
2304 (calling_abi): New Enum and EnumValue entries.
2305 (mveclibabi=): Use Enum and Init.
2306 (ix86_veclibabi): New Enum and EnumValue entries.
2307
2308 2011-05-13 Nick Clifton <nickc@redhat.com>
2309
2310 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2311 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2312
2313 2011-05-13 Kai Tietz <ktietz@redhat.com>
2314
2315 PR middle-end/48984
2316 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2317 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2318 (gimple_boolify): Check for cast for boolean_type_node instead for
2319 BOOLEAN_TYPE.
2320
2321 2011-05-13 Richard Guenther <rguenther@suse.de>
2322
2323 PR tree-optimization/48172
2324 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2325 multiplying by number of iterations for equal step.
2326 (vect_create_cond_for_alias_checks): Likewise.
2327
2328 2011-05-13 Andreas Schwab <schwab@redhat.com>
2329
2330 * configure.ac: Use AS_HELP_STRING throughout.
2331 * configure: Regenerate.
2332
2333 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2334
2335 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2336 (ix86_emit_restore_regs_using_mov): Likewise.
2337 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2338
2339 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2340
2341 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2342 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2343 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2344 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2345 RTX_OK_FOR_OLO10_P): ...here.
2346 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2347 SYMBOLIC_CONST.
2348
2349 2011-05-12 Kai Tietz <ktietz@redhat.com>
2350
2351 * gimplify.c (gimple_boolify): Re-boolify expression
2352 arguments even if expression type is of kind BOOLEAN_TYPE.
2353 (gimplify_boolean_expr): Removed.
2354 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2355 and XOR. Additional take care that we keep expression's type.
2356 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2357 of TRUTH_AND|OR|XOR_EXPR.
2358
2359 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2360
2361 PR tree-optimization/48975
2362 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2363 on all bbs here and free and clear ifc_bbs at the end.
2364
2365 2011-05-12 Richard Guenther <rguenther@suse.de>
2366
2367 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2368 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2369 until after simple checks.
2370 (gimple_types_compatible_p): Likewise.
2371 (iterative_hash_gimple_type): Always hash pointer targets
2372 and function return and argument types.
2373 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2374 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2375 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2376 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2377 completely in the simple compare section.
2378 (gimple_register_canonical_type): Query the cache again after
2379 registering.
2380
2381 2011-05-12 Richard Guenther <rguenther@suse.de>
2382
2383 PR tree-optimization/48172
2384 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2385 the number of iterations from the segment size calculation.
2386 (vect_create_cond_for_alias_checks): Adjust.
2387
2388 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2389
2390 PR debug/48967
2391 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2392 if validate_subreg fails.
2393
2394 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2395
2396 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2397 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2398 early.
2399
2400 2011-05-12 DJ Delorie <dj@redhat.com>
2401
2402 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2403 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2404 created builtin into rx_builtins array.
2405 (rx_builtin_decl): New function.
2406 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2407
2408 2011-05-12 DJ Delorie <dj@redhat.com>
2409 Nick Clifton <nickc@redhat.com>
2410
2411 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2412 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2413 (rx_is_legitimate_address): Add pre-decrement and post-increment
2414 addressing in HImode and QImode. Fix test for out of range
2415 REG+INT addressing.
2416 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2417 (rx_align_for_label): Test label before extracting its usage count.
2418 (rx_adjust_insn_lengths): Fix selection of insn codes.
2419 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2420
2421 2011-05-11 Jason Merrill <jason@redhat.com>
2422
2423 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2424
2425 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2426
2427 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2428 reindent the subsequent block.
2429
2430 2011-05-11 Satoru Takabayashi <satorux@google.com>
2431 Paul Pluzhnikov <ppluzhnikov@google.com>
2432
2433 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2434 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2435 * config.in: Add LINKER_HASH_STYLE.
2436 * configure.ac: Add --with-linker-hash-style.
2437 * configure: Regenerate.
2438
2439 2011-05-11 Richard Guenther <rguenther@suse.de>
2440
2441 PR middle-end/48964
2442 * gimple.c (iterative_hash_canonical_type): Fix typo.
2443
2444 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2445
2446 * config/i386/i386.c (legitimize_tls_address)
2447 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2448 expanders directly for TARGET_GNU2_TLS. Determine pic and
2449 __tls_get_addr symbol reference here. Update call to
2450 gen_tls_global_dynamic_{32,64} for added arguments.
2451 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2452 expanders directly for TARGET_GNU2_TLS. Determine
2453 __tls_get_addr symbol reference here. Update call to
2454 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2455 unique UNSPEC REG_EQUIV to libcall block.
2456 (ix86_tls_get_addr): Declare static.
2457 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2458 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2459 Do not determine pic and __tls_get_addr symbol reference here. Do not
2460 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2461 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2462 (tls_global_dynamic_64): Add operand 2. Do not determine
2463 __tls_get_addr symbol reference here. Do not call
2464 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2465 (tls_local_dynamic_base64): Ditto for operand 1.
2466
2467 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2468
2469 * function.c (expand_function_start): Initialize stack_check_probe_note
2470 only if the generic stack checking mechanism is used.
2471
2472 2011-05-11 Richard Guenther <rguenther@suse.de>
2473
2474 PR tree-optimization/15256
2475 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2476 (A & B) | C, combine (A op CST1) op CST2.
2477 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2478 visit assigns that have uses.
2479
2480 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2481
2482 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2483 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2484 (unpack_ts_type_common_value_fields): ...this. Update comment.
2485 (unpack_value_fields): Adjust for renaming.
2486 (lto_input_ts_type_tree_pointers): Split into...
2487 (lto_input_ts_type_common_tree_pointer): ...this and...
2488 (lto_input_ts_type_non_common_tree_pointers): ...this.
2489 (lto_input_tree_pointers): Adjust for above split.
2490 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2491 (pack_ts_type_common_value_fields): ...this. Update comment.
2492 (lto_output_ts_type_tree_pointers): Split into...
2493 (lto_output_ts_type_common_tree_pointers): ...this and...
2494 (lto_output_ts_type_non_common_tree_pointers): ...this.
2495 (lto_output_tree_pointers): Adjust for above split.
2496 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2497 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2498 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2499 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2500 Define.
2501 (struct tree_type): Split into...
2502 (struct tree_type_common: ...this and...
2503 (struct tree_type_with_lang_specific): ...this and...
2504 (struct tree_type_non_common): ...this. Adjust accessor macros
2505 accordingly.
2506 (TYPE_VALUES_RAW): Define.
2507 (union tree_node): Update for above changes.
2508 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2509 TS_TYPE_NON_COMMON.
2510 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2511 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2512 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2513 * treestructu.def (TS_TYPE): Remove.
2514 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2515 Define.
2516
2517 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2518
2519 PR debug/48159
2520 * tree-ssa.c (reset_debug_uses): New function.
2521 * tree-flow.h (reset_debug_uses): New prototype.
2522 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2523 * tree-loop-distribution.c (generate_loops_for_partition): Call
2524 reset_debug_uses on the stmts that will be removed. Keep around
2525 all debug stmts, don't count them as bits in partition bitmap.
2526 (generate_builtin): Don't count debug stmts or labels as bits in
2527 partition bitmap.
2528
2529 2011-05-11 Richard Guenther <rguenther@suse.de>
2530
2531 * gimple.c (gimple_type_hash_1): Merge with ...
2532 (gimple_type_hash): ... this.
2533 (gtc_visit): Remove mode parameter and simplify accordingly.
2534 (gimple_types_compatible_p_1): Likewise.
2535 (gimple_types_compatible_p): Likewise.
2536 (iterative_hash_gimple_type): Likewise.
2537 (visit): Likewise.
2538 (gimple_type_eq): Adjust.
2539
2540 2011-05-11 Revital Eres <revital.eres@linaro.org>
2541
2542 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2543 enters the branch create an anti edge in the opposite direction
2544 to prevent the creation of reg-moves.
2545 * modulo-sched.c: Adjust comment to reflect the fact we are
2546 scheduling closing branch.
2547 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2548 (stage_count): New field in struct partial_schedule.
2549 (calculate_stage_count): New function.
2550 (normalize_sched_times): Rename to reset_sched_times and handle
2551 incrementing the sched time of the nodes by a constant value
2552 passed as parameter.
2553 (duplicate_insns_of_cycles): Skip closing branch.
2554 (sms_schedule_by_order): Schedule closing branch.
2555 (ps_insn_find_column): Handle closing branch.
2556 (sms_schedule): Call reset_sched_times and adjust the code to
2557 support scheduling of the closing branch.
2558 (ps_insert_empty_row): Update calls to normalize_sched_times
2559 and rotate_partial_schedule functions.
2560
2561 2011-05-11 Richard Guenther <rguenther@suse.de>
2562
2563 PR middle-end/48953
2564 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2565
2566 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2567
2568 * opts.c (finish_options): Move warning settings from process_options.
2569 * toplev.c (process_options): Move warning settings to finish_options.
2570
2571 2011-05-11 Richard Guenther <rguenther@suse.de>
2572
2573 PR tree-optimization/18041
2574 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2575 (simplify_bitwise_binary): ... this. Handle operand conversions
2576 by applying them to the result instead.
2577 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2578
2579 2011-05-11 Richard Guenther <rguenther@suse.de>
2580
2581 * gimple.c (gimple_canonical_types_compatible_p): Split out
2582 from gimple_types_compatible_p and friends. Do not recurse
2583 to pointed-to types.
2584 (gimple_canonical_type_eq): Use it.
2585 (iterative_hash_canonical_type): Split out from
2586 iterative_hash_gimple_type and friends. Do not recurse
2587 to pointed-to types.
2588 (gimple_canonical_type_hash): Use it, allocate the hash here.
2589
2590 2011-05-11 Revital Eres <revital.eres@linaro.org>
2591
2592 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2593 recognizing doloop.
2594
2595 2011-05-11 Revital Eres <revital.eres@linaro.org>
2596
2597 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2598 instead of PREV_INSN.
2599
2600 2011-05-11 Revital Eres <revital.eres@linaro.org>
2601
2602 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2603 * loop-doloop.c (doloop_condition_get): Likewise.
2604 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2605 (doloop_end): New.
2606 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2607
2608 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2609
2610 * tree.def (CASE_LABEL_EXPR): Add an operand.
2611 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2612
2613 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2614
2615 * c-decl.c (c_override_global_bindings_to_false): Remove.
2616 (global_bindings_p): Don't check
2617 c_override_global_bindings_to_false.
2618 * c-tree.h (c_override_global_bindings_to_false): Remove.
2619 * c-typeck.c (composite_type): Don't set
2620 c_override_global_bindings_to_false.
2621
2622 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2623
2624 PR target/48857, 48495
2625 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2626 (VSX_MODE): Ditto.
2627 (VSX_MOVE_MODE): Ditto.
2628 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2629 VSX vector types. Add V2DImode.
2630 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2631 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2632 (MODES_TIEABLE_P): Ditto.
2633
2634 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2635 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2636 VSX_VECTOR_MODE.
2637 (init_cumulative_args): Ditto.
2638 (rs6000_function_arg_boundary): Ditto.
2639 (rs6000_function_arg_advance_1): Ditto.
2640 (rs6000_function_arg): Ditto.
2641 (rs6000_function_ok_for_sibcall): Ditto.
2642 (emit_frame_save): Ditto.
2643 (rs6000_function_value): Ditto.
2644 (rs6000_libcall_value): Ditto.
2645
2646 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2647
2648 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2649 i386/darwin-lib.h to $libgcc_tm_file.
2650 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2651
2652 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2653
2654 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2655
2656 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2657
2658 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2659 * config/rs6000/rs6000-tables.opt: New file (generated).
2660 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2661 rs6000/rs6000-tables.opt to extra_options.
2662 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2663 * config/rs6000/rs6000.c (rs6000_select): Remove.
2664 (processor_target_table): Move contents to rs6000-cpus.def.
2665 (darwin_rs6000_override_options): Check
2666 global_options_set.x_rs6000_cpu_index instead of
2667 rs6000_select[1].string.
2668 (rs6000_option_override_internal): Likewise.
2669 (rs6000_handle_option): Don't assert that global structures are in
2670 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2671 (rs6000_default_cpu): New variable.
2672 (rs6000_file_start): Set it instead of local default_cpu. Check
2673 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2674 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2675 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2676 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2677 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2678 rs6000_select): Remove.
2679 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2680 Remove.
2681 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2682 * config/rs6000/t-rs6000
2683 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2684 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2685 global_options_set.x_rs6000_cpu_index instead of
2686 rs6000_select[1].string.
2687 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2688 global_options_set.x_rs6000_cpu_index instead of
2689 rs6000_select[1].string.
2690
2691 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2692
2693 * config.gcc (libgcc_tm_file): Define instead of including files
2694 from ../../libgcc/config/ in tm_file.
2695 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2696 * configure: Regenerate.
2697 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2698 libgcc_tm.h, cs-libgcc_tm.h): New.
2699 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2700 (clean): Remove libgcc_tm.h.
2701 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2702 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2703 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2704
2705 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2706
2707 PR target/48896
2708 * config/avr/avr.c (avr_ret_register): Return unsigned int
2709 instead of int.
2710 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2711 it to avr_libcall_value.
2712 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2713 expand_expr.
2714 (avr_expand_binop_builtin): Ditto.
2715 (avr_expand_unop_builtin): Ditto.
2716
2717 2011-05-10 DJ Delorie <dj@redhat.com>
2718
2719 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2720 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2721 * config/rx/rx.c (rx_align_for_label): Add label and
2722 uses_threshold parameters. Do not align when the label is not
2723 used enough.
2724 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2725
2726 2011-05-10 Richard Guenther <rguenther@suse.de>
2727
2728 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2729 a series of conversions and apply foldings similar to what
2730 fold-const does.
2731 (tree_ssa_forward_propagate_single_use_vars): Call it.
2732
2733 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2734
2735 PR tree-optimization/48611
2736 PR tree-optimization/48794
2737 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2738 referenced from RESX or EH_DISPATCH arguments.
2739
2740 PR debug/48928
2741 * dfp.c (decimal_to_decnumber): Handle conversion from
2742 dconst{1,2,m1,half}.
2743
2744 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2745
2746 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2747 for !flag_prefer_avx128.
2748 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2749
2750 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2751
2752 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2753 (fold_ternary_loc): Use expr_location_or.
2754
2755 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2756
2757 PR debug/48853
2758 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2759 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2760 Pmode and mem_mode is not VOIDmode.
2761
2762 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2763
2764 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2765 TYPE_QUAL_RESTRICT): Convert to enum.
2766
2767 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2768
2769 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2770 (const_pow2_1_to_8_operand): Ditto.
2771 (const_pow2_1_to_128_operand): Ditto.
2772 (const_pow2_1_to_32768_operand): Ditto.
2773 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2774 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2775 in insn constraint to check integer value of operand 3.
2776 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2777
2778 (PINSR_MODE): New mode iterator.
2779 (sse2p4_1): New mode attribute.
2780 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2781 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2782 iterator. Use const_int_operand instead of
2783 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2784 exact_log2 in insn constraint to check integer value of operand 3.
2785
2786 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2787
2788 * config/i386/sse.md (blendbits): Remove mode attribute.
2789 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2790 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2791 Check integer value of operand 3 in insn constraint.
2792
2793 2011-05-09 Richard Guenther <rguenther@suse.de>
2794
2795 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2796 for diagnostics.
2797 (lto_symtab_merge): Likewise. Do not register types here.
2798 (lto_symtab_merge_decls_2): Likewise.
2799 (lto_symtab_merge_decls_1): Likewise.
2800 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2801 * gimple.c (enum gtc_mode): Declare.
2802 (gimple_types_compatible_p): Make static.
2803
2804 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2805
2806 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2807 temporary register to match Pmode.
2808
2809 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2810
2811 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2812 and *vec_concatv4si_1_avx.
2813
2814 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2815
2816 PR rtl-optimization/48927
2817 * ira-conflicts.c (commutative_constraint_p): Use
2818 recog_data.alternative_enabled_p to disable alternatives where
2819 "enabled" attribute is false.
2820 (get_dup_num): Ditto.
2821 * ira-lives.c (single_reg_class): Ditto.
2822 (ira_implicitly_set_insn_hard_regs): Ditto.
2823
2824 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2825
2826 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2827 (dataflow_set_preserve_mem_locs): Likewise.
2828
2829 2011-05-09 Philipp Thomas <pth@suse.de>
2830
2831 * config/mep/mep.c (mep_validate_vliw): Syntax description
2832 should not be translated.
2833
2834 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2835
2836 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2837 * config/mips/mips-tables.opt: New file (generated).
2838 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2839 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2840 MIPS_ARCH_OPTION_NATIVE): Define.
2841 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2842 mips-cpus.def.
2843 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2844 mips_parse_cpu): Remove.
2845 (mips_cpu_info_from_opt, mips_default_arch): New.
2846 (mips_handle_option): Don't assert that global structures are in
2847 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2848 (mips_option_override): Use new variables and functions to set
2849 state of these options. Use strcmp to check for individual CPU names.
2850 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2851 definition.
2852 * config/mips/mips.opt (march=): Use ToLower and Enum.
2853 (mips): Use ToLower, Enum and Var.
2854 (mtune=): Use ToLower and Enum.
2855 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2856
2857 2011-05-08 Jan Hubicka <jh@suse.cz>
2858
2859 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2860 Arrange type pairs to be UID ordered.
2861 (gimple_lookup_type_leader): Make inline.
2862
2863 2011-05-09 Nick Clifton <nickc@redhat.com>
2864
2865 PR target/48899
2866 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2867 PROCESSOR_DEFAULT.
2868
2869 PR target/48897
2870 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2871 variable 's'.
2872
2873 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2874
2875 * combine.c (simplify_comparison): Abstract out parts into...
2876 (simplify_compare_const): ... new function.
2877 (try_combine): Generalize parallel arithmetic/compare combining
2878 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2879
2880 2011-05-08 Jan Hubicka <jh@suse.cz>
2881
2882 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2883 (cgraph_create_virtual_clone): Call hooks once virtual clone
2884 is finished.
2885 * cgraph.h (cgraph_clone_node): Update prototype.
2886 * ipa-cp.c (ipcp_estimate_growth): Use
2887 estimate_ipcp_clone_size_and_time.
2888 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2889 * lto-cgraph.c (input_node): Update.
2890 * ipa-inline.c (recursive_inlining): Update.
2891 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2892 (evaluate_conditions_for_known_args): Break out from ...
2893 (evaluate_conditions_for_edge): ... here.
2894 (evaluate_conditions_for_ipcp_clone): New function.
2895 (inline_node_duplication_hook): Update clone summary based
2896 on parameter map.
2897 (estimate_callee_size_and_time): Rename to ...
2898 (estimate_node_size_and_time): take NODE instead of EDGE;
2899 take POSSIBLE_TRUTHS as argument.
2900 (estimate_callee_size_and_time): Update.
2901 (estimate_ipcp_clone_size_and_time): New function.
2902 (do_estimate_edge_time): Update.
2903
2904 2011-05-08 Richard Guenther <rguenther@suse.de>
2905
2906 PR middle-end/48908
2907 PR middle-end/48905
2908 * expmed.c (expand_shift_1): Compute adjusted constant shift
2909 amount manually.
2910
2911 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2912
2913 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2914
2915 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2916
2917 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2918
2919 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2920
2921 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2922
2923 2011-05-07 Jan Hubicka <jh@suse.cz>
2924
2925 * ipa-inline-transform.c (inline_call): Account when program size
2926 decreases.
2927 * ipa-inline.c (relative_time_benefit): New function.
2928 (edge_badness): Reorganize to be power 2 based; fix thinko when
2929 computing badness for negative growth; update comments to match
2930 reality; better dumps.
2931
2932 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2933
2934 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2935 type to bool and adjust comment.
2936 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2937 (fold_mathfn_compare): Remove calls to global_bindings_p.
2938 (fold_inf_compare): Likewise.
2939 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2940 * c-tree.h (global_bindings_p): Adjust prototype.
2941 * c-decl.c (global_bindings_p): Return bool and simplify.
2942
2943 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2944
2945 PR tree-optimization/48837
2946 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2947 when accumulator transformation is performed.
2948
2949 2011-05-06 Jan Hubicka <jh@suse.cz>
2950
2951 * i386.h (ix86_tune_indices): Add
2952 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2953 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2954 * i386.c (initial_ix86_tune_features): Add
2955 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2956 (software_prefetching_beneficial_p): Remove predicate.
2957 (ix86_option_override_internal): Use new macro.
2958
2959 2011-05-06 Jan Hubicka <jh@suse.cz>
2960
2961 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2962
2963 2011-05-06 Jan Hubicka <jh@suse.cz>
2964
2965 * cgraph.c (cgraph_add_thunk): Create real function node instead
2966 of alias node; finalize it and mark needed/reachale; arrange visibility
2967 to be right and add it into the corresponding same comdat group list.
2968 (dump_cgraph_node): Dump thunks.
2969 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2970 cgraph_function_with_gimple_body_p,
2971 cgraph_first_function_with_gimple_body,
2972 cgraph_next_function_with_gimple_body): New functions.
2973 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2974 New macros.
2975 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2976 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2977 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2978 devirtualization when optimizing.
2979 (verify_cgraph_node): Verify thunks.
2980 (cgraph_analyze_function): Analyze thunks.
2981 (cgraph_mark_functions_to_output): Output thunks only in combination
2982 with function they are assigned to.
2983 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2984 alias into normal node.
2985 (assemble_thunks): New functoin.
2986 (cgraph_expand_function): Use it.
2987 * lto-cgraph.c (lto_output_node): Stream thunks.
2988 (input_overwrite_node): Stream in thunks.
2989 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2990 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2991 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2992 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2993 (inline_analyze_function): Do not care about thunk jump functions.
2994 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2995 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2996 cgraph_function_with_gimple_body_p.
2997 * passes.c (do_per_function_toporder): Use
2998 cgraph_function_with_gimple_body_p.
2999 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3000 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3001 (function_called_by_processed_nodes_p): Likewise.
3002
3003 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3004
3005 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3006 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3007 entries.
3008 (mabi=): Replace with separate entries for mabi=altivec,
3009 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3010 mabi=ieeelongdouble and mabi=ibmlongdouble.
3011 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3012 check for -mabi=spe without SPE ABI support here.
3013 (rs6000_handle_option): Replace OPT_mabi_ handling with
3014 OPT_mabi_altivec and OPT_mabi_spe handling.
3015
3016 2011-05-06 Cary Coutant <ccoutant@google.com>
3017
3018 * dwarf2out.c (contains_subprogram_definition): New function.
3019 (should_move_die_to_comdat): Call it.
3020
3021 2011-05-06 Jeff Law <law@redhat.com>
3022
3023 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3024 remove_ctrl_stmt_and_useless_edges.
3025 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3026 (fixup_template_block, thread_single_edge): Likewise.
3027 (mark_threaded_blocks): Use THREAD_TARGET.
3028
3029 2011-05-06 Alan Modra <amodra@gmail.com>
3030
3031 PR target/48900
3032 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3033 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3034
3035 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3036
3037 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3038 constraint modifier to "r".
3039
3040 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3041
3042 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3043 fall through for OPT_mcmodel_.
3044
3045 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3046
3047 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3048 instruction sizes.
3049 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3050
3051 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3052
3053 PR target/47930
3054 * config/arm/arm.opt (marm): Document it.
3055 (mthumb): Reject negative variant.
3056
3057 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3058
3059 PR target/48898
3060 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3061 Fix typo in "ccvt" variable name.
3062
3063 2011-05-06 Tristan Gingold <gingold@adacore.com>
3064
3065 PR target/48895
3066 * config/vms/vms-ar.c (main): Remove cwd variable.
3067
3068 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3069
3070 PR debug/48902
3071 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3072
3073 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3074
3075 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3076 * gimplify.c (gimplify_switch_expr): Likewise.
3077 * omp-low.c (expand_omp_sections): Likewise.
3078 * tree-eh.c (lower_try_finally_switch): Likewise.
3079 (lower_eh_dispatch): Likewise.
3080 * tree.h (build_case_label): Declare.
3081 * tree.c (build_case_label): Define.
3082
3083 2011-05-05 Jason Merrill <jason@redhat.com>
3084
3085 PR c++/40975
3086 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3087 (copy_statement_list): Don't recurse.
3088 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3089 STATEMENT_LIST.
3090
3091 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3092
3093 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3094 through from -mfpu= handling.
3095 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3096
3097 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3098
3099 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3100 POST_MODIFY.
3101
3102 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3103
3104 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3105 for 11.31.
3106 (hppa[12]*-*-hpux11*): Ditto.
3107 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3108 * config/ia64/hpux-unix2003.h: New.
3109 * config/pa/pa-hpux1131.opt: New.
3110 * config/pa/pa-hpux1131.h: New.
3111 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3112 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3113 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3114
3115 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3116
3117 PR debug/48853
3118 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3119 instead of mode as 3rd argument to recursive call.
3120 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3121 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3122 VOIDmode.
3123 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3124 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3125 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3126 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3127
3128 2011-05-05 Julian Brown <julian@codesourcery.com>
3129
3130 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3131 parenthesis in D-register case.
3132
3133 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3134
3135 * opt-functions.awk (var_type_struct): Handle Enum options.
3136 * optc-gen.awk: Don't check range of variables of character type.
3137 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3138 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3139 rs6000_sdata_name, rs6000_explicit_options): Remove.
3140 (rs6000_option_override_internal): Check for -malign-power here.
3141 Use global_options_set instead of rs6000_explicit_options.
3142 (rs6000_parse_fpu_option): Remove.
3143 (rs6000_handle_option): Access variables via opts and opts_set
3144 pointers. Use error_at and warning_at. Add fall-through
3145 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3146 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3147 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3148 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3149 here. Don't use rs6000_parse_fpu_option.
3150 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3151 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3152 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3153 (mrecip=): Use Var.
3154 (mspe): Use Var and Save.
3155 (mtraceback=): Use Enum and Var.
3156 (rs6000_traceback_type): New Enum and EnumValue entries.
3157 (mfloat-gprs=): Use Enum, Var and Save.
3158 (rs6000_float_gprs): New Enum and EnumValue entries.
3159 (mlong-double-): use Var and Save.
3160 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3161 (malign-): Use Enum and Var.
3162 (rs6000_alignment_flags): New Enum and EnumValue entries.
3163 (mfpu=): Use Enum.
3164 (fpu_type_t): New Enum and EnumValue entries.
3165 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3166 global_options_set instead of rs6000_explicit_options.
3167 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3168 global_options_set instead of rs6000_explicit_options.
3169 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3170 global_options_set instead of rs6000_explicit_options.
3171 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3172 global_options_set instead of rs6000_explicit_options.
3173 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3174 global_options_set instead of rs6000_explicit_options.
3175 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3176 global_options_set instead of rs6000_explicit_options.
3177 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3178 definition.
3179 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3180 global_options_set instead of rs6000_explicit_options.
3181 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3182 (rs6000_cmodel): New Enum and EnumValue entries.
3183 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3184 global_options_set instead of rs6000_explicit_options.
3185 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3186 (mtls-size=): Use Enum and Var.
3187 (rs6000_tls_size): New Enum and EnumValue entries.
3188
3189 2011-05-05 Michael Matz <matz@suse.de>
3190
3191 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3192 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3193 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3194 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3195 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3196 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3197 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3198 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3199 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3200 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3201 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3202 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3203 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3204 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3205 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3206 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3207
3208 2011-05-05 Richard Guenther <rguenther@suse.de>
3209
3210 * expmed.c (expand_variable_shift): Rename to ...
3211 (expand_shift_1): ... this. Take an expanded shift amount.
3212 For rotates recurse directly not building trees for the shift amount.
3213 (expand_variable_shift): Wrap around expand_shift_1.
3214 (expand_shift): Adjust.
3215
3216 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3217
3218 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3219
3220 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3221
3222 * tree.h (get_pending_sizes): Remove prototype.
3223 (put_pending_size): Likewise.
3224 (put_pending_sizes): Likewise.
3225 * stor-layout.c (pending_sizes): Delete.
3226 (get_pending_sizes): Likewise.
3227 (put_pending_size): Likewise.
3228 (put_pending_sizes): Likewise.
3229 (variable_size): Do not call put_pending_size and tidy up.
3230 * function.h (struct function): Remove dont_save_pending_sizes_p.
3231 * lto-streamer-in.c (input_function): Do not stream it.
3232 * lto-streamer-out.c (output_function): Likewise.
3233 * tree-inline.c (initialize_cfun): Do not copy it.
3234 * c-decl.c (store_parm_decls): Do not set it.
3235 * omp-low.c (create_task_copyfn): Likewise.
3236 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3237
3238 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3239
3240 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3241 conditions.
3242 (*movdf_internal): Ditto.
3243 (*movdf_internal_nointeger): Ditto.
3244 (*movsf_internal): Ditto.
3245
3246 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3247
3248 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3249 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3250 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3251 (c_variable_size): Remove.
3252 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3253 call put_pending_sizes.
3254 (get_parm_info): Add parameter expr. Use it to set
3255 arg_info->pending_sizes.
3256 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3257 get_pending_sizes.
3258 * c-parser.c (c_parser_parms_declarator): Update call to
3259 c_parser_parms_list_declarator.
3260 (c_parser_parms_list_declarator): Take parameter expr. Update
3261 call to push_parm_decl. Update recursive call. Don't call
3262 get_pending_sizes. Update calls to get_parm_info.
3263 (c_parser_objc_method_definition): Update calls to
3264 c_parser_objc_method_decl and objc_start_method_definition.
3265 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3266 (c_parser_objc_method_decl): Add parameter expr. Update call to
3267 grokparm.
3268 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3269 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3270 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3271
3272 2011-05-05 Michael Hope <michael.hope@linaro.org>
3273
3274 PR pch/45979
3275 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3276 __ARM_EABI__ hosts.
3277
3278 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3279
3280 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3281 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3282 (spu_output_mi_thunk): New function.
3283
3284 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3285
3286 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3287 targetm.asm_out.print_operand.
3288 * config/sol2.c: Include target.h.
3289
3290 2011-05-04 Jan Hubicka <jh@suse.cz>
3291
3292 * ipa-inline.c (reset_edge_caches): New function.
3293 (update_caller_keys): Add check_inlinablity_for; do not
3294 reset edge caches; remove now unnecesary loop.
3295 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3296 (update_all_callee_keys): Likewise.
3297 (inline_small_functions): Sanity check cache; update code
3298 recomputing it.
3299
3300 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3301
3302 PR rtl-optimization/47612
3303 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3304 as the last insn of the sequence to be moved.
3305
3306 2011-05-04 Tobias Burnus <burnus@net-b.de>
3307
3308 PR fortran/48864
3309 * doc/invoke.texi (Ofast): Document that it
3310 enables Fortran's -fno-protect-parens.
3311
3312 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3313
3314 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3315
3316 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3317
3318 * stor-layout.c (variable_size): Do not issue errors.
3319
3320 2011-05-04 Richard Guenther <rguenther@suse.de>
3321
3322 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3323 for array-ref indices.
3324 (tree_coverage_counter_addr): Likewise.
3325 (build_fn_info_type): Use size_int for index types.
3326 (build_gcov_info): Likewise.
3327
3328 2011-05-04 Richard Guenther <rguenther@suse.de>
3329
3330 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3331 to build_int_cst.
3332 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3333 for constructor indices.
3334 (push_init_level): Likewise.
3335
3336 2011-05-04 Richard Guenther <rguenther@suse.de>
3337
3338 * explow.c (promote_mode): Move variable declarations before code.
3339
3340 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3341
3342 * tree.h (build_function_type_array): Declare.
3343 (build_varargs_function_type_array): Declare.
3344 (build_function_type_vec, build_varargs_function_type_vec): Define.
3345 * tree.c (build_function_type_array_1): New function.
3346 (build_function_type_array): New function.
3347 (build_varargs_function_type_array): New function.
3348
3349 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3350
3351 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3352 before setting STMT_VINFO_TYPE.
3353
3354 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3355
3356 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3357 instead of spu_pass_by_reference.
3358
3359 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3360
3361 * calls.c (emit_library_call_value_1): Invoke
3362 promote_function_mode hook on libcall arguments.
3363 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3364 argument being NULL.
3365 * targhooks.c (default_promote_function_mode): Lisewise.
3366 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3367 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3368
3369 * doc/tm.texi: Document that TYPE argument might be NULL.
3370
3371 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3372
3373 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3374
3375 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3376
3377 From Bernd Schmidt
3378 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3379
3380 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3381
3382 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3383 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3384 Move ...
3385 * mips-tfile.c: ... here.
3386 Don't include coretypes.h, tm.h, filenames.h.
3387 (saber_stop): Remove definition and all calls.
3388 [__SABER__]: Remove.
3389 (__LINE__): Remove default.
3390 (Size_t, Ptrdiff_t): Remove definitions.
3391 Replace by size_t, ptrdiff_t.
3392 [!MIPS_DEBUGGING_INFO]: Remove.
3393 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3394 (progname): Add const.
3395 (STATIC): Remove.
3396 Replace all uses by static.
3397 (ALIGN_SYMTABLE_OFFSET): Remove default.
3398 * mips-tdump.c: Don't include coretypes.h, tm.h.
3399 Remove !MIPS_IS_STAB guard.
3400 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3401 $(TM_H), filenames.h dependencies.
3402 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3403
3404 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3405
3406 From Jie Zhang
3407 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3408 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3409
3410 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3411
3412 From Bernd Schmidt
3413 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3414 account and save/restore RETS.
3415 (PROFILE_BEFORE_PROLOGUE): Define.
3416 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3417 the push insn to use predecrement.
3418
3419 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3420
3421 From Jie Zhang
3422 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3423
3424 2011-05-04 Nick Clifton <nickc@redhat.com>
3425
3426 * config/mn10300/mn10300.c: Include cfgloop.h.
3427 (DUMP): New macro.
3428 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3429 Lcc or a FLcc insn into the instruction stream.
3430 (mn10300_block_contains_call): New function. Returns true if the
3431 given basic block contains a CALL insn.
3432 (mn10300_loop_contains_call_insn): New function. Returns true if
3433 the given loop contains a CALL insn.
3434 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3435 to use the SETLB and Lcc or FLcc insns.
3436 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3437 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3438 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3439 disable the SETLB optimization.
3440 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3441 __SETLB__ or __NO_SETLB__.
3442 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3443 (movsf_internal): Handle MDR register.
3444 (cmpsi): Make visible.
3445 (setlb): New pattern.
3446 (Lcc): New pattern.
3447 (FLcc): New pattern.
3448
3449 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3450
3451 PR target/48860
3452 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3453 for reg<->xmm moves.
3454 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3455 (vec_concatv2di_rex64_sse): Ditto.
3456 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3457 (*vec_extractv2di_1_rex64): Ditto.
3458
3459 Revert:
3460 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3461
3462 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3463 reg<->xmm moves.
3464 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3465
3466 2011-05-04 Richard Guenther <rguenther@suse.de>
3467
3468 * tree.h (int_const_binop): Remove notrunc argument.
3469 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3470 create integer constants that are properly truncated.
3471 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3472 (const_binop): Remove zero notrunc argument to int_const_binop.
3473 (size_binop_loc): Likewise.
3474 (fold_div_compare): Likewise.
3475 (maybe_canonicalize_comparison_1): Likewise.
3476 (fold_comparison): Likewise.
3477 (fold_binary_loc): Likewise.
3478 (multiple_of_p): Likewise.
3479 * expr.c (store_constructor): Likewise.
3480 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3481 (maybe_fold_stmt_addition): Likewise.
3482 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3483 * stor-layout.c (layout_type): Likewise.
3484 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3485 * tree-sra.c (build_ref_for_offset): Likewise.
3486 (build_user_friendly_ref_for_offset): Likewise.
3487 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3488 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3489 * tree-ssa-loop-niter.c (inverse): Likewise.
3490 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3491 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3492 * tree-switch-conversion.c (check_range): Likewise.
3493 (build_constructors): Likewise.
3494 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3495 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3496 (extract_range_from_assert): Likewise.
3497 (vrp_int_const_binop): Likewise.
3498 (extract_range_from_binary_expr): Likewise.
3499 (extract_range_from_unary_expr): Likewise.
3500 (check_array_ref): Likewise.
3501 (find_case_label_range): Likewise.
3502 (simplify_div_or_mod_using_ranges): Likewise.
3503 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3504 comparing case labels for merging.
3505
3506 2011-05-03 Mark Wielaard <mjw@redhat.com>
3507
3508 * dwarf2out.c (debug_str_hash_forced): Removed.
3509 (gen_label_for_indirect_string): Removed.
3510 (get_debug_string_label): Removed.
3511 (AT_string_form): Generate label directly.
3512 (output_indirect_string): Test indirect_string_node for
3513 DW_FORM_strp instead of checking label and refcount.
3514 (prune_indirect_string): Removed.
3515 (prune_unused_types): Don't check debug_str_hash_forced or
3516 call prune_indirect_string.
3517
3518 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3519
3520 PR other/48093
3521 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3522
3523 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3524
3525 PR debug/47994
3526 PR debug/47919
3527 * combine.c (try_combine): Skip debug insns at m_split tests.
3528
3529 2011-04-26 Mark Wielaard <mjw@redhat.com>
3530
3531 PR42288
3532 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3533 when info_section_emitted.
3534
3535 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3536
3537 * config/mips/mips-opts.h: New.
3538 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3539 to mips-opts.h.
3540 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3541 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3542 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3543 via opts pointer.
3544 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3545 mips-opts.h.
3546 (mips_abi, mips_code_readable): Don't declare.
3547 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3548 (mabi=): Use Enum and Var.
3549 (mips_abi): New Enum and EnumValue entries.
3550 (mcode-readable=): Use Enum and Var.
3551 (mips_code_readable_setting): New Enum and EnumValue entries.
3552 (mr10k-cache-barrier=): Use Enum and Var.
3553 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3554
3555 2011-05-03 Jan Hubicka <jh@suse.cz>
3556
3557 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3558 replace hash by pointer map.
3559 (cgraph_node_set_element_def, cgraph_node_set_element,
3560 const_cgraph_node_set_element, varpool_node_set_element_def,
3561 varpool_node_set_element, const_varpool_node_set_element): Remove.
3562 (free_cgraph_node_set, free_varpool_node_set): New function.
3563 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3564 * tree-emutls.c: Free varpool node set.
3565 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3566 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3567 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3568 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3569 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3570 Move here from ipa.c; implement using pointer_map
3571 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3572 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3573 debug_cgraph_node_set, varpool_node_set_new,
3574 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3575 dump_varpool_node_set, debug_varpool_node_set):
3576 Move to ipa-uitls.c.
3577 * passes.c (ipa_write_summaries): Update.
3578
3579 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3580
3581 From Mike Frysinger:
3582 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3583 bf542/bf544/bf547/bf548/bf549.
3584
3585 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3586
3587 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3588
3589 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3590
3591 From Bernd Schmidt:
3592 * config/bfin/bfin.md (MOVCC): New mode_macro.
3593 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3594 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3595 comments from generated assembly.
3596
3597 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3598
3599 From Bernd Schmidt
3600 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3601 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3602 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3603 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3604 * config/bfin/lib1funcs.asm (___muldi3): New function.
3605
3606 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3607
3608 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3609 build_function_type_list instead of build_function_type.
3610 Rearrange initialization of `args' to do so.
3611
3612 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3613
3614 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3615 instead of build_function_type.
3616
3617 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3618
3619 * config/rs6000/rs6000.c (spe_init_builtins): Call
3620 build_function_type_list instead of build_function_type.
3621 (paired_init_builtins, altivec_init_builtins): Likewise.
3622 (builtin_function_type): Likewise.
3623
3624 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3625
3626 * config/sh/sh.c (sh_media_init_builtins): Call
3627 build_function_type_list instead of build_function_type.
3628
3629 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3630
3631 * config/sparc/sparc.c (sparc_file_end): Call
3632 build_function_type_list instead of build_function_type.
3633
3634 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3635
3636 * config/alpha/alpha.c (alpha_init_builtins): Call
3637 build_function_type_list instead of build_function_type.
3638
3639 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3640
3641 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3642 build_function_type_list instead of build_function_type.
3643
3644 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3645
3646 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3647 build_function_type_list instead of build_function_type.
3648 Delete `endlink' variable.
3649
3650 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3651
3652 * config/avr/avr.c (avr_init_builtins): Call
3653 build_function_type_list instead of build_function_type.
3654
3655 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3656
3657 * config/picochip/picochip.c (picochip_init_builtins): Call
3658 build_function_type_list instead of build_function_type.
3659 Delete `endlink' variable.
3660
3661 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3662
3663 * config/bfin/bfin.c (bfin_init_builtins): Call
3664 build_function_type_list instead of build_function_type.
3665
3666 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3667
3668 From Bernd Schmidt
3669 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3670 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3671
3672 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3673
3674 From Jie Zhang:
3675 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3676 libbffastfp overrides libgcc when -mfast-fp.
3677
3678 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3679
3680 Originally from Bernd Schmidt
3681 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3682 * config/bfin/bfin.c (override_options): Test it and error if
3683 TARGET_FDPIC.
3684
3685 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3686
3687 Originally From Bernd Schmidt
3688 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3689 FD-PIC.
3690
3691 2011-05-03 Jeff Law <law@redhat.com>
3692
3693 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3694 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3695 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3696 than accessing AUX field directly. Free the AUX field before
3697 clearing it.
3698 (thread_block, thread_through_loop_header): Likewise.
3699 (thread_single_edge, mark_threaded_blocks): Likewise.
3700 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3701 (register_jump_thread): Do not attempt to thread to a NULL edge.
3702
3703 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3704
3705 * function.c (init_function_start): Call decide_function_section.
3706 * varasm.c (decide_function_section): New function.
3707 (assemble_start_function): When not using
3708 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3709 or first_function_block_is_cold.
3710 * rtl.h (decide_function_section): Declare.
3711
3712 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3713 Jakub Jelinek <jakub@redhat.com>
3714
3715 PR target/48774
3716 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3717 only succeed if req_mode is the same as set_mode.
3718
3719 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3720
3721 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3722 * genemit.c (gen_exp): Handle RETURN.
3723 * emit-rtl.c (verify_rtx_sharing): Likewise.
3724 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3725 * rtl.c (copy_rtx): RETURN is shared.
3726 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3727 (ret_rtx): New.
3728 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3729 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3730 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3731 * config/cris/cris.c (cris_expand_return): Likewise.
3732 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3733 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3734 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3735 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3736 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3737 Likewise.
3738 * config/v850/v850.c (expand_epilogue): Likewise.
3739 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3740 * config/arm/arm.md (epilogue): Likewise.
3741 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3742 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3743 variable to ret_reg.
3744
3745 2011-05-03 Richard Guenther <rguenther@suse.de>
3746
3747 PR lto/48846
3748 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3749 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3750 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3751
3752 2011-05-03 Richard Guenther <rguenther@suse.de>
3753
3754 * c-decl.c (grokdeclarator): Instead of looking at
3755 TREE_OVERFLOW check if the constant fits in the index type.
3756
3757 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3758
3759 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3760 (vec_store_lanes<mode><mode>): Likewise.
3761
3762 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3763
3764 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3765 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3766 convert_optab_index values.
3767 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3768 * genopinit.c (optabs): Initialize the new optabs.
3769 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3770 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3771 (expand_STORE_LANES): New functions.
3772 * tree.h (build_array_type_nelts): Declare.
3773 * tree.c (build_array_type_nelts): New function.
3774 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3775 (vect_model_load_cost): Likewise.
3776 (vect_store_lanes_supported, vect_load_lanes_supported)
3777 (vect_record_strided_load_vectors): Declare.
3778 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3779 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3780 (vect_transform_strided_load): Split out statement recording into...
3781 (vect_record_strided_load_vectors): ...this new function.
3782 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3783 (write_vector_array, create_array_ref): New functions.
3784 (vect_model_store_cost): Add store_lanes_p argument.
3785 (vect_model_load_cost): Add load_lanes_p argument.
3786 (vectorizable_store): Try to use store-lanes functions for
3787 interleaved stores.
3788 (vectorizable_load): Likewise load-lanes and loads.
3789 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3790 to vect_model_store_cost.
3791 (vect_build_slp_tree): Likewise vect_model_load_cost.
3792
3793 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3794
3795 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3796 * hooks.c (hook_bool_mode_uhwi_false): New function.
3797 * target.def (array_mode_supported_p): New hook.
3798 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3799 * doc/tm.texi: Regenerate.
3800 * stor-layout.c (mode_for_array): New function.
3801 (layout_type): Use it.
3802 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3803 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3804
3805 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3806
3807 PR target/48723
3808 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3809 for -fstack-check if the size to allocate is negative.
3810
3811 2011-05-02 Lawrence Crowl <crowl@google.com>
3812
3813 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3814 (timevar_cond_start): New for starting a timer only when it is not
3815 already running.
3816 (timevar_cond_stop): New for stopping a timer when it was not already
3817 running.
3818
3819 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3820 (timevar_cond_start): New as above.
3821 (timevar_cond_stop): New as above.
3822
3823 * timevar.def: Add start/stop timers for compiler phases,
3824 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3825 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3826 and TV_PHASE_FINALIZE.
3827 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3828 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3829 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3830 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3831 Make unused TV_OVERLOAD into a start/stop timer.
3832
3833 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3834 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3835 to indicate that they are start/stop timers.
3836
3837 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3838 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3839 Move initialization to do_compile.
3840 (do_compile): Add initialization from above.
3841 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3842
3843 * c-decl.c (c_write_global_declarations): Add start/stop of
3844 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3845
3846 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3847 or TV_PARSE_INLINE, as appropriate.
3848 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3849 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3850
3851 2011-05-02 Jason Merrill <jason@redhat.com>
3852
3853 PR c++/40975
3854 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3855
3856 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3857
3858 PR c/35445
3859 * c-decl.c (finish_decl): Only create a composite if the types are
3860 compatible.
3861
3862 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3863
3864 * config/fr30/fr30-protos.h (Mmode): Don't define.
3865 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3866 definition where used.
3867 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3868 define. Expand definitions where used.
3869 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3870 Expand definitions where used.
3871 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3872 rx_function_arg, rx_function_arg_advance,
3873 rx_function_arg_boundary): Expand definitions of those macros.
3874 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3875 definition where used.
3876
3877 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3878
3879 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3880 reg<->xmm moves.
3881 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3882 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3883 with *movv2sf_internal_rex64_avx.
3884 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3885 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3886 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3887 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3888 "vex" in "prefix" attribute calculation.
3889 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3890
3891 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3892
3893 PR target/47951
3894 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3895 inputs match the output.
3896
3897 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3898
3899 PR target/47955
3900 * config/m68k/m68k.c (m68k_expand_prologue): Set
3901 current_function_static_stack_size.
3902
3903 2011-05-02 Jan Hubicka <jh@suse.cz>
3904
3905 * lto-streamer.c (lto_streamer_cache_insert_1,
3906 lto_streamer_cache_lookup, lto_streamer_cache_create,
3907 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3908 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3909
3910 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3911
3912 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3913 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3914 config/m68k/t-opts: New files.
3915 * config/m68k/m68k-tables.opt: New file (generated).
3916 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3917 extra_options and m68k/t-opts to tmake_file.
3918 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3919 (all_isas): Initialize using m68k-isas.def.
3920 (all_microarchs): Initialize using m68k-microarchs.def.
3921 (m68k_find_selection): Remove.
3922 (m68k_handle_option): Don't assert that global structures are in
3923 use. Use error_at. Access variables via opts pointer. Don't
3924 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3925 directly for -m68020-40 and -m68020-60.
3926 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3927 m68k_tune_entry here.
3928 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3929 to m68k-opts.h.
3930 (m68k_library_id_string): Remove declaration.
3931 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3932 (m68k_library_id_string): New Variable.
3933 (march=, mcpu=, mtune=): Use Enum and Var.
3934
3935 2011-05-02 Richard Guenther <rguenther@suse.de>
3936
3937 * varasm.c (output_constructor_regular_field): Compute zero-based
3938 index with double-ints. Make sure to ICE instead of producing
3939 wrong code.
3940 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3941 in asserts. Properly use a signed type.
3942
3943 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3944
3945 * config/i386/sse.md (V): New mode iterator.
3946 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3947 TARGET_SSE2.
3948 (V_256): Rename from AVX256MODE.
3949 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3950 condition to all users.
3951 (VF1): Ditto.
3952 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3953 condition to all users.
3954 (VF_128): Make V4SF mode unconditional.
3955 (VF_256): Rename from AVX256MODEF2P.
3956 (VI4F_128): Rename from SSEMODE4S.
3957 (VI8F_128): Rename from SSEMODE2D.
3958 (VI4F_256): Rename from AVX256MODE8P.
3959 (VI8F_256): Rename from AVX256MODE4P.
3960 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3961 (ssescalarmodesuffix): Remove SF and DF modes.
3962 (SSEMODE124): Remove.
3963 (SSEMODE1248): Ditto.
3964 (SSEMODEF2P): Ditto.
3965 (AVXMODEF2P): Ditto.
3966 (AVXMODEFDP): Ditto.
3967 (AVXMODEFSP): Ditto.
3968 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3969 unconditional.
3970 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3971 unconditional.
3972 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3973 xop_pcmov_<mode>256. Use V mode iterator.
3974
3975 Adjust RTX patterns globally for renamed mode attributes.
3976
3977 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3978
3979 * haifa-sched.c (sched_emit_insn): Emit insn before first
3980 non-scheduled insn. Inform back-end about new insn. Add
3981 new insn to scheduled_insns list.
3982
3983 2011-05-02 Richard Guenther <rguenther@suse.de>
3984
3985 PR tree-optimization/48822
3986 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3987 (process_scc): Indicate which iteration we start.
3988
3989 2011-05-02 Jan Hubicka <jh@suse.cz>
3990
3991 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3992 (lto_section_overrun): New.
3993 * lto-section-out.c (append_block): Rename to ...
3994 (lto_append_block): ... this one; export.
3995 (lto_output_1_stream): Move lto lto-streamer.h
3996 (lto_output_data_stream): Update.
3997 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3998 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3999 functions.
4000
4001 2011-05-02 Richard Guenther <rguenther@suse.de>
4002
4003 * tree.c (tree_code_counts): New global array.
4004 (record_node_allocation_statistics): Count individual tree codes.
4005 (dump_tree_statistics): Dump individual code stats.
4006
4007 2011-05-01 Jan Hubicka <jh@suse.cz>
4008
4009 * ipa-inline.c (caller_growth_limits): Fix thinko when
4010 looking for largest stack frame.
4011 * ipa-inline.h (dump_inline_summary): Declare.
4012 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4013 on stack usage.
4014 (dump_inline_summary): Export.
4015 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4016
4017 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4018
4019 * reginfo.c (memory_move_cost): Change rclass argument type form
4020 'enum reg_class' to reg_class_t.
4021 * reload.h (memory_move_cost): Update prototype.
4022 * postreload.c reload_cse_simplify_set): Change type dclass var to
4023 reg_class_t.
4024 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4025 Update prototype.
4026 (ira_allocate_and_set_costs): Change aclass argument type form
4027 'enum reg_class' to reg_class_t.
4028 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4029 Change aclass argument type to reg_class_t.
4030 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4031 to reg_class_t.
4032 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4033 memory_move_cost call.
4034
4035 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4036 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4037 Change type tmp var to reg_class_t.
4038
4039 2011-04-30 Jan Hubicka <jh@suse.cz>
4040
4041 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4042 inlining into function with flatten attribute.
4043 (want_inline_small_function_p): Be more realistic about inlining
4044 cold calls where callee size grows.
4045
4046 2011-04-30 Jan Hubicka <jh@suse.cz>
4047
4048 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4049 flags.
4050
4051 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4052
4053 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4054 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4055 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4056 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4057 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4058 (print_operand): Rename to...
4059 (sparc_print_operand): ...this. Make static. Adjust
4060 sparc_print_operand function call.
4061 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4062 functions.
4063
4064 2011-04-30 Jan Hubicka <jh@suse.cz>
4065
4066 PR middle-end/48752
4067 * ipa-inline.c (early_inliner): Disable when doing late
4068 addition of function.
4069
4070 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4071
4072 * dwarf2out.c (get_address_mode): New inline.
4073 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4074 if not dwarf_strict emit
4075 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4076 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4077 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4078 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4079 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4080 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4081 mem_loc_descriptor callers.
4082 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4083 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4084 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4085 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4086 (base_types): New variable.
4087 (get_base_type_offset, calc_base_type_die_sizes,
4088 base_type_for_mode, mark_base_types, base_type_cmp,
4089 move_marked_base_types): New functions.
4090 (calc_die_sizes): Assert that die_offset is 0 or equal to
4091 next_die_offset.
4092 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4093 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4094 callers. If not dwarf_strict, call mem_loc_descriptor even for
4095 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4096 (gen_subprogram_die): Don't give up on call site parameters
4097 with non-integral or large integral modes. Adjust
4098 mem_loc_descriptor callers.
4099 (prune_unused_types): Call prune_unused_types_mark on base_types
4100 vector entries.
4101 (resolve_addr): Call mark_base_types.
4102 (dwarf2out_finish): Call move_marked_base_types.
4103
4104 PR tree-optimization/48809
4105 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4106 type.
4107 (gen_inbound_check): Don't compute index_expr - range_min in utype
4108 again, instead reuse SSA_NAME initialized in build_arrays.
4109 Remove two useless gsi_for_stmt calls.
4110
4111 2011-04-29 Jeff Law <law@redhat.com>
4112
4113 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4114
4115 2011-04-29 Martin Jambor <mjambor@suse.cz>
4116
4117 * cgraph.h (cgraph_postorder): Remove declaration.
4118 * ipa-utils.h (ipa_free_postorder_info): Declare.
4119 (ipa_reverse_postorder): Likewise.
4120 * cgraphunit.c: Include ipa-utils.h.
4121 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4122 * ipa-inline.c: Include ipa-utils.h.
4123 (ipa_inline): Update call to ipa_reverse_postorder.
4124 * ipa-pure-const.c (propagate_pure_const): Update call to
4125 ipa_reduced_postorder and ipa_print_order. Call
4126 ipa_free_postorder_info to clean up.
4127 (propagate_nothrow): Likewise.
4128 * ipa-reference.c (propagate): Removed a useless call to
4129 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4130 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4131 * ipa.c: Include ipa-utils.h.
4132 (ipa_profile): Update call to ipa_reverse_postorder.
4133 (cgraph_postorder): Moved to...
4134 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4135 (ipa_utils_print_order): Renamed to ipa_print_order.
4136 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4137 comments.
4138 (ipa_free_postorder_info): New function.
4139 * passes.c: Include ipa-utils.h.
4140 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4141 (ipa_write_summaries): Likewise.
4142 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4143 (cgraphunit.o): Likewise.
4144 (ipa.o): Likewise.
4145 (ipa-inline.o): Likewise.
4146
4147 2011-04-29 Jan Hubicka <jh@suse.cz>
4148
4149 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4150 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4151 * ipa-inline.h (clause_t): Turn into unsigned int.
4152 * ipa-inline-analysis.c (add_clause): Do more simplification.
4153 (and_predicates): Shortcut more cases.
4154 (predicates_equal_p): Move forward; check that clauses are properly
4155 ordered.
4156 (or_predicates): Shortcut more cases.
4157 (edge_execution_predicate): Rewrite as...
4158 (set_cond_stmt_execution_predicate): ... this function; handle
4159 __builtin_constant_p.
4160 (set_switch_stmt_execution_predicate): New .
4161 (compute_bb_predicates): New.
4162 (will_be_nonconstant_predicate): Update TODO.
4163 (estimate_function_body_sizes): Use compute_bb_predicates
4164 and free them later, always try to estimate if stmt is constant.
4165 (estimate_time_after_inlining, estimate_size_after_inlining):
4166 Gracefully handle optimized out edges.
4167 (read_predicate): Fix off by one error.
4168
4169 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4170
4171 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4172
4173 2011-04-27 Xinliang David Li <davidxl@google.com>
4174
4175 * tree-profile.c (init_ic_make_global_vars): Set
4176 tls attribute on ic vars.
4177 * coverage.c (coverage_end_function): Initialize
4178 function_list with zero.
4179
4180 2011-04-29 Richard Guenther <rguenther@suse.de>
4181
4182 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4183 for the type of the result.
4184 (fold_builtin_isascii): Likewise.
4185 (fold_builtin_toascii): Use integer_type_node where appropriate.
4186 (fold_builtin_logb): Likewise.
4187 (fold_builtin_frexp): Likewise.
4188 (fold_builtin_strstr): Likewise.
4189 (fold_builtin_strpbrk): Likewise.
4190 (fold_builtin_fputs): Likewise.
4191 (fold_builtin_sprintf): Likewise.
4192 (fold_builtin_snprintf): Likewise.
4193 (fold_builtin_printf): Likewise.
4194 (do_mpfr_remquo): Use a proper type for the assigned constant.
4195 (do_mpfr_lgamma_r): Likewise.
4196 * dwarf2out.c (resolve_one_addr): Use size_int.
4197 * except.c (init_eh): Likewise.
4198 (assign_filter_values): Use integer_type_node for filter values.
4199 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4200 indices.
4201 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4202 for EH region numbers.
4203 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4204 for the shift amount.
4205
4206 2011-04-29 Richard Guenther <rguenther@suse.de>
4207
4208 * expr.h (expand_shift): Rename to ...
4209 (expand_variable_shift): ... this.
4210 (expand_shift): Take a constant shift amount.
4211 * expmed.c (expand_shift): Rename to ...
4212 (expand_variable_shift): ... this.
4213 (expand_shift): New wrapper around expand_variable_shift.
4214 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4215 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4216 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4217 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4218 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4219 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4220 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4221 emit_store_flag_1, emit_store_flag): Likewise.
4222 * builtins.c (expand_builtin_signbit): Likewise.
4223 * calls.c (load_register_parameters): Likewise.
4224 * function.c (assign_parm_setup_block): Likewise.
4225 * lower-subreg.c (resolve_shift_zext): Likewise.
4226 * optabs.c (widen_bswap, expand_abs_nojump,
4227 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4228 * spu/spu.c (spu_expand_extv): Likewise.
4229 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4230
4231 2011-04-29 Richard Guenther <rguenther@suse.de>
4232
4233 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4234 for the remapped region number.
4235 * predict.c (build_predict_expr): Use integer_type_node for the
4236 predict kind.
4237 * fold-const.c (fold_binary_loc): Use integer_type_node for
4238 the shift amount. Use a proper type for the PLUS_EXPR operand.
4239
4240 2011-04-29 Michael Matz <matz@suse.de>
4241
4242 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4243 other trees that just builtins.
4244 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4245
4246 2011-04-29 Richard Guenther <rguenther@suse.de>
4247
4248 * tree-nested.c (get_trampoline_type): Use size_int.
4249 (get_nl_goto_field): Likewise.
4250 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4251 for all indexes.
4252 (lower_eh_constructs_2): Likewise.
4253 (lower_resx): Likewise.
4254 (lower_eh_dispatch): Likewise.
4255 * tree-mudflap.c (mf_build_string): Use size_int.
4256 (mudflap_register_call): Use integer_type_node for the flag.
4257 (mudflap_enqueue_constant): Use size_int.
4258 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4259 instead of rebuilding it.
4260
4261 2011-04-29 Richard Guenther <rguenther@suse.de>
4262
4263 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4264 Handle OBJ_TYPE_REF.
4265 (find_func_aliases_for_call): Use it more consistently.
4266
4267 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4268
4269 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4270 (rank_for_schedule): Use it.
4271 (schedule_block): Set it.
4272
4273 2011-04-28 David Li <davidxl@google.com>
4274
4275 * tree.c (crc32_string): Use crc32_byte.
4276 (crc32_byte): New function.
4277 * tree.h (crc32_byte): New function.
4278 * gcov.c (read_graph_file): Handle new cfg_cksum.
4279 (read_count_file): Ditto.
4280 * profile.c (instrument_values): Ditto.
4281 (get_exec_counts): Ditto.
4282 (read_profile_edge_counts): Ditto.
4283 (compute_branch_probabilities): Ditto.
4284 (compute_value_histograms): Ditto.
4285 (branch_prob): Ditto.
4286 (end_branch_prob): Ditto.
4287 * coverage.c (read_counts_file): Ditto.
4288 (get_coverage_counts): Ditto.
4289 (tree_coverage_counter_addr): Ditto.
4290 (coverage_checksum_string): Ditto.
4291 (coverage_begin_output): Ditto.
4292 (coverage_end_function): Ditto.
4293 (build_fn_info_type): Ditto.
4294 (build_fn_info_value): Ditto.
4295 * libgcov.c (gcov_exit): Ditto.
4296 * gcov-dump.c (tag_function): Ditto.
4297 (compute_checksum): Remove.
4298
4299 2011-04-29 Alan Modra <amodra@gmail.com>
4300
4301 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4302 unspec plus offset. Tidy macho code.
4303
4304 2011-04-29 Martin Jambor <mjambor@suse.cz>
4305
4306 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4307 node instead of a decl. Update all callers.
4308 * cgraph.h: Update declaration.
4309
4310 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4311
4312 PR tree-optimization/48765
4313 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4314 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4315 to indicate if loop aware SLP is being used. Scan the statements
4316 and update the vectorization factor according to the type of
4317 vectorization before statement analysis.
4318 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4319 pass it to vect_analyze_loop_operations.
4320 (vectorizable_reduction): Set number of copies to 1 in case of pure
4321 SLP statement.
4322 * tree-vect-stmts.c (vectorizable_conversion,
4323 vectorizable_assignment, vectorizable_shift,
4324 vectorizable_operation, vectorizable_type_demotion,
4325 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4326 Likewise.
4327 (vectorizable_condition): Move the check that it is not SLP
4328 vectorization before the number of copies check.
4329 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4330 to vectorize the loop using SLP.
4331
4332 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4333
4334 PR middle-end/48597
4335 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4336 inline asm.
4337
4338 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4339
4340 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4341 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4342 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4343 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4344 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4345 linux*.h headers.
4346 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4347 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4348 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4349 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4350 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4351 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4352 REG_NAME.
4353 * config/i386/linux.h (REG_NAME): Don't define.
4354 * config/i386/linux64.h (REG_NAME): Don't define.
4355 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4356 Undefine before defining.
4357
4358 2011-04-28 Jan Hubicka <jh@suse.cz>
4359
4360 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4361 nonconstant_names array.
4362 (estimate_function_body_sizes): Build nonconstant_names array; handle
4363 BUILT_IN_CONSTANT_P.
4364
4365 2011-04-28 Richard Guenther <rguenther@suse.de>
4366
4367 PR bootstrap/48804
4368 Revert
4369 2011-04-28 Richard Guenther <rguenther@suse.de>
4370
4371 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4372 as late as possible.
4373
4374 2011-04-28 Richard Guenther <rguenther@suse.de>
4375
4376 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4377 (debug_constraint): Do it here.
4378 (dump_constraints): And here.
4379 (rewrite_constraints): And here.
4380 (dump_constraint_edge): Remove.
4381 (dump_constraint_graph): Rewrite to produce DOT output.
4382 (solve_constraints): Build succ graph as late as possible.
4383 Dump constraint graphs before and after solving.
4384
4385 2011-04-28 Richard Guenther <rguenther@suse.de>
4386
4387 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4388 New function split out from ...
4389 (find_func_aliases): ... here. Call it.
4390 (find_func_aliases_for_call): Likewise.
4391
4392 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4393
4394 * internal-fn.h (internal_fn_name_array): Declare.
4395 (internal_fn_flags_array): Likewise.
4396
4397 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4398
4399 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4400 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4401 Move from sse.md.
4402 (ssemodefsuffix): Remove.
4403 (ssevecmodesuffix): New mode attribute.
4404 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4405 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4406 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4407 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4408 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4409 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4410 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4411 ssemodesuffix mode attribute.
4412 (float splitters): Use ssevecmodesuffix mode attribute.
4413 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4414 (sseinsmode): Rename from avxvecmode.
4415 (avxsizesuffix): Rename from avxmodesuffix.
4416 (sseintvecmode): Rename from avxpermvecmode.
4417 (ssedoublevecmode): Rename from ssedoublesizemode.
4418 (ssehalfvecmode): Rename from avxhalfvecmode.
4419 (ssescalarmode): Rename from avxscalarmode.
4420 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4421 templates for ssemodesuffix mode attribute.
4422 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4423 mode attribute.
4424
4425 Adjust RTX patterns globally for renamed mode attributes.
4426
4427 2011-04-27 Jan Hubcika <jh@suse.cz>
4428
4429 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4430 * ipa-inline-analysis.c: Include alloc-pool.h.
4431 (edge_predicate_pool): New.
4432 (trye_predicate_p): New function
4433 (false_predicate_p): New function.
4434 (add_clause): Sanity check that false clauses are "optimized";
4435 never add clauses to predicate that is already known to be false.
4436 (and_predicate): Use flase_predicate_p.
4437 (evaulate_predicate): Rename to ...
4438 (evaluate_predicate): ... this one; update all callers; assert
4439 that false is not listed among possible truths.
4440 (dump_predicate): Use true_predicate_p.
4441 (account_size_time): Use false_predicate_p.
4442 (evaulate_conditions_for_edge): Rename to ...
4443 (evaluate_conditions_for_edge) ... this one.
4444 (edge_set_predicate): New function.
4445 (inline_edge_duplication_hook): Duplicate edge predicates.
4446 (inline_edge_removal_hook): Free edge predicates.
4447 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4448 (dump_inline_summary): Update.
4449 (estimate_function_body_sizes): Set edge predicates.
4450 (estimate_calls_size_and_time): Handle predicates.
4451 (estimate_callee_size_and_time): Update.
4452 (remap_predicate): Add toplev_predicate; update comment.
4453 (remap_edge_predicates): New function.
4454 (inline_merge_summary): Compute toplev predicate; update.
4455 (read_predicate): New function.
4456 (read_inline_edge_summary): Use it.
4457 (inline_read_section): Likewise.
4458 (write_predicate): New function.
4459 (write_inline_edge_summary): Use it.
4460 (inline_write_summary): Likewise.
4461 (inline_free_summary): Free alloc pool and edge summary vec.
4462
4463 2011-04-27 Richard Guenther <rguenther@suse.de>
4464
4465 * tree-ssa-structalias.c (changed_count): Remove.
4466 (changed): Use a bitmap.
4467 (unify_nodes): Adjust.
4468 (do_sd_constraint): Likewise.
4469 (do_ds_constraint): Likewise.
4470 (do_complex_constraint): Likewise.
4471 (solve_graph): Likewise.
4472
4473 2011-04-27 Jan Hubicka <jh@suse.cz>
4474
4475 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4476
4477 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4478
4479 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4480 (avx_vperm2f128_*_operand): Ditto.
4481 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4482 Use avx_vpermilp_parallel in insn condition.
4483 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4484 Use avx_vperm2f128_parallel in insn condition.
4485
4486 2011-04-27 Richard Guenther <rguenther@suse.de>
4487
4488 * Makefile.in (tree-ssa-structalias.o): Remove
4489 gt-tree-ssa-structalias.h dependency.
4490 (GTFILES): Remove tree-ssa-structalias.c.
4491 * tree.c (allocate_decl_uid): New function.
4492 (make_node_stat): Use it.
4493 (copy_node_stat): Likewise.
4494 * tree.h (allocate_decl_uid): Declare.
4495 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4496 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4497 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4498 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4499 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4500 (struct heapvar_map): Likewise.
4501 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4502 heapvar_insert): Likewise.
4503 (make_heapvar_for): Rename to ...
4504 (make_heapvar): ... this. Simplify.
4505 (fake_var_decl_obstack): New global var.
4506 (build_fake_var_decl): New function.
4507 (make_constraint_from_heapvar): Adjust.
4508 (handle_lhs_call): Likewise.
4509 (create_function_info_for): Likewise.
4510 (intra_create_variable_infos): Likewise.
4511 (init_alias_vars): Allocate fake_var_decl_obstack.
4512 (init_alias_heapvars, delete_alias_heapvars): Remove.
4513 (compute_points_to_sets): Do not call init_alias_heapvars.
4514 (ipa_pta_execute): Likewise.
4515 (delete_points_to_sets): Free fake_var_decl_obstack.
4516
4517 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4518
4519 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4520 (si_from_UTItype, si_to_UTItype): New functions.
4521 (__udivmodti4): Use them to implement type-punning.
4522 * config/spu/multi3.c (union qword_TItype): New data type.
4523 (si_from_TItype, si_to_TItype): New functions.
4524 (__multi3): Use them to implement type-punning.
4525
4526 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4527
4528 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4529
4530 2011-04-27 Jan Hubicka <jh@suse.cz>
4531
4532 * ipa-prop.c (function_insertion_hook_holder): New holder.
4533 (ipa_add_new_function): New function.
4534 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4535 Register/deregister holder.
4536
4537 2011-04-27 Richard Guenther <rguenther@suse.de>
4538
4539 PR tree-optimization/48772
4540 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4541
4542 2011-04-27 Richard Guenther <rguenther@suse.de>
4543
4544 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4545 TARGET_MEM_REF handling.
4546
4547 2011-04-27 Nick Clifton <nickc@redhat.com>
4548
4549 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4550 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4551 (REG_CLASS_NAMES): Likewise.
4552 (REG_CLASS_CONTENTS): Likewise.
4553 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4554 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4555 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4556 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4557 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4558 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4559 duplicate register classes.
4560 (frv_class_likely_spilled_p): Likewise.
4561 (frv_register_move_cost): Likewise.
4562
4563 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4564 end of the regno_reg_class array.
4565
4566 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4567
4568 PR c/48742
4569 * c-typeck.c (build_binary_op): Don't wrap arguments if
4570 int_operands is true.
4571
4572 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4573
4574 PR target/48767
4575 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4576 targetm.calls.must_pass_in_stack for void type.
4577
4578 2011-04-26 Jan Hubicka <jh@suse.cz>
4579
4580 * cgraphbuild.c (build_cgraph_edges): Update call
4581 of cgraph_create_edge and cgraph_create_indirect_edge.
4582 * cgraph.c (cgraph_create_edge_including_clones,
4583 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4584 cgraph_update_edges_for_call_stmt_node): Do not take nest
4585 argument; do not initialize call_stmt_size/time.
4586 (dump_cgraph_node): Do not dump nest.
4587 (cgraph_clone_edge): Do not take loop_nest argument;
4588 do not propagate it; do not clone call_stmt_size/time.
4589 (cgraph_clone_node): Likewise.
4590 (cgraph_create_virtual_clone): Update.
4591 * cgraph.h (struct cgraph_edge): Remove
4592 call_stmt_size/call_stmt_time/loop_nest.
4593 (cgraph_create_edge, cgraph_create_indirect_edge,
4594 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4595 prototype.
4596 * tree-emutls.c (gen_emutls_addr): Update.
4597 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4598 loop_nest; handle indirect calls, too.
4599 (clone_inlined_nodes): Do not care about updating inline summaries.
4600 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4601 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4602 stream call_stmt_size/call_stmt_time/loop_nest.
4603 * ipa-inline.c (edge_badness): Update.
4604 (ipa_inline): dump summaries after inlining.
4605 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4606 New.
4607 (inline_edge_summary): New function.
4608 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4609 (inline_edge_removal_hook): Handle edge summaries.
4610 (inline_edge_duplication_hook): New hook.
4611 (inline_summary_alloc): Alloc hooks.
4612 (initialize_growth_caches): Do not register removal hooks.
4613 (free_growth_caches); Do not free removal hook.
4614 (dump_inline_edge_summary): New function.
4615 (dump_inline_summary): Use it.
4616 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4617 (inline_update_callee_summaries): New function.
4618 (inline_merge_summary): Use it.
4619 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4620 (read_inline_edge_summary): New function.
4621 (inline_read_section): Use it.
4622 (write_inline_edge_summary): New function.
4623 (inline_write_summary): Use it.
4624 (inline_free_summary): Free edge new holders.
4625 * tree-inline.c (copy_bb): Update.
4626
4627 2011-04-26 Jason Merrill <jason@redhat.com>
4628
4629 * tree-eh.c (lower_try_finally_switch): Create the label along with
4630 the CASE_LABEL_EXPR.
4631
4632 2011-04-26 David S. Miller <davem@davemloft.net>
4633 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4634
4635 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4636 * configure: Regenerate.
4637
4638 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4639
4640 PR target/48258
4641 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4642 reduction.
4643 (VEC_reduc): New code iterator and splitters for vector reduction.
4644 (VEC_reduc_name): Ditto.
4645 (VEC_reduc_rtx): Ditto.
4646 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4647 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4648
4649 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4650 support for extracting SF on VSX.
4651
4652 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4653 generating xscvspdp.
4654 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4655 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4656 double add, minimum, maximum vector reduction.
4657 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4658 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4659 optimize double vector reduction.
4660 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4661
4662 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4663
4664 * config/fr30/fr30.h (inhibit_libc): Don't define.
4665 * config/m32r/m32r-protos.h: Correct comment.
4666 * config/v850/v850.h (GHS_default_section_names,
4667 GHS_current_section_names): Use tree, not union tree_node *.
4668
4669 2011-04-26 Xinliang David Li <davidxl@google.com>
4670
4671 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4672 * c-family/c-opts.c (c_common_handle_option): Set
4673 warn_maybe_uninitialized.
4674 * opts.c (common_handle_option): Ditto.
4675 * common.opt: New option.
4676 * tree-ssa.c (warn_uninit): Add one more parameter.
4677 (warn_uninitialized_var): Pass warning code.
4678 * tree-flow.h: Interface change.
4679
4680 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4681
4682 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4683 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4684 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4685
4686 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4687
4688 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4689 * config/mips/mips.opt (mmips-tfile): Remove.
4690
4691 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4692 mips-tdump reference to ...
4693 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4694 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4695 reference by Tru64 UNIX.
4696
4697 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4698
4699 PR debug/48768
4700 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4701 is error_mark_node, set value to NULL.
4702
4703 PR tree-optimization/48734
4704 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4705 if return value from maybe_fold_*_comparsions isn't something
4706 the code is prepared to handle.
4707
4708 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4709
4710 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4711 mode check.
4712 (ext_QIreg_nomode_operands): Remove.
4713 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4714 (*andsi_1): Ditto.
4715 (*andhi_1): Ditto.
4716
4717 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4718
4719 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4720
4721 2011-04-26 Richard Guenther <rguenther@suse.de>
4722
4723 * c-typeck.c (build_unary_op): Do not expand array-refs via
4724 pointer arithmetic. Only adjust qualifiers for function types.
4725
4726 2011-04-26 Richard Guenther <rguenther@suse.de>
4727
4728 PR middle-end/48694
4729 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4730 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4731 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4732 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4733
4734 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4735
4736 * doc/extend.texi: Document __underlying_type.
4737
4738 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4739
4740 * config/rs6000/titan.md (automata_option "progress"): Remove.
4741
4742 2011-04-25 Jeff Law <law@redhat.com>
4743
4744 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4745
4746 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4747
4748 * system.h (ENUM_BITFIELD): Remove.
4749
4750 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4751 Eric Botcazou <ebotcazou@adacore.com>
4752
4753 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4754 for STORE_FLAG_VALUE==-1 case.
4755
4756 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4757
4758 PR target/43804
4759 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4760 LEGITIMATE_PIC_OPERAND_P.
4761
4762 2011-04-24 Jan Hubicka <jh@suse.cz>
4763
4764 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4765 WPA hack.
4766 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4767 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4768 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4769 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4770 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4771 Sanity check predicate length.
4772 (remap_predicate): Likewise; sanity check jump functions.
4773 (inline_read_section, inline_write_summary): Sanity check
4774 predicate length.
4775
4776 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4777
4778 PR other/48748
4779 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4780 __is_literal_type, and __is_trivial; update throughout about
4781 possibly cv-qualified void types.
4782
4783 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4784
4785 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4786 testsuite and make it version agnostic.
4787
4788 2011-04-22 Jan Hubicka <jh@suse.cz>
4789
4790 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4791
4792 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4793
4794 PR c/48685
4795 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4796 to VOID_TYPE even around MODIFY_EXPR.
4797
4798 2011-04-22 Mike Stump <mikestump@comcast.net>
4799
4800 * gensupport.c (read_md_rtx): Fix typo in comment.
4801 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4802 comment.
4803
4804 2011-04-22 Jan Hubicka <jh@suse.cz>
4805
4806 * gengtype.c (open_base_files): Add ipa-inline.h include.
4807 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4808 ipa-prop.c; update all uses.
4809 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4810 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4811 merge summary of inlined function into former caller.
4812 * ipa-inline.c (max_benefit): Remove.
4813 (edge_badness): Compensate for removal of benefits.
4814 (update_caller_keys): Use
4815 reset_node_growth_cache/reset_edge_growth_cache.
4816 (update_callee_keys): Likewise.
4817 (update_all_callee_keys): Likewise.
4818 (inline_small_functions): Do not collect max_benefit; do not reset
4819 estimated_growth; call free_growth_caches and initialize_growth_caches.
4820 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4821 struct size_time_entry): New structures.
4822 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4823 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4824 and estimated_growth.
4825 (edge_growth_cache_entry): New structure.
4826 (node_growth_cache, edge_growth_cache): New global vars.
4827 (estimate_growth): Turn into inline.
4828 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4829 initialize_growth_caches, free_growth_caches): Declare.
4830 (estimate_edge_growth): Rewrite.
4831 (estimate_edge_time): Implement as inline cache lookup.
4832 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4833 functions.
4834 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4835 (NUM_CONDITIONS): New constant.
4836 (predicate_conditions): New enum.
4837 (IS_NOT_CONSTANT): New constant.
4838 (edge_removal_hook_holder): New var.
4839 (node_growth_cache, edge_growth_cache): New global vars.
4840 (true_predicate, single_cond_predicate, false_predicate,
4841 not_inlined_predicate, add_condition, add_clause, and_predicates,
4842 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4843 dump_clause, dump_predicate, account_size_time,
4844 evaulate_conditions_for_edge): New functions.
4845 (inline_summary_alloc): Move to heap.
4846 (inline_node_removal_hook): Clear condition and entry vectors.
4847 (inline_edge_removal_hook): New function.
4848 (initialize_growth_caches, free_growth_caches): New function.
4849 (dump_inline_summary): Update.
4850 (edge_execution_predicate): New function.
4851 (will_be_nonconstant_predicate): New function.
4852 (estimate_function_body_sizes): Compute BB and constantness predicates.
4853 (compute_inline_parameters): Do not clear estimated_growth.
4854 (estimate_edge_size_and_time): New function.
4855 (estimate_calls_size_and_time): New function.
4856 (estimate_callee_size_and_time): New function.
4857 (remap_predicate): New function.
4858 (inline_merge_summary): New function.
4859 (do_estimate_edge_time): New function based on...
4860 (estimate_edge_time): ... this one.
4861 (do_estimate_edge_growth): New function.
4862 (do_estimate_growth): New function based on....
4863 (estimate_growth): ... this one.
4864 (inline_analyze_function): Analyze after deciding on jump functions.
4865 (inline_read_section): New function.
4866 (inline_read_summary): Use it.
4867 (inline_write_summary): Write all the new data.
4868 * ipa-prop.c (ipa_get_param_decl_index): Export.
4869 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4870 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4871 Declare.
4872 (ipa_get_lattice): Move here from ipa-cp.c
4873 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4874 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4875 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4876 cgraph_edge_inlinable_p): Remove.
4877 * cgraphunit.c: Include ipainline.h
4878 (cgraph_process_new_functions): Update call of
4879 compute_inline_parameters.
4880
4881 2011-04-22 Richard Guenther <rguenther@suse.de>
4882
4883 * tree.c (build_int_cst): Properly create canonicalized integer
4884 constants.
4885 (build_int_cst_type): Remove scary comments.
4886
4887 2011-04-22 Xinliang David Li <davidxl@google.com>
4888
4889 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4890 by default when -Wno-error is not specified.
4891 * opts-global.c (decode_options): Remove call to
4892 control_warning_options.
4893
4894 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4895
4896 PR tree-optimization/48717
4897 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4898 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4899
4900 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4901
4902 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4903 definition where used.
4904
4905 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4906
4907 PR c/48716
4908 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4909 TREE_STATIC variables declared inside of some OpenMP construct.
4910
4911 2011-04-22 Martin Jambor <mjambor@suse.cz>
4912
4913 PR middle-end/48585
4914 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4915
4916 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4917
4918 PR c/36750
4919 * c-typeck.c (pop_init_level): Do not warn about initializing
4920 with ` = {0}'.
4921
4922 2011-04-22 Alan Modra <amodra@gmail.com>
4923
4924 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4925 when returning call_cookie.
4926 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4927 pointers, to functions with no more vector args than the current
4928 function, and some non-local calls for ABI_V4.
4929 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4930 sibcall_nonlocal_aix64): Combine to ..
4931 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4932 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4933 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4934 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4935 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4936 operand.
4937 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4938 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4939 sibcall_value_symbolic_64): Delete.
4940
4941 2011-04-21 Xinliang David Li <davidxl@google.com>
4942
4943 * cgraph.h: Remove pid.
4944 * cgraph.c: Remove pid.
4945 * value-prof.c (init_node_map): New function.
4946 (del_node_map): New function.
4947 (find_func_by_funcdef_no): New function.
4948 (gimple_ic_transform): Call new function.
4949 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4950 * function.c (get_last_funcdef_no): New function.
4951 * function.h (get_last_funcdef_no): New function.
4952 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4953 to libgcov function.
4954 (tree-profiling): Call node map init and delete function.
4955
4956 2011-04-21 Ian Lance Taylor <iant@google.com>
4957
4958 * godump.c (go_format_type): Use exported Go name for anonymous
4959 field name.
4960
4961 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4962
4963 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4964 Call builtin_function_type_list instead of builtin_function_type.
4965 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4966
4967 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4968
4969 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4970 build_function_type_list instead of build_function_type.
4971 Delete variable `endlink'.
4972
4973 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4974
4975 * config/s390/s390.c (s390_init_builtins): Call
4976 build_function_type_list instead of build_function_type.
4977
4978 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4979
4980 * config/ia64/ia64.c (ia64_init_builtins): Call
4981 build_function_type_list instead of builtin_function_type.
4982
4983 2011-04-21 Easwaran Raman <eraman@google.com>
4984
4985 * cfgexpand.c (stack_var): Remove OFFSET...
4986 (add_stack_var): ...and its reference here...
4987 (expand_stack_vars): ...and here.
4988 (stack_var_cmp): Sort by descending order of size.
4989 (partition_stack_vars): Change heuristic.
4990 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4991 (dump_stack_var_partition): Add newline after each partition.
4992
4993 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4994 Jeff Law <law@redhat.com>
4995
4996 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4997 * gengtype.c (matching_file_name_substitute): Likewise.
4998
4999 2011-04-21 Richard Guenther <rguenther@suse.de>
5000
5001 PR lto/48703
5002 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5003
5004 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5005
5006 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5007
5008 2011-04-21 Richard Guenther <rguenther@suse.de>
5009
5010 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5011 file name.
5012
5013 2011-04-21 Richard Guenther <rguenther@suse.de>
5014
5015 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5016 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5017 Use DECL_P, not SSA_VAR_P.
5018 (ptr_derefs_may_alias_p): Likewise.
5019 (ptr_deref_may_alias_ref_p_1): Likewise.
5020 (decl_refs_may_alias_p): Likewise.
5021 (refs_may_alias_p_1): Likewise.
5022 (ref_maybe_used_by_call_p_1): Likewise.
5023 (call_may_clobber_ref_p_1): Likewise.
5024 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5025 are either MEM_REF or TARGET_MEM_REF.
5026 (indirect_refs_may_alias_p): Likewise.
5027 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5028 for MEM_EXPR of indirect calls.
5029
5030 2011-04-21 Tristan Gingold <gingold@adacore.com>
5031
5032 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5033 (dst_file_info_struct): Remove flen field.
5034 (lookup_filename): Remove code that set flen field.
5035
5036 2011-04-21 Tristan Gingold <gingold@adacore.com>
5037
5038 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5039
5040 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5041
5042 PR target/48708
5043 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5044 vec_extract and vec_concat for non-SSE4_1 targets.
5045
5046 2011-04-21 Richard Guenther <rguenther@suse.de>
5047
5048 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5049 return statements.
5050
5051 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5052
5053 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5054 undefine.
5055 (FILE): Don't undefine.
5056
5057 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5058
5059 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5060 struct rtx_def *.
5061 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5062 struct rtx_def *.
5063 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5064 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5065 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5066 rtx_def *.
5067 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5068 definitions where used.
5069 * config/microblaze/microblaze.h (struct microblaze_args): Use
5070 rtx, not struct rtx_def *.
5071 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5072 rtx_def *.
5073 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5074 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5075 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5076 not struct rtx_def *.
5077 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5078 struct rtx_def *.
5079 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5080 rtx_def *.
5081 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5082
5083 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5084
5085 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5086 operand_equal_p to compare DR_BASE_ADDRESSes.
5087 (vect_check_interleaving): Likewise.
5088
5089 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5090
5091 PR target/46329
5092 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5093 for all Neon struct constants.
5094
5095 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5096
5097 * target.def (legitimate_constant_p): New hook.
5098 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5099 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5100 * doc/tm.texi: Regenerate.
5101 * hooks.h (hook_bool_mode_rtx_true): Declare.
5102 * hooks.c (hook_bool_mode_rtx_true): Define.
5103 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5104 * calls.c (precompute_register_parameters): Replace uses of
5105 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5106 (emit_library_call_value_1): Likewise.
5107 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5108 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5109 * ira-costs.c (scan_one_insn): Likewise.
5110 * recog.c (general_operand, immediate_operand): Likewise.
5111 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5112 * reload1.c (init_eliminable_invariants): Likewise.
5113
5114 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5115 mode argument.
5116 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5117 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5118 argument.
5119 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5120 * config/alpha/predicates.md (input_operand): Update call to
5121 alpha_legitimate_constant_p.
5122
5123 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5124 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5125 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5126 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5127 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5128 (arm_legitimate_constant_p): New functions.
5129 (arm_cannot_force_const_mem): Make static.
5130
5131 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5132
5133 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5134 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5135 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5136 instead of bfin_legitimate_constant_p.
5137 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5138 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5139
5140 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5141
5142 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5143
5144 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5145 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5146 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5147 (frv_legitimate_constant_p): Make static. Add a mode argument.
5148
5149 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5150 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5151 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5152
5153 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5154 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5155 * config/i386/i386.c (legitimate_constant_p): Rename to...
5156 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5157 argument.
5158 (ix86_cannot_force_const_mem): Update accordingly.
5159 (ix86_legitimate_address_p): Likewise.
5160 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5161 * config/i386/i386.md: Update commentary.
5162
5163 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5164 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5165 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5166 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5167
5168 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5169
5170 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5171 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5172 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5173 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5174
5175 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5176 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5177 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5178
5179 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5180 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5181 (m32r_legitimate_constant_p): New function.
5182
5183 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5184 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5185 LEGITIMATE_CONSTANT_P.
5186 (LEGITIMATE_CONSTANT_P): Delete.
5187 * config/m68k/m68k.c (m68k_expand_prologue): Call
5188 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5189 (m68k_legitimate_constant_p): New function.
5190 * config/m68k/m68k.md: Update comments.
5191
5192 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5193 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5194 (mcore_legitimate_constant_p): New function.
5195
5196 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5197 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5198 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5199 Add a mode argument.
5200 (mep_legitimate_address): Update accordingly.
5201 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5202
5203 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5204 Delete.
5205 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5206 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5207 static. Check OP's mode for VOIDmode.
5208 (microblaze_legitimate_constant_p): New function.
5209 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5210
5211 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5212 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5213 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5214 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5215 * config/mips/predicates.md: Update comments.
5216
5217 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5218 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5219 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5220 (mmix_legitimate_constant_p): Make static, return a bool, and take
5221 a mode argument.
5222 (mmix_print_operand_address): Update accordingly.
5223
5224 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5225 Delete.
5226 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5227 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5228 static. Add a mode argument.
5229 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5230
5231 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5232
5233 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5234 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5235 (pa_legitimate_constant_p): New function.
5236
5237 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5238
5239 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5240 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5241 (pdp11_legitimate_constant_p): New function.
5242
5243 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5244 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5245 (rs6000_legitimate_constant_p): New function.
5246
5247 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5248 (rx_legitimate_constant_p): ...this.
5249 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5250 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5251 (rx_legitimate_constant_p): ...this.
5252 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5253 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5254
5255 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5256 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5257 * config/s390/s390.c (legitimate_constant_p): Rename to...
5258 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5259 and add a mode argument.
5260 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5261
5262 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5263
5264 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5265 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5266 (sh_legitimate_constant_p): New function.
5267
5268 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5269 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5270 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5271 (legitimate_constant_p): Rename to...
5272 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5273 argument.
5274 (constant_address_p): Update accordingly.
5275
5276 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5277 argument and return a bool.
5278 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5279 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5280 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5281 (spu_rtx_costs): Update accordingly.
5282 * config/spu/predicates.md (vec_imm_operand): Likewise.
5283
5284 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5285
5286 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5287 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5288 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5289
5290 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5291 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5292 * config/vax/vax.c (legitimate_constant_p): Likewise.
5293
5294 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5295 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5296 (xtensa_legitimate_constant_p): New function.
5297
5298 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5299
5300 * target.def (cannot_force_const_mem): Add a mode argument.
5301 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5302 * doc/tm.texi: Regenerate.
5303 * hooks.h (hook_bool_mode_rtx_false): Declare.
5304 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5305 (hook_bool_mode_const_rtx_true): Likewise.
5306 (hook_bool_mode_rtx_false): New function.
5307 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5308 to be non-VOID. Update call to cannot_force_const_mem.
5309 (find_reloads): Update accordingly.
5310 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5311 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5312 argument.
5313 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5314 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5315 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5316 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5317 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5318 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5319 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5320 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5321 (m68k_cannot_force_const_mem): ...this new function.
5322 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5323 argument.
5324 (mips_const_insns, mips_legitimize_const_move): Update calls.
5325 (mips_secondary_reload_class): Likewise.
5326 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5327 (pa_cannot_force_const_mem): ...this new function.
5328 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5329 (rs6000_cannot_force_const_mem): ...this new function.
5330 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5331 argument.
5332 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5333 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5334 to...
5335 (xtensa_cannot_force_const_mem): ...this new function.
5336
5337 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5338
5339 * config/mips/mips.c (mips16_build_function_stub): Call
5340 build_function_type_list instead of build_function_type.
5341 (mips16_build_call_stub): Likewise.
5342
5343 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5344
5345 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5346 instead of build_function_type.
5347
5348 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5349
5350 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5351 instead of build_function_type.
5352
5353 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5354
5355 PR target/48678
5356 * config/i386/i386.md (insv): Change operand 0 constraint to
5357 "register_operand". Change operand 1 and 2 constraint to
5358 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5359 * config/i386/sse.md (sse4_1_pinsrb): Export.
5360 (sse2_pinsrw): Ditto.
5361 (sse4_1_pinsrd): Ditto.
5362 (sse4_1_pinsrq): Ditto.
5363 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5364 * config/i386/i386.c (ix86_expand_pinsr): New.
5365
5366 2011-04-20 Easwaran Raman <eraman@google.com>
5367
5368 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5369 containing union type only with -fstrict-aliasing.
5370
5371 2011-04-20 Jim Meyering <meyering@redhat.com>
5372
5373 Remove useless if-before-free tests.
5374 * calls.c (expand_call, save_area): Likewise.
5375 * cfgcleanup.c (try_forward_edges): Likewise.
5376 * collect2.c (collect_execute): Likewise.
5377 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5378 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5379 * coverage.c (coverage_checksum_string): Likewise.
5380 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5381 * cselib.c (cselib_init): Likewise.
5382 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5383 (df_set_clean_cfg): Likewise.
5384 * function.c (free_after_compilation): Likewise.
5385 * gcc.c (do_spec_1, main): Likewise.
5386 * gcov.c (create_file_names): Likewise.
5387 * gensupport.c (identify_predicable_attribute): Likewise.
5388 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5389 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5390 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5391 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5392 * ipa-pure-const.c (local_pure_const): Likewise.
5393 * ipa-reference.c (propagate): Likewise.
5394 * ira-costs.c (free_ira_costs): Likewise.
5395 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5396 * matrix-reorg.c (mat_free): Likewise.
5397 * prefix.c (get_key_value): Likewise.
5398 * profile.c (compute_value_histograms): Likewise.
5399 * reload1.c (free_reg_equiv): Likewise.
5400 * sched-deps.c (free_deps): Likewise.
5401 * sel-sched-ir.c (fence_clear): Likewise.
5402 * sese.c (set_rename, if_region_set_false_region): Likewise.
5403 * tree-data-ref.c (free_rdg): Likewise.
5404 * tree-eh.c (lower_try_finally): Likewise.
5405 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5406 * tree-ssa-live.c (delete_var_map): Likewise.
5407 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5408 * tree-ssa-pre.c (phi_trans_add): Likewise.
5409
5410 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5411
5412 PR tree-optimization/48611
5413 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5414 beyond ERT_MUST_NOT_THROW region.
5415
5416 2011-04-20 Catherine Moore <clm@codesourcery.com>
5417
5418 * config/mips/mips.opt (mfix-24k): New.
5419 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5420 * config/mips/mips.md (length): Increase by 4 for stores if
5421 fixing 24K errata.
5422 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5423 all noreorder if fixing 24K errata.
5424 * doc/invoke.texi: Document mfix-24k.
5425
5426 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5427
5428 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5429 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5430
5431 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5432
5433 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5434 (const_ok_for_op): ... to here.
5435
5436 2011-04-20 Kai Tietz <ktietz@redhat.com>
5437
5438 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5439 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5440
5441 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5442
5443 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5444
5445 2011-04-20 Richard Guenther <rguenther@suse.de>
5446
5447 PR tree-optimization/47892
5448 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5449 are if-convertible.
5450
5451 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5452
5453 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5454
5455 2011-04-20 Tristan Gingold <gingold@adacore.com>
5456
5457 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5458
5459 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5460
5461 PR target/18145
5462
5463 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5464 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5465 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5466 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5467 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5468
5469 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5470 New prototype.
5471
5472 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5473 (avr_asm_named_section, avr_asm_output_aligned_common,
5474 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5475 New functions to update...
5476 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5477 (avr_asm_init_sections): Overwrite section callbacks for
5478 data_section, bss_section.
5479 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5480 from here to...
5481 (avr_file_end): ...here.
5482
5483 2011-04-20 Richard Guenther <rguenther@suse.de>
5484
5485 PR middle-end/48695
5486 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5487 objects and types here. Adjust for their offset before comparing.
5488
5489 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5490
5491 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5492 statement per copy.
5493
5494 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5495
5496 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5497 (GIMPLE_H): Include $(INTERNAL_FN_H).
5498 (OBJS-common): Add internal-fn.o.
5499 (internal-fn.o): New rule.
5500 * internal-fn.def: New file.
5501 * internal-fn.h: Likewise.
5502 * internal-fn.c: Likewise.
5503 * gimple.h: Include internal-fn.h.
5504 (GF_CALL_INTERNAL): New gf_mask.
5505 (gimple_statement_call): Put fntype into a union with a new
5506 internal_fn field.
5507 (gimple_build_call_internal): Declare.
5508 (gimple_build_call_internal_vec): Likewise.
5509 (gimple_call_same_target_p): Likewise.
5510 (gimple_call_internal_p): New function.
5511 (gimple_call_internal_fn): Likewise.
5512 (gimple_call_fntype): Return null for internal calls.
5513 (gimple_call_set_fntype): Assert that the function is not internal.
5514 (gimple_call_set_fn): Likewise.
5515 (gimple_call_set_fndecl): Likewise.
5516 (gimple_call_set_internal_fn): New function.
5517 (gimple_call_addr_fndecl): Handle null functions.
5518 (gimple_call_return_type): Likewise null types.
5519 * gimple.c (gimple_build_call_internal_1): New function.
5520 (gimple_build_call_internal): Likewise.
5521 (gimple_build_call_internal_vec): Likewise.
5522 (gimple_call_same_target_p): Likewise.
5523 (gimple_call_flags): Handle calls to internal functions.
5524 (gimple_call_fnspec): New function.
5525 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5526 (gimple_has_side_effects): Handle null functions.
5527 (gimple_rhs_has_side_effects): Likewise.
5528 (gimple_call_copy_skip_args): Handle calls to internal functions.
5529 * cfgexpand.c (expand_call_stmt): Likewise.
5530 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5531 * gimple-fold.c (gimple_fold_call): Handle null functions.
5532 (gimple_fold_stmt_to_constant_1): Don't fold
5533 calls to internal functions.
5534 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5535 functions.
5536 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5537 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5538 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5539 (do_warn_unused_result): Likewise.
5540 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5541 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5542 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5543 the target of a call.
5544 (initialize_hash_element): Update accordingly.
5545 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5546 (iterative_hash_hashable_expr): Handle calls to internal functions.
5547 (print_expr_hash_elt): Likewise.
5548 * tree-ssa-pre.c (can_value_number_call): Likewise.
5549 (eliminate): Handle null functions.
5550 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5551 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5552 (find_func_aliases): Likewise.
5553 * value-prof.c (gimple_ic_transform): Likewise.
5554 (gimple_indirect_call_to_profile): Likewise.
5555 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5556 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5557
5558 2011-04-19 Jan Hubicka <jh@suse.cz>
5559
5560 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5561 * ipa-inline.c (inline_small_functions): Compute summaries first,
5562 populate heap later.
5563
5564 2011-04-19 Jan Hubicka <jh@suse.cz>
5565
5566 * cgraph.h (save_inline_function_body): Remove.
5567 * ipa-inline-transform.c: New file, broke out of...
5568 * ipa-inline.c: ... this one; Update toplevel comment.
5569 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5570 make global.
5571 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5572 (cgraph_mark_inline_edge): Rename to inline_call; move to
5573 ipa-inline-transform.c.
5574 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5575 move to ipa-inline-transform.c
5576 (recursive_inlining, inline_small_functions, flatten_function,
5577 ipa_inline, inline_always_inline_functions,
5578 early_inline_small_functions): Update.
5579 (inline_transform): Move to ipa-inline-transform.c.
5580 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5581 Declare.
5582 * Makefile.in (ipa-inline-transform.o): New file.
5583 * cgraphunit.c (save_inline_function_body): Move to
5584 ipa-inline-transform.c
5585
5586 2011-04-19 DJ Delorie <dj@redhat.com>
5587
5588 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5589 registers if we already know there aren't any.
5590 (m32c_emit_epilogue): Don't emit a barrier here.
5591 (m32c_emit_eh_epilogue): Likewise.
5592 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5593 operands at expand time.
5594 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5595 int" wchar type.
5596 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5597 duplicates. Provide aliases instead.
5598 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5599 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5600 the compiler.
5601
5602 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5603
5604 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5605 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5606 (general_or_i64_p, sparc_register_move_cost): New function.
5607
5608 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5609
5610 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5611 Add lynx, mipssde. Sort table.
5612
5613 2011-04-19 Xinliang David Li <davidxl@google.com>
5614
5615 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5616 not negative.
5617
5618 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5619
5620 PR target/48678
5621 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5622 is a SUBREG with non-MODE_INT mode inside of it.
5623
5624 2011-04-19 Martin Jambor <mjambor@suse.cz>
5625
5626 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5627 also according to actual contants.
5628 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5629 (gimple_fold_call): Use it.
5630 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5631
5632 2011-04-19 Martin Jambor <mjambor@suse.cz>
5633
5634 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5635 non-pointer assignments.
5636
5637 2011-04-19 Martin Jambor <mjambor@suse.cz>
5638
5639 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5640 account anc_offset and otr_type from the indirect edge info.
5641 * ipa-prop.c (get_ancestor_addr_info): New function.
5642 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5643 get_ancestor_addr_info, call it.
5644 (ipa_note_param_call): Do not initialize information about polymorphic
5645 calls, return the indirect call graph edge. Remove the last
5646 parameter, adjust all callers.
5647 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5648 parameters. Initialize polymorphic information in the indirect edge.
5649
5650 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5651
5652 PR lto/48148
5653 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5654 the types if they have different enumeration identifiers.
5655
5656 2011-04-19 Jan Hubicka <jh@suse.cz>
5657
5658 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5659 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5660 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5661 (optimize_function_for_size_p) ... here.
5662
5663 2011-04-19 Richard Guenther <rguenther@suse.de>
5664
5665 PR lto/48207
5666 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5667 langhook.
5668
5669 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5670
5671 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5672 if DECL_NO_INLINE_WARNING_P is set on the function.
5673
5674 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5675
5676 PR fortran/47976
5677 * reload1.c (inc_for_reload): Return void. All callers changed.
5678 (emit_input_reload_insns): Don't try to delete previous output
5679 reloads to a register, or record spill_reg_store for autoincs.
5680
5681 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5682
5683 * gengtype.h: Updated copyright year.
5684 (struct input_file_st): Add inpisplugin field.
5685 (type_fileloc): New function.
5686 * gengtype.c
5687 (write_typed_struct_alloc_def): Add gcc_assert.
5688 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5689 (write_typed_alloc_defns): Don't output for plugin files.
5690 (input_file_by_name): Clear inpisplugin field.
5691 (main): Set inpisplugin field for plugin files.
5692
5693 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5694
5695 * gengtype-state.c (string_eq): New.
5696 (read_state): Use string_eq instead of strcmp when creating the
5697 state_ident_tab.
5698
5699 2011-04-19 Wei Guozhi <carrot@google.com>
5700
5701 PR target/47855
5702 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5703 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5704 linkage.
5705 * config/arm/constraints.md (Uu): New constraint.
5706 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5707
5708 2011-04-19 Tristan Gingold <gingold@adacore.com>
5709
5710 * config.gcc (-*-*-*vms): Added.
5711 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5712 definitions moved.
5713 * config/vms/vms-ld.c: New file.
5714 * config/vms/vms-ar.c: New file.
5715 * config/vms/t-vmsnative: New file.
5716
5717 2011-04-18 Xinliang David Li <davidxl@google.com>
5718
5719 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5720
5721 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5722
5723 PR middle-end/48661
5724 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5725 if TREE_TYPE (v) is non-NULL.
5726
5727 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5728 gimple_get_virt_mehtod_for_binfo.
5729 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5730 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5731 callers.
5732 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5733
5734 2011-04-18 Michael Matz <matz@suse.de>
5735 Steve Ellcey <sje@cup.hp.com>
5736
5737 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5738 use its mode as source mode if it isn't VOIDmode.
5739
5740 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5741
5742 * doc/passes.texi: Fill crossref nodes.
5743
5744 2011-04-18 Jim Meyering <meyering@redhat.com>
5745
5746 Fix doubled-word typos in comments and strings
5747 * config/alpha/vms-unwind.h: s/for for/for/
5748 * config/arm/unwind-arm.h: Likewise.
5749 * config/microblaze/microblaze.c: Likewise.
5750 * config/sh/constraints.md: s/in in/in/
5751 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5752
5753 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5754
5755 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5756 (AVX_FLOAT_MODE_P): Ditto.
5757 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5758 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5759 (AVX_VEC_FLOAT_MODE_P): Ditto.
5760 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5761 (UNSPEC_MASKSTORE): Ditto.
5762 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5763 Merge from <sse>_movmsk<ssemodesuffix> and
5764 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5765 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5766 iterator.
5767 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5768 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5769 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5770
5771 2011-04-18 Jan Hubicka <jh@suse.cz>
5772
5773 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5774
5775 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5776 (want_inline_function_called_once_p): Break out the logic from
5777 ipa_inline.
5778 (edge_badness): Ensure that profile is not misupdated.
5779 (lookup_recursive_calls): Prioritize by call frequencies.
5780 (inline_small_functions): Move program size estimates here;
5781 actually process whole queue even when unit growth has been
5782 met. (to properly compute inline_failed reasons and for the
5783 case unit size decrease.) Revisit comments on recursive inlining.
5784 (ipa_inline): Remove unit summary code; first inline hot calls
5785 of functions called once, cold calls next.
5786 (order, nnodes): Remove unused variables.
5787 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5788 (GTFILES): Remove ipa-inline.c
5789 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5790
5791 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5792
5793 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5794
5795 2011-04-18 Jie Zhang <jie@codesourcery.com>
5796 Richard Earnshaw <rearnsha@arm.com>
5797
5798 * arm.c (neon_builtin_type_bits): Remove.
5799 (typedef enum neon_builtin_mode): New.
5800 (T_MAX): Don't define.
5801 (typedef enum neon_builtin_datum): Remove bits, codes[],
5802 num_vars and base_fcode. Add mode, code and fcode.
5803 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5804 VAR10): Change accordingly.
5805 (neon_builtin_data[]): Change accordingly
5806 (arm_init_neon_builtins): Change accordingly.
5807 (neon_builtin_compare): Remove.
5808 (locate_neon_builtin_icode): Remove.
5809 (arm_expand_neon_builtin): Change accordingly.
5810
5811 * arm.h (enum arm_builtins): Move to ...
5812 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5813
5814 * arm.c (arm_builtin_decl): Declare.
5815 (TARGET_BUILTIN_DECL): Define.
5816 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5817 (arm_builtin_decls[]): New.
5818 (arm_init_neon_builtins): Store builtin declarations in
5819 arm_builtin_decls[].
5820 (arm_init_tls_builtins): Likewise.
5821 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5822 (arm_builtin_decl): New.
5823
5824 2011-04-18 Richard Guenther <rguenther@suse.de>
5825
5826 * tree.c (upper_bound_in_type): Build properly canonicalized
5827 INTEGER_CSTs.
5828 (lower_bound_in_type): Likewise.
5829
5830 2011-04-18 Richard Guenther <rguenther@suse.de>
5831
5832 * gimple.h (gimple_call_addr_fndecl): New function.
5833 (gimple_call_fndecl): Use it.
5834 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5835 for direct calls.
5836 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5837 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5838
5839 2011-04-18 Richard Guenther <rguenther@suse.de>
5840
5841 PR middle-end/48650
5842 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5843
5844 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5845
5846 PR lto/48492
5847 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5848 DECL_IN_CONSTANT_POOL without RTL.
5849
5850 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5851 Ira Rosen <ira.rosen@linaro.org>
5852
5853 PR target/48252
5854 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5855 to match neon_vzip/vuzp/vtrn_internal.
5856 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5857 outputs explicitly dependent on both inputs.
5858 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5859
5860 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5861
5862 PR tree-optimization/48616
5863 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5864 whether the shift is by scalar or vector based on whether all SLP
5865 scalar stmts have the same rhs.
5866
5867 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5868
5869 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5870 memory operands.
5871
5872 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5873
5874 PR target/43700
5875 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5876 registers.
5877
5878 2011-04-17 Jan Hubicka <jh@suse.cz>
5879
5880 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5881 * cgrpahunit.c (cgraph_finalize_function): Do not set
5882 finalized_by_frontend.
5883 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5884 finalized_by_frontend.
5885
5886 2011-04-17 Jan Hubicka <jh@suse.cz>
5887
5888 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5889 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5890 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5891 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5892 method.
5893 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5894 gimple-fold.c
5895 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5896
5897 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5898
5899 PR lto/48538
5900 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5901 is non-null before accessing it.
5902 (input_cgraph): Remove trailing spaces.
5903
5904 2011-04-17 Revital Eres <revital.eres@linaro.org>
5905
5906 * params.def (sms-min-sc): New param flag.
5907 * modulo-sched.c (sms_schedule): Use it.
5908 * doc/invoke.texi (sms-min-sc): Document it.
5909
5910 2011-04-17 Jan Hubicka <jh@suse.cz>
5911
5912 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5913 present, also set gimple_call_set_cannot_inline.
5914 * ipa-inline.c: Update toplevel comment.
5915 (MAX_TIME): Remove.
5916 (cgraph_clone_inlined_nodes): Fix linebreaks.
5917 (cgraph_check_inline_limits): Restructure to ...
5918 (caller_growth_limits): ... this one; be more tolerant
5919 on growth in nested inline chains; add explanatory comment;
5920 fix stack accounting thinko introduced by previous patch.
5921 (cgraph_default_inline_p): Remove.
5922 (report_inline_failed_reason): New function.
5923 (can_inline_edge_p): New function.
5924 (can_early_inline_edge_p): New function.
5925 (leaf_node_p): Move upwards in file.
5926 (want_early_inline_function_p): New function.
5927 (want_inline_small_function_p): New function.
5928 (want_inline_self_recursive_call_p): New function.
5929 (cgraph_edge_badness): Rename to ...
5930 (edge_badness) ... this one; fix linebreaks.
5931 (update_edge_key): Update call of edge_baddness; add
5932 detailed dump about queue updates.
5933 (update_caller_keys): Use can_inline_edge_p and
5934 want_inline_small_function_p.
5935 (cgraph_decide_recursive_inlining): Rename to...
5936 (recursive_inlining): Use can_inline_edge_p and
5937 want_inline_self_recursive_call_p; simplify and remove no longer
5938 valid FIXME.
5939 (cgraph_set_inline_failed): Remove.
5940 (add_new_edges_to_heap): Use can_inline_edge_p and
5941 want_inline_small_function_p.
5942 (cgraph_decide_inlining_of_small_functions): Rename to ...
5943 (inline_small_functions): ... this one; cleanup; use
5944 can/want predicates; cleanup debug ouput; work edges till fibheap
5945 is exhausted and do not stop once unit growth is reached; remove
5946 later loop processing remaining edges.
5947 (cgraph_flatten): Rename to ...
5948 (flatten_function): ... this one; use can_inline_edge_p
5949 and can_early_inline_edge_p predicates.
5950 (cgraph_decide_inlining): Rename to ...
5951 (ipa_inline): ... this one; remove unreachable nodes before
5952 inlining functions called once; simplify the pass.
5953 (cgraph_perform_always_inlining): Rename to ...
5954 (inline_always_inline_functions): ... this one; use
5955 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5956 (cgraph_decide_inlining_incrementally): Rename to ...
5957 (early_inline_small_functions): ... this one; simplify
5958 using new predicates; cleanup; make dumps prettier.
5959 (cgraph_early_inlining): Rename to ...
5960 (early_inliner): newer inline regular functions into always-inlines;
5961 fix updating of call stmt summaries.
5962 (pass_early_inline): Update for new names.
5963 (inline_transform): Fix formating.
5964 (gate_cgraph_decide_inlining): Rename to ...
5965 (pass_ipa_inline): ... this one.
5966 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5967 * ipa-inline-analysis.c (dump_inline_summary): Update.
5968 (compute_inline_parameters): Do not compute disregard_inline_limits;
5969 look for mismatching arguments.
5970 (estimate_growth): Fix handlig of non-trivial self recursion.
5971 (inline_read_summary): Do not read info->disregard_inline_limits.
5972 (inline_write_summary): Do not write info->disregard_inline_limits.
5973 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5974 and move all checks into can_inline_edge_p predicate; re-enable code
5975 comparing optimization levels.
5976 (expand_call_inline): Do not test inline_forbidden_into_p.
5977 * Makefile.in (ipa-inline.o): Update arguments.
5978
5979 2011-04-17 Revital Eres <revital.eres@linaro.org>
5980
5981 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5982
5983 2011-04-17 Revital Eres <revital.eres@linaro.org>
5984
5985 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5986
5987 2011-04-17 Michael Matz <matz@suse.de>
5988
5989 PR tree-optimization/48622
5990 PR lto/48645
5991 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5992 in same order as they're written.
5993
5994 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5995
5996 * config/pa/predicates.md: Reorganize and simplify predicates.
5997 Eliminate duplicate code checks.
5998 (arith_operand): Rename to arith14_operand
5999 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6000 * config/pa/pa.md: Use renamed operands.
6001 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6002 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6003 arith11_operand, adddi3_operand, indexed_memory_operand,
6004 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6005 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6006 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6007 move_dest_operand, move_src_operand, prefetch_cc_operand,
6008 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6009 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6010 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6011 div_operand, int5_operand, movb_comparison_operator,
6012 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6013 arith_double_operand, ireg_operand, lhs_lshift_operand,
6014 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6015 integer_store_memory_operand): Likewise.
6016 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6017 (integer_store_memory_operand, read_only_operand,
6018 function_label_operand, borx_reg_operand,
6019 non_hard_reg_operand): Likewise.
6020 (eq_neq_comparison_operator): Delete unused operator.
6021 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6022 function_label_operand.
6023 (emit_move_sequence): Likewise.
6024
6025 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6026
6027 * config/i386/sse.md (sseunpackmode): New mode attribute.
6028 (ssepackmode): Ditto.
6029 (vec_pack_trunc_<mode>): Macroize expander from
6030 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6031 (vec_unpacks_lo_<mode>): Macroize expander from
6032 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6033 (vec_unpacks_hi_<mode>): Macroize expander from
6034 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6035 (vec_unpacku_lo_<mode>): Macroize expander from
6036 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6037 (vec_unpacku_hi_<mode>): Macroize expander from
6038 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6039 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6040 ix86_expand_sse4_unpack.
6041 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6042
6043 2011-04-16 Jan Hubicka <jh@suse.cz>
6044
6045 * cgraphbuild.c: Include ipa-inline.h.
6046 (reset_inline_failed): Use initialize_inline_failed.
6047 * cgraph.c: Include ipa-inline.h.
6048 (cgraph_create_node_1): Do not initialize estimated_growth.
6049 (initialize_inline_failed): More to ipa-inline-analysis.c
6050 (dump_cgraph_node): Do not dump inline flags.
6051 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6052 and disregard_inline_limits flags.
6053 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6054 time, size, estimated_growth.
6055 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6056 Update.
6057 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6058 DECL_DISREGARD_INLINE_LIMITS.
6059 (cgraph_analyze_function): Do not initialize
6060 node->local.disregard_inline_limits.
6061 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6062 inlinable, versionable and disregard_inline_limits.
6063 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6064 cgraph_check_inline_limits, cgraph_default_inline_p,
6065 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6066 add_new_edges_to_heap): Update.
6067 (cgraph_decide_inlining_of_small_function): Update; set
6068 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6069 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6070 cgraph_decide_inlining_incrementally): Update.
6071 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6072 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6073 time, size and estimated_growth parameters.
6074 (estimate_edge_growth): Update.
6075 (initialize_inline_failed): Declare.
6076 * ipa-split.c: Include ipa-inline.h
6077 (execute_split_functions): Update.
6078 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6079 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6080 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6081 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6082 estimated_growth to INT_MIN.
6083 (inline_node_duplication_hook): Likewise.
6084 (dump_inline_summary): Dump new fields.
6085 (compute_inline_parameters): Update.
6086 (estimate_edge_time, estimate_time_after_inlining,
6087 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6088 inline_write_summary):
6089 (initialize_inline_failed): Move here from cgraph.c.
6090 * tree-sra.c: Include ipa-inline.h.
6091 (ipa_sra_preliminary_function_checks): Update.
6092 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6093 ipa-inline.h.
6094
6095 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6096
6097 * config/i386/sse.md (V16): New mode iterator.
6098 (VI1, VI8): Ditto.
6099 (AVXMODEQI, AVXMODEDI): Remove.
6100 (sse2, sse3): New mode attribute.
6101 (mov<mode>): Use V16 mode iterator.
6102 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6103 (push<mode>1): Use V16 mode iterator.
6104 (movmisalign<mode>): Ditto.
6105 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6106 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6107 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6108 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6109 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6110 avx_movdqu<avxmodesuffix>.
6111 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6112 *avx_movdqu<avxmodesuffix>.
6113 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6114 avx_lddqu<avxmodesuffix>.
6115 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6116 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6117 avx_movnt<AVXMODEDI:mode>.
6118 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6119 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6120
6121 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6122
6123 PR target/48629
6124 * haifa-sched.c (prune_ready_list, schedule_block): Use
6125 sched_pressure_p rather than flag_sched_pressure.
6126
6127 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6128
6129 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6130 cgraph_get_node instead of cgraph_get_create_node.
6131
6132 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6133
6134 * cfgexpand.c (expand_debug_expr): Use
6135 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6136
6137 2011-04-15 Michael Matz <matz@suse.de>
6138
6139 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6140 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6141 * function.c (gimplify_parameters): Ditto.
6142 * gimplify.c (gimplify_vla_decl): Ditto.
6143
6144 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6145 (gimple_call_set_alloca_for_var): New inline function.
6146 (gimple_call_alloca_for_var_p): Ditto.
6147 * gimple.c (gimple_build_call_from_tree): Remember
6148 CALL_ALLOCA_FOR_VAR_P state.
6149 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6150
6151 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6152 calls if they were for VLA objects.
6153
6154 2011-04-15 Martin Jambor <mjambor@suse.cz>
6155
6156 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6157 of ADR_EXPRs.
6158
6159 2011-04-15 Martin Jambor <mjambor@suse.cz>
6160
6161 PR middle-end/48601
6162 * tree-emutls.c (lower_emutls_function_body): Call
6163 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6164 result is non-NULL.
6165
6166 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6167
6168 * c-decl.c (detect_field_duplicates): Call
6169 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6170
6171 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6172
6173 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6174 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6175 * ipa-pure-const.c (check_stmt): Call it.
6176 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6177
6178 2011-04-15 Richard Guenther <rguenther@suse.de>
6179
6180 PR tree-optimization/48290
6181 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6182 Properly decide inhibiting propagation based on the valueized
6183 operand. Do loop-closed SSA form preserving here ...
6184 (init_copy_prop): ... not here.
6185
6186 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6187
6188 PR target/48612
6189 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6190 (*ieee_smax<mode>3): Likewise.
6191
6192 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6193
6194 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6195 Replace match_operand with match_dup for the third operand in
6196 these expanders.
6197
6198 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6199
6200 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6201 to track processing of conditionals. Update all callers.
6202 (try_combine, simplify_if_then_else): Update.
6203
6204 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6205
6206 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6207 -fsched-pressure.
6208
6209 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6210
6211 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6212 instead of match_operand for operand 3.
6213
6214 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6215
6216 * recog.h (insn_operand_data): Add an "allows_mem" field.
6217 * genoutput.c (output_operand_data): Initialize it.
6218 * optabs.c (maybe_legitimize_operand_same_code): New function.
6219 (maybe_legitimize_operand): Use it when matching the original
6220 op->value.
6221
6222 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6223
6224 * gimplify.c: Fix issues in comments throughout.
6225 (voidify_wrapper_expr): Fix long line.
6226 (build_stack_save_restore): Likewise.
6227 (gimplify_loop_expr): Likewise.
6228 (gimplify_compound_lval): Likewise.
6229 (gimplify_init_ctor_eval): Likewise.
6230 (gimplify_modify_expr_rhs): Likewise.
6231 (omp_notice_threadprivate_variable): Likewise.
6232
6233 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6234
6235 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6236 original one if this is not a builtin function.
6237
6238 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6239
6240 PR target/48605
6241 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6242 offset it as needed based on top 2 bits in operands[3], change
6243 MEM mode to SFmode and mask those 2 bits away from operands[3].
6244
6245 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6246
6247 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6248 change from objc_declare_protocols() to objc_declare_protocol().
6249
6250 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6251
6252 * config/i386/sse.md (sse4_1): New mode attribute.
6253 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6254 avx_blend<ssemodesuffix><avxmodesuffix> and
6255 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6256 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6257 avx_blendv<ssemodesuffix><avxmodesuffix> and
6258 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6259 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6260 avx_dp<ssemodesuffix><avxmodesuffix> and
6261 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6262 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6263 (sse4_1_packusdw): Merge with *avx_packusdw.
6264 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6265 (sse4_1_pblendw): Merge with *avx_pblendw.
6266 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6267 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6268 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6269 VF mode iterator.
6270 (sse4_1_round<ssescalarmodesuffix>): Merge with
6271 *avx_round<ssescalarmodesuffix>.
6272 (aesenc): Merge with *avx_aesenc.
6273 (aesenclast): Merge with *avx_aesenclast.
6274 (aesdec): Merge with *avx_aesdec.
6275 (aesdeclast): Merge with *avx_aesdeclast.
6276 (pclmulqdq): Merge with *pclmulqdq.
6277 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6278 New predicate.
6279 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6280
6281 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6282
6283 PR middle-end/48608
6284 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6285 (align_local_variable): This. Update DECL_ALIGN.
6286 (add_stack_var): Updated.
6287 (expand_one_stack_var): Likewise.
6288
6289 2011-04-14 Richard Guenther <rguenther@suse.de>
6290
6291 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6292 Remove.
6293 (dse_initialize_block_local_data, dse_leave_block,
6294 record_voperand_set, get_stmt_uid): Likewise.
6295 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6296 (dse_optimize_stmt): Remove voperand set handling code.
6297 Simplify and improve to handle any kind of killing stmt.
6298 (dse_record_phi): Remove.
6299 (dse_enter_block): Simplify.
6300 (tree_ssa_dse): Likewise.
6301 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6302
6303 2011-04-14 Jan Hubicka <jh@suse.cz>
6304
6305 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6306 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6307 (cgraph_local_info): Remove inline_summary.
6308 * ipa-cp.c: Include ipa-inline.h.
6309 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6310 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6311 accesor.
6312 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6313 (input_overwrite_node): Do not set inline summary.
6314 (input_node): Do not stream inline summary.
6315 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6316 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6317 growth; we do not have inline parameters computed for that anyway.
6318 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6319 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6320 (inline_summary_t): New type and VECtor.
6321 (debug_inline_summary, dump_inline_summaries): Declare.
6322 (inline_summary): Use VOCtor.
6323 (estimate_edge_growth): Kill hack computing call stmt size directly.
6324 * lto-section-in.c (lto_section_name): Add inline section.
6325 * ipa-inline-analysis.c: Include lto-streamer.h
6326 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6327 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6328 (inline_summary_vec): Define.
6329 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6330 dump_inline_summaries): New functions.
6331 (estimate_function_body_sizes): Properly compute size/time of outgoing
6332 calls.
6333 (compute_inline_parameters): Alloc inline_summary; do not compute
6334 size/time of incomming calls.
6335 (estimate_edge_time): Avoid missing time summary hack.
6336 (inline_read_summary): Read inline summary info.
6337 (inline_write_summary): Write inline summary info.
6338 (inline_free_summary): Free all hooks and inline summary vector.
6339 * lto-streamer.h: Add LTO_section_inline_summary section.
6340 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6341 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6342
6343 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6344
6345 * tree-vectorizer.h (vect_strided_store_supported): Add a
6346 HOST_WIDE_INT argument.
6347 (vect_strided_load_supported): Likewise.
6348 (vect_permute_store_chain): Return void.
6349 (vect_transform_strided_load): Likewise.
6350 (vect_permute_load_chain): Delete.
6351 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6352 count argument. Check that the count is a power of two.
6353 (vect_strided_load_supported): Likewise.
6354 (vect_permute_store_chain): Return void. Update after above changes.
6355 Assert that the access is supported.
6356 (vect_permute_load_chain): Likewise.
6357 (vect_transform_strided_load): Return void.
6358 * tree-vect-stmts.c (vectorizable_store): Update calls after
6359 above interface changes.
6360 (vectorizable_load): Likewise.
6361 (vect_analyze_stmt): Don't check for strided powers of two here.
6362
6363 2011-04-14 Richard Guenther <rguenther@suse.de>
6364
6365 PR tree-optimization/48590
6366 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6367 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6368 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6369 BUILT_IN_STACK_SAVE.
6370 * tree-ssa-dce.c (propagate_necessity): Handle
6371 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6372
6373 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6374
6375 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6376 objc_declare_class.
6377
6378 2011-04-14 Richard Guenther <rguenther@suse.de>
6379
6380 * tree.h (get_object_alignment_1): Declare.
6381 * builtins.c (get_object_alignment_1): Split out worker from ...
6382 (get_object_alignment): ... here.
6383 * fold-const.c (get_pointer_modulus_and_residue): Use
6384 get_object_alignment_1.
6385
6386 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6387
6388 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6389 type parameter.
6390 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6391 parameter. Generalise code to handle arrays as well as vectors.
6392 (vect_setup_realignment): Update accordingly.
6393 * tree-vect-stmts.c (vectorizable_store): Likewise.
6394 (vectorizable_load): Likewise.
6395
6396 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6397
6398 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6399 within the per-copy loop.
6400
6401 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6402
6403 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6404 in the dump file.
6405
6406 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6407
6408 * doc/options.texi (Negative): Explicitly mention that the
6409 Negative chain must be circular.
6410
6411 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6412
6413 * function.h (block_chainon): Declare.
6414 * function.c (block_chainon): Define.
6415
6416 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6417 Eric Weddington <eric.weddington@atmel.com>
6418 Georg-Johann Lay <avr@gjlay.de>
6419
6420 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6421 New Includes
6422 (avr_init_builtins, avr_expand_builtin,
6423 avr_expand_delay_cycles, avr_expand_unop_builtin,
6424 avr_expand_binop_builtin ): New functions.
6425 (avr_builtin_id): New enum
6426 (struct avr_builtin_description): New struct
6427 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6428 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6429
6430 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6431 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6432 UNSPECV_DELAY_CYCLES): new enumeration values
6433 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6434 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6435 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6436 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6437 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6438 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6439 "fmulsu"): New insns
6440
6441 * config/avr/avr-c.c: fix line endings
6442 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6443 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6444 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6445 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6446 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6447
6448 * doc/extend.texi (AVR Built-in Functions): New node
6449 (Target Builtins): Add documentation of AVR
6450 built-in functions.
6451
6452 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6453
6454 PR target/44643
6455 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6456 alone. Error if non-const data has attribute progmem.
6457
6458 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6459
6460 * tree.h (struct tree_constructor): Include tree_typed instead of
6461 tree_common.
6462 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6463 TS_TYPED instead of TS_COMMON.
6464
6465 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6466
6467 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6468 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6469 (sse2_psadbw): Merge with *avx_psadbw.
6470 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6471 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6472 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6473 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6474 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6475 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6476 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6477 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6478 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6479 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6480 (ssse3_palignrti): Merge with *avx_palignrti.
6481
6482 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6483
6484 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6485 * tree-ssanames.c (fini_ssanames): VEC_free it.
6486 (make_ssa_name_fn): Update for VECness of free_ssanames.
6487 (release_ssa_name, release_dead_ssa_names): Likewise.
6488 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6489 tree_common.
6490 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6491 TS_TYPED instead of TS_COMMON.
6492
6493 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6494
6495 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6496 statistics_counter_event.
6497 * tree-ssa-copyrename.c (stats): Define.
6498 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6499 statistics_counter_event.
6500 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6501 (bswap_stats, widen_mul_stats): Define.
6502 (insert_reciprocals): Increment rdivs_inserted.
6503 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6504 rfuncs_inserted. Add calls to statistics_counter_event.
6505 (execute_cse_sincos_1): Increment inserted.
6506 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6507 statistics_counter_event.
6508 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6509 of bswap_stats. Add calls to statistics_counter_event.
6510 (convert_mult_to_widen): Increment widen_mults_inserted.
6511 (convert_plusminus_to_widen): Increment maccs_inserted.
6512 (convert_mult_to_fma): Increment fmas_inserted.
6513 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6514 calls to statistics_counter_event.
6515
6516 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6517
6518 PR rtl-optimization/48455
6519 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6520 `temp_costs->mem_cost'.
6521
6522 2011-04-13 Jan Hubicka <jh@suse.cz>
6523
6524 * ipa-inline.h: New file.
6525 * ipa-inline-analysis.c: New file. Broken out of ...
6526 * ipa-inline.c: ... this file; update toplevel comment;
6527 include ipa-inline.h
6528 (inline_summary): Move to ipa-inline.h
6529 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6530 ipa-inline-analysis.c.
6531 (cgraph_estimate_time_after_inlining): Rename to
6532 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6533 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6534 to estimate_edge_growth.
6535 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6536 rename to estimate_size_after_inlining.
6537 (cgraph_mark_inline_edge): Update for new naming convention.
6538 (cgraph_check_inline_limits): Likewise.
6539 (cgraph_edge_badness): Likewise.
6540 (cgraph_decide_recursive_inlining): Likewise.
6541 (cgraph_decide_inlining_of_small_functions): Likewise.
6542 (cgraph_decide_inlining_incrementally): Likewise.
6543 (cgraph_estimate_growth): Rename to estimate_growth; move to
6544 ipa-inline-analysis.c.
6545 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6546 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6547 (compute_inline_parameters): Likewise.
6548 (compute_inline_parameters_for_current): Likewise.
6549 (pass_inline_parameters): Likewise.
6550 (inline_indirect_intraprocedural_analysis): Likewise.
6551 (analyze_function): Rename to inline_analyze_function; likewise.
6552 (add_new_function): Move to ipa-inline-analysis.c.
6553 (inline_generate_summary): Likewise.
6554 (inline_read_summary): Likewise.
6555 (inline_write_summary): Likewise.
6556 * Makefile.in (ipa-inline-analysis.c): New file.
6557
6558 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6559
6560 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6561 * configure: Regenerate.
6562
6563 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6564
6565 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6566 instead of tree_common.
6567 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6568 Likewise.
6569 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6570 TS_TYPED rather than TS_COMMON.
6571 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6572
6573 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6574
6575 PR target/45263
6576 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6577 r20 around calls of __tablejump_elpm__
6578
6579 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6580
6581 PR middle-end/48591
6582 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6583 NULL.
6584 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6585
6586 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6587
6588 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6589 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6590 (cfi_vec): New typedef.
6591 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6592 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6593 (cie_cfi_vec): New static variable.
6594 (cie_cfi_head): Delete.
6595 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6596 declaration changed. Use vector rather than list operations.
6597 (new_cfi): Don't initialize the dw_cfi_next field.
6598 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6599 rather than list operations.
6600 (lookup_cfa): Use vector rather than list operations.
6601 (output_cfis): New argument upto. Accept a cfi_vec rather than
6602 a dw_cfi_ref list head as argument. All callers changed.
6603 Iterate over the vector using upto as a maximum index.
6604 (output_all_cfis): New static function.
6605 (output_fde): Use vector rather than list operations. Use the
6606 new upto argument for output_cfis rather than manipulating a
6607 list.
6608 (dwarf2out_begin_prologue): Change initializations to match
6609 new struct members.
6610 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6611 from the vector length rather than searching for the end of a list.
6612 Use output_all_cfis.
6613 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6614
6615 2011-04-13 Nick Clifton <nickc@redhat.com>
6616
6617 * config/rx/rx.md (movmemsi): Do not use this pattern when
6618 volatile pointers are involved.
6619
6620 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6621
6622 * config/i386/sse.md (pinsrbits): Remove.
6623 (sse2_packsswb): Merge with *avx_packsswb.
6624 (sse2_packssdw): Merge with *avx_packssdw.
6625 (sse2_packuswb): Merge with *avx_packuswb.
6626 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6627 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6628 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6629 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6630 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6631 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6632 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6633 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6634 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6635 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6636 (sse2_loadld): Merge with *avx_loadld.
6637 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6638 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6639 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6640 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6641 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6642
6643 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6644
6645 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6646 calling TREE_CHAIN.
6647 * print-tree.c (print_node): Likewise.
6648 * tree-inline.c (copy_tree_r): Likewise.
6649 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6650 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6651 instead of TS_COMMON.
6652 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6653 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6654 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6655 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6656 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6657 ...and these...
6658 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6659 * tree.h: ...here.
6660 (TREE_CHAIN): Check for a TS_COMMON structure.
6661 (TREE_TYPE): Check for a TS_TYPED structure.
6662
6663 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6664
6665 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6666 cgraph_get_create_node instead of cgraph_node.
6667
6668 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6669
6670 * c-parser.c (c_parser_initelt): Updated call to
6671 objc_build_message_expr.
6672 (c_parser_postfix_expression): Likewise.
6673
6674 2011-04-12 Kai Tietz <ktietz@redhat.com>
6675
6676 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6677 MASK_MS_BITFIELD_LAYOUT bit.
6678
6679 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6680
6681 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6682 assert it is always true.
6683 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6684 moves.
6685
6686 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6687
6688 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6689 compiling Objective-C to be more efficient.
6690
6691 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6692
6693 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6694 argv_copied.
6695
6696 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6697
6698 * recog.h, genoutput.c, optabs.c: Revert last patch.
6699
6700 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6701
6702 PR target/48090
6703 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6704
6705 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6706
6707 * recog.h (insn_operand_data): Add an "allows_mem" field.
6708 * genoutput.c (output_operand_data): Initialize it.
6709 * optabs.c (maybe_legitimize_operand_same_code): New function.
6710 (maybe_legitimize_operand): Use it when matching the original
6711 op->value.
6712
6713 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6714
6715 * genpreds.c (process_define_predicate): Move most processing
6716 to gensupport.c. Continue to validate the expression.
6717 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6718 (process_define_predicate): Move processing to gensupport.c.
6719 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6720 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6721 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6722 argument.
6723 (valid_predicate_name_p): New function, split out from old
6724 genpreds.c:process_define_predicate.
6725 (process_define_predicate): New function, combining code from
6726 old genpreds.c and genrecog.c functions.
6727 (process_rtx): Call it for DEFINE_PREDICATE and
6728 DEFINE_SPECIAL_PREDICATE.
6729
6730 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6731
6732 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6733 size of a '%A' memory reference.
6734 (T_DREG, T_QREG): New neon_builtin_type_bits.
6735 (arm_init_neon_builtins): Assert that the load and store operands
6736 are neon_struct_operands.
6737 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6738 (NEON_ARG_MEMORY): New builtin_arg.
6739 (neon_dereference_pointer): New function.
6740 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6741 Handle NEON_ARG_MEMORY.
6742 (arm_expand_neon_builtin): Update after above interface changes.
6743 Use NEON_ARG_MEMORY for loads and stores.
6744 * config/arm/predicates.md (neon_struct_operand): New predicate.
6745 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6746 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6747 (V_four_elem): Tweak formatting.
6748 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6749 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6750 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6751 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6752 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6753 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6754 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6755 Use %A in the output template.
6756 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6757 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6758 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6759 the width of the memory access. Remove post-increment.
6760 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6761
6762 2011-04-12 Nick Clifton <nickc@redhat.com>
6763
6764 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6765 instruction for interrupt handlers if the target is the basic V850
6766 architecture.
6767 (expand_epilogue): Likewise.
6768
6769 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6770
6771 PR rtl-optimization/48549
6772 * combine.c (propagate_for_debug): Also stop after BB_END of
6773 this_basic_block. Process LAST and just stop processing after it.
6774 (combine_instructions): If last_combined_insn has been deleted,
6775 set last_combined_insn to its PREV_INSN.
6776
6777 2011-04-12 Richard Guenther <rguenther@suse.de>
6778
6779 PR tree-optimization/46076
6780 * gimple.h (struct gimple_statement_call): Add fntype field.
6781 (gimple_call_fntype): Adjust.
6782 (gimple_call_set_fntype): New function.
6783 * gimple.c (gimple_build_call_1): Set the call function type.
6784 * gimplify.c (gimplify_call_expr): Preserve the function
6785 type the frontend used for the call.
6786 (gimplify_modify_expr): Likewise.
6787 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6788 function type.
6789 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6790 function type.
6791 * tree-ssa.c (useless_type_conversion_p): Function pointer
6792 conversions are useless.
6793
6794 2011-04-12 Martin Jambor <mjambor@suse.cz>
6795
6796 * cgraph.h (cgraph_node): Remove function declaration.
6797 (cgraph_create_node): Declare.
6798 (cgraph_get_create_node): Likewise.
6799 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6800 Updated all callers.
6801 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6802 the decl does not already exist. Call cgraph_get_create_node instead
6803 of cgraph_node.
6804 (cgraph_get_create_node): New function.
6805 (cgraph_same_body_alias): Update comment.
6806 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6807 assert it does not return NULL.
6808 (cgraph_update_edges_for_call_stmt): Likewise.
6809 (cgraph_clone_edge): Likewise.
6810 (cgraph_create_virtual_clone): Likewise.
6811 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6812 instead of cgraph_node.
6813 (cgraph_add_new_function): Call cgraph_create_node or
6814 cgraph_get_create_node instead of cgraph_node.
6815 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6816 instead of cgraph_node.
6817 (record_eh_tables): Likewise.
6818 (mark_address): Likewise.
6819 (mark_load): Likewise.
6820 (build_cgraph_edges): Call cgraph_get_create_node instead
6821 of cgraph_node.
6822 (rebuild_cgraph_edges): Likewise.
6823 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6824 instead of cgraph_node.
6825 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6826 cgraph_node.
6827 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6828 cgraph_create_node instead of cgraph_node.
6829 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6830 of cgraph_node.
6831 * lto-cgraph.c (input_node): Likewise.
6832 * lto-streamer-in.c (input_function): Likewise.
6833 * varasm.c (mark_decl_referenced): Likewise.
6834 (assemble_alias): Likewise.
6835
6836 2011-04-12 Martin Jambor <mjambor@suse.cz>
6837
6838 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6839 instead of cgraph_node and assert it does not return NULL.
6840 * lto-streamer-in.c (lto_read_body): Likewise.
6841 * omp-low.c (new_omp_context): Likewise.
6842 (create_task_copyfn): Likewise.
6843 * tree-emutls.c (lower_emutls_function_body): Likewise.
6844 * matrix-reorg.c (transform_allocation_sites): Likewise.
6845
6846 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6847
6848 PR c/48552
6849 * c-typeck.c (build_asm_expr): Error out on attempts to use
6850 void type outputs or inputs for constraints that allow reg or
6851 don't allow memory.
6852
6853 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6854 Richard Earnshaw <rearnsha@arm.com>
6855
6856 PR target/48250
6857 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6858 to use sign-magnitude offsets. Reject unsupported unaligned
6859 cases. Add detailed description in comments.
6860 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6861 condition from TARGET_32BIT to TARGET_ARM.
6862
6863 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6864
6865 * tree.h (struct typed_tree): New.
6866 (struct tree_common): Include it instead of tree_base.
6867 (TREE_TYPE): Update for new location of type field.
6868 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6869 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6870 (union tree_node): Add typed field.
6871 * treestruct.def (TS_TYPED): New.
6872 * lto-streamer.c (check_handled_ts_structures): Handle it.
6873 * tree.c (MARK_TS_TYPED): New macro.
6874 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6875
6876 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6877
6878 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6879 (force_nonfallthru): Do not alter the loop nest if no basic block
6880 was created.
6881
6882 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6883
6884 * config/i386/sse.md (VI): New mode iterator.
6885 (SSEMODEI): Remove.
6886 (AVX256MODEI): Ditto.
6887 (AVXMODEF4P): Ditto.
6888 (avxvecpsmode): Ditto.
6889 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6890 (sse2_andnot<mode>3): New expander.
6891 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6892 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6893 (<any_logic:code><mode>3): Use VI mode iterator.
6894 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6895 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6896 (*andnottf3): Handle AVX three-operand constraints.
6897 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6898
6899 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6900 Robert Millan <rmh@gnu.org>
6901
6902 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6903 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6904 GNU_USER_DYNAMIC_LINKER64): Define.
6905 (REG_NAME): Don't undefine.
6906 (MD_UNWIND_SUPPORT): Undefine.
6907 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6908 (REG_NAME): Don't undefine.
6909 (MD_UNWIND_SUPPORT): Undefine.
6910 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6911
6912 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6913
6914 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6915 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6916
6917 2011-04-11 Xinliang David Li <davidxl@google.com>
6918
6919 * value-profile.c (check_ic_target): New function.
6920 (gimple_ic_transform): Sanity check indirect call target.
6921 * gimple-low.c (gimple_check_call_args): Interface change.
6922 (gimple_check_call_matching_types): New function.
6923 * tree-inline.c (tree_can_inline_p): Call new function.
6924
6925 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6926
6927 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6928 tree-pretty-print.h & realmpfr.h.
6929
6930 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6931
6932 PR middle-end/48464
6933 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6934 (setup_allocno_and_important_classes): Ditto.
6935
6936 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6937
6938 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6939 GNU_USER_DYNAMIC_LINKER.
6940 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6941 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6942 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6943 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6944 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6945 GNU_USER_TARGET_OS_CPP_BUILTINS.
6946 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6947 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6948 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6949 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6950 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6951 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6952 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6953 GNU_USER_TARGET_OS_CPP_BUILTINS.
6954 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6955 GNU_USER_DYNAMIC_LINKER.
6956 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6957 GNU_USER_TARGET_OS_CPP_BUILTINS.
6958 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6959 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6960 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6961 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6962 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6963 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6964 GNU_USER_DYNAMIC_LINKER64): Remove.
6965 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6966 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6967 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6968 GNU_USER_DYNAMIC_LINKER.
6969 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6970 GNU_USER_TARGET_OS_CPP_BUILTINS.
6971 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6972 GNU_USER_TARGET_OS_CPP_BUILTINS.
6973 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6974 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6975 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6976 GNU_USER_TARGET_OS_CPP_BUILTINS.
6977 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6978 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6979 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6980 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6981 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6982 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6983 GNU_USER_DYNAMIC_LINKER.
6984 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6985 GNU_USER_TARGET_OS_CPP_BUILTINS.
6986 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6987 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6988 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6989 GNU_USER_DYNAMIC_LINKER.
6990 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6991 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6992 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6993 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6994 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6995 GNU_USER_DYNAMIC_LINKER.
6996 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6997 GNU_USER_DYNAMIC_LINKERN32.
6998 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6999 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7000 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7001 GNU_USER_DYNAMIC_LINKER32.
7002 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7003 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7004 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7005 GNU_USER_DYNAMIC_LINKER.
7006 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7007 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7008 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7009 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7010 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7011 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7012 GNU_USER_DYNAMIC_LINKER32.
7013 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7014 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7015 GNU_USER_DYNAMIC_LINKER.
7016 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7017 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7018 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7019 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7020 GNU_USER_DYNAMIC_LINKER64.
7021 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7022 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7023 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7024 GNU_USER_DYNAMIC_LINKER.
7025 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7026 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7027 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7028 GNU_USER_DYNAMIC_LINKER.
7029 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7030 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7031 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7032 GNU_USER_DYNAMIC_LINKER32.
7033 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7034 GNU_USER_DYNAMIC_LINKER64.
7035 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7036 GNU_USER_DYNAMIC_LINKER64.
7037 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7038 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7039 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7040 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7041 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7042
7043 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7044
7045 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7046 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7047 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7048 GNU_USER_DYNAMIC_LINKER.
7049 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7050 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7051 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7052 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7053 GNU_USER_DYNAMIC_LINKER64.
7054 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7055 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7056 GNU_USER_LINK_EMULATION.
7057 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7058 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7059 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7060 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7061 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7062 CPP_SPEC, CC1_SPEC): Remove.
7063 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7064 (GNU_USER_DYNAMIC_LINKER): Define.
7065 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7066 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7067 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7068 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7069 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7070 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7071 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7072 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7073 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7074 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7075 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7076 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7077 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7078 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7079 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7080 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7081 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7082 GNU_USER_DYNAMIC_LINKER.
7083 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7084 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7085 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7086 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7087 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7088 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7089 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7090 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7091 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7092 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7093
7094 2011-04-11 Kai Tietz <ktietz@redhat.com>
7095
7096 PR target/9601
7097 PR target/11772
7098 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7099 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7100 comment.
7101 (ix86_is_msabi_thiscall): Removed.
7102 (ix86_is_type_thiscall): Likewise.
7103 (ix86_get_callcvt): New function.
7104 (ix86_comp_type_attributes): Simplify check.
7105 (ix86_function_regparm): Use ix86_get_callcvt for calling
7106 convention attribute checks.
7107 (ix86_return_pops_args): Likewise.
7108 (ix86_static_chain): Likewise.
7109 (x86_this_parameter): Likewise.
7110 (x86_output_mi_thunk): Likewise.
7111 (ix86_function_type_abi): Optimize check for types without attributes.
7112 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7113 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7114 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7115 by flag-values.
7116 (IX86_BASE_CALLCVT): Helper macro.
7117 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7118 Use ix86_get_callcvt for calling convention attribute checks and avoid
7119 symbol-decoration for stdcall in TARGET_RTD case.
7120 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7121 Likewise.
7122 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7123 for declaration.
7124
7125 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7126
7127 * config/i386/sse.md (VI_128): New mode iterator.
7128 (VI12_128): Rename from SSEMODE12.
7129 (VI14_128): Rename from SSEMODE14.
7130 (VI124_128): New mode iterator.
7131 (VI24_128): Rename from SSEMODE248.
7132 (VI248_128): Rename from SSEMODE248.
7133 (SSEMODE124C8): Remove.
7134 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7135 (*sse2_<plusminus_insn><mode>3): Merge with
7136 *avx_<plusminus_insn><mode>3.
7137 (*mulv8hi3): Merge with *avx_mulv8hi3.
7138 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7139 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7140 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7141 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7142 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7143 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7144 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7145 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7146 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7147 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7148 (*<smaxmin:code>v8hi3): Ditto.
7149 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7150 (*<smaxmin:code>v16qi3): Ditto.
7151 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7152 (*sse2_eq<mode>3): Ditto.
7153 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7154 (*sse2_gt<mode>3): Ditto.
7155 (vcondv2di): Split out of vcond<mode>.
7156 (vconduv2di): Split out of vcondu<mode>.
7157
7158 2011-04-11 Richard Guenther <rguenther@suse.de>
7159
7160 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7161 before calling tree_low_cst.
7162
7163 2011-04-11 Richard Guenther <rguenther@suse.de>
7164
7165 * stor-layout.c (layout_type): Compute all array index size operations
7166 in the original type.
7167 (initialize_sizetypes): Add comment.
7168 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7169
7170 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7171
7172 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7173
7174 2011-04-11 Martin Jambor <mjambor@suse.cz>
7175
7176 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7177 of cgraph_node, handle NULL return value.
7178 (cgraph_global_info): Likewise.
7179 (cgraph_rtl_info): Likewise.
7180 * tree-inline.c (estimate_num_insns): Likewise.
7181 * gimplify.c (unshare_body): Likewise.
7182 (unvisit_body): Likewise.
7183 (gimplify_body): Likewise.
7184 * predict.c (optimize_function_for_size_p): Likewise.
7185 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7186 (call_may_clobber_ref_p_1): Likewise.
7187 * varasm.c (function_section_1): Likewise.
7188 (assemble_start_function): Likewise.
7189
7190 2011-04-11 Martin Jambor <mjambor@suse.cz>
7191
7192 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7193 of cgraph_node.
7194 * final.c (rest_of_clean_state): Likewise.
7195 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7196 * passes.c (pass_init_dump_file): Likewise.
7197 (execute_all_ipa_transforms): Likewise.
7198 (function_called_by_processed_nodes_p): Likewise.
7199 * predict.c (maybe_hot_frequency_p): Likewise.
7200 (probably_never_executed_bb_p): Likewise.
7201 (compute_function_frequency): Likewise.
7202 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7203 (unnest_nesting_tree_1): Likewise.
7204 (lower_nested_functions): Likewise.
7205 * tree-optimize.c (execute_fixup_cfg): Likewise.
7206 (tree_rest_of_compilation): Likewise.
7207 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7208 * tree-sra.c (ipa_early_sra): Likewise.
7209 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7210 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7211 * ipa.c (record_cdtor_fn): Likewise.
7212 * ipa-inline.c (cgraph_early_inlining): Likewise.
7213 (compute_inline_parameters_for_current): Likewise.
7214 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7215 * ipa-pure-const.c (local_pure_const): Likewise.
7216 * ipa-split.c (split_function): Likewise.
7217 (execute_split_functions): Likewise.
7218 * cgraphbuild.c (build_cgraph_edges): Likewise.
7219 (rebuild_cgraph_edges): Likewise.
7220 (cgraph_rebuild_references): Likewise.
7221 (remove_cgraph_callee_edges): Likewise.
7222 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7223 (verify_cgraph_node): Likewise.
7224 (cgraph_analyze_functions): Likewise.
7225 (cgraph_preserve_function_body_p): Likewise.
7226 (save_inline_function_body): Likewise.
7227 (save_inline_function_body): Likewise.
7228 * tree-inline.c (copy_bb): Likewise.
7229 (optimize_inline_calls): Likewise.
7230
7231 2011-04-11 Martin Jambor <mjambor@suse.cz>
7232
7233 PR tree-optimization/48195
7234 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7235 ipa_check_create_edge_args.
7236 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7237 ipa_check_create_edge_args.
7238 * ipa-inline.c (inline_generate_summary): Do not call
7239 ipa_check_create_node_params and ipa_check_create_edge_args.
7240 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7241 ipa_check_create_edge_args.
7242
7243 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7244
7245 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7246 instead of loop.
7247 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7248 * function.c (record_hard_reg_sets): Likewise.
7249 * ira.c (compute_regs_asm_clobbered): Likewise.
7250 * sched-deps.c (sched_analyze_1): Likewise.
7251 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7252
7253 2011-04-09 Xinliang David Li <davidxl@google.com>
7254
7255 PR tree-optimization/PR48484
7256 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7257 has_valid_pred lazily
7258
7259 2011-04-09 Duncan Sands <baldrick@free.fr>
7260
7261 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7262
7263 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7264
7265 * combine.c (combine_validate_cost): Adjust comments. Set registered
7266 cost of I0 to zero at the end, if any.
7267
7268 2011-04-08 Xinliang David Li <davidxl@google.com>
7269
7270 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7271 to insane profile data.
7272
7273 2011-04-08 Xinliang David Li <davidxl@google.com>
7274
7275 * ipa-cp.c (ipcp_update_profiling): Correct
7276 negative scale factor due to insane profile data.
7277
7278 2011-04-08 Xinliang David Li <davidxl@google.com>
7279
7280 * final.c (dump_basic_block_info): New function.
7281 (final): Dump basic block.
7282 (final_scan_insn): Remove old dump.
7283
7284 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7285
7286 PR target/47829
7287 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7288 crtbegin/crtend.
7289
7290 2011-04-08 Michael Matz <matz@suse.de>
7291
7292 PR middle-end/48389
7293 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7294 functions.
7295 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7296 * rtl.h (rebuild_jump_labels_chain): Declare.
7297 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7298 insns inserted on edges.
7299
7300 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7301
7302 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7303 * config/arm/arm-arches.def: New.
7304 * config/arm/arm-opts.h: New.
7305 * config/arm/genopt.sh: New.
7306 * config/arm/arm-tables.opt: New (generated).
7307 * config/arm/arm.c (arm_handle_option, arm_target_help,
7308 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7309 (all_architectures): Get most table contents from arm-arches.def.
7310 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7311 arm_selected_tune here.
7312 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7313 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7314 (march=, mcpu=, mtune=): Use Enum and Var.
7315 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7316 (arm.o): Update dependencies.
7317
7318 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7319
7320 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7321 of header_file.
7322 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7323 (write_typed_alloc_defns): Likewise.
7324 (main): Calls write_typed_alloc_defns with output_header.
7325
7326 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7327
7328 PR inline-asm/48435
7329 * ira-color.c (setup_profitable_hard_regs): Add comments.
7330 Don't take prohibited hard regs into account.
7331 (setup_conflict_profitable_regs): Rename to
7332 get_conflict_profitable_regs.
7333 (check_hard_reg_p): Check prohibited hard regs.
7334
7335 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7336
7337 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7338 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7339 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7340
7341 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7342
7343 PR target/48366
7344 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7345 move from floating point to shift amount register.
7346 (emit_move_sequence): Remove secondary reload support for floating
7347 point to shift amount amount register copies.
7348 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7349 amount register copies.
7350 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7351 register, return false if mode isn't a scalar integer mode.
7352 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7353
7354 2011-04-08 Richard Guenther <rguenther@suse.de>
7355
7356 * gimple.c (gimple_call_flags): Remove kludge.
7357
7358 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7359
7360 * sel-sched.c (sel_region_init): Move call to
7361 sel_setup_region_sched_flags after setup_current_loop_nest.
7362
7363 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7364
7365 PR rtl-optimization/48272
7366 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7367 init_insn_reg_pressure_info. Adjust a caller.
7368 * sched-int.h (init_insn_reg_pressure_info): Declare.
7369 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7370 when sched-pressure is enabled.
7371
7372 2011-04-08 Richard Guenther <rguenther@suse.de>
7373
7374 * gimple.c (gimple_set_modified): Do not queue calls to
7375 MODIFIED_NORETURN_CALLS here ...
7376 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7377
7378 2011-04-08 Richard Guenther <rguenther@suse.de>
7379
7380 PR lto/48467
7381 * toplev.c (lang_dependent_init): Do not open asm_out_file
7382 in WPA mode, nor perform debug machinery initialization.
7383 (finalize): Do not unlink asm_out_file in WPA mode.
7384
7385 2011-04-08 Richard Guenther <rguenther@suse.de>
7386
7387 * gimple.h (gimple_call_fntype): New function.
7388 (gimple_call_return_type): Use it.
7389 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7390 * gimple-low.c (gimple_check_call_args): Likewise.
7391 * gimple.c (gimple_call_flags): Likewise.
7392 (gimple_call_arg_flags): Likewise.
7393 (gimple_call_return_flags): Likewise.
7394 * tree-cfg.c (verify_gimple_call): Likewise.
7395 (do_warn_unused_result): Likewise.
7396 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7397 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7398
7399 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7400
7401 PR rtl-optimization/48235
7402 * sel-sched.c (code_motion_process_successors): Recompute the last
7403 insn in basic block if control flow changed.
7404 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7405 Update condition for ilist_remove.
7406
7407 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7408
7409 PR rtl-optimization/48302
7410 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7411 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7412 it to record added preheader blocks.
7413 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7414 on to sel_add_loop_preheaders.
7415 (sel_region_init): Move call to setup_current_loop_nest after
7416 sel_init_bbs.
7417
7418 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7419
7420 PR target/48273
7421 * cfgloop.h (loop_has_exit_edges): New helper.
7422 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7423 non-clonable.
7424 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7425 that have no exit edges.
7426
7427 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7428
7429 PR rtl-optimization/48442
7430 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7431 all callers. Adjust assert.
7432
7433 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7434
7435 PR tree-optimization/48377
7436 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7437 is_packed to true even for types with smaller TYPE_ALIGN than
7438 TYPE_SIZE.
7439
7440 2011-04-08 Richard Guenther <rguenther@suse.de>
7441
7442 PR bootstrap/48513
7443 * doc/tm.texi: Re-generate.
7444
7445 2011-04-08 Wei Guozhi <carrot@google.com>
7446
7447 PR target/47855
7448 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7449 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7450 * config/arm/arm.md (*push_multi): Change the length computation to
7451 call a C function.
7452
7453 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7454
7455 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7456 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7457 * doc/tm.texi: Regenerate.
7458 * system.h (ASM_OUTPUT_BSS): Poison.
7459 * varasm.c (asm_output_bss): Remove function.
7460 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7461
7462 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7463 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7464 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7465 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7466 Likewise.
7467 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7468 Likewise.
7469 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7470 Likewise.
7471 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7472
7473 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7474
7475 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7476 EnumValue lines.
7477
7478 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7479
7480 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7481 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7482 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7483 OPT_mcpu32.
7484 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7485 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7486 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7487 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7488 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7489 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7490 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7491 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7492 options. Don't map other m68k options manually. Don't handle
7493 old-style options as canonical.
7494 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7495 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7496
7497 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7498
7499 * basic-block.h (force_nonfallthru): Move to...
7500 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7501 (force_nonfallthru): ...here.
7502 * cfghooks.c (force_nonfallthru): New function.
7503 * cfgrtl.c (force_nonfallthru): Rename into...
7504 (rtl_force_nonfallthru): ...this.
7505 (commit_one_edge_insertion): Do not set AUX field.
7506 (commit_edge_insertions): Do not discover new basic blocks.
7507 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7508 (cfg_layout_rtl_cfg_hooks): Likewise.
7509 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7510 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7511 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7512
7513 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7514
7515 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7516 Remove macros.
7517
7518 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7519
7520 * config/i386/sse.md: Update copyright year.
7521 (avxcvtvecmode): Remove.
7522 (sse_movhlps): Merge with *avx_movhlps.
7523 (sse_movlhps): Merge with *avx_movlhps.
7524 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7525 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7526 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7527 (sse_loadhps): Merge with *avx_loadhps.
7528 (sse_storelps): Merge with *avx_storelps.
7529 (sse_loadlps): Merge with *avx_loadlps.
7530 (sse_movss): Merge with *avx_movss.
7531 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7532 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7533 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7534 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7535 (vec_set<mode>_0): Ditto.
7536 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7537 (sse4_1_insertps): Merge with *avx_insertps.
7538 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7539 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7540 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7541 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7542 (sse2_storehpd): Merge with *avx_storehpd.
7543 (sse2_loadhpd): Merge with *avx_loadhpd.
7544 (sse2_loadlpd): Merge with *avx_loadlpd.
7545 (sse2_movsd): Merge with *avx_movsd.
7546 (*vec_concatv2df): Merge with *vec_concatv2df.
7547
7548 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7549
7550 PR debug/48343
7551 * combine.c (combine_instructions): Add last_combined_insn,
7552 update it if insn is after it, pass it to all try_combine calls.
7553 (try_combine): Add last_combined_insn parameter, pass it instead of
7554 i3 to propagate_for_debug.
7555
7556 2011-04-07 Nick Clifton <nickc@redhat.com>
7557
7558 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7559 to handle MDR <-> data register transfers.
7560 (movhi_internal): Likewise.
7561
7562 2011-04-07 Alan Modra <amodra@gmail.com>
7563
7564 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7565 previous stack info.
7566
7567 2011-04-07 Tom de Vries <tom@codesourcery.com>
7568
7569 PR target/43920
7570 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7571 flow_find_cross_jump. Swap variables to implement backward replacement.
7572 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7573
7574 2011-04-07 Tom de Vries <tom@codesourcery.com>
7575
7576 PR target/43920
7577 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7578 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7579 and bb2.
7580 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7581 src1 or src2. Redirect edges to the last basic block. Update
7582 frequency and count on multiple basic blocks in case of fallthru.
7583
7584 2011-04-07 Tom de Vries <tom@codesourcery.com>
7585
7586 PR target/43920
7587 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7588 function.
7589 (old_insns_match_p): Change return type. Replace return false/true
7590 with return dir_none/dir_both. Use can_replace_by.
7591 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7592 direction from dir_p. Register replacement direction in dir, last_dir
7593 and afterlast_dir. Handle new return type of old_insns_match_p using
7594 merge_dir. Return replacement direction in dir_p.
7595 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7596 return type of old_insns_match_p.
7597 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7598 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7599 flow_find_cross_jump.
7600 * basic-block.h (enum replace_direction): New type.
7601 (flow_find_cross_jump): Add parameter to declaration.
7602
7603 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7604
7605 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7606 (AVXMODEDCVTPS2DQ): Ditto.
7607 (VEC_FLOAT_MODE): Ditto.
7608 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7609 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7610 (<any_logic:code><mode>3): Use VF mode iterator.
7611 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7612 Use VF mode iterator.
7613 (copysign<mode>3): Use VF mode iterator.
7614 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7615 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7616 (*<any_logic:code><MODEF:mode>3): Merge with
7617 *avx_<any_logic:code><MODEF:mode>3.
7618 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7619 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7620 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7621 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7622 (sse2_cvtdq2ps): Use %v modifier.
7623 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7624 (avx_cvtps2dq<avxmodesuffix>): Remove.
7625 (sse2_cvtps2dq): Use %v modifier.
7626 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7627 (avx_cvttps2dq<avxmodesuffix>): Remove.
7628 (sse2_cvttps2dq): Use %v modifier.
7629 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7630 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7631 (sse2_cvtsd2siq): Fix insn template.
7632 (sse2_cvtsd2siq_2): Ditto.
7633 (sse2_cvttsd2siq): Ditto.
7634 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7635 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7636
7637 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7638
7639 * gcov-io.c: Use GCC Runtime Library Exception.
7640
7641 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7642
7643 PR debug/48466
7644 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7645 as base_reg whatever register reg has been eliminated to, instead
7646 of hardcoding STACK_POINTER_REGNUM.
7647
7648 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7649
7650 * doc/tm.texi.in: Document C target hooks as separate from general
7651 target hooks.
7652 * doc/tm.texi: Regenerate.
7653 * genhooks.c (struct hook_desc): Add docname field.
7654 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7655 docname field.
7656 (hook_array): Include c-target.def.
7657 (emit_documentation): Use docname field in output.
7658 (emit_init_macros): Take docname argument. Only emit definitions
7659 for hooks matching docname.
7660 (main): Expect additional arguments in all cases. Pass argument
7661 to emit_init_macros.
7662 * target.def: Move initial macro definitions and comments to
7663 target-hooks-macros.h.
7664 (gcc_targetcm): Move to c-family/c-target.def.
7665 * target.h (targetcm): Move declaration to c-family/c-target.h.
7666 * targhooks.c (default_handle_c_option): Move to
7667 c-family/c-opts.c.
7668 * targhooks.h (default_handle_c_option): Move declaration to
7669 c-family/c-common.h.
7670 * target-hooks-macros.h: New file.
7671 * config.gcc (target_has_targetcm): Define and use to add to
7672 c_target_objs and cxx_target_objs.
7673 * config/default-c.c: New file.
7674 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7675 of target.h and target-def.h.
7676 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7677 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7678 darwin_check_cfstring_format_arg): Make static.
7679 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7680 TARGET_STRING_OBJECT_REF_TYPE_P,
7681 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7682 * config/darwin-protos.h (darwin_objc_construct_string,
7683 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7684 declare.
7685 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7686 TARGET_STRING_OBJECT_REF_TYPE_P,
7687 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7688 * config/t-darwin (darwin-c.o): Update dependencies.
7689 * system.h (TARGET_HAS_TARGETCM): Poison.
7690 * Makefile.in (TARGET_H): Update.
7691 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7692 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7693 (default-c.o): New target.
7694 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7695 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7696 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7697 c-target.def.
7698 (build/genhooks.o): Update dependencies.
7699
7700 2011-04-06 Richard Guenther <rguenther@suse.de>
7701
7702 * ipa-inline.c (enum inlining_mode): Remove.
7703 (cgraph_flatten): Use some other token.
7704 (cgraph_edge_early_inlinable_p): New function, split out from ...
7705 (cgraph_perform_always_inlining): New function, split out from ...
7706 (cgraph_decide_inlining_incrementally): ... here.
7707 (cgraph_mark_inline_edge): Adjust.
7708 (cgraph_early_inlining): Re-structure.
7709 (pass_early_inline): Require SSA form.
7710
7711 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7712 Julian Brown <julian@codesourcery.com>
7713 Mark Shinwell <shinwell@codesourcery.com>
7714
7715 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7716 LO_REGS only for Thumb-1.
7717 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7718 be used in short instructions when optimising for size on Thumb-2.
7719
7720 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7721
7722 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7723 associated with user returns to be preserved.
7724
7725 2011-04-06 Tristan Gingold <gingold@adacore.com>
7726
7727 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7728 symbol_queue_size, DBXOUT_DECR_NESTING,
7729 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7730 if XCOFF_DEBUGGING_INFO.
7731
7732 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7733
7734 * config/i386/i386.md (attribute isa): New.
7735 (attribute enabled): New.
7736 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7737 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7738 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7739 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7740 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7741 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7742 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7743 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7744
7745 * config/i386/sse.md (VF): New mode iterator.
7746 (VF1): Ditto.
7747 (VF2): Ditto.
7748 (VF_128): Ditto.
7749 (SSEMODEF4): Remove.
7750 (attribute sse): Handle V8SF and V4DF modes.
7751 (<absneg:code><mode>2): Use VF mode iterator.
7752 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7753 mode iterator.
7754 (<plusminus_insn><mode>3): Use VF mode iterator.
7755 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7756 Use VF mode iterator.
7757 (<sse>_vm<plusminus_insn><mode>3): Merge with
7758 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7759 (mul<mode>3): Use VF mode iterator.
7760 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7761 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7762 mode iterator.
7763 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7764 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7765 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7766 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7767 mode iterator.
7768 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7769 Use VF1 mode iterator.
7770 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7771 (sqrt<VF2:mode>2): New expander.
7772 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7773 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7774 and sqrtv2df2. Use VF mode iterator.
7775 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7776 mode iterator.
7777 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7778 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7779 Use VF1 mode iterator.
7780 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7781 (<smaxmin:code><mode>3): Use VF mode iterator.
7782 (*<smaxmin:code><mode>3_finite): Merge with
7783 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7784 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7785 (<sse>_vm<smaxmin:code><mode>2): Merge with
7786 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7787 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7788 mode iterator.
7789 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7790 mode iterator.
7791 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7792 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7793 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7794 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7795 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7796 VF mode iterator.
7797 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7798 Use VF_128 mode iterator.
7799 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7800 mode iterator.
7801 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7802 VF_128 mode iterator.
7803 (vcond<mode>): Use VF mode iterator.
7804 * config/i386/predicates.md (sse_comparison_operator): Merge with
7805 avx_comparison_float_operator. Do not declare as special_predicate.
7806 * config/i386/i386.c (struct builtin_description): Update for renamed
7807 compare patterns.
7808 (ix86_expand_args_builtin): Ditto.
7809 (ix86_expand_sse_compare_mask): Ditto.
7810
7811 2011-04-06 Richard Guenther <rguenther@suse.de>
7812
7813 * tree-inline.c (estimate_num_insns): For calls simply account
7814 for all passed arguments and a used return value.
7815
7816 2011-04-06 Richard Guenther <rguenther@suse.de>
7817
7818 PR tree-optimization/47663
7819 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7820 call_stmt_time fields.
7821 (cgraph_edge_inlinable_p): Declare.
7822 (cgraph_edge_recursive_p): New inline function.
7823 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7824 (cgraph_clone_edge): Copy it.
7825 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7826 Account for call stmt time.
7827 (cgraph_estimate_time_after_inlining): Take edge argument.
7828 (cgraph_estimate_edge_growth): Account call stmt size.
7829 (cgraph_estimate_size_after_inlining): Take edge argument.
7830 (cgraph_mark_inline_edge): Adjust.
7831 (cgraph_check_inline_limits): Likewise.
7832 (cgraph_recursive_inlining_p): Remove.
7833 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7834 (cgraph_decide_recursive_inlining): Take edge argument and
7835 adjust.
7836 (cgraph_decide_inlining_of_small_functions): Do not avoid
7837 diags for recursive inlining here.
7838 (cgraph_flatten): Adjust.
7839 (cgraph_decide_inlining_incrementally): Likewise.
7840 (estimate_function_body_sizes): Remove call cost handling.
7841 (compute_inline_parameters): Initialize caller edge call costs.
7842 (cgraph_estimate_edge_growth): New function.
7843 (cgraph_estimate_growth): Use it.
7844 (cgraph_edge_badness): Likewise.
7845 (cgraph_check_inline_limits): Take an edge argument.
7846 (cgraph_decide_inlining_of_small_functions): Adjust.
7847 (cgraph_decide_inlining): Likewise.
7848 * tree-inline.c (estimate_num_insns): Only account for call
7849 return value if it is used.
7850 (expand_call_inline): Avoid diagnostics on recursive inline
7851 functions here.
7852 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7853 (input_edge): Input edge call costs.
7854
7855 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7856
7857 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7858
7859 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7860
7861 * doc/invoke.texi (Spec Files): Fix typo.
7862
7863 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7864
7865 * profile.c (branch_prob): Move declaration of local variable. Remove
7866 obsolete ??? comment. Expand the location explicitly instead of using
7867 the LOCATION_FILE and LOCATION_LINE macros.
7868
7869 2011-04-06 Wei Guozhi <carrot@google.com>
7870
7871 PR target/47855
7872 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7873 (arm_cond_branch): Likewise.
7874 (arm_cond_branch_reversed): Likewise.
7875 (arm_jump): Likewise.
7876 (push_multi): Likewise.
7877 * config/arm/constraints.md (Py): New constraint.
7878
7879 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7880
7881 PR bootstrap/48471
7882 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7883 Move these...
7884 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7885 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7886 #ifdef DBX_DEBUGGING_INFO.
7887
7888 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7889
7890 PR bootstrap/48403
7891 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7892 if old and new states differ.
7893
7894 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7895
7896 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7897 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7898 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7899 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7900 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7901 mcfv4e): Use Alias.
7902 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7903 ColdFire options to -mcpu= options.
7904
7905 2011-04-05 Jeff Law <law@redhat.com>
7906
7907 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7908 check if BB is a successor of LOOP->header and return
7909 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7910
7911 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7912
7913 * cprop.c (struct reg_use): Remove.
7914 (reg_use_table): Make an array of RTX.
7915 (find_used_regs, constprop_register, local_cprop_pass,
7916 bypass_block): Simplify users of reg_use_table.
7917 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7918 on one of the uses found by find_used_regs.
7919
7920 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7921
7922 PR bootstrap/48469
7923 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7924 declaration.
7925
7926 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7927
7928 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7929 as an rtx.
7930 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7931
7932 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7933
7934 PR middle-end/48441
7935 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7936
7937 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7938
7939 * combine.c: Include obstack.h.
7940 (struct insn_link): Define.
7941 (uid_log_links): Adjust type.
7942 (FOR_EACH_LOG_LINK): New macro.
7943 (insn_link_obstack): Declare.
7944 (alloc_insn_link): Define.
7945 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7946 type of link variables.
7947 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7948 (try_combine, record_promoted_values, distribute_notes): Likewise.
7949 (distribute_links): Likewise. Tweak prototype.
7950 (clear_log_links): Delete.
7951 (adjust_for_new_dest): Call alloc_insn_link.
7952 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7953
7954 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7955
7956 * gcse.c (modify_mem_list): Convert to an array of VECs.
7957 (canon_modify_mem_list, compute_transp): Tweak formatting.
7958 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7959 (load_killed_in_block_p): Likewise.
7960 (record_last_mem_set_info): Likewise.
7961 (clear_modify_mem_tables): Likewise.
7962
7963 2011-04-05 Tom de Vries <tom@codesourcery.com>
7964
7965 PR middle-end/48461
7966 * function.c (emit_use_return_register_into_block): Only define if
7967 HAVE_return.
7968
7969 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7970
7971 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7972
7973 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7974
7975 * config/rx/rx-opts.h: New.
7976 * config/rx/rx.c (rx_cpu_type): Remove.
7977 (rx_handle_option): Don't assert that global structures are in
7978 use. Access variables via opts pointer. Defer most handling of
7979 OPT_mint_register_. Use error_at.
7980 (rx_option_override): Handle deferred OPT_mint_register_ here.
7981 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7982 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7983 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7984 (rx_cpu_types): New Enum and EnumValue entries.
7985 (mint-register=): Use Defer and use Var accordingly.
7986
7987 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7988
7989 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7990 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7991 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7992 Move these...
7993 (debug_free_queue, debug_nesting, symbol_queue_index):
7994 ...and these...
7995 * dbxout.c: ...to here. Make static.
7996
7997 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7998
7999 * gcse.c (modify_pair): Define. Define a VEC of it.
8000 (canon_modify_mem_list): Convert to an array of VECs.
8001 (free_insn_expr_list_list): Delete.
8002 (clear_modify_mem_tables): Call VEC_free instead.
8003 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8004 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8005 (canon_list_insert, compute_transp): Likewise.
8006
8007 2011-04-05 Tom de Vries <tom@codesourcery.com>
8008
8009 PR target/43920
8010 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8011 for size.
8012
8013 2011-04-05 Tom de Vries <tom@codesourcery.com>
8014
8015 PR target/43920
8016 * function.c (emit_use_return_register_into_block): New function.
8017 (thread_prologue_and_epilogue_insns): Use
8018 emit_use_return_register_into_block.
8019
8020 2011-04-05 Tom de Vries <tom@codesourcery.com>
8021
8022 PR target/43920
8023 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8024 insn.
8025
8026 2011-04-05 Tom de Vries <tom@codesourcery.com>
8027
8028 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8029
8030 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8031
8032 * config/arm/arm.md (define_constants for unspec): Replace with
8033 define_c_enum.
8034 (define_constants for unspecv): Replace with define_c_enum.
8035 * config/arm/neon.md (define_constants for unspec): Replace with
8036 define_c_enum.
8037
8038 2011-04-04 Richard Henderson <rth@redhat.com>
8039
8040 PR bootstrap/48400
8041 * dwarf2out.c (output_line_info): Always emit line info from
8042 at least one section.
8043 (dwarf2out_init): Create text_section_line_info here ...
8044 (set_cur_line_info_table): ... not here.
8045
8046 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8047
8048 PR target/48380
8049 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8050 not called.
8051
8052 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8053
8054 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8055
8056 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8057 (expr_equiv_p): Remove.
8058 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8059 (hash_scan_set): Update call to insert_set_in_table.
8060 (dump_hash_table): Dump <dest, src> pair.
8061 (lookup_set): Simplify. Lookup <dest, src> pair.
8062 (compute_transp): Remove, fold heavily simplified code into...
8063 (compute_local_properties): ...here. Expect COMP and TRANSP
8064 unconditionally.
8065 (find_avail_set): Take set directly from struct expr.
8066 (find_bypass-set): Likewise.
8067 (bypass_block): Likewise.
8068 (cprop_insn): Likewise. Remove redundant INSN_P test.
8069
8070 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8071 checks on form of COND from find_implicit_sets to here.
8072 (find_implicit_sets): Cleanup control flow. Split critical edges
8073 if it exposes implicit sets. Allocate/resize implicit_sets as
8074 necessary.
8075 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8076 changed something. Run df_analyze after find_implicit_sets if any
8077 edges were split. Do not allocate implicit_sets here.
8078
8079 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8080 (gcse_obstack): Renamed to cprop_obstack.
8081 (GNEW, GNEWVEC, GNEWVAR): Remove.
8082 (gmalloc): Remove.
8083 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8084 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8085 (gcse_alloc): Likewise, and rename to cprop_alloc.
8086 (alloc_gcse_men, free_gcse_mem): Remove.
8087 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8088 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8089 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8090
8091 * cprop.c (oprs_not_set_p): Remove.
8092 (mark_set, mark_clobber): Remove.
8093 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8094 (reg_not_set_p): New function.
8095 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8096 (cprop_insn): Likewise.
8097 (cprop_jump): Use FOR_EACH_EDGE.
8098
8099 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8100
8101 PR bootstrap/48403
8102 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8103 (rank_for_schedule): Use scheduled_insns vector instead of
8104 last_scheduled_insn.
8105 (ok_for_early_queue_removal): Likewise.
8106 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8107 we have a dbg_cnt.
8108 (choose_ready): Likewise.
8109 (commit_schedule): Use VEC_iterate.
8110 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8111 a dbg_cnt, use it and ensure the first insn is in the ready list.
8112 (haifa_sched_init): Allocate scheduled_insns.
8113 (sched_extend_ready_list): Don't allocate it; reserve space.
8114 (haifa_sched_finish): Free it.
8115
8116 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8117
8118 * optc-gen.awk: Always remove type from Variable entry before
8119 recording in var_seen.
8120
8121 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8122
8123 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8124 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8125 call to tidy_fallthru_edges.
8126
8127 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8128
8129 * doc/options.texi (ToLower): Document.
8130 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8131 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8132 * opts.h (cl_option): Add cl_tolower field.
8133 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8134 arguments with lowercase strings.
8135 * config/rx/rx.opt (mcpu=): Add ToLower.
8136 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8137 argument.
8138
8139 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8140
8141 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8142
8143 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8144
8145 * config/vax/vax.c: Include reload.h.
8146
8147 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8148
8149 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8150 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8151 (sparc_preferred_reload_class): New function.
8152
8153 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8154
8155 PR debug/48401
8156 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8157 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8158
8159 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8160
8161 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8162 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8163
8164 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8165
8166 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8167 (ASM_OUTPUT_ALIGNED_BSS): Define.
8168
8169 2011-04-03 Michael Matz <matz@suse.de>
8170
8171 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8172 and next_slot members.
8173 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8174 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8175 (lto_streamer_cache_append): Declare.
8176 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8177 unsigned index, remove offset parameter, ensure that we append
8178 or update existing entries.
8179 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8180 parameter, update next_slot for append.
8181 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8182 parameter.
8183 (lto_streamer_cache_insert_at): Likewise.
8184 (lto_streamer_cache_append): New function.
8185 (lto_streamer_cache_lookup): Use unsigned index.
8186 (lto_streamer_cache_get): Likewise.
8187 (lto_record_common_node): Don't test tree_node_can_be_shared.
8188 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8189 (lto_streamer_cache_delete): Don't free offsets member.
8190 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8191 (lto_output_string_with_length): Use lto_output_data_stream.
8192 (lto_output_tree_header): Remove ix parameter, don't write it.
8193 (lto_output_builtin_tree): Likewise.
8194 (lto_write_tree): Adjust callers to above, don't track and write
8195 offset, write unsigned index.
8196 (output_unreferenced_globals): Don't emit all global vars.
8197 (write_global_references): Use unsigned indices.
8198 (lto_output_decl_state_refs): Likewise.
8199 (write_symbol): Likewise.
8200 * lto-streamer-in.c (lto_input_chain): Move earlier.
8201 (input_function): Use unsigned index.
8202 (input_alias_pairs): Don't read and then ignore all global vars.
8203 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8204 don't pass it back, use lto_streamer_cache_append.
8205 (lto_register_var_decl_in_symtab): Use unsigned index.
8206 (lto_register_function_decl_in_symtab): Likewise.
8207 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8208 index.
8209 (lto_get_builtin_tree): Don't read index, use
8210 lto_streamer_cache_append.
8211 (lto_read_tree): Adjust call to lto_materialize_tree.
8212
8213 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8214 don't use function calls in arguments to MIN.
8215
8216 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8217 twice.
8218
8219 * gimple.c (gimple_type_leader_entry): Mark deletable.
8220
8221 2011-04-03 Alan Modra <amodra@gmail.com>
8222
8223 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8224
8225 2011-04-03 Michael Matz <matz@suse.de>
8226
8227 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8228 an integer.
8229 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8230
8231 2011-04-03 Michael Matz <matz@suse.de>
8232
8233 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8234 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8235 without function context.
8236 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8237 current_function_decl and cfun.
8238
8239 2011-04-03 Michael Matz <matz@suse.de>
8240
8241 * tree.c (decl_init_priority_insert): Don't create entry for
8242 default priority.
8243 (decl_fini_priority_insert): Ditto.
8244 (fields_compatible_p, find_compatible_field): Remove.
8245 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8246 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8247
8248 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8249
8250 * combine.c (try_combine): Remove useless local variable.
8251
8252 2011-04-03 Richard Guenther <rguenther@suse.de>
8253 Ira Rosen <ira.rosen@linaro.org>
8254
8255 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8256 non-variable offsets and compare the remaining bases of the two
8257 accesses instead of looking for exact same data-ref.
8258
8259 2011-04-02 Kai Tietz <ktietz@redhat.com>
8260
8261 PR target/48416
8262 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8263
8264 * i386.c (ix86_is_msabi_thiscall): New helper function.
8265 (ix86_is_type_thiscall): New helper function.
8266 (ix86_comp_type_attributes): Handle thiscall for method-functions
8267 special.
8268 (init_cumulative_args): Likewise.
8269 (find_drap_reg): Likewise.
8270 (ix86_static_chain): Likewise.
8271 (x86_this_parameter): Likewise.
8272 (x86_output_mi_thunk): Likewise.
8273
8274 2011-04-01 Olivier Hainque <hainque@adacore.com>
8275 Nicolas Setton <setton@adacore.com>
8276 Eric Botcazou <ebotcazou@adacore.com>
8277
8278 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8279 (add_gnat_descriptive_type_attribute): New function.
8280 (gen_array_type_die): Call it.
8281 (gen_enumeration_type_die): Likewise.
8282 (gen_struct_or_union_type_die): Likewise.
8283 (modified_type_die): Likewise.
8284 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8285 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8286 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8287
8288 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8289
8290 PR bootstrap/48148
8291 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8292 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8293
8294 Revert:
8295 2011-03-17 Richard Guenther <rguenther@suse.de>
8296
8297 PR bootstrap/48148
8298 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8299 origin for decls in other ltrans units.
8300 (input_varpool_node): Likewise.
8301
8302 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8303
8304 PR middle-end/48335
8305 * expr.c (expand_assignment): Handle all possibilities
8306 if TO_RTX is CONCAT.
8307 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8308 (store_split_bit_field): If SUBREG_REG (op0) or
8309 op0 itself has smaller mode than word, return it
8310 for offset 0 and const0_rtx for out-of-bounds stores.
8311 If word is const0_rtx, skip it.
8312
8313 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8314
8315 * config/h8300/h8300.c (print_operand_address): Rename to...
8316 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8317 Call h8300_print_operand and h8300_print_operand_address instead of
8318 print_operand and print_operand_address. Declare.
8319 (print_operand): Renake to...
8320 (h8300_print_operand): ...this. Make static. Adjust comments.
8321 Call h8300_print_operand instead of print_operand. Declare.
8322 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8323 (h8300_register_move_cost): Likewise.
8324 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8325 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8326 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8327 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8328 * config/h8300/h8300-protos.h (print_operand): Delete.
8329 (print_operand_address): Delete.
8330
8331 2011-04-01 Richard Henderson <rth@redhat.com>
8332
8333 PR 48400
8334 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8335 in strict mode before dwarf4. Re-order tests to early out
8336 before switching sections.
8337
8338 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8339
8340 * config/h8300/constraints.md: New file.
8341 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8342 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8343 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8344 * config/h8300/predicates.md (bit_operand): Likewise.
8345 (incdec_operand): Use satisfies_constraint_M and
8346 satisfies_constraint_O. Don't use C code block.
8347 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8348 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8349 (compute_mov_length): Use satisfies_constraint_G.
8350 (fix_bit_operand): Use satisfies_constraint_U.
8351 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8352 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8353 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8354 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8355 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8356 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8357 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8358 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8359 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8360 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8361 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8362 (EXTRA_MEMORY_CONSTRAINT): Delete.
8363
8364 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8365 Michael Meissner <meissner@linux.vnet.ibm.com>
8366
8367 PR target/48262
8368 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8369 operands, as per the specifications.
8370
8371 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8372 (vec_extract_evenv4sf): Ditto.
8373 (vec_extract_evenv8hi): Ditto.
8374 (vec_extract_evenv16qi): Ditto.
8375 (vec_extract_oddv4si): Ditto.
8376
8377 2011-03-31 Mark Wielaard <mjw@redhat.com>
8378
8379 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8380 high_pc attribute if the CU has no associated code. Only output
8381 DW_AT_entry_pc for CU if not generating strict dwarf and
8382 dwarf_version < 4.
8383
8384 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8385
8386 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8387 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8388 out of ...
8389 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8390 * final.c (final_start_function): Call the new function rather
8391 than using a NULL argument for dwarf2out_frame_debug.
8392
8393 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8394 that contains the prologue.
8395
8396 * haifa-sched.c (queue_insn): New arg REASON. All callers
8397 changed. Print it in debugging output.
8398
8399 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8400
8401 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8402 Split most of the code into...
8403 (begin_move_insn): ... here. New function.
8404 (ebb_sched_info): Add a pointer to it.
8405 * haifa-sched.c (scheduled_insns): New static variable.
8406 (sched_extend_ready_list): Allocate it.
8407 (schedule_block): Use it to record the order of scheduled insns.
8408 Perform RTL changes to move insns only after all scheduling
8409 decisions have been made.
8410 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8411 begin_move_insn field.
8412 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8413 * sched-int.h (struct haifa_sched_info): Remove second argument
8414 from begin_schedule_ready hook. Add new member begin_move_insn.
8415 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8416 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8417
8418 * haifa-sched.c (prune_ready_list): New function, broken out of
8419 schedule_block.
8420 (schedule_block): Use it.
8421
8422 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8423
8424 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8425
8426 2011-04-01 Kai Tietz <ktietz@redhat.com>
8427
8428 * config.gcc (*-*-mingw*): Allow as option the
8429 posix threading model.
8430 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8431 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8432 definition.
8433 (CPP_SPEC): Add pthread/no-pthread handling.
8434 (LIB_SPEC): Likewise.
8435 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8436 (LIB_SPEC): Likewise.
8437 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8438 flag to pass -pthread option for shared libgcc build.
8439 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8440 for shared libgcc build.
8441 * config/i386/t-mingw-pthread: New file.
8442 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8443 New define to enable use of library pthread by default.
8444 * config/i386/mingw.opt (pthread): New driver option.
8445 (no-pthread): New driver option.
8446 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8447 * config/i386/mingw-w64.opt: Likewise.
8448
8449 2011-04-01 Gary Funck <gary@intrepid.com>
8450
8451 * c-decl.c (grokdeclarator): Fix formatting.
8452
8453 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8454
8455 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8456 instead of n_operands.
8457 (set_storage_via_setmem): Likewise.
8458 * optabs.c (maybe_gen_insn): Likewise.
8459 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8460 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8461 (mips_expand_builtin_direct): Likewise.
8462 * config/spu/spu.c (expand_builtin_args): Likewise.
8463
8464 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8465
8466 * recog.h (insn_data_d): Add n_generator_args.
8467 * genoutput.c (data): Likewise.
8468 (output_insn_data): Print it.
8469 (max_opno, num_dups): Delete.
8470 (scan_operands): Just fill in "d->operand[...]".
8471 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8472
8473 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8474
8475 * gensupport.h (pattern_stats): New structure.
8476 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8477 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8478 (max_operand_1, max_operand_vec): Delete.
8479 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8480
8481 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8482
8483 * emit-rtl.c (emit_pattern_after_setloc): New function.
8484 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8485 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8486 (emit_pattern_after): New function.
8487 (emit_insn_after, emit_jump_insn_after): Call it.
8488 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8489 (emit_pattern_before_setloc): New function.
8490 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8491 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8492 Likewise.
8493 (emit_pattern_before): New function.
8494 (emit_insn_before, emit_jump_insn_before): Call it.
8495 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8496
8497 2011-03-31 Richard Henderson <rth@redhat.com>
8498
8499 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8500 (dw_separate_line_info_entry): Remove.
8501 (enum dw_line_info_opcode): New.
8502 (dw_line_info_entry): Use it.
8503 (dw_line_info_table, dw_line_info_table_p): New.
8504 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8505 (line_info_table, line_info_label_num): Remove.
8506 (line_info_table_in_use): Remove.
8507 (separate_line_info_table): Remove.
8508 (separate_line_info_table_allocated): Remove.
8509 (separate_line_info_table_in_use): Remove.
8510 (LINE_INFO_TABLE_INCREMENT): Remove.
8511 (line_info_label_num): New.
8512 (cur_line_info_table): New.
8513 (text_section_line_info, cold_text_section_line_info): New.
8514 (separate_line_info): New.
8515 (SEPARATE_LINE_CODE_LABEL): Remove.
8516 (print_dwarf_line_table): Remove.
8517 (debug_dwarf): Don't dump it.
8518 (output_one_line_info_table): New.
8519 (output_line_info): Use it.
8520 (new_line_info_table): New.
8521 (set_cur_line_info_table): New.
8522 (dwarf2out_switch_text_section): Use it.
8523 (dwarf2out_begin_function): Likewise.
8524 (push_dw_line_info_entry): New.
8525 (dwarf2out_source_line): Rewrite for new line info tables.
8526 (dwarf2out_init): Remove dead initailizations.
8527
8528 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8529
8530 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8531 various flags.
8532 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8533 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8534 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8535 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8536 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8537 * opt-functions.awk (flag_init, switch_bit_fields): New.
8538 (switch_flags): Don't handle flags moved to bit-fields. Don't
8539 generate CL_MISSING_OK or CL_SAVE.
8540 * optc-gen.awk: Update to generate bit-field output as well as
8541 flags field.
8542 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8543 bit-field instead of CL_REJECT_DRIVER flag.
8544 * opts-common.c (generate_canonical_option,
8545 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8546 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8547 instead of CL_REJECT_NEGATIVE flag.
8548 * toplev.c (print_switch_values): Use cl_report bit-field instead
8549 of CL_REPORT flag.
8550
8551 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8552
8553 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8554 a zero minimum index only if it is redundant.
8555
8556 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8557
8558 PR rtl-optimization/48381
8559 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8560 instead of ira_class_hard_reg_index for calculating conflicting
8561 hard registers.
8562
8563 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8564
8565 * cprop.c: Clean up hash table building.
8566 (reg_avail_info): Remove.
8567 (oprs_available_p): Remove.
8568 (record_last_reg_set_info): Remove.
8569 (record_last_set_info): Remove.
8570 (reg_available_p): New function.
8571 (gcse_constant_p): Do not treat unfolded conditions as constants.
8572 (make_set_regs_unavailable): New function.
8573 (hash_scan_set): Simplify with new reg_available_p.
8574 (compute_hash_table_work): Traverse insns stream only once.
8575 Do not compute reg_avail_info. Traverse insns in reverse order.
8576 Record implicit sets after recording explicit sets from the block.
8577
8578 2011-03-31 Michael Matz <matz@suse.de>
8579
8580 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8581
8582 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8583
8584 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8585 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8586 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8587 (h8300_mode_dependent_address_p): New function.
8588 (h8300_get_index): Make static.
8589
8590 2011-03-31 Jeff Law <law@redhat.com>
8591
8592 * reload1.c (elimination_effects): Fix typo in recent change.
8593
8594 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8595 typo potentially leading to null pointer dereference.
8596
8597 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8598 (setup_save_areas): Corresponding changes to avoid useless
8599 assignments.
8600
8601 * jump.c (reversed_comparison_code_parts): Avoid successive return
8602 statements when REVERSE_CONDITION is defined.
8603
8604 * expr.c (expand_assignment): Avoid useless assignments.
8605 (expand_expr_real_1): Likewise.
8606 (expand_expr_real_2): Avoid useless statements.
8607
8608 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8609
8610 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8611
8612 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8613 statements.
8614
8615 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8616
8617 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8618
8619 PR target/47109
8620 * doc/tm.texi.in (TARGET_VERSION): Remove.
8621 * doc/tm.texi: Regenerate.
8622 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8623 * collect2.c (main): Don't use TARGET_VERSION.
8624 * mips-tdump.c (main): Don't use TARGET_VERSION.
8625 * mips-tfile.c (main): Don't use TARGET_VERSION.
8626 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8627 * config/rs6000/vxworksae.h: Remove.
8628 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8629 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8630 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8631 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8632 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8633 * config/arm/arm.h (TARGET_VERSION): Remove.
8634 * config/arm/coff.h (TARGET_VERSION): Remove.
8635 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8636 * config/arm/elf.h (TARGET_VERSION): Remove.
8637 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8638 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8639 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8640 * config/arm/pe.h (TARGET_VERSION): Remove.
8641 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8642 * config/arm/semi.h (TARGET_VERSION): Remove.
8643 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8644 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8645 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8646 * config/avr/avr.h (TARGET_VERSION): Remove.
8647 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8648 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8649 * config/frv/frv.h (TARGET_VERSION): Remove.
8650 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8651 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8652 * config/i386/darwin.h (TARGET_VERSION): Remove.
8653 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8654 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8655 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8656 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8657 * config/i386/gnu.h (TARGET_VERSION): Remove.
8658 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8659 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8660 * config/i386/linux.h (TARGET_VERSION): Remove.
8661 * config/i386/linux64.h (TARGET_VERSION): Remove.
8662 * config/i386/lynx.h (TARGET_VERSION): Remove.
8663 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8664 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8665 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8666 * config/i386/netware.h (TARGET_VERSION): Remove.
8667 * config/i386/nto.h (TARGET_VERSION): Remove.
8668 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8669 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8670 * config/ia64/elf.h (TARGET_VERSION): Remove.
8671 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8672 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8673 * config/ia64/linux.h (TARGET_VERSION): Remove.
8674 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8675 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8676 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8677 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8678 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8679 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8680 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8681 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8682 * config/m68k/linux.h (TARGET_VERSION): Remove.
8683 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8684 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8685 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8686 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8687 * config/mep/mep.h (TARGET_VERSION): Remove.
8688 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8689 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8690 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8691 * config/mips/linux.h (TARGET_VERSION): Remove.
8692 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8693 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8694 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8695 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8696 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8697 * config/pa/pa.h (TARGET_VERSION): Remove.
8698 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8699 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8700 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8701 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8702 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8703 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8704 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8705 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8706 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8707 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8708 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8709 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8710 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8711 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8712 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8713 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8714 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8715 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8716 * config/s390/linux.h (TARGET_VERSION): Remove.
8717 * config/s390/s390.h (TARGET_VERSION): Remove.
8718 * config/s390/tpf.h (TARGET_VERSION): Remove.
8719 * config/score/score.h (TARGET_VERSION): Remove.
8720 * config/sh/linux.h (TARGET_VERSION): Remove.
8721 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8722 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8723 * config/sh/sh.h (TARGET_VERSION): Remove.
8724 * config/sh/sh64.h (TARGET_VERSION): Remove.
8725 * config/sh/superh.h (TARGET_VERSION): Remove.
8726 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8727 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8728 * config/sparc/linux.h (TARGET_VERSION): Remove.
8729 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8730 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8731 TARGET_NAME32, TARGET_NAME): Remove.
8732 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8733 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8734 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8735 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8736 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8737 * config/spu/spu.h (TARGET_VERSION): Remove.
8738 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8739 * config/v850/v850.h (TARGET_VERSION): Remove.
8740 * config/vax/linux.h (TARGET_VERSION): Remove.
8741 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8742 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8743 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8744
8745 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8746
8747 PR target/48142
8748 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8749 frame-related from frame-unrelated adjustments to the stack pointer.
8750
8751 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8752
8753 * common.opt (fdebug-types-section): Move earlier.
8754 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8755
8756 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8757
8758 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8759 var.
8760
8761 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8762
8763 * tree.h (CASE_CHAIN): Define.
8764 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8765 (gimple_redirect_edge_and_branch): Likewise.
8766
8767 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8768
8769 PR middle-end/48367
8770 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8771 calculation.
8772
8773 2011-03-30 Jeff Law <law@redhat.com>
8774
8775 * PR bootstrap/48371
8776 * reload1.c (reload): Fix botch in last change.
8777
8778 * reload.h (struct reload): Fix typo introduced in last change.
8779
8780 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8781
8782 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8783 Undocumented. Remove help text.
8784 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8785 -mhard-float.
8786
8787 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8788
8789 * doc/options.texi (NegativeAlias): Document.
8790 (Alias): Mention NegativeAlias.
8791 * opt-functions.awk: Handle NegativeAlias.
8792 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8793 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8794 * opts.h (CL_NEGATIVE_ALIAS): Define.
8795 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8796 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8797 OPT_mspe_.
8798 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8799 Alias entries.
8800 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8801 mno-spe and mno-isel instead of mspe=no and -misel=no.
8802
8803 2011-03-29 Mark Wielaard <mjw@redhat.com>
8804
8805 * common.opt (fdebug-types-section): New flag.
8806 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8807 * dwarf2out.c (use_debug_types): New define.
8808 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8809 (print_die): Guard output of type unit signatures using
8810 use_debug_types.
8811 (build_abbrev_table): Replace assert of dwarf_version >= 4
8812 with assert on use_debug_types.
8813 (size_of_die): Likewise.
8814 (unmark_dies): Likewise.
8815 (value_format): Decide AT_ref_external form on use_debug_types.
8816 (output_die): Replace dwarf_version version check guard with
8817 use_debug_types where appropriate.
8818 (modified_type_die): Likewise.
8819 (gen_reference_type_die): Likewise.
8820 (dwarf2out_start_source_file): Likewise.
8821 (dwarf2out_end_source_file): Likewise.
8822 (prune_unused_types_walk_attribs): Likewise.
8823 (dwarf2out_finish): Likewise.
8824
8825 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8826
8827 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8828
8829 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8830
8831 PR rtl-optimization/48332
8832 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8833 mode of input operand N and modeN to its actual mode.
8834
8835 2011-03-30 Jeff Law <law@redhat.com>
8836
8837 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8838 define accessor macro.
8839 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8840 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8841 (reg_equiv_init): Likewise.
8842 (reg_equivs_size): New variable.
8843 (reg_equiv_init_size): Remove.
8844 (allocate_initial_values): Move prototype to here from....
8845 * integrate.h (allocate_initial_values): Remove prototype.
8846 * integrate.c: Include reload.h.
8847 (allocate_initial_values): Corresponding changes.
8848 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8849 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8850 (update_equiv_regs): Corresponding changes.
8851 (ira): Corresponding changes.
8852 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8853 (push_secondary_reload): Corresponding changes.
8854 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8855 (make_memloc, find_reloads_address): Corresponding changes.
8856 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8857 (find_reloads_address_1): Corresponding changes.
8858 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8859 (refers_to_regno_for_reload_p): Corresponding changes.
8860 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8861 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8862 * reload1.c: Include ggc.h.
8863 (grow_reg_equivs): New function.
8864 (replace_pseudos_in, reload): Corresponding changes.
8865 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8866 (eliminate_regs_1, elimination_effects): Corresponding changes.
8867 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8868 (delete_output_reload): Likewise.
8869 * caller-save.c (mark_referenced_regs): Corresponding changes.
8870 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8871 * frv/predicates.md (frv_load_operand): Corresponding changes.
8872 * microblaze/microblaze.c (double_memory_operand): Corresponding
8873 changes.
8874 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8875 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8876 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8877 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8878 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8879 changes.
8880 * pa/pa.c (emit_move_sequence): Corresponding changes.
8881 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8882
8883 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8884
8885 PR target/47551
8886 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8887 structure modes. Don't check neon_vector_mem_operand for
8888 vector or structure modes.
8889
8890 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8891 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8892
8893 PR target/43590
8894 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8895 operand 1 and reshuffle the operands to match.
8896 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8897
8898 2011-03-30 Christian Schüler <cschueler@gmx.de>
8899
8900 PR driver/48208
8901 * config/c.opt (F): Added 'Driver' to -F option.
8902
8903 PR driver/48260
8904 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8905 handler function.
8906 * config/darwin.opt: Added '-arch' option.
8907
8908 2011-03-30 Nick Clifton <nickc@redhat.com>
8909
8910 * config/rx/rx.md: Add peepholes and patterns to combine
8911 extending loads and simple arithmetic instructions.
8912 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8913 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8914 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8915 modes to use pre-decrement and post-increment addressing.
8916 (rx_is_restricted_memory_address): Add range checking of REG+INT
8917 addresses.
8918 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8919 (rx_memory_move_cost): Adjust cost of stores.
8920 (rx_adjust_insn_length): New function.
8921
8922 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8923
8924 PR c/48305
8925 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8926 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8927 matching arg00/arg01 types.
8928
8929 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8930
8931 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8932 last_location to UNKNOWN_LOCATION.
8933
8934 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8935
8936 PR target/48349
8937 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8938 FLOAT_SSE_REGS.
8939
8940 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8941 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8942
8943 PR bootstrap/48337
8944 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8945 Init(PROCESSOR_V7).
8946 (sparc_cpu): Likewise.
8947 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8948 PROCESSOR_V7.
8949
8950 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8951
8952 PR target/48336
8953 PR middle-end/48342
8954 PR rtl-optimization/48345
8955 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8956 hard regs for given mode from profitable regs when doing secondary
8957 allocation.
8958
8959 2011-03-29 Jeff Law <law@redhat.com>
8960
8961 PR bootstrap/48327
8962 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8963 do_not_duplicate field.
8964 (lookup_redirection_data): Corresponding changes.
8965 (create_duplicates): Always create a template block.
8966 (redirect_edges): Remove code which reused the original block
8967 when it was going to become unreachable code.
8968 (thread_block): Don't set do_not_duplicate field.
8969
8970 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8971
8972 * lto-opts.c (register_user_option_p, lto_register_user_option):
8973 Make type argument unsigned.
8974 * lto-streamer.h (lto_register_user_option): Make type argument
8975 unsigned.
8976 * opth-gen.awk: Make CL_* macros unsigned.
8977 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8978 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8979 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8980 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8981 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8982 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8983 (find_opt): Make lang_mask argument unsigned.
8984
8985 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8986
8987 PR rtl-optimization/48331
8988 PR rtl-optimization/48334
8989 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8990 for any used algorithm.
8991
8992 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8993
8994 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8995 to parent_max.
8996
8997 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8998
8999 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9000 (alpha_option_override): Don't set alpha_sr_alias_set.
9001 (emit_frame_store_1): Use gen_frame_mem rather than calling
9002 set_mem_alias_set.
9003 (alpha_expand_epilogue): Ditto.
9004
9005 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9006
9007 PR tree-optimization/48290
9008 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9009 vectorization, check that relevant phis in the basic block after
9010 the inner loop are really inner loop's exit phis.
9011
9012 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9013
9014 PR debug/48190
9015 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9016 (cached_dw_loc_list_def): New structure.
9017 (cached_dw_loc_list): New typedef.
9018 (cached_dw_loc_list_table): New variable.
9019 (cached_dw_loc_list_table_hash): New function.
9020 (cached_dw_loc_list_table_eq): Likewise.
9021 (add_location_or_const_value_attribute): Take a bool cache_p.
9022 Cache the list when the parameter is true.
9023 (gen_formal_parameter_die): Update caller.
9024 (gen_variable_die): Likewise.
9025 (dwarf2out_finish): Likewise.
9026 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9027 while generating debug info for the decl.
9028 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9029 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9030 (resolve_addr): Cache the result of resolving a chain of
9031 location lists.
9032
9033 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9034
9035 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9036 conflict object hard regset nodes have intersecting hard reg sets.
9037
9038 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9039 after regstat_init_n_sets_and_refs.
9040
9041 * ira.c: Add more comments at the top.
9042 (setup_stack_reg_pressure_class, setup_pressure_classes):
9043 Add comments how we compute the register pressure classes.
9044 (setup_allocno_and_important_classes): Add more comments.
9045 (setup_class_translate_array, reorder_important_classes)
9046 (setup_reg_class_relations): Add comments.
9047
9048 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9049 start of the file.
9050
9051 * ira-color.c: Add 2011 to the Copyright line.
9052 (assign_hard_reg): Add more comments.
9053 (improve_allocation): Ditto.
9054
9055 * ira-costs.c: Add 2011 to the Copyright line.
9056 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9057 comments.
9058 (setup_regno_cost_classes_by_mode): Ditto.
9059
9060 Initial patches from ira-improv branch:
9061
9062 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9063
9064 * ira-build.c (ira_create_object): Remove initialization of
9065 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9066 (ira_create_allocno): Remove initialization of
9067 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9068 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9069 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9070 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9071 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9072 Initialize ALLOCNO_ADD_DATA.
9073 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9074 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9075 ALLOCNO_REG.
9076 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9077 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9078
9079 * ira.c (ira_reallocate): Remove.
9080 (setup_pressure_classes): Call
9081 ira_init_register_move_cost_if_necessary. Use
9082 ira_register_move_cost instead of ira_get_register_move_cost.
9083 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9084 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9085
9086 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9087 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9088 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9089 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9090 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9091 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9092 Fix formatting.
9093 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9094 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9095 (struct allocno_color_data): New.
9096 (allocno_color_data_t): New typedef.
9097 (allocno_color_data): New definition.
9098 (ALLOCNO_COLOR_DATA): New macro.
9099 (struct object_color_data): New.
9100 (object_color_data_t): New typedef.
9101 (object_color_data): New definition.
9102 (OBJECT_COLOR_DATA): New macro.
9103 (update_copy_costs, calculate_allocno_spill_cost): Call
9104 ira_init_register_move_cost_if_necessary. Use
9105 ira_register_move_cost instead of ira_get_register_move_cost.
9106 (move_spill_restore, update_curr_costs): Ditto.
9107 (allocno_spill_priority): Make it inline.
9108 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9109 (struct coalesce_data, coalesce_data_t): New.
9110 (allocno_coalesce_data): New definition.
9111 (ALLOCNO_COALESCE_DATA): New macro.
9112 (merge_allocnos, coalesced_allocno_conflict_p): Use
9113 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9114 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9115 (coalesce_allocnos): Ditto.
9116 (setup_coalesced_allocno_costs_and_nums): Ditto.
9117 (collect_spilled_coalesced_allocnos): Ditto.
9118 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9119 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9120 (coalesce_spill_slots): Ditto.
9121 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9122 free allocno_coalesce_data.
9123
9124 * ira-conflicts.c: Fix formatting.
9125 (process_regs_for_copy): Call
9126 ira_init_register_move_cost_if_necessary. Use
9127 ira_register_move_cost instead of ira_get_register_move_cost.
9128 (build_object_conflicts): Optimize.
9129
9130 * ira-costs.c (record_reg_classes): Optimize. Call
9131 ira_init_register_move_cost_if_necessary. Use
9132 ira_register_move_cost, ira_may_move_in_cost, and
9133 ira_may_move_out_cost instead of ira_get_register_move_cost and
9134 ira_get_may_move_cost.
9135 (record_address_regs): Ditto.
9136 (scan_one_insn): Optimize.
9137 (find_costs_and_classes): Optimize.
9138 (process_bb_node_for_hard_reg_moves): Call
9139 ira_init_register_move_cost_if_necessary. Use
9140 ira_register_move_cost instead of ira_get_register_move_cost.
9141
9142 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9143 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9144 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9145 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9146 definitions.
9147 (ira_initiate_emit_data, ira_finish_emit_data)
9148 (create_new_allocno): New functions.
9149 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9150 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9151 Use ira_register_move_cost instead of ira_get_register_move_cost.
9152
9153 * ira-int.h: Fix some comments.
9154 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9155 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9156 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9157 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9158 add_data.
9159 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9160 bitfield after mode. Make hard_regno a short int. Make
9161 hard_regno short. Remove first_coalesced_allocno and
9162 next_coalesced_allocno. Move mem_optimized_dest_p,
9163 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9164 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9165 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9166 temp, colorable_p. Add new member add_data.
9167 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9168 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9169 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9170 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9171 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9172 (ALLOCNO_ADD_DATA): New macro.
9173 (ira_emit_data_t): New typedef.
9174 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9175 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9176 from struct ira_allocno.
9177 (ALLOCNO_EMIT_DATA): New macro.
9178 (ira_allocno_emit_data, allocno_emit_reg): New.
9179 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9180 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9181 (OBJECT_ADD_DATA): New macro.
9182 (ira_reallocate): Remove.
9183 (ira_initiate_emit_data, ira_finish_emit_data): New.
9184 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9185 (ira_init_register_move_cost_if_necessary): New.
9186 (ira_object_conflict_iter_next): Merge into
9187 ira_object_conflict_iter_cond.
9188 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9189
9190 * ira-live.c (process_single_reg_class_operands): Call
9191 ira_init_register_move_cost_if_necessary. Use
9192 ira_register_move_cost instead of ira_get_register_move_cost.
9193
9194 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9195
9196 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9197
9198 * ira-costs.c: Fix formatting.
9199 (cost_classes, cost_classes_num): Remove.
9200 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9201 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9202 (cost_classes_del, cost_classes_htab): New.
9203 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9204 (initiate_regno_cost_classes, setup_cost_classes): New.
9205 (setup_regno_cost_classes_by_aclass): New.
9206 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9207 (record_reg_classes): Use regno_cost_classes instead of
9208 cost_classes. Move checking opposite operand up.
9209 (record_address_regs): Use regno_cost_classes
9210 instead of cost_classes.
9211 (scan_one_insn): Ditto. Use always general register.
9212 (print_allocno_costs): Use regno_cost_classes instead of
9213 cost_classes.
9214 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9215 (find_costs_and_classes): Set up cost classes for each registers.
9216 Use also their mode for this. Use regno_cost_classes instead of
9217 cost_classes.
9218 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9219 cost_classes.
9220 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9221 (ira_costs, ira_set_pseudo_classes): Call
9222 initiate_regno_cost_classes and finish_regno_cost_classes.
9223
9224 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9225
9226 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9227
9228 * target.def (ira_cover_classes): Remove.
9229
9230 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9231
9232 * doc/tm.texi.in: Ditto.
9233
9234 * ira-conflicts.c: Remove mentioning cover classes from the file.
9235 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9236 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9237
9238 * targhooks.c (default_ira_cover_classes): Remove.
9239
9240 * targhooks.h (default_ira_cover_classes): Ditto.
9241
9242 * haifa-sched.c: Remove mentioning cover classes from the file.
9243 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9244 ira_pressure_classes and ira_pressure_classes_num instead of
9245 ira_reg_class_cover_size and ira_reg_class_cover. Use
9246 sched_regno_pressure_class instead of sched_regno_cover_class.
9247 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9248 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9249
9250 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9251 classes from the file.
9252 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9253 (struct object_hard_regs, struct object_hard_regs_node): New.
9254 (struct ira_object): New members profitable_hard_regs,
9255 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9256 (struct ira_allocno): Rename cover_class to aclass. Rename
9257 cover_class_cost and updated_cover_class_cost to class_cost and
9258 updated_class_cost. Remove splay_removed_p and
9259 left_conflict_size. Add new members colorable_p.
9260 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9261 (ALLOCNO_COLORABLE_P): New macro.
9262 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9263 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9264 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9265 (OBJECT_...): Rename parameter C to O.
9266 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9267 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9268 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9269 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9270 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9271 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9272 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9273 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9274 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9275 x_ira_reg_class_subunion.
9276 (ira_max_memory_move_cost, ira_max_register_move_cost)
9277 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9278 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9279 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9280 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9281 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9282 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9283 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9284 (ira_tune_allocno_costs_and_cover_classes): Rename to
9285 ira_tune_allocno_costs.
9286 (ira_debug_hard_regs_forest): New.
9287 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9288 (ira_object_conflict_iter_next): Fix comments.
9289 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9290 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9291 cover_class to aclass.
9292 (ira_allocate_and_accumulate_costs): Ditto.
9293 (ira_allocate_and_set_or_copy_costs): Ditto.
9294
9295 * opts.c (decode_options): Remove ira_cover_class check.
9296
9297 * ira-color.c: Remove mentioning cover classes from the file. Use
9298 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9299 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9300 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9301 (splay-tree.h): Remove include.
9302 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9303 before copy_freq_compare_func.
9304 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9305 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9306 New definitions.
9307 (hard_regs_roots, hard_regs_node_vec): Ditto.
9308 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9309 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9310 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9311 (create_new_object_hard_regs_node): Ditto.
9312 (add_new_object_hard_regs_node_to_forest): Ditto.
9313 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9314 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9315 Ditto.
9316 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9317 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9318 (remove_unused_object_hard_regs_nodes): Ditto.
9319 (enumerate_object_hard_regs_nodes): Ditto.
9320 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9321 (object_hard_regs_subnode_t): Ditto.
9322 (struct object_hard_regs_subnode): Ditto.
9323 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9324 (setup_object_hard_regs_subnode_index): Ditto.
9325 (get_object_hard_regs_subnodes_num): Ditto.
9326 (form_object_hard_regs_nodes_forest): Ditto.
9327 (finish_object_hard_regs_nodes_tree): Ditto.
9328 (finish_object_hard_regs_nodes_forest): Ditto.
9329 (allocnos_have_intersected_live_ranges_p): Rename to
9330 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9331 (pseudos_have_intersected_live_ranges_p): Rename to
9332 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9333 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9334 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9335 (update_copy_costs): Remove assert. Skip cost update if the hard
9336 reg does not belong the class.
9337 (assign_hard_reg): Process only profitable hard regs.
9338 (uncolorable_allocnos_num): Make it scalar.
9339 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9340 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9341 and ira_reg_class_max_nregs.
9342 (bucket_allocno_compare_func): Check frequency first.
9343 (sort_bucket): Add compare function as a parameter.
9344 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9345 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9346 (push_allocno_to_stack): Rewrite for checking new allocno
9347 colorability.
9348 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9349 (push_only_colorable): Pass new parameter to sort_bucket.
9350 (push_allocno_to_spill): Remove.
9351 (allocno_spill_priority_compare): Make it inline and rewrite.
9352 (splay_tree_allocate, splay_tree_free): Remove.
9353 (allocno_spill_sort_compare): New function.
9354 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9355 build and use splay tree. Choose first allocno in uncolorable
9356 allocno bucket to spill. Remove setting spill cost.
9357 (all_conflicting_hard_regs): Remove.
9358 (setup_allocno_available_regs_num): Check only profitable hard
9359 regs. Print info about hard regs nodes.
9360 (setup_allocno_left_conflicts_size): Remove.
9361 (put_allocno_into_bucket): Don't call
9362 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9363 (improve_allocation): New.
9364 (color_allocnos): Call setup_profitable_hard_regs,
9365 form_object_hard_regs_nodes_forest, improve_allocation,
9366 finish_object_hard_regs_nodes_forest. Setup spill cost.
9367 (print_loop_title): Use pressure classes.
9368 (color_allocnso): Ditto.
9369 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9370 and allocnos_for_spilling.
9371 (ira_sort_regnos_for_alter_reg): Don't setup members
9372 {first,next}_coalesced_allocno.
9373 (color): Remove allocating and freeing removed_splay_allocno_vec.
9374 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9375 prohibited_class_mode_regs.
9376
9377 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9378 formatting.
9379 (update_allocno_pressure_excess_length): Use pressure classes.
9380 (inc_register_pressure, dec_register_pressure): Check for pressure
9381 class.
9382 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9383 pressure class. Use ira_reg_class_nregs instead of
9384 ira_reg_class_max_nregs.
9385 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9386 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9387 (single_reg_class): Use ira_reg_class_nregs instead of
9388 ira_reg_class_max_nregs.
9389 (process_bb_node_lives): Use pressure classes.
9390
9391 * ira-emit.c: Remove mentioning cover classes from the file. Use
9392 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9393 (change_loop): Use pressure classes.
9394 (modify_move_list): Call ira_set_allocno_class instead of
9395 ira_set_allocno_cover_class.
9396
9397 * ira-build.c: Remove mentioning cover classes from the file. Use
9398 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9399 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9400 ALLOCNO_UPDATED_CLASS_COST instead of
9401 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9402 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9403 (ira_create_allocno): Remove initialization of
9404 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9405 ALLOCNO_COLORABLE_P.
9406 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9407 Update conflict regs for the objects.
9408 (create_cap_allocno): Remove assert. Don't propagate
9409 ALLOCNO_AVAILABLE_REGS_NUM.
9410 (ira_free_allocno_costs): New function.
9411 (finish_allocno): Change a part of code into call of
9412 ira_free_allocno_costs.
9413 (low_pressure_loop_node_p): Use pressure classes.
9414 (object_range_compare_func): Don't compare classes.
9415 (setup_min_max_conflict_allocno_ids): Ditto.
9416
9417 * loop-invariant.c: Remove mentioning cover classes from the file.
9418 Use ira_pressure_classes and ira_pressure_classes_num instead of
9419 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9420 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9421 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9422 Use reg_allocno_class instead of reg_cover_class.
9423 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9424 STACK_REG_COVER_CLASS.
9425 (get_regno_cover_class): Rename to get_regno_pressure_class.
9426 (move_loop_invariants): Initialize and finalize regstat.
9427
9428 * ira.c: Remove mentioning cover classes from the file. Add
9429 comments about coloring without cover classes. Use ALLOCNO_CLASS
9430 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9431 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9432 setup_class_subset_and_memory_move_costs.
9433 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9434 (setup_cover_and_important_classes): Rename to
9435 setup_allocno_and_important_classes.
9436 (setup_class_translate_array): New.
9437 (setup_class_translate): Call it for allocno and pressure classes.
9438 (cover_class_order): Rename to allocno_class_order.
9439 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9440 of ira_class_translate.
9441 (reorder_important_classes): Set up ira_important_class_nums.
9442 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9443 (print_class_cover): Rename to print_classes. Add parameter.
9444 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9445 Print pressure classes too.
9446 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9447 setup_reg_subclasses.
9448 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9449 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9450 (setup_prohibited_class_mode_regs): Use
9451 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9452 (clarify_prohibited_class_mode_regs): New function.
9453 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9454 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9455 (ira_init_once): Initialize them.
9456 (free_register_move_costs): Process them.
9457 (ira_init): Move calls of find_reg_classes and
9458 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9459 Call clarify_prohibited_class_mode_regs.
9460 (ira_no_alloc_reg): Remove.
9461 (too_high_register_pressure_p): Use pressure classes.
9462
9463 * sched-deps.c: Remove mentioning cover classes from the file.
9464 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9465 ira_pressure_classes and ira_pressure_classes_num instead of
9466 ira_reg_class_cover_size and ira_reg_class_cover.
9467 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9468 sched_regno_pressure_class instead of sched_regno_cover_class.
9469 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9470 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9471
9472 * ira.h: Add 2010 to Copyright.
9473 (ira_no_alloc_reg): Remove external.
9474 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9475 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9476 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9477 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9478 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9479 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9480 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9481 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9482 x_ira_no_alloc_regs.
9483 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9484 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9485 ira_allocno_classes_num and ira_allocno_classes.
9486 (ira_class_translate): Rename to ira_allocno_class_translate.
9487 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9488 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9489 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9490 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9491 (ira_no_alloc_regs): New.
9492
9493 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9494 classes from the file. Use ALLOCNO_CLASS instead of
9495 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9496 ALLOCNO_COVER_CLASS_COST.
9497 (regno_cover_class): Rename to regno_aclass.
9498 (record_reg_classes): Use ira_reg_class_subunion instead of
9499 ira_reg_class_union.
9500 (record_address_regs): Check overflow.
9501 (scan_one_insn): Ditto.
9502 (print_allocno_costs): Print total mem cost fore regional allocation.
9503 (print_pseudo_costs): Use REG_N_REFS.
9504 (find_costs_and_classes): Use classes intersected with them on the
9505 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9506 ira_reg_class_union. Use ira_allocno_class_translate and
9507 regno_aclass instead of ira_class_translate and regno_cover_class.
9508 Modify code for finding regno_aclass. Setup preferred classes for
9509 the next pass.
9510 (setup_allocno_cover_class_and_costs): Rename to
9511 setup_allocno_class_and_costs. Use regno_aclass instead of
9512 regno_cover_class. Use ira_set_allocno_class instead of
9513 ira_set_allocno_cover_class.
9514 (init_costs, finish_costs): Use regno_aclass instead of
9515 regno_cover_class.
9516 (ira_costs): Use setup_allocno_class_and_costs instead of
9517 setup_allocno_cover_class_and_costs.
9518 (ira_tune_allocno_costs_and_cover_classes): Rename to
9519 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9520 by processing objects. Use ira_reg_class_max_nregs instead of
9521 ira_reg_class_nregs.
9522
9523 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9524
9525 * sched-int.h: Remove mentioning cover classes from the file.
9526 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9527
9528 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9529 classes from the file.
9530 (struct reg_pref): Rename coverclass into allocnoclass.
9531 (reg_cover_class): Rename to reg_allocno_class.
9532
9533 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9534
9535 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9536
9537 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9538
9539 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9540
9541 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9542
9543 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9544
9545 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9546
9547 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9548
9549 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9550
9551 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9552
9553 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9554 (i386_ira_cover_classes): Ditto.
9555
9556 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9557
9558 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9559
9560 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9561
9562 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9563
9564 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9565
9566 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9567
9568 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9569 (mips_ira_cover_classes): Ditto.
9570
9571 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9572
9573 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9574
9575 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9576
9577 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9578
9579 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9580
9581 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9582 (IRA_COVER_CLASSES_VSX): Ditto.
9583
9584 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9585 (rs6000_ira_cover_classes): Ditto.
9586
9587 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9588
9589 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9590
9591 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9592
9593 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9594
9595 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9596
9597 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9598
9599 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9600
9601 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9602
9603 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9604
9605 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9606
9607 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9608
9609 PR debug/48253
9610 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9611 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9612 dw_fde_unlikely_section_end_label, cold_in_std_section,
9613 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9614 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9615 fields.
9616 (output_fde): Use dw_fde_second_{begin,end} if second is
9617 true, otherwise dw_fde_{begin,end}.
9618 (output_call_frame_info): Test dw_fde_second_begin != NULL
9619 instead of dw_fde_switched_sections.
9620 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9621 fields, initialize new fields. Initialize in_std_section
9622 unconditionally from the first partition.
9623 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9624 dw_fde_second_begin is non-NULL.
9625 (dwarf2out_switch_text_section): Stop initializing removed
9626 dw_fde_struct fields, initialize new fields, initialize
9627 also dw_fde_end here. Set dw_fde_switch_cfi even when
9628 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9629 (struct var_loc_list_def): Add last_before_switch field.
9630 (arange_table, arange_table_allocated, arange_table_in_use,
9631 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9632 (size_of_aranges): Count !in_std_section and !second_in_std_section
9633 hunks in fdes, instead of looking at arange_table_in_use.
9634 (output_aranges): Add aranges_length argument, don't call
9635 size_of_aranges here. Instead of using aranges_table*
9636 emit ranges for fdes when !in_std_section resp.
9637 !second_in_std_section.
9638 (dw_loc_list): Break ranges crossing section switch.
9639 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9640 use dw_fde_second_end instead of dw_fde_end as end of last range.
9641 (gen_subprogram_die): Don't call add_arange. Use
9642 dw_fde_{begin,end} for first partition and if switched
9643 section dw_fde_second_{begin,end} for the second.
9644 (var_location_switch_text_section_1,
9645 var_location_switch_text_section): New functions.
9646 (dwarf2out_begin_function): Initialize cold_text_section even
9647 when function_section () isn't text_section.
9648 (prune_unused_types): Don't walk arange_table.
9649 (dwarf2out_finish): Don't needlessly test
9650 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9651 If info_section_emitted, call size_of_aranges and if it indicates
9652 non-empty .debug_aranges, call output_aranges with the computed
9653 size. Stop using removed dw_fde_struct fields, use
9654 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9655 for second.
9656
9657 PR debug/48203
9658 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9659 create ENTRY_VALUE if incoming or address of incoming's MEM
9660 is a hard REG.
9661 * dwarf2out.c (mem_loc_descriptor): Don't emit
9662 DW_OP_GNU_entry_value of DW_OP_fbreg.
9663 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9664 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9665 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9666 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9667 ENTRY_VALUE_EXPs.
9668 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9669 is a REG_P or MEM_P with REG_P address, compute hash directly
9670 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9671 (preserve_only_constants): Don't clear VALUES forwaring
9672 ENTRY_VALUE to some other VALUE.
9673
9674 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9675
9676 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9677 instead of GEN_INT.
9678
9679 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9680
9681 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9682 block before expanding the statement.
9683 (expand_gimple_stmt_1): Likewise. Set them here...
9684 (expand_gimple_stmt): ...and not here. Tidy.
9685 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9686 unknown.
9687
9688 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9689
9690 * Makefile.in: New rule for cprop.o.
9691 * gcse.c: Move constant/copy propagation to cprop.c.
9692 (compute_local_properties): Only handle expression tables.
9693 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9694 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9695 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9696 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9697 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9698 compute_cprop_data, find_used_regs, try_replace_reg,
9699 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9700 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9701 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9702 find_bypass_set, reg_killed_on_edge, bypass_block,
9703 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9704 execute_rtl_cprop, pass_rtl_cprop): Move to...
9705 * cprop.c: ...here. New file, constant/copy propagation for RTL
9706 moved from gcse.c to here with minor cleanups in duplicated code.
9707
9708 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9709
9710 * config/i386/i386.c (flag_opts): Fix a typo in
9711 -mavx256-split-unaligned-store.
9712
9713 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9714
9715 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9716 LIBCALL_VALUE): Remove macros.
9717 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9718 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9719 (h8300_function_value, h8300_libcall_value,
9720 h8300_function_value_regno_p): New functions.
9721
9722 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9723
9724 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9725
9726 2011-03-28 Jeff Law <law@redhat.com>
9727
9728 * tree-ssa-threadupdate.c (redirect_edges): Call
9729 create_edge_and_update_destination_phis as needed.
9730 (create_edge_and_update_destination_phis): Accept new BB argument.
9731 All callers updated.
9732 (thread_block): Do not update the profile when threading around
9733 intermediate blocks.
9734 (thread_single_edge): Likewise.
9735 (determine_bb_domination_status): If BB is not a successor of the
9736 loop header, return NONDOMINATING.
9737 (register_jump_thread): Note when we register a jump thread around
9738 an intermediate block.
9739 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9740 (thread_across_edge): Use it.
9741
9742 2011-03-28 Tristan Gingold <gingold@adacore.com>
9743
9744 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9745 when for_return is 2.
9746
9747 2011-03-28 Jeff Law <law@redhat.com>
9748
9749 * var-tracking.c (canonicalize_values_mark): Delete unused
9750 lhs assignment.
9751 (canonicalize_values_star, set_variable_part): Likewise.
9752 (clobber_variable_part, delete_variable_part): Likewise.
9753
9754 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9755
9756 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9757
9758 2011-03-28 Martin Jambor <mjambor@suse.cz>
9759
9760 * tree-inline.c (expand_call_inline): Do not check that destination
9761 node is analyzed.
9762 (optimize_inline_calls): Assert that destination node is analyzed.
9763 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9764 not call tree_lowering_passes.
9765 * cgraph.h (cgraph_analyze_function): Declare.
9766 * cgraphunit.c (cgraph_analyze_function): Make public.
9767
9768 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9769
9770 * config/sparc/sparc-opts.h: New.
9771 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9772 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9773 (sparc_option_override): Store processor_type enumeration rather
9774 than string in cpu_default. Remove name and enumeration from
9775 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9776 without using sparc_select. Use target_flags_explicit instead of
9777 fpu_option_set.
9778 * config/sparc/sparc.h (enum processor_type): Move to
9779 sparc-opts.h.
9780 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9781 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9782 HeaderInclude entry.
9783 (mcpu=, mtune=): Use Var and Enum.
9784 (sparc_processor_type): New Enum and EnumValue entries.
9785
9786 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9787 Iain Sandoe <iains@gcc.gnu.org>
9788
9789 PR target/48245
9790 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9791
9792 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9793
9794 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9795 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9796 Insert new statements at it in lieu of STMT.
9797 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9798 * tree-vect-stmts.c (vectorizable_store): Likewise.
9799 (vectorizable_load): Likewise.
9800
9801 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9802
9803 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9804 (divtf3): Ditto.
9805 (multf3): Ditto.
9806 (subtf3): Ditto.
9807
9808 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9809
9810 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9811 unaligned 256bit load/store.
9812 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9813 (*avx_movdqu<avxmodesuffix>): Likewise.
9814
9815 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9816
9817 PR target/48288
9818 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9819 * config/pa/pa.md (iordi3): Use new predicate in expander.
9820 (iorsi3): Likewise.
9821
9822 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9823
9824 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9825 FUNCTION_VALUE_REGNO_P): Remove macros.
9826 * config/mips/mips-protos.h (mips_function_value): Remove.
9827 * config/mips/mips.c (mips_function_value): Rename to...
9828 (mips_function_value_1): ... this. Make static. Handle receiving
9829 the function type in 'fn_decl_or_type' argument.
9830 (mips_function_value, mips_libcall_value,
9831 mips_function_value_regno_p): New function.
9832 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9833 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9834
9835 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9836
9837 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9838 and -mavx256-split-unaligned-store.
9839 (ix86_option_override_internal): Split 32-byte AVX unaligned
9840 load/store by default.
9841 (ix86_avx256_split_vector_move_misalign): New.
9842 (ix86_expand_vector_move_misalign): Use it.
9843
9844 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9845 -mavx256-split-unaligned-store.
9846
9847 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9848 256bit load/store. Generate unaligned store on misaligned memory
9849 operand.
9850 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9851 256bit load/store.
9852 (*avx_movdqu<avxmodesuffix>): Likewise.
9853
9854 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9855 -mavx256-split-unaligned-store.
9856
9857 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9858
9859 PR target/38598
9860 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9861 Update commentary.
9862
9863 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9864
9865 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9866 opno arguments with an expand_operand. Use create_input_operand.
9867 (mips_prepare_builtin_target): Delete.
9868 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9869 functions.
9870 (mips_expand_builtin_direct): Use create_output_operand and
9871 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9872 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9873 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9874
9875 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9876
9877 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9878 function.
9879 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9880
9881 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9882
9883 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9884 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9885 basic blocks and call commit_edge_insertions directly.
9886 (fixup_abnormal_edges): Move from here to...
9887 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9888 on the edges and return whether some have actually been inserted.
9889 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9890 compensation code.
9891
9892 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9893
9894 PR rtl-optimization/48144
9895 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9896 (merge_expr_data): ... here.
9897 (av_set_intersect): Rename to av_set_code_motion_filter.
9898 Update all callers. Call merge_history_vect when an expression
9899 is found in both sets.
9900 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9901
9902 2011-03-26 Alan Modra <amodra@gmail.com>
9903
9904 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9905 cmodel medium addresses.
9906 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9907 64-bit gpr loads and stores.
9908 (rs6000_secondary_reload_ppc64): New function.
9909 * config/rs6000/rs6000-protos.h: Declare it.
9910 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9911
9912 2011-03-26 Alan Modra <amodra@gmail.com>
9913
9914 PR target/47487
9915 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9916 GNU Go in traceback table.
9917
9918 2011-03-25 Richard Henderson <rth@redhat.com>
9919
9920 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9921 if there are exactly 6 operands.
9922 (set_storage_via_setmem): Similarly.
9923
9924 2011-03-25 Kai Tietz <ktietz@redhat.com>
9925
9926 * collect2.c (write_c_file_stat): Handle backslash
9927 as right-hand directory separator.
9928 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9929 checking just for slash.
9930 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9931 instead of checking for trailing slash.
9932 * gcc.c (record_temp_file): Use filename_cmp instead
9933 of strcmp.
9934 (do_spec_1): Likewise.
9935 (replace_outfile_spec_function): Likewise.
9936 (is_directory): Use filename_ncmp instead of strncmp.
9937 (print_multilib_info): Likewise.
9938 * gcov.c (find_source): Use filename_cmp instead
9939 instead of strcmp.
9940 (make_gcov_file_name): Fix order of slash/backslash
9941 checks.
9942 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9943 (add_standard_paths): Likewise.
9944 * mips-tfile.c (saber_stop): Handle backslash.
9945 * prefix.c (update_path): Use filename_ncmp instead of
9946 strncmp.
9947 * profile.c (output_location): Use filename_cmp instead
9948 of strcmp.
9949 * read-md.c (handle_toplevel_file): Handle backslash.
9950 * tlink.c (frob_extension): Likewise.
9951 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9952 strcmp.
9953 * tree-dump.c (dequeue_and_dump): Handle backslash.
9954 * tree.c (get_file_function_name): Likewise.
9955 * gengtype.c (read_input_list): Likewise.
9956 (get_file_realbasename): Likewise.
9957 (get_output_file_with_visibility): Use filename_cmp
9958 instead of strcmp.
9959
9960 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9961
9962 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9963 case to VFPv1.
9964
9965 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9966
9967 * fold-const.c (expr_location_or): New function.
9968 (fold_truth_not_expr): Call it.
9969
9970 2011-03-25 Jeff Law <law@redhat.com>
9971
9972 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9973 va_end.
9974 * c-family/c-common.c (def_fn_type): Likewise.
9975 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9976 * emit-rtl.c (gen_rtvec): Likewise.
9977 * lto/lto-lang.c (def_fn_type): Likewise.
9978
9979 2011-03-25 Richard Guenther <rguenther@suse.de>
9980
9981 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9982 also generate copies.
9983 (fini_copy_prop): Handle constant values properly.
9984
9985 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9986
9987 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9988 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9989 (hash_loc_operands, compare_loc_operands): Handle
9990 DW_OP_GNU_entry_value.
9991
9992 2011-03-25 Kai Tietz <ktietz@redhat.com>
9993
9994 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9995 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9996 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9997 comment and use macro TARGET_64BIT_MS_ABI instead.
9998 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9999 and change default behavior for 32-bit MS_ABI.
10000 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10001 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10002 32-bit, too.
10003 (ix86_cfun_abi): Likewise.
10004 (ix86_maybe_switch_abi): Adjust comment.
10005 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10006 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10007 instead of checking for SYSV_ABI.
10008 (ix86_nsaved_sseregs): Likewise.
10009 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10010 to 16 bytes.
10011 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10012 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10013 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10014 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10015 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10016
10017 2011-03-25 Richard Guenther <rguenther@suse.de>
10018
10019 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10020 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10021 (verify_gimple): Remove.
10022 * tree-cfg.c (verify_gimple_call): Merge verification
10023 from verify_stmts.
10024 (verify_gimple_phi): Merge verification from verify_stmts.
10025 (verify_gimple_label): New function.
10026 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10027 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10028 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10029 (verify_stmts): Rename to verify_gimple_in_cfg.
10030 (verify_gimple_in_cfg): New function.
10031 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10032 * tree-ssa.c (verify_ssa): Likewise.
10033 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10034
10035 2011-03-25 Richard Guenther <rguenther@suse.de>
10036
10037 * passes.c (init_optimization_passes): Add FRE pass after
10038 early SRA.
10039
10040 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10041 Andrew Stubbs <ams@codesourcery.com>
10042
10043 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10044 for Cortex-A8.
10045 (arm_movdi_vfp_cortexa8): New pattern.
10046 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10047 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10048 instructions when tuning for Cortex-A8. Set attribute "arch".
10049 * config/arm/arm.md: Move include arm-tune.md up a bit.
10050 (define_attr "arch"): Add "onlya8" and "nota8" values.
10051 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10052
10053 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10054
10055 PR bootstrap/48282
10056 Revert:
10057 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10058
10059 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10060 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10061 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10062 * passes.c (init_optimization_passes): Move
10063 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10064
10065 2011-03-25 Kai Tietz <ktietz@redhat.com>
10066
10067 * c-typeck.c (comptypes_internal): Replace target
10068 hook call of comp_type_attributes by version in tree.c file.
10069 * gimple.c (gimple_types_compatible_p_1): Likewise.
10070 * tree-ssa.c (useless_type_conversion_p): Likewise.
10071 * tree.c (build_type_attribute_qual_variant): Likewise.
10072 (attribute_value_equal): New static helper function.
10073 (comp_type_attributes): New function.
10074 (merge_attributes): Use attribute_value_equal for comparison.
10075 (attribute_list_contained): Likewise.
10076 * tree.h (comp_type_attributes): New prototype.
10077
10078 2011-03-25 Richard Guenther <rguenther@suse.de>
10079
10080 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10081 of complex types at -O0.
10082 (verify_gimple_assign_binary): Likewise.
10083 (verify_gimple_assign_ternary): Likewise.
10084
10085 2011-03-24 Mark Wielaard <mjw@redhat.com>
10086
10087 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10088 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10089
10090 2011-03-24 Mark Wielaard <mjw@redhat.com>
10091
10092 PR debug/48041
10093 * dwarf2out.c (output_abbrev_section): Only write table when
10094 abbrev_die_table_in_use > 1.
10095
10096 2011-02-24 Richard Henderson <rth@redhat.com>
10097
10098 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10099 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10100 (alpha_expand_unaligned_load_words): Use extql.
10101 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10102 (emit_insxl): Handle all modes for consistency.
10103
10104 2011-02-24 Richard Henderson <rth@redhat.com>
10105
10106 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10107 (alpha_expand_unaligned_load): Likewise.
10108 (alpha_expand_unaligned_store): Likewise.
10109 (alpha_expand_unaligned_load_words): Likewise.
10110 (alpha_expand_unaligned_store_words): Likewise.
10111 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10112 (alpha_split_lock_test_and_set_12): Likewise.
10113 (print_operand, alpha_fold_builtin_extxx): Likewise.
10114 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10115 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10116 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10117 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10118 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10119 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10120 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10121 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10122 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10123 (extwl, extll, extql): Similarly.
10124 (inswh, inslh, insqh): Similarly.
10125 (mskbl, mskwl, mskll, mskql): Similarly.
10126 (mskwh, msklh, mskqh): Similarly.
10127
10128 2011-02-24 Richard Henderson <rth@redhat.com>
10129
10130 * config/alpha/alpha.md (attribute isa): Add er, ner.
10131 (attribute enabled): Handle them.
10132 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10133
10134 2011-02-24 Richard Henderson <rth@redhat.com>
10135
10136 * config/alpha/alpha.md (attribute isa): Add vms.
10137 (attribute enabled): Handle it.
10138 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10139 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10140 (*movtf): Rename from *movtf_internal for consistency.
10141 (*movsi): Merge with *movsi_nt_vms.
10142 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10143 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10144 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10145 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10146
10147 2011-02-24 Richard Henderson <rth@redhat.com>
10148
10149 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10150 (extendqisi2, extendhisi2): Likewise.
10151 (extendqidi2): Simplify BWX/non-BWX expansions.
10152 (extendhidi2): Similarly.
10153
10154 2011-02-24 Richard Henderson <rth@redhat.com>
10155
10156 * config/alpha/alpha.md (attribute isa): New.
10157 (attribute enabled): New.
10158 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10159 (zero_extendqisi2, zero_extendqidi2): Similarly.
10160 (zero_extendhisi2, zero_extendhidi2): Similarly.
10161 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10162
10163 2011-02-24 Richard Henderson <rth@redhat.com>
10164
10165 * config/alpha/predicates.md (input_operand): Revert last change;
10166 update comment to mention 32-bit VMS rather than Windows.
10167
10168 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10169
10170 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10171 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10172 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10173 * passes.c (init_optimization_passes): Move
10174 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10175
10176 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10177
10178 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10179
10180 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10181
10182 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10183 correctly.
10184
10185 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10186
10187 PR debug/48204
10188 * simplify-rtx.c (simplify_const_unary_operation): Call
10189 real_convert when changing mode class with FLOAT_EXTEND.
10190
10191 2011-03-24 Nick Clifton <nickc@redhat.com>
10192
10193 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10194 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10195 * config/rx/rx.c (rx_option_override): Set align_jumps,
10196 align_loops and align_labels if not set by the user.
10197 (rx_align_for_label): New function.
10198 (rx_max_skip_for_label): New function.
10199 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10200 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10201 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10202 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10203 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10204
10205 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10206
10207 PR rtl-optimization/48263
10208 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10209 and original commutative_p handling. Use maybe_gen_insn.
10210
10211 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10212
10213 * reload.c (find_reloads_subreg_address): Add address_reloaded
10214 parameter and return true there if the full address has been
10215 reloaded.
10216 (find_reloads_toplev): Pass address_reloaded flag.
10217 (find_reloads_address_1): Don't use address_reloaded parameter.
10218
10219 2011-03-24 Jeff Law <law@redhat.com>
10220
10221 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10222 unused variable "ann".
10223 (remove_unused_locals): Likewise.
10224
10225 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10226 statement.
10227
10228 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10229 after it is freed.
10230
10231 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10232
10233 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10234 for invalid symbolic addresses.
10235 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10236 larl operands.
10237
10238 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10239
10240 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10241 the argument in calls to fold_truth_not_expr.
10242
10243 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10244
10245 * tree.c (record_node_allocation_statistics): New function.
10246 (make_node_stat, copy_node_stat, build_string): Call it.
10247 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10248 (build1_stat, build_omp_clause): Likewise.
10249
10250 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10251
10252 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10253 last commit.
10254
10255 2011-03-24 Richard Guenther <rguenther@suse.de>
10256
10257 PR tree-optimization/48271
10258 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10259 blocks that still exist.
10260
10261 2011-03-24 Richard Guenther <rguenther@suse.de>
10262
10263 PR tree-optimization/48270
10264 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10265 not free datarefs before ddrs.
10266
10267 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10268
10269 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10270 from the address built for a reference with variable offset.
10271
10272 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10273
10274 PR target/48237
10275 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10276 alternatives that can be handled with movq or movabsq insn.
10277 (*movdf_internal): Disable for !TARGET_64BIT.
10278 (*movdf_internal_nointeger): Ditto.
10279 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10280
10281 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10282
10283 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10284 (FUNCTION_ARG_ADVANCE): Likewise.
10285 * tm.texi.in: Change references to them to hook references.
10286 * tm.texi: Regenerate.
10287 * targhooks.c (default_function_arg): Eliminate check for target macro.
10288 (default_function_incoming_arg): Likewise.
10289 (default_function_arg_advance): Likewise.
10290 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10291 (function_arg_advance): Likewise.
10292 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10293
10294 2011-03-24 Richard Guenther <rguenther@suse.de>
10295
10296 PR middle-end/48269
10297 * tree-object-size.c (addr_object_size): Do not double-account
10298 for MEM_REF offsets.
10299
10300 2011-03-24 Diego Novillo <dnovillo@google.com>
10301
10302 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10303 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10304 (lto_input_data_block): Move from lto-opts.c. Make extern.
10305 Update all users.
10306 (lto_input_string): Rename from input_string. Make extern.
10307 Update all users.
10308 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10309 output_string_with_length.
10310 Output 0 to indicate a non-NULL string. Update all callers to
10311 not emit 0.
10312 (lto_output_string): Rename from output_string. Make extern.
10313 Update all users.
10314 (lto_output_decl_state_streams): Make extern.
10315 (lto_output_decl_state_refs): Make extern.
10316 * lto-streamer.h (lto_input_string): Declare.
10317 (lto_input_data_block): Declare.
10318 (lto_output_string): Declare.
10319 (lto_output_string_with_length): Declare.
10320 (lto_output_decl_state_streams): Declare.
10321 (lto_output_decl_state_refs): Declare.
10322
10323 2011-03-24 Richard Guenther <rguenther@suse.de>
10324
10325 PR tree-optimization/46562
10326 * tree.c (build_invariant_address): New function.
10327 * tree.h (build_invariant_address): Declare.
10328 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10329 a renamed function moved ...
10330 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10331 Take valueization callback parameter.
10332 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10333 * gimple-fold.h: New file.
10334 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10335 (ccp_fold, fold_const_aggregate_ref,
10336 fold_ctor_reference, fold_nonarray_ctor_reference,
10337 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10338 get_base_constructor): Move ...
10339 * gimple-fold.c: ... here.
10340 (gimple_fold_stmt_to_constant_1): New function
10341 split out from ccp_fold. Take a valueization callback parameter.
10342 Valueize all operands.
10343 (gimple_fold_stmt_to_constant): New wrapper function.
10344 (fold_const_aggregate_ref_1): New function split out from
10345 fold_const_aggregate_ref. Take a valueization callback parameter.
10346 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10347 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10348 invariant POINTER_PLUS_EXPRs to invariant form.
10349 (vn_valueize): New function.
10350 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10351 * tree-vrp.c (vrp_valueize): New function.
10352 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10353 to fold statements to constants.
10354 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10355 function declarations.
10356 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10357 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10358
10359 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10360
10361 * config/h8300/predicates.md (jump_address_operand): Fix register
10362 mode check.
10363
10364 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10365
10366 * doc/invoke.texi (max-stores-to-sink): Document.
10367 * params.h (MAX_STORES_TO_SINK): Define.
10368 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10369 if either vectorization or if-conversion is disabled.
10370 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10371 tree-vect-data-refs.c vect_equal_offsets.
10372 (dr_equal_offsets_p): New function.
10373 (find_data_references_in_bb): Remove static.
10374 * tree-data-ref.h (find_data_references_in_bb): Declare.
10375 (dr_equal_offsets_p): Likewise.
10376 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10377 (vect_drs_dependent_in_basic_block): Update calls to
10378 vect_equal_offsets.
10379 (vect_check_interleaving): Likewise.
10380 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10381 (cond_if_else_store_replacement): Rename to...
10382 (cond_if_else_store_replacement_1): ... this. Change arguments and
10383 documentation.
10384 (cond_if_else_store_replacement): New function.
10385 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10386 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10387
10388 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10389
10390 PR target/46934
10391 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10392 to subtract lower bound instead of GEN_INT().
10393
10394 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10395
10396 PR other/48179
10397 PR other/48221
10398 PR other/48234
10399 * doc/extend.texi (Alignment): Move section to match order in TOC.
10400 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10401 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10402
10403 2011-03-23 Jeff Law <law@redhat.com>
10404
10405 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10406 before removing the edge.
10407
10408 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10409 it may have been freed by redirect_branch_edge or
10410 redirect_edge_succ_nodup.
10411
10412 2011-03-23 Richard Guenther <rguenther@suse.de>
10413
10414 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10415 (check_va_list_escapes): Likewise.
10416 (check_all_va_list_escapes): Likewise.
10417
10418 2011-03-23 Richard Guenther <rguenther@suse.de>
10419
10420 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10421 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10422 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10423 (alias.o): Likewise.
10424 (ipa-type-escape.o): Remove.
10425 (ipa-struct-reorg.o): Likewise.
10426 (GTFILES): Remove ipa-struct-reorg.c.
10427 * alias.c: Do not include ipa-type-escape.h.
10428 * tree-ssa-alias.c: Likewise.
10429 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10430 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10431 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10432 and ipa-type-escape passes.
10433 * tree-pass.h (pass_ipa_type_escape): Remove.
10434 (pass_ipa_struct_reorg): Likewise.
10435 * ipa-struct-reorg.h: Remove.
10436 * ipa-struct-reorg.c: Likewise.
10437 * ipa-type-escape.h: Likewise.
10438 * ipa-type-escape.c: Likewise.
10439 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10440 (--param struct-reorg-cold-struct-ratio): Likewise.
10441 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10442 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10443 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10444
10445 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10446
10447 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10448 cpu attribute value.
10449 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10450 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10451 * config/s390/s390.c (processor_flags_table): New constant array.
10452 (s390_handle_arch_option): Remove.
10453 (s390_handle_option): Remove s390_handle_arch_option invocations
10454 and OPT_mwarn_framesize_ handling.
10455 (s390_option_override): Remove s390_handle_arch_option invocation.
10456 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10457 warnings.
10458 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10459 * config/s390/s390.opt (s390_tune, s390_arch)
10460 (march=): Replace s390_arch_option enum and values with
10461 processor_type. Set variable name to s390_arch. Set
10462 initialization value.
10463 (mtune=): Replace s390_arch_option with processor_type. Set
10464 variable name to s390_tune. Set initialization value.
10465
10466 2011-03-23 Julian Brown <julian@codesourcery.com>
10467
10468 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10469 accesses which are not naturally aligned.
10470
10471 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10472
10473 PR target/47553
10474 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10475
10476 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10477
10478 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10479 parameter from "int" to "enum insn_code".
10480 (expand_operand_type): New enum.
10481 (expand_operand): New structure.
10482 (create_expand_operand): New function.
10483 (create_fixed_operand, create_output_operand): Likewise
10484 (create_input_operand, create_convert_operand_to): Likewise.
10485 (create_convert_operand_from, create_address_operand): Likewise.
10486 (create_integer_operand): Likewise.
10487 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10488 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10489 (expand_insn, expand_jump_insn): Likewise.
10490 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10491 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10492 (expand_movstr, expand_builtin___clear_cache): Likewise.
10493 (expand_builtin_lock_release): Likewise.
10494 * explow.c (allocate_dynamic_stack_space): Likewise.
10495 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10496 and use the default handling in that case.
10497 * expmed.c (check_predicate_volatile_ok): Delete.
10498 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10499 (emit_cstore): Likewise.
10500 * expr.c (emit_block_move_via_movmem): Likewise.
10501 (set_storage_via_setmem, expand_assignment): Likewise.
10502 (emit_storent_insn, try_casesi): Likewise.
10503 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10504 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10505 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10506 (expand_twoval_unop, expand_twoval_binop): Likewise.
10507 (expand_unop_direct, emit_indirect_jump): Likewise.
10508 (emit_conditional_move, vector_compare_rtx): Likewise.
10509 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10510 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10511 (expand_sync_lock_test_and_set): Likewise.
10512 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10513 (emit_unop_insn): Likewise.
10514 (expand_copysign_absneg): Change icode to an insn_code.
10515 (create_convert_operand_from_type): New function.
10516 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10517 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10518 (expand_insn, expand_jump_insn): Likewise.
10519 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10520 than const_int_operand for operand 2.
10521
10522 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10523
10524 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10525 if possible.
10526
10527 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10528
10529 * emit-rtl.c (emit_pattern_before_noloc): New function.
10530 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10531 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10532 (emit_pattern_after_noloc): New function.
10533 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10534 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10535
10536 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10537
10538 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10539 (__ffsDI2): Likewise.
10540
10541 2011-03-22 Richard Henderson <rth@redhat.com>
10542
10543 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10544 of !TARGET_ABI_OPEN_VMS.
10545 (alpha_trampoline_init, alpha_start_function): Likewise.
10546 (alpha_expand_epilogue, alpha_file_start): Likewise.
10547 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10548 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10549 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10550 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10551 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10552
10553 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10554
10555 * config/s390/s390-opts.h: New.
10556 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10557 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10558 s390_stack_guard): Remove.
10559 (s390_handle_arch_option): Return void. Take enum
10560 s390_arch_option value instead of string and searching array.
10561 (s390_handle_option): Don't assert that global structures are in
10562 use. Access variables via opts pointer. Use error_at. Don't use
10563 sscanf for -mstack-guard= or -mstack-size=. Update call to
10564 s390_handle_arch_option.
10565 (s390_option_override): Update call to s390_handle_arch_option.
10566 (s390_emit_prologue): Use %d format for s390_stack_size in
10567 diagnostic. Use %wd for HOST_WIDE_INT.
10568 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10569 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10570 * config/s390/s390.opt (config/s390/s390-opts.h): New
10571 HeaderInclude entry.
10572 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10573 s390_arch_flags, s390_warn_framesize): New Variable entries.
10574 (s390_arch_option): New Enum and EnumValue entries.
10575 (march=): Use Enum instead of Var.
10576 (mstack-guard=, mstack-size=): Use UInteger and Var.
10577 (mtune=): Use Enum.
10578
10579 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10580
10581 * config/score/score.c (score_handle_option): Don't assert that
10582 global structures are in use. Access target_flags via opts
10583 pointer. Use value of -march= option to determine target_flags
10584 settings.
10585 * config/score/score.opt (march=): Use Enum.
10586 (score_arch): New Enum and EnumValue entries.
10587
10588 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10589
10590 * config/mep/mep.c (option_mtiny_specified): Remove.
10591 (mep_option_override): Move register handling for -mivc2 from
10592 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10593 instead of option_mtiny_specified.
10594 (mep_handle_option): Access target_flags via opts pointer. Don't
10595 assert that global structures are in use. Defer part of -mivc2
10596 handling and move it to mep_option_override.
10597 * config/mep/mep.opt (IVC2): New Mask entry.
10598 (mivc2): Use Var and Defer instead of Mask.
10599
10600 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10601
10602 * config/v850/v850-opts.h: New.
10603 * config/v850/v850.c (small_memory): Replace with
10604 small_memory_physical_max array. Make that array static const.
10605 (v850_handle_memory_option): Take integer value of argument. Take
10606 gcc_options pointer, option text and location. Return void.
10607 Update for changes to small memory structures.
10608 (v850_handle_option): Access target_flags via opts pointer. Don't
10609 assert that global structures are in use. Update calls to
10610 v850_handle_memory_option.
10611 (v850_encode_data_area): Update references to small memory settings.
10612 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10613 (enum small_memory_type): Move to v850-opts.h.
10614 * config/v850/v850.opt (config/v850/v850-opts.h): New
10615 HeaderInclude entry.
10616 (small_memory_max): New Variable entry.
10617 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10618 (mtda, mzda): Likewise.
10619
10620 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10621
10622 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10623 pointer. Don't assert that global structures are in use.
10624
10625 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10626
10627 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10628 via opts pointer. Don't assert that global structures are in use.
10629
10630 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10631
10632 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10633 (munix=93): Use Var.
10634 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10635 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10636 * config/pa/pa-opts.h: New.
10637 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10638 (pa_handle_option): Don't assert that global structures are in
10639 use. Access target_flags via opts pointer. Don't handle
10640 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10641 OPT_munix_98 here.
10642 (pa_option_override): Handle deferred OPT_mfixed_range_.
10643
10644 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10645
10646 * config/mn10300/mn10300-opts.h: New.
10647 * config/mn10300/mn10300.c (mn10300_processor,
10648 mn10300_tune_string): Remove.
10649 (mn10300_handle_option): Don't assert that global structures are
10650 in use. Access mn10300_processor via opts pointer. Don't handle
10651 OPT_mtune_ here.
10652 * config/mn10300/mn10300.h (enum processor_type): Move to
10653 mn10300-opts.h.
10654 (mn10300_processor): Remove.
10655 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10656 HeaderInclude entry.
10657 (mn10300_processor): New Variable entry.
10658 (mtune=): Use Var.
10659
10660 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10661
10662 * config/microblaze/microblaze.c: Don't include opts.h.
10663 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10664 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10665 (mno-clearbss): Use Var and Warn.
10666
10667 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10668
10669 * config/m32r/m32r-opts.h: New.
10670 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10671 (m32r_handle_option): Don't assert that global structures are in
10672 use. Access target_flags and m32r_cache_flush_func via opts
10673 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10674 OPT_mno_flush_trap here.
10675 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10676 include of m32r-opts.h.
10677 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10678 HeaderInclude entry.
10679 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10680 (mmodel=): Use Enum and Var.
10681 (m32r_model): New Enum and EnumValue entries.
10682 (mno-flush-trap): Use Var.
10683 (msdata=): Use Enum and Var.
10684 (m32r_sdata): New Enum and EnumValue entries.
10685
10686 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10687
10688 * config/m32c/m32c.c: Don't include opts.h.
10689 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10690 m32c_handle_option): Remove.
10691 (m32c_option_override): Check global_options_set.x_target_memregs
10692 instead of target_memregs_set.
10693 * config/m32c/m32c.h (target_memregs): Remove.
10694 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10695 variable.
10696
10697 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10698
10699 * config/iq2000/iq2000-opts.h: New.
10700 * config/iq2000/iq2000.c: Don't include opts.h.
10701 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10702 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10703 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10704 HeaderInclude entry.
10705 (iq2000_tune): New Variable entry.
10706 (march=): Add comment. Use Enum.
10707 (iq2000_arch): New Enum and EnumValue entries.
10708 (mcpu=): Use Enum and Var.
10709 (iq2000_tune): New Enum and EnumValue entries.
10710
10711 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10712
10713 * config/ia64/ia64-opts.h: New.
10714 * config/ia64/ia64.c (ia64_tune): Remove.
10715 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10716 here. Use error_at.
10717 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10718 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10719 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10720 HeaderInclude entry.
10721 (ia64_tune): New Variable entry.
10722 (mfixed-range=): Use Defer and Var.
10723 (mtune=): Use Enum and Var.
10724 (ia64_tune): New Enum and EnumValue entries.
10725
10726 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10727
10728 * config/frv/frv-opts.h: New.
10729 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10730 frv-opts.h.
10731 (frv_cpu_type): Remove.
10732 * config/frv/frv.c: Don't include opts.h.
10733 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10734 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10735 (frv_cpu_type): New Variable entry.
10736 (frv_cpu): New Enum and EnumValue entries.
10737
10738 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10739
10740 * config/cris/cris.c (cris_handle_option): Access target_flags via
10741 opts pointer. Don't assert that global structures are in use.
10742 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10743 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10744
10745 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10746
10747 * config/bfin/bfin-opts.h: New.
10748 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10749 bfin_si_revision, bfin_workarounds): Remove.
10750 (bfin_cpus): Make static const.
10751 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10752 not bfin_lib_id_given.
10753 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10754 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10755 pointer. Use error_at. Don't assert that global structures are in use.
10756 * config/bfin/bfin.h: Include bfin-opts.h.
10757 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10758 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10759 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10760 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10761 entries.
10762
10763 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10764
10765 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10766 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10767 or -msoft-float here.
10768 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10769 -msoft-float and -mhard-float.
10770 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10771 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10772 msoft-float.
10773 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10774 -msoft-float.
10775 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10776 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10777 not mhard-float.
10778 (LIBGCC_SPEC): Don't handle -msoft-float.
10779 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10780 -mhard-float.
10781 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10782 msoft-float.
10783 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10784 -mfloat-abi=*, not -msoft-float and -mhard-float.
10785 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10786 -msoft-float.
10787 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10788 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10789 mhard-float and msoft-float.
10790 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10791 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10792 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10793 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10794 mhard-float.
10795 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10796 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10797 msoft-float.
10798 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10799 not mhard-float.
10800 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10801 not msoft-float.
10802
10803 2011-03-22 Richard Henderson <rth@redhat.com>
10804
10805 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10806 TARGET_ABI_WINDOWS_NT.
10807 (alpha_output_function_end_prologue): Likewise.
10808 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10809 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10810 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10811 (trap, *movsi_nt_vms): Likewise.
10812 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10813 (*tablejump_osf_nt_internal): Remove.
10814 * config/alpha/predicates.md (input_operand): Only test Pmode.
10815
10816 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10817
10818 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10819 via opts pointer. Use error_at. Don't assert that global
10820 structures are in use.
10821
10822 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10823
10824 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10825 (ix86_handle_option): Access ix86_isa_flags and
10826 ix86_isa_flags_explicit via opts pointer. Don't assert that
10827 global structures are in use.
10828 (ix86_function_specific_save, ix86_function_specific_restore):
10829 Update ix86_isa_flags_explicit field name.
10830 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10831 (ix86_isa_flags_explicit): Rename TargetSave entry to
10832 x_ix86_isa_flags_explicit.
10833
10834 2011-03-22 Richard Henderson <rth@redhat.com>
10835
10836 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10837 (alpha_option_override, direct_return): Likewise.
10838 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10839 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10840 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10841 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10842 (alpha_expand_epilogue, alpha_end_function): Likewise.
10843 (alpha_init_libfuncs): Likewise.
10844 (struct machine_function): Remove unicosmk members.
10845 (print_operand) ['t']: Remove.
10846 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10847 unicosmk_output_module_name, unicosmk_output_common,
10848 current_section_align, unicosmk_output_text_section_asm_op,
10849 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10850 unicosmk_section_type_flags, unicosmk_unique_section,
10851 unicosmk_asm_named_section, unicosmk_insert_attributes,
10852 unicosmk_output_align, unicosmk_defer_case_vector,
10853 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10854 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10855 unicosmk_output_ssib, unicosmk_add_call_info_word,
10856 unicosmk_extern_head, unicosmk_output_default_externs,
10857 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10858 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10859 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10860 * config/alpha/alpha-protos.h: Update.
10861 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10862 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10863 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10864 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10865 (*mulsi_se, mulvsi3): Likewise.
10866 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10867 (*divmodsi_internal, call, call_value, realign): Likewise.
10868 (moddi3, umoddi3): Likewise; remove duplicate expander.
10869 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10870 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10871 (*movdi_nofix): Remove r/U alternative.
10872 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10873 * config/alpha/constraints.md ("U"): Remove.
10874 * config/alpha/predicates.md (call_operand"): Don't test
10875 TARGET_ABI_UNICOSMK.
10876
10877 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10878
10879 * target.def (handle_option): Take gcc_options and
10880 cl_decoded_option pointers and location_t.
10881 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10882 * doc/tm.texi: Regenerate.
10883 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10884 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10885 * lto-opts.c (lto_reissue_options): Generate option structure for
10886 targetm.handle_option call.
10887 * opts.c (target_handle_option): Update call to
10888 targetm.handle_option. Remove assertions about values now passed
10889 down to hook.
10890 * targhooks.c (default_target_handle_option): New.
10891 * targhooks.h (default_target_handle_option): Declare.
10892 * config/alpha/alpha.c: Include opts.h.
10893 (alpha_handle_option): Update to new hook interface.
10894 * config/arm/arm.c: Include opts.h.
10895 (arm_handle_option): Update to new hook interface.
10896 * config/arm/t-arm (arm.o): Update dependencies.
10897 * config/bfin/bfin.c: Include opts.h.
10898 (bfin_handle_option): Update to new hook interface.
10899 * config/cris/cris.c: Include opts.h.
10900 (cris_handle_option): Update to new hook interface.
10901 * config/frv/frv.c: Include opts.h.
10902 (frv_handle_option): Update to new hook interface.
10903 * config/i386/i386.c: Include opts.h.
10904 (ix86_handle_option): Update to new hook interface.
10905 (ix86_valid_target_attribute_inner_p): Generate option structure
10906 for call to ix86_handle_option.
10907 * config/i386/t-i386 (i386.o): Update dependencies.
10908 * config/ia64/ia64.c: Include opts.h.
10909 (ia64_handle_option): Update to new hook interface.
10910 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10911 * config/iq2000/iq2000.c: Include opts.h.
10912 (iq2000_handle_option): Update to new hook interface.
10913 * config/m32c/m32c.c: Include opts.h.
10914 (m32c_handle_option): Update to new hook interface.
10915 * config/m32r/m32r.c: Include opts.h.
10916 (m32r_handle_option): Update to new hook interface.
10917 * config/m68k/m68k.c: Include opts.h.
10918 (m68k_handle_option): Update to new hook interface.
10919 * config/mep/mep.c: Include opts.h.
10920 (mep_handle_option): Update to new hook interface.
10921 * config/microblaze/microblaze.c: Include opts.h.
10922 (microblaze_handle_option): Update to new hook interface.
10923 * config/mips/mips.c: Include opts.h.
10924 (mips_handle_option): Update to new hook interface.
10925 * config/mn10300/mn10300.c: Include opts.h.
10926 (mn10300_handle_option): Update to new hook interface.
10927 * config/pa/pa.c: Include opts.h.
10928 (pa_handle_option): Update to new hook interface.
10929 * config/pdp11/pdp11.c: Include opts.h.
10930 (pdp11_handle_option): Update to new hook interface.
10931 * config/rs6000/rs6000.c: Include opts.h.
10932 (rs6000_handle_option): Update to new hook interface.
10933 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10934 * config/rx/rx.c: Include opts.h.
10935 (rx_handle_option): Update to new hook interface.
10936 * config/s390/s390.c: Include opts.h.
10937 (s390_handle_option): Update to new hook interface.
10938 * config/score/score.c: Include opts.h.
10939 (score_handle_option): Update to new hook interface.
10940 * config/sh/sh.c: Include opts.h.
10941 (sh_handle_option): Update to new hook interface.
10942 * config/sparc/sparc.c: Include opts.h.
10943 (sparc_handle_option): Update to new hook interface.
10944 * config/v850/v850.c: Include opts.h.
10945 (v850_handle_option): Update to new hook interface.
10946
10947 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10948
10949 * gcc.c (driver_unknown_option_callback): Only permit and save
10950 unknown -Wno- options.
10951 (driver_wrong_lang_callback): Save options directly instead of via
10952 driver_unknown_option_callback.
10953
10954 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10955
10956 * combine.c (simplify_set): Try harder to find the best CC mode when
10957 simplifying a nested COMPARE on the RHS.
10958
10959 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10960
10961 * config/alpha/gnu.h: Remove.
10962 * config/arc: Remove directory.
10963 * config/arm/netbsd.h: Remove.
10964 * config/arm/t-pe: Remove.
10965 * config/crx: Remove directory.
10966 * config/i386/netbsd.h: Remove.
10967 * config/m68hc11: Remove directory.
10968 * config/m68k/uclinux-oldabi.h: Remove.
10969 * config/mcore/mcore-pe.h: Remove.
10970 * config/mcore/t-mcore-pe: Remove.
10971 * config/netbsd-aout.h: Remove.
10972 * config/rs6000/gnu.h: Remove.
10973 * config/sh/sh-symbian.h: Remove.
10974 * config/sh/symbian-base.c: Remove.
10975 * config/sh/symbian-c.c: Remove.
10976 * config/sh/symbian-cxx.c: Remove.
10977 * config/sh/symbian-post.h: Remove.
10978 * config/sh/symbian-pre.h: Remove.
10979 * config/sh/t-symbian: Remove.
10980 * config/svr3.h: Remove.
10981 * config/vax/netbsd.h: Remove.
10982 * config.build: Don't handle i[34567]86-*-pe.
10983 * config.gcc: Remove handling of deprecations for most deprecated
10984 targets.
10985 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10986 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10987 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10988 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10989 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10990 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10991 Remove cases.
10992 * config.host: Don't handle i[34567]86-*-pe.
10993 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10994 (ASM_SPEC32): Don't handle -mcall-gnu.
10995 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10996 -mcall-gnu.
10997 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10998 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10999 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11000 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11001 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11002 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11003 conditional on SYMBIAN.
11004 * configure.ac: Don't handle powerpc*-*-gnu*.
11005 * configure: Regenerate.
11006 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11007 * doc/install-old.texi (m6811, m6812): Don't mention.
11008 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11009 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11010 (m68k-uclinuxoldabi): Don't mention.
11011 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11012 Remove.
11013 (-mcall-gnu): Remove.
11014 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11015 families): Remove constraint documentation.
11016
11017 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11018
11019 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11020 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11021 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11022
11023 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11024
11025 PR target/48226
11026 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11027 vector when peeking at the next token for vector, don't expand the
11028 keywords.
11029
11030 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11031
11032 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11033 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11034 * config/avr/avr.c (init_cumulative_args)
11035 (avr_function_arg_advance): Use it.
11036 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11037 sibcall epilogues.
11038 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11039 (avr_function_ok_for_sibcall): ...this new function.
11040 (avr_lookup_function_attribute1): New static Function.
11041 (avr_naked_function_p, interrupt_function_p)
11042 (signal_function_p, avr_OS_task_function_p)
11043 (avr_OS_main_function_p): Use it.
11044 * config/avr/avr.md ("sibcall", "sibcall_value")
11045 ("sibcall_epilogue"): New expander.
11046 ("*call_insn", "*call_value_insn"): New insn.
11047 ("call_insn", "call_value_insn"): Remove
11048 ("call", "call_value", "epilogue"): Change expander to handle
11049 sibling calls.
11050
11051 2011-03-21 Nick Clifton <nickc@redhat.com>
11052
11053 * doc/invoke.texi (Overall Options): Move closing brace to end of
11054 options list.
11055 (Optimization Options): Add missing @gol.
11056 (Directory Options): Likewise.
11057 (i386 and x86-64 Options): Likewise.
11058 (RS6000 and PowerPC Options): Likewise.
11059 (i386 and x86-64 Windows Options): Likewise.
11060 (V850 Options): Add text missing from descriptions.
11061
11062 2011-03-22 Richard Henderson <rth@redhat.com>
11063
11064 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11065 (avr_incoming_return_addr_rtx): New.
11066 (emit_push_byte): New.
11067 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11068 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11069 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11070 (emit_pop_byte): New.
11071 (expand_epilogue): Use it. Pop frame pointer by bytes.
11072 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11073 (INCOMING_RETURN_ADDR_RTX): New.
11074 (INCOMING_FRAME_SP_OFFSET): New.
11075 (ARG_POINTER_CFA_OFFSET): New.
11076 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11077 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11078 (pophi): Remove.
11079
11080 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11081
11082 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11083
11084 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11085 (FUNCTION_ARG_ADVANCE): Likewise.
11086 * tm.texi.in: Change references to them to hook references.
11087 * tm.texi: Regenerate.
11088 * targhooks.c (default_function_arg): Eliminate check for target
11089 macro.
11090 (default_function_incoming_arg): Likewise.
11091 (default_function_arg_advance): Likewise.
11092 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11093 (function_arg_advance): Likewise.
11094 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11095
11096 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11097
11098 * tree.c (build_call_1): New function.
11099 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11100
11101 2011-03-22 Richard Guenther <rguenther@suse.de>
11102
11103 PR tree-optimization/48228
11104 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11105 for single-arg PHIs.
11106
11107 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11108
11109 PR rtl-optimization/48143
11110 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11111 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11112 sse2_cvtps2pd): Likewise.
11113
11114 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11115
11116 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11117
11118 2011-03-22 Richard Guenther <rguenther@suse.de>
11119
11120 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11121 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11122 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11123 and REALIGN_LOAD_EXPR.
11124 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11125 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11126 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11127 DOT_PROD_EXPR case ...
11128 (expand_expr_real_2): ... here.
11129 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11130 and REALIGN_LOAD_EXPR.
11131 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11132 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11133 (vect_create_epilog_for_reduction): Likewise.
11134 (vectorizable_reduction): Likewise.
11135 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11136 * tree-vect-stmts.c (vectorizable_load): Likewise.
11137
11138 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11139
11140 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11141
11142 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11143
11144 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11145 handling for PLTOFF/GOTOFF.
11146
11147 2011-03-22 Nick Clifton <nickc@redhat.com>
11148
11149 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11150 trailing backslash from the end of the macro definition.
11151
11152 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11153
11154 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11155 and PLT unspecs.
11156
11157 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11158
11159 * expr.h (prepare_operand): Move to...
11160 * optabs.h (prepare_operand): ...here and change the insn code
11161 parameter from "int" to "enum insn_code".
11162 (insn_operand_matches): Declare.
11163 * expr.c (init_expr_target): Use insn_operand_matches.
11164 (compress_float_constant): Likewise.
11165 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11166 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11167 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11168 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11169 Likewise.
11170 (gen_cond_trap): Likewise.
11171 (prepare_operand): Likewise. Change icode to an insn_code.
11172 (insn_operand_matches): New function.
11173 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11174 * reload1.c (gen_reload): Likewise.
11175 * targhooks.c (default_secondary_reload): Likewise.
11176
11177 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11178
11179 * config/alpha/alpha.md (unspec): New define_c_enum.
11180 (unspecv): Ditto.
11181
11182 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11183
11184 PR debug/48214
11185 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11186 between a call and its CALL_ARG_LOCATION note.
11187
11188 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11189
11190 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11191
11192 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11193
11194 PR c/42544
11195 PR c/48197
11196 * c-common.c (shorten_compare): If primopN is first sign-extended
11197 to opN and then zero-extended to result type, set primopN to opN.
11198
11199 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11200
11201 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11202 for barrier handlers.
11203
11204 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11205
11206 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11207 UNSPEC constants to be in the unspec enumeration, and redefine
11208 all UNSPECV constants to be in the unspecv enumeration, so that
11209 dumps print which unspec/unspec_volatile this is.
11210 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11211 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11212 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11213 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11214 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11215
11216 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11217 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11218 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11219 * config/rs6000/sync.md (isync, lwsync): Ditto.
11220
11221 2011-03-21 Richard Guenther <rguenther@suse.de>
11222
11223 * params.def (lto-min-partition): Fix typo.
11224
11225 2011-03-21 Richard Guenther <rguenther@suse.de>
11226
11227 PR c/47939
11228 * c-decl.c (grokdeclarator): Drop to the main variant only
11229 for array types. Drop flag_gen_aux_info check.
11230
11231 2011-03-21 Richard Guenther <rguenther@suse.de>
11232
11233 PR translation/47911
11234 * params.def (lto-partitions): Fix typo.
11235 (lto-min-partition): Fix wording.
11236
11237 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11238
11239 * config/rs6000/t-freebsd: Remove duplication from file.
11240
11241 2011-03-21 Richard Guenther <rguenther@suse.de>
11242
11243 PR middle-end/47661
11244 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11245
11246 2011-03-21 Richard Guenther <rguenther@suse.de>
11247
11248 PR lto/48210
11249 * params.def (lto-partitions): Require at least 1 partition.
11250
11251 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11252
11253 * gthr-solaris.h: Remove.
11254 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11255 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11256 (LIB_SPEC): Likewise.
11257 * config/sol2.opt (threads): Remove.
11258 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11259 (sparc*-*-solaris2*): Likewise.
11260 * configure.ac (enable_threads): Enable solaris support.
11261 * configure: Regenerate.
11262 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11263 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11264 solaris.
11265
11266 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11267
11268 * config.gcc: Obsolete *-*-solaris2.8*.
11269 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11270
11271 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11272
11273 PR bootstrap/48135
11274 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11275 reference. Solaris 8 perl works.
11276
11277 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11278
11279 PR bootstrap/48135
11280 * doc/install.texi (Prerequisites): Move jar etc. up.
11281 Explain support library version requirements.
11282
11283 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11284
11285 PR bootstrap/48135
11286 * doc/install.texi (Prerequisites): Move Perl to build
11287 requirements. Always necessary on Solaris 2 with Sun ld.
11288
11289 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11290
11291 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11292 binutils 2.21.
11293 (Specific, i?86-*-solaris2.[89]): Likewise.
11294 (Specific, i?86-*-solaris2.10): Likewise.
11295 (Specific, mips-sgi-irix6): Likewise.
11296 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11297 Update for binutils 2.21.
11298
11299 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11300
11301 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11302 Allow -fuse-linker-plugin for non-default plugin linker.
11303 * configure: Regenerate.
11304
11305 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11306
11307 PR bootstrap/48167
11308 * gengtype.c (files_rules): Added rule for cp/parser.h.
11309
11310 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11311
11312 PR target/48213
11313 * config/s390/s390.c (s390_delegitimize_address): Don't call
11314 lowpart_subreg if orig_x has BLKmode.
11315
11316 2011-03-21 Kai Tietz <ktietz@redhat.com>
11317
11318 PR target/12171
11319 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11320 * tree.h (attribute_spec): Add new member affects_type_identity.
11321 * attribs.c (empty_attribute_table): Adjust attribute_spec
11322 initializers.
11323 * config/alpha/alpha.c: Likewise.
11324 * config/arc/arc.c: Likewise.
11325 * config/arm/arm.c: Likewise.
11326 * config/avr/avr.c: Likewise.
11327 * config/bfin/bfin.c: Likewise.
11328 * config/crx/crx.c: Likewise.
11329 * config/darwin.h: Likewise.
11330 * config/h8300/h8300.c: Likewise.
11331 * config/i386/cygming.h: Likewise.
11332 * config/i386/i386.c: Likewise.
11333 * config/ia64/ia64.c: Likewise.
11334 * config/m32c/m32c.c: Likewise.
11335 * config/m32r/m32r.c: Likewise.
11336 * config/m68hc11/m68hc11.c: Likewise.
11337 * config/m68k/m68k.c: Likewise.
11338 * config/mcore/mcore.c: Likewise.
11339 * config/mep/mep.c: Likewise.
11340 * config/microblaze/microblaze.c: Likewise.
11341 * config/mips/mips.c: Likewise.
11342 * config/rs6000/rs6000.c: Likewise.
11343 * config/rx/rx.c: Likewise.
11344 * config/sh/sh.c: Likewise.
11345 * config/sol2.h: Likewise.
11346 * config/sparc/sparc.c: Likewise.
11347 * config/spu/spu.c: Likewise.
11348 * config/stormy16/stormy16.c: Likewise.
11349 * config/v850/v850.c: Likewise.
11350
11351 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11352
11353 * simplify-rtx.c (simplify_binary_operation_1): Handle
11354 (xor (and A B) C) case when B and C are both constants.
11355
11356 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11357
11358 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11359
11360 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11361
11362 PR bootstrap/48168
11363 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11364
11365 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11366
11367 PR rtl-optimization/48156
11368 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11369 assume df and df_lr are not NULL.
11370
11371 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11372
11373 PR debug/48023
11374 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11375 between a call and its CALL_ARG_LOCATION note.
11376
11377 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11378
11379 PR debug/48178
11380 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11381 between a call and its corresponding CALL_ARG_LOCATION note.
11382
11383 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11384
11385 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11386 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11387 * haifa-sched.c (setup_ref_regs): Ditto.
11388 * caller-save.c (add_used_regs_1): Ditto.
11389 * dse.c (look_for_hardregs): Ditto.
11390 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11391 * sched-rgn.c (check_live_1): Ditto.
11392
11393 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11394
11395 * c-decl.c (diagnose_mismatched_decls): Give an error for
11396 redefining a typedef with variably modified type.
11397
11398 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11399
11400 * c-decl.c (grokfield): Don't allow typedefs for structures or
11401 unions with no tag by default.
11402 * doc/extend.texi (Unnamed Fields): Update.
11403
11404 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11405
11406 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11407 Rewrite using indirect functions.
11408 (lwp_slwpcb): Ditto.
11409 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11410 (avx_vinsertf128<mode>): Ditto.
11411
11412 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11413
11414 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11415 unspecs.
11416
11417 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11418
11419 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11420 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11421
11422 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11423
11424 PR rtl-optimization/48170
11425 * gcse.c (hoist_code): Remove bogus asserts.
11426
11427 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11428
11429 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11430 computation for prologue/epilogue.
11431
11432 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11433
11434 * Makefile.in (check-consistency): Remove.
11435
11436 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11437
11438 PR debug/48176
11439 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11440 arange_table_in_use is 0, but either text_section_used or
11441 cold_text_section_used is true. Don't call it if
11442 !info_section_emitted.
11443
11444 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11445
11446 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11447 FUNCTION_VALUE_REGNO_P): Remove.
11448 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11449 Remove.
11450 * config/avr/avr.c (avr_ret_register): Make static inline.
11451 (avr_function_value_regno_p): New function.
11452 (avr_libcall_value): Make static. Add 'func' argument.
11453 (avr_function_value): Make static. Rename 'func' argument to
11454 'fn_decl_or_type', forward it to avr_libcall_value. Call
11455 avr_ret_register function instead of RET_REGISTER macro.
11456 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11457
11458 2011-03-18 Jason Merrill <jason@redhat.com>
11459
11460 PR c++/23372
11461 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11462
11463 2011-03-18 Richard Guenther <rguenther@suse.de>
11464
11465 * doc/install.texi (--enable-gold): Remove.
11466 (--with-plugin-ld): Document.
11467 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11468
11469 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11470
11471 PR middle-end/47790
11472 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11473 again after expansion changes.
11474
11475 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11476
11477 * combine.c (try_combine): Do simplification only call of
11478 subst() on i2 even when i1 is present. Update comments.
11479
11480 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11481
11482 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11483 and UNSPEC_PCREL_SYMOFF.
11484
11485 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11486
11487 * config/s390/s390.md: Use define_c_enum for the unspec constant
11488 definitions.
11489
11490 2011-03-18 Richard Henderson <rth@redhat.com>
11491 Jakub Jelinek <jakub@redhat.com>
11492
11493 PR bootstrap/48161
11494 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11495 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11496
11497 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11498
11499 PR middle-end/47725
11500 * combine.c (cant_combine_insn_p): Don't check zero/sign
11501 extended hard registers.
11502
11503 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11504
11505 PR middle-end/47725
11506 * combine.c (cant_combine_insn_p): Check zero/sign extended
11507 hard registers.
11508
11509 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11510
11511 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11512 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11513 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11514 Change return type to bool.
11515 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11516
11517 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11518
11519 PR debug/48163
11520 * var-tracking.c (prepare_call_arguments): If CALL target
11521 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11522 pc instead of looking it up using cselib_lookup and use
11523 Pmode for it if x has VOIDmode.
11524 * dwarf2out.c (gen_subprogram_die): If also both first and
11525 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11526
11527 PR debug/48163
11528 * function.c (assign_parms): For data.passed_pointer parms
11529 use MEM of data.entry_parm instead of data.entry_parm itself
11530 as DECL_INCOMING_RTL.
11531 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11532 also when passed and declared mode is the same, DECL_RTL
11533 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11534 a MEM too.
11535
11536 2011-03-16 Jeff Law <law@redhat.com>
11537
11538 PR rtl-optimization/37273
11539 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11540 handle them like argument loads from stack slots. Do not double
11541 count memory for memory constants and argument loads from stack slots.
11542
11543 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11544
11545 PR debug/48160
11546 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11547
11548 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11549
11550 PR target/48171
11551 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11552
11553 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11554
11555 PR bootstrap/48153
11556 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11557 if dwarf_strict.
11558 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11559 Clear call_arg_locations and call_arg_loc_last always.
11560
11561 PR middle-end/48152
11562 * var-tracking.c (prepare_call_arguments): If argument needs to be
11563 passed by reference, adjust argtype and mode.
11564
11565 2011-03-17 Richard Guenther <rguenther@suse.de>
11566
11567 PR middle-end/48134
11568 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11569 a value make sure to fold the statement.
11570
11571 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11572
11573 PR target/43872
11574 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11575 return condition with !cfun->calls_alloca.
11576
11577 2011-03-17 Richard Guenther <rguenther@suse.de>
11578
11579 PR bootstrap/48148
11580 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11581 origin for decls in other ltrans units.
11582 (input_varpool_node): Likewise.
11583
11584 2011-03-17 Richard Guenther <rguenther@suse.de>
11585
11586 PR middle-end/48165
11587 * tree-object-size.c (compute_object_offset): Properly return
11588 the offset operand of MEM_REFs as sizetype.
11589
11590 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11591
11592 PR rtl-optimization/48141
11593 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11594 * dse.c: Include params.h.
11595 (active_local_stores_len): New variable.
11596 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11597 to NULL.
11598 (record_store, check_mem_read_rtx): Decrease it when removing
11599 from the chain.
11600 (scan_insn): Likewise. Increase it when adding to chain, if it
11601 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11602 set active_local_stores to NULL before the addition.
11603 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11604
11605 PR rtl-optimization/48141
11606 * dse.c (record_store): If no positions are needed in an insn
11607 that cannot be deleted, at least unchain it from active_local_stores.
11608
11609 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11610
11611 PR debug/47510
11612 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11613 (lookup_type_die_strip_naming_typedef): ... here.
11614 (get_context_die): Use it.
11615 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11616 the anonymous struct named by the naming typedef.
11617
11618 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11619
11620 PR target/48154
11621 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11622 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11623
11624 2011-03-16 Jeff Law <law@redhat.com>
11625
11626 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11627 check for operands of conditional. Allow type to be a pointer.
11628
11629 2011-03-16 Richard Guenther <rguenther@suse.de>
11630
11631 PR tree-optimization/48149
11632 * fold-const.c (fold_binary_loc): Fold
11633 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11634
11635 2011-03-16 Richard Guenther <rguenther@suse.de>
11636
11637 PR tree-optimization/26134
11638 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11639 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11640 (non_rewritable_mem_ref_base): Handle complex type component
11641 accesses, constrain offsets for vector and complex extracts
11642 more properly.
11643
11644 2011-03-16 Richard Guenther <rguenther@suse.de>
11645
11646 PR tree-optimization/48146
11647 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11648 operands avoiding the need for renaming.
11649
11650 2011-03-16 Richard Guenther <rguenther@suse.de>
11651
11652 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11653 constant folding. Move MEM_REF canonicalization first.
11654 Rely on fold_const_aggregate_ref for initializer folding.
11655 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11656
11657 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11658
11659 PR middle-end/48136
11660 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11661 arg0/arg1 or their arguments are always fold converted to matching
11662 types.
11663
11664 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11665 to nargs.
11666
11667 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11668
11669 PR lto/46944
11670 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11671 Handle in-tree gold.
11672 (ld_vers): Extract binutils version for gold.
11673 (gcc_cv_ld_hidden): Handle gold here.
11674 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11675 * configure: Regenerate.
11676 * config.in: Regenerate.
11677 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11678 -fuse-linker-plugin otherwise.
11679 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11680 (LINK_COMMAND_SPEC): Use it.
11681 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11682
11683 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11684
11685 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11686 * calls.c: Remove debug.h include.
11687 (emit_call_1): Don't call virtual_call_token debug hook.
11688 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11689 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11690 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11691 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11692 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11693 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11694 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11695 dwarf2out_virtual_call): Remove.
11696 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11697 copy_call_info and virtual_call hooks.
11698 (dwarf2out_init): Don't initialize vcall_insn_table,
11699 debug_dcall_section and debug_vcall_section.
11700 (prune_unused_types): Don't mark nodes from dcall_table.
11701 (dwarf2out_finish): Don't output dcall or vcall tables.
11702 * final.c (final_scan_insn): Don't call direct_call or
11703 virtual_call debug hooks.
11704 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11705 virtual_call_token, copy_call_info and virtual_call hooks.
11706 (debug_nothing_uid): Remove prototype.
11707 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11708 copy_call_info and virtual_call hooks.
11709 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11710 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11711 * debug.c (do_nothing_debug_hooks): Likewise.
11712 (debug_nothing_uid): Remove.
11713 * doc/invoke.texi (-fenable-icf-debug): Remove.
11714 * common.opt (-fenable-icf-debug): Likewise.
11715
11716 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11717 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11718 call's MEM. Handle functions returning aggregate through a hidden
11719 first pointer. For virtual calls add clobbered pc to call arguments
11720 chain.
11721 * dwarf2out.c (gen_subprogram_die): Emit
11722 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11723 can't be emitted.
11724
11725 PR debug/45882
11726 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11727 * rtl.h (ENTRY_VALUE_EXP): Define.
11728 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11729 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11730 * print-rtl.c (print_rtx): Likewise.
11731 * gengtype.c (adjust_field_rtx_def): Likewise.
11732 * var-tracking.c (vt_add_function_parameter): Adjust
11733 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11734 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11735 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11736 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11737 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11738
11739 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11740 Call var_location debug hook even on CALL_INSNs.
11741 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11742 * rtl.def (ENTRY_VALUE): New.
11743 * dwarf2out.c: Include cfglayout.h.
11744 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11745 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11746 (struct call_arg_loc_node): New type.
11747 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11748 tail_call_site_count): New variables.
11749 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11750 DW_TAG_GNU_call_site_parameter.
11751 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11752 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11753 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11754 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11755 and DW_AT_GNU_all_source_call_sites.
11756 (mem_loc_descriptor): Handle ENTRY_VALUE.
11757 (add_src_coords_attributes): Don't add enything if
11758 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11759 (dwarf2out_abstract_function): Save and clear call_arg_location,
11760 call_site_count and tail_call_site_count around dwarf2out_decl call.
11761 (gen_call_site_die): New function.
11762 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11763 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11764 (dwarf2out_function_decl): Clear call_arg_locations,
11765 call_arg_loc_last, set call_site_count and tail_call_site_count
11766 to -1 and free block_map.
11767 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11768 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11769 followed by any real instructions.
11770 (dwarf2out_begin_function): Set call_site_count and
11771 tail_call_site_count to 0.
11772 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11773 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11774 attempt to force a DIE for it and worst case remove the attribute.
11775 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11776 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11777 the decl itself.
11778 * var-tracking.c: Include tm_p.h.
11779 (vt_stack_adjustments): For calls call note_register_arguments.
11780 (argument_reg_set): New variable.
11781 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11782 ensure the VALUE is resolved.
11783 (call_arguments): New variable.
11784 (prepare_call_arguments): New function.
11785 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11786 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11787 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11788 always use the best expression.
11789 (vt_expand_loc): Add ignore_cur_loc argument.
11790 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11791 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11792 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11793 note for all calls.
11794 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11795 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11796 argument. Don't call cselib_preserve_only_values and
11797 cselib_reset_table.
11798 (note_register_arguments): New function.
11799 (vt_initialize): Compute argument_reg_set. Call
11800 vt_add_function_parameters before processing basic blocks instead of
11801 afterwards. For calls call prepare_call_arguments before calling
11802 cselib_process_insn.
11803 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11804 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11805 (var-tracking.o): Depend on $(TM_P_H).
11806 * cfglayout.h (insn_scope): New prototype.
11807 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11808 * cfglayout.c (insn_scope): No longer static.
11809 * insn-notes.def (CALL_ARG_LOCATION): New.
11810 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11811 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11812 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11813 nothing for DECL_EXTERNAL BLOCK_VARS.
11814
11815 2011-03-16 Alan Modra <amodra@gmail.com>
11816
11817 PR target/45844
11818 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11819 create invalid offset address for vsx splat insn.
11820 * config/rs6000/predicates.md (splat_input_operand): New.
11821 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11822
11823 2011-03-15 Xinliang David Li <davidxl@google.com>
11824
11825 PR c/47837
11826 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11827 (normalize_preds): New function.
11828 (is_use_properly_guarded): Normalize def predicates.
11829
11830 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11831
11832 PR target/46788
11833 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11834 in the output template.
11835
11836 2011-03-15 Richard Guenther <rguenther@suse.de>
11837
11838 PR middle-end/47650
11839 * tree-pretty-print.c (dump_function_declaration): Properly
11840 dump unprototyped and varargs function types.
11841
11842 2011-03-15 Richard Guenther <rguenther@suse.de>
11843
11844 PR tree-optimization/13954
11845 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11846 and friends.
11847
11848 2011-03-15 Richard Guenther <rguenther@suse.de>
11849
11850 PR tree-optimization/48037
11851 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11852 selects into BIT_FIELD_REFs.
11853 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11854 vector select.
11855
11856 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11857
11858 PR tree-optimization/48129
11859 * builtins.c (fold_builtin_snprintf): Convert to type of
11860 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11861 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11862
11863 2011-03-15 Richard Guenther <rguenther@suse.de>
11864
11865 PR tree-optimization/41490
11866 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11867 value but with VUSE.
11868 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11869 return statements.
11870 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11871 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11872 * tree-tailcall.c (find_tail_calls): Ignore returns.
11873
11874 2011-03-15 Richard Guenther <rguenther@suse.de>
11875
11876 PR middle-end/48031
11877 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11878 or variable-indexed array accesses when in gimple form.
11879
11880 2011-03-15 Richard Guenther <rguenther@suse.de>
11881
11882 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11883
11884 2011-03-15 Alan Modra <amodra@gmail.com>
11885
11886 PR target/48032
11887 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11888 presume symbol_refs without a symbol_ref_decl are suitably
11889 aligned, nor other trees we may see here. Handle anchor symbols.
11890 (legitimate_constant_pool_address_p): Comment. Add mode param.
11891 Check cmodel=medium addresses. Adjust all calls.
11892 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11893 creating cmodel=medium optimized access to locals.
11894 * config/rs6000/constraints.md (R): Pass QImode to
11895 legitimate_constant_pool_address_p.
11896 * config/rs6000/predicates.md (input_operand): Pass mode to
11897 legitimate_constant_pool_address_p.
11898 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11899 Update prototype.
11900
11901 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11902
11903 PR target/48053
11904 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11905 64-bit constants being loaded into registers other than GPRs such
11906 as loading 0 into a VSX register.
11907
11908 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11909
11910 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11911
11912 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11913
11914 PR middle-end/47917
11915 * builtins.c (fold_builtin_snprintf): New function.
11916 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11917 (fold_builtin_4): Likewise.
11918
11919 PR middle-end/38878
11920 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11921 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11922 and C - X == X also strip nops from +/-/p+ operand.
11923 When optimizing -X == C, fold C to arg0's type.
11924
11925 PR debug/47946
11926 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11927 emit it as add_AT_int instead of add_AT_unsigned.
11928
11929 2011-03-14 Tom Tromey <tromey@redhat.com>
11930
11931 * unwind-dw2.c: Include sys/sdt.h if it exists.
11932 (_Unwind_DebugHook): Use STAP_PROBE2.
11933 * config.in, configure: Rebuild.
11934 * configure.ac: Check for sys/sdt.h.
11935
11936 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11937
11938 * config/i386/i386.md (ROUND_FLOOR): New constant.
11939 (ROUND_CEIL): Ditto.
11940 (ROUND_TRUNC): Ditto.
11941 (ROUND_MXCSR): Ditto.
11942 (ROUND_NO_EXC): Ditto.
11943 (rint<mode>2): Use new defines instead of numerical constants.
11944 (floor<mode>2): Ditto.
11945 (ceil<mode>2): Ditto.
11946 (btrunc<mode>2): Ditto.
11947 * config/i386/i386-builtin-types.def: Define ROUND function type
11948 aliases.
11949 * config/i386/i386.c (enum ix86_builtins): Add
11950 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11951 (struct builtin_description): Add
11952 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11953 (ix86_expand_sse_round): New static function.
11954 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11955 function types.
11956 (ix86_builtin_vectorized_function): Handle
11957 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11958
11959 2011-03-14 Tom Tromey <tromey@redhat.com>
11960
11961 * c-parser.c (c_parser_asm_string_literal): Clear
11962 warn_overlength_strings.
11963
11964 2011-03-14 Tom Tromey <tromey@redhat.com>
11965
11966 * c-parser.c (disable_extension_diagnostics): Save
11967 warn_overlength_strings.
11968 (restore_extension_diagnostics): Restore warn_overlength_strings.
11969
11970 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11971
11972 * BASE-VER: Change to 4.7.0.
11973
11974 2011-03-14 Richard Guenther <rguenther@suse.de>
11975
11976 PR middle-end/48098
11977 * tree.c (build_vector_from_val): Adjust assert to requirements
11978 and reality.
11979
11980 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11981
11982 PR bootstrap/48102
11983 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11984
11985 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11986
11987 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11988 terms of target_flags_explicit. Adjust copyright year.
11989
11990 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11991 * config/rs6000/t-freebsd: New file. Add override for
11992 LIB2FUNCS_EXTRA.
11993
11994 2011-03-13 Chris Demetriou <cgd@google.com>
11995
11996 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11997 (-fno-diagnostics-show-option): this, to reflect current default.
11998 (-Werror=): Update text about -fno-diagnostics-show-option.
11999
12000 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12001
12002 PR target/48053
12003 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12004 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12005 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12006 mode is not V2DImode or V2DFmode.
12007 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12008 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12009 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12010 registers to 0.
12011 (movdi_internal64): Likewise.
12012
12013 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12014
12015 PR tree-optimization/47127
12016 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12017 parameter.
12018 (set_cloog_options): Same.
12019 (scop_to_clast): Same.
12020 (print_clast_stmt): Do not call cloog_state_malloc and
12021 cloog_state_free.
12022 (print_generated_program): Same.
12023 (gloog): Same.
12024 * graphite-clast-to-gimple.h (cloog_state): Declared.
12025 (scop_to_clast): Adjust declaration.
12026 * graphite.c (cloog_state): Defined here.
12027 (graphite_initialize): Call cloog_state_malloc.
12028 (graphite_finalize): Call cloog_state_free.
12029
12030 2011-03-11 Jason Merrill <jason@redhat.com>
12031
12032 * attribs.c (lookup_attribute_spec): Take const_tree.
12033 * tree.h: Adjust.
12034
12035 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12036
12037 * config/sparc/sparc.c (sparc_option_override): Use
12038 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12039
12040 2011-03-11 Richard Guenther <rguenther@suse.de>
12041
12042 PR tree-optimization/48067
12043 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12044 multiplication result will be only used once on the target
12045 stmt.
12046
12047 2011-03-11 Richard Guenther <rguenther@suse.de>
12048
12049 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12050
12051 2011-03-11 Richard Guenther <rguenther@suse.de>
12052
12053 PR lto/48073
12054 * tree.c (find_decls_types_r): Do not walk types only reachable
12055 from IDENTIFIER_NODEs.
12056
12057 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12058
12059 PR middle-end/48044
12060 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12061 all vnode->force_output nodes as needed.
12062
12063 2011-03-11 Jason Merrill <jason@redhat.com>
12064
12065 PR c++/48069
12066 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12067 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12068
12069 2011-03-11 Martin Jambor <mjambor@suse.cz>
12070
12071 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12072 cgraph_node.
12073
12074 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12075
12076 PR tree-optimization/48063
12077 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12078 inline functions called once if !tree_can_inline_p (node->callers).
12079
12080 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12081
12082 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12083 extra_objs.
12084 * config/score/score3.c: Delete.
12085 * config/score/score3.h: Delete.
12086 * config/score/mul-div.S: Delete.
12087 * config/score/sfp-machine.h: Add new file.
12088 * config/score/constraints.md: Add new file.
12089 * config/score/t-score-softfp: Add new file.
12090 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12091 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12092 (score7_extra_constraint): Delete.
12093 (score7_option_override): Remove unused code.
12094 * config/score/score.c: Remove score3 and score5 define and code.
12095 * config/score/score.h: Remove score3 and score5 define and code.
12096 * config/score/score.md: Remove score3 template and unusual insn.
12097 * config/score/score.opt: Remove score3 and score5 options.
12098
12099 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12100
12101 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12102 when _HPUX_SOURCE is defined.
12103 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12104
12105 2011-03-10 Jason Merrill <jason@redhat.com>
12106
12107 PR c++/48029
12108 * stor-layout.c (layout_type): Don't set structural equality
12109 on arrays of incomplete type.
12110 * tree.c (type_hash_eq): Handle comparing them properly.
12111
12112 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12113
12114 PR debug/48043
12115 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12116 result mode matches original rtl mode.
12117
12118 2011-03-10 Nick Clifton <nickc@redhat.com>
12119
12120 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12121 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12122
12123 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12124
12125 PR rtl-optimization/47866
12126 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12127 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12128 if target wasn't scalar.
12129 * function.c (assign_stack_temp_for_type): Assert that neither
12130 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12131 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12132 macro.
12133 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12134
12135 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12136
12137 * config/s390/s390-protos.h (s390_label_align): New prototype.
12138 * config/s390/s390.c (s390_label_align): New function.
12139 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12140
12141 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12142
12143 PR target/47755
12144 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12145 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12146 (output_vec_const_move): Ditto.
12147
12148 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12149
12150 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12151 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12152 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12153 Change 'rclass' argument and result type to reg_class_t.
12154 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12155
12156 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12157
12158 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12159 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12160 (TARGET_MEMORY_MOVE_COST): Define.
12161 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12162
12163 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12164
12165 PR debug/47881
12166 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12167 removed anything.
12168
12169 PR tree-optimization/48022
12170 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12171 for EQ/NE_EXPR.
12172
12173 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12174
12175 PR debug/47991
12176 * var-tracking.c (find_use_val): Return NULL for
12177 cui->sets && cui->store_p BLKmode MEMs.
12178
12179 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12180
12181 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12182 Remove.
12183 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12184 xstormy16_print_operand_address): Remove.
12185 * config/stormy16/stormy16.c (xstormy16_print_operand,
12186 xstormy16_print_operand_address): Make static.
12187 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12188
12189 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12190
12191 PR target/47862
12192 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12193 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12194 before definition.
12195
12196 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12197
12198 PR bootstrap/48000
12199 * cfgloopmanip.c (fix_bb_placements): Return immediately
12200 if FROM is BASE_LOOP's header.
12201
12202 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12203
12204 * gimplify.c (gimplify_function_tree): Fix building calls
12205 to __builtin_return_address.
12206
12207 2011-03-07 Alan Modra <amodra@gmail.com>
12208
12209 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12210 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12211 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12212 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12213 return_mode args.
12214 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12215 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12216 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12217 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12218 * config/rs6000/rs6000.c
12219 (rs6000_elf_end_indicate_exec_stack): Rename to..
12220 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12221 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12222 (rs6000_file_start): ..here.
12223 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12224 file scope variables.
12225 (call_ABI_of_interest): New function.
12226 (init_cumulative_args): Set above vars when function return value
12227 is a float, vector, or small struct.
12228 (rs6000_function_arg_advance_1): Likewise for function args.
12229 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12230 references float args.
12231
12232 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12233
12234 * doc/cfg.texi: Remove "See" before @ref.
12235 * doc/invoke.texi: Likewise.
12236
12237 2011-03-05 Jason Merrill <jason@redhat.com>
12238
12239 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12240
12241 2011-03-05 Anthony Green <green@moxielogic.com>
12242
12243 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12244
12245 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12246
12247 PR rtl-optimization/47899
12248 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12249 to flow_loop_nested_p when moving the loop upward.
12250
12251 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12252
12253 PR target/47719
12254 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12255
12256 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12257
12258 PR tree-optimization/47967
12259 * ipa-cp.c (build_const_val): Return NULL instead of creating
12260 VIEW_CONVERT_EXPR for mismatching sizes.
12261 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12262 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12263 give up on versioning.
12264
12265 2011-03-05 Alan Modra <amodra@gmail.com>
12266
12267 PR target/47986
12268 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12269 full cmodel medium/large lo_sum + high addresses.
12270
12271 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12272
12273 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12274 pool references in UNSPEC_LTREL_OFFSET.
12275
12276 2011-03-04 Jan Hubicka <jh@suse.cz>
12277
12278 PR lto/47497
12279 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12280 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12281 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12282 Add node pointers.
12283 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12284 cgraph_add_thunk): Add node pointers.
12285 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12286 associated to right node.
12287 (input_node): Update use of cgraph_same_body_alias
12288 and cgraph_add_thunk.
12289
12290 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12291
12292 * config/i386/i386.opt (mprefer-avx128): New flag.
12293 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12294 modes when the flag -mprefer-avx128 is on.
12295
12296 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12297
12298 * dwarf2out.c (compare_loc_operands): Fix address handling.
12299
12300 2011-03-04 Alan Modra <amodra@gmail.com>
12301
12302 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12303
12304 2011-03-04 Richard Guenther <rguenther@suse.de>
12305
12306 PR middle-end/47968
12307 * expmed.c (extract_bit_field_1): Prefer vector modes that
12308 vec_extract patterns can handle.
12309
12310 2011-03-04 Richard Guenther <rguenther@suse.de>
12311
12312 PR middle-end/47975
12313 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12314
12315 2011-03-04 Richard Henderson <rth@redhat.com>
12316
12317 * explow.c (emit_stack_save): Remove 'after' parameter.
12318 (emit_stack_restore): Likewise.
12319 * expr.h: Update to match.
12320 * builtins.c, calls.c, stmt.c: Likewise.
12321 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12322 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12323 * function.c (expand_function_end): Insert the emit_stack_save
12324 sequence before parm_birth_insn instead of after.
12325
12326 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12327
12328 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12329 (ssse3_pmaddubsw128): Ditto.
12330 (ssse3_pmaddubsw): Ditto.
12331
12332 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12333
12334 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12335
12336 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12337
12338 PR c/47963
12339 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12340 on TYPE_SIZE_UNIT if it is a DECL.
12341
12342 PR debug/47283
12343 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12344 first operand is not is_gimple_mem_ref_addr, try to fold it.
12345 If the operand still isn't is_gimple_mem_ref_addr, clear
12346 MEM_EXPR on op0.
12347
12348 2011-03-03 Richard Guenther <rguenther@suse.de>
12349
12350 PR middle-end/47283
12351 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12352 match comment.
12353 (refs_may_alias_p_1): For release branches return true if
12354 we are confused by our input.
12355
12356 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12357
12358 * config/s390/s390.c (s390_function_value): Rename to ...
12359 (s390_function_and_libcall_value): ... this.
12360 (s390_function_value): New function.
12361 (s390_libcall_value): New function.
12362 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12363 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12364 target macro definitions.
12365 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12366
12367 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12368
12369 * config/i386/freebsd64.h (CC1_SPEC): Define.
12370 * config/i386/linux64.h (CC1_SPEC): Define.
12371 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12372
12373 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12374
12375 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12376 Remove.
12377 * config/stormy16/stormy16.c: Include reload.h.
12378 (xstormy16_memory_move_cost): New function.
12379 (TARGET_MEMORY_MOVE_COST): Define.
12380
12381 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12382
12383 PR rtl-optimization/47925
12384 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12385 with side effects. Remove the more-specific check for volatile asms.
12386
12387 2011-03-02 Alan Modra <amodra@gmail.com>
12388
12389 PR target/47935
12390 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12391 toc relative addresses for valid offsets.
12392
12393 2011-03-01 Richard Guenther <rguenther@suse.de>
12394
12395 PR tree-optimization/47890
12396 * tree-vect-loop.c (get_initial_def_for_induction): Set
12397 related stmt properly.
12398
12399 2011-03-01 Richard Guenther <rguenther@suse.de>
12400
12401 PR lto/47924
12402 * lto-streamer.c (lto_record_common_node): Also register
12403 the canonical type.
12404
12405 2011-03-01 Richard Guenther <rguenther@suse.de>
12406
12407 PR lto/46911
12408 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12409 Do not stream DECL_ABSTRACT_ORIGIN.
12410 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12411 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12412 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12413 Do not stream DECL_ABSTRACT_ORIGIN.
12414 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12415 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12416
12417 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12418
12419 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12420 FUNCTION_VALUE_REGNO_P): Remove.
12421 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12422 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12423 Add 'outgoing' argument.
12424 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12425 function.
12426 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12427 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12428
12429 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12430
12431 PR debug/28047
12432 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12433 (lookup_filename): Likewise.
12434 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12435
12436 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12437 Jakub Jelinek <jakub@redhat.com>
12438
12439 PR middle-end/47893
12440 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12441 (assign_stack_local_1): Change last argument type to int.
12442 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12443 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12444 don't record padding space into frame_space_list nor use those areas.
12445 (assign_stack_local): Adjust caller.
12446 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12447 of assign_stack_local, pass 0 as last argument.
12448 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12449 callers.
12450
12451 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12452
12453 PR debug/47283
12454 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12455 Use target address_mode and pointer_mode hooks instead of hardcoded
12456 Pmode and ptr_mode. Handle some simple cases of extending if
12457 POINTERS_EXTEND_UNSIGNED < 0.
12458 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12459 Call convert_debug_memory_address.
12460 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12461 convert_debug_memory_address.
12462
12463 PR middle-end/46790
12464 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12465 * configure: Regenerated.
12466 * config.in: Regenerated.
12467 * varasm.c (default_function_section): Return NULL
12468 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12469
12470 2011-02-28 Martin Jambor <mjambor@suse.cz>
12471
12472 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12473 the description to match the printed values.
12474
12475 2011-02-28 Richard Guenther <rguenther@suse.de>
12476
12477 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12478 of the copied scope tree.
12479
12480 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12481
12482 * doc/extend.texi (Function Attributes): Avoid deeply (and
12483 wrongly) nested tables.
12484
12485 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12486
12487 PR middle-end/47903
12488 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12489 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12490 r isn't op0 nor op1.
12491
12492 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12493
12494 * config/avr/avr.md: Remove magic comment for emacs.
12495
12496 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12497
12498 PR target/45261
12499 * config/avr/avr.c (avr_option_override): Use error on bad options.
12500 (avr_help): New function.
12501 (TARGET_HELP): Define.
12502
12503 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12504
12505 PR target/42240
12506 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12507 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12508
12509 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12510
12511 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12512 (ARM Options): Ditto.
12513 (i386 and x86-64 Options): Ditto.
12514 (RX Options): Ditto.
12515 (SPARC Options): Ditto.
12516
12517 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12518
12519 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12520 FreeBSD 6 and later. Generally use cpu generic.
12521
12522 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12523
12524 * doc/cpp.texi: Update copyright years.
12525
12526 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12527
12528 PR target/46898
12529 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12530
12531 2011-02-25 Jon Beniston <jon@beniston.com>
12532
12533 PR target/46898
12534 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12535 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12536 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12537 (lm32_block_move_inline): Add type cast to remove warning.
12538 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12539 (gen_int_relational): Move declarations to start of function.
12540
12541 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12542
12543 PR tree-optimization/45470
12544 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12545 can throw internally only.
12546 * tree-vect-stmts.c (vectorizable_call): Likewise.
12547
12548 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12549
12550 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12551 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12552 * config/stormy16/stormy16-protos.h
12553 (xstormy16_preferred_reload_class): Remove.
12554 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12555 static. Change 'rclass' argument and return type to reg_class_t.
12556 (TARGET_PREFERRED_RELOAD_CLASS,
12557 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12558
12559 2011-02-24 Richard Guenther <rguenther@suse.de>
12560
12561 * lto-streamer-in.c (input_bb): Do not find referenced vars
12562 in debug statements.
12563
12564 2011-02-23 Jason Merrill <jason@redhat.com>
12565
12566 * common.opt (fabi-version): Document v5 and v6.
12567
12568 2011-02-23 Richard Guenther <rguenther@suse.de>
12569
12570 PR tree-optimization/47849
12571 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12572
12573 2011-02-23 Jie Zhang <jie@codesourcery.com>
12574
12575 * opts-common.c (decode_cmdline_option): Print empty string
12576 argument as "" in decoded->orig_option_with_args_text.
12577 * gcc.c (execute): Print empty string argument as ""
12578 in the verbose output.
12579 (do_spec_1): Keep empty string argument.
12580
12581 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12582
12583 * config.gcc: Declare score-* and crx-* obsolete.
12584
12585 2011-02-23 Jie Zhang <jie@codesourcery.com>
12586
12587 PR rtl-optimization/47763
12588 * web.c (web_main): Ignore naked clobber when replacing register.
12589
12590 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12591
12592 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12593 Remove.
12594
12595 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12596
12597 PR doc/47848
12598 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12599
12600 2011-02-22 Mike Stump <mikestump@comcast.net>
12601
12602 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12603 assembler.
12604 * configure: Regenerate.
12605
12606 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12607
12608 PR rtl-optimization/46002
12609 * ira-color.c (update_copy_costs): Change class intersection
12610 test to reg_class_contents[] test of 'hard_regno'.
12611
12612 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12613
12614 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12615 than Driver option.
12616 * config/hpux11.opt (mt): Likewise.
12617 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12618 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12619 * config/vax/elf.opt (mno-asm-pic): Likewise.
12620 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12621
12622 2011-02-21 Mike Stump <mikestump@comcast.net>
12623
12624 PR target/47822
12625 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12626 tree so we can get save the type.
12627 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12628 for CFString instead of trying to use past the end of the builtins.
12629 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12630 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12631 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12632 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12633 Rename to darwin_builtin_cfstring.
12634 (darwin_init_cfstring_builtins): Return the built type.
12635
12636 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12637
12638 PR target/47840
12639 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12640 (_mm256_insert_epi64): Use _mm_insert_epi64.
12641
12642 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12643
12644 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12645 * config/stormy16/stormy16-protos.h
12646 (xstormy16_mode_dependent_address_p): Remove.
12647 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12648 Make static. Change return type to bool. Change argument type to
12649 const_rtx. Remove dead code.
12650 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12651
12652 2011-02-21 Richard Guenther <rguenther@suse.de>
12653
12654 PR lto/47820
12655 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12656 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12657 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12658 TUs context.
12659 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12660 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12661
12662 2011-02-20 Richard Guenther <rguenther@suse.de>
12663
12664 PR lto/47822
12665 * tree.c (free_lang_data_in_decl): Clean builtins from
12666 the TU decl BLOCK_VARS.
12667
12668 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12669
12670 PR debug/47620
12671 PR debug/47630
12672 * haifa-sched.c (fix_tick_ready): Skip tick computation
12673 for debug insns.
12674
12675 2011-02-19 Richard Guenther <rguenther@suse.de>
12676
12677 PR lto/47647
12678 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12679 Remove lazy BLOCK_VARS streaming.
12680 (lto_input_ts_block_tree_pointers): Likewise.
12681 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12682
12683 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12684
12685 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12686
12687 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12688
12689 * config/i386/biarch32.h, config/i386/mach.h,
12690 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12691
12692 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12693
12694 PR target/47800
12695 * config/i386/i386.md (peephole2 for shift and plus): Use
12696 operands[1] original mode in the first insn.
12697
12698 2011-02-18 Mike Stump <mikestump@comcast.net>
12699
12700 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12701
12702 2011-02-18 Jan Hubicka <jh@suse.cz>
12703
12704 PR middle-end/47788
12705 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12706 to zero when the function is not inlinable at all.
12707
12708 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12709
12710 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12711 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12712 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12713 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12714 * config/pa/t-pa64: Likewise.
12715 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12716
12717 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12718
12719 PR driver/47787
12720 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12721
12722 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12723
12724 PR target/47792
12725 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12726
12727 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12728
12729 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12730 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12731 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12732 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12733 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12734 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12735 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12736 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12737 m32r_legitimate_address_p): New functions.
12738 * config/m32r/constraints.md (constraint "S"): Don't use
12739 STORE_PREINC_PREDEC_P.
12740 (constraint "U"): Don't use LOAD_POSTINC_P.
12741
12742 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12743
12744 PR rtl-optimization/46178
12745 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12746 compute ira_hard_regno_cover_class[].
12747
12748 2011-02-18 Richard Guenther <rguenther@suse.de>
12749
12750 PR lto/47798
12751 * lto-streamer.h (lto_global_var_decls): Declare.
12752 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12753 statics for global var processing.
12754
12755 2011-02-18 Richard Guenther <rguenther@suse.de>
12756
12757 PR tree-optimization/47737
12758 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12759 edge dominance check.
12760
12761 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12762
12763 PR debug/47780
12764 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12765 avoid invalid rtx sharing.
12766
12767 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12768
12769 * doc/cpp.texi (Obsolete Features): Add background on the
12770 origin of assertions.
12771
12772 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12773
12774 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12775 objc_abi == 2.
12776 * config/darwin.c (output_objc_section_asm_op): Added support for
12777 ABI v1 and v2.
12778 (is_objc_metadata): New.
12779 (darwin_objc2_section): New.
12780 (darwin_objc1_section): New.
12781 (machopic_select_section): Added support for ABI v1 and v2.
12782 (darwin_emit_objc_zeroed): New.
12783 (darwin_output_aligned_bss): Detect objc metadata and treat it
12784 appropriately.
12785 (darwin_asm_output_aligned_decl_common): Same.
12786 (darwin_asm_output_aligned_decl_local): Same.
12787 * config/darwin-sections.def: Updated for ABI v1 and v2.
12788 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12789 compiling Objective-C code for the NeXT runtime, default to using
12790 ABI version 0 for 32-bit, and version 2 for 64-bit.
12791
12792 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12793
12794 * common.opt (optimize_fast): New Variable.
12795 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12796 instead of local variable ofast.
12797
12798 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12799
12800 * doc/invoke.texi (fobjc-abi-version): Documented.
12801 (fobjc-nilcheck): Documented.
12802 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12803 version.
12804
12805 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12806
12807 PR driver/47390
12808 * common.opt (export-dynamic): New Driver option.
12809 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12810
12811 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12812
12813 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12814
12815 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12816 Jan Hubicka <jh@suse.cz>
12817
12818 PR debug/47106
12819 PR debug/47402
12820 * cfgexpand.c (account_used_vars_for_block): Remove.
12821 (estimated_stack_frame_size): Use referenced vars.
12822 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12823 that were referenced in the original function. Test src_fn
12824 rather than cfun. Drop redundant get_var_ann.
12825 (setup_one_parameter): Drop redundant get_var_ann.
12826 (declare_return_variable): Likewise.
12827 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12828 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12829 * ipa-inline.c (compute_inline_parameters): Do not compute
12830 disregard_inline_limits here.
12831 (compute_inlinable_for_current, pass_inlinable): New.
12832 (pass_inline_parameters): Require PROP_referenced_vars.
12833 * cgraphunit.c (cgraph_process_new_functions): Don't run
12834 compute_inline_parameters explicitly unless function is in SSA form.
12835 (cgraph_analyze_function): Set .disregard_inline_limits.
12836 * tree-sra.c (convert_callers): Compute inliner parameters
12837 only for functions already in SSA form.
12838
12839 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12840
12841 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12842 -mlittle-endian-data.
12843
12844 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12845
12846 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12847 -mno-fpu, not -fpu and -no-fpu.
12848 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12849 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12850
12851 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12852
12853 PR target/43653
12854 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12855 input reload with PLUS RTX.
12856
12857 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12858
12859 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12860 of InverseVar(MDMX).
12861
12862 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12863
12864 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12865 --m4-340.
12866
12867 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12868
12869 * config/mn10300/mn10300.opt (mno-crt0): New.
12870
12871 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12872
12873 * config/m68k/uclinux.opt (static-libc): New Driver option.
12874
12875 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12876
12877 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12878
12879 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12880
12881 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12882 %{muser-extend-enabled}.
12883
12884 2011-02-16 Richard Guenther <rguenther@suse.de>
12885
12886 PR tree-optimization/47738
12887 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12888 the TODO from tree_predictive_commoning.
12889
12890 2011-02-15 Jeff Law <law@redhat.com>
12891
12892 Revert
12893 2011-01-25 Jeff Law <law@redhat.com>
12894
12895 PR rtl-optimization/37273
12896 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12897 handle them like argument loads from stack slots. Do not double
12898 count memory for memory constants and argument loads from stack slots.
12899
12900 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12901
12902 PR middle-end/47725
12903 * combine.c (cant_combine_insn_p): Revert the last change.
12904
12905 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12906
12907 PR target/47755
12908 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12909 mode for vector constants. Remove code that checks for TImode.
12910
12911 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12912
12913 PR debug/47106
12914 PR debug/47402
12915 * cgraph.h (compute_inline_parameters): Return void.
12916 * ipa-inline.c (compute_inline_parameters): Adjust.
12917
12918 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12919
12920 PR debug/47106
12921 PR debug/47402
12922 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12923 rather than decl.
12924 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12925 * ipa-inline.c (compute_inline_parameters): Adjust.
12926
12927 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12928
12929 PR debug/47106
12930 PR debug/47402
12931 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12932 Adjust all users. Pass FN to...
12933 * tree-flow-inline.h (first_referenced_var): ... this. Add
12934 fn argument.
12935 * ipa-struct-reorg.c: Adjust.
12936 * tree-dfa.c: Adjust.
12937 * tree-into-ssa.c: Adjust.
12938 * tree-sra.c: Adjust.
12939 * tree-ssa-alias.c: Adjust.
12940 * tree-ssa-live.c: Adjust.
12941 * tree-ssa.c: Adjust.
12942 * tree-ssanames.c: Adjust.
12943 * tree-tailcall.c: Adjust.
12944
12945 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12946
12947 PR debug/47106
12948 PR debug/47402
12949 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12950 Adjust all callers.
12951 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12952 * tree-flow-inline.h: Adjust.
12953 * gimple-pretty-print.c: Adjust.
12954 * tree-into-ssa.c: Adjust.
12955 * tree-ssa.c: Adjust.
12956 * cfgexpand.c: Adjust.
12957
12958 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12959
12960 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12961 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12962 (EXTRA_CONSTRAINT): Delete.
12963 * config/iq2000/constraints.md: New file.
12964 * config/iq2000/iq2000.md: Include it.
12965 (define_insn ""): Delete.
12966 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12967 unsupported constraint letters from patterns.
12968 (call_value, call_value_internal1): Likewise.
12969 (call_value_multiple_internal1): Likewise.
12970
12971 2011-02-15 Nick Clifton <nickc@redhat.com>
12972
12973 * config/mn10300/mn10300.c: Include tm-constrs.h.
12974 (struct liw_data): New data structure describing an LIW candidate
12975 instruction.
12976 (extract_bundle): Use struct liw_data. Allow small integer
12977 operands for some instructions.
12978 (check_liw_constraints): Use struct liw_data. Remove swapped
12979 parameter. Add comments describing the checks. Fix bug when
12980 assigning the source of liw1 to the source of liw2.
12981 (liw_candidate): Delete. Code moved into extract_bundle.
12982 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12983 before swapping.
12984 * config/mn10300/predicates.md (liw_operand): New predicate.
12985 Allows registers and small integer constants.
12986 * config/mn10300/constraints.md (O): New constraint. Accetps
12987 integers in the range -8 to +7 inclusive.
12988 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12989 for moving a small integer into a register. Give this alternative
12990 LIW attributes.
12991 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12992 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12993 using the J,K,L and M constraints,
12994 (liw): Remove SI mode on second operands to allow for HI and QI
12995 mode values.
12996 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12997 instruction.
12998
12999 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13000
13001 PR middle-end/47725
13002 * combine.c (cant_combine_insn_p): Check zero/sign extended
13003 hard registers.
13004
13005 2011-02-15 Richard Guenther <rguenther@suse.de>
13006
13007 PR tree-optimization/47743
13008 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13009 for a non-type-compatible VN lookup bail out.
13010
13011 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13012
13013 * config/fr30/constraints.md: New file.
13014 * config/fr30/fr30.md: Include it.
13015 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13016 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13017 (EXTRA_CONSTRAINT): Delete.
13018
13019 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13020
13021 * config/frv/constraints.md: New file.
13022 * config/frv/predicates.md: Include it.
13023 * config/frv/frv.c (reg_class_from_letter): Delete.
13024 (frv_option_override): Don't initialize it.
13025 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13026 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13027 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13028 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13029 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13030 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13031 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13032 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13033 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13034 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13035 (REG_CLASS_FROM_CONSTRAINT): Delete.
13036
13037 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13038
13039 PR middle-end/47581
13040 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13041 if frame size is 0 in a leaf function.
13042
13043 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13044
13045 PR pch/14940
13046 * config/alpha/host-osf.c: New file.
13047 * config/alpha/x-osf: New file.
13048 * config.host (alpha*-dec-osf*): Use it.
13049
13050 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13051
13052 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13053 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13054 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13055 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13056 type to const_rtx.
13057 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13058
13059 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13060
13061 * config/stormy16/constraints.md: New file.
13062 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13063 Use satisfies_constraint_Q and satisfies_constraint_R.
13064 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13065 Delete.
13066 (xstormy16_legitiamte_address_p): Declare.
13067 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13068 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13069 (EXTRA_CONSTRAINT): Delete.
13070 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13071 Un-staticize.
13072 (xstormy16_extra_constraint_p): Delete.
13073
13074 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13075
13076 PR tree-optimization/46494
13077 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13078 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13079 (pass_rtl_loop_done): Add TODO_verify_flow.
13080 * fwprop.c (pass_rtl_fwprop): Likewise.
13081 * modulo-sched.c (pass_sms): Likewise.
13082 * tree-ssa-dom.c (pass_dominator): Likewise.
13083 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13084 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13085 (pass_tree_loop_done): Likewise.
13086 * tree-ssa-pre.c (execute_pre): Likewise.
13087 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13088 * tree-ssa-sink.c (pass_sink_code): Likewise.
13089 * tree-vrp.c (pass_vrp): Likewise.
13090
13091 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13092
13093 * config/v850/constraints.md: New file.
13094 * config/v850/v850.md: Include it.
13095 * config/v850/predicates.md (reg_or_0_operand): Use
13096 satisfies_constraint_G.
13097 (special_symbolref_operand): Use satisfies_constraint_K.
13098 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13099 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13100 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13101 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13102 (EXTRA_CONSTRAINT): Delete.
13103 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13104 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13105 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13106
13107 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13108
13109 PR target/47696
13110 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13111 description.
13112
13113 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13114
13115 * config/mcore/constraints.md: New file.
13116 * config/mcore/mcore.md: Include it.
13117 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13118 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13119 (REG_CLASS_FROM_LETTER): Delete.
13120 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13121 insn_const_int_ok_for_constraint.
13122 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13123 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13124 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13125 (EXTRA_CONSTRAINT): Delete.
13126
13127 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13128
13129 PR ada/41929
13130 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13131 (IS_SIGHANDLER): Define.
13132 (sparc64_is_sighandler): New function, split off from
13133 sparc64_fallback_frame_state.
13134 (sparc_is_sighandler): New function, split off from
13135 sparc_fallback_frame_state.
13136 (sparc64_fallback_frame_state): Merge with ...
13137 (sparc_fallback_frame_state): ... this into ...
13138 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13139 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13140 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13141 stack instead of hardcoded offsets.
13142
13143 2011-02-14 Andriy Gapon <avg@freebsd.org>
13144
13145 PR target/45808
13146 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13147
13148 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13149
13150 * configure: Regenerate.
13151
13152 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13153
13154 PR driver/45731
13155 * gcc.c (asm_options): Correct spec matching --target-help.
13156
13157 2011-02-12 Martin Jambor <mjambor@suse.cz>
13158
13159 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13160 to gimple call error.
13161
13162 2011-02-12 Mike Stump <mikestump@comcast.net>
13163
13164 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13165 comments in backslash regions.
13166
13167 2011-02-12 Mike Stump <mikestump@comcast.net>
13168 Jakub Jelinek <jakub@redhat.com>
13169 Iain Sandoe <iains@gcc.gnu.org>
13170
13171 PR target/47324
13172 * dwarf2out.c (output_cfa_loc): When required, apply the
13173 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13174 (output_loc_sequence): Likewise.
13175 (output_loc_operands_raw): Likewise.
13176 (output_loc_sequence_raw): Likewise.
13177 (output_cfa_loc): Likewise.
13178 (output_loc_list): Suppress register number adjustment when
13179 calling output_loc_sequence()
13180 (output_die): Likewise.
13181
13182 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13183
13184 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13185 Remove macros.
13186 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13187 xtensa_memory_move_cost): New functions.
13188 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13189
13190 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13191
13192 PR lto/47225
13193 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13194 in the current directory.
13195 * configure: Rebuilt.
13196
13197 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13198
13199 * config/darwin.c (darwin_override_options): Add a hunk missed
13200 from the commit of r168571. Trim comment line lengths and
13201 correct indents of the preceding block.
13202
13203 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13204
13205 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13206 the switch.
13207
13208 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13209
13210 * common.opt (nostartfiles): New Driver option.
13211
13212 2011-02-11 Xinliang David Li <davidxl@google.com>
13213
13214 PR tree-optimization/47707
13215 * tree-chrec.c (convert_affine_scev): Keep type precision.
13216
13217 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13218
13219 PR tree-optimization/47420
13220 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13221
13222 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13223
13224 PR rtl-optimization/47614
13225 * rtl.h (check_for_inc_dec): Declare.
13226 * dse.c (check_for_inc_dec): Externalize...
13227 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13228 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13229
13230 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13231
13232 PR driver/47678
13233 * gcc.c (main): Do not compile inputs if there were errors in
13234 option handling.
13235 * opts-common.c (read_cmdline_option): Check for wrong language
13236 after other error checks.
13237
13238 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13239
13240 * cgraph.c: Fix comment typos.
13241 * cgraph.h: Likewise.
13242 * cgraphunit.c: Likewise.
13243 * ipa-cp.c: Likewise.
13244 * ipa-inline.c: Likewise.
13245 * ipa-prop.c: Likewise.
13246 * ipa-pure-const.c: Likewise.
13247 * ipa-ref.c: Likewise.
13248 * ipa-reference.c: Likewise.
13249
13250 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13251
13252 PR debug/47684
13253 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13254
13255 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13256
13257 PR testsuite/47400
13258 * doc/sourcebuild.texi (Require Support): Document
13259 dg-require-ascii-locale.
13260
13261 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13262
13263 * doc/lto.texi (Write summary): Fix missing parentheses.
13264
13265 2011-02-10 DJ Delorie <dj@redhat.com>
13266
13267 * config/m32c/m32c.c (m32c_option_override): Disable
13268 -fcombine-stack-adjustments until flag value tracking and compare
13269 optimization can be rewritten.
13270
13271 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13272
13273 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13274 PROCESSOR_POWER7.
13275 (PROCESSOR_DEFAULT64): Likewise.
13276
13277 2011-02-10 Richard Henderson <rth@redhat.com>
13278
13279 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13280 change from 2011-02-03.
13281 * config/rx/rx.c (flags_from_code): Likewise.
13282 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13283 is valid, n/pz otherwise.
13284 (rx_select_cc_mode): Return CCmode if Y is not zero.
13285
13286 2011-02-10 Richard Guenther <rguenther@suse.de>
13287
13288 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13289
13290 2011-02-10 Richard Guenther <rguenther@suse.de>
13291
13292 PR tree-optimization/47677
13293 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13294
13295 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13296
13297 PR target/47665
13298 * combine.c (make_compound_operation): Only change shifts into
13299 multiplication for SCALAR_INT_MODE_P.
13300
13301 2011-02-10 Jie Zhang <jie@codesourcery.com>
13302
13303 PR testsuite/47622
13304 Revert
13305 2011-02-05 Jie Zhang <jie@codesourcery.com>
13306 PR debug/42631
13307 * web.c (entry_register): Don't clobber the number of the
13308 first uninitialized reference in used[].
13309
13310 2011-02-09 Richard Guenther <rguenther@suse.de>
13311
13312 PR tree-optimization/47664
13313 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13314 all edges again.
13315
13316 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13317
13318 PR target/46481
13319 PR target/47032
13320 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13321 PROCESSOR_POWER7.
13322 (PROCESSOR_DEFAULT64): Same.
13323 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13324
13325 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13326
13327 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13328
13329 2011-02-09 Martin Jambor <mjambor@suse.cz>
13330
13331 PR middle-end/45505
13332 * tree-sra.c (struct access): New flags grp_scalar_read and
13333 grp_scalar_write. Changed description of assignment read and write
13334 flags.
13335 (dump_access): Dump new flags, reorder all of them.
13336 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13337 to detect multiple scalar reads.
13338 (analyze_access_subtree): Use the new scalar read write flags instead
13339 of the old flags. Adjusted comments.
13340
13341 2011-02-08 DJ Delorie <dj@redhat.com>
13342
13343 PR target/47548
13344 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13345 patterns.
13346
13347 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13348
13349 * config/m68k/uclinux.opt: New.
13350 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13351
13352 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13353
13354 * config/cris/elf.opt (sim): New Driver option.
13355
13356 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13357
13358 * config/xtensa/elf.opt: New.
13359 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13360
13361 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13362
13363 * config/vax/elf.opt: New.
13364 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13365
13366 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13367
13368 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13369
13370 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13371
13372 * config/gnu-user.opt: New.
13373 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13374 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13375 *-*-uclinux*): Use gnu-user.opt.
13376
13377 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13378
13379 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13380 * config/i386/gnu.h (CPP_SPEC): Likewise.
13381
13382 2011-02-08 Ian Lance Taylor <iant@google.com>
13383
13384 * common.opt (fcx-limited-range): Add SetByCombined flag.
13385 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13386 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13387 (fassociative-math, freciprocal-math): Likewise.
13388 (funsafe-math-optimizations): Likewise.
13389 * opth-gen.awk: Handle SetByCombined.
13390 * optc-gen.awk: Likewise.
13391 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13392 (set_unsafe_math_optimizations_flags): Likewise.
13393 * doc/options.texi (Option properties): Document SetByCombined.
13394
13395 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13396
13397 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13398 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13399 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13400 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13401 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13402
13403 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13404
13405 PR tree-optimization/46834
13406 PR tree-optimization/46994
13407 PR tree-optimization/46995
13408 * graphite-sese-to-poly.c (used_outside_reduction): New.
13409 (detect_commutative_reduction): Call used_outside_reduction.
13410 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13411 translate_scalar_reduction_to_array only when at least one
13412 loop-phi/close-phi tuple has been detected.
13413
13414 2011-02-08 Richard Guenther <rguenther@suse.de>
13415
13416 PR middle-end/47639
13417 * tree-vect-generic.c (expand_vector_operations_1): Update
13418 stmts here ...
13419 (expand_vector_operations): ... not here. Cleanup EH info
13420 and the CFG if required.
13421
13422 2011-02-08 Richard Guenther <rguenther@suse.de>
13423
13424 PR tree-optimization/47641
13425 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13426 require type compatibility.
13427
13428 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13429
13430 * gimple-low.c (lower_function_body): Don't remove the location of
13431 the return statement here.
13432 (lower_gimple_return): Do it here instead but only if the return
13433 statement is actually used twice.
13434
13435 2011-02-08 Richard Guenther <rguenther@suse.de>
13436
13437 PR tree-optimization/47632
13438 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13439 unused up_to_stmt parameter, return whether cfg-cleanup is
13440 necessary, remove EH info properly.
13441 (forward_propagate_into_gimple_cond): Adjust caller.
13442 (forward_propagate_into_cond): Likewise.
13443 (forward_propagate_comparison): Likewise.
13444 (tree_ssa_forward_propagate_single_use_vars): Make
13445 forward_propagate_comparison case similar to the two others.
13446
13447 2011-02-08 Nick Clifton <nickc@redhat.com>
13448
13449 * config/mn10300/mn10300.opt (mliw): New command line option.
13450 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13451 (liw_bundling): New automaton.
13452 (liw): New attribute.
13453 (liw_op): New attribute.
13454 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13455 (movsi_internal): Add LIW attributes.
13456 (andsi3): Likewise.
13457 (iorsi3): Likewise.
13458 (xorsi3): Likewise.
13459 (addsi3): Separate register and immediate alternatives.
13460 Add LIW attributes.
13461 (subsi3): Likewise.
13462 (cmpsi): Likewise.
13463 (aslsi3): Likewise.
13464 (lshrsi3): Likewise.
13465 (ashrsi3): Likewise.
13466 (liw): New pattern.
13467 * config/mn10300/mn10300.c (liw_op_names): New
13468 (mn10300_print_operand): Handle 'W' operand descriptor.
13469 (extract_bundle): New function.
13470 (check_liw_constraints): New function.
13471 (liw_candidate): New function.
13472 (mn10300_bundle_liw): New function.
13473 (mn10300_reorg): New function.
13474 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13475 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13476 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13477 __LIW__ or __NO_LIW__.
13478 * doc/invoke.texi: Describe the -mliw command line option.
13479
13480 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13481
13482 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13483 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13484 pthread_mutex_unlock): Remove.
13485 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13486 * config/pa/t-pa64: Likewise.
13487 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13488 shared libc if not linking against libpthread.
13489 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13490
13491 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13492
13493 PR target/47558
13494 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13495 on 10.6 and later to ensure that we always use the unwinder from
13496 the system. Only add -no_compact_unwind when tarteting darwin
13497 10.6 or later.
13498
13499 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13500
13501 PR target/46997
13502 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13503 (vec_interleave_lowv2sf): Ditto.
13504 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13505 (vec_extract_oddv2sf): Ditto.
13506
13507 2011-02-07 Mike Stump <mikestump@comcast.net>
13508
13509 PR target/42333
13510 Add __ieee_divdc3 entry point.
13511 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13512 entry point.
13513 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13514 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13515 * config/darwin.c (darwin_rename_builtins): Add.
13516 * config/darwin-protos.h (darwin_rename_builtins): Add.
13517
13518 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13519
13520 PR target/47636
13521 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13522 for the condition.
13523
13524 2011-02-07 Mike Stump <mikestump@comcast.net>
13525
13526 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13527
13528 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13529
13530 PR target/47534
13531 * config/avr/libgcc.S (exit): Move .endfunc
13532
13533 2011-02-07 Richard Guenther <rguenther@suse.de>
13534
13535 PR tree-optimization/47615
13536 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13537 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13538 (run_scc_vn): Initialize it.
13539 (visit_reference_op_load): Use it.
13540 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13541
13542 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13543
13544 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13545 DImode trapping arithmetic libfuncs.
13546
13547 2011-02-07 Richard Guenther <rguenther@suse.de>
13548
13549 PR tree-optimization/47621
13550 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13551 two duplicates ...
13552 (execute_update_addresses_taken): ... here. Make it more
13553 conservative in what we accept.
13554
13555 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13556
13557 * config/sparc/freebsd.h (ASM_SPEC): Define.
13558 * config/sparc/vxworks.h (ASM_SPEC): Define.
13559
13560 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13561
13562 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13563
13564 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13565
13566 * doc/invoke.texi: Remove reference to compiler internals from
13567 user documentation.
13568
13569 * reg-notes.def: Remove REG_VALUE_PROFILE.
13570 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13571
13572 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13573
13574 PR middle-end/47610
13575 * varasm.c (default_section_type_flags): If decl is NULL,
13576 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13577
13578 2011-02-05 Jie Zhang <jie@codesourcery.com>
13579
13580 PR debug/42631
13581 * web.c (entry_register): Don't clobber the number of the
13582 first uninitialized reference in used[].
13583
13584 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13585
13586 PR tree-optimization/46194
13587 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13588 (build_classic_dist_vector_1): Do not represent classic distance
13589 vectors when the access functions are variating in different loops.
13590
13591 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13592
13593 * config/mips/iris6.opt: New.
13594 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13595
13596 2011-02-04 Richard Henderson <rth@redhat.com>
13597 Steve Ellcey <sje@cup.hp.com>
13598
13599 PR target/46997
13600 * config/ia64/predicates.md (mux1_brcst_element): New.
13601 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13602 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13603 (ia64_unpack_sign): New.
13604 (ia64_expand_unpack): Rewrite using new routines.
13605 (ia64_expand_widen_sum): Ditto.
13606 (ia64_expand_dot_prod_v8qi): Ditto.
13607 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13608 routines, add endian check.
13609 (pmpy2_even): Rename from pmpy2_r, add endian check.
13610 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13611 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13612 (vec_widen_smult_hi_v4hi): Ditto.
13613 (vec_widen_umult_lo_v4hi): Ditto.
13614 (vec_widen_umult_hi_v4hi): Ditto.
13615 (mulv2si3): Change endian checks.
13616 (sdot_prodv4hi): Rewrite with new calls.
13617 (udot_prodv4hi): New.
13618 (vec_pack_ssat_v4hi): Add endian check.
13619 (vec_pack_usat_v4hi): Ditto.
13620 (vec_pack_ssat_v2si): Ditto.
13621 (max1_even): Rename from max1_r, add endian check.
13622 (max1_odd): Rename from max1_l, add endian check.
13623 (*mux1_rev): Format change.
13624 (*mux1_mix): Ditto.
13625 (*mux1_shuf): Ditto.
13626 (*mux1_alt): Ditto.
13627 (*mux1_brcst_v8qi): Use new predicate.
13628 (vec_extract_evenv8qi): Remove endian check.
13629 (vec_extract_oddv8qi): Ditto.
13630 (vec_interleave_lowv4hi): Format change.
13631 (vec_interleave_highv4hi): Ditto.
13632 (mix2_even): Rename from mix2_r, add endian check.
13633 (mix2_odd): Rename from mux2_l, add endian check.
13634 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13635 (vec_extract_evenodd_helper): Format change.
13636 (vec_extract_evenv4hi): Remove endian check.
13637 (vec_extract_oddv4hi): Remove endian check.
13638 (vec_interleave_lowv2si): Format change.
13639 (vec_interleave_highv2si): Format change.
13640 (vec_initv2si): Remove endian check.
13641 (vecinit_v2si): Add endian check.
13642 (reduc_splus_v2sf): Add endian check.
13643 (reduc_smax_v2sf): Ditto.
13644 (reduc_smin_v2sf): Ditto.
13645 (vec_initv2sf): Remove endian check.
13646 (fpack): Add endian check.
13647 (fswap): Add endian check.
13648 (vec_interleave_highv2sf): Add endian check.
13649 (vec_interleave_lowv2sf): Add endian check.
13650 (fmix_lr): Add endian check.
13651 (vec_setv2sf): Format change.
13652 (*vec_extractv2sf_0_be): Use shift to extract operand.
13653 (*vec_extractv2sf_1_be): New.
13654 (vec_pack_trunc_v4hi): Add endian check.
13655 (vec_pack_trunc_v2si): Format change.
13656
13657 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13658
13659 PR inline-asm/23200
13660 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13661 do bb, locus and block comparison and disallow loads if it is not set.
13662 (stmt_is_replaceable_p): New function.
13663 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13664 callers.
13665 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13666 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13667 SSA_NAME_DEF_STMT.
13668 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13669
13670 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13671
13672 * config/rs6000/xilinx.opt: New.
13673 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13674
13675 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13676
13677 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13678
13679 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13680
13681 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13682 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13683 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13684 secondary_reload_info, xtensa_secondary_reload): Remove.
13685 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13686 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13687 (xtensa_preferred_reload_class): Make static. Change return and
13688 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13689 Use CONST_DOUBLE_P predicate.
13690 (xtensa_preferred_output_reload_class): New function.
13691 (xtensa_secondary_reload): Make static.
13692
13693 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13694
13695 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13696 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13697 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13698
13699 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13700
13701 PR middle-end/31490
13702 * output.h (SECTION_RELRO): Define.
13703 (SECTION_MACH_DEP): Adjust.
13704 (get_variable_section): New prototype.
13705 * varpool.c (varpool_finalize_named_section_flags): New function.
13706 (varpool_assemble_pending_decls): Call it.
13707 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13708 * cgraphunit.c (cgraph_output_in_order): Call
13709 varpool_finalize_named_section_flags.
13710 * varasm.c (get_section): Allow section flags conflicts between
13711 relro and read-only sections if the section hasn't been declared yet.
13712 Set SECTION_OVERRIDE after diagnosing section type conflict.
13713 (get_variable_section): No longer static.
13714 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13715 readonly sections that need relocations.
13716 (decl_readonly_section_1): New function.
13717 (decl_readonly_section): Use it.
13718
13719 Revert:
13720 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13721 Steve Ellcey <sje@cup.hp.com>
13722
13723 PR middle-end/31490
13724 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13725 if section attribute used.
13726
13727 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13728
13729 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13730 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13731 (darwin_init_sections): Remove assertion.
13732
13733 2011-02-03 Nick Clifton <nickc@redhat.com>
13734
13735 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13736 lt and ge.
13737 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13738 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13739 instead of "n" and "pz".
13740 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13741 CC_FLAG_S.
13742
13743 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13744
13745 PR target/47312
13746 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13747 fma, expand FMA_EXPR as fma{,f,l} call.
13748
13749 PR lto/47274
13750 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13751 copy them into a unsigned char variable and pass address of it to
13752 lto_output_data_stream.
13753
13754 PR target/47564
13755 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13756 around backend_init_target and lang_dependent_init_target calls.
13757 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13758 (verify_cgraph_node): Don't call set_cfun here. Use
13759 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13760 Set error_found for incorrectly represented calls to thunks.
13761
13762 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13763
13764 PR debug/43092
13765 PR rtl-optimization/43494
13766 * rtl.h (for_each_inc_dec_fn): New type.
13767 (for_each_inc_dec): Declare.
13768 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13769 (for_each_inc_dec_find_inc_dec): New fn.
13770 (for_each_inc_dec_find_mem): New fn.
13771 (for_each_inc_dec): New fn.
13772 * dse.c (struct insn_size): Remove.
13773 (replace_inc_dec, replace_inc_dec_mem): Remove.
13774 (emit_inc_dec_insn_before): New fn.
13775 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13776 (canon_address): Pass mem modes to cselib_lookup.
13777 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13778 (cselib_lookup_from_insn): Likewise.
13779 (cselib_subst_to_values): Likewise.
13780 * cselib.c (find_slot_memmode): New var.
13781 (cselib_find_slot): New fn. Use it instead of
13782 htab_find_slot_with_hash everywhere.
13783 (entry_and_rtx_equal_p): Use find_slot_memmode.
13784 (autoinc_split): New fn.
13785 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13786 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13787 Deal with autoinc. Special-case recursion into MEMs.
13788 (cselib_hash_rtx): Likewise.
13789 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13790 address and MEM modes.
13791 (cselib_subst_to_values): Add memmode, pass it on.
13792 Deal with autoinc.
13793 (cselib_lookup): Add memmode argument, pass it on.
13794 (cselib_lookup_from_insn): Add memmode.
13795 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13796 (struct cselib_record_autoinc_data): New.
13797 (cselib_record_autoinc_cb): New fn.
13798 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13799 mode to cselib_lookup. Reset autoinced REGs here instead of...
13800 (cselib_process_insn): ... here.
13801 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13802 to cselib_lookup.
13803 (add_uses): Likewise, also to cselib_subst_to_values.
13804 (add_stores): Likewise.
13805 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13806 cselib_subst_to_values.
13807 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13808 * gcse.c (do_local_cprop): Adjusted.
13809 * postreload.c (reload_cse_simplify_set): Adjusted.
13810 (reload_cse_simplify_operands): Adjusted.
13811 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13812
13813 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13814
13815 PR tree-optimization/45122
13816 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13817 unsafe assumptions when there's more than one loop exit.
13818
13819 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13820
13821 PR target/47272
13822 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13823 Document using vector double with the load/store builtins, and
13824 that the load/store builtins always use Altivec instructions.
13825
13826 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13827 to use altivec memory instructions, even on VSX.
13828 (vector_altivec_store_<mode>): Ditto.
13829
13830 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13831 function.
13832
13833 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13834 V2DF, V2DI support to load/store overloaded builtins.
13835
13836 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13837 altivec load/store builtins for V2DF/V2DI types.
13838
13839 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13840 set avoid indexed addresses on power6 if -maltivec.
13841 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13842 vector_altivec_load/vector_altivec_store builtins.
13843 (altivec_expand_st_builtin): Ditto.
13844 (altivec_expand_builtin): Add VSX memory builtins.
13845 (rs6000_init_builtins): Add V2DI types to internal types.
13846 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13847 load/store builtins.
13848 (rs6000_address_for_altivec): Insure memory address is appropriate
13849 for Altivec.
13850
13851 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13852 vec_vsx_ld and vec_vsx_st.
13853 (vsx_store_<mode>): Ditto.
13854
13855 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13856 variables to hold long long types for VSX vector memory builtins.
13857 (RS6000_BTI_unsigned_long_long): Ditto.
13858 (long_long_integer_type_internal_node): Ditti.
13859 (long_long_unsigned_type_internal_node): Ditti.
13860
13861 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13862 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13863 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13864
13865 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13866 short cuts.
13867 (vec_vsx_st): Ditto.
13868
13869 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13870
13871 * config/pa/pa-hpux10.opt: New.
13872 * config/hpux11.opt (pthread): New Driver option.
13873 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13874 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13875
13876 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13877
13878 * config/ia64/vms.opt: New.
13879 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13880
13881 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13882
13883 PR target/47580
13884 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13885 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13886 generator functions.
13887 (vsx_floatuns<VSi><mode>2): Ditto.
13888 (vsx_fix_trunc<mode><VSi>2): Ditto.
13889 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13890
13891 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13892
13893 * config/i386/djgpp.opt (posix): New Driver option.
13894
13895 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13896
13897 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13898 Move to the unsupported targets list.
13899
13900 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13901
13902 PR rtl-optimization/47525
13903 * df-scan.c: Update copyright years.
13904 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13905 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13906
13907 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13908
13909 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13910 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13911 (ASM_OUTPUT_ASCII): Remove.
13912 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13913
13914 2011-02-02 Jeff Law <law@redhat.com>
13915
13916 PR middle-end/47543
13917 * reload.c (find_reloads_address): Handle reg+d address where both
13918 components are invalid by reloading the entire address.
13919
13920 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13921 Richard Guenther <rguenther@suse.de>
13922
13923 PR tree-optimization/40979
13924 PR bootstrap/47044
13925 * passes.c (init_optimization_passes): After LIM call copy_prop
13926 and DCE to clean up.
13927 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13928
13929 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13930
13931 PR tree-optimization/47576
13932 PR tree-optimization/47555
13933 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13934 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13935 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13936 * tree-scalar-evolution.c (follow_ssa_edge): Use
13937 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13938
13939 2011-02-02 Richard Guenther <rguenther@suse.de>
13940
13941 PR tree-optimization/47566
13942 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13943
13944 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13945
13946 PR debug/47106
13947 PR debug/47402
13948 * tree-inline.c (declare_return_variable): Remove unused caller
13949 variable.
13950
13951 PR debug/47106
13952 PR debug/47402
13953 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13954 * cfgexpand.c (account_used_vars_for_block): Use them.
13955 * tree-nrv.c (tree_nrv): Likewise.
13956 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13957 (dump_scope_block): Likewise.
13958 (remove_unused_locals): Likewise.
13959
13960 PR debug/47106
13961 PR debug/47402
13962 * tree-inline.c (declare_return_variable): Add result decl to
13963 local decls only once.
13964 * gimple-low.c (record_vars_into): Mark newly-created variables
13965 as referenced.
13966
13967 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13968
13969 PR debug/47498
13970 PR debug/47501
13971 PR debug/45136
13972 PR debug/45130
13973 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13974 debug insns.
13975 (no_real_insns_p, schedule_block, set_priorities): Drop special
13976 treatment of boundary debug insns.
13977 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13978 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13979 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13980 (BOUNDARY_DEBUG_INSN_P): Likewise.
13981 (SCHEDULE_DEBUG_INSN_P): Likewise.
13982 * sched-rgn.c (init_ready_list): Drop special treatment of
13983 boundary debug insns.
13984 * final.c (rest_of_clean_state): Clear notes' BB.
13985
13986 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13987
13988 * config/openbsd.opt (assert=): New Driver option.
13989
13990 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13991
13992 * config/i386/nto.opt: New.
13993 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13994
13995 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13996
13997 * config/i386/netware.opt: New.
13998 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13999
14000 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14001
14002 * config/interix.opt (posix): New Driver option.
14003
14004 2011-02-01 DJ Delorie <dj@redhat.com>
14005
14006 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14007
14008 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14009 class for A0/A1.
14010
14011 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14012
14013 PR tree-optimization/47561
14014 * toplev.c (process_options): Print the Graphite flags. Add
14015 flag_loop_flatten to the list of options requiring Graphite.
14016
14017 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14018
14019 * config/i386/cygming.opt (posix): New Driver option.
14020
14021 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14022
14023 * config/arm/vxworks.opt: New.
14024 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14025
14026 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14027
14028 * config/alpha/elf.opt: New.
14029 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14030 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14031
14032 2011-02-01 Richard Guenther <rguenther@suse.de>
14033
14034 PR tree-optimization/47559
14035 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14036 store-motion on references that can throw.
14037
14038 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14039
14040 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14041 * tree-pass.h (TDF_CSELIB): New macro.
14042 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14043 cselib_lookup): Check for it rather than for TDF_DETAILS.
14044
14045 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14046
14047 PR driver/47547
14048 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14049 is HOST_BIT_BUCKET.
14050
14051 * opts.c (finish_options): Don't add x_aux_base_name if it is
14052 HOST_BIT_BUCKET.
14053
14054 2011-02-01 Richard Guenther <rguenther@suse.de>
14055
14056 PR tree-optimization/47555
14057 Revert
14058 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14059
14060 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14061
14062 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14063
14064 PR gcc/46692
14065 * config/lm32/t-lm32: Add multilib for all CPU options.
14066
14067 2011-02-01 Richard Guenther <rguenther@suse.de>
14068
14069 PR tree-optimization/47541
14070 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14071 sure to have a field at offset zero.
14072
14073 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14074
14075 * config/arc/arc.opt (EB, EL): New Driver options.
14076
14077 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14078
14079 * config/alpha/osf5.opt: New.
14080 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14081
14082 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14083
14084 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14085
14086 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14087
14088 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14089 -floop-interchange.
14090 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14091 is an alias of -floop-interchange and that it requires the
14092 Graphite infrastructure.
14093 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14094 flag_loop_interchange based on the value of flag_tree_loop_linear.
14095
14096 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14097 Richard Guenther <rguenther@suse.de>
14098
14099 PR tree-optimization/47538
14100 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14101 type instead of r1type, except for comparisons. For right
14102 shifts and comparisons punt if there are mismatches in
14103 sizetype vs. non-sizetype types.
14104
14105 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14106
14107 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14108 avx_runtime.
14109
14110 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14111
14112 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14113 version number.
14114 * configure: Regenerate.
14115
14116 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14117
14118 * configure.ac (gcc_cv_ld_static_option): Define.
14119 (gcc_cv_ld_dynamic_option): Define.
14120 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14121 instead.
14122 (HAVE_LD_STATIC_DYNAMIC): Update message.
14123 (LD_STATIC_OPTION): Define.
14124 (LD_DYNAMIC_OPTION): Define.
14125 * configure: Regenerate.
14126 * config.in: Regenerate.
14127 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14128 HAVE_LD_STATIC_DYNAMIC]: Use them.
14129
14130 2011-01-31 Nick Clifton <nickc@redhat.com>
14131
14132 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14133 registers inside interrupt handlers if the handler is not a leaf
14134 function.
14135
14136 2011-01-31 Nick Clifton <nickc@redhat.com>
14137
14138 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14139 reg_renumber returning an INVALID_REGNUM.
14140
14141 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14142
14143 PR libgcj/44341
14144 * doc/install.texi: Document host options discarded when cross
14145 configuring target libraries.
14146
14147 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14148
14149 Reverted:
14150 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14151 PR debug/45136
14152 PR debug/45130
14153 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14154 debug insns.
14155 (no_real_insns_p, schedule_block, set_priorities): Drop special
14156 treatment of boundary debug insns.
14157 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14158 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14159 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14160 (BOUNDARY_DEBUG_INSN_P): Likewise.
14161 (SCHEDULE_DEBUG_INSN_P): Likewise.
14162 * sched-rgn.c (init_ready_list): Drop special treatment of
14163 boundary debug insns.
14164 * final.c (rest_of_clean-state): Clear notes' BB.
14165
14166 2011-01-31 Alan Modra <amodra@gmail.com>
14167
14168 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14169 toc relative expressions as we do in print_operand_address.
14170
14171 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14172
14173 * doc/extend.texi: Follow spelling conventions.
14174 * doc/invoke.texi: Fix a typo.
14175
14176 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14177
14178 * config/hpux11.opt: New.
14179 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14180 ia64*-*-hpux*): Use hpux11.opt.
14181
14182 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14183
14184 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14185 to tmake_file.
14186
14187 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14188
14189 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14190 support sites.
14191
14192 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14193
14194 * doc/install.texi (Binaries): Remove outdated reference for
14195 Motorola 68HC11/68HC12 downloads.
14196
14197 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14198
14199 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14200 Drepper's paper.
14201
14202 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14203
14204 PR bootstrap/47147
14205 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14206 used by NetBSD.
14207
14208 2011-01-28 Ahmad Sharif <asharif@google.com>
14209
14210 * value-prof.c (check_counter): Corrected error message.
14211
14212 2011-01-29 Jie Zhang <jie@codesourcery.com>
14213
14214 * config/arm/arm.c (arm_legitimize_reload_address): New.
14215 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14216 arm_legitimize_reload_address.
14217 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14218
14219 2011-01-28 Ian Lance Taylor <iant@google.com>
14220
14221 * godump.c (go_define): Ignore macros whose definitions include
14222 two adjacent operands.
14223
14224 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14225
14226 PR target/42894
14227 * varasm.c (force_const_mem): Store copy of x in desc->constant
14228 instead of x itself.
14229 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14230 itself into REG_EQUAL note.
14231
14232 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14233
14234 * config/freebsd.opt (posix, rdynamic): New Driver options.
14235
14236 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14237
14238 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14239 -Bstatic/-Bdynamic.
14240 * configure: Regenerate.
14241
14242 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14243
14244 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14245 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14246
14247 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14248
14249 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14250 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14251 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14252 (s390_preferred_reload_class): Make static. Change return and
14253 'rclass' argument type to reg_class_t.
14254
14255 2011-01-27 Jan Hubicka <jh@suse.cz>
14256
14257 PR middle-end/46949
14258 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14259 (process_function_and_variable_attributes): Check defined weakrefs.
14260
14261 2011-01-27 Martin Jambor <mjambor@suse.cz>
14262
14263 PR tree-optimization/47228
14264 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14265 build_ref_for_offset.
14266
14267 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14268
14269 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14270
14271 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14272
14273 PR rtl-optimization/46856
14274 * postreload.c (reload_combine_recognize_const_pattern): Do not
14275 separate cc0 setter and user on cc0 targets.
14276
14277 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14278
14279 PR c/43082
14280 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14281 passed a VOID_TYPE expression, immediately emit an error and
14282 return error_mark_node.
14283
14284 2011-01-26 Jeff Law <law@redhat.com>
14285
14286 PR rtl-optimization/47464
14287 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14288 rather than may_trap_p as needed.
14289
14290 2011-01-26 DJ Delorie <dj@redhat.com>
14291
14292 PR rtl-optimization/46878
14293 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14294 setter/user dependency as well.
14295
14296 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14297
14298 PR rtl-optimization/44469
14299 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14300 after removing trivially dead basic blocks.
14301
14302 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14303
14304 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14305 * config/frv/frv.h (LINK_SPEC): Likewise.
14306 * config/i386/netware.h (LINK_SPEC): Likewise.
14307 * config/m68k/linux.h (ASM_SPEC): Likewise.
14308 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14309 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14310 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14311 * config/sparc/linux.h (ASM_SPEC): Likewise.
14312 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14313 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14314
14315 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14316
14317 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14318 * config/frv/frv.h (ASM_SPEC): Likewise.
14319 * config/m68k/linux.h (ASM_SPEC): Likewise.
14320 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14321 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14322 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14323 * config/sparc/linux.h (ASM_SPEC): Likewise.
14324 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14325 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14326
14327 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14328
14329 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14330 * config/frv/frv.h (LINK_SPEC): Likewise.
14331 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14332
14333 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14334
14335 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14336 * config/frv/frv.h (ASM_SPEC): Likewise.
14337 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14338 * config/m68k/linux.h (ASM_SPEC): Likewise.
14339 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14340 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14341 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14342 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14343 * config/sparc/linux.h (ASM_SPEC): Likewise.
14344 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14345 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14346 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14347
14348 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14349
14350 PR target/46997
14351 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14352 (*mux2): Ditto.
14353 (vec_extract_evenodd_help): Ditto.
14354 (vec_extract_evenv4hi): Ditto.
14355 (vec_extract_oddv4hi): Ditto.
14356 (vec_interleave_lowv2si): Ditto.
14357 (vec_interleave_highv2si): Ditto.
14358 (vec_extract_evenv2si): Ditto.
14359 (vec_extract_oddv2si: Ditto.
14360 (vec_pack_trunc_v2si): Ditto.
14361
14362 2011-01-22 Jan Hubicka <jh@suse.cz>
14363
14364 PR target/47237
14365 * cgraph.h (cgraph_local_info): New field can_change_signature.
14366 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14367 signature can change.
14368 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14369 can change.
14370 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14371 (cgraph_function_versioning): We can not change signature of functions
14372 that don't allow that.
14373 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14374 (lto_input_node): Likewise.
14375 * ipa-inline.c (compute_inline_parameters): Compute
14376 local.can_change_signature.
14377 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14378 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14379 functions that can not change signature.
14380 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14381 init_cumulative_args): Do not use local calling conventions
14382 for functions that can not change signature.
14383
14384 2011-01-22 Jan Hubicka <jh@suse.cz>
14385
14386 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14387
14388 2011-01-26 Richard Guenther <rguenther@suse.de>
14389
14390 PR tree-optimization/47190
14391 * cgraphunit.c (process_common_attributes): New function.
14392 (process_function_and_variable_attributes): Use it.
14393
14394 2011-01-26 Richard Guenther <rguenther@suse.de>
14395
14396 PR lto/47423
14397 * cgraphbuild.c (record_eh_tables): Record reference to personality
14398 function.
14399
14400 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14401
14402 PR debug/45454
14403 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14404 non-debug insns from moving up.
14405
14406 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14407
14408 PR target/40125
14409 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14410 t-dlldir{,-x} fragment for build and add it to tmake_file.
14411 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14412 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14413 * config/i386/t-dlldir: New file.
14414 (SHLIB_DLLDIR): Define.
14415 * config/i386/t-dlldir-x: New file.
14416 (SHLIB_DLLDIR): Define.
14417 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14418 (SHLIB_INSTALL): Use it.
14419
14420 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14421
14422 PR target/47246
14423 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14424 lower bound of the allowed Thumb-2 coprocessor load/store
14425 index range to -256. Add explaining comment.
14426
14427 2011-01-25 Ian Lance Taylor <iant@google.com>
14428
14429 * godump.c (go_define): Improve lexing of macro expansion to only
14430 accept expressions which match Go spec.
14431
14432 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14433
14434 PR c++/43601
14435 * tree.c (handle_dll_attribute): Handle it.
14436 * doc/extend.texi (@item dllexport): Mention it.
14437 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14438
14439 2011-01-25 Ian Lance Taylor <iant@google.com>
14440
14441 PR tree-optimization/26854
14442 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14443 (decl_jump_unsafe): Move higher in file, with no other change.
14444 (bind): Set has_jump_unsafe_decl if appropriate.
14445 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14446 (check_earlier_gotos): Likewise.
14447 (c_check_switch_jump_warnings): Likewise.
14448
14449 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14450
14451 * doc/invoke.texi (Warning Options): Add missing hyphen.
14452 (-fprofile-dir): Minor grammatical fixes.
14453 (-fbranch-probabilities): Likewise.
14454
14455 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14456
14457 PR debug/45136
14458 PR debug/45130
14459 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14460 debug insns.
14461 (no_real_insns_p, schedule_block, set_priorities): Drop special
14462 treatment of boundary debug insns.
14463 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14464 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14465 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14466 (BOUNDARY_DEBUG_INSN_P): Likewise.
14467 (SCHEDULE_DEBUG_INSN_P): Likewise.
14468 * sched-rgn.c (init_ready_list): Drop special treatment of
14469 boundary debug insns.
14470 * final.c (rest_of_clean-state): Clear notes' BB.
14471
14472 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14473
14474 * Makefile.in (LAMBDA_H): Removed.
14475 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14476 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14477 lambda-trans.o, and tree-loop-linear.o.
14478 (lto-symtab.o): Remove dependence on LAMBDA_H.
14479 (tree-loop-linear.o): Remove rule.
14480 (lambda-mat.o): Same.
14481 (lambda-trans.o): Same.
14482 (lambda-code.o): Same.
14483 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14484 (tree-vect-slp.o): Same.
14485 * hwint.h (gcd): Moved here.
14486 (least_common_multiple): Same.
14487 * lambda-code.c: Removed.
14488 * lambda-mat.c: Removed.
14489 * lambda-trans.c: Removed.
14490 * lambda.h: Removed.
14491 * tree-loop-linear.c: Removed.
14492 * lto-symtab.c: Do not include lambda.h.
14493 * omega.c (gcd): Removed.
14494 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14495 * tree-data-ref.c (print_lambda_vector): Moved here.
14496 (lambda_vector_copy): Same.
14497 (lambda_matrix_copy): Same.
14498 (lambda_matrix_id): Same.
14499 (lambda_vector_first_nz): Same.
14500 (lambda_matrix_row_add): Same.
14501 (lambda_matrix_row_exchange): Same.
14502 (lambda_vector_mult_const): Same.
14503 (lambda_vector_negate): Same.
14504 (lambda_matrix_row_negate): Same.
14505 (lambda_vector_equal): Same.
14506 (lambda_matrix_right_hermite): Same.
14507 * tree-data-ref.h: Do not include lambda.h.
14508 (lambda_vector): Moved here.
14509 (lambda_matrix): Same.
14510 (dependence_level): Same.
14511 (lambda_transform_legal_p): Removed declaration.
14512 (lambda_collect_parameters): Same.
14513 (lambda_compute_access_matrices): Same.
14514 (lambda_vector_gcd): Same.
14515 (lambda_vector_new): Same.
14516 (lambda_vector_clear): Same.
14517 (lambda_vector_lexico_pos): Same.
14518 (lambda_vector_zerop): Same.
14519 (lambda_matrix_new): Same.
14520 * tree-flow.h (least_common_multiple): Removed declaration.
14521 * tree-parloops.c (lambda_trans_matrix): Moved here.
14522 (LTM_MATRIX): Same.
14523 (LTM_ROWSIZE): Same.
14524 (LTM_COLSIZE): Same.
14525 (LTM_DENOMINATOR): Same.
14526 (lambda_trans_matrix_new): Same.
14527 (lambda_matrix_vector_mult): Same.
14528 (lambda_transform_legal_p): Same.
14529 * tree-pass.h (pass_linear_transform): Removed declaration.
14530 * tree-ssa-loop.c (tree_linear_transform): Removed.
14531 (gate_tree_linear_transform): Removed.
14532 (pass_linear_transform): Removed.
14533 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14534 flag_loop_interchange.
14535
14536 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14537
14538 PR tree-optimization/47265
14539 PR tree-optimization/47443
14540 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14541 if name still has some uses.
14542
14543 2011-01-25 Martin Jambor <mjambor@suse.cz>
14544
14545 PR tree-optimization/47382
14546 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14547 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14548
14549 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14550
14551 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14552 sjlj_except_unwind_info.
14553
14554 2011-01-25 Richard Guenther <rguenther@suse.de>
14555
14556 PR tree-optimization/47426
14557 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14558 visible functions results escape.
14559
14560 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14561
14562 PR target/45701
14563 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14564 (arm_get_frame_offsets): Use it.
14565
14566 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14567 Jakub Jelinek <jakub@redhat.com>
14568
14569 PR tree-optimization/47271
14570 * tree-if-conv.c (bb_postdominates_preds): New.
14571 (if_convertible_bb_p): Call bb_postdominates_preds.
14572 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14573 (predicate_scalar_phi): Call bb_postdominates_preds.
14574
14575 2011-01-25 Nick Clifton <nickc@redhat.com>
14576
14577 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14578 * config/rx/rx.c (rx_function_value): Likewise.
14579 (rx_promote_function_mode): Likewise.
14580 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14581 in order to make it legitimate.
14582 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14583 make sure that the first operand is the same as the result register.
14584 (addsi3_unspec): Delete.
14585 (subdi3): Do not accept immediate operands.
14586 (subdi3_internal): Likewise.
14587
14588 2011-01-25 Jeff Law <law@redhat.com>
14589
14590 PR rtl-optimization/37273
14591 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14592 handle them like argument loads from stack slots. Do not double
14593 count memory for memory constants and argument loads from stack slots.
14594
14595 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14596
14597 PR tree-optimization/47427
14598 PR tree-optimization/47428
14599 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14600 coalesce if the new root var would be TREE_READONLY.
14601
14602 2011-01-25 Richard Guenther <rguenther@suse.de>
14603
14604 PR middle-end/47414
14605 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14606 correct type for TBAA.
14607
14608 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14609
14610 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14611 (close_phi_written_to_memory): Call for_each_index with
14612 dr_indices_valid_in_loop.
14613
14614 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14615
14616 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14617 when it is initialized.
14618
14619 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14620
14621 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14622 call to graphite_find_data_references_in_stmt.
14623 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14624 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14625 call to graphite_find_data_references_in_stmt.
14626 (analyze_drs_in_stmts): Same.
14627 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14628 in which the scalar analysis of indices is performed.
14629 (create_data_ref): Same. Update call to dr_analyze_indices.
14630 (find_data_references_in_stmt): Update call to create_data_ref.
14631 (graphite_find_data_references_in_stmt): Same.
14632 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14633 declaration.
14634 (create_data_ref): Same.
14635 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14636 call to create_data_ref.
14637
14638 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14639
14640 * graphite-sese-to-poly.c (build_poly_scop): Move
14641 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14642
14643 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14644
14645 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14646 VAR_DECL, PARM_DECL, and RESULT_DECL.
14647
14648 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14649
14650 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14651 in a reduction PBB.
14652 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14653 that have already been marked as PBB_IS_REDUCTION.
14654
14655 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14656
14657 * graphite-scop-detection.c (same_close_phi_node): New.
14658 (remove_duplicate_close_phi): New.
14659 (make_close_phi_nodes_unique): New.
14660 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14661
14662 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14663
14664 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14665 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14666 of both data references to be the same.
14667
14668 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14669
14670 * graphite-dependences.c (build_lexicographical_constraint): Remove
14671 the gdim parameter.
14672 (build_lexicographical_constraint): Adjust call to
14673 ppl_powerset_is_empty.
14674 (dependence_polyhedron): Same.
14675 (graphite_legal_transform_dr): Same.
14676 (graphite_carried_dependence_level_k): Same.
14677 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14678 parameter.
14679 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14680
14681 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14682
14683 * graphite-sese-to-poly.c
14684 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14685 (close_phi_written_to_memory): New.
14686 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14687 and unshare_expr.
14688
14689 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14690
14691 * doc/install.texi: Update the expected version number of PPL to 0.11.
14692 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14693 #if PPL_VERSION_MINOR < 11.
14694
14695 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14696
14697 * graphite-dependences.c: Include graphite-cloog-util.h.
14698 (new_poly_ddr): Inlined into dependence_polyhedron.
14699 (free_poly_ddr): Moved close by new_poly_ddr.
14700 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14701 Early return NULL when ppl_powerset_is_empty returns true.
14702 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14703 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14704 (graphite_legal_transform_dr): Call new_poly_ddr.
14705 (graphite_carried_dependence_level_k): Same.
14706 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14707 (dot_transformed_deps_stmt_1): Removed.
14708 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14709 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14710 (dot_deps_1): Call dot_deps_2.
14711 * Makefile.in (graphite-dependences.o): Add missing dependence on
14712 graphite-cloog-util.h.
14713
14714 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14715
14716 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14717 (build_lexicographical_constraint): Same.
14718 (dependence_polyhedron_1): Same.
14719 (graphite_legal_transform_dr): Same.
14720 (graphite_carried_dependence_level_k): Same.
14721 * graphite-ppl.c (ppl_powerset_is_empty): New.
14722 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14723 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14724
14725 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14726
14727 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14728 the "a followed by b" relation and document it.
14729
14730 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14731
14732 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14733 iteration when the bag of constraints is empty.
14734
14735 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14736
14737 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14738
14739 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14740
14741 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14742 nest and two loop depths as parameters.
14743 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14744 lst_perfect_nestify.
14745
14746 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14747
14748 * graphite-dependences.c (print_pddr): Call
14749 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14750
14751 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14752
14753 * graphite-ppl.c (debug_gmp_value): New.
14754 * graphite-ppl.h (debug_gmp_value): Declared.
14755
14756 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14757
14758 * doc/install.texi: Document availability of cloog-0.16.
14759
14760 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14761
14762 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14763 invalid postdominance info.
14764
14765 2011-01-24 Jan Hubicka <jh@suse.cz>
14766
14767 PR c/21659
14768 * doc/extend.texi (weak pragma): Drop claim that it must
14769 appear before definition.
14770 * varasm.c (merge_weak, declare_weak): Only sanity check
14771 that DECL is not output at a time it is declared weak.
14772
14773 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14774
14775 * machmode.def: Fixed comments.
14776
14777 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14778
14779 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14780
14781 2011-01-24 Paul Koning <ni1d@arrl.net>
14782
14783 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14784 WORDS_BIG_ENDIAN.
14785
14786 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14787
14788 PR target/46519
14789 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14790 (block_info): Add scanned and prev.
14791 (move_or_delete_vzeroupper_2): Return if the basic block
14792 has been scanned and the upper 128bit state is unchanged
14793 from the last scan.
14794 (move_or_delete_vzeroupper_1): Return true if the exit
14795 state is changed.
14796 (move_or_delete_vzeroupper): Visit basic blocks using the
14797 work-list based algorithm based on vt_find_locations in
14798 var-tracking.c.
14799
14800 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14801
14802 2011-01-24 Nick Clifton <nickc@redhat.com>
14803
14804 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14805 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14806 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14807 then define __v850e1__.
14808 * doc/invoke.texi: Document -mv850es.
14809
14810 2011-01-24 Richard Henderson <rth@redhat.com>
14811
14812 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14813 compound unordered comparisons.
14814 * config/rx/rx.c (rx_split_fp_compare): Remove.
14815 * config/rx/rx-protos.h: Update.
14816 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14817 (cbranchsf4): Don't call rx_split_fp_compare.
14818 (*cbranchsf4): Use rx_split_cbranch.
14819 (*cmpsf): Don't accept "i" constraint.
14820 (*conditional_branch): Only valid after reload.
14821 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14822
14823 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14824
14825 PR target/47385
14826 * config/rs6000/altivec.md (vector constant splitters): Add
14827 support for creating vector single precision constants if -mvsx is
14828 used and we would create the constant using Altivec primitives.
14829
14830 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14831 Richard Sandiford <rdsandiford@googlemail.com>
14832
14833 PR rtl-optimization/47166
14834 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14835 mechanism for PRE_MODIFY and POST_MODIFY.
14836 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14837 reloadreg.
14838
14839 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14840
14841 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14842
14843 2011-01-22 Jan Hubicka <jh@suse.cz>
14844
14845 PR lto/47333
14846 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14847
14848 2011-01-22 Jan Hubicka <jh@suse.cz>
14849
14850 PR tree-optimization/43884
14851 PR lto/44334
14852 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14853 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14854
14855 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14856
14857 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14858 * config/s390/s390.c (s390_register_move_cost,
14859 s390_memory_move_cost): New.
14860 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14861
14862 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14863
14864 PR middle-end/47401
14865 * except.c (sjlj_assign_call_site_values): Move setting the
14866 crtl->uses_eh_lsda flag to ...
14867 (sjlj_mark_call_sites): ... here.
14868 (sjlj_emit_function_enter): Support NULL dispatch label.
14869 (sjlj_build_landing_pads): In a function with no landing pads
14870 that still has must-not-throw regions, generate code to register
14871 a personality function with empty LSDA.
14872
14873 2011-01-21 Richard Henderson <rth@redhat.com>
14874
14875 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14876
14877 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14878
14879 * compare-elim.c: New file.
14880 * Makefile.in (OBJS-common): Add it.
14881 (compare-elim.o): New.
14882 * common.opt (fcompare-elim): New.
14883 * opts.c (default_options_table): Add OPT_fcompare_elim.
14884 * tree-pass.h (pass_compare_elim_after_reload): New.
14885 * passes.c (init_optimization_passes): Add it.
14886 * recog.h: Protect against re-inclusion.
14887 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14888 * doc/invoke.texi (-fcompare-elim): Document it.
14889 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14890 * doc/tm.texi: Rebuild.
14891
14892 2011-01-22 Nick Clifton <nickc@redhat.com>
14893
14894 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14895 rx_split_fp_compare.
14896
14897 2011-01-22 Nick Clifton <nickc@redhat.com>
14898
14899 * config/rx/rx.md (UNSPEC_CONST): New.
14900 (deallocate_and_return): Wrap the amount popped off the stack in
14901 an UNSPEC_CONST in order to stop it being rejected by
14902 -mmax-constant-size.
14903 (pop_and_return): Add a "(return)" rtx.
14904 (call): Drop the immediate operand.
14905 (call_internal): Likewise.
14906 (call_value): Likewise.
14907 (call_value_internal): Likewise.
14908 (sibcall_internal): Likewise.
14909 (sibcall_value_internal): Likewise.
14910 (sibcall): Likewise. Generate an explicit call using
14911 sibcall_internal.
14912 (sibcall_value): Likewise.
14913 (mov<>): FAIL if a constant operand is not legitimate.
14914 (addsi3_unpsec): New pattern.
14915
14916 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14917 (ok_for_max_constant): New function.
14918 (gen_safe_add): New function.
14919 (rx_expand_prologue): Use gen_safe_add.
14920 (rx_expand_epilogue): Likewise.
14921 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14922 UNSPEC CONSTs.
14923
14924 2011-01-21 Jeff Law <law@redhat.com>
14925
14926 PR tree-optimization/47053
14927 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14928 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14929 statements are deleted.
14930 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14931 is nonempty, then purge dead edges and cleanup the CFG.
14932
14933 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14934
14935 PR debug/47402
14936 Temporarily revert:
14937 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14938 PR debug/47106
14939 * tree-dfa.c (create_var_ann): Mark variable as used.
14940
14941 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14942
14943 PR middle-end/45566
14944 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14945 notes from other section in hot/cold partitioning even if
14946 last_action is -3. Increment call_site_base.
14947
14948 PR rtl-optimization/47366
14949 * fwprop.c (forward_propagate_into): Return bool. If
14950 any changes are made, -fnon-call-exceptions is used and
14951 REG_EH_REGION note is present, call purge_dead_edges
14952 and return true if it purged anything.
14953 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14954 any EH edges were purged.
14955
14956 2011-01-21 Jeff Law <law@redhat.com>
14957
14958 PR rtl-optimization/41619
14959 * caller-save.c (setup_save_areas): Break out code to determine
14960 which hard regs are live across calls by examining the reload chains
14961 so that it is always used.
14962 Eliminate code which checked REG_N_CALLS_CROSSED.
14963
14964 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14965
14966 PR tree-optimization/47355
14967 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14968 NOP has non-debug uses beyond PHIs in new_bb.
14969
14970 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14971
14972 PR debug/47106
14973 * cfgexpand.c (account_used_vars_for_block): Only account vars
14974 that are annotated as used.
14975 (estimated_stack_frame_size): Don't set TREE_USED.
14976 * tree-dfa.c (create_var_ann): Mark variable as used.
14977
14978 2011-01-21 Richard Guenther <rguenther@suse.de>
14979
14980 PR middle-end/47395
14981 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14982
14983 2011-01-21 Richard Guenther <rguenther@suse.de>
14984
14985 PR tree-optimization/47365
14986 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14987 (vn_reference_lookup_pieces): Adjust.
14988 (vn_reference_lookup): Likewise.
14989 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14990 (vn_reference_lookup_3): Only look through kills if in
14991 VN_WALKREWRITE mode.
14992 (vn_reference_lookup_pieces): Adjust.
14993 (vn_reference_lookup): Likewise.
14994 (visit_reference_op_load): Likewise.
14995 (visit_reference_op_store): Likewise.
14996 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14997 (compute_avail): Likewise.
14998 (eliminate): Likewise.
14999
15000 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15001
15002 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15003 DECL_IGNORED_P non-reg vars if they are used.
15004
15005 PR tree-optimization/47391
15006 * varpool.c (const_value_known_p): Return false if
15007 decl is volatile.
15008
15009 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15010
15011 PR bootstrap/47215
15012 * config/i386/i386.c (ix86_local_alignment): Handle
15013 case for va_list_type_node is nil.
15014 (ix86_canonical_va_list_type): Likewise.
15015
15016 2011-01-21 Alan Modra <amodra@gmail.com>
15017
15018 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15019 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15020
15021 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15022
15023 * config/arm/arm.md (define_attr type): Rename f_load
15024 and f_store to f_fpa_load and f_fpa_store. Update.
15025 (write_conflict): Deal with rename fallout.
15026 (*push_fp_multi): Likewise.
15027 * config/arm/fpa.md (f_load): Use f_fpa_load.
15028 (f_store): Use f_fpa_store.
15029 (*movsf_fpa): Likewise.
15030 (*movdf_fpa): Likewise.
15031 (*movxf_fpa): Likewise.
15032 (*thumb2_movsf_fpa): Likewise.
15033 (*thumb2_movdf_fpa): Likewise.
15034 (*thumb2_movxf_fpa): Likewise.
15035 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15036 f_loadd and f_stored.
15037 (*thumb2_movdi_vfp): Likewise.
15038 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15039 (*thumb2_movsi_vfp): Likewise.
15040 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15041 Use f_loads instead of f_load.
15042 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15043
15044 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15045
15046 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15047 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15048 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15049 (xtensa_mode_dependent_address_p): New function.
15050 (constantpool_address_p): Make static. Change return type to bool.
15051 Change argument type to const_rtx. Use CONST_INT_P predicate.
15052
15053 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15054
15055 PR debug/46583
15056 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15057
15058 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15059
15060 PR debug/47283
15061 * cfgexpand.c (expand_debug_expr): Instead of generating
15062 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15063 etc. handling.
15064
15065 2011-01-20 Richard Guenther <rguenther@suse.de>
15066
15067 PR middle-end/47370
15068 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15069 the pointer operand of MEM_REFs.
15070
15071 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15072
15073 PR tree-optimization/46130
15074 * ipa-split.c (consider_split): If return_bb contains non-virtual
15075 PHIs other than for retval or if split_function would not adjust it,
15076 refuse to split.
15077
15078 2011-01-20 Richard Guenther <rguenther@suse.de>
15079
15080 PR tree-optimization/47167
15081 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15082 Revert previous change, only avoid enumeral type changes.
15083
15084 2011-01-19 Mike Stump <mikestump@comcast.net>
15085
15086 * doc/tm.texi.in (BRANCH_COST): Englishify.
15087 * doc/tm.texi (BRANCH_COST): Likewise.
15088
15089 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15090
15091 PR c++/47291
15092 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15093 (gen_scheduled_generic_parms_dies): New functions.
15094 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15095 generation for the end of CU compilation.
15096 (dwarf2out_finish): Generate template parameters DIEs here.
15097
15098 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15099
15100 PR debug/46240
15101 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15102 debug bind stmt on merge edges.
15103
15104 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15105
15106 PR debug/47079
15107 PR debug/46724
15108 * function.c (instantiate_expr): Instantiate incoming rtl of
15109 implicit arguments, and recurse on VALUE_EXPRs.
15110 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15111 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15112
15113 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15114
15115 * c-parser.c (c_parser_for_statement): Initialize
15116 collection_expression.
15117
15118 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15119
15120 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15121
15122 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15123
15124 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15125 (LINK_SHLIB_SPEC): Don't use %(link_path).
15126 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15127
15128 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15129
15130 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15131 (NO_SHARED_LIB_SUPPORT): Remove.
15132 (LINK_SHLIB_SPEC): Remove one conditional definition.
15133
15134 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15135
15136 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15137 %{call_shared}.
15138 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15139 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15140 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15141 %{call_shared} and conditionals on these options not being passed.
15142 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15143 %{call_shared}.
15144
15145 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15146
15147 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15148 simplify.
15149
15150 * ipa-split.c: Spelling fixes.
15151
15152 2011-01-19 Richard Henderson <rth@redhat.com>
15153
15154 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15155 (*mulsi3): Likewise.
15156
15157 * longlong.h [__mn10300__] (count_leading_zeros): New.
15158 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15159 [__mn10300__] (add_ssaaaa, subddmmss): New.
15160 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15161 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15162
15163 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15164
15165 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15166
15167 2011-01-19 Richard Henderson <rth@redhat.com>
15168
15169 * config/mn10300/mn10300.md (addsi3_flags): New.
15170 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15171 (subsi3_flags, subc_internal, subdi3): New.
15172 (subdi3_internal, *subdi3_degenerate): New.
15173 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15174
15175 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15176 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15177 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15178 * config/mn10300/mn10300-protos.h: Update.
15179 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15180 (return_ret): Likewise. Rename from return_internal_regs.
15181 (return_internal): Remove.
15182
15183 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15184 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15185 (mn10300_legitimate_constant_p): Likewise.
15186 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15187 (mn10300_frame_size): New.
15188 (mn10300_expand_prologue): Use it.
15189 (mn10300_expand_epilogue): Likewise.
15190 (mn10300_initial_offset): Likewise.
15191 * config/mn10300/mn10300-protos.h: Update.
15192 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15193 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15194 (prologue, epilogue, return_internal): Tidy output code.
15195 (mn10300_store_multiple_operation, return): Likewise.
15196 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15197 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15198 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15199 (load_pic, am33_load_pic): New.
15200 (mn10300_load_pic0, mn10300_load_pic1): New.
15201
15202 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15203 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15204 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15205 (cc_flags_for_mode, cc_flags_for_code): New.
15206 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15207 overflow flag is not valid. Validate that the flags we need
15208 for the comparison are valid.
15209 (mn10300_output_cmp): Remove.
15210 (mn10300_output_add): New.
15211 (mn10300_select_cc_mode): Use cc_flags_for_code.
15212 (mn10300_split_cbranch): New.
15213 (mn10300_match_ccmode): New.
15214 (mn10300_split_and_operand_count): New.
15215 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15216 to the function.
15217 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15218 (addsi3): ... here. Use mn10300_output_add.
15219 (*addsi3_flags): New.
15220 (*am33_subsi3, *mn10300_subsi3): Merge...
15221 (subsi3): ... here. Use attribute isa.
15222 (*subsi3_flags): New.
15223 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15224 when possible.
15225 (*am33_andsi3, *mn10300_andsi3): Merge...
15226 (andsi3): ... here.
15227 (*andsi3_flags): New.
15228 (andsi3 splitters): New.
15229 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15230 (iorsi3): ... here.
15231 (*iorsi3_flags): New.
15232 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15233 (xorsi3): ... here.
15234 (*xorsi3_flags): New.
15235 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15236 (one_cmplsi2): ... here.
15237 (*one_cmplsi2_flags): New.
15238 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15239 instead of "dax" in constraints. Use mn10300_split_cbranch.
15240 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15241 use matching constraints to eliminate a self-comparison.
15242 (*integer_conditional_branch): Rename from integer_conditional_branch.
15243 Use int_mode_flags to match CC_REG.
15244 (*cbranchsi4_btst, *btstsi): New.
15245 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15246 mn10300_split_cbranch.
15247 (*am33_cmpsf): Rename from am33_cmpsf.
15248 (*float_conditional_branch): Rename from float_conditional_branch.
15249 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15250 (zero_extendqisi2): ... here.
15251 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15252 (zero_extendhisi2): ... here.
15253 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15254 (extendqisi2): ... here.
15255 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15256 (extendhisi2): ... here.
15257 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15258 (ashlsi3): ... here.
15259 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15260 (lshrsi3): ... here.
15261 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15262 (ashrsi3): ... here.
15263 (consecutive add peephole): Remove.
15264 * config/mn10300/predicates.md (label_ref_operand): New.
15265 (int_mode_flags): New.
15266 (CCZN_comparison_operator): New.
15267
15268 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15269 (throughput_42_latency_43): New reservation.
15270 (mulsidi3, umulsidi3): New expanders.
15271 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15272 the MDR register to allocation; separately allocate the low and
15273 high parts of the DImode result.
15274 (umulsidi3_internal): Similarly.
15275 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15276 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15277 (udivsi3, umodsi3): Remove.
15278 (udivmodsi4, divmodsi4): New expanders.
15279 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15280 (*divmodsi4): Simiarly.
15281 (ext_internal): New.
15282
15283 * config/mn10300/constraints.md ("z"): New constraint.
15284 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15285 (FIXED_REGISTERS): Don't fix MDR.
15286 (CALL_USED_REGSITERS): Reformat nicely.
15287 (REG_ALLOC_ORDER): Add MDR.
15288 (enum regclass): Add MDR_REGS.
15289 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15290 (IRA_COVER_CLASSES): Add MDR_REGS.
15291 (REGNO_REG_CLASS): Handle MDR_REG.
15292 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15293 (mn10300_register_move_cost): Likewise.
15294 * config/mn10300/mn10300.md (MDR_REG): New.
15295 (*movsi_internal): Handle moves to/from MDR_REGS.
15296
15297 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15298 POST_MODIFY.
15299 (mn10300_secondary_reload): Tidy combination reload classes.
15300 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15301 addresses for AM33. Allow symbolic offsets for reg+imm.
15302 (mn10300_regno_in_class_p): New.
15303 (mn10300_legitimize_reload_address): New.
15304 * config/mn10300/mn10300.h (enum reg_class): Remove
15305 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15306 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15307 SP_OR_GENERAL_REGS.
15308 (REG_CLASS_NAMES): Update to match.
15309 (REG_CLASS_CONTENTS): Likewise.
15310 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15311 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15312 (REGNO_IN_RANGE_P): Remove.
15313 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15314 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15315 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15316 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15317 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15318 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15319 (REGNO_GENERAL_P): New.
15320 (HAVE_POST_MODIFY_DISP): New.
15321 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15322 (LEGITIMIZE_RELOAD_ADDRESS): New.
15323 * config/mn10300/mn10300-protos.h: Update.
15324
15325 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15326 DATA_REGS for AM33 stack-pointer destination.
15327 (mn10300_preferred_output_reload_class): Likewise.
15328 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15329 into a form appropriate for ...
15330 (TARGET_SECONDARY_RELOAD): New.
15331 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15332 * config/mn10300/mn10300-protos.h: Update.
15333 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15334 reload_insi; use the "A" constraint for the scratch; handle AM33
15335 moves of sp to non-address registers.
15336
15337 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15338 (*movqi_internal): ... here.
15339 (*am33_movhi, *mn10300_movhi): Merge into...
15340 (*movhi_internal): ... here.
15341 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15342 as the source/destination of moves from/to SP.
15343 (movsf): Only allow for AM33-2.
15344 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15345 any integer constant constraint. Only allow for AM33-2. Tidy
15346 all of the alternative outputs.
15347 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15348 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15349 for MN103.
15350 (udivsi3, umodsi3): New patterns for MN103 only.
15351
15352 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15353
15354 * doc/tm.texi.in: Spell out that a lack of register class unions
15355 can lead to ICEs.
15356 * doc/tm.texi: Regenerate.
15357
15358 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15359
15360 PR rtl-optimization/47337
15361 * dce.c (check_argument_store): New function.
15362 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15363
15364 PR tree-optimization/47290
15365 * tree-eh.c (infinite_empty_loop_p): New function.
15366 (cleanup_empty_eh): Use it.
15367
15368 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15369
15370 PR target/46997
15371 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15372 (a64_expand_widen_sum): Ditto.
15373 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15374 (vec_extract_evenodd_help): Ditto.
15375 (vec_extract_evenv4hi): Ditto.
15376 (vec_extract_oddv4hi): Ditto.
15377 (vec_extract_evenv2si): Ditto.
15378 (vec_extract_oddv2si): Ditto.
15379 (vec_extract_evenv2sf): Ditto.
15380 (vec_extract_oddv2sf): Ditto.
15381 (vec_pack_trunc_v4hi: Ditto.
15382 (vec_pack_trunc_v2si): Ditto.
15383 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15384 (vec_interleave_highv8qi): Ditto.
15385 (mix1_r): Ditto.
15386 (vec_extract_oddv8qi): Ditto.
15387 (vec_interleave_lowv4hi): Ditto.
15388 (vec_interleave_highv4hi): Ditto.
15389 (vec_interleave_lowv2si): Ditto.
15390 (vec_interleave_highv2si): Ditto.
15391
15392 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15393
15394 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15395 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15396 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15397 (pa_c_mode_for_suffix): New.
15398 (TARGET_EXPAND_BUILTIN): Define.
15399 (TARGET_C_MODE_FOR_SUFFIX): Define.
15400 (pa_builtins): Define.
15401 (pa_init_builtins): Register __float128 type and init new support
15402 builtins.
15403 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15404 * config/pa/quadlib.c (_U_Qfcopysign): New.
15405
15406 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15407
15408 PR middle-end/46894
15409 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15410 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15411 are defined.
15412
15413 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15414
15415 PR tree-optimization/47179
15416 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15417 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15418
15419 2011-01-18 Richard Guenther <rguenther@suse.de>
15420
15421 PR rtl-optimization/47216
15422 * emit-rtl.c: Include tree-flow.h.
15423 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15424 of replicating it with different semantics.
15425 * Makefile.in (emit-rtl.o): Adjust.
15426
15427 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15428
15429 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15430 (cortex_a9_dp): Handle neon types correctly.
15431
15432 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15433
15434 PR rtl-optimization/47299
15435 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15436 subtarget. Use normal multiplication if both operands are constants.
15437 * expmed.c (expand_widening_mult): Don't try to optimize constant
15438 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15439 before using it.
15440
15441 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15442
15443 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15444 spacing after 'e.g.', typos, comma, hyphenation.
15445
15446 2011-01-17 Richard Henderson <rth@redhat.com>
15447
15448 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15449 (rx_restricted_mem_operand): New.
15450 (rx_shift_operand): Use register_operand.
15451 (rx_source_operand, rx_compare_operand): Likewise.
15452 * config/rx/rx.md (addsi3_flags): New expander.
15453 (adddi3): Rewrite as expander.
15454 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15455 (subsi3_flags): New expander.
15456 (subdi3): Rewrite as expander.
15457 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15458
15459 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15460 (rx_init_builtins): Remove sat builtin.
15461 (rx_expand_builtin): Likewise.
15462 * config/rx/rx.md (ssaddsi3): New.
15463 (*sat): Rename from sat. Represent the CC_REG input.
15464
15465 * config/rx/predicates.md (rshift_operator): New.
15466 * config/rx/rx.c (rx_expand_insv): Remove.
15467 * config/rx/rx-protos.h: Update.
15468 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15469 operand to the canonical position.
15470 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15471 (*bitclr, *bitclr_in_memory): Similarly.
15472 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15473 (insv): Retain the zero_extract in the expansion.
15474
15475 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15476 (bswaphi2, bitinvert, revw): Likewise.
15477
15478 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15479 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15480 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15481 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15482 (bitset, bitset_in_memory): Likewise.
15483 (bitinvert, bitinvert_in_memory): Likewise.
15484 (bitclr, bitclr_in_memory): Likewise.
15485 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15486 (rx_strend, rx_cmpstrn): Likewise.
15487 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15488 (bitop peep2 patterns): Remove.
15489
15490 * config/rx/rx.c (rx_match_ccmode): New.
15491 * config/rx/rx-protos.h: Update.
15492 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15493 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15494 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15495 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15496 (fix_truncsfsi2, floatsisf2): Likewise.
15497 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15498 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15499 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15500 (*subsi3_flags, *xorsi3_flags): New.
15501
15502 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15503
15504 * config/rx/rx.c (rx_print_operand): Remove workaround for
15505 unsplit comparison operations.
15506
15507 * config/rx/rx.md (movsicc): Split after reload.
15508 (*movsicc): Merge *movsieq and *movsine via match_operator.
15509 (*stcc): New pattern.
15510
15511 * config/rx/rx.c (rx_float_compare_mode): Remove.
15512 * config/rx/rx.h (rx_float_compare_mode): Remove.
15513 * config/rx/rx.md (cstoresi4): Split after reload.
15514 (*sccc): New pattern.
15515
15516 * config/rx/predicates.md (label_ref_operand): New.
15517 (rx_z_comparison_operator): New.
15518 (rx_zs_comparison_operator): New.
15519 (rx_fp_comparison_operator): New.
15520 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15521 Validate that the flags are set properly for the comparison.
15522 (rx_gen_cond_branch_template): Remove.
15523 (rx_cc_modes_compatible): Remove.
15524 (mode_from_flags): New.
15525 (flags_from_code): Rename from flags_needed_for_conditional.
15526 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15527 (rx_select_cc_mode): Likewise.
15528 (rx_split_fp_compare): New.
15529 (rx_split_cbranch): New.
15530 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15531 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15532 (*cbranchsf4): Similarly.
15533 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15534 match_operator and rx_split_cbranch.
15535 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15536 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15537 (*cmpsi): Rename from cmpsi.
15538 (*tstsi): Rename from tstsi.
15539 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15540 (*conditional_branch): Rename from conditional_branch.
15541 (*reveresed_conditional_branch): Remove.
15542 (b<code>): Remove expander.
15543 * config/rx/rx-protos.h: Update.
15544
15545 * config/rx/rx.c (rx_compare_redundant): Remove.
15546 * config/rx/rx.md (cmpsi): Don't use it.
15547 * config/rx/rx-protos.h: Update.
15548
15549 * config/rx/rx-modes.def (CC_F): New mode.
15550 * config/rx/rx.c (rx_select_cc_mode): New.
15551 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15552 * config/rx/rx-protos.h: Update.
15553
15554 2011-01-17 Richard Henderson <rth@redhat.com>
15555
15556 * except.c (dump_eh_tree): Fix stray ; after for statement.
15557
15558 2011-01-17 Richard Guenther <rguenther@suse.de>
15559
15560 PR tree-optimization/47313
15561 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15562 handling before copying the body. Properly deal with
15563 by-reference result in SSA form.
15564
15565 2011-01-17 Ian Lance Taylor <iant@google.com>
15566
15567 PR target/47219
15568 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15569 (struct_value_alias_set): Don't define.
15570 (sparc_option_override): Don't set sparc_sr_alias_set and
15571 struct_value_alias_set.
15572 (save_or_restore_regs): Use gen_frame_mem rather than calling
15573 set_mem_alias_set.
15574 (sparc_struct_value_rtx): Likewise.
15575
15576 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15577
15578 PR target/47318
15579 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15580 (_mm_maskstore_pd): Likewise.
15581 (_mm_maskload_ps): Likewise.
15582 (_mm_maskstore_ps): Likewise.
15583 (_mm256_maskload_pd): Change mask to __m256i.
15584 (_mm256_maskstore_pd): Likewise.
15585 (_mm256_maskload_ps): Likewise.
15586 (_mm256_maskstore_ps): Likewise.
15587
15588 * config/i386/i386-builtin-types.def: Updated.
15589 (ix86_expand_special_args_builtin): Likewise.
15590
15591 * config/i386/i386.c (bdesc_special_args): Update
15592 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15593 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15594 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15595 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15596
15597 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15598 Use <avxpermvecmode> on mask register.
15599 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15600
15601 2011-01-17 Olivier Hainque <hainque@adacore.com>
15602 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15603 Eric Botcazou <ebotcazou@adacore.com>
15604
15605 PR target/46655
15606 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15607 if <= USHRT_MAX in 32-bit mode.
15608
15609 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15610
15611 * doc/install.texi (Configuration, Specific): Wrap long
15612 lines in examples. Allow line wrapping in long options
15613 and URLs where beneficial for PDF output.
15614
15615 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15616
15617 * config/mips/mips.c (mips_classify_symbol): Don't return
15618 SYMBOL_PC_RELATIVE for nonlocal labels.
15619
15620 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15621
15622 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15623
15624 2011-01-15 Jan Hubicka <jh@suse.cz>
15625
15626 PR tree-optimization/47276
15627 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15628 declarations as needed.
15629
15630 2011-01-15 Martin Jambor <mjambor@suse.cz>
15631
15632 * common.opt (fdevirtualize): New flag.
15633 * doc/invoke.texi (Option Summary): Document it.
15634 * opts.c (default_options_table): Add devirtualize flag.
15635 * ipa-prop.c (detect_type_change): Return immediately if
15636 devirtualize flag is not set.
15637 (detect_type_change_ssa): Likewise.
15638 (compute_known_type_jump_func): Likewise.
15639 (ipa_analyze_virtual_call_uses): Likewise.
15640
15641 2011-01-14 Martin Jambor <mjambor@suse.cz>
15642
15643 PR tree-optimization/45934
15644 PR tree-optimization/46302
15645 * ipa-prop.c (type_change_info): New type.
15646 (stmt_may_be_vtbl_ptr_store): New function.
15647 (check_stmt_for_type_change): Likewise.
15648 (detect_type_change): Likewise.
15649 (detect_type_change_ssa): Likewise.
15650 (compute_complex_assign_jump_func): Check for dynamic type change.
15651 (compute_complex_ancestor_jump_func): Likewise.
15652 (compute_known_type_jump_func): Likewise.
15653 (compute_scalar_jump_functions): Likewise.
15654 (ipa_analyze_virtual_call_uses): Likewise.
15655 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15656
15657 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15658
15659 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15660 * config/i386/i386.opt (msse5): New Alias.
15661
15662 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15663
15664 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15665 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15666 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15667 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15668
15669 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15670
15671 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15672 -mcpu options.
15673 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15674 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15675 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15676 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15677 Likewise.
15678 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15679
15680 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15681
15682 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15683
15684 2011-01-14 Mike Stump <mikestump@comcast.net>
15685
15686 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15687 * config/fr30/fr30.md: Likweise
15688 (movsi_push): Likewise.
15689 (movsi_pop): Likewise.
15690 (enter_func): Likewise.
15691 * config/moxie/moxie.md (movsi_push): Likewise.
15692 (movsi_pop): Likewise.
15693
15694 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15695
15696 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15697 %{no_archive} %{exact_version}.
15698 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15699 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15700 %{no_archive} %{exact_version}.
15701 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15702 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15703 * config/mips/vxworks.h: Likewise.
15704
15705 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15706
15707 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15708
15709 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15710
15711 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15712 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15713
15714 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15715
15716 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15717 -nodefaultlib.
15718
15719 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15720
15721 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15722 for mcpu not cpu.
15723 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15724 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15725 not cpu.
15726 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15727 Don't handle -shlib.
15728
15729 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15730
15731 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15732 (CC1_SPEC): Don't handle -profile.
15733
15734 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15735
15736 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15737 * config/mips/mips.h (CC1_SPEC): Likewise.
15738
15739 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15740
15741 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15742 * config/mips/mips.h (CC1_SPEC): Likewise.
15743
15744 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15745
15746 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15747 * config/m32r/linux.h (LINK_SPEC): Likewise.
15748 * config/mips/linux.h (LINK_SPEC): Likewise.
15749 * config/mips/linux64.h (LINK_SPEC): Likewise.
15750 * config/sparc/linux.h (LINK_SPEC): Likewise.
15751 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15752 LINK_SPEC): Likewise.
15753 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15754
15755 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15756
15757 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15758 %{version:-v}.
15759 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15760
15761 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15762
15763 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15764 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15765
15766 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15767
15768 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15769
15770 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15771
15772 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15773 supports -Bstatic/-Bdynamic.
15774 * configure: Regenerate.
15775
15776 2011-01-14 Jan Hubicka <jh@suse.cz>
15777 Jack Howarth <howarth@bromo.med.uc.edu>
15778
15779 PR target/46037
15780 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15781 when checking debug_info_level. Test write_symbols instead of
15782 debug_hooks->var_location when setting flag_var_tracking_uninit.
15783
15784 2011-01-14 Richard Guenther <rguenther@suse.de>
15785
15786 PR tree-optimization/47179
15787 * target.def (ref_may_alias_errno): New target hook.
15788 * targhooks.h (default_ref_may_alias_errno): Declare.
15789 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15790 (default_ref_may_alias_errno): New function.
15791 * target.h (struct ao_ref_s): Declare.
15792 * tree-ssa-alias.c: Include target.h.
15793 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15794 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15795 (targhooks.o): Likewise.
15796 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15797 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15798
15799 2011-01-14 Richard Guenther <rguenther@suse.de>
15800
15801 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15802
15803 2011-01-14 Richard Guenther <rguenther@suse.de>
15804
15805 PR tree-optimization/47280
15806 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15807 return CFG changes.
15808 (tree_ssa_forward_propagate_single_use_vars): Deal with
15809 CFG changes from associate_plusminus.
15810
15811 2011-01-14 Richard Guenther <rguenther@suse.de>
15812
15813 PR middle-end/47281
15814 Revert
15815 2011-01-11 Richard Guenther <rguenther@suse.de>
15816
15817 PR tree-optimization/46076
15818 * tree-ssa.c (useless_type_conversion_p): Conversions from
15819 unprototyped to empty argument list function types are useless.
15820
15821 2011-01-14 Richard Guenther <rguenther@suse.de>
15822
15823 PR tree-optimization/47286
15824 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15825
15826 2011-01-14 Martin Jambor <mjambor@suse.cz>
15827
15828 PR middle-end/46823
15829 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15830
15831 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15832
15833 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15834 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15835 * config/xtensa/xtensa.c (xtensa_libcall_value,
15836 xtensa_function_value_regno_p): New functions.
15837 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15838
15839 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15840
15841 PR c++/47213
15842 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15843 PE specific hook.
15844 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15845 New function prototype.
15846 * config/i386/winnt.c (i386_pe_assemble_visibility):
15847 Warn only if attribute was specified by user.
15848
15849 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15850
15851 PR target/47251
15852 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15853 floating point.
15854 (floatunsdidf2_fcfidu): Ditto.
15855
15856 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15857
15858 * config/s390/s390.c (print_operand_address): Replace 'error' with
15859 'output_operand_lossage'.
15860 (print_operand): Likewise.
15861
15862 2011-01-13 Jeff Law <law@redhat.com>
15863
15864 PR rtl-optimization/39077
15865 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15866 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15867 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15868 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15869 * gcse.c (prune_insertions_deletions): New function.
15870 (compute_pre_data): Use it.
15871
15872 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15873
15874 PR debug/PR46973
15875 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15876 static function.
15877 (prune_unused_types_mark): Use it.
15878
15879 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15880
15881 PR rtl-optimization/45352
15882 * sel-sched.c: Update copyright years.
15883 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15884 in the advancing loop when we have issued issue_rate insns.
15885
15886 2011-01-12 Richard Henderson <rth@redhat.com>
15887
15888 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15889 (TARGET_MD_ASM_CLOBBERS): New.
15890
15891 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15892 (TARGET_DELEGITIMIZE_ADDRESS): New.
15893
15894 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15895 (clzsi2, *bsch): New patterns.
15896
15897 * config/mn10300/mn10300.md (INT): New mode iterator.
15898 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15899
15900 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15901 flag_split_wide_types.
15902
15903 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15904 (mn10300_trampoline_init): Rewrite without a template, an immediate
15905 load and a direct branch.
15906 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15907
15908 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15909
15910 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15911 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15912 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15913 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15914
15915 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15916
15917 PR debug/47209
15918 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15919 of type.
15920
15921 2011-01-12 Jan Hubicka <jh@suse.cz>
15922
15923 PR driver/47244
15924 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15925 (PLUGIN_COND_CLOSE): New macro.
15926 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15927
15928 2011-01-12 Richard Guenther <rguenther@suse.de>
15929
15930 PR lto/47259
15931 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15932 register variables in a MEM_REF.
15933
15934 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15935
15936 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15937 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15938 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15939 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15940 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15941 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15942 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15943 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15944 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15945 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15946 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15947 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15948 * config/gnu-user.h: New. Copied from linux.h.
15949 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15950 GNU_USER_TARGET_STARTFILE_SPEC.
15951 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15952 GNU_USER_TARGET_ENDFILE_SPEC.
15953 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15954 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15955 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15956 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15957 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15958 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15959 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15960 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15961 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15962 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15963 * config/arm/linux-eabi.h (CC1_SPEC): Use
15964 GNU_USER_TARGET_CC1_SPEC.
15965 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15966 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15967 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15968 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15969 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15970 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15971 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15972 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15973
15974 2011-01-12 Richard Guenther <rguenther@suse.de>
15975
15976 PR other/46946
15977 * doc/invoke.texi (ffast-math): Document it is turned on
15978 with -Ofast.
15979
15980 2011-01-12 Jan Hubicka <jh@suse.cz>
15981
15982 PR tree-optimization/47233
15983 * opts.c (common_handle_option): Disable ipa-reference with profile
15984 feedback.
15985
15986 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15987
15988 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15989 error message.
15990
15991 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15992
15993 * c-parser.c (c_lex_one_token): Updated and reindented some
15994 comments. No changes in code.
15995
15996 2011-01-11 Ian Lance Taylor <iant@google.com>
15997
15998 * godump.c (go_output_var): Don't output the variable if there is
15999 already a type with the same name.
16000
16001 2011-01-11 Ian Lance Taylor <iant@google.com>
16002
16003 * godump.c (go_format_type): Don't generate float80.
16004
16005 2011-01-11 Richard Henderson <rth@redhat.com>
16006
16007 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16008 declaration. Rewrite for both speed and size.
16009 (mn10300_address_cost_1): Remove.
16010 (mn10300_register_move_cost): New.
16011 (mn10300_memory_move_cost): New.
16012 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16013 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16014 extensions, shifts, BSWAP, CLZ.
16015 (mn10300_wide_const_load_uses_clr): Remove.
16016 (TARGET_REGISTER_MOVE_COST): New.
16017 (TARGET_MEMORY_MOVE_COST): New.
16018 * config/mn10300/mn10300-protos.h: Update.
16019 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16020
16021 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16022 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16023 * config/mn10300/mn10300-protos.h: Update.
16024 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16025 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16026 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16027 (*test_int_bitfield, *test_byte_bitfield): Remove.
16028 (*bit_test, *subreg_bit_test): Remove.
16029 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16030
16031 * config/mn10300/constraints.md ("c"): Rename from "A".
16032 ("A", "D"): New constraint letters.
16033 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16034 (fmssf4, fnmasf4, fnmssf4): Likewise.
16035
16036 * config/mn10300/mn10300.md (isa): New attribute.
16037 (enabled): New attribute.
16038
16039 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16040 (abssf2, negsf2): Define only for hardware fp.
16041 (sqrtsf2): Reformat.
16042 (addsf3, subsf3, mulsf3): Merge expander and insn.
16043
16044 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16045 (DEBUGGER_AUTO_OFFSET): Remove.
16046 (DEBUGGER_ARG_OFFSET): Remove.
16047
16048 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16049 Emit register stores with the same offsets as the hardware.
16050 (mn10300_store_multiple_operation): Don't check that the register
16051 save offsets are monotonic.
16052 * config/mn10300/mn10300-protos.h: Update.
16053
16054 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16055
16056 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16057 in terms of the value on the stack, not the MDR register.
16058
16059 2011-01-11 Jan Hubicka <jh@suse.cz>
16060
16061 PR lto/45721
16062 PR lto/45375
16063 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16064 (symbol_alias_set_destroy, symbol_alias_set_contains,
16065 propagate_aliases_backward): Declare.
16066 * lto-streamer-out.c (struct sets): New sturcture.
16067 (trivally_defined_alias): New function.
16068 (output_alias_pair_p): Rewrite.
16069 (output_unreferenced_globals): Fix output of alias pairs.
16070 (produce_symtab): Likewise.
16071 * ipa.c (function_and_variable_visibility): Set weak alias destination
16072 as needed in lto.
16073 * varasm.c (symbol_alias_set_t): Remove.
16074 (symbol_alias_set_destroy): Export.
16075 (propagate_aliases_forward, propagate_aliases_backward): New functions
16076 based on ...
16077 (compute_visible_aliases): ... this one; remove.
16078 (trivially_visible_alias): New
16079 (trivially_defined_alias): New.
16080 (remove_unreachable_alias_pairs): Rewrite.
16081 (finish_aliases_1): Reorganize code checking if alias is defined.
16082 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16083 in LTO mode.
16084
16085 2011-01-11 Richard Guenther <rguenther@suse.de>
16086
16087 PR tree-optimization/46076
16088 * tree-ssa.c (useless_type_conversion_p): Conversions from
16089 unprototyped to empty argument list function types are useless.
16090
16091 2011-01-11 Richard Guenther <rguenther@suse.de>
16092
16093 PR middle-end/45235
16094 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16095 volatile MEMs as MEM_READONLY_P.
16096
16097 2011-01-11 Richard Guenther <rguenther@suse.de>
16098
16099 PR tree-optimization/47239
16100 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16101
16102 2011-01-11 Jeff Law <law@redhat.com>
16103
16104 PR tree-optimization/47086
16105 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16106 IVs from statements that might throw.
16107
16108 2011-01-10 Jan Hubicka <jh@suse.cz>
16109
16110 PR lto/45375
16111 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16112
16113 2011-01-10 Jan Hubicka <jh@suse.cz>
16114
16115 PR lto/45375
16116 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16117 when correcting profile.
16118
16119 2011-01-10 Jan Hubicka <jh@suse.cz>
16120
16121 PR lto/46083
16122 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16123 DECL_FINI_PRIORITY.
16124 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16125 Restore DECL_FINI_PRIORITY.
16126
16127 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16128
16129 * doc/gimple.texi: Fix quoting of multi-word return values in
16130 @deftypefn statements. Ensure presence of return value. Wrap
16131 overlong @deftypefn lines.
16132 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16133 descriptions of removed functions.
16134 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16135 of multi-word return value in @deftypefn statement.
16136
16137 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16138
16139 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16140 (Conditional Expressions, Logical Operators)
16141 (Statement and operand traversals): Do not indent smallexample
16142 code. Fix duplicate function argument in example.
16143
16144 2011-01-10 Jeff Law <law@redhat.com>
16145
16146 PR tree-optimization/47141
16147 * ipa-split.c (split_function): Handle case where we are
16148 returning a value and the return block has a virtual operand phi.
16149
16150 2011-01-10 Jan Hubicka <jh@suse.cz>
16151
16152 PR tree-optimization/47234
16153 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16154 (pass_feedback_split_functions): Declare.
16155 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16156 tree-profile.
16157 * ipa-split.c (gate_split_functions): Update comments; disable
16158 split-functions for profile_arc_flag and branch_probabilities.
16159 (gate_feedback_split_functions): New function.
16160 (execute_feedback_split_functions): New function.
16161 (pass_feedback_split_functions): New global var.
16162
16163 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16164
16165 PR lto/46760
16166 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16167 calling gimple_call_set_cannot_inline.
16168
16169 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16170
16171 * config/darwin-sections.def: Remove unused section.
16172
16173 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16174
16175 PR c++/47218
16176 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16177
16178 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16179
16180 PR objc/47232
16181 * c-parser.c (c_parser_declaration_or_fndef): Improved
16182 error message.
16183
16184 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16185
16186 * config/i386/winnt.c (i386_pe_start_function): Make sure
16187 to switch back to function's section.
16188
16189 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16190
16191 PR gcc/46902
16192 PR testsuite/46912
16193 * plugin.c: Move include of dlfcn.h from here...
16194 * system.h: ... to here.
16195
16196 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16197
16198 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16199 file name.
16200 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16201 two extra empty pages in PDF output.
16202
16203 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16204
16205 PR objc/47078
16206 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16207 for error recovery purposes behave as if it was not specified so
16208 that the default type is usd.
16209
16210 2011-01-07 Jan Hubicka <jh@suse.cz>
16211
16212 PR tree-optmization/46469
16213 * ipa.c (function_and_variable_visibility): Clear needed flags on
16214 nodes with external decls; handle weakrefs merging correctly.
16215
16216 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16217
16218 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16219 not false.
16220
16221 2011-01-07 Jan Hubicka <jh@suse.cz>
16222
16223 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16224 and no longer claim that gold is required for linker plugin.
16225 * configure: Regenerate.
16226 * gcc.c (PLUGIN_COND): New macro.
16227 (LINK_COMMAND_SPEC): Use it.
16228 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16229 * config.in (HAVE_LTO_PLUGIN): New.
16230 * configure.ac (--with-lto-plugin): New parameter; autodetect
16231 HAVE_LTO_PLUGIN.
16232
16233 2011-01-07 Jan Hubicka <jh@suse.cz>
16234
16235 PR tree-optimization/46367
16236 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16237 when we can update original.
16238 (cgraph_mark_inline_edge): Sanity check.
16239 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16240
16241 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16242
16243 * config/spu/spu.h (ASM_COMMENT_START): Define.
16244
16245 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16246
16247 PR driver/42445
16248 * gcc.c (%>S): New.
16249 (SWITCH_KEEP_FOR_GCC): Likewise.
16250 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16251 (do_spec_1): Handle "%>".
16252
16253 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16254
16255 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16256
16257 PR target/47201
16258 * config/i386/i386.c (ix86_delegitimize_address): If
16259 simplify_gen_subreg fails, return orig_x.
16260
16261 PR bootstrap/47187
16262 * value-prof.c (gimple_stringop_fixed_value): Handle
16263 lhs of the call properly.
16264
16265 2011-01-07 Jan Hubicka <jh@suse.cz>
16266
16267 PR lto/45375
16268 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16269
16270 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16271
16272 * target.def (function_switched_text_sections): New hook.
16273 * doc/tm.texi: Regenerated.
16274 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16275 * final.c (default_function_switched_text_sections): New.
16276 (final_scan_insn): Call function_switched_text_sections when a
16277 mid-function section change occurs.
16278 * output.h (default_function_switched_text_sections): Declare.
16279 * config/darwin-protos.h (darwin_function_switched_text_sections):
16280 Likewise.
16281 * config/darwin.c (darwin_function_switched_text_sections): New.
16282 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16283
16284 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16285
16286 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16287 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16288 the secondary code fragment when outputting for DWARF == 2.
16289
16290 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16291
16292 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16293 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16294 Remove.
16295 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16296 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16297
16298 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16299
16300 PR debug/46704
16301 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16302 when it is not empty.
16303
16304 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16305
16306 Bobcat Enablement
16307 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16308 (case ${target}): Add btver1.
16309 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16310 -march=native recognize btver1 processors.
16311 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16312 btver1 def_and_undef
16313 * config/i386/i386.c (struct processor_costs btver1_cost): New
16314 btver1 cost table.
16315 (m_BTVER1): New definition.
16316 (m_AMD_MULTIPLE): Includes m_BTVER1.
16317 (initial_ix86_tune_features): Add btver1 tune.
16318 (processor_target_table): Add btver1 entry.
16319 (static const char *const cpu_names): Add btver1 entry.
16320 (software_prefetching_beneficial_p): Add btver1.
16321 (ix86_option_override_internal): Add btver1 instruction sets.
16322 (ix86_issue_rate): Add btver1.
16323 (ix86_adjust_cost): Add btver1.
16324 * config/i386/i386.h (TARGET_BTVER1): New definition.
16325 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16326 (enum processor_type): Add PROCESSOR_BTVER1.
16327 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16328
16329 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16330
16331 PR target/43309
16332 * config/i386/i386.c (legitimize_tls_address)
16333 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16334 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16335 (tls_initial_exec_64_sun): New pattern.
16336
16337 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16338
16339 * doc/invoke.texi (Overall Options): Improve wording and markup
16340 of the description of -wrapper.
16341
16342 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16343
16344 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16345 rdynamic, threads): New Driver options.
16346
16347 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16348
16349 PR target/38118
16350 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16351 if coming from .tdata.
16352 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16353
16354 2011-01-06 Jan Hubicka <jh@suse.cz>
16355
16356 PR lto/47188
16357 * collect2.c (main): Do not enable LTOmode when plugin is active.
16358
16359 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16360
16361 PR other/45915
16362 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16363 --version output if supported.
16364 * configure: Regenerate.
16365
16366 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16367
16368 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16369 Driver options.
16370
16371 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16372
16373 PR c/47150
16374 * c-convert.c (convert): When converting a complex expression
16375 other than COMPLEX_EXPR to a different complex type, ensure
16376 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16377 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16378 when converting COMPLEX_TYPE.
16379
16380 2011-01-06 Ira Rosen <irar@il.ibm.com>
16381
16382 PR tree-optimization/47139
16383 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16384 only the last reduction value is used outside the loop. Update
16385 documentation.
16386
16387 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16388
16389 * config/rtems.opt: New.
16390 * config.gcc (*-*-rtems*): Use rtems.opt.
16391
16392 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16393
16394 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16395 processors do not support 3DNow instructions.
16396
16397 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16398
16399 * config/spu/spu.c (spu_option_override): Set parameter
16400 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16401
16402 2011-01-05 Jan Hubicka <jh@suse.cz>
16403
16404 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16405 at the command line.
16406
16407 2011-01-05 Martin Jambor <mjambor@suse.cz>
16408
16409 PR lto/47162
16410 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16411 deltas on streamed outgoing edges.
16412 (output_node_opt_summary): Output info for outgoing edges only when
16413 the node is in new parameter set.
16414 (output_cgraph_opt_summary): New parameter set, passed to the two
16415 aforementioned functions. Update its forward declaration and its
16416 callee too.
16417
16418 2011-01-05 Tom Tromey <tromey@redhat.com>
16419
16420 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16421 operator to c_finish_omp_atomic.
16422 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16423 (build_unary_op): Update.
16424 (build_modify_expr): Update.
16425 (build_asm_expr): Update.
16426
16427 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16428
16429 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16430 newly inserted insns.
16431 (pad_bb): Likewise.
16432 (spu_emit_branch_hint): Likewise.
16433 (insert_hbrp_for_ilb_runout): Likewise.
16434 (spu_machine_dependent_reorg): Call df_finish_pass after
16435 schedule_insns returns.
16436
16437 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16438
16439 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16440
16441 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16442
16443 PR tree-optimization/47005
16444 * tree-sra.c (struct access): Add 'non_addressable' bit.
16445 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16446 (decide_one_param_reduction): Return 0 if the parameter is passed by
16447 reference and one of the accesses in the group is non_addressable.
16448
16449 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16450
16451 PR tree-optimization/47056
16452 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16453 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16454 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16455
16456 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16457
16458 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16459 initializer. Skip view conversions from aggregate types.
16460
16461 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16462
16463 PR bootstrap/47055
16464 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16465
16466 2011-01-04 Philipp Thomas <pth@suse.de>
16467
16468 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16469 obvious typo.
16470
16471 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16472
16473 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16474 on empty epilogue sequences.
16475
16476 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16477
16478 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16479 non-static): New Driver options.
16480
16481 2011-01-04 Jie Zhang <jie@codesourcery.com>
16482
16483 PR driver/47137
16484 * gcc.c (default_compilers[]): Set combinable field to 0
16485 for all assembly languages.
16486
16487 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16488
16489 * config/mips/loongson3a.md: New file.
16490 * config/mips/mips.md: Include loongson3a.md.
16491 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16492 TUNE_LOONGSON_3A.
16493
16494 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16495
16496 PR middle-end/47017
16497 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16498 instead of convert_memory_address_addr_space on the base expression.
16499
16500 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16501
16502 * config/spu/spu.c (spu_option_override): Update error text
16503 for bad -march= / -mtune= values.
16504
16505 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16506
16507 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16508 if branch-hint optimization will be performed.
16509
16510 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16511
16512 PR tree-optimization/47148
16513 * ipa-split.c (split_function): Convert arguments to
16514 DECL_ARG_TYPE if possible.
16515
16516 PR tree-optimization/47155
16517 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16518 when computing uns.
16519
16520 PR rtl-optimization/47157
16521 * combine.c (try_combine): If undobuf.other_insn becomes
16522 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16523 and set *new_direct_jump_p too.
16524
16525 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16526
16527 PR tree-optimization/47021
16528 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16529
16530 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16531
16532 * gcc.c (process_command): Update copyright notice dates.
16533 * gcov.c (print_version): Likewise.
16534 * gcov-dump.c (print_version): Likewise.
16535 * mips-tfile.c (main): Likewise.
16536 * mips-tdump.c (main): Likewise.
16537
16538 2011-01-03 Martin Jambor <mjambor@suse.cz>
16539
16540 PR tree-optimization/46801
16541 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16542 aggregate fields start at byte boundary instead of the bit-field flag.
16543
16544 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16545
16546 PR driver/47137
16547 * gcc.c (main): Revert revision 168407.
16548
16549 2011-01-03 Martin Jambor <mjambor@suse.cz>
16550
16551 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16552
16553 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16554
16555 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16556 vector optab to expand vector/scalar shift, update gimple to vector.
16557
16558 2011-01-03 Martin Jambor <mjambor@suse.cz>
16559
16560 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16561 a thunk.
16562
16563 2011-01-03 Martin Jambor <mjambor@suse.cz>
16564
16565 PR tree-optimization/46984
16566 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16567 HOST_WIDE_INT.
16568 (cgraph_create_indirect_edge): Fixed line length.
16569 (cgraph_indirect_call_info): Declare.
16570 (cgraph_make_edge_direct) Update declaration.
16571 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16572 (cgraph_create_indirect_edge): Use it.
16573 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16574 callees.
16575 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16576 the new thunk_delta representation.
16577 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16578 HOST_WIDE_INT.
16579 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16580 (ipa_read_indirect_edge_info): Likewise.
16581 * lto-cgraph.c (output_edge_opt_summary): New function.
16582 (output_node_opt_summary): Call it on all outgoing edges.
16583 (input_edge_opt_summary): New function.
16584 (input_node_opt_summary): Call it on all outgoing edges.
16585
16586 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16587
16588 PR driver/47137
16589 * gcc.c (main): Don't check have_o when settting combine_inputs.
16590
16591 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16592
16593 * regrename.c: Add general comment describing the pass.
16594 (struct du_head): Remove 'length' field.
16595 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16596 (regrename_optimize): Do not sort chains. Rework comments, add others.
16597 Force renaming to the preferred class (if any) in the first pass and do
16598 not consider registers that belong to it in the second pass.
16599 (create_new_chain): Do not set 'length' field.
16600 (scan_rtx_reg): Likewise.
16601
16602 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16603
16604 PR tree-optimization/47140
16605 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16606 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16607 to bit_value_binop.
16608
16609 PR rtl-optimization/47028
16610 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16611 parm_birth_insn instead of at the beginning of first bb.
16612
16613 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16614
16615 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16616 Remove the word "see" before "@pxref".
16617 * doc/rtl.texi: Remove the word "see" before "@pxref".
16618
16619 2011-01-01 Jan Hubicka <jh@suse.cz>
16620
16621 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16622 memory.
16623
16624 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16625
16626 PR target/38662
16627 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16628
16629 \f
16630 Copyright (C) 2011 Free Software Foundation, Inc.
16631
16632 Copying and distribution of this file, with or without modification,
16633 are permitted in any medium without royalty provided the copyright
16634 notice and this notice are preserved.