OSDN Git Service

8694bfb2b9c14518eead2eef95b95bb5475de631
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2
3         * config/arm/neon.md (orndi3_neon): Actually split it.
4
5 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
6
7         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
8         * var-tracking.c (reverse_op): Limite recurse depth to 5.
9
10 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
11
12         PR debug/47590
13         * target.def (delay_sched2, delay_vartrack): New.
14         * doc/tm.texi.in: Update.
15         * doc/tm.texi: Rebuild.
16         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
17         * var-tracking.c (gate_handle_var_tracking): Likewise.
18         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
19         (bfin_flag_var_tracking): Drop.
20         (output_file_start): Don't save and override flag_var_tracking.
21         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
22         (bfin_reorg): Test original variables.
23         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
24         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
25         (ia64_flag_var_tracking): Drop.
26         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
27         (ia64_file_start): Don't save and override flag_var_tracking.
28         (ia64_override_options_after_change): Ditto
29         flag_schedule_insns_after_reload.
30         (ia64_reorg): Test original variables.
31         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
32         (picochip_flag_var_tracking): Drop.
33         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
34         (picochip_option_override): Don't save and override
35         flag_schedule_insns_after_reload.
36         (picochip_asm_file_start): Ditto flag_var_tracking.
37         (picochip_reorg): Test original variables.
38         * config/spu/spu.c (spu_flag_var_tracking): Drop.
39         (TARGET_DELAY_VARTRACK): Define.
40         (spu_var_tracking): New.
41         (spu_machine_dependent_reorg): Call it.
42         (asm_file_start): Don't save and override flag_var_tracking.
43
44 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
45
46         PR target/49163
47         * config/sh/predicates.md (general_movsrc_operand): Return 0
48         for memory and memory subreg of which address is an invalid
49         indexed address for QI and HImode.
50         (general_movdst_operand): Likewise.
51
52 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
53
54         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
55         edges only, when there is a non-local label in the function.
56         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
57
58 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
59
60         * config/i386/constraints.md (Y3): New register constraint.
61         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
62         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
63         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
64         *sse2_interleave_lowv2df.
65
66 2011-06-02  Julian Brown  <julian@codesourcery.com>
67
68         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
69         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
70         (arm_cortex_a5_tune): New.
71
72 2011-06-02  Julian Brown  <julian@codesourcery.com>
73
74         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
75         * config/arm/arm.c (arm_default_branch_cost): New.
76         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
77         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
78         (arm_fa726_tune): Set branch_cost field using
79         arm_default_branch_cost.
80         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
81         current_tune structure.
82         * dojump.c (tm_p.h): Include file.
83
84 2011-06-02  Julian Brown  <julian@codesourcery.com>
85
86         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
87         tuning.
88         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
89         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
90         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
91         field.
92         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
93         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
94         (arm_fa726te_tune): Add prefer_constant_pool setting.
95         (arm_v6t2_tune, arm_cortex_tune): New.
96         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
97         prefer_constant_pool setting.
98
99 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
100
101         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
102         switch statement.
103         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
104         (*movdf_internal) <case 6,7,8>: Ditto.
105
106         * config/i386/constraints.md (Y4): New register constraint.
107         * config/i386/sse.md (vec_set<mode>_0): Merge with
108         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
109         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
110         *vec_extractv2di_1_sse.
111         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
112         and *vec_concatv2di_rex64_sse.
113
114 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
115
116         PR target/48807
117         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
118         of cgraph_local_info for null before attempting to use it.
119
120 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
121
122         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
123         (current_function_dynamic_alloc_count): Delete.
124         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
125         (expand_builtin_nonlocal_goto): Remove obsolete comment.
126         (expand_builtin_update_setjmp_buf): Remove dead code.
127         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
128         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
129         support.
130         * function.c (instantiate_virtual_regs): Likewise.
131         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
132         for a block with a single abnormal incoming edge.
133         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
134         (SETJMP_VIA_SAVE_AREA): Delete.
135         * config/sparc/sparc-protos.h (load_got_register): Declare.
136         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
137         (load_got_register): Make global.
138         (sparc_frame_pointer_required): Add 'static'.
139         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
140         (sparc_builtin_setjmp_frame_value): New function.
141         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
142         (save_stack_nonlocal): New expander.
143         (restore_stack_nonlocal): Likewise.
144         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
145         (nonlocal_goto_internal): New insn.
146         (goto_handler_and_restore): Delete.
147         (builtin_setjmp_setup): Likewise.
148         (do_builtin_setjmp_setup): Likewise.
149         (setjmp): Likewise.
150         (builtin_setjmp_receiver): New expander.
151
152 2011-06-01  David Li  <davidxl@google.com>
153
154         PR middle-end/49261
155         * tree-pretty-print.c (dump_function_header): Format cleanup.
156
157 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
158
159         PR target/49238
160         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
161         needed when original operands are used for msw_skip comparison.
162
163 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
164
165         PR debug/49250
166         * var-tracking.c (add_uses, add_stores): Don't call
167         cselib_subst_to_values on ENTRY_VALUE.
168
169 2011-06-01  Diego Novillo  <dnovillo@google.com>
170
171         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
172         output_record_start with LTO_null instead of output_zero.
173         (lto_output_ts_binfo_tree_pointers): Likewise.
174         (lto_output_tree): Likewise.
175         (output_eh_try_list): Likewise.
176         (output_eh_region): Likewise.
177         (output_eh_lp): Likewise.
178         (output_eh_regions): Likewise.
179         (output_bb): Likewise.
180         (output_function): Likewise.
181         (output_unreferenced_globals): Likewise.
182         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
183         instead of NUM_TREE_CODES.
184         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
185         (lto_output_int_in_range): Change << to >> when shifting VAL.
186
187 2011-06-01  Diego Novillo  <dnovillo@google.com>
188
189         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
190         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
191
192 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
193
194         PR target/45074
195         * optabs.h (valid_multiword_target_p): Declare.
196         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
197         doing multi-word operations.
198         * optabs.c (expand_binop): Likewise.
199         (expand_doubleword_bswap): Likewise.
200         (expand_absneg_bit): Likewise.
201         (expand_unop): Likewise.
202         (expand_copysign_bit): Likewise.
203         (multiword_target_p): New function.
204
205 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
206
207         PR rtl-optimization/48830
208         PR rtl-optimization/48808
209         PR rtl-optimization/48792
210         * reload.c (push_reload): Check contains_reg_of_mode.
211         * reload1.c (strip_paradoxical_subreg): New function.
212         (gen_reload_chain_without_interm_reg_p): Use it to handle
213         paradoxical subregs.
214         (emit_output_reload_insns, gen_reload): Likewise.
215
216 2011-06-01  David Li  <davidxl@google.com>
217
218         * predict.c : Change pass name
219         * ipa.c: Ditto.
220         * dce.c: Ditto.
221         * tree-profile.c: Ditto.
222         * except.c: Ditto.
223
224 2011-06-01  David Li  <davidxl@google.com>
225
226         * tree-pretty-print.c (dump_function_header): New function.
227         * final.c (rest_of_clean_state): Use header dumper.
228         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
229         * passes.c (pass_init_dump_file): Use header dumper.
230
231 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
232
233         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
234         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
235         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
236         New functions.
237         (mem_loc_descriptor): Use them.
238
239         * var-tracking.c (create_entry_value): New function.
240         (vt_add_function_parameter): Use it.
241
242 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
243
244         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
245         Include <signal.h>, <ucontext.h>.
246         (sigill_caught): Define.
247         (sigill_hdlr): New function.
248         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
249         insns can be executed.
250         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
251         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
252
253 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
254
255         * config/t-slibgcc-darwin: Move to ...
256         * config/t-slibgcc-dummy: ... this.  Clarify comments.
257         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
258         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
259         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
260         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
261         Remove i386/t-crtstuff from tmake_file.
262         (i[34567]86-*-solaris2*): Remove t-svr4,
263         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
264         t-slibgcc-dummy.
265         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
266         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
267         sparc/t-crtfm from tmake_file.
268         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
269         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
270         Remove extra_parts.
271         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
272         * config/i386/t-nwld (SHLIB_LINK): Remove.
273         * config/i386/t-rtems-i386: Rename to ...
274         * config/i386/t-rtems: ... this.
275         ($(T)crti.o, $(T)crtn.o): Remove.
276         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
277         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
278         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
279         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
280         EXTRA_MULTILIB_PARTS): Remove.
281         * config/sparc/t-sol2-64: Likewise.
282         * config/sparc/t-sol2: Remove.
283         * config/sparc/t-crtin: Remove.
284         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
285         * config/i386/gmon-sol2.c: Remove.
286         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
287         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
288         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
289         * config/i386/sol2-gc1.asm: Remove.
290         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
291         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
292         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
293         * config/t-slibgcc-sld: Remove.
294
295 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
296
297         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
298         base_type_for_mode with op_mode instead of mode.
299
300 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
301
302         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
303         Cortex-A15.
304         * config/arm/arm-tune.md: Regenerate.
305         * config/arm/arm-tables.opt: Regenerate.
306         * config/arm/arm.c (FL_DIV): Rename...
307         (FL_THUMB_DIV): ... to this.
308         (FL_ARM_DIV): Define.
309         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
310         (arm_arch_hwdiv): Remove.
311         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
312         (arm_issue_rate): Add cortexr5.
313         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
314         __ARM_ARCH_EXT_IDIV__.
315         (TARGET_IDIV): Define.
316         (arm_arch_hwdiv): Remove.
317         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
318         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
319         (divsi3, udivsi3): New patterns.
320         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
321         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
322
323 2011-06-01  Martin Jambor  <mjambor@suse.cz>
324
325         * ipa-utils.c (ipa_dfs_info): New field scc_no.
326         * ipa-utils.c (searchc): Set scc_no.
327
328 2011-06-01  Martin Jambor  <mjambor@suse.cz>
329
330         * ipa-utils.c (searchc_env): New field allow_overwritable.
331         (searchc): do not ignore edges to overwritable nodes if indicated
332         by env->allow_overwritable.
333         (ipa_reduced_postorder): Set env.allow_overwritable.
334
335 2011-06-01  Richard Guenther  <rguenther@suse.de>
336
337         * tree.c (free_lang_data): Do not reset boolean_type_node nor
338         char_type_node.
339         * lto-streamer.c (lto_record_common_node): Take node pointer,
340         do not register types.
341         (lto_preload_common_nodes): Explicitly skip preloading nodes
342         that differ between frontends.
343
344 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
345
346         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
347         NON_FLOAT_REGS.
348
349 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
350
351         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
352         parameter value for dump. Dump cost on outermost call only.
353         (rs6000_memory_move_cost): Dump cost on outermost call only.
354
355 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
356
357         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
358         DW_OP_GNU_convert ops.
359
360         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
361         cselib_preserve_constants.
362         (cselib_lookup_1): If cselib_preserve_constants,
363         a new VALUE is being created for REG and there is a VALUE for the
364         same register in wider mode, add another loc with lowpart SUBREG of
365         the wider VALUE.
366         (cselib_subst_to_values): Handle ENTRY_VALUE.
367         * var-tracking.c  (replace_expr_with_values): Return NULL for
368         ENTRY_VALUE too.
369         * dwarf2out.c (convert_descriptor_to_signed): New function.
370         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
371         instead of two shifts.
372         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
373         the right mode if needed.
374         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
375         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
376         convert_descriptor_to_signed.
377         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
378         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
379
380         PR target/48688
381         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
382
383 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
384
385         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
386         of X87MODEI12 and SWI48x instead of SSEMODEI24.
387         (SWI248x): New mode iterator, rename from X87MODEI.
388         (X87MODEI): Remove mode iterator.
389         (X87MODEI12): Ditto.
390         (SSEMODEI24): Ditto.
391
392 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
393
394         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
395         * doc/invoke.texi: Document max-vartrack-expr-depth.
396         * var-tracking.c (EXPR_DEPTH): New.
397         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
398
399 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
400
401         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
402         * config/i386/sse.md: Add n to negated FMA pattern names.
403
404 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
405
406         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
407
408 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
409
410         * gengtype-state.c (read_state_params_structs): Initialize previous.
411
412 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
413
414         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
415         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
416
417 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
418
419         * config/i386/i386.md (*movtf_internal): Avoid allocating general
420         registers.  Penalize F*r->o alternative to prevent partial memory
421         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
422         CONST_DOUBLE immediates when optimizing function for size.  Do not move
423         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
424         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
425         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
426         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
427         alternatives.
428         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
429
430         (fp_register_operand splitters): Use fp_register_operand
431         constraint.  Do not use FP_REG_P in insn condition.
432         (any_fp_register_operand splitters): Use any_fp_register_operand
433         constraint.  Do not use ANY_FP_REG_P in insn condition.
434
435 2011-05-31  Jan Hubicka  <jh@suse.cz>
436
437         * cgraph.h (cgraph_inline_failed_t): Give enum a name
438         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
439         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
440         (lto_output_edge): Use output_enum and var_len_unsigned.
441         (lto_output_varpool_node): Likewise.
442         (input_overwrite_node): Do not take resolution parameter;
443         extract it from a bitpack.
444         (input_node): Do not read resolution; use input_enum and
445         var_len_unsigned.
446         (input_varpool_node): Likewise.
447         (input_edge): Likewise.
448         (input_cgraph_1): Likewise.
449
450 2011-05-31  Richard Guenther  <rguenther@suse.de>
451
452         * gimple.c (gimple_register_canonical_type): Do not register
453         any types via gimple_register_type.
454
455 2011-05-31  Jan Hubicka  <jh@suse.cz>
456
457         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
458         of thunks.
459
460 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
461
462         PR rtl-optimization/49235
463         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
464         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
465
466 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
467
468         PR tree-optimization/49093
469         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
470         data references.
471
472 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
473
474         PR debug/49047
475         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
476         for concrete functions containing the code of cloned functions.
477
478 2011-05-31  Richard Guenther  <rguenther@suse.de>
479
480         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
481         to ...
482         (forward_propagate_into_comparison_1): ... this.
483         (forward_propagate_comparison): Rename to ...
484         (forward_propagate_into_comparison): ... this.  Split out
485         real forward propagation code to ...
486         (forward_propagate_comparison): ... this.
487         (forward_propagate_into_gimple_cond): Remove looping.
488         (forward_propagate_into_cond): Likewise.
489         (simplify_not_neg_expr): Return whether we have done something.
490         (simplify_gimple_switch): Likewise.
491         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
492         (ssa_forward_propagate_and_combine): ... this.  Re-structure
493         to do a forward forward-propagation walk on BBs and a backward
494         stmt combining walk on BBs.  Consistently re-scan changed statements.
495         (pass_forwprop): Adjust.
496
497 2011-05-30  Ian Lance Taylor  <iant@google.com>
498
499         * godump.c (go_format_type): Correct length of name added to
500         obstack for anonymous field.
501
502 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
503
504         PR target/49186
505         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
506         part of the second operand is 0.
507
508 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
509
510         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
511         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
512         to memory for !TARGET_MEMORY_MISMATCH_STALL.
513         (*movdf_internal_rex64): Do not penalize F->r alternative.
514         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
515         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
516         when optimizing function for size.  Do not move CONST_DOUBLEs
517         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
518         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
519         SUBREGs.  Do not check for MEM_P operands in the insn condition,
520         check for ANY_FP_REGNO_P instead.
521         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
522         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
523         function for speed.
524         * config/i386/i386.c (ix86_option_override_internal): Do not
525         set TARGET_INTEGER_DFMODE_MOVES here.
526
527 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
528
529         PR target/49168
530         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
531
532 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
533
534         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
535         DW_TAG_rvalue_reference_type even for
536         -gdwarf-4 -fno-debug-types-section.
537
538 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
539
540         PR tree-optimization/46728
541         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
542         (build_and_insert_binop): New.
543         (gimple_expand_builtin_pow): Reorder args for
544         build_and_insert_call; use build_and_insert_binop; add more
545         optimizations for fractional exponents.
546
547 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
548
549         PR bootstrap/49190
550
551         Revert:
552         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
553
554         * tree.h (struct tree_identifier): Inherit from tree_typed, not
555         tree_common.
556         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
557         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
558         TS_BASE instead of TS_COMMON.
559         * varasm.c (assemble_name): Remove assert.
560
561 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
562
563         * config.gcc: Keep obselete list sorted.
564
565 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
566             Eric Botcazou  <ebotcazou@adacore.com>
567
568         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
569         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
570         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
571         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
572         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
573
574 2011-05-30  Richard Guenther  <rguenther@suse.de>
575
576         * gimple.c (gimple_types_compatible_p_1): Compare record
577         and union type members properly.
578
579 2011-05-30  Richard Guenther  <rguenther@suse.de>
580
581         PR tree-optimization/49210
582         * ipa-split.c (split_function): Care for the case where the call
583         result is not trivially convertible to the result holding variable.
584
585 2011-05-30  Richard Guenther  <rguenther@suse.de>
586
587         PR tree-optimization/49218
588         * tree-vrp.c (adjust_range_with_scev): Properly check whether
589         overflow occured.
590
591 2011-05-30  Richard Guenther  <rguenther@suse.de>
592
593         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
594         New function split out from ...
595         (forward_propagate_into_gimple_cond): ... here.  Adjust.
596         (forward_propagate_into_cond): Likewise.
597         (forward_propagate_comparison): Also propagate into
598         comparisons on assignment RHS.  Change return value to
599         behave similar to forward_propagate_into_cond.
600         (tree_ssa_forward_propagate_single_use_vars): Handle
601         strict-overflow warnings properly for forward_propagate_comparison.
602
603 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
604
605         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
606         from plugin linker.
607         * configure: Regenerate.
608
609 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
610
611         PR tree-optimization/49199
612         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
613         non-reduction operands are either defined in the loop or by induction.
614
615 2011-05-29  Xinliang David Li  <davidxl@google.com>
616
617         * opts-global.c (handle_common_deferred_options): Handle new options.
618         * passes.c (register_one_dump_file): Call register_pass_name.
619         (execute_one_pass): Check explicit enable/disable flag.
620         (passr_hash): New function.
621         (passr_eq): Ditto.
622         (register_pass_name): Ditto.
623         (get_pass_by_name): Ditto.
624         (pass_hash): Ditto.
625         (pass_eq): Ditto.
626         (enable_pass): Ditto.
627         (disable_pass): Ditto.
628         (is_pass_explicitly_enabled_or_disabled): Ditto.
629
630 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
631
632         * config/i386/i386.md (*movoi_internal_avx): Use
633         standard_sse_constant_opcode for alternative 0.
634         (*movti_internal_sse): Ditto.
635         (*movti_internal_rex64): Use standard_sse_constant_opcode for
636         alternative 2.
637         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
638         sselog1 type moves.
639         (*movsi_internal): Ditto.
640         (*movdi_internal): Ditto.  Add ssecvt type moves.
641
642 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
643
644         PR target/48830
645         * rtlanal.c (simplify_subreg_regno): Adjust comment.
646
647 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
648
649         PR rtl-optimization/49095
650         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
651         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
652
653 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
654
655         PR target/43995
656         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
657         recurse_p argument.  Only follow register copies if it is set,
658         and prevent mips_find_pic_call_symbol from recursing.
659         (mips_find_pic_call_symbol): Add a recurse_p argument.
660         Pass it to mips_pic_call_symbol_from_set.
661         (mips_annotate_pic_calls): Update accordingly.
662
663 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
664
665         * emit-rtl.c (try_split): Use a loop to search for
666         NOTE_INSN_CALL_ARG_LOCATIONs.
667
668 2011-05-29  Richard Guenther  <rguenther@suse.de>
669
670         PR tree-optimization/49217
671         * ipa-pure-const.c (propagate_pure_const): Fix typos.
672
673 2011-05-28  Jan Hubicka  <jh@suse.cz>
674
675         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
676         length.
677         (string_slot_free): Remove
678         (create_output_block): Initialize obstack.
679         (destroy_output_block): Free obstack.
680         (lto_string_index): Add PERSISTENT parameter; do not duplicate
681         the string unless it needs to be added into the hash.
682         (lto_output_string_with_length): Add persistent attribute;
683         handle NULL strings.
684         (lto_output_string): Add PERSISTENT parameter.
685         (output_string_cst, output_identifier): Simplify.
686         (lto_output_location_bitpack): Update.
687         (lto_output_builtin_tree): Update.
688         * lto-streamer.h (struct output_block): Add obstack.
689         (lto_output_string, lto_output_string_with_length): Remove
690         declarations; functions are static now.
691
692 2011-05-28  Jan Hubicka  <jh@suse.cz>
693
694         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
695         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
696         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
697         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
698         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
699         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
700         unpack_ts_decl_with_vis_value_fields,
701         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
702         lto_get_builtin_tree): Use enum and variable length i/o.
703         * basic-block.h (profile_status_d): Add PROFILE_LAST.
704         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
705         New functions.
706         (bp_pack_enum, bp_unpack_enum): New macros.
707
708 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
709
710         * genrecog.c: Remove redundant forward declarations.
711
712 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
713
714         * config.gcc: Deprecate mips*-*-openbsd*.
715
716 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
717
718         PR bootstrap/49195
719         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
720         for match_op_dup.
721
722 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
723
724         PR middle-end/48981
725         * gengtype.c (vec_prefix_type): New function.
726         (note_def_vec): Use vec_prefix_type and change the length
727         attribute to be based on the prefix.
728         * vec.c: Include coretypes.h before vec.h.
729         (struct vec_prefix): Remove.
730         (vec_gc_p_reserve): Change the offsetof to sizeof.
731         (vec_gc_p_reserve_exact): Likewise.
732         (vec_heap_p_reserve): Likewise.
733         (vec_heap_p_reserve_exact): Likewise.
734         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
735         (vec_stack_p_reserve): Change the offsetof to sizeof.
736         (vec_stack_p_reserve_exact): Likewise.
737         * vec.h (struct vec_prefix): New struct definition.
738         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
739         (VEC_T_GTY(T,B)): Likewise.
740         (DEF_VEC_FUNC_P(T)): Use prefix field.
741         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
742         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
743
744 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
745
746         PR tree-optimization/46728
747         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
748         (powi_as_mults): Add gimple_set_location.
749         (build_and_insert_call): New.
750         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
751         0.5, 0.25, 0.75, 1./3., or 1./6.
752
753 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
754
755         * doc/contrib.texi: Update copyright years.
756         (Contributors): Add Zdenek Sojka.
757
758 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
759
760         * c-decl.c (c_push_function_context): Copy the current statement
761         list stack.
762         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
763         (finish_struct): Call building_stmt_list_p instead of checking
764         cur_stmt_list.
765         * c-parser.c (c_parser_postfix_expression): Likewise.
766         * c-typeck.c (c_end_compound_stmt): Likewise.
767         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
768         * tree-iterator.c (stmt_list_cache): Change to a VEC.
769         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
770         (free_stmt_list): Likewise.
771         * tree.h (struct tree_statement_list): Include typed_tree instead
772         of tree_common.
773         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
774         as TS_TYPED instead of TS_COMMON.
775
776 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
777             Uros Bizjak  <ubizjak@gmail.com>
778
779         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
780         (HAVE_AS_IX86_TLSGDPTL): Define.
781         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
782         (HAVE_AS_IX86_TLSLDMPLT): Define.
783         * configure: Regenerate.
784         * config.in: Regenerate.
785         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
786         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
787         TARGET_SUN_TLS, use @tlsgdplt or @plt.
788         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
789         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
790         @tlsldmplt or @plt.
791         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
792
793 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
794
795         * sched-int.h (struct _haifa_deps_insn_data): New members cond
796         and reverse_cond.
797         (INSN_COND, INSN_REVERSE_COND): New macros.
798         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
799         once.
800         (sched_get_condition_with_rev): Cache the results, and look them up
801         if possible.
802         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
803         are clobbered by the current insn.
804         * target.def (exposed_pipline): New sched data hook.
805         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
806         * doc/tm.texi: Regenerate.
807
808 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
809
810         PR tree-optimization/49170
811         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
812         sincos or cexp.
813
814 2011-05-27  Richard Guenther  <rguenther@suse.de>
815
816         PR middle-end/49189
817         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
818         of comparisons.
819
820 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
821
822         * haifa-sched.c (sched_scan_info): Remove.
823         (schedule_block): Call sched_extend_luids rather than sched_init_luids
824         with NULL args.
825         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
826         Remove functions.
827         (sched_scan): Remove.
828         (sched_extend_luids): Renamed from luids_extend_insn and no longer
829         static.  All callers changed.
830         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
831         static.  All callers changed.
832         (sched_init_luids): Remove all arguments except the first.  All
833         callers changed.  Don't use sched_scan.
834         (haifa_init_h_i_d): Likewise.
835         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
836         manually rather than using sched_init_luids.  Likewise with
837         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
838         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
839         rather than sched_init_luids with NULL args.
840         * sel-sched-ir.c (new_insns): Remove variable.
841         (sched_scan): New static function, previously in haifa-sched.c.  Remove
842         all arguments but the first two; all callers changed.
843         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
844         rather than sched_init_luids.
845         (sel_init_bbs): Remove second argument.  All callers changed.
846         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
847         with NULL arguments.
848         (create_insn_rtx_from_pattern): Likewise.
849         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
850         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
851         (sched_init_insn_luid, sched_extend_luids): Declare.
852         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
853         declarations.
854
855 2011-05-27  Richard Guenther  <rguenther@suse.de>
856
857         PR middle-end/49177
858         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
859         A CMP B ? (T) true : (T) false for non-integral types T again.
860
861 2011-05-27  Jan Hubicka  <jh@suse.cz>
862
863         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
864         so 0 means NULL string.
865         (lto_output_string_with_length): ... here.
866         (lto_output_string, output_string_cst, output_identifier): Update
867         handling of NULL strings.
868         (lto_output_location_bitpack): New function.
869         (lto_output_location): Use it.
870         (lto_output_tree_ref): Use output_record_start.
871         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
872         len values.
873         * lto-streamer-in.c (string_for_index): Break out from ...; offset
874         values by 1.
875         (input_string_internal): ... here;
876         (input_string_cst, input_identifier, lto_input_string): Update handling
877         of NULL strings.
878         (lto_input_location_bitpack): New function
879         (lto_input_location): Use it.
880         (unpack_ts_type_common_value_fields): Pack align & alias in var len
881         values.
882         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
883         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
884         (bp_pack_value): Sanity check the value range.
885         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
886         New functions.
887         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
888         New functions.
889
890 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
891
892         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
893         call_arg_location instructions down the floor.
894
895 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
896
897         PR rtl-optimization/49154
898         * ira.c (setup_pressure_classes): Process class without sublcasses
899         as a candidate for pressure classes.
900
901 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
902
903         PR rtl-optimization/48575
904         * genrecog.c (position_type): New enum.
905         (position): New structure.
906         (decision): Use position structure instead of a string.
907         (root_pos, peep2_insn_pos_list): New variables.
908         (next_position, compare_positions): New functions.
909         (new_decision): Use position structures instead of strings.
910         (maybe_both_true): Likewise.
911         (change_state): Likewise.
912         (write_tree): Likewise.
913         (make_insn_sequence): Likewise.
914
915 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
916
917         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
918         TS_BASE instead of TS_COMMON.
919         (find_decls_types_r): Check for TS_TYPED structure before looking at
920         TREE_TYPE.
921         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
922         Add chain field.
923         (BLOCK_CHAIN): Use new chain field.
924
925 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
926
927         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
928         moves expensive on Power7 also.
929
930 2011-05-26  Richard Guenther  <rguenther@suse.de>
931
932         * fold-const.c (fold_unary_loc): Remove bogus code.
933
934 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
935
936         * tree.h (struct tree_identifier): Inherit from tree_typed, not
937         tree_common.
938         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
939         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
940         TS_BASE instead of TS_COMMON.
941         * varasm.c (assemble_name): Remove assert.
942
943 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
944
945         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
946         substituted first.
947         * libgcc-std.ver: Delete file.
948
949 2011-05-26  Richard Guenther  <rguenther@suse.de>
950
951         PR tree-optimization/48702
952         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
953         only when we know the base address is within bounds.
954         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
955         assume the base address of TARGET_MEM_REFs is in bounds.
956
957 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
958
959         PR target/49099
960         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
961         declaration in TARGET_SOLARIS.
962
963 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
964
965         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
966         The instruction is then expanded explicitly.
967         (supported_compare): Callable instruction.
968         (compare): Likewise.
969
970 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
971
972         PR c++/49165
973         * gimplify.c (shortcut_cond_r): Don't special case
974         COND_EXPRs if they have void type on one of their arms.
975
976 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
977
978         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
979         to reduce duplication, and to achieve a slightly more logical order
980         of operations.
981
982 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
983
984         PR tree-optimization/49161
985         * tree-vrp.c (struct case_info): New type.
986         (compare_case_labels): Sort case_info structs instead of
987         trees, and not primarily by CASE_LABEL uids but by
988         label_for_block indexes.
989         (find_switch_asserts): Put case labels into struct case_info
990         array instead of TREE_VEC, adjust sorting, compare label_for_block
991         values instead of CASE_LABELs.
992
993 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
994
995         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
996         ("orndi3_neon"): Likewise.
997         ("bic<mode>3_neon"): Likewise.
998
999 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
1000
1001         PR tree-optimization/49038
1002         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1003         Ensure at least one epilogue iteration if required by data
1004         accesses with gaps.
1005         * tree-vectorizer.h (struct _loop_vec_info): Add new field
1006         to mark loops that require peeling for gaps.
1007         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1008         (vect_get_known_peeling_cost): Take peeling for gaps into
1009         account.
1010         (vect_transform_loop): Generate epilogue if required by data
1011         access with gaps.
1012         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1013         loop as requiring an epilogue if there are gaps in the end of
1014         the strided group.
1015
1016 2011-05-25  Ian Lance Taylor  <iant@google.com>
1017
1018         * godump.c (go_format_type): Output the first field with a usable
1019         Go type, if any.
1020
1021 2011-05-25  Ian Lance Taylor  <iant@google.com>
1022
1023         * godump.c (go_format_type): Check for invalid type names, pointer
1024         target types, and struct field types.
1025
1026 2011-05-25  Jason Merrill  <jason@redhat.com>
1027
1028         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1029
1030 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
1031
1032         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1033
1034 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1035
1036         * config/i386/i386.md (*movqi_extv_1)): Put back
1037         "register_operand" check in "type" calculation.
1038         (*movqi_extzv_2): Likewise.
1039
1040 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1041
1042         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1043
1044 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
1045
1046         PR bootstrap/49160
1047         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1048         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1049         __divxc3, __divtc3): Wrap definitions in #ifndef.
1050
1051 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1052
1053         PR target/49142
1054         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1055         "register_operand" check and replace q_regs_operand with
1056         QIreg_operand in "type" calculation.
1057         (*movqi_extv_1): Likewise.
1058         (*movqi_extzv_2_rex64): Likewise.
1059         (*movqi_extzv_2): Likewise.
1060
1061         * config/i386/predicates.md (QIreg_operand): New.
1062
1063 2011-05-25  Richard Guenther  <rguenther@suse.de>
1064
1065         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1066         type-based offset disambiguation, streamline MEM_REF and
1067         TARGET_MEM_REF handling.
1068
1069 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1070
1071         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1072         (bdesc_special_args): Add pause intrinsic.
1073
1074         * config/i386/i386.md (UNSPEC_PAUSE): New.
1075         (pause): Likewise.
1076         (*pause): Likewise.
1077         * config/i386/ia32intrin.h (__pause): Likewise.
1078
1079         * doc/extend.texi (X86 Built-in Functions): Add documentation for
1080         pause intrinsic.
1081
1082 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1083
1084         PR tree-optimization/46728
1085         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1086         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1087
1088 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
1089
1090         * tree.h (struct tree_exp): Inherit from struct tree_typed.
1091         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1092         instead of TS_COMMON.
1093
1094 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
1095
1096         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1097         LIBGCC2_GNU_PREFIX is defined.
1098         (__N): New macro.
1099         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1100         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1101         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1102         __clz_tab): Define using __N.
1103         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1104         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1105         * target.def (libfunc_gnu_prefix): New hook.
1106         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1107         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1108         * doc/tm.texi: Regenerate.
1109         * system.h (LIBGCC2_GNU_PREFIX): Poison.
1110         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1111         account.
1112         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1113         (init_optabs): Likewise for the bswap libfuncs.
1114         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1115         and divide.
1116         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1117         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1118         * libgcc-std.ver: Remove.
1119         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1120         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1121         libgcc-std.ver.
1122         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1123         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1124         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1125         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1126         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1127         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1128         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1129         * config/fixed-bit.h (FIXED_OP): Define differently depending on
1130         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1131         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1132
1133 2011-05-25  Jan Hubicka  <jh@suse.cz>
1134
1135         * lto-streamer-out.c (output_record_start): Use lto_output_enum
1136         (lto_output_tree): Use output_record_start.
1137         * lto-streamer-in.c (input_record_start): Use lto_input_enum
1138         (lto_get_pickled_tree): Use input_record_start.
1139         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1140         (lto_value_range_error): New function.
1141         * lto-streamer.h (lto_value_range_error): Declare.
1142         (lto_output_int_in_range, lto_input_int_in_range): New functions.
1143         (lto_output_enum, lto_input_enum): New macros.
1144
1145 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
1146
1147         * common.opt (flag_stack_usage_info): New variable.
1148         (-Wstack-usage): New option.
1149         * doc/invoke.texi (Warning options): Document -Wstack-usage.
1150         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1151         <OPT_fstack_usage>: Likewise.
1152         * toplev.c (output_stack_usage): Handle -Wstack-usage.
1153         * calls.c (expand_call): Test flag_stack_usage_info variable instead
1154         of flag_stack_usage.
1155         (emit_library_call_value_1): Likewise.
1156         * explow.c (allocate_dynamic_stack_space): Likewise.
1157         * function.c (instantiate_virtual_regs ): Likewise.
1158         (prepare_function_start): Likewise.
1159         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1160         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1161         * config/arm/arm.c (arm_expand_prologue): Likewise.
1162         (thumb1_expand_prologue): Likewise.
1163         * config/avr/avr.c (expand_prologue): Likewise.
1164         * config/i386/i386.c (ix86_expand_prologue): Likewise.
1165         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1166         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1167         * config/mips/mips.c (mips_expand_prologue): Likewise.
1168         * config/pa/pa.c (hppa_expand_prologue): Likewise.
1169         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1170         * config/s390/s390.c (s390_emit_prologue): Likewise.
1171         * config/sh/sh.c (sh_expand_prologue): Likewise.
1172         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1173         * config/spu/spu.c (spu_expand_prologue): Likewise.
1174
1175 2011-05-25  Richard Guenther  <rguenther@suse.de>
1176
1177         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1178         (gimple_canonical_types_compatible_p): Likewise.
1179
1180 2011-05-25  Jan Hubicka  <jh@suse.cz>
1181
1182         PR middle-end/49062
1183         * ipa.c (function_and_variable_visibility): Only add to same
1184         comdat group list if DECL_ONE_ONLY.
1185
1186 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
1187
1188         PR rtl-optimization/49014
1189         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1190
1191 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
1192
1193         PR target/49128
1194         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1195
1196 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
1197
1198         PR rtl-optimization/48757
1199         * ira-build.c (loop_with_eh_edge_p): Rename to
1200         loop_with_complex_edge_p, check edges on complexity, make function
1201         conditional.
1202         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1203         conditional.
1204
1205 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
1206
1207         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1208         force flag_ira_share_save_slots to 0.
1209
1210 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
1211
1212         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1213         (vt_initialize): Set PROLOGUE_BB unconditionally.
1214         Add block comment about CFA_BASE_RTX machinery.
1215         Reset FP_CFA_OFFSET to -1 on all invalid paths.
1216         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1217
1218 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1219
1220         PR objc/48187
1221         * c-parser.c (c_parser_objc_class_instance_variables): More robust
1222         parsing of syntax error in ObjC instance variable lists.  In
1223         particular, avoid an infinite loop if there is a stray ']'.
1224         Updated error message.
1225
1226 2011-05-24  Ian Lance Taylor  <iant@google.com>
1227
1228         * godump.c (go_define): Don't accept a string immediately after
1229         another operand.
1230
1231 2011-05-24  Ian Lance Taylor  <iant@google.com>
1232
1233         * godump.c (struct godump_container): Add invalid_hash field.
1234         (go_format_type): Return false if type is found in invalid_hash.
1235         (go_output_typedef): Add invalid type to invalid_hash.
1236         (go_finish): Create and delete invalid_hash.
1237
1238 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1239
1240         PR tree-optimization/46728
1241         * tree-ssa-math-opts.c (powi_table): New.
1242         (powi_lookup_cost): New.
1243         (powi_cost): New.
1244         (powi_as_mults_1): New.
1245         (powi_as_mults): New.
1246         (gimple_expand_builtin_powi): New.
1247         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1248         (gate_cse_sincos): Remove sincos/cexp restriction.
1249
1250 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1251
1252         PR target/3746
1253         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1254         mips-tdump native.
1255         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1256         * mips-tdump.c: Likewise.
1257
1258 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1259
1260         PR target/49128
1261         * config/i386/driver-i386.c (host_detect_local_cpu): Always
1262         add -mno-XXX.  Handle FMA.
1263
1264 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
1265
1266         PR rtl-optimization/48633
1267         * ira-build.c (loop_with_eh_edge_p): New function.
1268         (mark_loops_for_removal): Use it.
1269
1270 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
1271
1272         PR rtl-optimization/48971
1273         * ira.c (setup_pressure_classes): Don't check register move cost
1274         for classes with one registers.  Don't add pressure class if there
1275         is a pressure class with the same available hard registers.
1276         Check contains_reg_of_mode.  Fix a typo in collecting
1277         temp_hard_regset.  Ignore hard registers not belonging to a class.
1278
1279 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
1280
1281         PR target/49133
1282         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1283
1284 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
1285             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1286
1287         PR gcov-profile/48845
1288         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1289
1290 2011-05-24  Richard Guenther  <rguenther@suse.de>
1291
1292         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1293         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1294         (gimple_types_compatible_p_1): Adjust.
1295         (iterative_hash_canonical_type): Do not bother about complete vs.
1296         incomplete types.
1297         (gimple_canonical_types_compatible_p): Likewise.
1298
1299 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1300
1301         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1302
1303 2011-05-24  Richard Guenther  <rguenther@suse.de>
1304
1305         PR bootstrap/49078
1306         * gimple.c (gimple_register_canonical_type): Revert
1307         previous change.
1308         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1309         does not for a tree for the case where it matters.  Cache
1310         pointer-type alias-sets.
1311
1312 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
1313
1314         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1315         (OBJS): Remove options.o, opts-common.o and prefix.o.
1316         (OBJS-libcommon-target): New.
1317         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1318         (BACKEND): Include libcommon-target.a.
1319         (MOSTLYCLEANFILES): Include libcommon-target.a.
1320         (libcommon-target.a): New.
1321         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1322         prefix.o.
1323
1324 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
1325
1326         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
1327         parts of output shared with the driver.
1328         * optc-gen.awk: Don't generate parts of output not shared with the
1329         driver.
1330         * opth-gen.awk: Remove GCC_DRIVER conditionals.
1331         * doc/options.texi (SourcerInclude): Mention options-save.c.
1332         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1333         (OBJS): Add options-save.o.
1334         (options-save.c, options-save.o): New.
1335         (options.o): Update dependencies.
1336         (gcc-options.o): Remove.
1337         (mostlyclean): Remove options-save.c.
1338
1339 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
1340
1341         PR debug/49032
1342         * dbxout.c: Include cgraph.h.
1343         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1344         and without value expr, return NULL if no varpool node exists for
1345         it or if it is not needed.
1346         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1347
1348         PR c/49120
1349         * c-decl.c (start_decl): Convert expr to void_type_node.
1350
1351 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
1352
1353         PR rtl-optimization/48826
1354         * emit-rtl.c (try_split): When splitting a call that is followed
1355         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1356
1357 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
1358
1359         * cfgexpand.c (expand_debug_expr): For unused non-addressable
1360         parameters passed in memory prefer using DECL_INCOMING_RTL over
1361         the pseudos it will be copied into.
1362
1363 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1364
1365         PR target/47315
1366         * config/i386/i386.c (ix86_option_override_internal): Save the
1367         initial options after checking vzeroupper.
1368
1369 2011-05-23  David Li  <davidxl@google.com>
1370
1371         PR tree-optimization/48988
1372         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1373         Initialize has_valid_pred for each pred chain.
1374
1375 2011-05-23  Richard Guenther  <rguenther@suse.de>
1376
1377         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1378         (iterative_hash_gimple_type): Always hash type names.
1379
1380 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
1381
1382         * c-typeck.c (build_function_call_vec): Tweak call to
1383         check_function_arguments.
1384
1385 2011-05-23  Richard Guenther  <rguenther@suse.de>
1386
1387         PR tree-optimization/49115
1388         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1389         is not necessarily carried out, do not claim it kills the ref.
1390         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1391
1392 2011-05-23  Richard Guenther  <rguenther@suse.de>
1393
1394         PR middle-end/15419
1395         * builtins.c (fold_builtin_memory_op): Be less restrictive about
1396         what pointer types we accept for folding.
1397
1398 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1399
1400         * gthr-gnat.c: Remove.
1401         * gthr-gnat.h: Remove.
1402         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1403         * config/t-freebsd (LIB2ADDEH): Likewise.
1404         * config/t-linux (LIB2ADDEH): Likewise.
1405         * config/t-sol2 (LIB2ADDEH): Likewise.
1406         * config/ia64/t-vms (LIB2ADDEH): Likewise.
1407         * configure.ac (target_thread_file): Remove gnat handling.
1408         * configure: Regenerate.
1409         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1410
1411 2011-05-23  Tristan Gingold  <gingold@adacore.com>
1412             Eric Botcazou  <ebotcazou@adacore.com>
1413
1414         * gcov.c (create_file_names): If no object directory is specified,
1415         keep the directory of the file.
1416
1417 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1418
1419         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1420         * configure: Regenerate.
1421
1422 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
1423
1424         PR middle-end/48973
1425         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1426         failed and the comparison has a single bit signed type, use
1427         constm1_rtx instead of const1_rtx for true value.
1428         (do_store_flag): If ops->type is single bit signed type, disable
1429         signel bit test optimization and pass -1 instead of 1 as last
1430         parameter to emit_store_flag_force.
1431
1432 2011-05-23  Tom de Vries  <tom@codesourcery.com>
1433
1434         PR target/45098
1435         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1436         function.
1437         (infer_loop_bounds_from_undefined): Use new function.
1438
1439 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
1440
1441         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1442         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
1443         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1444         and -O0 otherwise.
1445         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1446
1447 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
1448
1449         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1450         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1451         returns true.
1452
1453 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
1454
1455         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1456
1457 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
1458
1459         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1460         UNSPEC_MOVE_PIC pattern.
1461
1462 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
1463
1464         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1465         (sparc-*-rtems*): Likewise.
1466         (sparc64-*-elf*): Likewise.
1467         (sparc64-*-rtems*): Likewise.
1468         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
1469         * config/sparc/t-crtin: New file.
1470         * config/sparc/t-sol2 (crti.o): Delete rule.
1471         (crtn.o): Likewise.
1472         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1473         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1474         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1475         (ENDFILE_SPEC): Add crtn.o.
1476
1477 2011-05-22  Tom de Vries  <tom@codesourcery.com>
1478
1479         PR middle-end/48689
1480         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1481         CODE_CONTAINS_STRUCT (TS_COMMON).
1482
1483 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
1484
1485         PR middle-end/49029
1486         * expmed.c (extract_fixed_bit_field): Test whether target can be used
1487         only after deciding which mode to use.
1488
1489 2011-05-22  Tom de Vries  <tom@codesourcery.com>
1490
1491         PR target/45098
1492         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1493         for call to get_shiftadd_cost.
1494
1495 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
1496
1497         PR target/49104
1498         * config/i386/cpuid.h (bit_MMXEXT): New define.
1499
1500 2011-05-22  Nick Clifton  <nickc@redhat.com>
1501
1502         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1503         initialisation of non-existant args[2] element.  Use args[] array
1504         not arg[] array to pass arguments to build_function_type_list.
1505
1506 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
1507
1508         PR tree-optimization/49087
1509         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1510
1511 2011-05-21  Jason Merrill  <jason@redhat.com>
1512
1513         PR c++/49092
1514         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1515         static storage duration.
1516
1517 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
1518
1519         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1520         frame pointer.
1521
1522 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
1523
1524         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1525         false if there are call-saved registers here...
1526         (sparc_can_use_return_insn_p): ...but here instead.
1527         (save_or_restore_regs): Fix thinko.
1528         (sparc_expand_prologue): Use current_function_is_leaf.
1529         (sparc_frame_pointer_required): Likewise.
1530
1531 2011-05-21  Nick Clifton  <nickc@redhat.com>
1532
1533         PR target/49098
1534         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1535
1536 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1537
1538         * gengtype.c (walk_type): Implemented "atomic" GTY option.
1539         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1540
1541 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
1542
1543         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
1544         * optc-gen.awk: Move common code to opt-read.awk.
1545         * opth-gen.awk: Likewise.
1546         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1547
1548 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
1549
1550         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1551
1552 2011-05-20  Tom de Vries  <tom@codesourcery.com>
1553
1554         PR target/45098
1555         * tree-ssa-loop-ivopts.c: Include expmed.h.
1556         (get_shiftadd_cost): New function.
1557         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
1558
1559 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
1560
1561         PR bootstrap/49086
1562         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1563         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1564
1565 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
1566
1567         * Makefile.in: Update comment referring to $(OBJS-common).
1568
1569 2011-05-20  Ian Lance Taylor  <iant@google.com>
1570
1571         * godump.c (go_output_typedef): Put enum constants in the macro
1572         hash table to avoid duplicate Go const definitions.
1573
1574 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
1575
1576         * Makefile.in (LIBDEPS): Add libcommon.a.
1577         (LIBS): Likewise.
1578         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1579         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1580         pretty-print.o and version.o.
1581         (OBJS-libcommon): New.
1582         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1583         (BACKEND): Add libcommon.a.
1584         (MOSTLYCLEANFILES): Likewise.
1585         (libcommon.a): New.
1586         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1587         (cpp$(exeext)): Likewise.
1588         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1589         pretty-print.o and input.o.
1590         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1591         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1592         (errors.o): Remove.
1593         (mips-tfile): Don't explicitly use version.o.
1594         (mips-tdump): Likewise.
1595         (gcov.o): Depend on $(DIAGNOSTIC_H).
1596         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1597         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1598         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1599         * gcov-dump.c: Include intl.h and diagnostic.h.
1600         (main): Initialize diagnostics.
1601         * gcov.c: Include diagnostic.h.
1602         (fnotice): Remove.
1603         (main): Initialize diagnostics.
1604         * lto-wrapper.c: Include diagnostic.h.
1605         (main): Initialize diagnostics.
1606
1607 2011-05-20  Michael Matz  <matz@suse.de>
1608
1609         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1610
1611 2011-05-20  Michael Matz  <matz@suse.de>
1612             Richard Guenther  <rguenther@suse.de>
1613
1614         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1615         use lto_streamer_cache_append directly instead of returning a VEC.
1616         (preload_common_node): Remove.
1617         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1618         track seen nodes.
1619         (lto_streamer_cache_create): Call lto_preload_common_nodes.
1620
1621 2011-05-20  Richard Guenther  <rguenther@suse.de>
1622
1623         PR tree-optimization/49079
1624         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1625         MEM_REFs correctly for the trailing array access detection.
1626         Special case constants the same way as decls for overall size
1627         constraining.
1628
1629 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
1630
1631         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1632         argument expansion.
1633
1634 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
1635
1636         PR tree-optimization/49073
1637         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1638         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1639         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1640
1641 2011-05-20  Richard Guenther  <rguenther@suse.de>
1642
1643         PR middle-end/48849
1644         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1645         of pointer types the same way the middle-end does.
1646
1647 2011-05-20  Richard Guenther  <rguenther@suse.de>
1648
1649         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1650         or pointer-to chains.  Delay all fixup to uniquify_nodes.
1651
1652 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
1653
1654         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1655         (fma4_fmaddsub): Likewise
1656
1657 2011-05-19  Jan Hubicka  <jh@suse.cz>
1658
1659         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1660         (GIMPLE_TYPE_PAIR_SIZE): New macro.
1661         (type_pair_cache): New static var.
1662         (lookup_type_pair): Use fixed sized custom hash; make inline.
1663         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1664         calls of lookup_type_pair.
1665         (print_gimple_types_stats): Remove cache stats.
1666         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1667         and gtc_ob.
1668
1669 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
1670
1671         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1672         when TARGET_RDRND is active.
1673         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1674         Generate dummy SImode target register when target is NULL.
1675
1676 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
1677
1678         * config/arm/arm-fpus.def: New.
1679         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1680         arm-fpus.def.
1681         * config/arm/arm-tables.opt: Regenerate.
1682         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1683         (arm_option_override): Don't decode FPU name to string here.
1684         * config/arm/arm.opt (mfpu=): Use Enum.
1685         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1686         Update dependencies.
1687
1688 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
1689
1690         * collect2.c: Include diagnostic.h.
1691         (fatal_perror, fatal, error, fancy_abort): Remove.
1692         (main): Set progname.  Call xmalloc_set_program_name and
1693         diagnostic_initialize.
1694         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1695         scan_libraries, resolve_lib_name): Call fatal_error instead of
1696         fatal and fatal_perror.
1697         * collect2.h (error, fatal, fatal_perror): Don't declare.
1698         * tlink.c: Include diagnostic-core.h.
1699         (recompile_files): Call fatal_error instead of fatal_perror.
1700         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1701         pretty-print.o and input.o.
1702         (collect2.o, tlink.o): Update dependencies.
1703
1704 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1705
1706         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1707
1708 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1709
1710         PR target/40483
1711         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1712         COMDAT group syntax, both SPARC and x86 variants.
1713         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1714         * configure: Regenerate.
1715         * config/sol2.h (TARGET_SOLARIS): Define.
1716         (PUSHSECTION_FORMAT): Remove.
1717         (SECTION_NAME_FORMAT): Define.
1718         * config/sol2.c: Include hashtab.h.
1719         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1720         expansion, using SECTION_NAME_FORMAT.
1721         (solaris_comdat_htab): New variable.
1722         (struct comdat_entry): Define.
1723         (comdat_hash): New function.
1724         (comdat_eq): New function.
1725         (solaris_elf_asm_comdat_section): New function.
1726         (solaris_define_comdat_signature): New function.
1727         (solaris_code_end): New function.
1728         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1729         (solaris_code_end): Declare.
1730         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1731         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1732         solaris_code_end.
1733         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1734         Remove ATTRIBUTE_UNUSED.
1735         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1736         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1737         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1738         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1739         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1740         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1741         (PUSHSECTION_FORMAT): Remove.
1742         (SECTION_NAME_FORMAT): Redefine.
1743
1744 2011-05-19  Kai Tietz  <ktietz@redhat.com>
1745
1746         * tree-cfg.c (verify_gimple_assign_binary): Barf on
1747         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1748         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1749
1750 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
1751             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1752
1753         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1754
1755 2011-05-19  Richard Guenther  <rguenther@suse.de>
1756
1757         PR middle-end/48985
1758         * tree-object-size.c (addr_object_size): If the pointed-to
1759         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1760
1761 2011-05-19  Richard Guenther  <rguenther@suse.de>
1762
1763         * gimple.c (gimple_types_compatible_p_1): Compare names of
1764         the types themselves.
1765         (iterative_hash_gimple_type): And hash them that way.
1766         (gimple_register_type_1): If we register a main variant properly
1767         initialize the leader to ourselves.
1768
1769 2011-05-19  Tom de Vries  <tom@codesourcery.com>
1770
1771         PR target/45098
1772         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1773         get_loop_invariant_expr_id.
1774         (get_loop_invariant_expr_id): Use get_expr_id.
1775         (parm_decl_cost): New function.
1776         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1777         Improve bound cost estimation.  Use different inv_expr_id for elim and
1778         express cases.
1779
1780 2011-05-19  Tom de Vries  <tom@codesourcery.com>
1781
1782         PR target/45098
1783         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1784         cost_base.cost == 0.
1785
1786 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1787
1788         PR target/49002
1789         * config/i386/sse.md
1790         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
1791         load cast.
1792
1793 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
1794
1795         PR tree-optimization/49039
1796         * tree-vrp.c (extract_range_from_binary_expr): For
1797         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1798         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1799
1800 2011-05-18  Tom de Vries  <tom@codesourcery.com>
1801
1802         PR target/45098
1803         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1804
1805 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
1806
1807         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1808         (*tls_global_dynamic_64): Ditto.
1809         (*tls_local_dynamic_base_32_gnu): Ditto.
1810         (*tls_local_dynamic_base_64): Ditto.
1811         (tls_initial_exec_64_sun): Ditto.
1812
1813 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
1814
1815         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1816         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1817         bf592-none.
1818         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1819         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1820         * config/bfin/bfin.c (bfin_cpus): Add bf592.
1821         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1822         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1823         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1824         * config/bfin/elf.h (LIB_SPEC): Add bf592.
1825
1826 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
1827
1828         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1829         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1830         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1831         target_thread_pointer, arm_structure_size_boundary, struct
1832         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1833         struct abi_name, arm_all_abis): Remove.
1834         (arm_option_override) Don't process most enumerated option values here.
1835         Don't process target_fpe_name here.  Work with integer not string for
1836         structure size boundary; use separate diagnostics for each case.
1837         * config/arm/arm.h (enum float_abi_type, enum
1838         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1839         to arm-opts.h.
1840         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1841         arm_structure_size_boundary): Remove.
1842         * config/arm/arm.opt (mabi=): Use Enum and Init.
1843         (arm_abi_type): New Enum and EnumValue entries.
1844         (mfloat-abi=): Use Enum and Init.
1845         (float_abi_type): New Enum and EnumValue entries.
1846         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1847         (mfp16-format=): Use Enum and Init.
1848         (arm_fp16_format_type): New Enum and EnumValue entries.
1849         (mstructure-size-boundary=): Use UInteger and Init.
1850         (mtp=): Use Enum and Init.
1851         (arm_tp_type): New Enum and EnumValue entries.
1852
1853 2011-05-18  Richard Guenther  <rguenther@suse.de>
1854
1855         PR tree-optimization/49018
1856         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1857         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1858         gimple_has_side_effects.
1859
1860 2011-05-18  Richard Guenther  <rguenther@suse.de>
1861
1862         * gimple.c (gimple_register_type_1): New function, split out from ...
1863         (gimple_register_type): ... here.  Avoid infinite recursion.
1864
1865 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
1866
1867         PR tree-optimization/41881
1868         * tree-vectorizer.h (struct _loop_vec_info): Add new field
1869         reduction_chains along with a macro for its access.
1870         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1871         (destroy_loop_vec_info): Free reduction chains.
1872         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1873         (vect_is_slp_reduction): New function.
1874         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1875         (vect_create_epilog_for_reduction): Support SLP reduction chains.
1876         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1877         definition types for reduction chains.
1878         (vect_supported_load_permutation_p): Don't allow permutations for
1879         reduction chains.
1880         (vect_analyze_slp_instance): Support reduction chains.
1881         (vect_analyze_slp): Try to build SLP instance from reduction chains.
1882         (vect_get_constant_vectors):  Handle reduction chains.
1883         (vect_schedule_slp_instance): Mark the first statement of the
1884         reduction chain as reduction.
1885
1886 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
1887
1888         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1889         names for group elements access.
1890         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1891         reduction chains as well.  Remove data reference and interleaving
1892         related words from the fields names.
1893         * tree-vect-loop.c (vect_transform_loop): Use new names for group
1894         elements access.
1895         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1896         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1897         vect_update_interleaving_chain, vect_same_range_drs,
1898         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1899         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1900         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1901         vect_analyze_group_access, vect_analyze_data_ref_access,
1902         vect_create_data_ref_ptr, vect_transform_strided_load,
1903         vect_record_strided_load_vectors): Likewise.
1904         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1905         vect_model_load_cost, vectorizable_store, vectorizable_load,
1906         vect_remove_stores, new_stmt_vec_info): Likewise.
1907         * tree-vect-slp.c (vect_build_slp_tree,
1908         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1909
1910 2011-05-18  Richard Guenther  <rguenther@suse.de>
1911
1912         PR middle-end/48989
1913         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1914         operand verification.
1915         (verify_gimple_assign_binary): Likewise.
1916         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1917         to non-1-precision BOOLEAN_TYPEs.
1918
1919 2011-05-18  Tom de Vries  <tom@codesourcery.com>
1920
1921         PR target/45098
1922         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1923
1924 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
1925
1926         PR tree-optimization/49000
1927         * tree-ssa.c (execute_update_addresses_taken): Call
1928         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
1929         be rewritten and decl has been marked for renaming, reset
1930         the debug stmt.
1931
1932 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
1933
1934         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1935         enum_opts_set when testing if attributes have set -mfpmath=.
1936
1937 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
1938
1939         * config/mips/mips.c (mips_handle_option): Remove unused variable.
1940
1941 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1942
1943         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1944         info->entry with 0
1945         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
1946         id.transform_lang_insert_block with NULL.
1947
1948 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1949
1950         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1951         (output_fp_compare): Change args 3 and 4 to bool.
1952         (ix86_expand_call): Change arg 6 to bool.
1953         (ix86_attr_length_immediate_default): Change arg 2 to bool.
1954         (ix86_attr_length_vex_default): Change arg 3 to bool.
1955         * config/i386/i386.md: Update all uses.
1956         * config/i386/i386.c: Ditto.
1957         (ix86_flags_dependent): Change return type to bool.
1958
1959 2011-05-17  Richard Guenther  <rguenther@suse.de>
1960
1961         * gimple.c (type_hash_pair_compare): Fix comparison.
1962
1963 2011-05-17  Richard Guenther  <rguenther@suse.de>
1964
1965         * gimple.c (iterative_hash_gimple_type): Simplify singleton
1966         case some more, fix final hash value of the non-singleton case.
1967
1968 2011-05-17  Richard Guenther  <rguenther@suse.de>
1969
1970         PR bootstrap/49013
1971         Revert
1972         2011-05-16  Richard Guenther  <rguenther@suse.de>
1973
1974         * gimple.c (gimple_types_compatible_p_1): Use names of the
1975         type itself, not its main variant.
1976         (iterative_hash_gimple_type): Likewise.
1977
1978 2011-05-17  Richard Guenther  <rguenther@suse.de>
1979
1980         * gimple.c (gimple_register_canonical_type): Use the main-variant
1981         leader for computing the canonical type.
1982
1983 2011-05-17  Nick Clifton  <nickc@redhat.com>
1984
1985         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1986         moves.
1987
1988         * config/rx/rx.md: Add peephole to remove redundant extensions
1989         after loads.
1990         (bitset_in_memory): Use rx_restricted_mem_operand.
1991         (bitinvert_in_memory): Likewise.
1992         (bitclr_in_memory): Likewise.
1993
1994 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
1995             Nick Clifton  <nickc@redhat.com>
1996
1997         * config/rx/rx.md: Add peepholes to match a register move followed
1998         by a comparison of the moved register.  Replace these with an
1999         addition of zero that does both actions in one instruction.
2000
2001 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
2002
2003         PR target/48986
2004         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2005         predicate to allow CONST_INT.
2006         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2007
2008 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
2009
2010         * opts-common.c (opt_enum_arg_to_value): New.
2011         * opts.h (opt_enum_arg_to_value): Declare.
2012         * config/i386/i386.opt (fpmath): Remove.
2013         (mfpmath=): Use Enum, Init and Save.
2014         (fpmath_unit): New Enum and EnumValue entries.
2015         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2016         name for function fpmath state.
2017         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2018         * config/i386/i386.c: Include diagnostic.h.
2019         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2020         (ix86_target_string): Take enum fpmath_unit value instead of string.
2021         (ix86_debug_options): Update call to ix86_target_string.
2022         (ix86_option_override_internal): Don't process fpmath strings here.
2023         (x86_function_specific_save, ix86_function_specific_restore):
2024         Don't handle fpmath state specially.
2025         (ix86_function_specific_print): Pass fpmath state to
2026         ix86_target_string instead of printing in this function.
2027         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2028         Handle enum attributes.
2029         (IX86_ATTR_ENUM, ix86_opt_enum): New.
2030         (ix86_valid_target_attribute_tree): Update option_strings
2031         handling.  Handle fpmath as enum option.
2032         (ix86_can_inline_p): Update field names for function fpmath state.
2033         (ix86_expand_builtin): Update call to ix86_target_string.
2034         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2035         (ix86_fpmath): Remove.
2036         * config/i386/t-i386 (i386.o): Update dependencies.
2037
2038 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
2039
2040         PR preprocessor/48677
2041         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2042         from decoded_options[0], not from itself.
2043
2044 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
2045
2046         * config/i386/constraints.md (z): New constraint.
2047         * config/i386/i386.c (c): New mode attribute.
2048         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2049         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2050         constraint for operand 0.
2051         (*call_vzeroupper): Ditto.
2052         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
2053         (*call_rex64_ms_sysv_vzeroupper): Ditto.
2054         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2055         Use "lzm" constraint for operand 0.
2056         (*call_pop_vzeroupper): Ditto.
2057         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2058         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
2059         constraint for operand 0.
2060         (*sibcall_vzeroupper): Ditto.
2061         (*sibcall_rex64_ms_sysv): Ditto.
2062         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2063         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2064         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
2065         (*sibcall_pop_vzeroupper): Ditto.
2066         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2067         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2068         mode iterator.  Use "<c>zm" constraint for operand 1.
2069         (*call_value_vzeroupper): Ditto.
2070         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
2071         for operand 1.
2072         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2073         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2074         *call_value_pop_1.  Use "lzm" constraint for operand 1.
2075         (*call_value_pop_vzeroupper): Ditto.
2076         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2077         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2078         mode iterator.  Use "Uz" constraint for operand 1.
2079         (*sibcall_value_vzeroupper): Ditto.
2080         (*sibcall_value_rex64_ms_sysv): Ditto.
2081         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2082         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
2083         constraint for operand 1.
2084         (*sibcall_value_pop_vzeroupper): Ditto.
2085         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2086         and "z" constraint for operand 2.
2087         (*tls_global_dynamic_32_gnu): Ditto.
2088         (*tls_local_dynamic_base_32_gnu): Ditto.
2089         (*tls_local_dynamic_base_64): Ditto.
2090         (*tls_local_dynamic_32_once): Ditto.
2091         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2092         Update all callers.
2093         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2094
2095 2011-05-16  Richard Guenther  <rguenther@suse.de>
2096
2097         * gimple.c (gimple_types_compatible_p_1): Use names of the
2098         type itself, not its main variant.
2099         (iterative_hash_gimple_type): Likewise.
2100
2101 2011-05-16  Richard Guenther  <rguenther@suse.de>
2102
2103         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2104         always visit pointer target and function result and argument types.
2105
2106 2011-05-16  Jason Merrill  <jason@redhat.com>
2107
2108         PR c++/48999
2109         * tree-inline.c (copy_statement_list): Put back recursion.
2110
2111 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
2112
2113         PR target/27663
2114         PR target/41076
2115         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2116         * config/avr/avr.md ("*ior<mode>qi.byte0",
2117         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2118
2119 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
2120
2121         PR target/45099
2122         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2123         register is needed for a function argument.
2124
2125 2011-05-16  Richard Guenther  <rguenther@suse.de>
2126
2127         * gimple.c (struct type_hash_pair): New type.
2128         (type_hash_pair_compare): New function.
2129         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2130
2131 2011-05-16  Revital Eres  <revital.eres@linaro.org>
2132
2133         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2134
2135 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
2136
2137         * config/i386/i386.md (floating point move splitters): Fix
2138         usage of standard_80387_constant_p.
2139         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2140
2141 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
2142
2143         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2144
2145 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
2146
2147         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2148         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2149         (tree_ssa_lim_finalize): Likewise.
2150
2151 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
2152
2153         * config/i386/constraint.md (Yd, Yx): New register constraints.
2154         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
2155         Yd conditional register constraint.
2156         (*movtf_internal): Use standard_sse_constant_opcode.
2157         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
2158         Yx conditional register constraint.
2159         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
2160         Yd conditional register constraint.  Use standard_sse_constant_p to
2161         check for valid SSE constants and call standard_sse_constant_opcode to
2162         output SSE insn.
2163         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2164         constants and call standard_sse_constant_opcode to output SSE insn.
2165         * config/i386/i386.c (ix86_option_ovverride_internal): Set
2166         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
2167         optimize_size is set.
2168         (standard_sse_constant_opcode): Output conditional AVX insn templates.
2169
2170 2011-05-14  Tobias Burnus  <burnus@net-b.de>
2171
2172         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2173
2174 2011-05-13  Martin Jambor  <mjambor@suse.cz>
2175
2176         * ipa-prop.c (ipa_cst_from_jfunc): New function.
2177         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2178         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2179         (evaluate_conditions_for_ipcp_clone): Removed.
2180         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2181         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2182         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2183
2184 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
2185
2186         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2187         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2188         lieu of MAY_HAVE_DEBUG_STMTS.
2189         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2190         debug statements if !MAY_HAVE_DEBUG_STMTS.
2191
2192 2011-05-13  Martin Thuresson  <martint@google.com>
2193
2194         PR gcov-profile/47793
2195         * libgcov.c (gcov_exit): Support relative profile paths.
2196         * doc/invoke.texi (-fprofile-dir): Update for above change.
2197
2198 2011-05-13  Richard Guenther  <rguenther@suse.de>
2199
2200         * gimple.c (gimple_canonical_types_compatible_p): Do not use
2201         type-pair caching, do not compare hashes.
2202
2203 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
2204
2205         PR middle-end/48965
2206         * tree-cfg.c (edge_to_cases_cleanup): Return true.
2207         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2208
2209 2011-05-13  Kai Tietz  <ktietz@redhat.com>
2210
2211         * gimplify.c (gimplify_expr): Make sure operand is boolified.
2212         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2213         compatible type for TRUTH_NOT_EXPR.
2214
2215 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2216
2217         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2218         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
2219         can_create_pseudo_p ().
2220
2221 2011-05-13  Richard Guenther  <rguenther@suse.de>
2222
2223         PR lto/48978
2224         * gimple.c (iterative_hash_gimple_type): Revert change in
2225         pointer target and function result and argument hashing.
2226
2227 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
2228
2229         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2230         (*movxf_internal_nointeger): Ditto.
2231         (*movdf_internal_rex64): Ditto.
2232         (*movdf_internal): Ditto.
2233         (*movdf_internal_nointeger): Ditto.
2234         (*movsf_internal): Ditto.
2235         (sincos splitters): Use can_create_pseudo ().
2236
2237 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
2238
2239         * config/i386/i386-opts.h: New.
2240         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2241         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2242         ix86_section_threshold): Remove.
2243         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
2244         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2245         OPT_mbranch_cost_.
2246         (ix86_option_override_internal): Don't decode strings for options
2247         other than -march=, -mtune= and -mfpmath=.  Don't allow for
2248         __attribute__ uses in remaining diagnostics for options with
2249         string arguments.  Don't check for integer arguments being negative.
2250         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2251         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2252         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2253         ix86_branch_cost, ix86_section_threshold): Remove.
2254         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2255         HeaderInclude.
2256         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2257         but not Var.
2258         (masm=): Use Enum and Init.
2259         (asm_dialect): New Enum and EnumValue entries.
2260         (mbranch-cost=): Use UInteger.
2261         (mlarge-data-threshold=): Use UInteger and Init.
2262         (mcmodel=): Use Enum and Init.
2263         (cmodel): New Enum and EnumValue entries.
2264         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2265         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2266         mregparm=): Use UInteger.
2267         (mstringop-strategy=): Use Enum and Init.
2268         (stringop_alg): New Enum and EnumValue entries.
2269         (mtls-dialect=): Use Enum and Init.
2270         (tls_dialect): New Enum and EnumValue entries.
2271         (mabi=): Use Enum and Init.
2272         (calling_abi): New Enum and EnumValue entries.
2273         (mveclibabi=): Use Enum and Init.
2274         (ix86_veclibabi): New Enum and EnumValue entries.
2275
2276 2011-05-13  Nick Clifton  <nickc@redhat.com>
2277
2278         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2279         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2280
2281 2011-05-13  Kai Tietz  <ktietz@redhat.com>
2282
2283         PR middle-end/48984
2284         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2285         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2286         (gimple_boolify): Check for cast for boolean_type_node instead for
2287         BOOLEAN_TYPE.
2288
2289 2011-05-13  Richard Guenther  <rguenther@suse.de>
2290
2291         PR tree-optimization/48172
2292         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2293         multiplying by number of iterations for equal step.
2294         (vect_create_cond_for_alias_checks): Likewise.
2295
2296 2011-05-13  Andreas Schwab  <schwab@redhat.com>
2297
2298         * configure.ac: Use AS_HELP_STRING throughout.
2299         * configure: Regenerate.
2300
2301 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
2302
2303         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2304         (ix86_emit_restore_regs_using_mov): Likewise.
2305         (ix86_emit_restore_sse_regs_using_mov): Likewise.
2306
2307 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
2308
2309         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2310         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2311         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2312         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2313         RTX_OK_FOR_OLO10_P): ...here.
2314         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2315         SYMBOLIC_CONST.
2316
2317 2011-05-12  Kai Tietz  <ktietz@redhat.com>
2318
2319         * gimplify.c (gimple_boolify): Re-boolify expression
2320         arguments even if expression type is of kind BOOLEAN_TYPE.
2321         (gimplify_boolean_expr): Removed.
2322         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2323         and XOR. Additional take care that we keep expression's type.
2324         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2325         of TRUTH_AND|OR|XOR_EXPR.
2326
2327 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
2328
2329         PR tree-optimization/48975
2330         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2331         on all bbs here and free and clear ifc_bbs at the end.
2332
2333 2011-05-12  Richard Guenther  <rguenther@suse.de>
2334
2335         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2336         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
2337         until after simple checks.
2338         (gimple_types_compatible_p): Likewise.
2339         (iterative_hash_gimple_type): Always hash pointer targets
2340         and function return and argument types.
2341         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2342         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
2343         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2344         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
2345         completely in the simple compare section.
2346         (gimple_register_canonical_type): Query the cache again after
2347         registering.
2348
2349 2011-05-12  Richard Guenther  <rguenther@suse.de>
2350
2351         PR tree-optimization/48172
2352         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2353         the number of iterations from the segment size calculation.
2354         (vect_create_cond_for_alias_checks): Adjust.
2355
2356 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
2357
2358         PR debug/48967
2359         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2360         if validate_subreg fails.
2361
2362 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
2363
2364         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2365         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2366         early.
2367
2368 2011-05-12  DJ Delorie  <dj@redhat.com>
2369
2370         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2371         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2372         created builtin into rx_builtins array.
2373         (rx_builtin_decl): New function.
2374         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
2375
2376 2011-05-12  DJ Delorie  <dj@redhat.com>
2377             Nick Clifton  <nickc@redhat.com>
2378
2379         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2380         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2381         (rx_is_legitimate_address): Add pre-decrement and post-increment
2382         addressing in HImode and QImode.  Fix test for out of range
2383         REG+INT addressing.
2384         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2385         (rx_align_for_label): Test label before extracting its usage count.
2386         (rx_adjust_insn_lengths): Fix selection of insn codes.
2387         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2388
2389 2011-05-11  Jason Merrill  <jason@redhat.com>
2390
2391         * tree.c (type_hash_canon): Use struct tree_type_non_common.
2392
2393 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
2394
2395         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2396         reindent the subsequent block.
2397
2398 2011-05-11  Satoru Takabayashi  <satorux@google.com>
2399             Paul Pluzhnikov  <ppluzhnikov@google.com>
2400
2401         * doc/install.texi (Configuration): Document --with-linker-hash-style.
2402         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2403         * config.in: Add LINKER_HASH_STYLE.
2404         * configure.ac: Add --with-linker-hash-style.
2405         * configure: Regenerate.
2406
2407 2011-05-11  Richard Guenther  <rguenther@suse.de>
2408
2409         PR middle-end/48964
2410         * gimple.c (iterative_hash_canonical_type): Fix typo.
2411
2412 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
2413
2414         * config/i386/i386.c (legitimize_tls_address)
2415         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2416         expanders directly for TARGET_GNU2_TLS.  Determine pic and
2417         __tls_get_addr symbol reference here.  Update call to
2418         gen_tls_global_dynamic_{32,64} for added arguments.
2419         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2420         expanders directly for TARGET_GNU2_TLS.  Determine
2421         __tls_get_addr symbol reference here.  Update call to
2422         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
2423         unique UNSPEC REG_EQUIV to libcall block.
2424         (ix86_tls_get_addr): Declare static.
2425         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2426         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2427         Do not determine pic and __tls_get_addr symbol reference here. Do not
2428         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2429         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2430         (tls_global_dynamic_64): Add operand 2.  Do not determine
2431         __tls_get_addr symbol reference here.  Do not call
2432         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2433         (tls_local_dynamic_base64): Ditto for operand 1.
2434
2435 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
2436
2437         * function.c (expand_function_start): Initialize stack_check_probe_note
2438         only if the generic stack checking mechanism is used.
2439
2440 2011-05-11  Richard Guenther  <rguenther@suse.de>
2441
2442         PR tree-optimization/15256
2443         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2444         (A & B) | C, combine (A op CST1) op CST2.
2445         (tree_ssa_forward_propagate_single_use_vars): Only bother to
2446         visit assigns that have uses.
2447
2448 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
2449
2450         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2451         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2452         (unpack_ts_type_common_value_fields): ...this.  Update comment.
2453         (unpack_value_fields): Adjust for renaming.
2454         (lto_input_ts_type_tree_pointers): Split into...
2455         (lto_input_ts_type_common_tree_pointer): ...this and...
2456         (lto_input_ts_type_non_common_tree_pointers): ...this.
2457         (lto_input_tree_pointers): Adjust for above split.
2458         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2459         (pack_ts_type_common_value_fields): ...this.  Update comment.
2460         (lto_output_ts_type_tree_pointers): Split into...
2461         (lto_output_ts_type_common_tree_pointers): ...this and...
2462         (lto_output_ts_type_non_common_tree_pointers): ...this.
2463         (lto_output_tree_pointers): Adjust for above split.
2464         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2465         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2466         * stor-layout.c (vector_type_mode): Adjust location of mode field.
2467         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2468         Define.
2469         (struct tree_type): Split into...
2470         (struct tree_type_common: ...this and...
2471         (struct tree_type_with_lang_specific): ...this and...
2472         (struct tree_type_non_common): ...this.  Adjust accessor macros
2473         accordingly.
2474         (TYPE_VALUES_RAW): Define.
2475         (union tree_node): Update for above changes.
2476         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2477         TS_TYPE_NON_COMMON.
2478         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2479         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2480         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2481         * treestructu.def (TS_TYPE): Remove.
2482         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2483         Define.
2484
2485 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
2486
2487         PR debug/48159
2488         * tree-ssa.c (reset_debug_uses): New function.
2489         * tree-flow.h (reset_debug_uses): New prototype.
2490         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2491         * tree-loop-distribution.c (generate_loops_for_partition): Call
2492         reset_debug_uses on the stmts that will be removed.  Keep around
2493         all debug stmts, don't count them as bits in partition bitmap.
2494         (generate_builtin): Don't count debug stmts or labels as bits in
2495         partition bitmap.
2496
2497 2011-05-11  Richard Guenther  <rguenther@suse.de>
2498
2499         * gimple.c (gimple_type_hash_1): Merge with ...
2500         (gimple_type_hash): ... this.
2501         (gtc_visit): Remove mode parameter and simplify accordingly.
2502         (gimple_types_compatible_p_1): Likewise.
2503         (gimple_types_compatible_p): Likewise.
2504         (iterative_hash_gimple_type): Likewise.
2505         (visit): Likewise.
2506         (gimple_type_eq): Adjust.
2507
2508 2011-05-11  Revital Eres  <revital.eres@linaro.org>
2509
2510         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2511         enters the branch create an anti edge in the opposite direction
2512         to prevent the creation of reg-moves.
2513         * modulo-sched.c: Adjust comment to reflect the fact we are
2514         scheduling closing branch.
2515         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2516         (stage_count): New field in struct partial_schedule.
2517         (calculate_stage_count): New function.
2518         (normalize_sched_times): Rename to reset_sched_times and handle
2519         incrementing the sched time of the nodes by a constant value
2520         passed as parameter.
2521         (duplicate_insns_of_cycles): Skip closing branch.
2522         (sms_schedule_by_order): Schedule closing branch.
2523         (ps_insn_find_column): Handle closing branch.
2524         (sms_schedule): Call reset_sched_times and adjust the code to
2525         support scheduling of the closing branch.
2526         (ps_insert_empty_row): Update calls to normalize_sched_times
2527         and rotate_partial_schedule functions.
2528
2529 2011-05-11  Richard Guenther  <rguenther@suse.de>
2530
2531         PR middle-end/48953
2532         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2533
2534 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
2535
2536         * opts.c (finish_options): Move warning settings from process_options.
2537         * toplev.c (process_options): Move warning settings to finish_options.
2538
2539 2011-05-11  Richard Guenther  <rguenther@suse.de>
2540
2541         PR tree-optimization/18041
2542         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2543         (simplify_bitwise_binary): ... this.  Handle operand conversions
2544         by applying them to the result instead.
2545         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
2546
2547 2011-05-11  Richard Guenther  <rguenther@suse.de>
2548
2549         * gimple.c (gimple_canonical_types_compatible_p): Split out
2550         from gimple_types_compatible_p and friends.  Do not recurse
2551         to pointed-to types.
2552         (gimple_canonical_type_eq): Use it.
2553         (iterative_hash_canonical_type): Split out from
2554         iterative_hash_gimple_type and friends.  Do not recurse
2555         to pointed-to types.
2556         (gimple_canonical_type_hash): Use it, allocate the hash here.
2557
2558 2011-05-11  Revital Eres  <revital.eres@linaro.org>
2559
2560         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2561         recognizing doloop.
2562
2563 2011-05-11  Revital Eres  <revital.eres@linaro.org>
2564
2565         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2566         instead of PREV_INSN.
2567
2568 2011-05-11  Revital Eres  <revital.eres@linaro.org>
2569
2570         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2571         * loop-doloop.c (doloop_condition_get): Likewise.
2572         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2573         (doloop_end): New.
2574         * config/arm/arm.md (*addsi3_compare0): Remove "*".
2575
2576 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
2577
2578         * tree.def (CASE_LABEL_EXPR): Add an operand.
2579         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2580
2581 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2582
2583         * c-decl.c (c_override_global_bindings_to_false): Remove.
2584         (global_bindings_p): Don't check
2585         c_override_global_bindings_to_false.
2586         * c-tree.h (c_override_global_bindings_to_false): Remove.
2587         * c-typeck.c (composite_type): Don't set
2588         c_override_global_bindings_to_false.
2589
2590 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
2591
2592         PR target/48857, 48495
2593         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2594         (VSX_MODE): Ditto.
2595         (VSX_MOVE_MODE): Ditto.
2596         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2597         VSX vector types.  Add V2DImode.
2598         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2599         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2600         (MODES_TIEABLE_P): Ditto.
2601
2602         * config/rs6000/rs6000.c (rs6000_emit_move): Use
2603         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2604         VSX_VECTOR_MODE.
2605         (init_cumulative_args): Ditto.
2606         (rs6000_function_arg_boundary): Ditto.
2607         (rs6000_function_arg_advance_1): Ditto.
2608         (rs6000_function_arg): Ditto.
2609         (rs6000_function_ok_for_sibcall): Ditto.
2610         (emit_frame_save): Ditto.
2611         (rs6000_function_value): Ditto.
2612         (rs6000_libcall_value): Ditto.
2613
2614 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2615
2616         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2617         i386/darwin-lib.h to $libgcc_tm_file.
2618         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2619
2620 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2621
2622         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2623
2624 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2625
2626         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2627         * config/rs6000/rs6000-tables.opt: New file (generated).
2628         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2629         rs6000/rs6000-tables.opt to extra_options.
2630         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2631         * config/rs6000/rs6000.c (rs6000_select): Remove.
2632         (processor_target_table): Move contents to rs6000-cpus.def.
2633         (darwin_rs6000_override_options): Check
2634         global_options_set.x_rs6000_cpu_index instead of
2635         rs6000_select[1].string.
2636         (rs6000_option_override_internal): Likewise.
2637         (rs6000_handle_option): Don't assert that global structures are in
2638         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
2639         (rs6000_default_cpu): New variable.
2640         (rs6000_file_start): Set it instead of local default_cpu.  Check
2641         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2642         global_options_set.x_rs6000_tune_index instead of rs6000_select.
2643         (rs6000_darwin_file_start): Check rs6000_default_cpu and
2644         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2645         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2646         rs6000_select): Remove.
2647         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2648         Remove.
2649         (mcpu=, mtune=): Use Var, Init, Enum and Save.
2650         * config/rs6000/t-rs6000
2651         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2652         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2653         global_options_set.x_rs6000_cpu_index instead of
2654         rs6000_select[1].string.
2655         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2656         global_options_set.x_rs6000_cpu_index instead of
2657         rs6000_select[1].string.
2658
2659 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
2660
2661         * config.gcc (libgcc_tm_file): Define instead of including files
2662         from ../../libgcc/config/ in tm_file.
2663         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2664         * configure: Regenerate.
2665         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2666         libgcc_tm.h, cs-libgcc_tm.h): New.
2667         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2668         (clean): Remove libgcc_tm.h.
2669         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2670         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2671         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2672
2673 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
2674
2675         PR target/48896
2676         * config/avr/avr.c (avr_ret_register): Return unsigned int
2677         instead of int.
2678         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2679         it to avr_libcall_value.
2680         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2681         expand_expr.
2682         (avr_expand_binop_builtin): Ditto.
2683         (avr_expand_unop_builtin): Ditto.
2684
2685 2011-05-10  DJ Delorie  <dj@redhat.com>
2686
2687         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2688         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2689         * config/rx/rx.c (rx_align_for_label): Add label and
2690         uses_threshold parameters.  Do not align when the label is not
2691         used enough.
2692         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2693
2694 2011-05-10  Richard Guenther  <rguenther@suse.de>
2695
2696         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2697         a series of conversions and apply foldings similar to what
2698         fold-const does.
2699         (tree_ssa_forward_propagate_single_use_vars): Call it.
2700
2701 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
2702
2703         PR tree-optimization/48611
2704         PR tree-optimization/48794
2705         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2706         referenced from RESX or EH_DISPATCH arguments.
2707
2708         PR debug/48928
2709         * dfp.c (decimal_to_decnumber): Handle conversion from
2710         dconst{1,2,m1,half}.
2711
2712 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2713
2714         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2715         for !flag_prefer_avx128.
2716         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2717
2718 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
2719
2720         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2721         (fold_ternary_loc): Use expr_location_or.
2722
2723 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
2724
2725         PR debug/48853
2726         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2727         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2728         Pmode and mem_mode is not VOIDmode.
2729
2730 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
2731
2732         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2733         TYPE_QUAL_RESTRICT): Convert to enum.
2734
2735 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2736
2737         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2738         (const_pow2_1_to_8_operand): Ditto.
2739         (const_pow2_1_to_128_operand): Ditto.
2740         (const_pow2_1_to_32768_operand): Ditto.
2741         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2742         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
2743         in insn constraint to check integer value of operand 3.
2744         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2745
2746         (PINSR_MODE): New mode iterator.
2747         (sse2p4_1): New mode attribute.
2748         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2749         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2750         iterator.  Use const_int_operand instead of
2751         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
2752         exact_log2 in insn constraint to check integer value of operand 3.
2753
2754 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2755
2756         * config/i386/sse.md (blendbits): Remove mode attribute.
2757         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2758         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2759         Check integer value of operand 3 in insn constraint.
2760
2761 2011-05-09  Richard Guenther  <rguenther@suse.de>
2762
2763         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2764         for diagnostics.
2765         (lto_symtab_merge): Likewise.  Do not register types here.
2766         (lto_symtab_merge_decls_2): Likewise.
2767         (lto_symtab_merge_decls_1): Likewise.
2768         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2769         * gimple.c (enum gtc_mode): Declare.
2770         (gimple_types_compatible_p): Make static.
2771
2772 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2773
2774         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2775         temporary register to match Pmode.
2776
2777 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2778
2779         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2780         and *vec_concatv4si_1_avx.
2781
2782 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2783
2784         PR rtl-optimization/48927
2785         * ira-conflicts.c (commutative_constraint_p): Use
2786         recog_data.alternative_enabled_p to disable alternatives where
2787         "enabled" attribute is false.
2788         (get_dup_num): Ditto.
2789         * ira-lives.c (single_reg_class): Ditto.
2790         (ira_implicitly_set_insn_hard_regs): Ditto.
2791
2792 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
2793
2794         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2795         (dataflow_set_preserve_mem_locs): Likewise.
2796
2797 2011-05-09  Philipp Thomas  <pth@suse.de>
2798
2799         * config/mep/mep.c (mep_validate_vliw): Syntax description
2800         should not be translated.
2801
2802 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
2803
2804         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2805         * config/mips/mips-tables.opt: New file (generated).
2806         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2807         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2808         MIPS_ARCH_OPTION_NATIVE): Define.
2809         * config/mips/mips.c (mips_cpu_info_table): Move contents to
2810         mips-cpus.def.
2811         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2812         mips_parse_cpu): Remove.
2813         (mips_cpu_info_from_opt, mips_default_arch): New.
2814         (mips_handle_option): Don't assert that global structures are in
2815         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2816         (mips_option_override): Use new variables and functions to set
2817         state of these options.  Use strcmp to check for individual CPU names.
2818         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2819         definition.
2820         * config/mips/mips.opt (march=): Use ToLower and Enum.
2821         (mips): Use ToLower, Enum and Var.
2822         (mtune=): Use ToLower and Enum.
2823         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2824
2825 2011-05-08  Jan Hubicka  <jh@suse.cz>
2826
2827         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2828         Arrange type pairs to be UID ordered.
2829         (gimple_lookup_type_leader): Make inline.
2830
2831 2011-05-09  Nick Clifton  <nickc@redhat.com>
2832
2833         PR target/48899
2834         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2835         PROCESSOR_DEFAULT.
2836
2837         PR target/48897
2838         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2839         variable 's'.
2840
2841 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
2842
2843         * combine.c (simplify_comparison): Abstract out parts into...
2844         (simplify_compare_const): ... new function.
2845         (try_combine): Generalize parallel arithmetic/compare combining
2846         to call simplify_compare_const() and CANONICALIZE_COMPARE().
2847
2848 2011-05-08  Jan Hubicka  <jh@suse.cz>
2849
2850         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2851         (cgraph_create_virtual_clone): Call hooks once virtual clone
2852         is finished.
2853         * cgraph.h (cgraph_clone_node): Update prototype.
2854         * ipa-cp.c (ipcp_estimate_growth): Use
2855         estimate_ipcp_clone_size_and_time.
2856         * ipa-inline-transform.c (clone_inlined_nodes): Update.
2857         * lto-cgraph.c (input_node): Update.
2858         * ipa-inline.c (recursive_inlining): Update.
2859         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2860         (evaluate_conditions_for_known_args): Break out from ...
2861         (evaluate_conditions_for_edge): ... here.
2862         (evaluate_conditions_for_ipcp_clone): New function.
2863         (inline_node_duplication_hook): Update clone summary based
2864         on parameter map.
2865         (estimate_callee_size_and_time): Rename to ...
2866         (estimate_node_size_and_time): take NODE instead of EDGE;
2867         take POSSIBLE_TRUTHS as argument.
2868         (estimate_callee_size_and_time): Update.
2869         (estimate_ipcp_clone_size_and_time): New function.
2870         (do_estimate_edge_time): Update.
2871
2872 2011-05-08  Richard Guenther  <rguenther@suse.de>
2873
2874         PR middle-end/48908
2875         PR middle-end/48905
2876         * expmed.c (expand_shift_1): Compute adjusted constant shift
2877         amount manually.
2878
2879 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
2880
2881         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2882
2883 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
2884
2885         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2886
2887 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
2888
2889         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2890
2891 2011-05-07  Jan Hubicka  <jh@suse.cz>
2892
2893         * ipa-inline-transform.c (inline_call): Account when program size
2894         decreases.
2895         * ipa-inline.c (relative_time_benefit): New function.
2896         (edge_badness): Reorganize to be power 2 based; fix thinko when
2897         computing badness for negative growth; update comments to match
2898         reality; better dumps.
2899
2900 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
2901
2902         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2903         type to bool and adjust comment.
2904         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2905         (fold_mathfn_compare): Remove calls to global_bindings_p.
2906         (fold_inf_compare): Likewise.
2907         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2908         * c-tree.h (global_bindings_p): Adjust prototype.
2909         * c-decl.c (global_bindings_p): Return bool and simplify.
2910
2911 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
2912
2913         PR tree-optimization/48837
2914         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2915         when accumulator transformation is performed.
2916
2917 2011-05-06  Jan Hubicka  <jh@suse.cz>
2918
2919         * i386.h (ix86_tune_indices): Add
2920         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2921         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2922         * i386.c (initial_ix86_tune_features): Add
2923         X86_SOFTARE_PREFETCHING_BENEFICIAL.
2924         (software_prefetching_beneficial_p): Remove predicate.
2925         (ix86_option_override_internal): Use new macro.
2926
2927 2011-05-06  Jan Hubicka  <jh@suse.cz>
2928
2929         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2930
2931 2011-05-06  Jan Hubicka  <jh@suse.cz>
2932
2933         * cgraph.c (cgraph_add_thunk): Create real function node instead
2934         of alias node; finalize it and mark needed/reachale; arrange visibility
2935         to be right and add it into the corresponding same comdat group list.
2936         (dump_cgraph_node): Dump thunks.
2937         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2938         cgraph_function_with_gimple_body_p,
2939         cgraph_first_function_with_gimple_body,
2940         cgraph_next_function_with_gimple_body): New functions.
2941         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2942         New macros.
2943         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2944         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2945         * cgraphunit.c (cgraph_finalize_function): Only look into possible
2946         devirtualization when optimizing.
2947         (verify_cgraph_node): Verify thunks.
2948         (cgraph_analyze_function): Analyze thunks.
2949         (cgraph_mark_functions_to_output): Output thunks only in combination
2950         with function they are assigned to.
2951         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2952         alias into normal node.
2953         (assemble_thunks): New functoin.
2954         (cgraph_expand_function): Use it.
2955         * lto-cgraph.c (lto_output_node): Stream thunks.
2956         (input_overwrite_node): Stream in thunks.
2957         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2958         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2959         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2960         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2961         (inline_analyze_function): Do not care about thunk jump functions.
2962         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2963         * ipa-prop.c (ipa_prop_write_jump_functions): Use
2964         cgraph_function_with_gimple_body_p.
2965         * passes.c (do_per_function_toporder): Use
2966         cgraph_function_with_gimple_body_p.
2967         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2968         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2969         (function_called_by_processed_nodes_p): Likewise.
2970
2971 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
2972
2973         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2974         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2975         entries.
2976         (mabi=): Replace with separate entries for mabi=altivec,
2977         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2978         mabi=ieeelongdouble and mabi=ibmlongdouble.
2979         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2980         check for -mabi=spe without SPE ABI support here.
2981         (rs6000_handle_option): Replace OPT_mabi_ handling with
2982         OPT_mabi_altivec and OPT_mabi_spe handling.
2983
2984 2011-05-06  Cary Coutant  <ccoutant@google.com>
2985
2986         * dwarf2out.c (contains_subprogram_definition): New function.
2987         (should_move_die_to_comdat): Call it.
2988
2989 2011-05-06  Jeff Law  <law@redhat.com>
2990
2991         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2992         remove_ctrl_stmt_and_useless_edges.
2993         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2994         (fixup_template_block, thread_single_edge): Likewise.
2995         (mark_threaded_blocks): Use THREAD_TARGET.
2996
2997 2011-05-06  Alan Modra  <amodra@gmail.com>
2998
2999         PR target/48900
3000         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3001         const0_rtx as the arg to the dummy __tls_get_addr libcall.
3002
3003 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
3004
3005         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3006         constraint modifier to "r".
3007
3008 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
3009
3010         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3011         fall through for OPT_mcmodel_.
3012
3013 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3014
3015         * config/s390/s390.c (s390_asm_trampoline_template): Comment
3016         instruction sizes.
3017         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3018
3019 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3020
3021         PR target/47930
3022         * config/arm/arm.opt (marm): Document it.
3023         (mthumb): Reject negative variant.
3024
3025 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
3026
3027         PR target/48898
3028         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3029         Fix typo in "ccvt" variable name.
3030
3031 2011-05-06  Tristan Gingold  <gingold@adacore.com>
3032
3033         PR target/48895
3034         * config/vms/vms-ar.c (main): Remove cwd variable.
3035
3036 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
3037
3038         PR debug/48902
3039         * var-tracking.c (prepare_call_arguments): Move else before #endif.
3040
3041 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
3042
3043         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3044         * gimplify.c (gimplify_switch_expr): Likewise.
3045         * omp-low.c (expand_omp_sections): Likewise.
3046         * tree-eh.c (lower_try_finally_switch): Likewise.
3047         (lower_eh_dispatch): Likewise.
3048         * tree.h (build_case_label): Declare.
3049         * tree.c (build_case_label): Define.
3050
3051 2011-05-05  Jason Merrill  <jason@redhat.com>
3052
3053         PR c++/40975
3054         * tree-inline.c (copy_tree_r): Use copy_statement_list.
3055         (copy_statement_list): Don't recurse.
3056         * stor-layout.c (copy_self_referential_tree_r): Don't allow
3057         STATEMENT_LIST.
3058
3059 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3060
3061         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3062         through from -mfpu= handling.
3063         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3064
3065 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
3066
3067         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3068         POST_MODIFY.
3069
3070 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
3071
3072         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3073         for 11.31.
3074         (hppa[12]*-*-hpux11*): Ditto.
3075         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3076         * config/ia64/hpux-unix2003.h: New.
3077         * config/pa/pa-hpux1131.opt: New.
3078         * config/pa/pa-hpux1131.h: New.
3079         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3080         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3081         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3082
3083 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
3084
3085         PR debug/48853
3086         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3087         instead of mode as 3rd argument to recursive call.
3088         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3089         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3090         VOIDmode.
3091         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3092         don't give up if mode is Pmode and mem_mode is not VOIDmode.
3093         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3094         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3095
3096 2011-05-05  Julian Brown  <julian@codesourcery.com>
3097
3098         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3099         parenthesis in D-register case.
3100
3101 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3102
3103         * opt-functions.awk (var_type_struct): Handle Enum options.
3104         * optc-gen.awk: Don't check range of variables of character type.
3105         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3106         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3107         rs6000_sdata_name, rs6000_explicit_options): Remove.
3108         (rs6000_option_override_internal): Check for -malign-power here.
3109         Use global_options_set instead of rs6000_explicit_options.
3110         (rs6000_parse_fpu_option): Remove.
3111         (rs6000_handle_option): Access variables via opts and opts_set
3112         pointers.  Use error_at and warning_at.  Add fall-through
3113         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3114         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3115         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3116         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3117         here.  Don't use rs6000_parse_fpu_option.
3118         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3119         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3120         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3121         (mrecip=): Use Var.
3122         (mspe): Use Var and Save.
3123         (mtraceback=): Use Enum and Var.
3124         (rs6000_traceback_type): New Enum and EnumValue entries.
3125         (mfloat-gprs=): Use Enum, Var and Save.
3126         (rs6000_float_gprs): New Enum and EnumValue entries.
3127         (mlong-double-): use Var and Save.
3128         (msched-costly-dep=, minsert-sched-nops=): Use Var.
3129         (malign-): Use Enum and Var.
3130         (rs6000_alignment_flags): New Enum and EnumValue entries.
3131         (mfpu=): Use Enum.
3132         (fpu_type_t): New Enum and EnumValue entries.
3133         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3134         global_options_set instead of rs6000_explicit_options.
3135         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3136         global_options_set instead of rs6000_explicit_options.
3137         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3138         global_options_set instead of rs6000_explicit_options.
3139         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3140         global_options_set instead of rs6000_explicit_options.
3141         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3142         global_options_set instead of rs6000_explicit_options.
3143         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3144         global_options_set instead of rs6000_explicit_options.
3145         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3146         definition.
3147         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3148         global_options_set instead of rs6000_explicit_options.
3149         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3150         (rs6000_cmodel): New Enum and EnumValue entries.
3151         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3152         global_options_set instead of rs6000_explicit_options.
3153         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3154         (mtls-size=): Use Enum and Var.
3155         (rs6000_tls_size): New Enum and EnumValue entries.
3156
3157 2011-05-05  Michael Matz  <matz@suse.de>
3158
3159         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3160         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3161         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3162         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3163         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3164         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3165         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3166         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3167         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3168         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3169         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3170         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3171         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3172         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3173         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3174         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3175
3176 2011-05-05  Richard Guenther  <rguenther@suse.de>
3177
3178         * expmed.c (expand_variable_shift): Rename to ...
3179         (expand_shift_1): ... this.  Take an expanded shift amount.
3180         For rotates recurse directly not building trees for the shift amount.
3181         (expand_variable_shift): Wrap around expand_shift_1.
3182         (expand_shift): Adjust.
3183
3184 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
3185
3186         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3187
3188 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
3189
3190         * tree.h (get_pending_sizes): Remove prototype.
3191         (put_pending_size): Likewise.
3192         (put_pending_sizes): Likewise.
3193         * stor-layout.c (pending_sizes): Delete.
3194         (get_pending_sizes): Likewise.
3195         (put_pending_size): Likewise.
3196         (put_pending_sizes): Likewise.
3197         (variable_size): Do not call put_pending_size and tidy up.
3198         * function.h (struct function): Remove dont_save_pending_sizes_p.
3199         * lto-streamer-in.c (input_function): Do not stream it.
3200         * lto-streamer-out.c (output_function): Likewise.
3201         * tree-inline.c (initialize_cfun): Do not copy it.
3202         * c-decl.c (store_parm_decls): Do not set it.
3203         * omp-low.c (create_task_copyfn): Likewise.
3204         * tree-optimize.c (tree_rest_of_compilation): Likewise.
3205
3206 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
3207
3208         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3209         conditions.
3210         (*movdf_internal): Ditto.
3211         (*movdf_internal_nointeger): Ditto.
3212         (*movsf_internal): Ditto.
3213
3214 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3215
3216         * c-decl.c (finish_decl): Don't call get_pending_sizes.
3217         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
3218         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
3219         (c_variable_size): Remove.
3220         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
3221         call put_pending_sizes.
3222         (get_parm_info): Add parameter expr.  Use it to set
3223         arg_info->pending_sizes.
3224         (store_parm_decls): Use arg_info->pending_sizes instead or calling
3225         get_pending_sizes.
3226         * c-parser.c (c_parser_parms_declarator): Update call to
3227         c_parser_parms_list_declarator.
3228         (c_parser_parms_list_declarator): Take parameter expr.  Update
3229         call to push_parm_decl.  Update recursive call.  Don't call
3230         get_pending_sizes.  Update calls to get_parm_info.
3231         (c_parser_objc_method_definition): Update calls to
3232         c_parser_objc_method_decl and objc_start_method_definition.
3233         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3234         (c_parser_objc_method_decl): Add parameter expr.  Update call to
3235         grokparm.
3236         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3237         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3238         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3239
3240 2011-05-05  Michael Hope  <michael.hope@linaro.org>
3241
3242         PR pch/45979
3243         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3244         __ARM_EABI__ hosts.
3245
3246 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3247
3248         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3249         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3250         (spu_output_mi_thunk): New function.
3251
3252 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3253
3254         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3255         targetm.asm_out.print_operand.
3256         * config/sol2.c: Include target.h.
3257
3258 2011-05-04  Jan Hubicka  <jh@suse.cz>
3259
3260         * ipa-inline.c (reset_edge_caches): New function.
3261         (update_caller_keys): Add check_inlinablity_for; do not
3262         reset edge caches; remove now unnecesary loop.
3263         (update_callee_keys): Add comments; reset node_growth_cache of callee.
3264         (update_all_callee_keys): Likewise.
3265         (inline_small_functions): Sanity check cache; update code
3266         recomputing it.
3267
3268 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
3269
3270         PR rtl-optimization/47612
3271         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3272         as the last insn of the sequence to be moved.
3273
3274 2011-05-04  Tobias Burnus  <burnus@net-b.de>
3275
3276         PR fortran/48864
3277         * doc/invoke.texi (Ofast): Document that it
3278         enables Fortran's -fno-protect-parens.
3279
3280 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
3281
3282         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3283
3284 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
3285
3286         * stor-layout.c (variable_size): Do not issue errors.
3287
3288 2011-05-04  Richard Guenther  <rguenther@suse.de>
3289
3290         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3291         for array-ref indices.
3292         (tree_coverage_counter_addr): Likewise.
3293         (build_fn_info_type): Use size_int for index types.
3294         (build_gcov_info): Likewise.
3295
3296 2011-05-04  Richard Guenther  <rguenther@suse.de>
3297
3298         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3299         to build_int_cst.
3300         * c-typeck.c (really_start_incremental_init): Use bitsize_int
3301         for constructor indices.
3302         (push_init_level): Likewise.
3303
3304 2011-05-04  Richard Guenther  <rguenther@suse.de>
3305
3306         * explow.c (promote_mode): Move variable declarations before code.
3307
3308 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
3309
3310         * tree.h (build_function_type_array): Declare.
3311         (build_varargs_function_type_array): Declare.
3312         (build_function_type_vec, build_varargs_function_type_vec): Define.
3313         * tree.c (build_function_type_array_1): New function.
3314         (build_function_type_array): New function.
3315         (build_varargs_function_type_array): New function.
3316
3317 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
3318
3319         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3320         before setting STMT_VINFO_TYPE.
3321
3322 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3323
3324         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3325         instead of spu_pass_by_reference.
3326
3327 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3328
3329         * calls.c (emit_library_call_value_1): Invoke
3330         promote_function_mode hook on libcall arguments.
3331         * explow.c (promote_function_mode, promote_mode): Handle TYPE
3332         argument being NULL.
3333         * targhooks.c (default_promote_function_mode): Lisewise.
3334         * config/s390/s390.c (s390_promote_function_mode): Likewise.
3335         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3336
3337         * doc/tm.texi: Document that TYPE argument might be NULL.
3338
3339 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
3340
3341         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3342
3343 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
3344
3345         From Bernd Schmidt
3346         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3347
3348 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3349
3350         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3351         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3352         Move ...
3353         * mips-tfile.c: ... here.
3354         Don't include coretypes.h, tm.h, filenames.h.
3355         (saber_stop): Remove definition and all calls.
3356         [__SABER__]: Remove.
3357         (__LINE__): Remove default.
3358         (Size_t, Ptrdiff_t): Remove definitions.
3359         Replace by size_t, ptrdiff_t.
3360         [!MIPS_DEBUGGING_INFO]: Remove.
3361         (SHASH_SIZE, THASH_SIZE): Remove defaults.
3362         (progname): Add const.
3363         (STATIC): Remove.
3364         Replace all uses by static.
3365         (ALIGN_SYMTABLE_OFFSET): Remove default.
3366         * mips-tdump.c: Don't include coretypes.h, tm.h.
3367         Remove !MIPS_IS_STAB guard.
3368         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3369         $(TM_H), filenames.h dependencies.
3370         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3371
3372 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
3373
3374         From Jie Zhang
3375         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3376         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3377
3378 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
3379
3380         From Bernd Schmidt
3381         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3382         account and save/restore RETS.
3383         (PROFILE_BEFORE_PROLOGUE): Define.
3384         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
3385         the push insn to use predecrement.
3386
3387 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
3388
3389         From Jie Zhang
3390         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3391
3392 2011-05-04  Nick Clifton  <nickc@redhat.com>
3393
3394         * config/mn10300/mn10300.c: Include cfgloop.h.
3395         (DUMP): New macro.
3396         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
3397         Lcc or a FLcc insn into the instruction stream.
3398         (mn10300_block_contains_call): New function.  Returns true if the
3399         given basic block contains a CALL insn.
3400         (mn10300_loop_contains_call_insn): New function.  Returns true if
3401         the given loop contains a CALL insn.
3402         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
3403         to use the SETLB and Lcc or FLcc insns.
3404         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3405         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3406         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
3407         disable the SETLB optimization.
3408         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3409         __SETLB__ or __NO_SETLB__.
3410         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3411         (movsf_internal): Handle MDR register.
3412         (cmpsi): Make visible.
3413         (setlb): New pattern.
3414         (Lcc): New pattern.
3415         (FLcc): New pattern.
3416
3417 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
3418
3419         PR target/48860
3420         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3421         for reg<->xmm moves.
3422         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3423         (vec_concatv2di_rex64_sse): Ditto.
3424         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3425         (*vec_extractv2di_1_rex64): Ditto.
3426
3427         Revert:
3428         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3429
3430         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3431         reg<->xmm moves.
3432         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3433
3434 2011-05-04  Richard Guenther  <rguenther@suse.de>
3435
3436         * tree.h (int_const_binop): Remove notrunc argument.
3437         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
3438         create integer constants that are properly truncated.
3439         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3440         (const_binop): Remove zero notrunc argument to int_const_binop.
3441         (size_binop_loc): Likewise.
3442         (fold_div_compare): Likewise.
3443         (maybe_canonicalize_comparison_1): Likewise.
3444         (fold_comparison): Likewise.
3445         (fold_binary_loc): Likewise.
3446         (multiple_of_p): Likewise.
3447         * expr.c (store_constructor): Likewise.
3448         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3449         (maybe_fold_stmt_addition): Likewise.
3450         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3451         * stor-layout.c (layout_type): Likewise.
3452         * tree-data-ref.c (tree_fold_divides_p): Likewise.
3453         * tree-sra.c (build_ref_for_offset): Likewise.
3454         (build_user_friendly_ref_for_offset): Likewise.
3455         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3456         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3457         * tree-ssa-loop-niter.c (inverse): Likewise.
3458         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3459         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3460         * tree-switch-conversion.c (check_range): Likewise.
3461         (build_constructors): Likewise.
3462         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3463         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3464         (extract_range_from_assert): Likewise.
3465         (vrp_int_const_binop): Likewise.
3466         (extract_range_from_binary_expr): Likewise.
3467         (extract_range_from_unary_expr): Likewise.
3468         (check_array_ref): Likewise.
3469         (find_case_label_range): Likewise.
3470         (simplify_div_or_mod_using_ranges): Likewise.
3471         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3472         comparing case labels for merging.
3473
3474 2011-05-03  Mark Wielaard  <mjw@redhat.com>
3475
3476         * dwarf2out.c (debug_str_hash_forced): Removed.
3477         (gen_label_for_indirect_string): Removed.
3478         (get_debug_string_label): Removed.
3479         (AT_string_form): Generate label directly.
3480         (output_indirect_string): Test indirect_string_node for
3481         DW_FORM_strp instead of checking label and refcount.
3482         (prune_indirect_string): Removed.
3483         (prune_unused_types): Don't check debug_str_hash_forced or
3484         call prune_indirect_string.
3485
3486 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
3487
3488         PR other/48093
3489         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3490
3491 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
3492
3493         PR debug/47994
3494         PR debug/47919
3495         * combine.c (try_combine): Skip debug insns at m_split tests.
3496
3497 2011-04-26  Mark Wielaard  <mjw@redhat.com>
3498
3499         PR42288
3500         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3501         when info_section_emitted.
3502
3503 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
3504
3505         * config/mips/mips-opts.h: New.
3506         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3507         to mips-opts.h.
3508         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3509         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3510         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
3511         via opts pointer.
3512         * config/mips/mips.h (enum mips_code_readable_setting): Move to
3513         mips-opts.h.
3514         (mips_abi, mips_code_readable): Don't declare.
3515         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3516         (mabi=): Use Enum and Var.
3517         (mips_abi): New Enum and EnumValue entries.
3518         (mcode-readable=): Use Enum and Var.
3519         (mips_code_readable_setting): New Enum and EnumValue entries.
3520         (mr10k-cache-barrier=): Use Enum and Var.
3521         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3522
3523 2011-05-03  Jan Hubicka  <jh@suse.cz>
3524
3525         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3526         replace hash by pointer map.
3527         (cgraph_node_set_element_def, cgraph_node_set_element,
3528         const_cgraph_node_set_element, varpool_node_set_element_def,
3529         varpool_node_set_element, const_varpool_node_set_element): Remove.
3530         (free_cgraph_node_set, free_varpool_node_set): New function.
3531         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3532         * tree-emutls.c: Free varpool node set.
3533         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3534         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3535         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3536         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3537         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3538         Move here from ipa.c; implement using pointer_map
3539         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3540         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3541         debug_cgraph_node_set, varpool_node_set_new,
3542         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3543         dump_varpool_node_set, debug_varpool_node_set):
3544         Move to ipa-uitls.c.
3545         * passes.c (ipa_write_summaries): Update.
3546
3547 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3548
3549         From Mike Frysinger:
3550         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3551         bf542/bf544/bf547/bf548/bf549.
3552
3553 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
3554
3555         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3556
3557 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3558
3559         From Bernd Schmidt:
3560         * config/bfin/bfin.md (MOVCC): New mode_macro.
3561         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3562         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
3563         comments from generated assembly.
3564
3565 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3566
3567         From Bernd Schmidt
3568         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3569         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3570         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3571         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3572         * config/bfin/lib1funcs.asm (___muldi3): New function.
3573
3574 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3575
3576         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3577         build_function_type_list instead of build_function_type.
3578         Rearrange initialization of `args' to do so.
3579
3580 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3581
3582         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3583         instead of build_function_type.
3584
3585 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3586
3587         * config/rs6000/rs6000.c (spe_init_builtins): Call
3588         build_function_type_list instead of build_function_type.
3589         (paired_init_builtins, altivec_init_builtins): Likewise.
3590         (builtin_function_type): Likewise.
3591
3592 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3593
3594         * config/sh/sh.c (sh_media_init_builtins): Call
3595         build_function_type_list instead of build_function_type.
3596
3597 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3598
3599         * config/sparc/sparc.c (sparc_file_end): Call
3600         build_function_type_list instead of build_function_type.
3601
3602 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3603
3604         * config/alpha/alpha.c (alpha_init_builtins): Call
3605         build_function_type_list instead of build_function_type.
3606
3607 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3608
3609         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3610         build_function_type_list instead of build_function_type.
3611
3612 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3613
3614         * config/iq2000/i2000.c (iq2000_init_builtins): Call
3615         build_function_type_list instead of build_function_type.
3616         Delete `endlink' variable.
3617
3618 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3619
3620         * config/avr/avr.c (avr_init_builtins): Call
3621         build_function_type_list instead of build_function_type.
3622
3623 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3624
3625         * config/picochip/picochip.c (picochip_init_builtins): Call
3626         build_function_type_list instead of build_function_type.
3627         Delete `endlink' variable.
3628
3629 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
3630
3631         * config/bfin/bfin.c (bfin_init_builtins): Call
3632         build_function_type_list instead of build_function_type.
3633
3634 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3635
3636         From Bernd Schmidt
3637         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3638         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
3639
3640 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3641
3642         From Jie Zhang:
3643         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3644         libbffastfp overrides libgcc when -mfast-fp.
3645
3646 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3647
3648         Originally from Bernd Schmidt
3649         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3650         * config/bfin/bfin.c (override_options): Test it and error if
3651         TARGET_FDPIC.
3652
3653 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
3654
3655         Originally From Bernd Schmidt
3656         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3657         FD-PIC.
3658
3659 2011-05-03  Jeff Law  <law@redhat.com>
3660
3661         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3662         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3663         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3664         than accessing AUX field directly.  Free the AUX field before
3665         clearing it.
3666         (thread_block, thread_through_loop_header): Likewise.
3667         (thread_single_edge, mark_threaded_blocks): Likewise.
3668         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
3669         (register_jump_thread): Do not attempt to thread to a NULL edge.
3670
3671 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
3672
3673         * function.c (init_function_start): Call decide_function_section.
3674         * varasm.c (decide_function_section): New function.
3675         (assemble_start_function): When not using
3676         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3677         or first_function_block_is_cold.
3678         * rtl.h (decide_function_section): Declare.
3679
3680 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
3681             Jakub Jelinek  <jakub@redhat.com>
3682
3683         PR target/48774
3684         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3685         only succeed if req_mode is the same as set_mode.
3686
3687 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
3688
3689         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3690         * genemit.c (gen_exp): Handle RETURN.
3691         * emit-rtl.c (verify_rtx_sharing): Likewise.
3692         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3693         * rtl.c (copy_rtx): RETURN is shared.
3694         * rtl.h (enum global_rtl_index): Add GR_RETURN.
3695         (ret_rtx): New.
3696         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3697         * config/s390/s390.c (s390_emit_epilogue): Likewise.
3698         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3699         * config/cris/cris.c (cris_expand_return): Likewise.
3700         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3701         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3702         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3703         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3704         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3705         Likewise.
3706         * config/v850/v850.c (expand_epilogue): Likewise.
3707         * config/bfin/bfin.c (bfin_expand_call): Likewise.
3708         * config/arm/arm.md (epilogue): Likewise.
3709         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3710         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3711         variable to ret_reg.
3712
3713 2011-05-03  Richard Guenther  <rguenther@suse.de>
3714
3715         PR lto/48846
3716         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3717         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3718         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3719
3720 2011-05-03  Richard Guenther  <rguenther@suse.de>
3721
3722         * c-decl.c (grokdeclarator): Instead of looking at
3723         TREE_OVERFLOW check if the constant fits in the index type.
3724
3725 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3726
3727         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3728         (vec_store_lanes<mode><mode>): Likewise.
3729
3730 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3731
3732         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3733         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3734         convert_optab_index values.
3735         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3736         * genopinit.c (optabs): Initialize the new optabs.
3737         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3738         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3739         (expand_STORE_LANES): New functions.
3740         * tree.h (build_array_type_nelts): Declare.
3741         * tree.c (build_array_type_nelts): New function.
3742         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3743         (vect_model_load_cost): Likewise.
3744         (vect_store_lanes_supported, vect_load_lanes_supported)
3745         (vect_record_strided_load_vectors): Declare.
3746         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3747         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3748         (vect_transform_strided_load): Split out statement recording into...
3749         (vect_record_strided_load_vectors): ...this new function.
3750         * tree-vect-stmts.c (create_vector_array, read_vector_array)
3751         (write_vector_array, create_array_ref): New functions.
3752         (vect_model_store_cost): Add store_lanes_p argument.
3753         (vect_model_load_cost): Add load_lanes_p argument.
3754         (vectorizable_store): Try to use store-lanes functions for
3755         interleaved stores.
3756         (vectorizable_load): Likewise load-lanes and loads.
3757         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3758         to vect_model_store_cost.
3759         (vect_build_slp_tree): Likewise vect_model_load_cost.
3760
3761 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3762
3763         * hooks.h (hook_bool_mode_uhwi_false): Declare.
3764         * hooks.c (hook_bool_mode_uhwi_false): New function.
3765         * target.def (array_mode_supported_p): New hook.
3766         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3767         * doc/tm.texi: Regenerate.
3768         * stor-layout.c (mode_for_array): New function.
3769         (layout_type): Use it.
3770         * config/arm/arm.c (arm_array_mode_supported_p): New function.
3771         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3772
3773 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
3774
3775         PR target/48723
3776         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3777         for -fstack-check if the size to allocate is negative.
3778
3779 2011-05-02  Lawrence Crowl  <crowl@google.com>
3780
3781         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3782         (timevar_cond_start): New for starting a timer only when it is not
3783         already running.
3784         (timevar_cond_stop): New for stopping a timer when it was not already
3785         running.
3786
3787         * timevar.c (timevar_stop): Enable start/stop timers to start again.
3788         (timevar_cond_start): New as above.
3789         (timevar_cond_stop): New as above.
3790
3791         * timevar.def: Add start/stop timers for compiler phases,
3792         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3793         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3794         and TV_PHASE_FINALIZE.
3795         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3796         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3797         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3798         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3799         Make unused TV_OVERLOAD into a start/stop timer.
3800
3801         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3802         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3803         to indicate that they are start/stop timers.
3804
3805         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3806         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3807         Move initialization to do_compile.
3808         (do_compile): Add initialization from above.
3809         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3810
3811         * c-decl.c (c_write_global_declarations): Add start/stop of
3812         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3813
3814         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3815         or TV_PARSE_INLINE, as appropriate.
3816         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3817         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3818
3819 2011-05-02  Jason Merrill  <jason@redhat.com>
3820
3821         PR c++/40975
3822         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3823
3824 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
3825
3826         PR c/35445
3827         * c-decl.c (finish_decl): Only create a composite if the types are
3828         compatible.
3829
3830 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
3831
3832         * config/fr30/fr30-protos.h (Mmode): Don't define.
3833         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
3834         definition where used.
3835         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3836         define.  Expand definitions where used.
3837         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3838         Expand definitions where used.
3839         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3840         rx_function_arg, rx_function_arg_advance,
3841         rx_function_arg_boundary): Expand definitions of those macros.
3842         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
3843         definition where used.
3844
3845 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3846
3847         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3848         reg<->xmm moves.
3849         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3850         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
3851         with *movv2sf_internal_rex64_avx.
3852         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3853         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3854         Use %v prefix in insn mnemonic to handle TARGET_AVX.
3855         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
3856         "vex" in "prefix" attribute calculation.
3857         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
3858
3859 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
3860
3861         PR target/47951
3862         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3863         inputs match the output.
3864
3865 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
3866
3867         PR target/47955
3868         * config/m68k/m68k.c (m68k_expand_prologue): Set
3869         current_function_static_stack_size.
3870
3871 2011-05-02   Jan Hubicka  <jh@suse.cz>
3872
3873         * lto-streamer.c (lto_streamer_cache_insert_1,
3874         lto_streamer_cache_lookup, lto_streamer_cache_create,
3875         lto_streamer_cache_delete): Use pointer map instead of hashtable.
3876         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3877
3878 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
3879
3880         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3881         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3882         config/m68k/t-opts: New files.
3883         * config/m68k/m68k-tables.opt: New file (generated).
3884         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3885         extra_options and m68k/t-opts to tmake_file.
3886         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3887         (all_isas): Initialize using m68k-isas.def.
3888         (all_microarchs): Initialize using m68k-microarchs.def.
3889         (m68k_find_selection): Remove.
3890         (m68k_handle_option): Don't assert that global structures are in
3891         use.  Use error_at.  Access variables via opts pointer.  Don't
3892         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
3893         directly for -m68020-40 and -m68020-60.
3894         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3895         m68k_tune_entry here.
3896         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3897         to m68k-opts.h.
3898         (m68k_library_id_string): Remove declaration.
3899         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3900         (m68k_library_id_string): New Variable.
3901         (march=, mcpu=, mtune=): Use Enum and Var.
3902
3903 2011-05-02  Richard Guenther  <rguenther@suse.de>
3904
3905         * varasm.c (output_constructor_regular_field): Compute zero-based
3906         index with double-ints.  Make sure to ICE instead of producing
3907         wrong code.
3908         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3909         in asserts.  Properly use a signed type.
3910
3911 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3912
3913         * config/i386/sse.md (V): New mode iterator.
3914         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
3915         TARGET_SSE2.
3916         (V_256): Rename from AVX256MODE.
3917         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
3918         condition to all users.
3919         (VF1): Ditto.
3920         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
3921         condition to all users.
3922         (VF_128): Make V4SF mode unconditional.
3923         (VF_256): Rename from AVX256MODEF2P.
3924         (VI4F_128): Rename from SSEMODE4S.
3925         (VI8F_128): Rename from SSEMODE2D.
3926         (VI4F_256): Rename from AVX256MODE8P.
3927         (VI8F_256): Rename from AVX256MODE4P.
3928         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3929         (ssescalarmodesuffix): Remove SF and DF modes.
3930         (SSEMODE124): Remove.
3931         (SSEMODE1248): Ditto.
3932         (SSEMODEF2P): Ditto.
3933         (AVXMODEF2P): Ditto.
3934         (AVXMODEFDP): Ditto.
3935         (AVXMODEFSP): Ditto.
3936         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3937         unconditional.
3938         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
3939         unconditional.
3940         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3941         xop_pcmov_<mode>256.  Use V mode iterator.
3942
3943         Adjust RTX patterns globally for renamed mode attributes.
3944
3945 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3946
3947         * haifa-sched.c (sched_emit_insn): Emit insn before first
3948         non-scheduled insn.  Inform back-end about new insn.  Add
3949         new insn to scheduled_insns list.
3950
3951 2011-05-02  Richard Guenther  <rguenther@suse.de>
3952
3953         PR tree-optimization/48822
3954         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3955         (process_scc): Indicate which iteration we start.
3956
3957 2011-05-02  Jan Hubicka  <jh@suse.cz>
3958
3959         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3960         (lto_section_overrun): New.
3961         * lto-section-out.c (append_block): Rename to ...
3962         (lto_append_block): ... this one; export.
3963         (lto_output_1_stream): Move lto lto-streamer.h
3964         (lto_output_data_stream): Update.
3965         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3966         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3967         functions.
3968
3969 2011-05-02  Richard Guenther  <rguenther@suse.de>
3970
3971         * tree.c (tree_code_counts): New global array.
3972         (record_node_allocation_statistics): Count individual tree codes.
3973         (dump_tree_statistics): Dump individual code stats.
3974
3975 2011-05-01  Jan Hubicka  <jh@suse.cz>
3976
3977         * ipa-inline.c (caller_growth_limits): Fix thinko when
3978         looking for largest stack frame.
3979         * ipa-inline.h (dump_inline_summary): Declare.
3980         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3981         on stack usage.
3982         (dump_inline_summary): Export.
3983         (debug_inline_summary): Declare as DEBUG_FUNCTION.
3984
3985 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
3986
3987         * reginfo.c (memory_move_cost): Change rclass argument type form
3988         'enum reg_class' to reg_class_t.
3989         * reload.h (memory_move_cost): Update prototype.
3990         * postreload.c reload_cse_simplify_set): Change type dclass var to
3991         reg_class_t.
3992         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3993         Update prototype.
3994         (ira_allocate_and_set_costs): Change aclass argument type form
3995         'enum reg_class' to reg_class_t.
3996         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3997         Change aclass argument type to reg_class_t.
3998         (update_conflict_hard_reg_costs): Change type aclass and pref vars
3999         to reg_class_t.
4000         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4001         memory_move_cost call.
4002
4003         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4004         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4005         Change type tmp var to reg_class_t.
4006
4007 2011-04-30  Jan Hubicka  <jh@suse.cz>
4008
4009         * ipa-inline.c (can_inline_edge_p): Disregard limits when
4010         inlining into function with flatten attribute.
4011         (want_inline_small_function_p): Be more realistic about inlining
4012         cold calls where callee size grows.
4013
4014 2011-04-30  Jan Hubicka  <jh@suse.cz>
4015
4016         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4017         flags.
4018
4019 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
4020
4021         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4022         PRINT_OPERAND_PUNCT_VALID_P): Remove.
4023         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4024         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4025         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4026         (print_operand): Rename to...
4027         (sparc_print_operand): ...this. Make static. Adjust
4028         sparc_print_operand function call.
4029         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4030         functions.
4031
4032 2011-04-30  Jan Hubicka  <jh@suse.cz>
4033
4034         PR middle-end/48752
4035         * ipa-inline.c (early_inliner): Disable when doing late
4036         addition of function.
4037
4038 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
4039
4040         * dwarf2out.c (get_address_mode): New inline.
4041         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4042         if not dwarf_strict emit
4043         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4044         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4045         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
4046         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4047         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4048         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4049         mem_loc_descriptor callers.
4050         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4051         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4052         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4053         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4054         (base_types): New variable.
4055         (get_base_type_offset, calc_base_type_die_sizes,
4056         base_type_for_mode, mark_base_types, base_type_cmp,
4057         move_marked_base_types): New functions.
4058         (calc_die_sizes): Assert that die_offset is 0 or equal to
4059         next_die_offset.
4060         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4061         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
4062         callers.  If not dwarf_strict, call mem_loc_descriptor even for
4063         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4064         (gen_subprogram_die): Don't give up on call site parameters
4065         with non-integral or large integral modes.  Adjust
4066         mem_loc_descriptor callers.
4067         (prune_unused_types): Call prune_unused_types_mark on base_types
4068         vector entries.
4069         (resolve_addr): Call mark_base_types.
4070         (dwarf2out_finish): Call move_marked_base_types.
4071
4072         PR tree-optimization/48809
4073         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4074         type.
4075         (gen_inbound_check): Don't compute index_expr - range_min in utype
4076         again, instead reuse SSA_NAME initialized in build_arrays.
4077         Remove two useless gsi_for_stmt calls.
4078
4079 2011-04-29  Jeff Law  <law@redhat.com>
4080
4081         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4082
4083 2011-04-29  Martin Jambor  <mjambor@suse.cz>
4084
4085         * cgraph.h (cgraph_postorder): Remove declaration.
4086         * ipa-utils.h (ipa_free_postorder_info): Declare.
4087         (ipa_reverse_postorder): Likewise.
4088         * cgraphunit.c: Include ipa-utils.h.
4089         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4090         * ipa-inline.c: Include ipa-utils.h.
4091         (ipa_inline): Update call to ipa_reverse_postorder.
4092         * ipa-pure-const.c (propagate_pure_const): Update call to
4093         ipa_reduced_postorder and ipa_print_order.  Call
4094         ipa_free_postorder_info to clean up.
4095         (propagate_nothrow): Likewise.
4096         * ipa-reference.c (propagate): Removed a useless call to
4097         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4098         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
4099         * ipa.c: Include ipa-utils.h.
4100         (ipa_profile): Update call to ipa_reverse_postorder.
4101         (cgraph_postorder): Moved to...
4102         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4103         (ipa_utils_print_order): Renamed to ipa_print_order.
4104         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4105         comments.
4106         (ipa_free_postorder_info): New function.
4107         * passes.c: Include ipa-utils.h.
4108         (do_per_function_toporder): Update call to ipa_reverse_postorder.
4109         (ipa_write_summaries): Likewise.
4110         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4111         (cgraphunit.o): Likewise.
4112         (ipa.o): Likewise.
4113         (ipa-inline.o): Likewise.
4114
4115 2011-04-29  Jan Hubicka  <jh@suse.cz>
4116
4117         * gcc.dg/tree-ssa/inline-10.c: New testcase.
4118         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4119         * ipa-inline.h (clause_t): Turn into unsigned int.
4120         * ipa-inline-analysis.c (add_clause): Do more simplification.
4121         (and_predicates): Shortcut more cases.
4122         (predicates_equal_p): Move forward; check that clauses are properly
4123         ordered.
4124         (or_predicates): Shortcut more cases.
4125         (edge_execution_predicate): Rewrite as...
4126         (set_cond_stmt_execution_predicate): ... this function; handle
4127         __builtin_constant_p.
4128         (set_switch_stmt_execution_predicate): New .
4129         (compute_bb_predicates): New.
4130         (will_be_nonconstant_predicate): Update TODO.
4131         (estimate_function_body_sizes): Use compute_bb_predicates
4132         and free them later, always try to estimate if stmt is constant.
4133         (estimate_time_after_inlining, estimate_size_after_inlining):
4134         Gracefully handle optimized out edges.
4135         (read_predicate): Fix off by one error.
4136
4137 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4138
4139         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4140
4141 2011-04-27  Xinliang David Li  <davidxl@google.com>
4142
4143         * tree-profile.c (init_ic_make_global_vars): Set
4144         tls attribute on ic vars.
4145         * coverage.c (coverage_end_function): Initialize
4146         function_list with zero.
4147
4148 2011-04-29  Richard Guenther  <rguenther@suse.de>
4149
4150         * builtins.c (fold_builtin_classify_type): Use integer_type_node
4151         for the type of the result.
4152         (fold_builtin_isascii): Likewise.
4153         (fold_builtin_toascii): Use integer_type_node where appropriate.
4154         (fold_builtin_logb): Likewise.
4155         (fold_builtin_frexp): Likewise.
4156         (fold_builtin_strstr): Likewise.
4157         (fold_builtin_strpbrk): Likewise.
4158         (fold_builtin_fputs): Likewise.
4159         (fold_builtin_sprintf): Likewise.
4160         (fold_builtin_snprintf): Likewise.
4161         (fold_builtin_printf): Likewise.
4162         (do_mpfr_remquo): Use a proper type for the assigned constant.
4163         (do_mpfr_lgamma_r): Likewise.
4164         * dwarf2out.c (resolve_one_addr): Use size_int.
4165         * except.c (init_eh): Likewise.
4166         (assign_filter_values): Use integer_type_node for filter values.
4167         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4168         indices.
4169         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4170         for EH region numbers.
4171         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4172         for the shift amount.
4173
4174 2011-04-29  Richard Guenther  <rguenther@suse.de>
4175
4176         * expr.h (expand_shift): Rename to ...
4177         (expand_variable_shift): ... this.
4178         (expand_shift): Take a constant shift amount.
4179         * expmed.c (expand_shift): Rename to ...
4180         (expand_variable_shift): ... this.
4181         (expand_shift): New wrapper around expand_variable_shift.
4182         * expr.c (convert_move, emit_group_load_1, emit_group_store,
4183         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4184         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4185         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4186         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4187         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4188         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4189         emit_store_flag_1, emit_store_flag): Likewise.
4190         * builtins.c (expand_builtin_signbit): Likewise.
4191         * calls.c (load_register_parameters): Likewise.
4192         * function.c (assign_parm_setup_block): Likewise.
4193         * lower-subreg.c (resolve_shift_zext): Likewise.
4194         * optabs.c (widen_bswap, expand_abs_nojump,
4195         expand_one_cmpl_abs_nojump, expand_float): Likewise.
4196         * spu/spu.c (spu_expand_extv): Likewise.
4197         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4198
4199 2011-04-29  Richard Guenther  <rguenther@suse.de>
4200
4201         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4202         for the remapped region number.
4203         * predict.c (build_predict_expr): Use integer_type_node for the
4204         predict kind.
4205         * fold-const.c (fold_binary_loc): Use integer_type_node for
4206         the shift amount.  Use a proper type for the PLUS_EXPR operand.
4207
4208 2011-04-29  Michael Matz  <matz@suse.de>
4209
4210         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4211         other trees that just builtins.
4212         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4213
4214 2011-04-29  Richard Guenther  <rguenther@suse.de>
4215
4216         * tree-nested.c (get_trampoline_type): Use size_int.
4217         (get_nl_goto_field): Likewise.
4218         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4219         for all indexes.
4220         (lower_eh_constructs_2): Likewise.
4221         (lower_resx): Likewise.
4222         (lower_eh_dispatch): Likewise.
4223         * tree-mudflap.c (mf_build_string): Use size_int.
4224         (mudflap_register_call): Use integer_type_node for the flag.
4225         (mudflap_enqueue_constant): Use size_int.
4226         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4227         instead of rebuilding it.
4228
4229 2011-04-29  Richard Guenther  <rguenther@suse.de>
4230
4231         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4232         Handle OBJ_TYPE_REF.
4233         (find_func_aliases_for_call): Use it more consistently.
4234
4235 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
4236
4237         * haifa-sched.c (last_nondebug_scheduled_insn): New.
4238         (rank_for_schedule): Use it.
4239         (schedule_block): Set it.
4240
4241 2011-04-28  David Li  <davidxl@google.com>
4242
4243         * tree.c (crc32_string): Use crc32_byte.
4244         (crc32_byte): New function.
4245         * tree.h (crc32_byte): New function.
4246         * gcov.c (read_graph_file): Handle new cfg_cksum.
4247         (read_count_file): Ditto.
4248         * profile.c (instrument_values): Ditto.
4249         (get_exec_counts): Ditto.
4250         (read_profile_edge_counts): Ditto.
4251         (compute_branch_probabilities): Ditto.
4252         (compute_value_histograms): Ditto.
4253         (branch_prob): Ditto.
4254         (end_branch_prob): Ditto.
4255         * coverage.c (read_counts_file): Ditto.
4256         (get_coverage_counts): Ditto.
4257         (tree_coverage_counter_addr): Ditto.
4258         (coverage_checksum_string): Ditto.
4259         (coverage_begin_output): Ditto.
4260         (coverage_end_function): Ditto.
4261         (build_fn_info_type): Ditto.
4262         (build_fn_info_value): Ditto.
4263         * libgcov.c (gcov_exit): Ditto.
4264         * gcov-dump.c (tag_function): Ditto.
4265         (compute_checksum): Remove.
4266
4267 2011-04-29  Alan Modra  <amodra@gmail.com>
4268
4269         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4270         unspec plus offset.  Tidy macho code.
4271
4272 2011-04-29  Martin Jambor  <mjambor@suse.cz>
4273
4274         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4275         node instead of a decl.  Update all callers.
4276         * cgraph.h: Update declaration.
4277
4278 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
4279
4280         PR tree-optimization/48765
4281         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4282         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4283         to indicate if loop aware SLP is being used.  Scan the statements
4284         and update the vectorization factor according to the type of
4285         vectorization before statement analysis.
4286         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4287         pass it to vect_analyze_loop_operations.
4288         (vectorizable_reduction): Set number of copies to 1 in case of pure
4289         SLP statement.
4290         * tree-vect-stmts.c (vectorizable_conversion,
4291         vectorizable_assignment, vectorizable_shift,
4292         vectorizable_operation, vectorizable_type_demotion,
4293         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4294         Likewise.
4295         (vectorizable_condition): Move the check that it is not SLP
4296         vectorization before the number of copies check.
4297         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4298         to vectorize the loop using SLP.
4299
4300 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
4301
4302         PR middle-end/48597
4303         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4304         inline asm.
4305
4306 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
4307
4308         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4309         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4310         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4311         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4312         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4313         linux*.h headers.
4314         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4315         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4316         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4317         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4318         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4319         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4320         REG_NAME.
4321         * config/i386/linux.h (REG_NAME): Don't define.
4322         * config/i386/linux64.h (REG_NAME): Don't define.
4323         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4324         Undefine before defining.
4325
4326 2011-04-28  Jan Hubicka  <jh@suse.cz>
4327
4328         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4329         nonconstant_names array.
4330         (estimate_function_body_sizes): Build nonconstant_names array; handle
4331         BUILT_IN_CONSTANT_P.
4332
4333 2011-04-28  Richard Guenther  <rguenther@suse.de>
4334
4335         PR bootstrap/48804
4336         Revert
4337         2011-04-28  Richard Guenther  <rguenther@suse.de>
4338
4339         * tree-ssa-structalias.c (solve_constraints): Build succ graph
4340         as late as possible.
4341
4342 2011-04-28  Richard Guenther  <rguenther@suse.de>
4343
4344         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4345         (debug_constraint): Do it here.
4346         (dump_constraints): And here.
4347         (rewrite_constraints): And here.
4348         (dump_constraint_edge): Remove.
4349         (dump_constraint_graph): Rewrite to produce DOT output.
4350         (solve_constraints): Build succ graph as late as possible.
4351         Dump constraint graphs before and after solving.
4352
4353 2011-04-28  Richard Guenther  <rguenther@suse.de>
4354
4355         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4356         New function split out from ...
4357         (find_func_aliases): ... here.  Call it.
4358         (find_func_aliases_for_call): Likewise.
4359
4360 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4361
4362         * internal-fn.h (internal_fn_name_array): Declare.
4363         (internal_fn_flags_array): Likewise.
4364
4365 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
4366
4367         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
4368         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4369         Move from sse.md.
4370         (ssemodefsuffix): Remove.
4371         (ssevecmodesuffix): New mode attribute.
4372         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4373         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4374         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4375         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4376         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4377         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4378         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4379         ssemodesuffix mode attribute.
4380         (float splitters): Use ssevecmodesuffix mode attribute.
4381         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4382         (sseinsmode): Rename from avxvecmode.
4383         (avxsizesuffix): Rename from avxmodesuffix.
4384         (sseintvecmode): Rename from avxpermvecmode.
4385         (ssedoublevecmode): Rename from ssedoublesizemode.
4386         (ssehalfvecmode): Rename from avxhalfvecmode.
4387         (ssescalarmode): Rename from avxscalarmode.
4388         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4389         templates for ssemodesuffix mode attribute.
4390         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4391         mode attribute.
4392
4393         Adjust RTX patterns globally for renamed mode attributes.
4394
4395 2011-04-27  Jan Hubcika  <jh@suse.cz>
4396
4397         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4398         * ipa-inline-analysis.c: Include alloc-pool.h.
4399         (edge_predicate_pool): New.
4400         (trye_predicate_p): New function
4401         (false_predicate_p): New function.
4402         (add_clause): Sanity check that false clauses are "optimized";
4403         never add clauses to predicate that is already known to be false.
4404         (and_predicate): Use flase_predicate_p.
4405         (evaulate_predicate): Rename to ...
4406         (evaluate_predicate): ... this one; update all callers; assert
4407         that false is not listed among possible truths.
4408         (dump_predicate): Use true_predicate_p.
4409         (account_size_time): Use false_predicate_p.
4410         (evaulate_conditions_for_edge): Rename to ...
4411         (evaluate_conditions_for_edge) ... this one.
4412         (edge_set_predicate): New function.
4413         (inline_edge_duplication_hook): Duplicate edge predicates.
4414         (inline_edge_removal_hook): Free edge predicates.
4415         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4416         (dump_inline_summary): Update.
4417         (estimate_function_body_sizes): Set edge predicates.
4418         (estimate_calls_size_and_time): Handle predicates.
4419         (estimate_callee_size_and_time): Update.
4420         (remap_predicate): Add toplev_predicate; update comment.
4421         (remap_edge_predicates): New function.
4422         (inline_merge_summary): Compute toplev predicate; update.
4423         (read_predicate): New function.
4424         (read_inline_edge_summary): Use it.
4425         (inline_read_section): Likewise.
4426         (write_predicate): New function.
4427         (write_inline_edge_summary): Use it.
4428         (inline_write_summary): Likewise.
4429         (inline_free_summary): Free alloc pool and edge summary vec.
4430
4431 2011-04-27  Richard Guenther  <rguenther@suse.de>
4432
4433         * tree-ssa-structalias.c (changed_count): Remove.
4434         (changed): Use a bitmap.
4435         (unify_nodes): Adjust.
4436         (do_sd_constraint): Likewise.
4437         (do_ds_constraint): Likewise.
4438         (do_complex_constraint): Likewise.
4439         (solve_graph): Likewise.
4440
4441 2011-04-27  Jan Hubicka  <jh@suse.cz>
4442
4443         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4444
4445 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
4446
4447         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4448         (avx_vperm2f128_*_operand): Ditto.
4449         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4450         Use avx_vpermilp_parallel in insn condition.
4451         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4452         Use avx_vperm2f128_parallel in insn condition.
4453
4454 2011-04-27  Richard Guenther  <rguenther@suse.de>
4455
4456         * Makefile.in (tree-ssa-structalias.o): Remove
4457         gt-tree-ssa-structalias.h dependency.
4458         (GTFILES): Remove tree-ssa-structalias.c.
4459         * tree.c (allocate_decl_uid): New function.
4460         (make_node_stat): Use it.
4461         (copy_node_stat): Likewise.
4462         * tree.h (allocate_decl_uid): Declare.
4463         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4464         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4465         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4466         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4467         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4468         (struct heapvar_map): Likewise.
4469         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4470         heapvar_insert): Likewise.
4471         (make_heapvar_for): Rename to ...
4472         (make_heapvar): ... this.  Simplify.
4473         (fake_var_decl_obstack): New global var.
4474         (build_fake_var_decl): New function.
4475         (make_constraint_from_heapvar): Adjust.
4476         (handle_lhs_call): Likewise.
4477         (create_function_info_for): Likewise.
4478         (intra_create_variable_infos): Likewise.
4479         (init_alias_vars): Allocate fake_var_decl_obstack.
4480         (init_alias_heapvars, delete_alias_heapvars): Remove.
4481         (compute_points_to_sets): Do not call init_alias_heapvars.
4482         (ipa_pta_execute): Likewise.
4483         (delete_points_to_sets): Free fake_var_decl_obstack.
4484
4485 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4486
4487         * config/spu/divmovti4.c (union qword_UTItype): New data type.
4488         (si_from_UTItype, si_to_UTItype): New functions.
4489         (__udivmodti4): Use them to implement type-punning.
4490         * config/spu/multi3.c (union qword_TItype): New data type.
4491         (si_from_TItype, si_to_TItype): New functions.
4492         (__multi3): Use them to implement type-punning.
4493
4494 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4495
4496         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4497
4498 2011-04-27  Jan Hubicka  <jh@suse.cz>
4499
4500         * ipa-prop.c (function_insertion_hook_holder): New holder.
4501         (ipa_add_new_function): New function.
4502         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4503         Register/deregister holder.
4504
4505 2011-04-27  Richard Guenther  <rguenther@suse.de>
4506
4507         PR tree-optimization/48772
4508         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4509
4510 2011-04-27  Richard Guenther  <rguenther@suse.de>
4511
4512         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4513         TARGET_MEM_REF handling.
4514
4515 2011-04-27  Nick Clifton  <nickc@redhat.com>
4516
4517         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4518         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4519         (REG_CLASS_NAMES): Likewise.
4520         (REG_CLASS_CONTENTS): Likewise.
4521         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
4522         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
4523         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
4524         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
4525         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
4526         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4527         duplicate register classes.
4528         (frv_class_likely_spilled_p): Likewise.
4529         (frv_register_move_cost): Likewise.
4530
4531         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4532         end of the regno_reg_class array.
4533
4534 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
4535
4536         PR c/48742
4537         * c-typeck.c (build_binary_op): Don't wrap arguments if
4538         int_operands is true.
4539
4540 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
4541
4542         PR target/48767
4543         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4544         targetm.calls.must_pass_in_stack for void type.
4545
4546 2011-04-26  Jan Hubicka  <jh@suse.cz>
4547
4548         * cgraphbuild.c (build_cgraph_edges): Update call
4549         of cgraph_create_edge and cgraph_create_indirect_edge.
4550         * cgraph.c (cgraph_create_edge_including_clones,
4551         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4552         cgraph_update_edges_for_call_stmt_node): Do not take nest
4553         argument; do not initialize call_stmt_size/time.
4554         (dump_cgraph_node): Do not dump nest.
4555         (cgraph_clone_edge): Do not take loop_nest argument;
4556         do not propagate it; do not clone call_stmt_size/time.
4557         (cgraph_clone_node): Likewise.
4558         (cgraph_create_virtual_clone): Update.
4559         * cgraph.h (struct cgraph_edge): Remove
4560         call_stmt_size/call_stmt_time/loop_nest.
4561         (cgraph_create_edge, cgraph_create_indirect_edge,
4562         cgraph_create_edge_including_clones, cgraph_clone_node): Update
4563         prototype.
4564         * tree-emutls.c (gen_emutls_addr): Update.
4565         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4566         loop_nest; handle indirect calls, too.
4567         (clone_inlined_nodes): Do not care about updating inline summaries.
4568         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4569         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4570         stream call_stmt_size/call_stmt_time/loop_nest.
4571         * ipa-inline.c (edge_badness): Update.
4572         (ipa_inline): dump summaries after inlining.
4573         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4574         New.
4575         (inline_edge_summary): New function.
4576         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4577         (inline_edge_removal_hook): Handle edge summaries.
4578         (inline_edge_duplication_hook): New hook.
4579         (inline_summary_alloc): Alloc hooks.
4580         (initialize_growth_caches): Do not register removal hooks.
4581         (free_growth_caches); Do not free removal hook.
4582         (dump_inline_edge_summary): New function.
4583         (dump_inline_summary): Use it.
4584         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4585         (inline_update_callee_summaries): New function.
4586         (inline_merge_summary): Use it.
4587         (do_estimate_edge_time, do_estimate_edge_growth): Update.
4588         (read_inline_edge_summary): New function.
4589         (inline_read_section): Use it.
4590         (write_inline_edge_summary): New function.
4591         (inline_write_summary): Use it.
4592         (inline_free_summary): Free edge new holders.
4593         * tree-inline.c (copy_bb): Update.
4594
4595 2011-04-26  Jason Merrill  <jason@redhat.com>
4596
4597         * tree-eh.c (lower_try_finally_switch): Create the label along with
4598         the CASE_LABEL_EXPR.
4599
4600 2011-04-26  David S. Miller  <davem@davemloft.net>
4601             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4602
4603         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4604         * configure: Regenerate.
4605
4606 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
4607
4608         PR target/48258
4609         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4610         reduction.
4611         (VEC_reduc): New code iterator and splitters for vector reduction.
4612         (VEC_reduc_name): Ditto.
4613         (VEC_reduc_rtx): Ditto.
4614         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4615         (reduc_<VEC_reduc_name>_v4sf): Ditto.
4616
4617         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4618         support for extracting SF on VSX.
4619
4620         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4621         generating xscvspdp.
4622         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4623         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4624         double add, minimum, maximum vector reduction.
4625         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4626         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4627         optimize double vector reduction.
4628         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4629
4630 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
4631
4632         * config/fr30/fr30.h (inhibit_libc): Don't define.
4633         * config/m32r/m32r-protos.h: Correct comment.
4634         * config/v850/v850.h (GHS_default_section_names,
4635         GHS_current_section_names): Use tree, not union tree_node *.
4636
4637 2011-04-26  Xinliang David Li  <davidxl@google.com>
4638
4639         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4640         * c-family/c-opts.c (c_common_handle_option): Set
4641         warn_maybe_uninitialized.
4642         * opts.c (common_handle_option): Ditto.
4643         * common.opt:  New option.
4644         * tree-ssa.c (warn_uninit): Add one more parameter.
4645         (warn_uninitialized_var): Pass warning code.
4646         * tree-flow.h: Interface change.
4647
4648 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4649
4650         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4651         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4652         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4653
4654 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4655
4656         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4657         * config/mips/mips.opt (mmips-tfile): Remove.
4658
4659         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4660         mips-tdump reference to ...
4661         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
4662         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4663         reference by Tru64 UNIX.
4664
4665 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
4666
4667         PR debug/48768
4668         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4669         is error_mark_node, set value to NULL.
4670
4671         PR tree-optimization/48734
4672         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4673         if return value from maybe_fold_*_comparsions isn't something
4674         the code is prepared to handle.
4675
4676 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
4677
4678         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4679         mode check.
4680         (ext_QIreg_nomode_operands): Remove.
4681         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4682         (*andsi_1): Ditto.
4683         (*andhi_1): Ditto.
4684
4685 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
4686
4687         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4688
4689 2011-04-26  Richard Guenther  <rguenther@suse.de>
4690
4691         * c-typeck.c (build_unary_op): Do not expand array-refs via
4692         pointer arithmetic.  Only adjust qualifiers for function types.
4693
4694 2011-04-26  Richard Guenther  <rguenther@suse.de>
4695
4696         PR middle-end/48694
4697         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4698         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4699         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
4700         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4701
4702 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
4703
4704         * doc/extend.texi: Document __underlying_type.
4705
4706 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
4707
4708         * config/rs6000/titan.md (automata_option "progress"): Remove.
4709
4710 2011-04-25  Jeff Law  <law@redhat.com>
4711
4712         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4713
4714 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4715
4716         * system.h (ENUM_BITFIELD): Remove.
4717
4718 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
4719             Eric Botcazou  <ebotcazou@adacore.com>
4720
4721         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4722         for STORE_FLAG_VALUE==-1 case.
4723
4724 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
4725
4726         PR target/43804
4727         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4728         LEGITIMATE_PIC_OPERAND_P.
4729
4730 2011-04-24  Jan Hubicka  <jh@suse.cz>
4731
4732         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4733         WPA hack.
4734         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4735         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4736         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4737         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4738         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4739         Sanity check predicate length.
4740         (remap_predicate): Likewise; sanity check jump functions.
4741         (inline_read_section, inline_write_summary): Sanity check
4742         predicate length.
4743
4744 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
4745
4746         PR other/48748
4747         * doc/extend.texi (Type Traits): Document __is_standard_layout,
4748         __is_literal_type, and __is_trivial; update throughout about
4749         possibly cv-qualified void types.
4750
4751 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
4752
4753         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4754         testsuite and make it version agnostic.
4755
4756 2011-04-22  Jan Hubicka  <jh@suse.cz>
4757
4758         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4759
4760 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
4761
4762         PR c/48685
4763         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4764         to VOID_TYPE even around MODIFY_EXPR.
4765
4766 2011-04-22  Mike Stump  <mikestump@comcast.net>
4767
4768         * gensupport.c (read_md_rtx): Fix typo in comment.
4769         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4770         comment.
4771
4772 2011-04-22  Jan Hubicka  <jh@suse.cz>
4773
4774         * gengtype.c (open_base_files): Add ipa-inline.h include.
4775         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4776         ipa-prop.c; update all uses.
4777         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4778         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4779         merge summary of inlined function into former caller.
4780         * ipa-inline.c (max_benefit): Remove.
4781         (edge_badness): Compensate for removal of benefits.
4782         (update_caller_keys): Use
4783         reset_node_growth_cache/reset_edge_growth_cache.
4784         (update_callee_keys): Likewise.
4785         (update_all_callee_keys): Likewise.
4786         (inline_small_functions): Do not collect max_benefit; do not reset
4787         estimated_growth; call free_growth_caches and initialize_growth_caches.
4788         * ipa-inline.h (struct condition, type clause_t, struct predicate,
4789         struct size_time_entry): New structures.
4790         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4791         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4792         and estimated_growth.
4793         (edge_growth_cache_entry): New structure.
4794         (node_growth_cache, edge_growth_cache): New global vars.
4795         (estimate_growth): Turn into inline.
4796         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4797         initialize_growth_caches, free_growth_caches): Declare.
4798         (estimate_edge_growth): Rewrite.
4799         (estimate_edge_time): Implement as inline cache lookup.
4800         (reset_node_growth_cache, reset_edge_growth_cache): New inline
4801         functions.
4802         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4803         (NUM_CONDITIONS): New constant.
4804         (predicate_conditions): New enum.
4805         (IS_NOT_CONSTANT): New constant.
4806         (edge_removal_hook_holder): New var.
4807         (node_growth_cache, edge_growth_cache): New global vars.
4808         (true_predicate, single_cond_predicate, false_predicate,
4809         not_inlined_predicate, add_condition, add_clause, and_predicates,
4810         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4811         dump_clause, dump_predicate, account_size_time,
4812         evaulate_conditions_for_edge): New functions.
4813         (inline_summary_alloc): Move to heap.
4814         (inline_node_removal_hook): Clear condition and entry vectors.
4815         (inline_edge_removal_hook): New function.
4816         (initialize_growth_caches, free_growth_caches): New function.
4817         (dump_inline_summary): Update.
4818         (edge_execution_predicate): New function.
4819         (will_be_nonconstant_predicate): New function.
4820         (estimate_function_body_sizes): Compute BB and constantness predicates.
4821         (compute_inline_parameters): Do not clear estimated_growth.
4822         (estimate_edge_size_and_time): New function.
4823         (estimate_calls_size_and_time): New function.
4824         (estimate_callee_size_and_time): New function.
4825         (remap_predicate): New function.
4826         (inline_merge_summary): New function.
4827         (do_estimate_edge_time): New function based on...
4828         (estimate_edge_time): ... this one.
4829         (do_estimate_edge_growth): New function.
4830         (do_estimate_growth): New function based on....
4831         (estimate_growth): ... this one.
4832         (inline_analyze_function): Analyze after deciding on jump functions.
4833         (inline_read_section): New function.
4834         (inline_read_summary): Use it.
4835         (inline_write_summary): Write all the new data.
4836         * ipa-prop.c (ipa_get_param_decl_index): Export.
4837         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4838         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4839         Declare.
4840         (ipa_get_lattice): Move here from ipa-cp.c
4841         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4842         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4843         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4844         cgraph_edge_inlinable_p): Remove.
4845         * cgraphunit.c: Include ipainline.h
4846         (cgraph_process_new_functions): Update call of
4847         compute_inline_parameters.
4848
4849 2011-04-22  Richard Guenther  <rguenther@suse.de>
4850
4851         * tree.c (build_int_cst): Properly create canonicalized integer
4852         constants.
4853         (build_int_cst_type): Remove scary comments.
4854
4855 2011-04-22  Xinliang David Li  <davidxl@google.com>
4856
4857         * toplev.c (process_options): Enable -Werror=coverage-mismatch
4858         by default when -Wno-error is not specified.
4859         * opts-global.c (decode_options): Remove call to
4860         control_warning_options.
4861
4862 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
4863
4864         PR tree-optimization/48717
4865         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4866         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4867
4868 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
4869
4870         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
4871         definition where used.
4872
4873 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
4874
4875         PR c/48716
4876         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4877         TREE_STATIC variables declared inside of some OpenMP construct.
4878
4879 2011-04-22  Martin Jambor  <mjambor@suse.cz>
4880
4881         PR middle-end/48585
4882         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4883
4884 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
4885
4886         PR c/36750
4887         * c-typeck.c (pop_init_level): Do not warn about initializing
4888         with ` = {0}'.
4889
4890 2011-04-22  Alan Modra  <amodra@gmail.com>
4891
4892         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4893         when returning call_cookie.
4894         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4895         pointers, to functions with no more vector args than the current
4896         function, and some non-local calls for ABI_V4.
4897         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4898         sibcall_nonlocal_aix64): Combine to ..
4899         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
4900         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4901         (sibcall_value_nonlocal_aix<mode>): ..likewise.
4902         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4903         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
4904         operand.
4905         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4906         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4907         sibcall_value_symbolic_64): Delete.
4908
4909 2011-04-21  Xinliang David Li  <davidxl@google.com>
4910
4911         * cgraph.h: Remove pid.
4912         * cgraph.c: Remove pid.
4913         * value-prof.c (init_node_map): New function.
4914         (del_node_map): New function.
4915         (find_func_by_funcdef_no): New function.
4916         (gimple_ic_transform): Call new function.
4917         * cgraphunit.c (cgraph_finalize_function): Remove pid.
4918         * function.c (get_last_funcdef_no): New function.
4919         * function.h (get_last_funcdef_no): New function.
4920         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4921         to libgcov function.
4922         (tree-profiling): Call node map init and delete function.
4923
4924 2011-04-21  Ian Lance Taylor  <iant@google.com>
4925
4926         * godump.c (go_format_type): Use exported Go name for anonymous
4927         field name.
4928
4929 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4930
4931         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4932         Call builtin_function_type_list instead of builtin_function_type.
4933         (UNARY, BINARY, TRINARY, QUAD): Likewise.
4934
4935 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4936
4937         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4938         build_function_type_list instead of build_function_type.
4939         Delete variable `endlink'.
4940
4941 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4942
4943         * config/s390/s390.c (s390_init_builtins): Call
4944         build_function_type_list instead of build_function_type.
4945
4946 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4947
4948         * config/ia64/ia64.c (ia64_init_builtins): Call
4949         build_function_type_list instead of builtin_function_type.
4950
4951 2011-04-21  Easwaran Raman  <eraman@google.com>
4952
4953         * cfgexpand.c (stack_var): Remove OFFSET...
4954         (add_stack_var): ...and its reference here...
4955         (expand_stack_vars): ...and here.
4956         (stack_var_cmp): Sort by descending order of size.
4957         (partition_stack_vars): Change heuristic.
4958         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4959         (dump_stack_var_partition): Add newline after each partition.
4960
4961 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
4962             Jeff Law  <law@redhat.com>
4963
4964         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4965         * gengtype.c (matching_file_name_substitute): Likewise.
4966
4967 2011-04-21  Richard Guenther  <rguenther@suse.de>
4968
4969         PR lto/48703
4970         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4971
4972 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
4973
4974         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4975
4976 2011-04-21  Richard Guenther  <rguenther@suse.de>
4977
4978         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4979         file name.
4980
4981 2011-04-21  Richard Guenther  <rguenther@suse.de>
4982
4983         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4984         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4985         Use DECL_P, not SSA_VAR_P.
4986         (ptr_derefs_may_alias_p): Likewise.
4987         (ptr_deref_may_alias_ref_p_1): Likewise.
4988         (decl_refs_may_alias_p): Likewise.
4989         (refs_may_alias_p_1): Likewise.
4990         (ref_maybe_used_by_call_p_1): Likewise.
4991         (call_may_clobber_ref_p_1): Likewise.
4992         (indirect_ref_may_alias_decl_p): Assume indirect refrences
4993         are either MEM_REF or TARGET_MEM_REF.
4994         (indirect_refs_may_alias_p): Likewise.
4995         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4996         for MEM_EXPR of indirect calls.
4997
4998 2011-04-21  Tristan Gingold  <gingold@adacore.com>
4999
5000         * vmsdbgout.c (write_srccorr): Compute file length from the string.
5001         (dst_file_info_struct): Remove flen field.
5002         (lookup_filename): Remove code that set flen field.
5003
5004 2011-04-21  Tristan Gingold  <gingold@adacore.com>
5005
5006         * config/ia64/ia64.c (ia64_start_function): Add a guard.
5007
5008 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
5009
5010         PR target/48708
5011         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5012         vec_extract and vec_concat for non-SSE4_1 targets.
5013
5014 2011-04-21  Richard Guenther  <rguenther@suse.de>
5015
5016         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5017         return statements.
5018
5019 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
5020
5021         * config/i386/cygming.h (union tree_node, TREE): Don't define or
5022         undefine.
5023         (FILE): Don't undefine.
5024
5025 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
5026
5027         * config/alpha/alpha.c (struct machine_function): Use rtx, not
5028         struct rtx_def *.
5029         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5030         struct rtx_def *.
5031         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5032         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5033         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5034         rtx_def *.
5035         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
5036         definitions where used.
5037         * config/microblaze/microblaze.h (struct microblaze_args): Use
5038         rtx, not struct rtx_def *.
5039         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5040         rtx_def *.
5041         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5042         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5043         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5044         not struct rtx_def *.
5045         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5046         struct rtx_def *.
5047         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5048         rtx_def *.
5049         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5050
5051 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
5052
5053         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5054         operand_equal_p to compare DR_BASE_ADDRESSes.
5055         (vect_check_interleaving): Likewise.
5056
5057 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
5058
5059         PR target/46329
5060         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5061         for all Neon struct constants.
5062
5063 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
5064
5065         * target.def (legitimate_constant_p): New hook.
5066         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5067         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5068         * doc/tm.texi: Regenerate.
5069         * hooks.h (hook_bool_mode_rtx_true): Declare.
5070         * hooks.c (hook_bool_mode_rtx_true): Define.
5071         * system.h (LEGITIMATE_CONSTANT_P): Poison.
5072         * calls.c (precompute_register_parameters): Replace uses of
5073         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5074         (emit_library_call_value_1): Likewise.
5075         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5076         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5077         * ira-costs.c (scan_one_insn): Likewise.
5078         * recog.c (general_operand, immediate_operand): Likewise.
5079         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5080         * reload1.c (init_eliminable_invariants): Likewise.
5081
5082         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5083         mode argument.
5084         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5085         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5086         argument.
5087         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5088         * config/alpha/predicates.md (input_operand): Update call to
5089         alpha_legitimate_constant_p.
5090
5091         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5092         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5093         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5094         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5095         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5096         (arm_legitimate_constant_p): New functions.
5097         (arm_cannot_force_const_mem): Make static.
5098
5099         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5100
5101         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5102         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5103         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5104         instead of bfin_legitimate_constant_p.
5105         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
5106         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5107
5108         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5109
5110         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5111
5112         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5113         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5114         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5115         (frv_legitimate_constant_p): Make static.  Add a mode argument.
5116
5117         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5118         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5119         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5120
5121         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5122         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5123         * config/i386/i386.c (legitimate_constant_p): Rename to...
5124         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
5125         argument.
5126         (ix86_cannot_force_const_mem): Update accordingly.
5127         (ix86_legitimate_address_p): Likewise.
5128         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5129         * config/i386/i386.md: Update commentary.
5130
5131         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5132         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5133         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5134         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
5135
5136         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5137
5138         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5139         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5140         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5141         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
5142
5143         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5144         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5145         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5146
5147         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5148         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5149         (m32r_legitimate_constant_p): New function.
5150
5151         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5152         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5153         LEGITIMATE_CONSTANT_P.
5154         (LEGITIMATE_CONSTANT_P): Delete.
5155         * config/m68k/m68k.c (m68k_expand_prologue): Call
5156         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5157         (m68k_legitimate_constant_p): New function.
5158         * config/m68k/m68k.md: Update comments.
5159
5160         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5161         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5162         (mcore_legitimate_constant_p): New function.
5163
5164         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5165         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5166         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5167         Add a mode argument.
5168         (mep_legitimate_address): Update accordingly.
5169         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5170
5171         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5172         Delete.
5173         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5174         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5175         static.  Check OP's mode for VOIDmode.
5176         (microblaze_legitimate_constant_p): New function.
5177         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5178
5179         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5180         * config/mips/mips.c (mips_legitimate_constant_p): New function.
5181         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5182         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5183         * config/mips/predicates.md: Update comments.
5184
5185         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5186         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5187         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5188         (mmix_legitimate_constant_p): Make static, return a bool, and take
5189         a mode argument.
5190         (mmix_print_operand_address): Update accordingly.
5191
5192         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5193         Delete.
5194         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5195         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5196         static.  Add a mode argument.
5197         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5198
5199         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5200
5201         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5202         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5203         (pa_legitimate_constant_p): New function.
5204
5205         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5206
5207         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5208         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5209         (pdp11_legitimate_constant_p): New function.
5210
5211         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5212         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5213         (rs6000_legitimate_constant_p): New function.
5214
5215         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5216         (rx_legitimate_constant_p): ...this.
5217         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5218         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5219         (rx_legitimate_constant_p): ...this.
5220         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5221         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5222
5223         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5224         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5225         * config/s390/s390.c (legitimate_constant_p): Rename to...
5226         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
5227         and add a mode argument.
5228         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5229
5230         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5231
5232         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5233         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5234         (sh_legitimate_constant_p): New function.
5235
5236         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5237         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5238         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5239         (legitimate_constant_p): Rename to...
5240         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
5241         argument.
5242         (constant_address_p): Update accordingly.
5243
5244         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5245         argument and return a bool.
5246         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5247         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5248         (spu_legitimate_constant_p): Add a mode argument and return a bool.
5249         (spu_rtx_costs): Update accordingly.
5250         * config/spu/predicates.md (vec_imm_operand): Likewise.
5251
5252         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5253
5254         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5255         * config/v850/v850.c (v850_legitimate_constant_p): New function.
5256         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5257
5258         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5259         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5260         * config/vax/vax.c (legitimate_constant_p): Likewise.
5261
5262         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5263         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5264         (xtensa_legitimate_constant_p): New function.
5265
5266 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
5267
5268         * target.def (cannot_force_const_mem): Add a mode argument.
5269         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5270         * doc/tm.texi: Regenerate.
5271         * hooks.h (hook_bool_mode_rtx_false): Declare.
5272         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5273         (hook_bool_mode_const_rtx_true): Likewise.
5274         (hook_bool_mode_rtx_false): New function.
5275         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5276         to be non-VOID.  Update call to cannot_force_const_mem.
5277         (find_reloads): Update accordingly.
5278         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5279         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5280         argument.
5281         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5282         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5283         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5284         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5285         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5286         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5287         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5288         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5289         (m68k_cannot_force_const_mem): ...this new function.
5290         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5291         argument.
5292         (mips_const_insns, mips_legitimize_const_move): Update calls.
5293         (mips_secondary_reload_class): Likewise.
5294         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5295         (pa_cannot_force_const_mem): ...this new function.
5296         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5297         (rs6000_cannot_force_const_mem): ...this new function.
5298         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5299         argument.
5300         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5301         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5302         to...
5303         (xtensa_cannot_force_const_mem): ...this new function.
5304
5305 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
5306
5307         * config/mips/mips.c (mips16_build_function_stub): Call
5308         build_function_type_list instead of build_function_type.
5309         (mips16_build_call_stub): Likewise.
5310
5311 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
5312
5313         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5314         instead of build_function_type.
5315
5316 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
5317
5318         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5319         instead of build_function_type.
5320
5321 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
5322
5323         PR target/48678
5324         * config/i386/i386.md (insv): Change operand 0 constraint to
5325         "register_operand".  Change operand 1 and 2 constraint to
5326         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
5327         * config/i386/sse.md (sse4_1_pinsrb): Export.
5328         (sse2_pinsrw): Ditto.
5329         (sse4_1_pinsrd): Ditto.
5330         (sse4_1_pinsrq): Ditto.
5331         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5332         * config/i386/i386.c (ix86_expand_pinsr): New.
5333
5334 2011-04-20  Easwaran Raman  <eraman@google.com>
5335
5336         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5337         containing union type only with -fstrict-aliasing.
5338
5339 2011-04-20  Jim Meyering  <meyering@redhat.com>
5340
5341         Remove useless if-before-free tests.
5342         * calls.c (expand_call, save_area): Likewise.
5343         * cfgcleanup.c (try_forward_edges): Likewise.
5344         * collect2.c (collect_execute): Likewise.
5345         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5346         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5347         * coverage.c (coverage_checksum_string): Likewise.
5348         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5349         * cselib.c (cselib_init): Likewise.
5350         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5351         (df_set_clean_cfg): Likewise.
5352         * function.c (free_after_compilation): Likewise.
5353         * gcc.c (do_spec_1, main): Likewise.
5354         * gcov.c (create_file_names): Likewise.
5355         * gensupport.c (identify_predicable_attribute): Likewise.
5356         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5357         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5358         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5359         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5360         * ipa-pure-const.c (local_pure_const): Likewise.
5361         * ipa-reference.c (propagate): Likewise.
5362         * ira-costs.c (free_ira_costs): Likewise.
5363         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5364         * matrix-reorg.c (mat_free): Likewise.
5365         * prefix.c (get_key_value): Likewise.
5366         * profile.c (compute_value_histograms): Likewise.
5367         * reload1.c (free_reg_equiv): Likewise.
5368         * sched-deps.c (free_deps): Likewise.
5369         * sel-sched-ir.c (fence_clear): Likewise.
5370         * sese.c (set_rename, if_region_set_false_region): Likewise.
5371         * tree-data-ref.c (free_rdg): Likewise.
5372         * tree-eh.c (lower_try_finally): Likewise.
5373         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5374         * tree-ssa-live.c (delete_var_map): Likewise.
5375         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5376         * tree-ssa-pre.c (phi_trans_add): Likewise.
5377
5378 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
5379
5380         PR tree-optimization/48611
5381         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5382         beyond ERT_MUST_NOT_THROW region.
5383
5384 2011-04-20  Catherine Moore  <clm@codesourcery.com>
5385
5386         * config/mips/mips.opt (mfix-24k): New.
5387         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5388         * config/mips/mips.md (length): Increase by 4 for stores if
5389         fixing 24K errata.
5390         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5391         all noreorder if fixing 24K errata.
5392         * doc/invoke.texi: Document mfix-24k.
5393
5394 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
5395
5396         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5397         quad-word modes, reduce to 9-bit index range when above 1016 limit.
5398
5399 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
5400
5401         * config/arm/arm.c (arm_gen_constant): Move movw support ....
5402         (const_ok_for_op): ... to here.
5403
5404 2011-04-20  Kai Tietz  <ktietz@redhat.com>
5405
5406         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5407         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5408
5409 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
5410
5411         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5412
5413 2011-04-20  Richard Guenther  <rguenther@suse.de>
5414
5415         PR tree-optimization/47892
5416         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5417         are if-convertible.
5418
5419 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5420
5421         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5422
5423 2011-04-20  Tristan Gingold  <gingold@adacore.com>
5424
5425         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5426
5427 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
5428
5429         PR target/18145
5430
5431         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5432         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5433         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5434         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5435         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5436
5437         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5438         New prototype.
5439
5440         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5441         (avr_asm_named_section, avr_asm_output_aligned_common,
5442         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5443         New functions to update...
5444         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5445         (avr_asm_init_sections): Overwrite section callbacks for
5446         data_section, bss_section.
5447         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5448         from here to...
5449         (avr_file_end): ...here.
5450
5451 2011-04-20  Richard Guenther  <rguenther@suse.de>
5452
5453         PR middle-end/48695
5454         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5455         objects and types here.  Adjust for their offset before comparing.
5456
5457 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
5458
5459         * tree-vect-stmts.c (vectorizable_store): Only chain one related
5460         statement per copy.
5461
5462 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
5463
5464         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5465         (GIMPLE_H): Include $(INTERNAL_FN_H).
5466         (OBJS-common): Add internal-fn.o.
5467         (internal-fn.o): New rule.
5468         * internal-fn.def: New file.
5469         * internal-fn.h: Likewise.
5470         * internal-fn.c: Likewise.
5471         * gimple.h: Include internal-fn.h.
5472         (GF_CALL_INTERNAL): New gf_mask.
5473         (gimple_statement_call): Put fntype into a union with a new
5474         internal_fn field.
5475         (gimple_build_call_internal): Declare.
5476         (gimple_build_call_internal_vec): Likewise.
5477         (gimple_call_same_target_p): Likewise.
5478         (gimple_call_internal_p): New function.
5479         (gimple_call_internal_fn): Likewise.
5480         (gimple_call_fntype): Return null for internal calls.
5481         (gimple_call_set_fntype): Assert that the function is not internal.
5482         (gimple_call_set_fn): Likewise.
5483         (gimple_call_set_fndecl): Likewise.
5484         (gimple_call_set_internal_fn): New function.
5485         (gimple_call_addr_fndecl): Handle null functions.
5486         (gimple_call_return_type): Likewise null types.
5487         * gimple.c (gimple_build_call_internal_1): New function.
5488         (gimple_build_call_internal): Likewise.
5489         (gimple_build_call_internal_vec): Likewise.
5490         (gimple_call_same_target_p): Likewise.
5491         (gimple_call_flags): Handle calls to internal functions.
5492         (gimple_call_fnspec): New function.
5493         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5494         (gimple_has_side_effects): Handle null functions.
5495         (gimple_rhs_has_side_effects): Likewise.
5496         (gimple_call_copy_skip_args): Handle calls to internal functions.
5497         * cfgexpand.c (expand_call_stmt): Likewise.
5498         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5499         * gimple-fold.c (gimple_fold_call): Handle null functions.
5500         (gimple_fold_stmt_to_constant_1): Don't fold
5501         calls to internal functions.
5502         * gimple-low.c (gimple_check_call_args): Handle calls to internal
5503         functions.
5504         * gimple-pretty-print.c (dump_gimple_call): Likewise.
5505         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5506         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5507         (do_warn_unused_result): Likewise.
5508         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5509         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5510         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5511         the target of a call.
5512         (initialize_hash_element): Update accordingly.
5513         (hashable_expr_equal_p): Use gimple_call_same_target_p.
5514         (iterative_hash_hashable_expr): Handle calls to internal functions.
5515         (print_expr_hash_elt): Likewise.
5516         * tree-ssa-pre.c (can_value_number_call): Likewise.
5517         (eliminate): Handle null functions.
5518         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5519         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5520         (find_func_aliases): Likewise.
5521         * value-prof.c (gimple_ic_transform): Likewise.
5522         (gimple_indirect_call_to_profile): Likewise.
5523         * lto-streamer-in.c (input_gimple_stmt): Likewise.
5524         * lto-streamer-out.c (output_gimple_stmt): Likewise.
5525
5526 2011-04-19  Jan Hubicka  <jh@suse.cz>
5527
5528         * ipa-inline-transform.c (save_inline_function_body): Add comments.
5529         * ipa-inline.c (inline_small_functions): Compute summaries first,
5530         populate heap later.
5531
5532 2011-04-19  Jan Hubicka  <jh@suse.cz>
5533
5534         * cgraph.h (save_inline_function_body): Remove.
5535         * ipa-inline-transform.c: New file, broke out of...
5536         * ipa-inline.c: ... this one; Update toplevel comment.
5537         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5538         make global.
5539         (update_noncloned_frequencies): Move to ipa-inline-transform.c
5540         (cgraph_mark_inline_edge): Rename to inline_call; move to
5541         ipa-inline-transform.c.
5542         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5543         move to ipa-inline-transform.c
5544         (recursive_inlining, inline_small_functions, flatten_function,
5545         ipa_inline, inline_always_inline_functions,
5546         early_inline_small_functions): Update.
5547         (inline_transform): Move to ipa-inline-transform.c.
5548         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5549         Declare.
5550         * Makefile.in (ipa-inline-transform.o): New file.
5551         * cgraphunit.c (save_inline_function_body): Move to
5552         ipa-inline-transform.c
5553
5554 2011-04-19  DJ Delorie  <dj@redhat.com>
5555
5556         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5557         registers if we already know there aren't any.
5558         (m32c_emit_epilogue): Don't emit a barrier here.
5559         (m32c_emit_eh_epilogue): Likewise.
5560         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5561         operands at expand time.
5562         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5563         int" wchar type.
5564         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5565         duplicates.  Provide aliases instead.
5566         * config/m32c/prologue.md (eh_return): Emit a barrier here.
5567         (eh_epilogue): Add a "(return)" here as a hint to other parts of
5568         the compiler.
5569
5570 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
5571
5572         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5573         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5574         (general_or_i64_p, sparc_register_move_cost): New function.
5575
5576 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5577
5578         * doc/install.texi (Configuration, --enable-threads): Remove mach.
5579         Add lynx, mipssde.  Sort table.
5580
5581 2011-04-19  Xinliang David Li  <davidxl@google.com>
5582
5583         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5584         not negative.
5585
5586 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
5587
5588         PR target/48678
5589         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5590         is a SUBREG with non-MODE_INT mode inside of it.
5591
5592 2011-04-19  Martin Jambor  <mjambor@suse.cz>
5593
5594         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5595         also according to actual contants.
5596         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5597         (gimple_fold_call): Use it.
5598         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5599
5600 2011-04-19  Martin Jambor  <mjambor@suse.cz>
5601
5602         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5603         non-pointer assignments.
5604
5605 2011-04-19  Martin Jambor  <mjambor@suse.cz>
5606
5607         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5608         account anc_offset and otr_type from the indirect edge info.
5609         * ipa-prop.c (get_ancestor_addr_info): New function.
5610         (compute_complex_ancestor_jump_func): Assignment analysis moved to
5611         get_ancestor_addr_info, call it.
5612         (ipa_note_param_call): Do not initialize information about polymorphic
5613         calls, return the indirect call graph edge.  Remove the last
5614         parameter, adjust all callers.
5615         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5616         parameters.  Initialize polymorphic information in the indirect edge.
5617
5618 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
5619
5620         PR lto/48148
5621         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5622         the types if they have different enumeration identifiers.
5623
5624 2011-04-19  Jan Hubicka  <jh@suse.cz>
5625
5626         * cgraph.h (cgraph_optimize_for_size_p): Declare.
5627         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5628         * predict.c (cgraph_optimize_for_size_p): Break out from ...
5629         (optimize_function_for_size_p) ... here.
5630
5631 2011-04-19  Richard Guenther  <rguenther@suse.de>
5632
5633         PR lto/48207
5634         * tree.c (free_lang_data): Do not reset the decl-assembler-name
5635         langhook.
5636
5637 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
5638
5639         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5640         if DECL_NO_INLINE_WARNING_P is set on the function.
5641
5642 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
5643
5644         PR fortran/47976
5645         * reload1.c (inc_for_reload): Return void. All callers changed.
5646         (emit_input_reload_insns): Don't try to delete previous output
5647         reloads to a register, or record spill_reg_store for autoincs.
5648
5649 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
5650
5651         * gengtype.h: Updated copyright year.
5652         (struct input_file_st): Add inpisplugin field.
5653         (type_fileloc): New function.
5654         * gengtype.c
5655         (write_typed_struct_alloc_def): Add gcc_assert.
5656         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5657         (write_typed_alloc_defns): Don't output for plugin files.
5658         (input_file_by_name): Clear inpisplugin field.
5659         (main): Set inpisplugin field for plugin files.
5660
5661 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
5662
5663         * gengtype-state.c (string_eq): New.
5664         (read_state): Use string_eq instead of strcmp when creating the
5665         state_ident_tab.
5666
5667 2011-04-19  Wei Guozhi  <carrot@google.com>
5668
5669         PR target/47855
5670         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5671         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5672         linkage.
5673         * config/arm/constraints.md (Uu): New constraint.
5674         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5675
5676 2011-04-19  Tristan Gingold  <gingold@adacore.com>
5677
5678         * config.gcc (-*-*-*vms): Added.
5679         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5680         definitions moved.
5681         * config/vms/vms-ld.c: New file.
5682         * config/vms/vms-ar.c: New file.
5683         * config/vms/t-vmsnative: New file.
5684
5685 2011-04-18  Xinliang David Li  <davidxl@google.com>
5686
5687         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5688
5689 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
5690
5691         PR middle-end/48661
5692         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5693         if TREE_TYPE (v) is non-NULL.
5694
5695         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5696         gimple_get_virt_mehtod_for_binfo.
5697         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5698         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5699         callers.
5700         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5701
5702 2011-04-18  Michael Matz  <matz@suse.de>
5703             Steve Ellcey  <sje@cup.hp.com>
5704
5705         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5706         use its mode as source mode if it isn't VOIDmode.
5707
5708 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
5709
5710         * doc/passes.texi: Fill crossref nodes.
5711
5712 2011-04-18  Jim Meyering  <meyering@redhat.com>
5713
5714         Fix doubled-word typos in comments and strings
5715         * config/alpha/vms-unwind.h: s/for for/for/
5716         * config/arm/unwind-arm.h: Likewise.
5717         * config/microblaze/microblaze.c: Likewise.
5718         * config/sh/constraints.md: s/in in/in/
5719         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5720
5721 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
5722
5723         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5724         (AVX_FLOAT_MODE_P): Ditto.
5725         (AVX128_VEC_FLOAT_MODE_P): Ditto.
5726         (AVX256_VEC_FLOAT_MODE_P): Ditto.
5727         (AVX_VEC_FLOAT_MODE_P): Ditto.
5728         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5729         (UNSPEC_MASKSTORE): Ditto.
5730         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5731         Merge from <sse>_movmsk<ssemodesuffix> and
5732         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
5733         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
5734         iterator.
5735         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5736         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5737         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5738
5739 2011-04-18  Jan Hubicka  <jh@suse.cz>
5740
5741         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5742
5743         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5744         (want_inline_function_called_once_p): Break out the logic from
5745         ipa_inline.
5746         (edge_badness): Ensure that profile is not misupdated.
5747         (lookup_recursive_calls): Prioritize by call frequencies.
5748         (inline_small_functions): Move program size estimates here;
5749         actually process whole queue even when unit growth has been
5750         met. (to properly compute inline_failed reasons and for the
5751         case unit size decrease.) Revisit comments on recursive inlining.
5752         (ipa_inline): Remove unit summary code; first inline hot calls
5753         of functions called once, cold calls next.
5754         (order, nnodes): Remove unused variables.
5755         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5756         (GTFILES): Remove ipa-inline.c
5757         * sel-sched.c (fill_insns): Silence uninitialized var warning.
5758
5759 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5760
5761         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5762
5763 2011-04-18  Jie Zhang  <jie@codesourcery.com>
5764             Richard Earnshaw  <rearnsha@arm.com>
5765
5766         * arm.c (neon_builtin_type_bits): Remove.
5767         (typedef enum neon_builtin_mode): New.
5768         (T_MAX): Don't define.
5769         (typedef enum neon_builtin_datum): Remove bits, codes[],
5770         num_vars and base_fcode.  Add mode, code and fcode.
5771         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5772         VAR10): Change accordingly.
5773         (neon_builtin_data[]): Change accordingly
5774         (arm_init_neon_builtins): Change accordingly.
5775         (neon_builtin_compare): Remove.
5776         (locate_neon_builtin_icode): Remove.
5777         (arm_expand_neon_builtin): Change accordingly.
5778
5779         * arm.h (enum arm_builtins): Move to ...
5780         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5781
5782         * arm.c (arm_builtin_decl): Declare.
5783         (TARGET_BUILTIN_DECL): Define.
5784         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5785         (arm_builtin_decls[]): New.
5786         (arm_init_neon_builtins): Store builtin declarations in
5787         arm_builtin_decls[].
5788         (arm_init_tls_builtins): Likewise.
5789         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
5790         (arm_builtin_decl): New.
5791
5792 2011-04-18  Richard Guenther  <rguenther@suse.de>
5793
5794         * tree.c (upper_bound_in_type): Build properly canonicalized
5795         INTEGER_CSTs.
5796         (lower_bound_in_type): Likewise.
5797
5798 2011-04-18  Richard Guenther  <rguenther@suse.de>
5799
5800         * gimple.h (gimple_call_addr_fndecl): New function.
5801         (gimple_call_fndecl): Use it.
5802         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5803         for direct calls.
5804         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5805         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5806
5807 2011-04-18  Richard Guenther  <rguenther@suse.de>
5808
5809         PR middle-end/48650
5810         * tree.c (build_string): STRING_CST is now derived from tree_typed.
5811
5812 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5813
5814         PR lto/48492
5815         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5816         DECL_IN_CONSTANT_POOL without RTL.
5817
5818 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
5819             Ira Rosen  <ira.rosen@linaro.org>
5820
5821         PR target/48252
5822         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5823         to match neon_vzip/vuzp/vtrn_internal.
5824         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5825         outputs explicitly dependent on both inputs.
5826         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5827
5828 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
5829
5830         PR tree-optimization/48616
5831         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5832         whether the shift is by scalar or vector based on whether all SLP
5833         scalar stmts have the same rhs.
5834
5835 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
5836
5837         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5838         memory operands.
5839
5840 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
5841
5842         PR target/43700
5843         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5844         registers.
5845
5846 2011-04-17  Jan Hubicka  <jh@suse.cz>
5847
5848         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5849         * cgrpahunit.c (cgraph_finalize_function): Do not set
5850         finalized_by_frontend.
5851         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5852         finalized_by_frontend.
5853
5854 2011-04-17  Jan Hubicka  <jh@suse.cz>
5855
5856         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5857         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5858         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5859         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5860         method.
5861         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5862         gimple-fold.c
5863         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5864
5865 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
5866
5867         PR lto/48538
5868         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5869         is non-null before accessing it.
5870         (input_cgraph): Remove trailing spaces.
5871
5872 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5873
5874         * params.def (sms-min-sc): New param flag.
5875         * modulo-sched.c (sms_schedule): Use it.
5876         * doc/invoke.texi (sms-min-sc): Document it.
5877
5878 2011-04-17  Jan Hubicka  <jh@suse.cz>
5879
5880         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5881         present, also set gimple_call_set_cannot_inline.
5882         * ipa-inline.c: Update toplevel comment.
5883         (MAX_TIME): Remove.
5884         (cgraph_clone_inlined_nodes): Fix linebreaks.
5885         (cgraph_check_inline_limits): Restructure to ...
5886         (caller_growth_limits): ... this one; be more tolerant
5887         on growth in nested inline chains; add explanatory comment;
5888         fix stack accounting thinko introduced by previous patch.
5889         (cgraph_default_inline_p): Remove.
5890         (report_inline_failed_reason): New function.
5891         (can_inline_edge_p): New function.
5892         (can_early_inline_edge_p): New function.
5893         (leaf_node_p): Move upwards in file.
5894         (want_early_inline_function_p): New function.
5895         (want_inline_small_function_p): New function.
5896         (want_inline_self_recursive_call_p): New function.
5897         (cgraph_edge_badness): Rename to ...
5898         (edge_badness) ... this one; fix linebreaks.
5899         (update_edge_key): Update call of edge_baddness; add
5900         detailed dump about queue updates.
5901         (update_caller_keys): Use can_inline_edge_p and
5902         want_inline_small_function_p.
5903         (cgraph_decide_recursive_inlining): Rename to...
5904         (recursive_inlining): Use can_inline_edge_p and
5905         want_inline_self_recursive_call_p; simplify and remove no longer
5906         valid FIXME.
5907         (cgraph_set_inline_failed): Remove.
5908         (add_new_edges_to_heap): Use can_inline_edge_p and
5909         want_inline_small_function_p.
5910         (cgraph_decide_inlining_of_small_functions): Rename to ...
5911         (inline_small_functions): ... this one; cleanup; use
5912         can/want predicates; cleanup debug ouput; work edges till fibheap
5913         is exhausted and do not stop once unit growth is reached; remove
5914         later loop processing remaining edges.
5915         (cgraph_flatten): Rename to ...
5916         (flatten_function): ... this one; use can_inline_edge_p
5917         and can_early_inline_edge_p predicates.
5918         (cgraph_decide_inlining): Rename to ...
5919         (ipa_inline): ... this one; remove unreachable nodes before
5920         inlining functions called once; simplify the pass.
5921         (cgraph_perform_always_inlining): Rename to ...
5922         (inline_always_inline_functions): ... this one; use
5923         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5924         (cgraph_decide_inlining_incrementally): Rename to ...
5925         (early_inline_small_functions): ... this one; simplify
5926         using new predicates; cleanup; make dumps prettier.
5927         (cgraph_early_inlining): Rename to ...
5928         (early_inliner): newer inline regular functions into always-inlines;
5929         fix updating of call stmt summaries.
5930         (pass_early_inline): Update for new names.
5931         (inline_transform): Fix formating.
5932         (gate_cgraph_decide_inlining): Rename to ...
5933         (pass_ipa_inline): ... this one.
5934         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5935         * ipa-inline-analysis.c (dump_inline_summary): Update.
5936         (compute_inline_parameters): Do not compute disregard_inline_limits;
5937         look for mismatching arguments.
5938         (estimate_growth): Fix handlig of non-trivial self recursion.
5939         (inline_read_summary): Do not read info->disregard_inline_limits.
5940         (inline_write_summary): Do not write info->disregard_inline_limits.
5941         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5942         and move all checks into can_inline_edge_p predicate; re-enable code
5943         comparing optimization levels.
5944         (expand_call_inline): Do not test inline_forbidden_into_p.
5945         * Makefile.in (ipa-inline.o): Update arguments.
5946
5947 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5948
5949         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5950
5951 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5952
5953         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5954
5955 2011-04-17  Michael Matz  <matz@suse.de>
5956
5957         PR tree-optimization/48622
5958         PR lto/48645
5959         * ipa-inline-analysis.c (inline_read_summary): Read size/time
5960         in same order as they're written.
5961
5962 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5963
5964         * config/pa/predicates.md: Reorganize and simplify predicates.
5965         Eliminate duplicate code checks.
5966         (arith_operand): Rename to arith14_operand
5967         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5968         * config/pa/pa.md: Use renamed operands.
5969         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5970         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5971         arith11_operand, adddi3_operand, indexed_memory_operand,
5972         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5973         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5974         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5975         move_dest_operand, move_src_operand, prefetch_cc_operand,
5976         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5977         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5978         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5979         div_operand, int5_operand, movb_comparison_operator,
5980         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5981         arith_double_operand, ireg_operand, lhs_lshift_operand,
5982         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5983         integer_store_memory_operand): Likewise.
5984         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5985         (integer_store_memory_operand, read_only_operand,
5986         function_label_operand, borx_reg_operand,
5987         non_hard_reg_operand): Likewise.
5988         (eq_neq_comparison_operator): Delete unused operator.
5989         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5990         function_label_operand.
5991         (emit_move_sequence): Likewise.
5992
5993 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5994
5995         * config/i386/sse.md (sseunpackmode): New mode attribute.
5996         (ssepackmode): Ditto.
5997         (vec_pack_trunc_<mode>): Macroize expander from
5998         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5999         (vec_unpacks_lo_<mode>): Macroize expander from
6000         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6001         (vec_unpacks_hi_<mode>): Macroize expander from
6002         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6003         (vec_unpacku_lo_<mode>): Macroize expander from
6004         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6005         (vec_unpacku_hi_<mode>): Macroize expander from
6006         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6007         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6008         ix86_expand_sse4_unpack.
6009         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6010
6011 2011-04-16  Jan Hubicka  <jh@suse.cz>
6012
6013         * cgraphbuild.c: Include ipa-inline.h.
6014         (reset_inline_failed): Use initialize_inline_failed.
6015         * cgraph.c: Include ipa-inline.h.
6016         (cgraph_create_node_1): Do not initialize estimated_growth.
6017         (initialize_inline_failed): More to ipa-inline-analysis.c
6018         (dump_cgraph_node): Do not dump inline flags.
6019         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6020         and disregard_inline_limits flags.
6021         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6022         time, size, estimated_growth.
6023         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6024         Update.
6025         * cgraphunit.c (cgraph_decide_is_function_needed): Use
6026         DECL_DISREGARD_INLINE_LIMITS.
6027         (cgraph_analyze_function): Do not initialize
6028         node->local.disregard_inline_limits.
6029         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6030         inlinable, versionable and disregard_inline_limits.
6031         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6032         cgraph_check_inline_limits, cgraph_default_inline_p,
6033         cgraph_edge_badness, update_caller_keys, update_callee_keys,
6034         add_new_edges_to_heap): Update.
6035         (cgraph_decide_inlining_of_small_function): Update; set
6036         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6037         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6038         cgraph_decide_inlining_incrementally): Update.
6039         * ipa-inline.h (inline_summary): Add inlinable, versionable,
6040         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6041         time, size and estimated_growth parameters.
6042         (estimate_edge_growth): Update.
6043         (initialize_inline_failed): Declare.
6044         * ipa-split.c: Include ipa-inline.h
6045         (execute_split_functions): Update.
6046         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6047         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6048         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6049         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6050         estimated_growth to INT_MIN.
6051         (inline_node_duplication_hook): Likewise.
6052         (dump_inline_summary): Dump new fields.
6053         (compute_inline_parameters): Update.
6054         (estimate_edge_time, estimate_time_after_inlining,
6055         estimate_size_after_inlining, estimate_growth, inline_read_summary,
6056         inline_write_summary):
6057         (initialize_inline_failed): Move here from cgraph.c.
6058         * tree-sra.c: Include ipa-inline.h.
6059         (ipa_sra_preliminary_function_checks): Update.
6060         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6061         ipa-inline.h.
6062
6063 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
6064
6065         * config/i386/sse.md (V16): New mode iterator.
6066         (VI1, VI8): Ditto.
6067         (AVXMODEQI, AVXMODEDI): Remove.
6068         (sse2, sse3): New mode attribute.
6069         (mov<mode>): Use V16 mode iterator.
6070         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6071         (push<mode>1): Use V16 mode iterator.
6072         (movmisalign<mode>): Ditto.
6073         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6074         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6075         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6076         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6077         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6078         avx_movdqu<avxmodesuffix>.
6079         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6080         *avx_movdqu<avxmodesuffix>.
6081         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6082         avx_lddqu<avxmodesuffix>.
6083         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6084         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6085         avx_movnt<AVXMODEDI:mode>.
6086         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6087         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6088
6089 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
6090
6091         PR target/48629
6092         * haifa-sched.c (prune_ready_list, schedule_block): Use
6093         sched_pressure_p rather than flag_sched_pressure.
6094
6095 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
6096
6097         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6098         cgraph_get_node instead of cgraph_get_create_node.
6099
6100 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
6101
6102         * cfgexpand.c (expand_debug_expr): Use
6103         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6104
6105 2011-04-15  Michael Matz  <matz@suse.de>
6106
6107         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6108         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6109         * function.c (gimplify_parameters): Ditto.
6110         * gimplify.c (gimplify_vla_decl): Ditto.
6111
6112         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6113         (gimple_call_set_alloca_for_var): New inline function.
6114         (gimple_call_alloca_for_var_p): Ditto.
6115         * gimple.c (gimple_build_call_from_tree): Remember
6116         CALL_ALLOCA_FOR_VAR_P state.
6117         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6118
6119         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6120         calls if they were for VLA objects.
6121
6122 2011-04-15  Martin Jambor  <mjambor@suse.cz>
6123
6124         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6125         of ADR_EXPRs.
6126
6127 2011-04-15  Martin Jambor  <mjambor@suse.cz>
6128
6129         PR middle-end/48601
6130         * tree-emutls.c (lower_emutls_function_body): Call
6131         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
6132         result is non-NULL.
6133
6134 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
6135
6136         * c-decl.c (detect_field_duplicates): Call
6137         objc_detect_field_duplicates instead of objc_get_interface_ivars.
6138
6139 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
6140
6141         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6142         * gimple.c (gimple_asm_clobbers_memory_p): Define.
6143         * ipa-pure-const.c (check_stmt): Call it.
6144         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6145
6146 2011-04-15  Richard Guenther  <rguenther@suse.de>
6147
6148         PR tree-optimization/48290
6149         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6150         Properly decide inhibiting propagation based on the valueized
6151         operand.  Do loop-closed SSA form preserving here ...
6152         (init_copy_prop): ... not here.
6153
6154 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
6155
6156         PR target/48612
6157         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6158         (*ieee_smax<mode>3): Likewise.
6159
6160 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6161
6162         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6163         Replace match_operand with match_dup for the third operand in
6164         these expanders.
6165
6166 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
6167
6168         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6169         to track processing of conditionals.  Update all callers.
6170         (try_combine, simplify_if_then_else): Update.
6171
6172 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
6173
6174         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6175         -fsched-pressure.
6176
6177 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
6178
6179         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6180         instead of match_operand for operand 3.
6181
6182 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
6183
6184         * recog.h (insn_operand_data): Add an "allows_mem" field.
6185         * genoutput.c (output_operand_data): Initialize it.
6186         * optabs.c (maybe_legitimize_operand_same_code): New function.
6187         (maybe_legitimize_operand): Use it when matching the original
6188         op->value.
6189
6190 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6191
6192         * gimplify.c: Fix issues in comments throughout.
6193         (voidify_wrapper_expr): Fix long line.
6194         (build_stack_save_restore): Likewise.
6195         (gimplify_loop_expr): Likewise.
6196         (gimplify_compound_lval): Likewise.
6197         (gimplify_init_ctor_eval): Likewise.
6198         (gimplify_modify_expr_rhs): Likewise.
6199         (omp_notice_threadprivate_variable): Likewise.
6200
6201 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6202
6203         * cfgexpand.c (expand_call_stmt): Convert the function type to the
6204         original one if this is not a builtin function.
6205
6206 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
6207
6208         PR target/48605
6209         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6210         offset it as needed based on top 2 bits in operands[3], change
6211         MEM mode to SFmode and mask those 2 bits away from operands[3].
6212
6213 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
6214
6215         * c-parser.c (c_parser_objc_protocol_definition): Updated for
6216         change from objc_declare_protocols() to objc_declare_protocol().
6217
6218 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
6219
6220         * config/i386/sse.md (sse4_1): New mode attribute.
6221         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6222         avx_blend<ssemodesuffix><avxmodesuffix> and
6223         sse4_1_blend<ssemodesuffix> using VF mode iterator.
6224         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6225         avx_blendv<ssemodesuffix><avxmodesuffix> and
6226         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6227         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6228         avx_dp<ssemodesuffix><avxmodesuffix> and
6229         sse4_1_dp<ssemodesuffix> using VF mode iterator.
6230         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6231         (sse4_1_packusdw): Merge with *avx_packusdw.
6232         (sse4_1_pblendvb): Merge with *avx_pblendvb.
6233         (sse4_1_pblendw): Merge with *avx_pblendw.
6234         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6235         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6236         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6237         VF mode iterator.
6238         (sse4_1_round<ssescalarmodesuffix>): Merge with
6239         *avx_round<ssescalarmodesuffix>.
6240         (aesenc): Merge with *avx_aesenc.
6241         (aesenclast): Merge with *avx_aesenclast.
6242         (aesdec): Merge with *avx_aesdec.
6243         (aesdeclast): Merge with *avx_aesdeclast.
6244         (pclmulqdq): Merge with *pclmulqdq.
6245         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6246         New predicate.
6247         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6248
6249 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
6250
6251         PR middle-end/48608
6252         * cfgexpand.c (get_decl_align_unit): Renamed to ...
6253         (align_local_variable): This.  Update DECL_ALIGN.
6254         (add_stack_var): Updated.
6255         (expand_one_stack_var): Likewise.
6256
6257 2011-04-14  Richard Guenther  <rguenther@suse.de>
6258
6259         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6260         Remove.
6261         (dse_initialize_block_local_data, dse_leave_block,
6262         record_voperand_set, get_stmt_uid): Likewise.
6263         (dse_possible_dead_store_p): Allow any kind of killing stmt.
6264         (dse_optimize_stmt): Remove voperand set handling code.
6265         Simplify and improve to handle any kind of killing stmt.
6266         (dse_record_phi): Remove.
6267         (dse_enter_block): Simplify.
6268         (tree_ssa_dse): Likewise.
6269         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6270
6271 2011-04-14  Jan Hubicka  <jh@suse.cz>
6272
6273         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6274         * cgraph.h (struct inline_summary): Move to ipa-inline.h
6275         (cgraph_local_info): Remove inline_summary.
6276         * ipa-cp.c: Include ipa-inline.h.
6277         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6278         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6279         accesor.
6280         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6281         (input_overwrite_node): Do not set inline summary.
6282         (input_node): Do not stream inline summary.
6283         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6284         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6285         growth; we do not have inline parameters computed for that anyway.
6286         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6287         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6288         (inline_summary_t): New type and VECtor.
6289         (debug_inline_summary, dump_inline_summaries): Declare.
6290         (inline_summary): Use VOCtor.
6291         (estimate_edge_growth): Kill hack computing call stmt size directly.
6292         * lto-section-in.c (lto_section_name): Add inline section.
6293         * ipa-inline-analysis.c: Include lto-streamer.h
6294         (node_removal_hook_holder, node_duplication_hook_holder): New holders
6295         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6296         (inline_summary_vec): Define.
6297         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6298         dump_inline_summaries): New functions.
6299         (estimate_function_body_sizes): Properly compute size/time of outgoing
6300         calls.
6301         (compute_inline_parameters): Alloc inline_summary; do not compute
6302         size/time of incomming calls.
6303         (estimate_edge_time): Avoid missing time summary hack.
6304         (inline_read_summary): Read inline summary info.
6305         (inline_write_summary): Write inline summary info.
6306         (inline_free_summary): Free all hooks and inline summary vector.
6307         * lto-streamer.h: Add LTO_section_inline_summary section.
6308         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6309         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6310
6311 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
6312
6313         * tree-vectorizer.h (vect_strided_store_supported): Add a
6314         HOST_WIDE_INT argument.
6315         (vect_strided_load_supported): Likewise.
6316         (vect_permute_store_chain): Return void.
6317         (vect_transform_strided_load): Likewise.
6318         (vect_permute_load_chain): Delete.
6319         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6320         count argument.  Check that the count is a power of two.
6321         (vect_strided_load_supported): Likewise.
6322         (vect_permute_store_chain): Return void.  Update after above changes.
6323         Assert that the access is supported.
6324         (vect_permute_load_chain): Likewise.
6325         (vect_transform_strided_load): Return void.
6326         * tree-vect-stmts.c (vectorizable_store): Update calls after
6327         above interface changes.
6328         (vectorizable_load): Likewise.
6329         (vect_analyze_stmt): Don't check for strided powers of two here.
6330
6331 2011-04-14  Richard Guenther  <rguenther@suse.de>
6332
6333         PR tree-optimization/48590
6334         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6335         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6336         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6337         BUILT_IN_STACK_SAVE.
6338         * tree-ssa-dce.c (propagate_necessity): Handle
6339         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6340
6341 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
6342
6343         * c-parser.c (c_parser_objc_class_declaration): Updated call to
6344         objc_declare_class.
6345
6346 2011-04-14  Richard Guenther  <rguenther@suse.de>
6347
6348         * tree.h (get_object_alignment_1): Declare.
6349         * builtins.c (get_object_alignment_1): Split out worker from ...
6350         (get_object_alignment): ... here.
6351         * fold-const.c (get_pointer_modulus_and_residue): Use
6352         get_object_alignment_1.
6353
6354 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
6355
6356         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6357         type parameter.
6358         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6359         parameter.  Generalise code to handle arrays as well as vectors.
6360         (vect_setup_realignment): Update accordingly.
6361         * tree-vect-stmts.c (vectorizable_store): Likewise.
6362         (vectorizable_load): Likewise.
6363
6364 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
6365
6366         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6367         within the per-copy loop.
6368
6369 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
6370
6371         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6372         in the dump file.
6373
6374 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
6375
6376         * doc/options.texi (Negative): Explicitly mention that the
6377         Negative chain must be circular.
6378
6379 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
6380
6381         * function.h (block_chainon): Declare.
6382         * function.c (block_chainon): Define.
6383
6384 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
6385             Eric Weddington  <eric.weddington@atmel.com>
6386             Georg-Johann Lay  <avr@gjlay.de>
6387
6388         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6389         New Includes
6390         (avr_init_builtins, avr_expand_builtin,
6391         avr_expand_delay_cycles, avr_expand_unop_builtin,
6392         avr_expand_binop_builtin ): New functions.
6393         (avr_builtin_id): New enum
6394         (struct avr_builtin_description): New struct
6395         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6396         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6397
6398         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6399         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6400         UNSPECV_DELAY_CYCLES): new enumeration values
6401         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6402         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6403         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6404         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6405         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6406         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6407         "fmulsu"): New insns
6408
6409         * config/avr/avr-c.c: fix line endings
6410         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6411         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6412         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6413         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6414         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6415
6416         * doc/extend.texi (AVR Built-in Functions): New node
6417         (Target Builtins): Add documentation of AVR
6418         built-in functions.
6419
6420 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
6421
6422         PR target/44643
6423         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6424         alone. Error if non-const data has attribute progmem.
6425
6426 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
6427
6428         * tree.h (struct tree_constructor): Include tree_typed instead of
6429         tree_common.
6430         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6431         TS_TYPED instead of TS_COMMON.
6432
6433 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
6434
6435         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6436         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6437         (sse2_psadbw): Merge with *avx_psadbw.
6438         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6439         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6440         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6441         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6442         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6443         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6444         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6445         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6446         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6447         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6448         (ssse3_palignrti): Merge with *avx_palignrti.
6449
6450 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
6451
6452         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6453         * tree-ssanames.c (fini_ssanames): VEC_free it.
6454         (make_ssa_name_fn): Update for VECness of free_ssanames.
6455         (release_ssa_name, release_dead_ssa_names): Likewise.
6456         * tree.h (struct tree_ssa_name): Include tree_typed instead of
6457         tree_common.
6458         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6459         TS_TYPED instead of TS_COMMON.
6460
6461 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
6462
6463         * postreload-gcse.c (gcse_after_reload_main): Add calls to
6464         statistics_counter_event.
6465         * tree-ssa-copyrename.c (stats): Define.
6466         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
6467         statistics_counter_event.
6468         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6469         (bswap_stats, widen_mul_stats): Define.
6470         (insert_reciprocals): Increment rdivs_inserted.
6471         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
6472         rfuncs_inserted.  Add calls to statistics_counter_event.
6473         (execute_cse_sincos_1): Increment inserted.
6474         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
6475         statistics_counter_event.
6476         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
6477         of bswap_stats.  Add calls to statistics_counter_event.
6478         (convert_mult_to_widen): Increment widen_mults_inserted.
6479         (convert_plusminus_to_widen): Increment maccs_inserted.
6480         (convert_mult_to_fma): Increment fmas_inserted.
6481         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
6482         calls to statistics_counter_event.
6483
6484 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
6485
6486         PR rtl-optimization/48455
6487         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6488         `temp_costs->mem_cost'.
6489
6490 2011-04-13  Jan Hubicka  <jh@suse.cz>
6491
6492         * ipa-inline.h: New file.
6493         * ipa-inline-analysis.c: New file. Broken out of ...
6494         * ipa-inline.c: ... this file; update toplevel comment;
6495         include ipa-inline.h
6496         (inline_summary): Move to ipa-inline.h
6497         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6498         ipa-inline-analysis.c.
6499         (cgraph_estimate_time_after_inlining): Rename to
6500         estiamte_time_after_inlining; move to ipa-inline-analysis.c
6501         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6502         to estimate_edge_growth.
6503         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6504         rename to estimate_size_after_inlining.
6505         (cgraph_mark_inline_edge): Update for new naming convention.
6506         (cgraph_check_inline_limits): Likewise.
6507         (cgraph_edge_badness): Likewise.
6508         (cgraph_decide_recursive_inlining): Likewise.
6509         (cgraph_decide_inlining_of_small_functions): Likewise.
6510         (cgraph_decide_inlining_incrementally): Likewise.
6511         (cgraph_estimate_growth): Rename to estimate_growth; move to
6512         ipa-inline-analysis.c.
6513         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6514         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6515         (compute_inline_parameters): Likewise.
6516         (compute_inline_parameters_for_current): Likewise.
6517         (pass_inline_parameters): Likewise.
6518         (inline_indirect_intraprocedural_analysis): Likewise.
6519         (analyze_function): Rename to inline_analyze_function; likewise.
6520         (add_new_function): Move to ipa-inline-analysis.c.
6521         (inline_generate_summary): Likewise.
6522         (inline_read_summary): Likewise.
6523         (inline_write_summary): Likewise.
6524         * Makefile.in (ipa-inline-analysis.c): New file.
6525
6526 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6527
6528         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6529         * configure: Regenerate.
6530
6531 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
6532
6533         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6534         instead of tree_common.
6535         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6536         Likewise.
6537         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6538         TS_TYPED rather than TS_COMMON.
6539         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6540
6541 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
6542
6543         PR target/45263
6544         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6545         r20 around calls of __tablejump_elpm__
6546
6547 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
6548
6549         PR middle-end/48591
6550         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6551         NULL.
6552         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6553
6554 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
6555
6556         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6557         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6558         (cfi_vec): New typedef.
6559         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6560         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6561         (cie_cfi_vec): New static variable.
6562         (cie_cfi_head): Delete.
6563         (add_cfi): Accept a cfi_vec * as first argument. All callers and
6564         declaration changed. Use vector rather than list operations.
6565         (new_cfi): Don't initialize the dw_cfi_next field.
6566         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6567         rather than list operations.
6568         (lookup_cfa): Use vector rather than list operations.
6569         (output_cfis): New argument upto. Accept a cfi_vec rather than
6570         a dw_cfi_ref list head as argument. All callers changed.
6571         Iterate over the vector using upto as a maximum index.
6572         (output_all_cfis): New static function.
6573         (output_fde): Use vector rather than list operations. Use the
6574         new upto argument for output_cfis rather than manipulating a
6575         list.
6576         (dwarf2out_begin_prologue): Change initializations to match
6577         new struct members.
6578         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6579         from the vector length rather than searching for the end of a list.
6580         Use output_all_cfis.
6581         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6582
6583 2011-04-13  Nick Clifton  <nickc@redhat.com>
6584
6585         * config/rx/rx.md (movmemsi): Do not use this pattern when
6586         volatile pointers are involved.
6587
6588 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
6589
6590         * config/i386/sse.md (pinsrbits): Remove.
6591         (sse2_packsswb): Merge with *avx_packsswb.
6592         (sse2_packssdw): Merge with *avx_packssdw.
6593         (sse2_packuswb): Merge with *avx_packuswb.
6594         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6595         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6596         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6597         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6598         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6599         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6600         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6601         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6602         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6603         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6604         (sse2_loadld): Merge with *avx_loadld.
6605         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6606         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6607         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6608         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6609         (vec_concatv2di): Merge with *vec_concatv2di_avx.
6610
6611 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
6612
6613         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6614         calling TREE_CHAIN.
6615         * print-tree.c (print_node): Likewise.
6616         * tree-inline.c (copy_tree_r): Likewise.
6617         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6618         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6619         instead of TS_COMMON.
6620         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6621         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6622         (copy_node_stat): Zero TREE_CHAIN only if necessary.
6623         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6624         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6625         ...and these...
6626         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6627         * tree.h: ...here.
6628         (TREE_CHAIN): Check for a TS_COMMON structure.
6629         (TREE_TYPE): Check for a TS_TYPED structure.
6630
6631 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
6632
6633         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6634         cgraph_get_create_node instead of cgraph_node.
6635
6636 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
6637
6638         * c-parser.c (c_parser_initelt): Updated call to
6639         objc_build_message_expr.
6640         (c_parser_postfix_expression): Likewise.
6641
6642 2011-04-12  Kai Tietz  <ktietz@redhat.com>
6643
6644         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6645         MASK_MS_BITFIELD_LAYOUT bit.
6646
6647 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
6648
6649         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6650         assert it is always true.
6651         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6652         moves.
6653
6654 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
6655
6656         * c-parser.c (c_lex_one_token): Rewritten conditional used when
6657         compiling Objective-C to be more efficient.
6658
6659 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
6660
6661         * opts-common.c (decode_cmdline_options_to_array): Remove variable
6662         argv_copied.
6663
6664 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6665
6666         * recog.h, genoutput.c, optabs.c: Revert last patch.
6667
6668 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6669
6670         PR target/48090
6671         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6672
6673 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6674
6675         * recog.h (insn_operand_data): Add an "allows_mem" field.
6676         * genoutput.c (output_operand_data): Initialize it.
6677         * optabs.c (maybe_legitimize_operand_same_code): New function.
6678         (maybe_legitimize_operand): Use it when matching the original
6679         op->value.
6680
6681 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6682
6683         * genpreds.c (process_define_predicate): Move most processing
6684         to gensupport.c.  Continue to validate the expression.
6685         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6686         (process_define_predicate): Move processing to gensupport.c.
6687         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6688         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6689         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
6690         argument.
6691         (valid_predicate_name_p): New function, split out from old
6692         genpreds.c:process_define_predicate.
6693         (process_define_predicate): New function, combining code from
6694         old genpreds.c and genrecog.c functions.
6695         (process_rtx): Call it for DEFINE_PREDICATE and
6696         DEFINE_SPECIAL_PREDICATE.
6697
6698 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6699
6700         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6701         size of a '%A' memory reference.
6702         (T_DREG, T_QREG): New neon_builtin_type_bits.
6703         (arm_init_neon_builtins): Assert that the load and store operands
6704         are neon_struct_operands.
6705         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6706         (NEON_ARG_MEMORY): New builtin_arg.
6707         (neon_dereference_pointer): New function.
6708         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6709         Handle NEON_ARG_MEMORY.
6710         (arm_expand_neon_builtin): Update after above interface changes.
6711         Use NEON_ARG_MEMORY for loads and stores.
6712         * config/arm/predicates.md (neon_struct_operand): New predicate.
6713         * config/arm/iterators.md (V_two_elem): Tweak formatting.
6714         (V_three_elem): Use BLKmode for accesses that have no associated mode.
6715         (V_four_elem): Tweak formatting.
6716         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6717         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6718         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6719         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6720         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6721         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6722         (neon_vst4<mode>): Replace pointer operand with a memory operand.
6723         Use %A in the output template.
6724         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6725         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6726         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6727         the width of the memory access.  Remove post-increment.
6728         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6729
6730 2011-04-12  Nick Clifton  <nickc@redhat.com>
6731
6732         * config/v850/v850.c (expand_prologue): Do not use the CALLT
6733         instruction for interrupt handlers if the target is the basic V850
6734         architecture.
6735         (expand_epilogue): Likewise.
6736
6737 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
6738
6739         PR rtl-optimization/48549
6740         * combine.c (propagate_for_debug): Also stop after BB_END of
6741         this_basic_block.  Process LAST and just stop processing after it.
6742         (combine_instructions): If last_combined_insn has been deleted,
6743         set last_combined_insn to its PREV_INSN.
6744
6745 2011-04-12  Richard Guenther  <rguenther@suse.de>
6746
6747         PR tree-optimization/46076
6748         * gimple.h (struct gimple_statement_call): Add fntype field.
6749         (gimple_call_fntype): Adjust.
6750         (gimple_call_set_fntype): New function.
6751         * gimple.c (gimple_build_call_1): Set the call function type.
6752         * gimplify.c (gimplify_call_expr): Preserve the function
6753         type the frontend used for the call.
6754         (gimplify_modify_expr): Likewise.
6755         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6756         function type.
6757         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6758         function type.
6759         * tree-ssa.c (useless_type_conversion_p): Function pointer
6760         conversions are useless.
6761
6762 2011-04-12  Martin Jambor  <mjambor@suse.cz>
6763
6764         * cgraph.h (cgraph_node): Remove function declaration.
6765         (cgraph_create_node): Declare.
6766         (cgraph_get_create_node): Likewise.
6767         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6768         Updated all callers.
6769         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6770         the decl does not already exist.  Call cgraph_get_create_node instead
6771         of cgraph_node.
6772         (cgraph_get_create_node): New function.
6773         (cgraph_same_body_alias): Update comment.
6774         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6775         assert it does not return NULL.
6776         (cgraph_update_edges_for_call_stmt): Likewise.
6777         (cgraph_clone_edge): Likewise.
6778         (cgraph_create_virtual_clone): Likewise.
6779         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6780         instead of cgraph_node.
6781         (cgraph_add_new_function): Call cgraph_create_node or
6782         cgraph_get_create_node instead of cgraph_node.
6783         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6784         instead of cgraph_node.
6785         (record_eh_tables): Likewise.
6786         (mark_address): Likewise.
6787         (mark_load): Likewise.
6788         (build_cgraph_edges): Call cgraph_get_create_node instead
6789         of cgraph_node.
6790         (rebuild_cgraph_edges): Likewise.
6791         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6792         instead of cgraph_node.
6793         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6794         cgraph_node.
6795         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6796         cgraph_create_node instead of cgraph_node.
6797         * c-decl.c (finish_function): Call cgraph_get_create_node instead
6798         of cgraph_node.
6799         * lto-cgraph.c (input_node): Likewise.
6800         * lto-streamer-in.c (input_function): Likewise.
6801         * varasm.c (mark_decl_referenced): Likewise.
6802         (assemble_alias): Likewise.
6803
6804 2011-04-12  Martin Jambor  <mjambor@suse.cz>
6805
6806         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6807         instead of cgraph_node and assert it does not return NULL.
6808         * lto-streamer-in.c (lto_read_body): Likewise.
6809         * omp-low.c (new_omp_context): Likewise.
6810         (create_task_copyfn): Likewise.
6811         * tree-emutls.c (lower_emutls_function_body): Likewise.
6812         * matrix-reorg.c (transform_allocation_sites): Likewise.
6813
6814 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
6815
6816         PR c/48552
6817         * c-typeck.c (build_asm_expr): Error out on attempts to use
6818         void type outputs or inputs for constraints that allow reg or
6819         don't allow memory.
6820
6821 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
6822             Richard Earnshaw  <rearnsha@arm.com>
6823
6824         PR target/48250
6825         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6826         to use sign-magnitude offsets. Reject unsupported unaligned
6827         cases. Add detailed description in comments.
6828         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6829         condition from TARGET_32BIT to TARGET_ARM.
6830
6831 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
6832
6833         * tree.h (struct typed_tree): New.
6834         (struct tree_common): Include it instead of tree_base.
6835         (TREE_TYPE): Update for new location of type field.
6836         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6837         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6838         (union tree_node): Add typed field.
6839         * treestruct.def (TS_TYPED): New.
6840         * lto-streamer.c (check_handled_ts_structures): Handle it.
6841         * tree.c (MARK_TS_TYPED): New macro.
6842         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6843
6844 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6845
6846         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6847         (force_nonfallthru): Do not alter the loop nest if no basic block
6848         was created.
6849
6850 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
6851
6852         * config/i386/sse.md (VI): New mode iterator.
6853         (SSEMODEI): Remove.
6854         (AVX256MODEI): Ditto.
6855         (AVXMODEF4P): Ditto.
6856         (avxvecpsmode): Ditto.
6857         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
6858         (sse2_andnot<mode>3): New expander.
6859         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6860         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
6861         (<any_logic:code><mode>3): Use VI mode iterator.
6862         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6863         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
6864         (*andnottf3): Handle AVX three-operand constraints.
6865         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6866
6867 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6868             Robert Millan  <rmh@gnu.org>
6869
6870         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6871         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6872         GNU_USER_DYNAMIC_LINKER64): Define.
6873         (REG_NAME): Don't undefine.
6874         (MD_UNWIND_SUPPORT): Undefine.
6875         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6876         (REG_NAME): Don't undefine.
6877         (MD_UNWIND_SUPPORT): Undefine.
6878         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6879
6880 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6881
6882         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6883         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6884
6885 2011-04-11  Xinliang David Li  <davidxl@google.com>
6886
6887         * value-profile.c (check_ic_target): New function.
6888         (gimple_ic_transform): Sanity check indirect call target.
6889         * gimple-low.c (gimple_check_call_args): Interface change.
6890         (gimple_check_call_matching_types): New function.
6891         * tree-inline.c (tree_can_inline_p): Call new function.
6892
6893 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
6894
6895         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6896         tree-pretty-print.h & realmpfr.h.
6897
6898 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
6899
6900         PR middle-end/48464
6901         * ira.c (setup_pressure_classes): Fix typo in loop condition.
6902         (setup_allocno_and_important_classes): Ditto.
6903
6904 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6905
6906         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6907         GNU_USER_DYNAMIC_LINKER.
6908         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6909         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6910         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6911         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6912         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6913         GNU_USER_TARGET_OS_CPP_BUILTINS.
6914         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6915         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6916         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6917         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6918         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6919         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6920         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6921         GNU_USER_TARGET_OS_CPP_BUILTINS.
6922         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6923         GNU_USER_DYNAMIC_LINKER.
6924         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6925         GNU_USER_TARGET_OS_CPP_BUILTINS.
6926         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6927         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6928         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6929         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6930         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6931         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6932         GNU_USER_DYNAMIC_LINKER64): Remove.
6933         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6934         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6935         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6936         GNU_USER_DYNAMIC_LINKER.
6937         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6938         GNU_USER_TARGET_OS_CPP_BUILTINS.
6939         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6940         GNU_USER_TARGET_OS_CPP_BUILTINS.
6941         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6942         to GNU_USER_TARGET_OS_CPP_BUILTINS.
6943         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6944         GNU_USER_TARGET_OS_CPP_BUILTINS.
6945         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6946         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6947         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6948         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6949         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6950         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6951         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/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6955         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6956         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6957         GNU_USER_DYNAMIC_LINKER.
6958         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6959         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6960         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6961         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6962         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6963         GNU_USER_DYNAMIC_LINKER.
6964         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6965         GNU_USER_DYNAMIC_LINKERN32.
6966         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6967         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
6968         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
6969         GNU_USER_DYNAMIC_LINKER32.
6970         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6971         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6972         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6973         GNU_USER_DYNAMIC_LINKER.
6974         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6975         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6976         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6977         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6978         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6979         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6980         GNU_USER_DYNAMIC_LINKER32.
6981         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6982         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6983         GNU_USER_DYNAMIC_LINKER.
6984         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6985         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6986         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6987         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
6988         GNU_USER_DYNAMIC_LINKER64.
6989         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6990         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6991         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6992         GNU_USER_DYNAMIC_LINKER.
6993         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6994         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6995         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6996         GNU_USER_DYNAMIC_LINKER.
6997         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6998         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6999         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7000         GNU_USER_DYNAMIC_LINKER32.
7001         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7002         GNU_USER_DYNAMIC_LINKER64.
7003         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7004         GNU_USER_DYNAMIC_LINKER64.
7005         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7006         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7007         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7008         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7009         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7010
7011 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
7012
7013         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
7014         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7015         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7016         GNU_USER_DYNAMIC_LINKER.
7017         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7018         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
7019         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7020         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7021         GNU_USER_DYNAMIC_LINKER64.
7022         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7023         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7024         GNU_USER_LINK_EMULATION.
7025         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7026         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7027         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7028         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7029         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7030         CPP_SPEC, CC1_SPEC): Remove.
7031         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7032         (GNU_USER_DYNAMIC_LINKER): Define.
7033         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7034         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7035         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7036         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7037         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7038         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7039         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7040         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7041         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7042         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7043         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7044         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7045         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7046         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7047         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7048         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7049         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7050         GNU_USER_DYNAMIC_LINKER.
7051         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7052         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
7053         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7054         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
7055         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7056         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
7057         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7058         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7059         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7060         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7061
7062 2011-04-11  Kai Tietz  <ktietz@redhat.com>
7063
7064         PR target/9601
7065         PR target/11772
7066         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7067         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7068         comment.
7069         (ix86_is_msabi_thiscall): Removed.
7070         (ix86_is_type_thiscall): Likewise.
7071         (ix86_get_callcvt): New function.
7072         (ix86_comp_type_attributes): Simplify check.
7073         (ix86_function_regparm): Use ix86_get_callcvt for calling
7074         convention attribute checks.
7075         (ix86_return_pops_args): Likewise.
7076         (ix86_static_chain): Likewise.
7077         (x86_this_parameter): Likewise.
7078         (x86_output_mi_thunk): Likewise.
7079         (ix86_function_type_abi): Optimize check for types without attributes.
7080         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7081         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7082         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7083         by flag-values.
7084         (IX86_BASE_CALLCVT): Helper macro.
7085         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7086         Use ix86_get_callcvt for calling convention attribute checks and avoid
7087         symbol-decoration for stdcall in TARGET_RTD case.
7088         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7089         Likewise.
7090         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7091         for declaration.
7092
7093 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
7094
7095         * config/i386/sse.md (VI_128): New mode iterator.
7096         (VI12_128): Rename from SSEMODE12.
7097         (VI14_128): Rename from SSEMODE14.
7098         (VI124_128): New mode iterator.
7099         (VI24_128): Rename from SSEMODE248.
7100         (VI248_128): Rename from SSEMODE248.
7101         (SSEMODE124C8): Remove.
7102         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7103         (*sse2_<plusminus_insn><mode>3): Merge with
7104         *avx_<plusminus_insn><mode>3.
7105         (*mulv8hi3): Merge with *avx_mulv8hi3.
7106         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7107         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7108         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7109         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7110         (ashr<mode>3): Merge with *avx_ashr<mode>3.
7111         (lshr<mode>3): Merge with *avx_lshr<mode>3.
7112         (ashl<mode>3): Merge with *avx_ashl<mode>3.
7113         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7114         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7115         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7116         (*<smaxmin:code>v8hi3): Ditto.
7117         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7118         (*<smaxmin:code>v16qi3): Ditto.
7119         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7120         (*sse2_eq<mode>3): Ditto.
7121         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7122         (*sse2_gt<mode>3): Ditto.
7123         (vcondv2di): Split out of vcond<mode>.
7124         (vconduv2di): Split out of vcondu<mode>.
7125
7126 2011-04-11  Richard Guenther  <rguenther@suse.de>
7127
7128         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7129         before calling tree_low_cst.
7130
7131 2011-04-11  Richard Guenther  <rguenther@suse.de>
7132
7133         * stor-layout.c (layout_type): Compute all array index size operations
7134         in the original type.
7135         (initialize_sizetypes): Add comment.
7136         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7137
7138 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
7139
7140         * common.opt (Tbss=, Tdata=, Ttext=): New options.
7141
7142 2011-04-11  Martin Jambor  <mjambor@suse.cz>
7143
7144         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7145         of cgraph_node, handle NULL return value.
7146         (cgraph_global_info): Likewise.
7147         (cgraph_rtl_info): Likewise.
7148         * tree-inline.c (estimate_num_insns): Likewise.
7149         * gimplify.c (unshare_body): Likewise.
7150         (unvisit_body): Likewise.
7151         (gimplify_body): Likewise.
7152         * predict.c (optimize_function_for_size_p): Likewise.
7153         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7154         (call_may_clobber_ref_p_1): Likewise.
7155         * varasm.c (function_section_1): Likewise.
7156         (assemble_start_function): Likewise.
7157
7158 2011-04-11  Martin Jambor  <mjambor@suse.cz>
7159
7160         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7161         of cgraph_node.
7162         * final.c (rest_of_clean_state): Likewise.
7163         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7164         * passes.c (pass_init_dump_file): Likewise.
7165         (execute_all_ipa_transforms): Likewise.
7166         (function_called_by_processed_nodes_p): Likewise.
7167         * predict.c (maybe_hot_frequency_p): Likewise.
7168         (probably_never_executed_bb_p): Likewise.
7169         (compute_function_frequency): Likewise.
7170         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7171         (unnest_nesting_tree_1): Likewise.
7172         (lower_nested_functions): Likewise.
7173         * tree-optimize.c (execute_fixup_cfg): Likewise.
7174         (tree_rest_of_compilation): Likewise.
7175         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7176         * tree-sra.c (ipa_early_sra): Likewise.
7177         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7178         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7179         * ipa.c (record_cdtor_fn): Likewise.
7180         * ipa-inline.c (cgraph_early_inlining): Likewise.
7181         (compute_inline_parameters_for_current): Likewise.
7182         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7183         * ipa-pure-const.c (local_pure_const): Likewise.
7184         * ipa-split.c (split_function): Likewise.
7185         (execute_split_functions): Likewise.
7186         * cgraphbuild.c (build_cgraph_edges): Likewise.
7187         (rebuild_cgraph_edges): Likewise.
7188         (cgraph_rebuild_references): Likewise.
7189         (remove_cgraph_callee_edges): Likewise.
7190         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7191         (verify_cgraph_node): Likewise.
7192         (cgraph_analyze_functions): Likewise.
7193         (cgraph_preserve_function_body_p): Likewise.
7194         (save_inline_function_body): Likewise.
7195         (save_inline_function_body): Likewise.
7196         * tree-inline.c (copy_bb): Likewise.
7197         (optimize_inline_calls): Likewise.
7198
7199 2011-04-11  Martin Jambor  <mjambor@suse.cz>
7200
7201         PR tree-optimization/48195
7202         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7203         ipa_check_create_edge_args.
7204         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7205         ipa_check_create_edge_args.
7206         * ipa-inline.c (inline_generate_summary): Do not call
7207         ipa_check_create_node_params and ipa_check_create_edge_args.
7208         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7209         ipa_check_create_edge_args.
7210
7211 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
7212
7213         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7214         instead of loop.
7215         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7216         * function.c (record_hard_reg_sets): Likewise.
7217         * ira.c (compute_regs_asm_clobbered): Likewise.
7218         * sched-deps.c (sched_analyze_1): Likewise.
7219         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7220
7221 2011-04-09  Xinliang David Li  <davidxl@google.com>
7222
7223         PR tree-optimization/PR48484
7224         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7225         has_valid_pred lazily
7226
7227 2011-04-09  Duncan Sands  <baldrick@free.fr>
7228
7229         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7230
7231 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7232
7233         * combine.c (combine_validate_cost): Adjust comments.  Set registered
7234         cost of I0 to zero at the end, if any.
7235
7236 2011-04-08  Xinliang David Li  <davidxl@google.com>
7237
7238         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7239         to insane profile data.
7240
7241 2011-04-08  Xinliang David Li  <davidxl@google.com>
7242
7243         * ipa-cp.c (ipcp_update_profiling): Correct
7244          negative scale factor due to insane profile data.
7245
7246 2011-04-08  Xinliang David Li  <davidxl@google.com>
7247
7248         * final.c (dump_basic_block_info): New function.
7249         (final): Dump basic block.
7250         (final_scan_insn): Remove old dump.
7251
7252 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
7253
7254         PR target/47829
7255         * config.gcc (i386-*-freebsd): Disable unwind table generation for
7256         crtbegin/crtend.
7257
7258 2011-04-08  Michael Matz  <matz@suse.de>
7259
7260         PR middle-end/48389
7261         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7262         functions.
7263         (rebuild_jump_labels): Call rebuild_jump_labels_1.
7264         * rtl.h (rebuild_jump_labels_chain): Declare.
7265         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7266         insns inserted on edges.
7267
7268 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
7269
7270         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7271         * config/arm/arm-arches.def: New.
7272         * config/arm/arm-opts.h: New.
7273         * config/arm/genopt.sh: New.
7274         * config/arm/arm-tables.opt: New (generated).
7275         * config/arm/arm.c (arm_handle_option, arm_target_help,
7276         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7277         (all_architectures): Get most table contents from arm-arches.def.
7278         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7279         arm_selected_tune here.
7280         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7281         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7282         (march=, mcpu=, mtune=): Use Enum and Var.
7283         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7284         (arm.o): Update dependencies.
7285
7286 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
7287
7288         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7289         of header_file.
7290         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7291         (write_typed_alloc_defns): Likewise.
7292         (main): Calls write_typed_alloc_defns with output_header.
7293
7294 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
7295
7296         PR inline-asm/48435
7297         * ira-color.c (setup_profitable_hard_regs): Add comments.
7298         Don't take prohibited hard regs into account.
7299         (setup_conflict_profitable_regs): Rename to
7300         get_conflict_profitable_regs.
7301         (check_hard_reg_p): Check prohibited hard regs.
7302
7303 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
7304
7305         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7306         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7307         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7308
7309 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7310
7311         PR target/48366
7312         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7313         move from floating point to shift amount register.
7314         (emit_move_sequence): Remove secondary reload support for floating
7315         point to shift amount amount register copies.
7316         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7317         amount register copies.
7318         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7319         register, return false if mode isn't a scalar integer mode.
7320         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7321
7322 2011-04-08  Richard Guenther  <rguenther@suse.de>
7323
7324         * gimple.c (gimple_call_flags): Remove kludge.
7325
7326 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
7327
7328         * sel-sched.c (sel_region_init): Move call to
7329         sel_setup_region_sched_flags after setup_current_loop_nest.
7330
7331 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
7332
7333         PR rtl-optimization/48272
7334         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7335         init_insn_reg_pressure_info.  Adjust a caller.
7336         * sched-int.h (init_insn_reg_pressure_info): Declare.
7337         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7338         when sched-pressure is enabled.
7339
7340 2011-04-08  Richard Guenther  <rguenther@suse.de>
7341
7342         * gimple.c (gimple_set_modified): Do not queue calls to
7343         MODIFIED_NORETURN_CALLS here ...
7344         * tree-ssa-operands.c (update_stmt_operands): ... but here.
7345
7346 2011-04-08  Richard Guenther  <rguenther@suse.de>
7347
7348         PR lto/48467
7349         * toplev.c (lang_dependent_init): Do not open asm_out_file
7350         in WPA mode, nor perform debug machinery initialization.
7351         (finalize): Do not unlink asm_out_file in WPA mode.
7352
7353 2011-04-08  Richard Guenther  <rguenther@suse.de>
7354
7355         * gimple.h (gimple_call_fntype): New function.
7356         (gimple_call_return_type): Use it.
7357         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7358         * gimple-low.c (gimple_check_call_args): Likewise.
7359         * gimple.c (gimple_call_flags): Likewise.
7360         (gimple_call_arg_flags): Likewise.
7361         (gimple_call_return_flags): Likewise.
7362         * tree-cfg.c (verify_gimple_call): Likewise.
7363         (do_warn_unused_result): Likewise.
7364         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7365         * value-prof.c (gimple_ic_transform): Fix fndecl check.
7366
7367 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
7368
7369         PR rtl-optimization/48235
7370         * sel-sched.c (code_motion_process_successors): Recompute the last
7371         insn in basic block if control flow changed.
7372         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
7373         Update condition for ilist_remove.
7374
7375 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
7376
7377         PR rtl-optimization/48302
7378         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7379         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
7380         it to record added preheader blocks.
7381         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
7382         on to sel_add_loop_preheaders.
7383         (sel_region_init): Move call to setup_current_loop_nest after
7384         sel_init_bbs.
7385
7386 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
7387
7388         PR target/48273
7389         * cfgloop.h (loop_has_exit_edges): New helper.
7390         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7391         non-clonable.
7392         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7393         that have no exit edges.
7394
7395 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
7396
7397         PR rtl-optimization/48442
7398         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
7399         all callers.  Adjust assert.
7400
7401 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
7402
7403         PR tree-optimization/48377
7404         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7405         is_packed to true even for types with smaller TYPE_ALIGN than
7406         TYPE_SIZE.
7407
7408 2011-04-08  Richard Guenther  <rguenther@suse.de>
7409
7410         PR bootstrap/48513
7411         * doc/tm.texi: Re-generate.
7412
7413 2011-04-08  Wei Guozhi  <carrot@google.com>
7414
7415         PR target/47855
7416         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7417         * config/arm/arm.c (arm_attr_length_push_multi): New function.
7418         * config/arm/arm.md (*push_multi): Change the length computation to
7419         call a C function.
7420
7421 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
7422
7423         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7424         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7425         * doc/tm.texi: Regenerate.
7426         * system.h (ASM_OUTPUT_BSS): Poison.
7427         * varasm.c (asm_output_bss): Remove function.
7428         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7429
7430         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7431         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7432         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7433         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7434         Likewise.
7435         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7436         Likewise.
7437         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7438         Likewise.
7439         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7440
7441 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
7442
7443         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7444         EnumValue lines.
7445
7446 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
7447
7448         * config/m68k/m68k.c (m68k_handle_option): Don't handle
7449         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7450         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7451         OPT_mcpu32.
7452         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7453         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7454         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7455         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7456         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7457         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7458         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7459         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7460         options.  Don't map other m68k options manually.  Don't handle
7461         old-style options as canonical.
7462         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7463         * doc/install.texi (m68k-*-*): Document binutils version requirement.
7464
7465 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
7466
7467         * basic-block.h (force_nonfallthru): Move to...
7468         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7469         (force_nonfallthru): ...here.
7470         * cfghooks.c (force_nonfallthru): New function.
7471         * cfgrtl.c (force_nonfallthru): Rename into...
7472         (rtl_force_nonfallthru): ...this.
7473         (commit_one_edge_insertion): Do not set AUX field.
7474         (commit_edge_insertions): Do not discover new basic blocks.
7475         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7476         (cfg_layout_rtl_cfg_hooks): Likewise.
7477         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7478         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
7479         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7480
7481 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
7482
7483         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7484         Remove macros.
7485
7486 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
7487
7488         * config/i386/sse.md: Update copyright year.
7489         (avxcvtvecmode): Remove.
7490         (sse_movhlps): Merge with *avx_movhlps.
7491         (sse_movlhps): Merge with *avx_movlhps.
7492         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7493         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7494         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7495         (sse_loadhps): Merge with *avx_loadhps.
7496         (sse_storelps): Merge with *avx_storelps.
7497         (sse_loadlps): Merge with *avx_loadlps.
7498         (sse_movss): Merge with *avx_movss.
7499         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7500         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7501         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7502         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7503         (vec_set<mode>_0): Ditto.
7504         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7505         (sse4_1_insertps): Merge with *avx_insertps.
7506         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7507         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7508         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7509         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7510         (sse2_storehpd): Merge with *avx_storehpd.
7511         (sse2_loadhpd): Merge with *avx_loadhpd.
7512         (sse2_loadlpd): Merge with *avx_loadlpd.
7513         (sse2_movsd): Merge with *avx_movsd.
7514         (*vec_concatv2df): Merge with *vec_concatv2df.
7515
7516 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
7517
7518         PR debug/48343
7519         * combine.c (combine_instructions): Add last_combined_insn,
7520         update it if insn is after it, pass it to all try_combine calls.
7521         (try_combine): Add last_combined_insn parameter, pass it instead of
7522         i3 to propagate_for_debug.
7523
7524 2011-04-07  Nick Clifton  <nickc@redhat.com>
7525
7526         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7527         to handle MDR <-> data register transfers.
7528         (movhi_internal): Likewise.
7529
7530 2011-04-07  Alan Modra  <amodra@gmail.com>
7531
7532         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7533         previous stack info.
7534
7535 2011-04-07  Tom de Vries  <tom@codesourcery.com>
7536
7537         PR target/43920
7538         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
7539         flow_find_cross_jump.  Swap variables to implement backward replacement.
7540         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7541
7542 2011-04-07  Tom de Vries  <tom@codesourcery.com>
7543
7544         PR target/43920
7545         * cfgcleanup.c (walk_to_nondebug_insn): New function.
7546         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
7547         and bb2.
7548         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7549         src1 or src2.  Redirect edges to the last basic block.  Update
7550         frequency and count on multiple basic blocks in case of fallthru.
7551
7552 2011-04-07  Tom de Vries  <tom@codesourcery.com>
7553
7554         PR target/43920
7555         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7556         function.
7557         (old_insns_match_p): Change return type.  Replace return false/true
7558         with return dir_none/dir_both.  Use can_replace_by.
7559         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
7560         direction from dir_p.  Register replacement direction in dir, last_dir
7561         and afterlast_dir.  Handle new return type of old_insns_match_p using
7562         merge_dir.  Return replacement direction in dir_p.
7563         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7564         return type of old_insns_match_p.
7565         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7566         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7567         flow_find_cross_jump.
7568         * basic-block.h (enum replace_direction): New type.
7569         (flow_find_cross_jump): Add parameter to declaration.
7570
7571 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
7572
7573         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7574         (AVXMODEDCVTPS2DQ): Ditto.
7575         (VEC_FLOAT_MODE): Ditto.
7576         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
7577         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7578         (<any_logic:code><mode>3): Use VF mode iterator.
7579         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7580         Use VF mode iterator.
7581         (copysign<mode>3): Use VF mode iterator.
7582         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
7583         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7584         (*<any_logic:code><MODEF:mode>3): Merge with
7585         *avx_<any_logic:code><MODEF:mode>3.
7586         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7587         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7588         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7589         (avx_cvtdq2ps<avxmodesuffix>): Remove.
7590         (sse2_cvtdq2ps): Use %v modifier.
7591         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7592         (avx_cvtps2dq<avxmodesuffix>): Remove.
7593         (sse2_cvtps2dq): Use %v modifier.
7594         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7595         (avx_cvttps2dq<avxmodesuffix>): Remove.
7596         (sse2_cvttps2dq): Use %v modifier.
7597         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7598         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7599         (sse2_cvtsd2siq): Fix insn template.
7600         (sse2_cvtsd2siq_2): Ditto.
7601         (sse2_cvttsd2siq): Ditto.
7602         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7603         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7604
7605 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
7606
7607         * gcov-io.c: Use GCC Runtime Library Exception.
7608
7609 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
7610
7611         PR debug/48466
7612         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7613         as base_reg whatever register reg has been eliminated to, instead
7614         of hardcoding STACK_POINTER_REGNUM.
7615
7616 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
7617
7618         * doc/tm.texi.in: Document C target hooks as separate from general
7619         target hooks.
7620         * doc/tm.texi: Regenerate.
7621         * genhooks.c (struct hook_desc): Add docname field.
7622         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
7623         docname field.
7624         (hook_array): Include c-target.def.
7625         (emit_documentation): Use docname field in output.
7626         (emit_init_macros): Take docname argument.  Only emit definitions
7627         for hooks matching docname.
7628         (main): Expect additional arguments in all cases.  Pass argument
7629         to emit_init_macros.
7630         * target.def: Move initial macro definitions and comments to
7631         target-hooks-macros.h.
7632         (gcc_targetcm): Move to c-family/c-target.def.
7633         * target.h (targetcm): Move declaration to c-family/c-target.h.
7634         * targhooks.c (default_handle_c_option): Move to
7635         c-family/c-opts.c.
7636         * targhooks.h (default_handle_c_option): Move declaration to
7637         c-family/c-common.h.
7638         * target-hooks-macros.h: New file.
7639         * config.gcc (target_has_targetcm): Define and use to add to
7640         c_target_objs and cxx_target_objs.
7641         * config/default-c.c: New file.
7642         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7643         of target.h and target-def.h.
7644         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7645         (darwin_objc_construct_string, darwin_cfstring_ref_p,
7646         darwin_check_cfstring_format_arg): Make static.
7647         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7648         TARGET_STRING_OBJECT_REF_TYPE_P,
7649         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7650         * config/darwin-protos.h (darwin_objc_construct_string,
7651         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7652         declare.
7653         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7654         TARGET_STRING_OBJECT_REF_TYPE_P,
7655         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7656         * config/t-darwin (darwin-c.o): Update dependencies.
7657         * system.h (TARGET_HAS_TARGETCM): Poison.
7658         * Makefile.in (TARGET_H): Update.
7659         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7660         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7661         (default-c.o): New target.
7662         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7663         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7664         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
7665         c-target.def.
7666         (build/genhooks.o): Update dependencies.
7667
7668 2011-04-06  Richard Guenther  <rguenther@suse.de>
7669
7670         * ipa-inline.c (enum inlining_mode): Remove.
7671         (cgraph_flatten): Use some other token.
7672         (cgraph_edge_early_inlinable_p): New function, split out from ...
7673         (cgraph_perform_always_inlining): New function, split out from ...
7674         (cgraph_decide_inlining_incrementally): ... here.
7675         (cgraph_mark_inline_edge): Adjust.
7676         (cgraph_early_inlining): Re-structure.
7677         (pass_early_inline): Require SSA form.
7678
7679 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
7680             Julian Brown  <julian@codesourcery.com>
7681             Mark Shinwell  <shinwell@codesourcery.com>
7682
7683         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7684         LO_REGS only for Thumb-1.
7685         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7686         be used in short instructions when optimising for size on Thumb-2.
7687
7688 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
7689
7690         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7691         associated with user returns to be preserved.
7692
7693 2011-04-06  Tristan Gingold  <gingold@adacore.com>
7694
7695         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7696         symbol_queue_size, DBXOUT_DECR_NESTING,
7697         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7698         if XCOFF_DEBUGGING_INFO.
7699
7700 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
7701
7702         * config/i386/i386.md (attribute isa): New.
7703         (attribute enabled): New.
7704         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7705         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7706         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7707         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7708         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7709         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7710         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7711         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7712
7713         * config/i386/sse.md (VF): New mode iterator.
7714         (VF1): Ditto.
7715         (VF2): Ditto.
7716         (VF_128): Ditto.
7717         (SSEMODEF4): Remove.
7718         (attribute sse): Handle V8SF and V4DF modes.
7719         (<absneg:code><mode>2): Use VF mode iterator.
7720         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
7721         mode iterator.
7722         (<plusminus_insn><mode>3): Use VF mode iterator.
7723         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7724         Use VF mode iterator.
7725         (<sse>_vm<plusminus_insn><mode>3): Merge with
7726         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
7727         (mul<mode>3): Use VF mode iterator.
7728         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
7729         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
7730         mode iterator.
7731         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7732         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7733         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
7734         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
7735         mode iterator.
7736         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7737         Use VF1 mode iterator.
7738         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7739         (sqrt<VF2:mode>2): New expander.
7740         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7741         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7742         and sqrtv2df2.  Use VF mode iterator.
7743         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
7744         mode iterator.
7745         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7746         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7747         Use VF1 mode iterator.
7748         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7749         (<smaxmin:code><mode>3): Use VF mode iterator.
7750         (*<smaxmin:code><mode>3_finite): Merge with
7751         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
7752         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7753         (<sse>_vm<smaxmin:code><mode>2): Merge with
7754         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
7755         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
7756         mode iterator.
7757         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
7758         mode iterator.
7759         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7760         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7761         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7762         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7763         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
7764         VF mode iterator.
7765         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7766         Use VF_128 mode iterator.
7767         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
7768         mode iterator.
7769         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
7770         VF_128 mode iterator.
7771         (vcond<mode>): Use VF mode iterator.
7772         * config/i386/predicates.md (sse_comparison_operator): Merge with
7773         avx_comparison_float_operator.  Do not declare as special_predicate.
7774         * config/i386/i386.c (struct builtin_description): Update for renamed
7775         compare patterns.
7776         (ix86_expand_args_builtin): Ditto.
7777         (ix86_expand_sse_compare_mask): Ditto.
7778
7779 2011-04-06  Richard Guenther  <rguenther@suse.de>
7780
7781         * tree-inline.c (estimate_num_insns): For calls simply account
7782         for all passed arguments and a used return value.
7783
7784 2011-04-06  Richard Guenther  <rguenther@suse.de>
7785
7786         PR tree-optimization/47663
7787         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7788         call_stmt_time fields.
7789         (cgraph_edge_inlinable_p): Declare.
7790         (cgraph_edge_recursive_p): New inline function.
7791         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7792         (cgraph_clone_edge): Copy it.
7793         * ipa-inline.c (cgraph_estimate_edge_time): New function.
7794         Account for call stmt time.
7795         (cgraph_estimate_time_after_inlining): Take edge argument.
7796         (cgraph_estimate_edge_growth): Account call stmt size.
7797         (cgraph_estimate_size_after_inlining): Take edge argument.
7798         (cgraph_mark_inline_edge): Adjust.
7799         (cgraph_check_inline_limits): Likewise.
7800         (cgraph_recursive_inlining_p): Remove.
7801         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7802         (cgraph_decide_recursive_inlining): Take edge argument and
7803         adjust.
7804         (cgraph_decide_inlining_of_small_functions): Do not avoid
7805         diags for recursive inlining here.
7806         (cgraph_flatten): Adjust.
7807         (cgraph_decide_inlining_incrementally): Likewise.
7808         (estimate_function_body_sizes): Remove call cost handling.
7809         (compute_inline_parameters): Initialize caller edge call costs.
7810         (cgraph_estimate_edge_growth): New function.
7811         (cgraph_estimate_growth): Use it.
7812         (cgraph_edge_badness): Likewise.
7813         (cgraph_check_inline_limits): Take an edge argument.
7814         (cgraph_decide_inlining_of_small_functions): Adjust.
7815         (cgraph_decide_inlining): Likewise.
7816         * tree-inline.c (estimate_num_insns): Only account for call
7817         return value if it is used.
7818         (expand_call_inline): Avoid diagnostics on recursive inline
7819         functions here.
7820         * lto-cgraph.c (lto_output_edge): Output edge call costs.
7821         (input_edge): Input edge call costs.
7822
7823 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7824
7825         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7826
7827 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
7828
7829         * doc/invoke.texi (Spec Files): Fix typo.
7830
7831 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
7832
7833         * profile.c (branch_prob): Move declaration of local variable.  Remove
7834         obsolete ??? comment.  Expand the location explicitly instead of using
7835         the LOCATION_FILE and LOCATION_LINE macros.
7836
7837 2011-04-06  Wei Guozhi  <carrot@google.com>
7838
7839         PR target/47855
7840         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7841         (arm_cond_branch): Likewise.
7842         (arm_cond_branch_reversed): Likewise.
7843         (arm_jump): Likewise.
7844         (push_multi): Likewise.
7845         * config/arm/constraints.md (Py): New constraint.
7846
7847 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7848
7849         PR bootstrap/48471
7850         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7851         Move these...
7852         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7853         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7854         #ifdef DBX_DEBUGGING_INFO.
7855
7856 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
7857
7858         PR bootstrap/48403
7859         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7860         if old and new states differ.
7861
7862 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
7863
7864         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7865         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7866         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7867         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7868         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7869         mcfv4e): Use Alias.
7870         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7871         ColdFire options to -mcpu= options.
7872
7873 2011-04-05  Jeff Law  <law@redhat.com>
7874
7875         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7876         check if BB is a successor of LOOP->header and return
7877         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7878
7879 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7880
7881         * cprop.c (struct reg_use): Remove.
7882         (reg_use_table): Make an array of RTX.
7883         (find_used_regs, constprop_register, local_cprop_pass,
7884         bypass_block): Simplify users of reg_use_table.
7885         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
7886         on one of the uses found by find_used_regs.
7887
7888 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7889
7890         PR bootstrap/48469
7891         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7892         declaration.
7893
7894 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7895
7896         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7897         as an rtx.
7898         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7899
7900 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7901
7902         PR middle-end/48441
7903         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7904
7905 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7906
7907         * combine.c: Include obstack.h.
7908         (struct insn_link): Define.
7909         (uid_log_links): Adjust type.
7910         (FOR_EACH_LOG_LINK): New macro.
7911         (insn_link_obstack): Declare.
7912         (alloc_insn_link): Define.
7913         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
7914         type of link variables.
7915         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7916         (try_combine, record_promoted_values, distribute_notes): Likewise.
7917         (distribute_links): Likewise.  Tweak prototype.
7918         (clear_log_links): Delete.
7919         (adjust_for_new_dest): Call alloc_insn_link.
7920         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7921
7922 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7923
7924         * gcse.c (modify_mem_list): Convert to an array of VECs.
7925         (canon_modify_mem_list, compute_transp): Tweak formatting.
7926         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
7927         (load_killed_in_block_p): Likewise.
7928         (record_last_mem_set_info): Likewise.
7929         (clear_modify_mem_tables): Likewise.
7930
7931 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7932
7933         PR middle-end/48461
7934         * function.c (emit_use_return_register_into_block): Only define if
7935         HAVE_return.
7936
7937 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
7938
7939         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7940
7941 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
7942
7943         * config/rx/rx-opts.h: New.
7944         * config/rx/rx.c (rx_cpu_type): Remove.
7945         (rx_handle_option): Don't assert that global structures are in
7946         use.  Access variables via opts pointer.  Defer most handling of
7947         OPT_mint_register_.  Use error_at.
7948         (rx_option_override): Handle deferred OPT_mint_register_ here.
7949         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7950         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7951         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7952         (rx_cpu_types): New Enum and EnumValue entries.
7953         (mint-register=): Use Defer and use Var accordingly.
7954
7955 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7956
7957         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7958         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7959         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7960         Move these...
7961         (debug_free_queue, debug_nesting, symbol_queue_index):
7962         ...and these...
7963         * dbxout.c: ...to here.  Make static.
7964
7965 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7966
7967         * gcse.c (modify_pair): Define.  Define a VEC of it.
7968         (canon_modify_mem_list): Convert to an array of VECs.
7969         (free_insn_expr_list_list): Delete.
7970         (clear_modify_mem_tables): Call VEC_free instead.
7971         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7972         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7973         (canon_list_insert, compute_transp): Likewise.
7974
7975 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7976
7977         PR target/43920
7978         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7979         for size.
7980
7981 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7982
7983         PR target/43920
7984         * function.c (emit_use_return_register_into_block): New function.
7985         (thread_prologue_and_epilogue_insns): Use
7986         emit_use_return_register_into_block.
7987
7988 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7989
7990         PR target/43920
7991         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7992         insn.
7993
7994 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7995
7996         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7997
7998 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
7999
8000         * config/arm/arm.md (define_constants for unspec): Replace with
8001         define_c_enum.
8002         (define_constants for unspecv): Replace with define_c_enum.
8003         * config/arm/neon.md (define_constants for unspec): Replace with
8004         define_c_enum.
8005
8006 2011-04-04  Richard Henderson  <rth@redhat.com>
8007
8008         PR bootstrap/48400
8009         * dwarf2out.c (output_line_info): Always emit line info from
8010         at least one section.
8011         (dwarf2out_init): Create text_section_line_info here ...
8012         (set_cur_line_info_table): ... not here.
8013
8014 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
8015
8016         PR target/48380
8017         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8018         not called.
8019
8020         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8021
8022 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
8023
8024         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8025         (expr_equiv_p): Remove.
8026         (insert_set_in_table): Look at <dest, src> pair instead of expr.
8027         (hash_scan_set): Update call to insert_set_in_table.
8028         (dump_hash_table): Dump <dest, src> pair.
8029         (lookup_set): Simplify.  Lookup <dest, src> pair.
8030         (compute_transp): Remove, fold heavily simplified code into...
8031         (compute_local_properties): ...here.  Expect COMP and TRANSP
8032         unconditionally.
8033         (find_avail_set): Take set directly from struct expr.
8034         (find_bypass-set): Likewise.
8035         (bypass_block): Likewise.
8036         (cprop_insn): Likewise.  Remove redundant INSN_P test.
8037
8038         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8039         checks on form of COND from find_implicit_sets to here.
8040         (find_implicit_sets): Cleanup control flow. Split critical edges
8041         if it exposes implicit sets.  Allocate/resize implicit_sets as
8042         necessary.
8043         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8044         changed something.  Run df_analyze after find_implicit_sets if any
8045         edges were split.  Do not allocate implicit_sets here.
8046
8047         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8048         (gcse_obstack): Renamed to cprop_obstack.
8049         (GNEW, GNEWVEC, GNEWVAR): Remove.
8050         (gmalloc): Remove.
8051         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8052         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8053         (gcse_alloc): Likewise, and rename to cprop_alloc.
8054         (alloc_gcse_men, free_gcse_mem): Remove.
8055         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8056         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8057         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8058
8059         * cprop.c (oprs_not_set_p): Remove.
8060         (mark_set, mark_clobber): Remove.
8061         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8062         (reg_not_set_p): New function.
8063         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8064         (cprop_insn): Likewise.
8065         (cprop_jump): Use FOR_EACH_EDGE.
8066
8067 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
8068
8069         PR bootstrap/48403
8070         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8071         (rank_for_schedule): Use scheduled_insns vector instead of
8072         last_scheduled_insn.
8073         (ok_for_early_queue_removal): Likewise.
8074         (queue_to_ready): Search forward in nonscheduled_insns_begin if
8075         we have a dbg_cnt.
8076         (choose_ready): Likewise.
8077         (commit_schedule): Use VEC_iterate.
8078         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
8079         a dbg_cnt, use it and ensure the first insn is in the ready list.
8080         (haifa_sched_init): Allocate scheduled_insns.
8081         (sched_extend_ready_list): Don't allocate it; reserve space.
8082         (haifa_sched_finish): Free it.
8083
8084 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
8085
8086         * optc-gen.awk: Always remove type from Variable entry before
8087         recording in var_seen.
8088
8089 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
8090
8091         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8092         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8093         call to tidy_fallthru_edges.
8094
8095 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
8096
8097         * doc/options.texi (ToLower): Document.
8098         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8099         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8100         * opts.h (cl_option): Add cl_tolower field.
8101         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8102         arguments with lowercase strings.
8103         * config/rx/rx.opt (mcpu=): Add ToLower.
8104         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8105         argument.
8106
8107 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
8108
8109         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8110
8111 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
8112
8113         * config/vax/vax.c: Include reload.h.
8114
8115 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
8116
8117         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8118         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8119         (sparc_preferred_reload_class): New function.
8120
8121 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
8122
8123         PR debug/48401
8124         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8125         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8126
8127 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
8128
8129         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8130         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8131
8132 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
8133
8134         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8135         (ASM_OUTPUT_ALIGNED_BSS): Define.
8136
8137 2011-04-03  Michael Matz  <matz@suse.de>
8138
8139         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8140         and next_slot members.
8141         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8142         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8143         (lto_streamer_cache_append): Declare.
8144         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8145         unsigned index, remove offset parameter, ensure that we append
8146         or update existing entries.
8147         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8148         parameter, update next_slot for append.
8149         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8150         parameter.
8151         (lto_streamer_cache_insert_at): Likewise.
8152         (lto_streamer_cache_append): New function.
8153         (lto_streamer_cache_lookup): Use unsigned index.
8154         (lto_streamer_cache_get): Likewise.
8155         (lto_record_common_node): Don't test tree_node_can_be_shared.
8156         (preload_common_node): Adjust call to lto_streamer_cache_insert.
8157         (lto_streamer_cache_delete): Don't free offsets member.
8158         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8159         (lto_output_string_with_length): Use lto_output_data_stream.
8160         (lto_output_tree_header): Remove ix parameter, don't write it.
8161         (lto_output_builtin_tree): Likewise.
8162         (lto_write_tree): Adjust callers to above, don't track and write
8163         offset, write unsigned index.
8164         (output_unreferenced_globals): Don't emit all global vars.
8165         (write_global_references): Use unsigned indices.
8166         (lto_output_decl_state_refs): Likewise.
8167         (write_symbol): Likewise.
8168         * lto-streamer-in.c (lto_input_chain): Move earlier.
8169         (input_function): Use unsigned index.
8170         (input_alias_pairs): Don't read and then ignore all global vars.
8171         (lto_materialize_tree): Remove ix_p parameter, don't read index,
8172         don't pass it back, use lto_streamer_cache_append.
8173         (lto_register_var_decl_in_symtab): Use unsigned index.
8174         (lto_register_function_decl_in_symtab): Likewise.
8175         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8176         index.
8177         (lto_get_builtin_tree): Don't read index, use
8178         lto_streamer_cache_append.
8179         (lto_read_tree): Adjust call to lto_materialize_tree.
8180
8181         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8182         don't use function calls in arguments to MIN.
8183
8184         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8185         twice.
8186
8187         * gimple.c (gimple_type_leader_entry): Mark deletable.
8188
8189 2011-04-03  Alan Modra  <amodra@gmail.com>
8190
8191         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8192
8193 2011-04-03  Michael Matz  <matz@suse.de>
8194
8195         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8196         an integer.
8197         * tree.h (tree_decl_non_common.vindex): Adjust comment.
8198
8199 2011-04-03  Michael Matz  <matz@suse.de>
8200
8201         * cgraphbuild.c (record_reference): Canonicalize constructor values.
8202         * gimple-fold.c (canonicalize_constructor_val): Accept being called
8203         without function context.
8204         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8205         current_function_decl and cfun.
8206
8207 2011-04-03  Michael Matz  <matz@suse.de>
8208
8209         * tree.c (decl_init_priority_insert): Don't create entry for
8210         default priority.
8211         (decl_fini_priority_insert): Ditto.
8212         (fields_compatible_p, find_compatible_field): Remove.
8213         * tree.h (fields_compatible_p, find_compatible_field): Remove.
8214         * gimple.c (gimple_compare_field_offset): Adjust block comment.
8215
8216 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
8217
8218         * combine.c (try_combine): Remove useless local variable.
8219
8220 2011-04-03  Richard Guenther  <rguenther@suse.de>
8221             Ira Rosen  <ira.rosen@linaro.org>
8222
8223         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8224         non-variable offsets and compare the remaining bases of the two
8225         accesses instead of looking for exact same data-ref.
8226
8227 2011-04-02  Kai Tietz  <ktietz@redhat.com>
8228
8229         PR target/48416
8230         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8231
8232         * i386.c (ix86_is_msabi_thiscall): New helper function.
8233         (ix86_is_type_thiscall): New helper function.
8234         (ix86_comp_type_attributes): Handle thiscall for method-functions
8235         special.
8236         (init_cumulative_args): Likewise.
8237         (find_drap_reg): Likewise.
8238         (ix86_static_chain): Likewise.
8239         (x86_this_parameter): Likewise.
8240         (x86_output_mi_thunk): Likewise.
8241
8242 2011-04-01  Olivier Hainque  <hainque@adacore.com>
8243             Nicolas Setton  <setton@adacore.com>
8244             Eric Botcazou  <ebotcazou@adacore.com>
8245
8246         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8247         (add_gnat_descriptive_type_attribute): New function.
8248         (gen_array_type_die): Call it.
8249         (gen_enumeration_type_die): Likewise.
8250         (gen_struct_or_union_type_die): Likewise.
8251         (modified_type_die): Likewise.
8252         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8253         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8254         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8255
8256 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
8257
8258         PR bootstrap/48148
8259         * dwarf2out.c (resolve_addr): Don't call force_decl_die
8260         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8261
8262         Revert:
8263         2011-03-17  Richard Guenther  <rguenther@suse.de>
8264
8265         PR bootstrap/48148
8266         * lto-cgraph.c (input_overwrite_node): Clear the abstract
8267         origin for decls in other ltrans units.
8268         (input_varpool_node): Likewise.
8269
8270 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
8271
8272         PR middle-end/48335
8273         * expr.c (expand_assignment): Handle all possibilities
8274         if TO_RTX is CONCAT.
8275         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8276         (store_split_bit_field): If SUBREG_REG (op0) or
8277         op0 itself has smaller mode than word, return it
8278         for offset 0 and const0_rtx for out-of-bounds stores.
8279         If word is const0_rtx, skip it.
8280
8281 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
8282
8283         * config/h8300/h8300.c (print_operand_address): Rename to...
8284         (h8300_print_operand_address): ...this. Make static. Adjust comments.
8285         Call h8300_print_operand and h8300_print_operand_address instead of
8286         print_operand and print_operand_address. Declare.
8287         (print_operand): Renake to...
8288         (h8300_print_operand): ...this. Make static. Adjust comments.
8289         Call h8300_print_operand instead of print_operand. Declare.
8290         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8291         (h8300_register_move_cost): Likewise.
8292         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8293         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8294         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8295         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8296         * config/h8300/h8300-protos.h (print_operand): Delete.
8297         (print_operand_address): Delete.
8298
8299 2011-04-01  Richard Henderson  <rth@redhat.com>
8300
8301         PR 48400
8302         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8303         in strict mode before dwarf4.  Re-order tests to early out
8304         before switching sections.
8305
8306 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
8307
8308         * config/h8300/constraints.md: New file.
8309         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
8310         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8311         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8312         * config/h8300/predicates.md (bit_operand): Likewise.
8313         (incdec_operand): Use satisfies_constraint_M and
8314         satisfies_constraint_O.  Don't use C code block.
8315         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8316         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8317         (compute_mov_length): Use satisfies_constraint_G.
8318         (fix_bit_operand): Use satisfies_constraint_U.
8319         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8320         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8321         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8322         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8323         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8324         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8325         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8326         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8327         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8328         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8329         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8330         (EXTRA_MEMORY_CONSTRAINT): Delete.
8331
8332 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
8333             Michael Meissner  <meissner@linux.vnet.ibm.com>
8334
8335         PR target/48262
8336         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8337         operands, as per the specifications.
8338
8339         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8340         (vec_extract_evenv4sf): Ditto.
8341         (vec_extract_evenv8hi): Ditto.
8342         (vec_extract_evenv16qi): Ditto.
8343         (vec_extract_oddv4si): Ditto.
8344
8345 2011-03-31  Mark Wielaard  <mjw@redhat.com>
8346
8347         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8348         high_pc attribute if the CU has no associated code. Only output
8349         DW_AT_entry_pc for CU if not generating strict dwarf and
8350         dwarf_version < 4.
8351
8352 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
8353
8354         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8355         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8356         out of ...
8357         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8358         * final.c (final_start_function): Call the new function rather
8359         than using a NULL argument for dwarf2out_frame_debug.
8360
8361         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8362         that contains the prologue.
8363
8364         * haifa-sched.c (queue_insn): New arg REASON.  All callers
8365         changed.  Print it in debugging output.
8366
8367         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8368
8369         * sched-ebb.c (begin_schedule_ready): Remove second argument.
8370         Split most of the code into...
8371         (begin_move_insn): ... here.  New function.
8372         (ebb_sched_info): Add a pointer to it.
8373         * haifa-sched.c (scheduled_insns): New static variable.
8374         (sched_extend_ready_list): Allocate it.
8375         (schedule_block): Use it to record the order of scheduled insns.
8376         Perform RTL changes to move insns only after all scheduling
8377         decisions have been made.
8378         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8379         begin_move_insn field.
8380         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8381         * sched-int.h (struct haifa_sched_info): Remove second argument
8382         from begin_schedule_ready hook.  Add new member begin_move_insn.
8383         * sched-rgn.c (begin_schedule_ready): Remove second argument.
8384         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8385
8386         * haifa-sched.c (prune_ready_list): New function, broken out of
8387         schedule_block.
8388         (schedule_block): Use it.
8389
8390 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8391
8392         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8393
8394 2011-04-01  Kai Tietz  <ktietz@redhat.com>
8395
8396         * config.gcc (*-*-mingw*): Allow as option the
8397         posix threading model.
8398         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
8399         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8400         definition.
8401         (CPP_SPEC): Add pthread/no-pthread handling.
8402         (LIB_SPEC): Likewise.
8403         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8404         (LIB_SPEC): Likewise.
8405         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8406         flag to pass -pthread option for shared libgcc build.
8407         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8408         for shared libgcc build.
8409         * config/i386/t-mingw-pthread: New file.
8410         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8411         New define to enable use of library pthread by default.
8412         * config/i386/mingw.opt (pthread): New driver option.
8413         (no-pthread): New driver option.
8414         * config/i386/cygming.opt: Make sure trailing empty line is retained.
8415         * config/i386/mingw-w64.opt: Likewise.
8416
8417 2011-04-01  Gary Funck  <gary@intrepid.com>
8418
8419         * c-decl.c (grokdeclarator): Fix formatting.
8420
8421 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
8422
8423         * expr.c (emit_block_move_via_movmem): Use n_generator_args
8424         instead of n_operands.
8425         (set_storage_via_setmem): Likewise.
8426         * optabs.c (maybe_gen_insn): Likewise.
8427         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8428         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8429         (mips_expand_builtin_direct): Likewise.
8430         * config/spu/spu.c (expand_builtin_args): Likewise.
8431
8432 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
8433
8434         * recog.h (insn_data_d): Add n_generator_args.
8435         * genoutput.c (data): Likewise.
8436         (output_insn_data): Print it.
8437         (max_opno, num_dups): Delete.
8438         (scan_operands): Just fill in "d->operand[...]".
8439         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8440
8441 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
8442
8443         * gensupport.h (pattern_stats): New structure.
8444         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8445         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8446         (max_operand_1, max_operand_vec): Delete.
8447         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8448
8449 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
8450
8451         * emit-rtl.c (emit_pattern_after_setloc): New function.
8452         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8453         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8454         (emit_pattern_after): New function.
8455         (emit_insn_after, emit_jump_insn_after): Call it.
8456         (emit_call_insn_after, emit_debug_insn_after): Likewise.
8457         (emit_pattern_before_setloc): New function.
8458         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8459         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8460         Likewise.
8461         (emit_pattern_before): New function.
8462         (emit_insn_before, emit_jump_insn_before): Call it.
8463         (emit_call_insn_before, emit_debug_insn_before): Likewise.
8464
8465 2011-03-31  Richard Henderson  <rth@redhat.com>
8466
8467         * dwarf2out.c (dw_separate_line_info_ref): Remove.
8468         (dw_separate_line_info_entry): Remove.
8469         (enum dw_line_info_opcode): New.
8470         (dw_line_info_entry): Use it.
8471         (dw_line_info_table, dw_line_info_table_p): New.
8472         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8473         (line_info_table, line_info_label_num): Remove.
8474         (line_info_table_in_use): Remove.
8475         (separate_line_info_table): Remove.
8476         (separate_line_info_table_allocated): Remove.
8477         (separate_line_info_table_in_use): Remove.
8478         (LINE_INFO_TABLE_INCREMENT): Remove.
8479         (line_info_label_num): New.
8480         (cur_line_info_table): New.
8481         (text_section_line_info, cold_text_section_line_info): New.
8482         (separate_line_info): New.
8483         (SEPARATE_LINE_CODE_LABEL): Remove.
8484         (print_dwarf_line_table): Remove.
8485         (debug_dwarf): Don't dump it.
8486         (output_one_line_info_table): New.
8487         (output_line_info): Use it.
8488         (new_line_info_table): New.
8489         (set_cur_line_info_table): New.
8490         (dwarf2out_switch_text_section): Use it.
8491         (dwarf2out_begin_function): Likewise.
8492         (push_dw_line_info_entry): New.
8493         (dwarf2out_source_line): Rewrite for new line info tables.
8494         (dwarf2out_init): Remove dead initailizations.
8495
8496 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
8497
8498         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
8499         various flags.
8500         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8501         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8502         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8503         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8504         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8505         * opt-functions.awk (flag_init, switch_bit_fields): New.
8506         (switch_flags): Don't handle flags moved to bit-fields.  Don't
8507         generate CL_MISSING_OK or CL_SAVE.
8508         * optc-gen.awk: Update to generate bit-field output as well as
8509         flags field.
8510         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8511         bit-field instead of CL_REJECT_DRIVER flag.
8512         * opts-common.c (generate_canonical_option,
8513         decode_cmdline_option): Use bit-fields instead of CL_* flags.
8514         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8515         instead of CL_REJECT_NEGATIVE flag.
8516         * toplev.c (print_switch_values): Use cl_report bit-field instead
8517         of CL_REPORT flag.
8518
8519 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
8520
8521         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8522         a zero minimum index only if it is redundant.
8523
8524 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
8525
8526         PR rtl-optimization/48381
8527         * ira-color.c (assign_hard_reg): Use hard reg set intersection
8528         instead of ira_class_hard_reg_index for calculating conflicting
8529         hard registers.
8530
8531 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
8532
8533         * cprop.c: Clean up hash table building.
8534         (reg_avail_info): Remove.
8535         (oprs_available_p): Remove.
8536         (record_last_reg_set_info): Remove.
8537         (record_last_set_info): Remove.
8538         (reg_available_p): New function.
8539         (gcse_constant_p): Do not treat unfolded conditions as constants.
8540         (make_set_regs_unavailable): New function.
8541         (hash_scan_set): Simplify with new reg_available_p.
8542         (compute_hash_table_work): Traverse insns stream only once.
8543         Do not compute reg_avail_info. Traverse insns in reverse order.
8544         Record implicit sets after recording explicit sets from the block.
8545
8546 2011-03-31  Michael Matz  <matz@suse.de>
8547
8548         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8549
8550 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
8551
8552         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8553         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8554         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8555         (h8300_mode_dependent_address_p): New function.
8556         (h8300_get_index): Make static.
8557
8558 2011-03-31  Jeff Law  <law@redhat.com>
8559
8560         * reload1.c (elimination_effects): Fix typo in recent change.
8561
8562         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8563         typo potentially leading to null pointer dereference.
8564
8565         * caller-save.c (new_saved_hard_reg): Eliminate return value.
8566         (setup_save_areas): Corresponding changes to avoid useless
8567         assignments.
8568
8569         * jump.c (reversed_comparison_code_parts): Avoid successive return
8570         statements when REVERSE_CONDITION is defined.
8571
8572         * expr.c (expand_assignment): Avoid useless assignments.
8573         (expand_expr_real_1): Likewise.
8574         (expand_expr_real_2): Avoid useless statements.
8575
8576         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8577
8578         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8579
8580         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8581         statements.
8582
8583         * stmt.c (expand_expr_stmt): Avoid useless assignment.
8584
8585 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
8586
8587         PR target/47109
8588         * doc/tm.texi.in (TARGET_VERSION): Remove.
8589         * doc/tm.texi: Regenerate.
8590         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8591         * collect2.c (main): Don't use TARGET_VERSION.
8592         * mips-tdump.c (main): Don't use TARGET_VERSION.
8593         * mips-tfile.c (main): Don't use TARGET_VERSION.
8594         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8595         * config/rs6000/vxworksae.h: Remove.
8596         * config/alpha/alpha.h (TARGET_VERSION): Remove.
8597         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8598         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8599         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8600         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8601         * config/arm/arm.h (TARGET_VERSION): Remove.
8602         * config/arm/coff.h (TARGET_VERSION): Remove.
8603         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8604         * config/arm/elf.h (TARGET_VERSION): Remove.
8605         * config/arm/freebsd.h (TARGET_VERSION): Remove.
8606         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8607         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8608         * config/arm/pe.h (TARGET_VERSION): Remove.
8609         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8610         * config/arm/semi.h (TARGET_VERSION): Remove.
8611         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8612         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8613         * config/arm/vxworks.h (TARGET_VERSION): Remove.
8614         * config/avr/avr.h (TARGET_VERSION): Remove.
8615         * config/bfin/bfin.h (TARGET_VERSION): Remove.
8616         * config/fr30/fr30.h (TARGET_VERSION): Remove.
8617         * config/frv/frv.h (TARGET_VERSION): Remove.
8618         * config/h8300/h8300.h (TARGET_VERSION): Remove.
8619         * config/i386/cygwin.h (TARGET_VERSION): Remove.
8620         * config/i386/darwin.h (TARGET_VERSION): Remove.
8621         * config/i386/darwin64.h (TARGET_VERSION): Remove.
8622         * config/i386/djgpp.h (TARGET_VERSION): Remove.
8623         * config/i386/freebsd.h (TARGET_VERSION): Remove.
8624         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8625         * config/i386/gnu.h (TARGET_VERSION): Remove.
8626         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8627         * config/i386/i386elf.h (TARGET_VERSION): Remove.
8628         * config/i386/linux.h (TARGET_VERSION): Remove.
8629         * config/i386/linux64.h (TARGET_VERSION): Remove.
8630         * config/i386/lynx.h (TARGET_VERSION): Remove.
8631         * config/i386/mingw32.h (TARGET_VERSION): Remove.
8632         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8633         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8634         * config/i386/netware.h (TARGET_VERSION): Remove.
8635         * config/i386/nto.h (TARGET_VERSION): Remove.
8636         * config/i386/openbsd.h (TARGET_VERSION): Remove.
8637         * config/i386/vxworks.h (TARGET_VERSION): Remove.
8638         * config/ia64/elf.h (TARGET_VERSION): Remove.
8639         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8640         * config/ia64/hpux.h (TARGET_VERSION): Remove.
8641         * config/ia64/linux.h (TARGET_VERSION): Remove.
8642         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8643         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8644         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8645         * config/lm32/lm32.h (TARGET_VERSION): Remove.
8646         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8647         * config/m32c/m32c.h (TARGET_VERSION): Remove.
8648         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8649         * config/m32r/m32r.h (TARGET_VERSION): Remove.
8650         * config/m68k/linux.h (TARGET_VERSION): Remove.
8651         * config/m68k/m68k.h (TARGET_VERSION): Remove.
8652         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8653         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8654         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8655         * config/mep/mep.h (TARGET_VERSION): Remove.
8656         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8657         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8658         * config/mips/iris6.h (MACHINE_TYPE): Remove.
8659         * config/mips/linux.h (TARGET_VERSION): Remove.
8660         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8661         * config/mips/vxworks.h (TARGET_VERSION): Remove.
8662         * config/mmix/mmix.h (TARGET_VERSION): Remove.
8663         * config/mn10300/linux.h (TARGET_VERSION): Remove.
8664         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8665         * config/pa/pa.h (TARGET_VERSION): Remove.
8666         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8667         * config/picochip/picochip.h (TARGET_VERSION): Remove.
8668         * config/rs6000/aix.h (TARGET_VERSION): Remove.
8669         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8670         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8671         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8672         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8673         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8674         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8675         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8676         * config/rs6000/linux.h (TARGET_VERSION): Remove.
8677         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8678         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8679         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8680         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8681         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8682         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8683         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8684         * config/s390/linux.h (TARGET_VERSION): Remove.
8685         * config/s390/s390.h (TARGET_VERSION): Remove.
8686         * config/s390/tpf.h (TARGET_VERSION): Remove.
8687         * config/score/score.h (TARGET_VERSION): Remove.
8688         * config/sh/linux.h (TARGET_VERSION): Remove.
8689         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8690         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8691         * config/sh/sh.h (TARGET_VERSION): Remove.
8692         * config/sh/sh64.h (TARGET_VERSION): Remove.
8693         * config/sh/superh.h (TARGET_VERSION): Remove.
8694         * config/sh/vxworks.h (TARGET_VERSION): Remove.
8695         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8696         * config/sparc/linux.h (TARGET_VERSION): Remove.
8697         * config/sparc/linux64.h (TARGET_VERSION): Remove.
8698         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8699         TARGET_NAME32, TARGET_NAME): Remove.
8700         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8701         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8702         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8703         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8704         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8705         * config/spu/spu.h (TARGET_VERSION): Remove.
8706         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8707         * config/v850/v850.h (TARGET_VERSION): Remove.
8708         * config/vax/linux.h (TARGET_VERSION): Remove.
8709         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8710         * config/xtensa/elf.h (TARGET_VERSION): Remove.
8711         * config/xtensa/linux.h (TARGET_VERSION): Remove.
8712
8713 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
8714
8715         PR target/48142
8716         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8717         frame-related from frame-unrelated adjustments to the stack pointer.
8718
8719 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
8720
8721         * common.opt (fdebug-types-section): Move earlier.
8722         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8723
8724 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
8725
8726         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8727         var.
8728
8729 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
8730
8731         * tree.h (CASE_CHAIN): Define.
8732         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8733         (gimple_redirect_edge_and_branch): Likewise.
8734
8735 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
8736
8737         PR middle-end/48367
8738         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8739         calculation.
8740
8741 2011-03-30  Jeff Law  <law@redhat.com>
8742
8743         * PR bootstrap/48371
8744         * reload1.c (reload): Fix botch in last change.
8745
8746         * reload.h (struct reload): Fix typo introduced in last change.
8747
8748 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8749
8750         * config/arm/arm.opt (mhard-float, msoft-float): Mark
8751         Undocumented.  Remove help text.
8752         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8753         -mhard-float.
8754
8755 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8756
8757         * doc/options.texi (NegativeAlias): Document.
8758         (Alias): Mention NegativeAlias.
8759         * opt-functions.awk: Handle NegativeAlias.
8760         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8761         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8762         * opts.h (CL_NEGATIVE_ALIAS): Define.
8763         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8764         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8765         OPT_mspe_.
8766         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8767         Alias entries.
8768         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8769         mno-spe and mno-isel instead of mspe=no and -misel=no.
8770
8771 2011-03-29  Mark Wielaard  <mjw@redhat.com>
8772
8773         * common.opt (fdebug-types-section): New flag.
8774         * doc/invoke.texi: Document new -fno-debug-types-section flag.
8775         * dwarf2out.c (use_debug_types): New define.
8776         (struct die_struct): Mark die_id with GTY desc use_debug_types.
8777         (print_die): Guard output of type unit signatures using
8778         use_debug_types.
8779         (build_abbrev_table): Replace assert of dwarf_version >= 4
8780         with assert on use_debug_types.
8781         (size_of_die): Likewise.
8782         (unmark_dies): Likewise.
8783         (value_format): Decide AT_ref_external form on use_debug_types.
8784         (output_die): Replace dwarf_version version check guard with
8785         use_debug_types where appropriate.
8786         (modified_type_die): Likewise.
8787         (gen_reference_type_die): Likewise.
8788         (dwarf2out_start_source_file): Likewise.
8789         (dwarf2out_end_source_file): Likewise.
8790         (prune_unused_types_walk_attribs): Likewise.
8791         (dwarf2out_finish): Likewise.
8792
8793 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
8794
8795         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8796
8797 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8798
8799         PR rtl-optimization/48332
8800         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8801         mode of input operand N and modeN to its actual mode.
8802
8803 2011-03-30  Jeff Law  <law@redhat.com>
8804
8805         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8806         define accessor macro.
8807         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8808         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8809         (reg_equiv_init): Likewise.
8810         (reg_equivs_size): New variable.
8811         (reg_equiv_init_size): Remove.
8812         (allocate_initial_values): Move prototype to here from....
8813         * integrate.h (allocate_initial_values): Remove prototype.
8814         * integrate.c: Include reload.h.
8815         (allocate_initial_values): Corresponding changes.
8816         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8817         (fix_reg_equiv_init, no_equiv): Corresponding changes.
8818         (update_equiv_regs): Corresponding changes.
8819         (ira): Corresponding changes.
8820         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8821         (push_secondary_reload): Corresponding changes.
8822         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8823         (make_memloc, find_reloads_address): Corresponding changes.
8824         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8825         (find_reloads_address_1): Corresponding changes.
8826         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8827         (refers_to_regno_for_reload_p): Corresponding changes.
8828         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8829         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8830         * reload1.c: Include ggc.h.
8831         (grow_reg_equivs): New function.
8832         (replace_pseudos_in, reload): Corresponding changes.
8833         (calculate_needs_all_insns, alter_regs): Corresponding changes.
8834         (eliminate_regs_1, elimination_effects): Corresponding changes.
8835         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8836         (delete_output_reload): Likewise.
8837         * caller-save.c (mark_referenced_regs): Corresponding changes.
8838         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8839         * frv/predicates.md (frv_load_operand): Corresponding changes.
8840         * microblaze/microblaze.c (double_memory_operand): Corresponding
8841         changes.
8842         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8843         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8844         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8845         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8846         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8847         changes.
8848         * pa/pa.c (emit_move_sequence): Corresponding changes.
8849         * vax/vax.c (nonindexed_address_p): Corresponding changes.
8850
8851 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8852
8853         PR target/47551
8854         * config/arm/arm.c (coproc_secondary_reload_class): Handle
8855         structure modes.  Don't check neon_vector_mem_operand for
8856         vector or structure modes.
8857
8858 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8859             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8860
8861         PR target/43590
8862         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8863         operand 1 and reshuffle the operands to match.
8864         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8865
8866 2011-03-30  Christian Schüler  <cschueler@gmx.de>
8867
8868         PR driver/48208
8869         * config/c.opt (F): Added 'Driver' to -F option.
8870
8871         PR driver/48260
8872         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8873           handler function.
8874         * config/darwin.opt: Added '-arch' option.
8875
8876 2011-03-30  Nick Clifton  <nickc@redhat.com>
8877
8878         * config/rx/rx.md: Add peepholes and patterns to combine
8879         extending loads and simple arithmetic instructions.
8880         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8881         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8882         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8883         modes to use pre-decrement and post-increment addressing.
8884         (rx_is_restricted_memory_address): Add range checking of REG+INT
8885         addresses.
8886         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
8887         (rx_memory_move_cost): Adjust cost of stores.
8888         (rx_adjust_insn_length): New function.
8889
8890 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
8891
8892         PR c/48305
8893         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8894         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8895         matching arg00/arg01 types.
8896
8897 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
8898
8899         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8900         last_location to UNKNOWN_LOCATION.
8901
8902 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
8903
8904         PR target/48349
8905         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8906         FLOAT_SSE_REGS.
8907
8908 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8909             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8910
8911         PR bootstrap/48337
8912         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8913         Init(PROCESSOR_V7).
8914         (sparc_cpu): Likewise.
8915         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8916         PROCESSOR_V7.
8917
8918 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8919
8920         PR target/48336
8921         PR middle-end/48342
8922         PR rtl-optimization/48345
8923         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8924         hard regs for given mode from profitable regs when doing secondary
8925         allocation.
8926
8927 2011-03-29  Jeff Law  <law@redhat.com>
8928
8929         PR bootstrap/48327
8930         * tree-ssa-threadupdate.c (struct redirection_data): Remove
8931         do_not_duplicate field.
8932         (lookup_redirection_data): Corresponding changes.
8933         (create_duplicates): Always create a template block.
8934         (redirect_edges): Remove code which reused the original block
8935         when it was going to become unreachable code.
8936         (thread_block): Don't set do_not_duplicate field.
8937
8938 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
8939
8940         * lto-opts.c (register_user_option_p, lto_register_user_option):
8941         Make type argument unsigned.
8942         * lto-streamer.h (lto_register_user_option): Make type argument
8943         unsigned.
8944         * opth-gen.awk: Make CL_* macros unsigned.
8945         * opts-common.c (find_opt): Make lang_mask argument unsigned.
8946         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8947         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8948         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8949         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8950         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8951         (find_opt): Make lang_mask argument unsigned.
8952
8953 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8954
8955         PR rtl-optimization/48331
8956         PR rtl-optimization/48334
8957         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8958         for any used algorithm.
8959
8960 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8961
8962         * ira-conflicts.c (build_object_conflicts): Add unused attribute
8963         to parent_max.
8964
8965 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
8966
8967         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8968         (alpha_option_override): Don't set alpha_sr_alias_set.
8969         (emit_frame_store_1): Use gen_frame_mem rather than calling
8970         set_mem_alias_set.
8971         (alpha_expand_epilogue): Ditto.
8972
8973 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
8974
8975         PR tree-optimization/48290
8976         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8977         vectorization, check that relevant phis in the basic block after
8978         the inner loop are really inner loop's exit phis.
8979
8980 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
8981
8982         PR debug/48190
8983         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8984         (cached_dw_loc_list_def): New structure.
8985         (cached_dw_loc_list): New typedef.
8986         (cached_dw_loc_list_table): New variable.
8987         (cached_dw_loc_list_table_hash): New function.
8988         (cached_dw_loc_list_table_eq): Likewise.
8989         (add_location_or_const_value_attribute): Take a bool cache_p.
8990         Cache the list when the parameter is true.
8991         (gen_formal_parameter_die): Update caller.
8992         (gen_variable_die): Likewise.
8993         (dwarf2out_finish): Likewise.
8994         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8995         while generating debug info for the decl.
8996         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8997         (dwarf2out_init): Initialize cached_dw_loc_list_table.
8998         (resolve_addr): Cache the result of resolving a chain of
8999         location lists.
9000
9001 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
9002
9003         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9004         conflict object hard regset nodes have intersecting hard reg sets.
9005
9006         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9007         after regstat_init_n_sets_and_refs.
9008
9009         * ira.c: Add more comments at the top.
9010         (setup_stack_reg_pressure_class, setup_pressure_classes):
9011         Add comments how we compute the register pressure classes.
9012         (setup_allocno_and_important_classes): Add more comments.
9013         (setup_class_translate_array, reorder_important_classes)
9014         (setup_reg_class_relations): Add comments.
9015
9016         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
9017         start of the file.
9018
9019         * ira-color.c: Add 2011 to the Copyright line.
9020         (assign_hard_reg):  Add more comments.
9021         (improve_allocation): Ditto.
9022
9023         * ira-costs.c: Add 2011 to the Copyright line.
9024         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9025         comments.
9026         (setup_regno_cost_classes_by_mode): Ditto.
9027
9028         Initial patches from ira-improv branch:
9029
9030         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
9031
9032         * ira-build.c (ira_create_object): Remove initialization of
9033         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
9034         (ira_create_allocno): Remove initialization of
9035         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9036         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9037         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9038         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9039         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9040         Initialize ALLOCNO_ADD_DATA.
9041         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9042         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9043         ALLOCNO_REG.
9044         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
9045         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9046
9047         * ira.c (ira_reallocate): Remove.
9048         (setup_pressure_classes): Call
9049         ira_init_register_move_cost_if_necessary.  Use
9050         ira_register_move_cost instead of ira_get_register_move_cost.
9051         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9052         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9053
9054         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9055         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9056         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9057         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9058         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9059         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9060         Fix formatting.
9061         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9062         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9063         (struct allocno_color_data): New.
9064         (allocno_color_data_t): New typedef.
9065         (allocno_color_data): New definition.
9066         (ALLOCNO_COLOR_DATA): New macro.
9067         (struct object_color_data): New.
9068         (object_color_data_t): New typedef.
9069         (object_color_data): New definition.
9070         (OBJECT_COLOR_DATA): New macro.
9071         (update_copy_costs, calculate_allocno_spill_cost): Call
9072         ira_init_register_move_cost_if_necessary.  Use
9073         ira_register_move_cost instead of ira_get_register_move_cost.
9074         (move_spill_restore, update_curr_costs): Ditto.
9075         (allocno_spill_priority): Make it inline.
9076         (color_pass): Allocate and free allocno_color_dat and object_color_data.
9077         (struct coalesce_data, coalesce_data_t): New.
9078         (allocno_coalesce_data): New definition.
9079         (ALLOCNO_COALESCE_DATA): New macro.
9080         (merge_allocnos, coalesced_allocno_conflict_p): Use
9081         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9082         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9083         (coalesce_allocnos): Ditto.
9084         (setup_coalesced_allocno_costs_and_nums): Ditto.
9085         (collect_spilled_coalesced_allocnos): Ditto.
9086         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9087         (setup_slot_coalesced_allocno_live_ranges): Ditto.
9088         (coalesce_spill_slots): Ditto.
9089         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
9090         free allocno_coalesce_data.
9091
9092         * ira-conflicts.c: Fix formatting.
9093         (process_regs_for_copy): Call
9094         ira_init_register_move_cost_if_necessary.  Use
9095         ira_register_move_cost instead of ira_get_register_move_cost.
9096         (build_object_conflicts): Optimize.
9097
9098         * ira-costs.c (record_reg_classes): Optimize.  Call
9099         ira_init_register_move_cost_if_necessary.  Use
9100         ira_register_move_cost, ira_may_move_in_cost, and
9101         ira_may_move_out_cost instead of ira_get_register_move_cost and
9102         ira_get_may_move_cost.
9103         (record_address_regs): Ditto.
9104         (scan_one_insn): Optimize.
9105         (find_costs_and_classes): Optimize.
9106         (process_bb_node_for_hard_reg_moves): Call
9107         ira_init_register_move_cost_if_necessary.  Use
9108         ira_register_move_cost instead of ira_get_register_move_cost.
9109
9110         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9111         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9112         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9113         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9114         definitions.
9115         (ira_initiate_emit_data, ira_finish_emit_data)
9116         (create_new_allocno): New functions.
9117         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9118         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9119         Use ira_register_move_cost instead of ira_get_register_move_cost.
9120
9121         * ira-int.h: Fix some comments.
9122         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9123         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9124         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9125         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
9126         add_data.
9127         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
9128         bitfield after mode.  Make hard_regno a short int.  Make
9129         hard_regno short.  Remove first_coalesced_allocno and
9130         next_coalesced_allocno.  Move mem_optimized_dest_p,
9131         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9132         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
9133         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9134         temp, colorable_p.  Add new member add_data.
9135         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9136         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9137         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9138         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9139         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9140         (ALLOCNO_ADD_DATA): New macro.
9141         (ira_emit_data_t): New typedef.
9142         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
9143         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9144         from struct ira_allocno.
9145         (ALLOCNO_EMIT_DATA): New macro.
9146         (ira_allocno_emit_data, allocno_emit_reg): New.
9147         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9148         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9149         (OBJECT_ADD_DATA): New macro.
9150         (ira_reallocate): Remove.
9151         (ira_initiate_emit_data, ira_finish_emit_data): New.
9152         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9153         (ira_init_register_move_cost_if_necessary): New.
9154         (ira_object_conflict_iter_next): Merge into
9155         ira_object_conflict_iter_cond.
9156         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9157
9158         * ira-live.c (process_single_reg_class_operands): Call
9159         ira_init_register_move_cost_if_necessary.  Use
9160         ira_register_move_cost instead of ira_get_register_move_cost.
9161
9162         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
9163
9164         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9165
9166         * ira-costs.c: Fix formatting.
9167         (cost_classes, cost_classes_num): Remove.
9168         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9169         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9170         (cost_classes_del, cost_classes_htab): New.
9171         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9172         (initiate_regno_cost_classes, setup_cost_classes): New.
9173         (setup_regno_cost_classes_by_aclass): New.
9174         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9175         (record_reg_classes): Use regno_cost_classes instead of
9176         cost_classes.  Move checking opposite operand up.
9177         (record_address_regs): Use regno_cost_classes
9178         instead of cost_classes.
9179         (scan_one_insn): Ditto.  Use always general register.
9180         (print_allocno_costs): Use regno_cost_classes instead of
9181         cost_classes.
9182         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
9183         (find_costs_and_classes): Set up cost classes for each registers.
9184         Use also their mode for this.  Use regno_cost_classes instead of
9185         cost_classes.
9186         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9187         cost_classes.
9188         (free_ira_costs, ira_init_costs): Don't use cost_classes.
9189         (ira_costs, ira_set_pseudo_classes): Call
9190         initiate_regno_cost_classes and finish_regno_cost_classes.
9191
9192         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
9193
9194         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9195
9196         * target.def (ira_cover_classes): Remove.
9197
9198         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9199
9200         * doc/tm.texi.in: Ditto.
9201
9202         * ira-conflicts.c: Remove mentioning cover classes from the file.
9203         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
9204         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
9205
9206         * targhooks.c (default_ira_cover_classes): Remove.
9207
9208         * targhooks.h (default_ira_cover_classes): Ditto.
9209
9210         * haifa-sched.c: Remove mentioning cover classes from the file.
9211         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
9212         ira_pressure_classes and ira_pressure_classes_num instead of
9213         ira_reg_class_cover_size and ira_reg_class_cover.  Use
9214         sched_regno_pressure_class instead of sched_regno_cover_class.
9215         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9216         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9217
9218         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
9219         classes from the file.
9220         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9221         (struct object_hard_regs, struct object_hard_regs_node): New.
9222         (struct ira_object): New members profitable_hard_regs,
9223         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9224         (struct ira_allocno): Rename cover_class to aclass.  Rename
9225         cover_class_cost and updated_cover_class_cost to class_cost and
9226         updated_class_cost.  Remove splay_removed_p and
9227         left_conflict_size.  Add new members colorable_p.
9228         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9229         (ALLOCNO_COLORABLE_P): New macro.
9230         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9231         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9232         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9233         (OBJECT_...): Rename parameter C to O.
9234         (OBJECT_PROFITABLE_HARD_REGS): New macro.
9235         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9236         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9237         (struct target_ira_int): New members x_ira_max_memory_move_cost,
9238         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9239         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9240         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9241         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
9242         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
9243         x_ira_reg_class_subunion.
9244         (ira_max_memory_move_cost, ira_max_register_move_cost)
9245         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9246         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9247         (ira_important_class_nums, ira_reg_class_superunion): New macros.
9248         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9249         (ira_reg_class_union): Rename to ira_reg_class_subunion.
9250         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9251         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9252         (ira_tune_allocno_costs_and_cover_classes): Rename to
9253         ira_tune_allocno_costs.
9254         (ira_debug_hard_regs_forest): New.
9255         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9256         (ira_object_conflict_iter_next): Fix comments.
9257         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9258         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9259         cover_class to aclass.
9260         (ira_allocate_and_accumulate_costs): Ditto.
9261         (ira_allocate_and_set_or_copy_costs): Ditto.
9262
9263         * opts.c (decode_options): Remove ira_cover_class check.
9264
9265         * ira-color.c: Remove mentioning cover classes from the file.  Use
9266         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9267         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9268         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
9269         (splay-tree.h): Remove include.
9270         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9271         before copy_freq_compare_func.
9272         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9273         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9274         New definitions.
9275         (hard_regs_roots, hard_regs_node_vec): Ditto.
9276         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9277         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9278         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9279         (create_new_object_hard_regs_node): Ditto.
9280         (add_new_object_hard_regs_node_to_forest): Ditto.
9281         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9282         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9283         Ditto.
9284         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9285         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9286         (remove_unused_object_hard_regs_nodes): Ditto.
9287         (enumerate_object_hard_regs_nodes): Ditto.
9288         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9289         (object_hard_regs_subnode_t): Ditto.
9290         (struct object_hard_regs_subnode): Ditto.
9291         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9292         (setup_object_hard_regs_subnode_index): Ditto.
9293         (get_object_hard_regs_subnodes_num): Ditto.
9294         (form_object_hard_regs_nodes_forest): Ditto.
9295         (finish_object_hard_regs_nodes_tree): Ditto.
9296         (finish_object_hard_regs_nodes_forest): Ditto.
9297         (allocnos_have_intersected_live_ranges_p): Rename to
9298         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
9299         (pseudos_have_intersected_live_ranges_p): Rename to
9300         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
9301         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9302         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9303         (update_copy_costs): Remove assert.  Skip cost update if the hard
9304         reg does not belong the class.
9305         (assign_hard_reg): Process only profitable hard regs.
9306         (uncolorable_allocnos_num): Make it scalar.
9307         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9308         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9309         and ira_reg_class_max_nregs.
9310         (bucket_allocno_compare_func): Check frequency first.
9311         (sort_bucket): Add compare function as a parameter.
9312         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9313         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9314         (push_allocno_to_stack): Rewrite for checking new allocno
9315         colorability.
9316         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
9317         (push_only_colorable): Pass new parameter to sort_bucket.
9318         (push_allocno_to_spill): Remove.
9319         (allocno_spill_priority_compare): Make it inline and rewrite.
9320         (splay_tree_allocate, splay_tree_free): Remove.
9321         (allocno_spill_sort_compare): New function.
9322         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
9323         build and use splay tree.  Choose first allocno in uncolorable
9324         allocno bucket to spill.  Remove setting spill cost.
9325         (all_conflicting_hard_regs): Remove.
9326         (setup_allocno_available_regs_num): Check only profitable hard
9327         regs.  Print info about hard regs nodes.
9328         (setup_allocno_left_conflicts_size): Remove.
9329         (put_allocno_into_bucket): Don't call
9330         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
9331         (improve_allocation): New.
9332         (color_allocnos): Call setup_profitable_hard_regs,
9333         form_object_hard_regs_nodes_forest, improve_allocation,
9334         finish_object_hard_regs_nodes_forest.  Setup spill cost.
9335         (print_loop_title): Use pressure classes.
9336         (color_allocnso): Ditto.
9337         (do_coloring): Remove allocation and freeing splay_tree_node_pool
9338         and allocnos_for_spilling.
9339         (ira_sort_regnos_for_alter_reg): Don't setup members
9340         {first,next}_coalesced_allocno.
9341         (color): Remove allocating and freeing removed_splay_allocno_vec.
9342         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9343         prohibited_class_mode_regs.
9344
9345         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
9346         formatting.
9347         (update_allocno_pressure_excess_length): Use pressure classes.
9348         (inc_register_pressure, dec_register_pressure): Check for pressure
9349         class.
9350         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9351         pressure class.  Use ira_reg_class_nregs instead of
9352         ira_reg_class_max_nregs.
9353         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9354         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9355         (single_reg_class): Use ira_reg_class_nregs instead of
9356         ira_reg_class_max_nregs.
9357         (process_bb_node_lives): Use pressure classes.
9358
9359         * ira-emit.c: Remove mentioning cover classes from the file.  Use
9360         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
9361         (change_loop): Use pressure classes.
9362         (modify_move_list): Call ira_set_allocno_class instead of
9363         ira_set_allocno_cover_class.
9364
9365         * ira-build.c: Remove mentioning cover classes from the file.  Use
9366         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9367         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
9368         ALLOCNO_UPDATED_CLASS_COST instead of
9369         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
9370         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9371         (ira_create_allocno): Remove initialization of
9372         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
9373         ALLOCNO_COLORABLE_P.
9374         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9375         Update conflict regs for the objects.
9376         (create_cap_allocno): Remove assert.  Don't propagate
9377         ALLOCNO_AVAILABLE_REGS_NUM.
9378         (ira_free_allocno_costs): New function.
9379         (finish_allocno): Change a part of code into call of
9380         ira_free_allocno_costs.
9381         (low_pressure_loop_node_p): Use pressure classes.
9382         (object_range_compare_func): Don't compare classes.
9383         (setup_min_max_conflict_allocno_ids): Ditto.
9384
9385         * loop-invariant.c: Remove mentioning cover classes from the file.
9386         Use ira_pressure_classes and ira_pressure_classes_num instead of
9387         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
9388         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9389         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9390         Use reg_allocno_class instead of reg_cover_class.
9391         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9392         STACK_REG_COVER_CLASS.
9393         (get_regno_cover_class): Rename to get_regno_pressure_class.
9394         (move_loop_invariants): Initialize and finalize regstat.
9395
9396         * ira.c: Remove mentioning cover classes from the file.  Add
9397         comments about coloring without cover classes.  Use ALLOCNO_CLASS
9398         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
9399         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9400         setup_class_subset_and_memory_move_costs.
9401         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9402         (setup_cover_and_important_classes): Rename to
9403         setup_allocno_and_important_classes.
9404         (setup_class_translate_array): New.
9405         (setup_class_translate): Call it for allocno and pressure classes.
9406         (cover_class_order): Rename to allocno_class_order.
9407         (comp_reg_classes_func): Use ira_allocno_class_translate instead
9408         of ira_class_translate.
9409         (reorder_important_classes): Set up ira_important_class_nums.
9410         (setup_reg_class_relations): Set up ira_reg_class_superunion.
9411         (print_class_cover): Rename to print_classes.  Add parameter.
9412         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9413         Print pressure classes too.
9414         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
9415         setup_reg_subclasses.
9416         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9417         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9418         (setup_prohibited_class_mode_regs): Use
9419         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9420         (clarify_prohibited_class_mode_regs): New function.
9421         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9422         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9423         (ira_init_once): Initialize them.
9424         (free_register_move_costs): Process them.
9425         (ira_init): Move calls of find_reg_classes and
9426         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9427         Call clarify_prohibited_class_mode_regs.
9428         (ira_no_alloc_reg): Remove.
9429         (too_high_register_pressure_p): Use pressure classes.
9430
9431         * sched-deps.c: Remove mentioning cover classes from the file.
9432         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
9433         ira_pressure_classes and ira_pressure_classes_num instead of
9434         ira_reg_class_cover_size and ira_reg_class_cover.
9435         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9436         sched_regno_pressure_class instead of sched_regno_cover_class.
9437         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
9438         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9439
9440         * ira.h: Add 2010 to Copyright.
9441         (ira_no_alloc_reg): Remove external.
9442         (struct target_ira): Rename x_ira_hard_regno_cover_class,
9443         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9444         x_ira_class_translate to x_ira_hard_regno_allocno_class,
9445         x_ira_allocno_classes_num, x_ira_allocno_classes, and
9446         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
9447         x_ira_pressure_classes, x_ira_pressure_class_translate, and
9448         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
9449         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
9450         x_ira_no_alloc_regs.
9451         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9452         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9453         ira_allocno_classes_num and ira_allocno_classes.
9454         (ira_class_translate): Rename to ira_allocno_class_translate.
9455         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9456         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9457         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9458         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9459         (ira_no_alloc_regs): New.
9460
9461         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
9462         classes from the file.  Use ALLOCNO_CLASS instead of
9463         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
9464         ALLOCNO_COVER_CLASS_COST.
9465         (regno_cover_class): Rename to regno_aclass.
9466         (record_reg_classes): Use ira_reg_class_subunion instead of
9467         ira_reg_class_union.
9468         (record_address_regs): Check overflow.
9469         (scan_one_insn): Ditto.
9470         (print_allocno_costs): Print total mem cost fore regional allocation.
9471         (print_pseudo_costs): Use REG_N_REFS.
9472         (find_costs_and_classes): Use classes intersected with them on the
9473         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
9474         ira_reg_class_union.  Use ira_allocno_class_translate and
9475         regno_aclass instead of ira_class_translate and regno_cover_class.
9476         Modify code for finding regno_aclass.  Setup preferred classes for
9477         the next pass.
9478         (setup_allocno_cover_class_and_costs): Rename to
9479         setup_allocno_class_and_costs.  Use regno_aclass instead of
9480         regno_cover_class.  Use ira_set_allocno_class instead of
9481         ira_set_allocno_cover_class.
9482         (init_costs, finish_costs): Use regno_aclass instead of
9483         regno_cover_class.
9484         (ira_costs): Use setup_allocno_class_and_costs instead of
9485         setup_allocno_cover_class_and_costs.
9486         (ira_tune_allocno_costs_and_cover_classes): Rename to
9487         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
9488         by processing objects.  Use ira_reg_class_max_nregs instead of
9489         ira_reg_class_nregs.
9490
9491         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9492
9493         * sched-int.h: Remove mentioning cover classes from the file.
9494         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9495
9496         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
9497         classes from the file.
9498         (struct reg_pref): Rename coverclass into allocnoclass.
9499         (reg_cover_class): Rename to reg_allocno_class.
9500
9501         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9502
9503         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9504
9505         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9506
9507         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9508
9509         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9510
9511         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9512
9513         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9514
9515         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9516
9517         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9518
9519         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9520
9521         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9522         (i386_ira_cover_classes): Ditto.
9523
9524         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9525
9526         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9527
9528         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9529
9530         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9531
9532         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9533
9534         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9535
9536         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9537         (mips_ira_cover_classes): Ditto.
9538
9539         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9540
9541         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9542
9543         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9544
9545         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9546
9547         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9548
9549         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9550         (IRA_COVER_CLASSES_VSX): Ditto.
9551
9552         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9553         (rs6000_ira_cover_classes): Ditto.
9554
9555         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9556
9557         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9558
9559         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9560
9561         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9562
9563         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9564
9565         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9566
9567         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9568
9569         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9570
9571         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9572
9573         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9574
9575 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
9576
9577         PR debug/48253
9578         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9579         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9580         dw_fde_unlikely_section_end_label, cold_in_std_section,
9581         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9582         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9583         fields.
9584         (output_fde): Use dw_fde_second_{begin,end} if second is
9585         true, otherwise dw_fde_{begin,end}.
9586         (output_call_frame_info): Test dw_fde_second_begin != NULL
9587         instead of dw_fde_switched_sections.
9588         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9589         fields, initialize new fields.  Initialize in_std_section
9590         unconditionally from the first partition.
9591         (dwarf2out_end_epilogue): Don't override dw_fde_end when
9592         dw_fde_second_begin is non-NULL.
9593         (dwarf2out_switch_text_section): Stop initializing removed
9594         dw_fde_struct fields, initialize new fields, initialize
9595         also dw_fde_end here.  Set dw_fde_switch_cfi even when
9596         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
9597         (struct var_loc_list_def): Add last_before_switch field.
9598         (arange_table, arange_table_allocated, arange_table_in_use,
9599         ARANGE_TABLE_INCREMENT, add_arange): Removed.
9600         (size_of_aranges): Count !in_std_section and !second_in_std_section
9601         hunks in fdes, instead of looking at arange_table_in_use.
9602         (output_aranges): Add aranges_length argument, don't call
9603         size_of_aranges here.  Instead of using aranges_table*
9604         emit ranges for fdes when !in_std_section resp.
9605         !second_in_std_section.
9606         (dw_loc_list): Break ranges crossing section switch.
9607         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
9608         use dw_fde_second_end instead of dw_fde_end as end of last range.
9609         (gen_subprogram_die): Don't call add_arange.  Use
9610         dw_fde_{begin,end} for first partition and if switched
9611         section dw_fde_second_{begin,end} for the second.
9612         (var_location_switch_text_section_1,
9613         var_location_switch_text_section): New functions.
9614         (dwarf2out_begin_function): Initialize cold_text_section even
9615         when function_section () isn't text_section.
9616         (prune_unused_types): Don't walk arange_table.
9617         (dwarf2out_finish): Don't needlessly test
9618         flag_reorder_blocks_and_partition when testing cold_text_section_used.
9619         If info_section_emitted, call size_of_aranges and if it indicates
9620         non-empty .debug_aranges, call output_aranges with the computed
9621         size.  Stop using removed dw_fde_struct fields, use
9622         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9623         for second.
9624
9625         PR debug/48203
9626         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9627         create ENTRY_VALUE if incoming or address of incoming's MEM
9628         is a hard REG.
9629         * dwarf2out.c (mem_loc_descriptor): Don't emit
9630         DW_OP_GNU_entry_value of DW_OP_fbreg.
9631         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9632         on ENTRY_VALUE is able to find the canonical parameter VALUE.
9633         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9634         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9635         ENTRY_VALUE_EXPs.
9636         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9637         is a REG_P or MEM_P with REG_P address, compute hash directly
9638         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9639         (preserve_only_constants): Don't clear VALUES forwaring
9640         ENTRY_VALUE to some other VALUE.
9641
9642 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
9643
9644         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9645         instead of GEN_INT.
9646
9647 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
9648
9649         * cfgexpand.c (expand_gimple_cond): Always set the source location and
9650         block before expanding the statement.
9651         (expand_gimple_stmt_1): Likewise.  Set them here...
9652         (expand_gimple_stmt): ...and not here.  Tidy.
9653         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9654         unknown.
9655
9656 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
9657
9658         * Makefile.in: New rule for cprop.o.
9659         * gcse.c: Move constant/copy propagation to cprop.c.
9660         (compute_local_properties): Only handle expression tables.
9661         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9662         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9663         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9664         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9665         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9666         compute_cprop_data, find_used_regs, try_replace_reg,
9667         find_avail_set, cprop_jump, constprop_register, cprop_insn,
9668         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9669         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9670         find_bypass_set, reg_killed_on_edge, bypass_block,
9671         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9672         execute_rtl_cprop, pass_rtl_cprop): Move to...
9673         * cprop.c: ...here.  New file, constant/copy propagation for RTL
9674         moved from gcse.c to here with minor cleanups in duplicated code.
9675
9676 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
9677
9678         * config/i386/i386.c (flag_opts): Fix a typo in
9679         -mavx256-split-unaligned-store.
9680
9681 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
9682
9683         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9684         LIBCALL_VALUE): Remove macros.
9685         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9686         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9687         (h8300_function_value, h8300_libcall_value,
9688         h8300_function_value_regno_p): New functions.
9689
9690 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
9691
9692         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9693
9694 2011-03-28  Jeff Law  <law@redhat.com>
9695
9696         * tree-ssa-threadupdate.c (redirect_edges): Call
9697         create_edge_and_update_destination_phis as needed.
9698         (create_edge_and_update_destination_phis): Accept new BB argument.
9699         All callers updated.
9700         (thread_block): Do not update the profile when threading around
9701         intermediate blocks.
9702         (thread_single_edge): Likewise.
9703         (determine_bb_domination_status): If BB is not a successor of the
9704         loop header, return NONDOMINATING.
9705         (register_jump_thread): Note when we register a jump thread around
9706         an intermediate block.
9707         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9708         (thread_across_edge): Use it.
9709
9710 2011-03-28  Tristan Gingold  <gingold@adacore.com>
9711
9712         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9713         when for_return is 2.
9714
9715 2011-03-28  Jeff Law  <law@redhat.com>
9716
9717         * var-tracking.c (canonicalize_values_mark): Delete unused
9718         lhs assignment.
9719         (canonicalize_values_star, set_variable_part): Likewise.
9720         (clobber_variable_part, delete_variable_part): Likewise.
9721
9722 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
9723
9724         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9725
9726 2011-03-28  Martin Jambor  <mjambor@suse.cz>
9727
9728         * tree-inline.c (expand_call_inline): Do not check that destination
9729         node is analyzed.
9730         (optimize_inline_calls): Assert that destination node is analyzed.
9731         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9732         not call tree_lowering_passes.
9733         * cgraph.h (cgraph_analyze_function): Declare.
9734         * cgraphunit.c (cgraph_analyze_function): Make public.
9735
9736 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
9737
9738         * config/sparc/sparc-opts.h: New.
9739         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9740         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9741         (sparc_option_override): Store processor_type enumeration rather
9742         than string in cpu_default.  Remove name and enumeration from
9743         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
9744         without using sparc_select.  Use target_flags_explicit instead of
9745         fpu_option_set.
9746         * config/sparc/sparc.h (enum processor_type): Move to
9747         sparc-opts.h.
9748         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9749         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9750         HeaderInclude entry.
9751         (mcpu=, mtune=): Use Var and Enum.
9752         (sparc_processor_type): New Enum and EnumValue entries.
9753
9754 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9755             Iain Sandoe  <iains@gcc.gnu.org>
9756
9757         PR target/48245
9758         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9759
9760 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
9761
9762         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9763         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9764         Insert new statements at it in lieu of STMT.
9765         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9766         * tree-vect-stmts.c (vectorizable_store): Likewise.
9767         (vectorizable_load): Likewise.
9768
9769 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
9770
9771         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9772         (divtf3): Ditto.
9773         (multf3): Ditto.
9774         (subtf3): Ditto.
9775
9776 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9777
9778         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9779         unaligned 256bit load/store.
9780         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9781         (*avx_movdqu<avxmodesuffix>): Likewise.
9782
9783 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9784
9785         PR target/48288
9786         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9787         * config/pa/pa.md (iordi3): Use new predicate in expander.
9788         (iorsi3): Likewise.
9789
9790 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
9791
9792         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9793         FUNCTION_VALUE_REGNO_P): Remove macros.
9794         * config/mips/mips-protos.h (mips_function_value): Remove.
9795         * config/mips/mips.c (mips_function_value): Rename to...
9796         (mips_function_value_1): ... this. Make static.  Handle receiving
9797         the function type in 'fn_decl_or_type' argument.
9798         (mips_function_value, mips_libcall_value,
9799         mips_function_value_regno_p): New function.
9800         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9801         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9802
9803 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9804
9805         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9806         and -mavx256-split-unaligned-store.
9807         (ix86_option_override_internal): Split 32-byte AVX unaligned
9808         load/store by default.
9809         (ix86_avx256_split_vector_move_misalign): New.
9810         (ix86_expand_vector_move_misalign): Use it.
9811
9812         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9813         -mavx256-split-unaligned-store.
9814
9815         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9816         256bit load/store.  Generate unaligned store on misaligned memory
9817         operand.
9818         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9819         256bit load/store.
9820         (*avx_movdqu<avxmodesuffix>): Likewise.
9821
9822         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9823         -mavx256-split-unaligned-store.
9824
9825 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
9826
9827         PR target/38598
9828         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9829         Update commentary.
9830
9831 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
9832
9833         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9834         opno arguments with an expand_operand.  Use create_input_operand.
9835         (mips_prepare_builtin_target): Delete.
9836         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9837         functions.
9838         (mips_expand_builtin_direct): Use create_output_operand and
9839         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
9840         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
9841         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9842
9843 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
9844
9845         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9846         function.
9847         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9848
9849 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
9850
9851         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9852         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
9853         basic blocks and call commit_edge_insertions directly.
9854         (fixup_abnormal_edges): Move from here to...
9855         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
9856         on the edges and return whether some have actually been inserted.
9857         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9858         compensation code.
9859
9860 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
9861
9862         PR rtl-optimization/48144
9863         * sel-sched-ir.c (merge_history_vect): Factor out from ...
9864         (merge_expr_data): ... here.
9865         (av_set_intersect): Rename to av_set_code_motion_filter.
9866         Update all callers.  Call merge_history_vect when an expression
9867         is found in both sets.
9868         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9869
9870 2011-03-26  Alan Modra  <amodra@gmail.com>
9871
9872         * config/rs6000/predicates.md (word_offset_memref_op): Handle
9873         cmodel medium addresses.
9874         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9875         64-bit gpr loads and stores.
9876         (rs6000_secondary_reload_ppc64): New function.
9877         * config/rs6000/rs6000-protos.h: Declare it.
9878         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9879
9880 2011-03-26  Alan Modra  <amodra@gmail.com>
9881
9882         PR target/47487
9883         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9884         GNU Go in traceback table.
9885
9886 2011-03-25  Richard Henderson  <rth@redhat.com>
9887
9888         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9889         if there are exactly 6 operands.
9890         (set_storage_via_setmem): Similarly.
9891
9892 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9893
9894         * collect2.c (write_c_file_stat): Handle backslash
9895         as right-hand directory separator.
9896         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9897         checking just for slash.
9898         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9899         instead of checking for trailing slash.
9900         * gcc.c (record_temp_file): Use filename_cmp instead
9901         of strcmp.
9902         (do_spec_1): Likewise.
9903         (replace_outfile_spec_function): Likewise.
9904         (is_directory): Use filename_ncmp instead of strncmp.
9905         (print_multilib_info): Likewise.
9906         * gcov.c (find_source): Use filename_cmp instead
9907         instead of strcmp.
9908         (make_gcov_file_name): Fix order of slash/backslash
9909         checks.
9910         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9911         (add_standard_paths): Likewise.
9912         * mips-tfile.c (saber_stop): Handle backslash.
9913         * prefix.c (update_path): Use filename_ncmp instead of
9914         strncmp.
9915         * profile.c (output_location): Use filename_cmp instead
9916         of strcmp.
9917         * read-md.c (handle_toplevel_file): Handle backslash.
9918         * tlink.c (frob_extension):  Likewise.
9919         * tree-cfg.c (same_line_p): Use filename_cmp instead of
9920         strcmp.
9921         * tree-dump.c (dequeue_and_dump): Handle backslash.
9922         * tree.c (get_file_function_name): Likewise.
9923         * gengtype.c (read_input_list): Likewise.
9924         (get_file_realbasename): Likewise.
9925         (get_output_file_with_visibility): Use filename_cmp
9926         instead of strcmp.
9927
9928 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
9929
9930         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9931         case to VFPv1.
9932
9933 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
9934
9935         * fold-const.c (expr_location_or): New function.
9936         (fold_truth_not_expr): Call it.
9937
9938 2011-03-25  Jeff Law  <law@redhat.com>
9939
9940         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9941         va_end.
9942         * c-family/c-common.c (def_fn_type): Likewise.
9943         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9944         * emit-rtl.c (gen_rtvec): Likewise.
9945         * lto/lto-lang.c (def_fn_type): Likewise.
9946
9947 2011-03-25  Richard Guenther  <rguenther@suse.de>
9948
9949         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9950         also generate copies.
9951         (fini_copy_prop): Handle constant values properly.
9952
9953 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
9954
9955         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9956         mode size instead of bitsize with DWARF2_ADDR_SIZE.
9957         (hash_loc_operands, compare_loc_operands): Handle
9958         DW_OP_GNU_entry_value.
9959
9960 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9961
9962         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9963         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9964         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9965         comment and use macro TARGET_64BIT_MS_ABI instead.
9966         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9967         and change default behavior for 32-bit MS_ABI.
9968         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9969         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9970         32-bit, too.
9971         (ix86_cfun_abi): Likewise.
9972         (ix86_maybe_switch_abi): Adjust comment.
9973         (init_cumulative_args): Check for bit-ness in MS_ABI case.
9974         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9975         instead of checking for SYSV_ABI.
9976         (ix86_nsaved_sseregs): Likewise.
9977         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9978         to 16 bytes.
9979         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9980         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9981         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9982         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9983         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9984
9985 2011-03-25  Richard Guenther  <rguenther@suse.de>
9986
9987         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9988         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9989         (verify_gimple): Remove.
9990         * tree-cfg.c (verify_gimple_call): Merge verification
9991         from verify_stmts.
9992         (verify_gimple_phi): Merge verification from verify_stmts.
9993         (verify_gimple_label): New function.
9994         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9995         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9996         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9997         (verify_stmts): Rename to verify_gimple_in_cfg.
9998         (verify_gimple_in_cfg): New function.
9999         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10000         * tree-ssa.c (verify_ssa): Likewise.
10001         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10002
10003 2011-03-25  Richard Guenther  <rguenther@suse.de>
10004
10005         * passes.c (init_optimization_passes): Add FRE pass after
10006         early SRA.
10007
10008 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
10009             Andrew Stubbs  <ams@codesourcery.com>
10010
10011         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10012         for Cortex-A8.
10013         (arm_movdi_vfp_cortexa8): New pattern.
10014         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10015         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10016         instructions when tuning for Cortex-A8.  Set attribute "arch".
10017         * config/arm/arm.md: Move include arm-tune.md up a bit.
10018         (define_attr "arch"): Add "onlya8" and "nota8" values.
10019         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10020
10021 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
10022
10023         PR bootstrap/48282
10024         Revert:
10025         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
10026
10027         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10028         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
10029         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10030         * passes.c (init_optimization_passes): Move
10031         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10032
10033 2011-03-25  Kai Tietz  <ktietz@redhat.com>
10034
10035         * c-typeck.c (comptypes_internal): Replace target
10036         hook call of comp_type_attributes by version in tree.c file.
10037         * gimple.c (gimple_types_compatible_p_1): Likewise.
10038         * tree-ssa.c (useless_type_conversion_p): Likewise.
10039         * tree.c (build_type_attribute_qual_variant): Likewise.
10040         (attribute_value_equal): New static helper function.
10041         (comp_type_attributes): New function.
10042         (merge_attributes): Use attribute_value_equal for comparison.
10043         (attribute_list_contained): Likewise.
10044         * tree.h (comp_type_attributes): New prototype.
10045
10046 2011-03-25  Richard Guenther  <rguenther@suse.de>
10047
10048         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10049         of complex types at -O0.
10050         (verify_gimple_assign_binary): Likewise.
10051         (verify_gimple_assign_ternary): Likewise.
10052
10053 2011-03-24  Mark Wielaard  <mjw@redhat.com>
10054
10055         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10056         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10057
10058 2011-03-24  Mark Wielaard  <mjw@redhat.com>
10059
10060         PR debug/48041
10061         * dwarf2out.c (output_abbrev_section): Only write table when
10062         abbrev_die_table_in_use > 1.
10063
10064 2011-02-24  Richard Henderson  <rth@redhat.com>
10065
10066         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10067         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10068         (alpha_expand_unaligned_load_words): Use extql.
10069         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10070         (emit_insxl): Handle all modes for consistency.
10071
10072 2011-02-24  Richard Henderson  <rth@redhat.com>
10073
10074         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10075         (alpha_expand_unaligned_load): Likewise.
10076         (alpha_expand_unaligned_store): Likewise.
10077         (alpha_expand_unaligned_load_words): Likewise.
10078         (alpha_expand_unaligned_store_words): Likewise.
10079         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10080         (alpha_split_lock_test_and_set_12): Likewise.
10081         (print_operand, alpha_fold_builtin_extxx): Likewise.
10082         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10083         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10084         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10085         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10086         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10087         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10088         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10089         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10090         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10091         (extwl, extll, extql): Similarly.
10092         (inswh, inslh, insqh): Similarly.
10093         (mskbl, mskwl, mskll, mskql): Similarly.
10094         (mskwh, msklh, mskqh): Similarly.
10095
10096 2011-02-24  Richard Henderson  <rth@redhat.com>
10097
10098         * config/alpha/alpha.md (attribute isa): Add er, ner.
10099         (attribute enabled): Handle them.
10100         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10101
10102 2011-02-24  Richard Henderson  <rth@redhat.com>
10103
10104         * config/alpha/alpha.md (attribute isa): Add vms.
10105         (attribute enabled): Handle it.
10106         (*movsf): Merge *movsf_{nofix,fix,nofp}.
10107         (*movdf): Merge *movdf_{nofix,fix,nofp}.
10108         (*movtf): Rename from *movtf_internal for consistency.
10109         (*movsi): Merge with *movsi_nt_vms.
10110         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10111         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10112         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10113         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10114
10115 2011-02-24  Richard Henderson  <rth@redhat.com>
10116
10117         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10118         (extendqisi2, extendhisi2): Likewise.
10119         (extendqidi2): Simplify BWX/non-BWX expansions.
10120         (extendhidi2): Similarly.
10121
10122 2011-02-24  Richard Henderson  <rth@redhat.com>
10123
10124         * config/alpha/alpha.md (attribute isa): New.
10125         (attribute enabled): New.
10126         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10127         (zero_extendqisi2, zero_extendqidi2): Similarly.
10128         (zero_extendhisi2, zero_extendhidi2): Similarly.
10129         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10130
10131 2011-02-24  Richard Henderson  <rth@redhat.com>
10132
10133         * config/alpha/predicates.md (input_operand): Revert last change;
10134         update comment to mention 32-bit VMS rather than Windows.
10135
10136 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
10137
10138         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10139         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
10140         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10141         * passes.c (init_optimization_passes): Move
10142         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10143
10144 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
10145
10146         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10147
10148 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
10149
10150         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10151         correctly.
10152
10153 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
10154
10155         PR debug/48204
10156         * simplify-rtx.c (simplify_const_unary_operation): Call
10157         real_convert when changing mode class with FLOAT_EXTEND.
10158
10159 2011-03-24  Nick Clifton  <nickc@redhat.com>
10160
10161         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10162         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10163         * config/rx/rx.c (rx_option_override): Set align_jumps,
10164         align_loops and align_labels if not set by the user.
10165         (rx_align_for_label): New function.
10166         (rx_max_skip_for_label): New function.
10167         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10168         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10169         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10170         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10171         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10172
10173 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
10174
10175         PR rtl-optimization/48263
10176         * optabs.c (expand_binop_directly): Reinstate convert_modes code
10177         and original commutative_p handling.  Use maybe_gen_insn.
10178
10179 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10180
10181         * reload.c (find_reloads_subreg_address): Add address_reloaded
10182         parameter and return true there if the full address has been
10183         reloaded.
10184         (find_reloads_toplev): Pass address_reloaded flag.
10185         (find_reloads_address_1): Don't use address_reloaded parameter.
10186
10187 2011-03-24  Jeff Law  <law@redhat.com>
10188
10189         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10190         unused variable "ann".
10191         (remove_unused_locals): Likewise.
10192
10193         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10194         statement.
10195
10196         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10197         after it is freed.
10198
10199 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10200
10201         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10202         for invalid symbolic addresses.
10203         (s390_secondary_reload): Don't use s390_check_symref_alignment for
10204         larl operands.
10205
10206 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
10207
10208         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10209         the argument in calls to fold_truth_not_expr.
10210
10211 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
10212
10213         * tree.c (record_node_allocation_statistics): New function.
10214         (make_node_stat, copy_node_stat, build_string): Call it.
10215         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10216         (build1_stat, build_omp_clause): Likewise.
10217
10218 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
10219
10220         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10221         last commit.
10222
10223 2011-03-24  Richard Guenther  <rguenther@suse.de>
10224
10225         PR tree-optimization/48271
10226         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10227         blocks that still exist.
10228
10229 2011-03-24  Richard Guenther  <rguenther@suse.de>
10230
10231         PR tree-optimization/48270
10232         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10233         not free datarefs before ddrs.
10234
10235 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
10236
10237         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10238         from the address built for a reference with variable offset.
10239
10240 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
10241
10242         PR target/48237
10243         * config/i386/i386.md (*movdf_internal_rex64): Do not split
10244         alternatives that can be handled with movq or movabsq insn.
10245         (*movdf_internal): Disable for !TARGET_64BIT.
10246         (*movdf_internal_nointeger): Ditto.
10247         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10248
10249 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
10250
10251         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10252         (FUNCTION_ARG_ADVANCE): Likewise.
10253         * tm.texi.in: Change references to them to hook references.
10254         * tm.texi: Regenerate.
10255         * targhooks.c (default_function_arg): Eliminate check for target macro.
10256         (default_function_incoming_arg): Likewise.
10257         (default_function_arg_advance): Likewise.
10258         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10259         (function_arg_advance): Likewise.
10260         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10261
10262 2011-03-24  Richard Guenther  <rguenther@suse.de>
10263
10264         PR middle-end/48269
10265         * tree-object-size.c (addr_object_size): Do not double-account
10266         for MEM_REF offsets.
10267
10268 2011-03-24  Diego Novillo  <dnovillo@google.com>
10269
10270         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10271         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10272         (lto_input_data_block): Move from lto-opts.c.  Make extern.
10273         Update all users.
10274         (lto_input_string): Rename from input_string.  Make extern.
10275         Update all users.
10276         * lto-streamer-out.c (lto_output_string_with_length): Rename from
10277         output_string_with_length.
10278         Output 0 to indicate a non-NULL string.  Update all callers to
10279         not emit 0.
10280         (lto_output_string): Rename from output_string.  Make extern.
10281         Update all users.
10282         (lto_output_decl_state_streams): Make extern.
10283         (lto_output_decl_state_refs): Make extern.
10284         * lto-streamer.h (lto_input_string): Declare.
10285         (lto_input_data_block): Declare.
10286         (lto_output_string): Declare.
10287         (lto_output_string_with_length): Declare.
10288         (lto_output_decl_state_streams): Declare.
10289         (lto_output_decl_state_refs): Declare.
10290
10291 2011-03-24  Richard Guenther  <rguenther@suse.de>
10292
10293         PR tree-optimization/46562
10294         * tree.c (build_invariant_address): New function.
10295         * tree.h (build_invariant_address): Declare.
10296         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10297         a renamed function moved ...
10298         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10299         Take valueization callback parameter.
10300         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10301         * gimple-fold.h: New file.
10302         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10303         (ccp_fold, fold_const_aggregate_ref,
10304         fold_ctor_reference, fold_nonarray_ctor_reference,
10305         fold_array_ctor_reference, fold_string_cst_ctor_reference,
10306         get_base_constructor): Move ...
10307         * gimple-fold.c: ... here.
10308         (gimple_fold_stmt_to_constant_1): New function
10309         split out from ccp_fold.  Take a valueization callback parameter.
10310         Valueize all operands.
10311         (gimple_fold_stmt_to_constant): New wrapper function.
10312         (fold_const_aggregate_ref_1): New function split out from
10313         fold_const_aggregate_ref.  Take a valueization callback parameter.
10314         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10315         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10316         invariant POINTER_PLUS_EXPRs to invariant form.
10317         (vn_valueize): New function.
10318         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10319         * tree-vrp.c (vrp_valueize): New function.
10320         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10321         to fold statements to constants.
10322         * tree-ssa-pre.c (eliminate): Properly guard propagation of
10323         function declarations.
10324         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10325         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10326
10327 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
10328
10329         * config/h8300/predicates.md (jump_address_operand): Fix register
10330         mode check.
10331
10332 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
10333
10334         * doc/invoke.texi (max-stores-to-sink): Document.
10335         * params.h (MAX_STORES_TO_SINK): Define.
10336         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10337         if either vectorization or if-conversion is disabled.
10338         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10339         tree-vect-data-refs.c vect_equal_offsets.
10340         (dr_equal_offsets_p): New function.
10341         (find_data_references_in_bb): Remove static.
10342         * tree-data-ref.h (find_data_references_in_bb): Declare.
10343         (dr_equal_offsets_p): Likewise.
10344         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10345         (vect_drs_dependent_in_basic_block): Update calls to
10346         vect_equal_offsets.
10347         (vect_check_interleaving): Likewise.
10348         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10349         (cond_if_else_store_replacement): Rename to...
10350         (cond_if_else_store_replacement_1): ... this.  Change arguments and
10351         documentation.
10352         (cond_if_else_store_replacement): New function.
10353         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10354         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10355
10356 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
10357
10358         PR target/46934
10359         * config/arm/arm.md (casesi): Use the gen_int_mode() function
10360         to subtract lower bound instead of GEN_INT().
10361
10362 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
10363
10364         PR other/48179
10365         PR other/48221
10366         PR other/48234
10367         * doc/extend.texi (Alignment): Move section to match order in TOC.
10368         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10369         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10370
10371 2011-03-23  Jeff Law  <law@redhat.com>
10372
10373         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10374         before removing the edge.
10375
10376         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10377         it may have been freed by redirect_branch_edge or
10378         redirect_edge_succ_nodup.
10379
10380 2011-03-23  Richard Guenther  <rguenther@suse.de>
10381
10382         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10383         (check_va_list_escapes): Likewise.
10384         (check_all_va_list_escapes): Likewise.
10385
10386 2011-03-23  Richard Guenther  <rguenther@suse.de>
10387
10388         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10389         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10390         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10391         (alias.o): Likewise.
10392         (ipa-type-escape.o): Remove.
10393         (ipa-struct-reorg.o): Likewise.
10394         (GTFILES): Remove ipa-struct-reorg.c.
10395         * alias.c: Do not include ipa-type-escape.h.
10396         * tree-ssa-alias.c: Likewise.
10397         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10398         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10399         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10400         and ipa-type-escape passes.
10401         * tree-pass.h (pass_ipa_type_escape): Remove.
10402         (pass_ipa_struct_reorg): Likewise.
10403         * ipa-struct-reorg.h: Remove.
10404         * ipa-struct-reorg.c: Likewise.
10405         * ipa-type-escape.h: Likewise.
10406         * ipa-type-escape.c: Likewise.
10407         * doc/invoke.texi (-fipa-struct-reorg): Remove.
10408         (--param struct-reorg-cold-struct-ratio): Likewise.
10409         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10410         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10411         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10412
10413 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10414
10415         * config/s390/2084.md: Enable all insn reservations also for z9_ec
10416         cpu attribute value.
10417         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10418         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10419         * config/s390/s390.c (processor_flags_table): New constant array.
10420         (s390_handle_arch_option): Remove.
10421         (s390_handle_option): Remove s390_handle_arch_option invocations
10422         and OPT_mwarn_framesize_ handling.
10423         (s390_option_override): Remove s390_handle_arch_option invocation.
10424         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10425         warnings.
10426         * config/s390/s390.md (cpu attribute): Add z9_ec value.
10427         * config/s390/s390.opt (s390_tune, s390_arch)
10428         (march=): Replace s390_arch_option enum and values with
10429         processor_type.  Set variable name to s390_arch.  Set
10430         initialization value.
10431         (mtune=): Replace s390_arch_option with processor_type.  Set
10432         variable name to s390_tune.  Set initialization value.
10433
10434 2011-03-23  Julian Brown  <julian@codesourcery.com>
10435
10436         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10437         accesses which are not naturally aligned.
10438
10439 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
10440
10441         PR target/47553
10442         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10443
10444 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
10445
10446         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10447         parameter from "int" to "enum insn_code".
10448         (expand_operand_type): New enum.
10449         (expand_operand): New structure.
10450         (create_expand_operand): New function.
10451         (create_fixed_operand, create_output_operand): Likewise
10452         (create_input_operand, create_convert_operand_to): Likewise.
10453         (create_convert_operand_from, create_address_operand): Likewise.
10454         (create_integer_operand): Likewise.
10455         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10456         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10457         (expand_insn, expand_jump_insn): Likewise.
10458         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10459         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10460         (expand_movstr, expand_builtin___clear_cache): Likewise.
10461         (expand_builtin_lock_release): Likewise.
10462         * explow.c (allocate_dynamic_stack_space): Likewise.
10463         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
10464         and use the default handling in that case.
10465         * expmed.c (check_predicate_volatile_ok): Delete.
10466         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10467         (emit_cstore): Likewise.
10468         * expr.c (emit_block_move_via_movmem): Likewise.
10469         (set_storage_via_setmem, expand_assignment): Likewise.
10470         (emit_storent_insn, try_casesi): Likewise.
10471         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
10472         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10473         (expand_vec_shift_expr, expand_binop_directly): Likewise.
10474         (expand_twoval_unop, expand_twoval_binop): Likewise.
10475         (expand_unop_direct, emit_indirect_jump): Likewise.
10476         (emit_conditional_move, vector_compare_rtx): Likewise.
10477         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10478         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10479         (expand_sync_lock_test_and_set): Likewise.
10480         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
10481         (emit_unop_insn): Likewise.
10482         (expand_copysign_absneg): Change icode to an insn_code.
10483         (create_convert_operand_from_type): New function.
10484         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10485         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10486         (expand_insn, expand_jump_insn): Likewise.
10487         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10488         than const_int_operand for operand 2.
10489
10490 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10491
10492         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10493         if possible.
10494
10495 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10496
10497         * emit-rtl.c (emit_pattern_before_noloc): New function.
10498         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10499         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10500         (emit_pattern_after_noloc): New function.
10501         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10502         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10503
10504 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10505
10506         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10507         (__ffsDI2): Likewise.
10508
10509 2011-03-22  Richard Henderson  <rth@redhat.com>
10510
10511         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10512         of !TARGET_ABI_OPEN_VMS.
10513         (alpha_trampoline_init, alpha_start_function): Likewise.
10514         (alpha_expand_epilogue, alpha_file_start): Likewise.
10515         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10516         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10517         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10518         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10519         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10520
10521 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10522
10523         * config/s390/s390-opts.h: New.
10524         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10525         s390_arch_flags, s390_warn_framesize, s390_stack_size,
10526         s390_stack_guard): Remove.
10527         (s390_handle_arch_option): Return void.  Take enum
10528         s390_arch_option value instead of string and searching array.
10529         (s390_handle_option): Don't assert that global structures are in
10530         use.  Access variables via opts pointer.  Use error_at.  Don't use
10531         sscanf for -mstack-guard= or -mstack-size=.  Update call to
10532         s390_handle_arch_option.
10533         (s390_option_override): Update call to s390_handle_arch_option.
10534         (s390_emit_prologue): Use %d format for s390_stack_size in
10535         diagnostic.  Use %wd for HOST_WIDE_INT.
10536         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10537         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10538         * config/s390/s390.opt (config/s390/s390-opts.h): New
10539         HeaderInclude entry.
10540         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10541         s390_arch_flags, s390_warn_framesize): New Variable entries.
10542         (s390_arch_option): New Enum and EnumValue entries.
10543         (march=): Use Enum instead of Var.
10544         (mstack-guard=, mstack-size=): Use UInteger and Var.
10545         (mtune=): Use Enum.
10546
10547 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10548
10549         * config/score/score.c (score_handle_option): Don't assert that
10550         global structures are in use.  Access target_flags via opts
10551         pointer.  Use value of -march= option to determine target_flags
10552         settings.
10553         * config/score/score.opt (march=): Use Enum.
10554         (score_arch): New Enum and EnumValue entries.
10555
10556 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10557
10558         * config/mep/mep.c (option_mtiny_specified): Remove.
10559         (mep_option_override): Move register handling for -mivc2 from
10560         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
10561         instead of option_mtiny_specified.
10562         (mep_handle_option): Access target_flags via opts pointer.  Don't
10563         assert that global structures are in use.  Defer part of -mivc2
10564         handling and move it to mep_option_override.
10565         * config/mep/mep.opt (IVC2): New Mask entry.
10566         (mivc2): Use Var and Defer instead of Mask.
10567
10568 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10569
10570         * config/v850/v850-opts.h: New.
10571         * config/v850/v850.c (small_memory): Replace with
10572         small_memory_physical_max array.  Make that array static const.
10573         (v850_handle_memory_option): Take integer value of argument.  Take
10574         gcc_options pointer, option text and location.  Return void.
10575         Update for changes to small memory structures.
10576         (v850_handle_option): Access target_flags via opts pointer.  Don't
10577         assert that global structures are in use.  Update calls to
10578         v850_handle_memory_option.
10579         (v850_encode_data_area): Update references to small memory settings.
10580         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10581         (enum small_memory_type): Move to v850-opts.h.
10582         * config/v850/v850.opt (config/v850/v850-opts.h): New
10583         HeaderInclude entry.
10584         (small_memory_max): New Variable entry.
10585         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
10586         (mtda, mzda): Likewise.
10587
10588 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10589
10590         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10591         pointer.  Don't assert that global structures are in use.
10592
10593 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10594
10595         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10596         via opts pointer.  Don't assert that global structures are in use.
10597
10598 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10599
10600         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10601         (munix=93): Use Var.
10602         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10603         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10604         * config/pa/pa-opts.h: New.
10605         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10606         (pa_handle_option): Don't assert that global structures are in
10607         use.  Access target_flags via opts pointer.  Don't handle
10608         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10609         OPT_munix_98 here.
10610         (pa_option_override): Handle deferred OPT_mfixed_range_.
10611
10612 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10613
10614         * config/mn10300/mn10300-opts.h: New.
10615         * config/mn10300/mn10300.c (mn10300_processor,
10616         mn10300_tune_string): Remove.
10617         (mn10300_handle_option): Don't assert that global structures are
10618         in use.  Access mn10300_processor via opts pointer.  Don't handle
10619         OPT_mtune_ here.
10620         * config/mn10300/mn10300.h (enum processor_type): Move to
10621         mn10300-opts.h.
10622         (mn10300_processor): Remove.
10623         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10624         HeaderInclude entry.
10625         (mn10300_processor): New Variable entry.
10626         (mtune=): Use Var.
10627
10628 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10629
10630         * config/microblaze/microblaze.c: Don't include opts.h.
10631         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10632         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10633         (mno-clearbss): Use Var and Warn.
10634
10635 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10636
10637         * config/m32r/m32r-opts.h: New.
10638         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10639         (m32r_handle_option): Don't assert that global structures are in
10640         use.  Access target_flags and m32r_cache_flush_func via opts
10641         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
10642         OPT_mno_flush_trap here.
10643         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10644         include of m32r-opts.h.
10645         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10646         HeaderInclude entry.
10647         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10648         (mmodel=): Use Enum and Var.
10649         (m32r_model): New Enum and EnumValue entries.
10650         (mno-flush-trap): Use Var.
10651         (msdata=): Use Enum and Var.
10652         (m32r_sdata): New Enum and EnumValue entries.
10653
10654 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10655
10656         * config/m32c/m32c.c: Don't include opts.h.
10657         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10658         m32c_handle_option): Remove.
10659         (m32c_option_override): Check global_options_set.x_target_memregs
10660         instead of target_memregs_set.
10661         * config/m32c/m32c.h (target_memregs): Remove.
10662         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10663         variable.
10664
10665 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10666
10667         * config/iq2000/iq2000-opts.h: New.
10668         * config/iq2000/iq2000.c: Don't include opts.h.
10669         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10670         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10671         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10672         HeaderInclude entry.
10673         (iq2000_tune): New Variable entry.
10674         (march=): Add comment.  Use Enum.
10675         (iq2000_arch): New Enum and EnumValue entries.
10676         (mcpu=): Use Enum and Var.
10677         (iq2000_tune): New Enum and EnumValue entries.
10678
10679 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10680
10681         * config/ia64/ia64-opts.h: New.
10682         * config/ia64/ia64.c (ia64_tune): Remove.
10683         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10684         here.  Use error_at.
10685         (ia64_option_override): Handle deferred OPT_mfixed_range_.
10686         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10687         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10688         HeaderInclude entry.
10689         (ia64_tune): New Variable entry.
10690         (mfixed-range=): Use Defer and Var.
10691         (mtune=): Use Enum and Var.
10692         (ia64_tune): New Enum and EnumValue entries.
10693
10694 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10695
10696         * config/frv/frv-opts.h: New.
10697         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10698         frv-opts.h.
10699         (frv_cpu_type): Remove.
10700         * config/frv/frv.c: Don't include opts.h.
10701         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10702         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10703         (frv_cpu_type): New Variable entry.
10704         (frv_cpu): New Enum and EnumValue entries.
10705
10706 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10707
10708         * config/cris/cris.c (cris_handle_option): Access target_flags via
10709         opts pointer.  Don't assert that global structures are in use.
10710         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10711         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10712
10713 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10714
10715         * config/bfin/bfin-opts.h: New.
10716         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10717         bfin_si_revision, bfin_workarounds): Remove.
10718         (bfin_cpus): Make static const.
10719         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10720         not bfin_lib_id_given.
10721         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
10722         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10723         pointer. Use error_at.  Don't assert that global structures are in use.
10724         * config/bfin/bfin.h: Include bfin-opts.h.
10725         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10726         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10727         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10728         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10729         entries.
10730
10731 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10732
10733         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10734         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10735         or -msoft-float here.
10736         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10737         -msoft-float and -mhard-float.
10738         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10739         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10740         msoft-float.
10741         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10742         -msoft-float.
10743         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10744         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10745         not mhard-float.
10746         (LIBGCC_SPEC): Don't handle -msoft-float.
10747         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10748         -mhard-float.
10749         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10750         msoft-float.
10751         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10752         -mfloat-abi=*, not -msoft-float and -mhard-float.
10753         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10754         -msoft-float.
10755         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10756         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10757         mhard-float and msoft-float.
10758         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10759         mfloat-abi=soft in comments, not mhard-float and msoft-float.
10760         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10761         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10762         mhard-float.
10763         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10764         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10765         msoft-float.
10766         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10767         not mhard-float.
10768         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10769         not msoft-float.
10770
10771 2011-03-22  Richard Henderson  <rth@redhat.com>
10772
10773         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10774         TARGET_ABI_WINDOWS_NT.
10775         (alpha_output_function_end_prologue): Likewise.
10776         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10777         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10778         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10779         (trap, *movsi_nt_vms): Likewise.
10780         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10781         (*tablejump_osf_nt_internal): Remove.
10782         * config/alpha/predicates.md (input_operand): Only test Pmode.
10783
10784 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10785
10786         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10787         via opts pointer.  Use error_at.  Don't assert that global
10788         structures are in use.
10789
10790 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10791
10792         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10793         (ix86_handle_option): Access ix86_isa_flags and
10794         ix86_isa_flags_explicit via opts pointer.  Don't assert that
10795         global structures are in use.
10796         (ix86_function_specific_save, ix86_function_specific_restore):
10797         Update ix86_isa_flags_explicit field name.
10798         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10799         (ix86_isa_flags_explicit): Rename TargetSave entry to
10800         x_ix86_isa_flags_explicit.
10801
10802 2011-03-22  Richard Henderson  <rth@redhat.com>
10803
10804         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10805         (alpha_option_override, direct_return): Likewise.
10806         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10807         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10808         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10809         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10810         (alpha_expand_epilogue, alpha_end_function): Likewise.
10811         (alpha_init_libfuncs): Likewise.
10812         (struct machine_function): Remove unicosmk members.
10813         (print_operand) ['t']: Remove.
10814         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10815         unicosmk_output_module_name, unicosmk_output_common,
10816         current_section_align, unicosmk_output_text_section_asm_op,
10817         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10818         unicosmk_section_type_flags, unicosmk_unique_section,
10819         unicosmk_asm_named_section, unicosmk_insert_attributes,
10820         unicosmk_output_align, unicosmk_defer_case_vector,
10821         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10822         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10823         unicosmk_output_ssib, unicosmk_add_call_info_word,
10824         unicosmk_extern_head, unicosmk_output_default_externs,
10825         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10826         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10827         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10828         * config/alpha/alpha-protos.h: Update.
10829         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10830         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10831         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10832         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10833         (*mulsi_se, mulvsi3): Likewise.
10834         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10835         (*divmodsi_internal, call, call_value, realign): Likewise.
10836         (moddi3, umoddi3): Likewise; remove duplicate expander.
10837         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10838         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10839         (*movdi_nofix): Remove r/U alternative.
10840         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10841         * config/alpha/constraints.md ("U"): Remove.
10842         * config/alpha/predicates.md (call_operand"): Don't test
10843         TARGET_ABI_UNICOSMK.
10844
10845 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10846
10847         * target.def (handle_option): Take gcc_options and
10848         cl_decoded_option pointers and location_t.
10849         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10850         * doc/tm.texi: Regenerate.
10851         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10852         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10853         * lto-opts.c (lto_reissue_options): Generate option structure for
10854         targetm.handle_option call.
10855         * opts.c (target_handle_option): Update call to
10856         targetm.handle_option.  Remove assertions about values now passed
10857         down to hook.
10858         * targhooks.c (default_target_handle_option): New.
10859         * targhooks.h (default_target_handle_option): Declare.
10860         * config/alpha/alpha.c: Include opts.h.
10861         (alpha_handle_option): Update to new hook interface.
10862         * config/arm/arm.c: Include opts.h.
10863         (arm_handle_option): Update to new hook interface.
10864         * config/arm/t-arm (arm.o): Update dependencies.
10865         * config/bfin/bfin.c: Include opts.h.
10866         (bfin_handle_option): Update to new hook interface.
10867         * config/cris/cris.c: Include opts.h.
10868         (cris_handle_option): Update to new hook interface.
10869         * config/frv/frv.c: Include opts.h.
10870         (frv_handle_option): Update to new hook interface.
10871         * config/i386/i386.c: Include opts.h.
10872         (ix86_handle_option): Update to new hook interface.
10873         (ix86_valid_target_attribute_inner_p): Generate option structure
10874         for call to ix86_handle_option.
10875         * config/i386/t-i386 (i386.o): Update dependencies.
10876         * config/ia64/ia64.c: Include opts.h.
10877         (ia64_handle_option): Update to new hook interface.
10878         * config/ia64/t-ia64 (ia64.o): Update dependencies.
10879         * config/iq2000/iq2000.c: Include opts.h.
10880         (iq2000_handle_option): Update to new hook interface.
10881         * config/m32c/m32c.c: Include opts.h.
10882         (m32c_handle_option): Update to new hook interface.
10883         * config/m32r/m32r.c: Include opts.h.
10884         (m32r_handle_option): Update to new hook interface.
10885         * config/m68k/m68k.c: Include opts.h.
10886         (m68k_handle_option): Update to new hook interface.
10887         * config/mep/mep.c: Include opts.h.
10888         (mep_handle_option): Update to new hook interface.
10889         * config/microblaze/microblaze.c: Include opts.h.
10890         (microblaze_handle_option): Update to new hook interface.
10891         * config/mips/mips.c: Include opts.h.
10892         (mips_handle_option): Update to new hook interface.
10893         * config/mn10300/mn10300.c: Include opts.h.
10894         (mn10300_handle_option): Update to new hook interface.
10895         * config/pa/pa.c: Include opts.h.
10896         (pa_handle_option): Update to new hook interface.
10897         * config/pdp11/pdp11.c: Include opts.h.
10898         (pdp11_handle_option): Update to new hook interface.
10899         * config/rs6000/rs6000.c: Include opts.h.
10900         (rs6000_handle_option): Update to new hook interface.
10901         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10902         * config/rx/rx.c: Include opts.h.
10903         (rx_handle_option): Update to new hook interface.
10904         * config/s390/s390.c: Include opts.h.
10905         (s390_handle_option): Update to new hook interface.
10906         * config/score/score.c: Include opts.h.
10907         (score_handle_option): Update to new hook interface.
10908         * config/sh/sh.c: Include opts.h.
10909         (sh_handle_option): Update to new hook interface.
10910         * config/sparc/sparc.c: Include opts.h.
10911         (sparc_handle_option): Update to new hook interface.
10912         * config/v850/v850.c: Include opts.h.
10913         (v850_handle_option): Update to new hook interface.
10914
10915 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10916
10917         * gcc.c (driver_unknown_option_callback): Only permit and save
10918         unknown -Wno- options.
10919         (driver_wrong_lang_callback): Save options directly instead of via
10920         driver_unknown_option_callback.
10921
10922 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
10923
10924         * combine.c (simplify_set): Try harder to find the best CC mode when
10925         simplifying a nested COMPARE on the RHS.
10926
10927 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10928
10929         * config/alpha/gnu.h: Remove.
10930         * config/arc: Remove directory.
10931         * config/arm/netbsd.h: Remove.
10932         * config/arm/t-pe: Remove.
10933         * config/crx: Remove directory.
10934         * config/i386/netbsd.h: Remove.
10935         * config/m68hc11: Remove directory.
10936         * config/m68k/uclinux-oldabi.h: Remove.
10937         * config/mcore/mcore-pe.h: Remove.
10938         * config/mcore/t-mcore-pe: Remove.
10939         * config/netbsd-aout.h: Remove.
10940         * config/rs6000/gnu.h: Remove.
10941         * config/sh/sh-symbian.h: Remove.
10942         * config/sh/symbian-base.c: Remove.
10943         * config/sh/symbian-c.c: Remove.
10944         * config/sh/symbian-cxx.c: Remove.
10945         * config/sh/symbian-post.h: Remove.
10946         * config/sh/symbian-pre.h: Remove.
10947         * config/sh/t-symbian: Remove.
10948         * config/svr3.h: Remove.
10949         * config/vax/netbsd.h: Remove.
10950         * config.build: Don't handle i[34567]86-*-pe.
10951         * config.gcc: Remove handling of deprecations for most deprecated
10952         targets.
10953         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10954         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10955         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10956         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10957         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10958         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10959         Remove cases.
10960         * config.host: Don't handle i[34567]86-*-pe.
10961         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10962         (ASM_SPEC32): Don't handle -mcall-gnu.
10963         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10964         -mcall-gnu.
10965         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10966         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10967         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10968         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10969         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10970         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10971         conditional on SYMBIAN.
10972         * configure.ac: Don't handle powerpc*-*-gnu*.
10973         * configure: Regenerate.
10974         * doc/extend.texi (interrupt attribute): Don't mention CRX.
10975         * doc/install-old.texi (m6811, m6812): Don't mention.
10976         * doc/install.texi (arc-*-elf*): Don't document multilib option.
10977         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10978         (m68k-uclinuxoldabi): Don't mention.
10979         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10980         Remove.
10981         (-mcall-gnu): Remove.
10982         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10983         families): Remove constraint documentation.
10984
10985 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
10986
10987         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10988         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10989         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10990
10991 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10992
10993         PR target/48226
10994         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10995         vector when peeking at the next token for vector, don't expand the
10996         keywords.
10997
10998 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
10999
11000         * config/avr/avr-protos.h (expand_epilogue): Change prototype
11001         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11002         * config/avr/avr.c (init_cumulative_args)
11003         (avr_function_arg_advance): Use it.
11004         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11005         sibcall epilogues.
11006         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11007         (avr_function_ok_for_sibcall): ...this new function.
11008         (avr_lookup_function_attribute1): New static Function.
11009         (avr_naked_function_p, interrupt_function_p)
11010         (signal_function_p, avr_OS_task_function_p)
11011         (avr_OS_main_function_p): Use it.
11012         * config/avr/avr.md ("sibcall", "sibcall_value")
11013         ("sibcall_epilogue"): New expander.
11014         ("*call_insn", "*call_value_insn"): New insn.
11015         ("call_insn", "call_value_insn"): Remove
11016         ("call", "call_value", "epilogue"): Change expander to handle
11017         sibling calls.
11018
11019 2011-03-21  Nick Clifton  <nickc@redhat.com>
11020
11021         * doc/invoke.texi (Overall Options): Move closing brace to end of
11022         options list.
11023         (Optimization Options): Add missing @gol.
11024         (Directory Options): Likewise.
11025         (i386 and x86-64 Options): Likewise.
11026         (RS6000 and PowerPC Options): Likewise.
11027         (i386 and x86-64 Windows Options): Likewise.
11028         (V850 Options): Add text missing from descriptions.
11029
11030 2011-03-22  Richard Henderson  <rth@redhat.com>
11031
11032         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11033         (avr_incoming_return_addr_rtx): New.
11034         (emit_push_byte): New.
11035         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
11036         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
11037         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
11038         (emit_pop_byte): New.
11039         (expand_epilogue): Use it.  Pop frame pointer by bytes.
11040         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11041         (INCOMING_RETURN_ADDR_RTX): New.
11042         (INCOMING_FRAME_SP_OFFSET): New.
11043         (ARG_POINTER_CFA_OFFSET): New.
11044         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11045         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11046         (pophi): Remove.
11047
11048         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11049
11050 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
11051
11052         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11053         (FUNCTION_ARG_ADVANCE): Likewise.
11054         * tm.texi.in: Change references to them to hook references.
11055         * tm.texi: Regenerate.
11056         * targhooks.c (default_function_arg): Eliminate check for target
11057         macro.
11058         (default_function_incoming_arg): Likewise.
11059         (default_function_arg_advance): Likewise.
11060         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11061         (function_arg_advance): Likewise.
11062         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11063
11064 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
11065
11066         * tree.c (build_call_1): New function.
11067         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11068
11069 2011-03-22  Richard Guenther  <rguenther@suse.de>
11070
11071         PR tree-optimization/48228
11072         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11073         for single-arg PHIs.
11074
11075 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
11076
11077         PR rtl-optimization/48143
11078         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11079         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11080         sse2_cvtps2pd): Likewise.
11081
11082 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11083
11084         * recog.c (canonicalize_change_group): Use validate_unshare_change.
11085
11086 2011-03-22  Richard Guenther  <rguenther@suse.de>
11087
11088         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11089         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11090         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11091         and REALIGN_LOAD_EXPR.
11092         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11093         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11094         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11095         DOT_PROD_EXPR case ...
11096         (expand_expr_real_2): ... here.
11097         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11098         and REALIGN_LOAD_EXPR.
11099         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11100         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11101         (vect_create_epilog_for_reduction): Likewise.
11102         (vectorizable_reduction): Likewise.
11103         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11104         * tree-vect-stmts.c (vectorizable_load): Likewise.
11105
11106 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
11107
11108         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11109
11110 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11111
11112         * config/s390/s390.c (s390_delegitimize_address): Fix offset
11113         handling for PLTOFF/GOTOFF.
11114
11115 2011-03-22  Nick Clifton  <nickc@redhat.com>
11116
11117         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11118         trailing backslash from the end of the macro definition.
11119
11120 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11121
11122         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11123         and PLT unspecs.
11124
11125 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
11126
11127         * expr.h (prepare_operand): Move to...
11128         * optabs.h (prepare_operand): ...here and change the insn code
11129         parameter from "int" to "enum insn_code".
11130         (insn_operand_matches): Declare.
11131         * expr.c (init_expr_target): Use insn_operand_matches.
11132         (compress_float_constant): Likewise.
11133         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11134         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11135         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11136         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11137         Likewise.
11138         (gen_cond_trap): Likewise.
11139         (prepare_operand): Likewise.  Change icode to an insn_code.
11140         (insn_operand_matches): New function.
11141         * reload.c (find_reloads_address_1): Use insn_operand_matches.
11142         * reload1.c (gen_reload): Likewise.
11143         * targhooks.c (default_secondary_reload): Likewise.
11144
11145 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
11146
11147         * config/alpha/alpha.md (unspec): New define_c_enum.
11148         (unspecv): Ditto.
11149
11150 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
11151
11152         PR debug/48214
11153         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11154         between a call and its CALL_ARG_LOCATION note.
11155
11156 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
11157
11158         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11159
11160 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
11161
11162         PR c/42544
11163         PR c/48197
11164         * c-common.c (shorten_compare): If primopN is first sign-extended
11165         to opN and then zero-extended to result type, set primopN to opN.
11166
11167 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
11168
11169         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11170         for barrier handlers.
11171
11172 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
11173
11174         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11175         UNSPEC constants to be in the unspec enumeration, and redefine
11176         all UNSPECV constants to be in the unspecv enumeration, so that
11177         dumps print which unspec/unspec_volatile this is.
11178         * config/rs6000/vector.md (UNSPEC_*): Ditto.
11179         * config/rs6000/paired.md (UNSPEC_*): Ditto.
11180         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11181         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11182         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11183
11184         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11185         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11186         UNSPECV_LWSYNC, since these are used as unspec_volatile.
11187         * config/rs6000/sync.md (isync, lwsync): Ditto.
11188
11189 2011-03-21  Richard Guenther  <rguenther@suse.de>
11190
11191         * params.def (lto-min-partition): Fix typo.
11192
11193 2011-03-21  Richard Guenther  <rguenther@suse.de>
11194
11195         PR c/47939
11196         * c-decl.c (grokdeclarator): Drop to the main variant only
11197         for array types.  Drop flag_gen_aux_info check.
11198
11199 2011-03-21  Richard Guenther  <rguenther@suse.de>
11200
11201         PR translation/47911
11202         * params.def (lto-partitions): Fix typo.
11203         (lto-min-partition): Fix wording.
11204
11205 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
11206
11207         * config/rs6000/t-freebsd: Remove duplication from file.
11208
11209 2011-03-21  Richard Guenther  <rguenther@suse.de>
11210
11211         PR middle-end/47661
11212         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11213
11214 2011-03-21  Richard Guenther  <rguenther@suse.de>
11215
11216         PR lto/48210
11217         * params.def (lto-partitions): Require at least 1 partition.
11218
11219 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11220
11221         * gthr-solaris.h: Remove.
11222         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11223         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11224         (LIB_SPEC): Likewise.
11225         * config/sol2.opt (threads): Remove.
11226         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11227         (sparc*-*-solaris2*): Likewise.
11228         * configure.ac (enable_threads): Enable solaris support.
11229         * configure: Regenerate.
11230         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11231         * doc/install.texi (Configuration, --enable-threads=lib): Remove
11232         solaris.
11233
11234 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11235
11236         * config.gcc: Obsolete *-*-solaris2.8*.
11237         * doc/install.texi (Specific, *-*-solaris2*): Document it.
11238
11239 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11240
11241         PR bootstrap/48135
11242         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11243         reference.  Solaris 8 perl works.
11244
11245 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11246
11247         PR bootstrap/48135
11248         * doc/install.texi (Prerequisites): Move jar etc. up.
11249         Explain support library version requirements.
11250
11251 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11252
11253         PR bootstrap/48135
11254         * doc/install.texi (Prerequisites): Move Perl to build
11255         requirements.  Always necessary on Solaris 2 with Sun ld.
11256
11257 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11258
11259         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11260         binutils 2.21.
11261         (Specific, i?86-*-solaris2.[89]): Likewise.
11262         (Specific, i?86-*-solaris2.10): Likewise.
11263         (Specific, mips-sgi-irix6): Likewise.
11264         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11265         Update for binutils 2.21.
11266
11267 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11268
11269         * configure.ac (gcc_cv_lto_plugin): Fix typo.
11270         Allow -fuse-linker-plugin for non-default plugin linker.
11271         * configure: Regenerate.
11272
11273 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
11274
11275         PR bootstrap/48167
11276         * gengtype.c (files_rules): Added rule for cp/parser.h.
11277
11278 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
11279
11280         PR target/48213
11281         * config/s390/s390.c (s390_delegitimize_address): Don't call
11282         lowpart_subreg if orig_x has BLKmode.
11283
11284 2011-03-21  Kai Tietz  <ktietz@redhat.com>
11285
11286         PR target/12171
11287         * doc/plugins.texi: Adjust documentation for plugin register_callback.
11288         * tree.h (attribute_spec): Add new member affects_type_identity.
11289         * attribs.c (empty_attribute_table): Adjust attribute_spec
11290         initializers.
11291         * config/alpha/alpha.c: Likewise.
11292         * config/arc/arc.c: Likewise.
11293         * config/arm/arm.c: Likewise.
11294         * config/avr/avr.c: Likewise.
11295         * config/bfin/bfin.c: Likewise.
11296         * config/crx/crx.c: Likewise.
11297         * config/darwin.h: Likewise.
11298         * config/h8300/h8300.c: Likewise.
11299         * config/i386/cygming.h: Likewise.
11300         * config/i386/i386.c: Likewise.
11301         * config/ia64/ia64.c: Likewise.
11302         * config/m32c/m32c.c: Likewise.
11303         * config/m32r/m32r.c: Likewise.
11304         * config/m68hc11/m68hc11.c: Likewise.
11305         * config/m68k/m68k.c: Likewise.
11306         * config/mcore/mcore.c: Likewise.
11307         * config/mep/mep.c: Likewise.
11308         * config/microblaze/microblaze.c: Likewise.
11309         * config/mips/mips.c: Likewise.
11310         * config/rs6000/rs6000.c: Likewise.
11311         * config/rx/rx.c: Likewise.
11312         * config/sh/sh.c: Likewise.
11313         * config/sol2.h: Likewise.
11314         * config/sparc/sparc.c: Likewise.
11315         * config/spu/spu.c: Likewise.
11316         * config/stormy16/stormy16.c: Likewise.
11317         * config/v850/v850.c: Likewise.
11318
11319 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
11320
11321         * simplify-rtx.c (simplify_binary_operation_1): Handle
11322         (xor (and A B) C) case when B and C are both constants.
11323
11324 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
11325
11326         * tree-dfa.c (add_referenced_var): Fix typo in comment.
11327
11328 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
11329
11330         PR bootstrap/48168
11331         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11332
11333 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
11334
11335         PR rtl-optimization/48156
11336         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11337         assume df and df_lr are not NULL.
11338
11339 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11340
11341         PR debug/48023
11342         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11343         between a call and its CALL_ARG_LOCATION note.
11344
11345 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
11346
11347         PR debug/48178
11348         * config/sh/sh.c (find_barrier): Don't emit a constant pool
11349         between a call and its corresponding CALL_ARG_LOCATION note.
11350
11351 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
11352
11353         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11354         instead of loop. Use HARD_REGISTER_NUM_P predicate.
11355         * haifa-sched.c (setup_ref_regs): Ditto.
11356         * caller-save.c (add_used_regs_1): Ditto.
11357         * dse.c (look_for_hardregs): Ditto.
11358         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11359         * sched-rgn.c (check_live_1): Ditto.
11360
11361 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
11362
11363         * c-decl.c (diagnose_mismatched_decls): Give an error for
11364         redefining a typedef with variably modified type.
11365
11366 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
11367
11368         * c-decl.c (grokfield): Don't allow typedefs for structures or
11369         unions with no tag by default.
11370         * doc/extend.texi (Unnamed Fields): Update.
11371
11372 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
11373
11374         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11375         Rewrite using indirect functions.
11376         (lwp_slwpcb): Ditto.
11377         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11378         (avx_vinsertf128<mode>): Ditto.
11379
11380 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11381
11382         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11383         unspecs.
11384
11385 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11386
11387         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11388         splitting between a call and its corresponding CALL_ARG_LOCATION note.
11389
11390 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
11391
11392         PR rtl-optimization/48170
11393         * gcse.c (hoist_code): Remove bogus asserts.
11394
11395 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
11396
11397         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11398         computation for prologue/epilogue.
11399
11400 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11401
11402         * Makefile.in (check-consistency): Remove.
11403
11404 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
11405
11406         PR debug/48176
11407         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11408         arange_table_in_use is 0, but either text_section_used or
11409         cold_text_section_used is true.  Don't call it if
11410         !info_section_emitted.
11411
11412 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
11413
11414         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11415         FUNCTION_VALUE_REGNO_P): Remove.
11416         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11417         Remove.
11418         * config/avr/avr.c (avr_ret_register): Make static inline.
11419         (avr_function_value_regno_p): New function.
11420         (avr_libcall_value): Make static. Add 'func' argument.
11421         (avr_function_value): Make static. Rename 'func' argument to
11422         'fn_decl_or_type', forward it to avr_libcall_value. Call
11423         avr_ret_register function instead of RET_REGISTER macro.
11424         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11425
11426 2011-03-18  Jason Merrill  <jason@redhat.com>
11427
11428         PR c++/23372
11429         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11430
11431 2011-03-18  Richard Guenther  <rguenther@suse.de>
11432
11433         * doc/install.texi (--enable-gold): Remove.
11434         (--with-plugin-ld): Document.
11435         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11436
11437 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
11438
11439         PR middle-end/47790
11440         * expr.c (optimize_bitfield_assignment_op): Revamp to work
11441         again after expansion changes.
11442
11443 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
11444
11445         * combine.c (try_combine): Do simplification only call of
11446         subst() on i2 even when i1 is present. Update comments.
11447
11448 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
11449
11450         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11451         and UNSPEC_PCREL_SYMOFF.
11452
11453 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11454
11455         * config/s390/s390.md: Use define_c_enum for the unspec constant
11456         definitions.
11457
11458 2011-03-18  Richard Henderson  <rth@redhat.com>
11459             Jakub Jelinek  <jakub@redhat.com>
11460
11461         PR bootstrap/48161
11462         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11463         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11464
11465 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
11466
11467         PR middle-end/47725
11468         * combine.c (cant_combine_insn_p): Don't check zero/sign
11469         extended hard registers.
11470
11471 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
11472
11473         PR middle-end/47725
11474         * combine.c (cant_combine_insn_p): Check zero/sign extended
11475         hard registers.
11476
11477 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
11478
11479         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11480         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11481         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11482         Change return type to bool.
11483         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11484
11485 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
11486
11487         PR debug/48163
11488         * var-tracking.c (prepare_call_arguments): If CALL target
11489         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11490         pc instead of looking it up using cselib_lookup and use
11491         Pmode for it if x has VOIDmode.
11492         * dwarf2out.c (gen_subprogram_die): If also both first and
11493         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11494
11495         PR debug/48163
11496         * function.c (assign_parms): For data.passed_pointer parms
11497         use MEM of data.entry_parm instead of data.entry_parm itself
11498         as DECL_INCOMING_RTL.
11499         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11500         also when passed and declared mode is the same, DECL_RTL
11501         is a MEM with pseudo as address and DECL_INCOMING_RTL is
11502         a MEM too.
11503
11504 2011-03-16  Jeff Law  <law@redhat.com>
11505
11506         PR rtl-optimization/37273
11507         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11508         handle them like argument loads from stack slots.  Do not double
11509         count memory for memory constants and argument loads from stack slots.
11510
11511 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
11512
11513         PR debug/48160
11514         * var-tracking.c (prepare_call_arguments): Check SUBREG.
11515
11516 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
11517
11518         PR target/48171
11519         * config/i386/i386.opt: Add Save to -mavx and -mfma.
11520
11521 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
11522
11523         PR bootstrap/48153
11524         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11525         if dwarf_strict.
11526         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11527         Clear call_arg_locations and call_arg_loc_last always.
11528
11529         PR middle-end/48152
11530         * var-tracking.c (prepare_call_arguments): If argument needs to be
11531         passed by reference, adjust argtype and mode.
11532
11533 2011-03-17  Richard Guenther  <rguenther@suse.de>
11534
11535         PR middle-end/48134
11536         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11537         a value make sure to fold the statement.
11538
11539 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
11540
11541         PR target/43872
11542         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11543         return condition with !cfun->calls_alloca.
11544
11545 2011-03-17  Richard Guenther  <rguenther@suse.de>
11546
11547         PR bootstrap/48148
11548         * lto-cgraph.c (input_overwrite_node): Clear the abstract
11549         origin for decls in other ltrans units.
11550         (input_varpool_node): Likewise.
11551
11552 2011-03-17  Richard Guenther  <rguenther@suse.de>
11553
11554         PR middle-end/48165
11555         * tree-object-size.c (compute_object_offset): Properly return
11556         the offset operand of MEM_REFs as sizetype.
11557
11558 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
11559
11560         PR rtl-optimization/48141
11561         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11562         * dse.c: Include params.h.
11563         (active_local_stores_len): New variable.
11564         (add_wild_read, dse_step1): Clear it when setting active_local_stores
11565         to NULL.
11566         (record_store, check_mem_read_rtx): Decrease it when removing
11567         from the chain.
11568         (scan_insn): Likewise.  Increase it when adding to chain, if it
11569         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11570         set active_local_stores to NULL before the addition.
11571         * Makefile.in (dse.o): Depend on $(PARAMS_H).
11572
11573         PR rtl-optimization/48141
11574         * dse.c (record_store): If no positions are needed in an insn
11575         that cannot be deleted, at least unchain it from active_local_stores.
11576
11577 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
11578
11579         PR debug/47510
11580         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11581         (lookup_type_die_strip_naming_typedef): ... here.
11582         (get_context_die): Use it.
11583         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11584         the anonymous struct named by the naming typedef.
11585
11586 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
11587
11588         PR target/48154
11589         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11590         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11591
11592 2011-03-16  Jeff Law  <law@redhat.com>
11593
11594         * tree-vrp.c (identify_jump_threads): Slightly simplify type
11595         check for operands of conditional.  Allow type to be a pointer.
11596
11597 2011-03-16  Richard Guenther  <rguenther@suse.de>
11598
11599         PR tree-optimization/48149
11600         * fold-const.c (fold_binary_loc): Fold
11601         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11602
11603 2011-03-16  Richard Guenther  <rguenther@suse.de>
11604
11605         PR tree-optimization/26134
11606         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11607         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11608         (non_rewritable_mem_ref_base): Handle complex type component
11609         accesses, constrain offsets for vector and complex extracts
11610         more properly.
11611
11612 2011-03-16  Richard Guenther  <rguenther@suse.de>
11613
11614         PR tree-optimization/48146
11615         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11616         operands avoiding the need for renaming.
11617
11618 2011-03-16  Richard Guenther  <rguenther@suse.de>
11619
11620         * gimple-fold.c (maybe_fold_reference): Open-code relevant
11621         constant folding.  Move MEM_REF canonicalization first.
11622         Rely on fold_const_aggregate_ref for initializer folding.
11623         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11624
11625 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
11626
11627         PR middle-end/48136
11628         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11629         arg0/arg1 or their arguments are always fold converted to matching
11630         types.
11631
11632         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11633         to nargs.
11634
11635 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11636
11637         PR lto/46944
11638         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11639         Handle in-tree gold.
11640         (ld_vers): Extract binutils version for gold.
11641         (gcc_cv_ld_hidden): Handle gold here.
11642         (gcc_cv_lto_plugin): Determine level of linker plugin support.
11643         * configure: Regenerate.
11644         * config.in: Regenerate.
11645         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11646         -fuse-linker-plugin otherwise.
11647         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
11648         (LINK_COMMAND_SPEC): Use it.
11649         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11650
11651 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
11652
11653         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11654         * calls.c: Remove debug.h include.
11655         (emit_call_1): Don't call virtual_call_token debug hook.
11656         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11657         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11658         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11659         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11660         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11661         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11662         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11663         dwarf2out_virtual_call): Remove.
11664         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11665         copy_call_info and virtual_call hooks.
11666         (dwarf2out_init): Don't initialize vcall_insn_table,
11667         debug_dcall_section and debug_vcall_section.
11668         (prune_unused_types): Don't mark nodes from dcall_table.
11669         (dwarf2out_finish): Don't output dcall or vcall tables.
11670         * final.c (final_scan_insn): Don't call direct_call or
11671         virtual_call debug hooks.
11672         * debug.h (struct gcc_debug_hooks): Remove direct_call,
11673         virtual_call_token, copy_call_info and virtual_call hooks.
11674         (debug_nothing_uid): Remove prototype.
11675         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11676         copy_call_info and virtual_call hooks.
11677         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11678         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11679         * debug.c (do_nothing_debug_hooks): Likewise.
11680         (debug_nothing_uid): Remove.
11681         * doc/invoke.texi (-fenable-icf-debug): Remove.
11682         * common.opt (-fenable-icf-debug): Likewise.
11683
11684         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11685         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11686         call's MEM.  Handle functions returning aggregate through a hidden
11687         first pointer.  For virtual calls add clobbered pc to call arguments
11688         chain.
11689         * dwarf2out.c (gen_subprogram_die): Emit
11690         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11691         can't be emitted.
11692
11693         PR debug/45882
11694         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11695         * rtl.h (ENTRY_VALUE_EXP): Define.
11696         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11697         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11698         * print-rtl.c (print_rtx): Likewise.
11699         * gengtype.c (adjust_field_rtx_def): Likewise.
11700         * var-tracking.c (vt_add_function_parameter): Adjust
11701         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11702         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11703         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11704         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11705         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11706
11707         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11708         Call var_location debug hook even on CALL_INSNs.
11709         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11710         * rtl.def (ENTRY_VALUE): New.
11711         * dwarf2out.c: Include cfglayout.h.
11712         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11713         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11714         (struct call_arg_loc_node): New type.
11715         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11716         tail_call_site_count): New variables.
11717         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11718         DW_TAG_GNU_call_site_parameter.
11719         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11720         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11721         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11722         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11723         and DW_AT_GNU_all_source_call_sites.
11724         (mem_loc_descriptor): Handle ENTRY_VALUE.
11725         (add_src_coords_attributes): Don't add enything if
11726         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11727         (dwarf2out_abstract_function): Save and clear call_arg_location,
11728         call_site_count and tail_call_site_count around dwarf2out_decl call.
11729         (gen_call_site_die): New function.
11730         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11731         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11732         (dwarf2out_function_decl): Clear call_arg_locations,
11733         call_arg_loc_last, set call_site_count and tail_call_site_count
11734         to -1 and free block_map.
11735         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11736         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
11737         followed by any real instructions.
11738         (dwarf2out_begin_function): Set call_site_count and
11739         tail_call_site_count to 0.
11740         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11741         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11742         attempt to force a DIE for it and worst case remove the attribute.
11743         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11744         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11745         the decl itself.
11746         * var-tracking.c: Include tm_p.h.
11747         (vt_stack_adjustments): For calls call note_register_arguments.
11748         (argument_reg_set): New variable.
11749         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11750         ensure the VALUE is resolved.
11751         (call_arguments): New variable.
11752         (prepare_call_arguments): New function.
11753         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11754         (struct expand_loc_callback_data): Add ignore_cur_loc field.
11755         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11756         always use the best expression.
11757         (vt_expand_loc): Add ignore_cur_loc argument.
11758         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11759         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11760         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11761         note for all calls.
11762         (vt_add_function_parameter): Use cselib_lookup_from_insn.
11763         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11764         argument.  Don't call cselib_preserve_only_values and
11765         cselib_reset_table.
11766         (note_register_arguments): New function.
11767         (vt_initialize): Compute argument_reg_set.  Call
11768         vt_add_function_parameters before processing basic blocks instead of
11769         afterwards.  For calls call prepare_call_arguments before calling
11770         cselib_process_insn.
11771         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11772         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11773         (var-tracking.o): Depend on $(TM_P_H).
11774         * cfglayout.h (insn_scope): New prototype.
11775         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11776         * cfglayout.c (insn_scope): No longer static.
11777         * insn-notes.def (CALL_ARG_LOCATION): New.
11778         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11779         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11780         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11781         nothing for DECL_EXTERNAL BLOCK_VARS.
11782
11783 2011-03-16  Alan Modra  <amodra@gmail.com>
11784
11785         PR target/45844
11786         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11787         create invalid offset address for vsx splat insn.
11788         * config/rs6000/predicates.md (splat_input_operand): New.
11789         * config/rs6000/vsx.md (vsx_splat_*): Use it.
11790
11791 2011-03-15  Xinliang David Li  <davidxl@google.com>
11792
11793         PR c/47837
11794         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11795         (normalize_preds): New function.
11796         (is_use_properly_guarded): Normalize def predicates.
11797
11798 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11799
11800         PR target/46788
11801         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11802         in the output template.
11803
11804 2011-03-15  Richard Guenther  <rguenther@suse.de>
11805
11806         PR middle-end/47650
11807         * tree-pretty-print.c (dump_function_declaration): Properly
11808         dump unprototyped and varargs function types.
11809
11810 2011-03-15  Richard Guenther  <rguenther@suse.de>
11811
11812         PR tree-optimization/13954
11813         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11814         and friends.
11815
11816 2011-03-15  Richard Guenther  <rguenther@suse.de>
11817
11818         PR tree-optimization/48037
11819         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11820         selects into BIT_FIELD_REFs.
11821         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11822         vector select.
11823
11824 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
11825
11826         PR tree-optimization/48129
11827         * builtins.c (fold_builtin_snprintf): Convert to type of
11828         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11829         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11830
11831 2011-03-15  Richard Guenther  <rguenther@suse.de>
11832
11833         PR tree-optimization/41490
11834         * tree-ssa-dce.c (propagate_necessity): Handle returns without
11835         value but with VUSE.
11836         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11837         return statements.
11838         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11839         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11840         * tree-tailcall.c (find_tail_calls): Ignore returns.
11841
11842 2011-03-15  Richard Guenther  <rguenther@suse.de>
11843
11844         PR middle-end/48031
11845         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11846         or variable-indexed array accesses when in gimple form.
11847
11848 2011-03-15  Richard Guenther  <rguenther@suse.de>
11849
11850         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11851
11852 2011-03-15  Alan Modra  <amodra@gmail.com>
11853
11854         PR target/48032
11855         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11856         presume symbol_refs without a symbol_ref_decl are suitably
11857         aligned, nor other trees we may see here.  Handle anchor symbols.
11858         (legitimate_constant_pool_address_p): Comment.  Add mode param.
11859         Check cmodel=medium addresses.  Adjust all calls.
11860         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11861         creating cmodel=medium optimized access to locals.
11862         * config/rs6000/constraints.md (R): Pass QImode to
11863         legitimate_constant_pool_address_p.
11864         * config/rs6000/predicates.md (input_operand): Pass mode to
11865         legitimate_constant_pool_address_p.
11866         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11867         Update prototype.
11868
11869 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11870
11871         PR target/48053
11872         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11873         64-bit constants being loaded into registers other than GPRs such
11874         as loading 0 into a VSX register.
11875
11876 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11877
11878         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11879
11880 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11881
11882         PR middle-end/47917
11883         * builtins.c (fold_builtin_snprintf): New function.
11884         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11885         (fold_builtin_4): Likewise.
11886
11887         PR middle-end/38878
11888         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11889         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
11890         and C - X == X also strip nops from +/-/p+ operand.
11891         When optimizing -X == C, fold C to arg0's type.
11892
11893         PR debug/47946
11894         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11895         emit it as add_AT_int instead of add_AT_unsigned.
11896
11897 2011-03-14  Tom Tromey  <tromey@redhat.com>
11898
11899         * unwind-dw2.c: Include sys/sdt.h if it exists.
11900         (_Unwind_DebugHook): Use STAP_PROBE2.
11901         * config.in, configure: Rebuild.
11902         * configure.ac: Check for sys/sdt.h.
11903
11904 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
11905
11906         * config/i386/i386.md (ROUND_FLOOR): New constant.
11907         (ROUND_CEIL): Ditto.
11908         (ROUND_TRUNC): Ditto.
11909         (ROUND_MXCSR): Ditto.
11910         (ROUND_NO_EXC): Ditto.
11911         (rint<mode>2): Use new defines instead of numerical constants.
11912         (floor<mode>2): Ditto.
11913         (ceil<mode>2): Ditto.
11914         (btrunc<mode>2): Ditto.
11915         * config/i386/i386-builtin-types.def: Define ROUND function type
11916         aliases.
11917         * config/i386/i386.c (enum ix86_builtins): Add
11918         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11919         (struct builtin_description): Add
11920         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11921         (ix86_expand_sse_round): New static function.
11922         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11923         function types.
11924         (ix86_builtin_vectorized_function): Handle
11925         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11926
11927 2011-03-14  Tom Tromey  <tromey@redhat.com>
11928
11929         * c-parser.c (c_parser_asm_string_literal): Clear
11930         warn_overlength_strings.
11931
11932 2011-03-14  Tom Tromey  <tromey@redhat.com>
11933
11934         * c-parser.c (disable_extension_diagnostics): Save
11935         warn_overlength_strings.
11936         (restore_extension_diagnostics): Restore warn_overlength_strings.
11937
11938 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11939
11940         * BASE-VER: Change to 4.7.0.
11941
11942 2011-03-14  Richard Guenther  <rguenther@suse.de>
11943
11944         PR middle-end/48098
11945         * tree.c (build_vector_from_val): Adjust assert to requirements
11946         and reality.
11947
11948 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11949
11950         PR bootstrap/48102
11951         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11952
11953 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
11954
11955         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11956         terms of target_flags_explicit. Adjust copyright year.
11957
11958         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11959         * config/rs6000/t-freebsd: New file. Add override for
11960         LIB2FUNCS_EXTRA.
11961
11962 2011-03-13  Chris Demetriou  <cgd@google.com>
11963
11964         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11965         (-fno-diagnostics-show-option): this, to reflect current default.
11966         (-Werror=): Update text about -fno-diagnostics-show-option.
11967
11968 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
11969
11970         PR target/48053
11971         * config/rs6000/predicates.md (easy_vector_constant_add_self,
11972         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11973         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11974         mode is not V2DImode or V2DFmode.
11975         (vspltis_constant): Do not handle V2DImode and V2DFmode.
11976         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11977         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11978         registers to 0.
11979         (movdi_internal64): Likewise.
11980
11981 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
11982
11983         PR tree-optimization/47127
11984         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11985         parameter.
11986         (set_cloog_options): Same.
11987         (scop_to_clast): Same.
11988         (print_clast_stmt): Do not call cloog_state_malloc and
11989         cloog_state_free.
11990         (print_generated_program): Same.
11991         (gloog): Same.
11992         * graphite-clast-to-gimple.h (cloog_state): Declared.
11993         (scop_to_clast): Adjust declaration.
11994         * graphite.c (cloog_state): Defined here.
11995         (graphite_initialize): Call cloog_state_malloc.
11996         (graphite_finalize): Call cloog_state_free.
11997
11998 2011-03-11  Jason Merrill  <jason@redhat.com>
11999
12000         * attribs.c (lookup_attribute_spec): Take const_tree.
12001         * tree.h: Adjust.
12002
12003 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
12004
12005         * config/sparc/sparc.c (sparc_option_override): Use
12006         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12007
12008 2011-03-11  Richard Guenther  <rguenther@suse.de>
12009
12010         PR tree-optimization/48067
12011         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12012         multiplication result will be only used once on the target
12013         stmt.
12014
12015 2011-03-11  Richard Guenther  <rguenther@suse.de>
12016
12017         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12018
12019 2011-03-11  Richard Guenther  <rguenther@suse.de>
12020
12021         PR lto/48073
12022         * tree.c (find_decls_types_r): Do not walk types only reachable
12023         from IDENTIFIER_NODEs.
12024
12025 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
12026
12027         PR middle-end/48044
12028         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12029         all vnode->force_output nodes as needed.
12030
12031 2011-03-11  Jason Merrill  <jason@redhat.com>
12032
12033         PR c++/48069
12034         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12035         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12036
12037 2011-03-11  Martin Jambor  <mjambor@suse.cz>
12038
12039         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12040         cgraph_node.
12041
12042 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
12043
12044         PR tree-optimization/48063
12045         * ipa-inline.c (cgraph_decide_inlining): Don't try to
12046         inline functions called once if !tree_can_inline_p (node->callers).
12047
12048 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
12049
12050         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12051         extra_objs.
12052         * config/score/score3.c: Delete.
12053         * config/score/score3.h: Delete.
12054         * config/score/mul-div.S: Delete.
12055         * config/score/sfp-machine.h: Add new file.
12056         * config/score/constraints.md: Add new file.
12057         * config/score/t-score-softfp: Add new file.
12058         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12059         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12060         (score7_extra_constraint): Delete.
12061         (score7_option_override): Remove unused code.
12062         * config/score/score.c: Remove score3 and score5 define and code.
12063         * config/score/score.h: Remove score3 and score5 define and code.
12064         * config/score/score.md: Remove score3 template and unusual insn.
12065         * config/score/score.opt: Remove score3 and score5 options.
12066
12067 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12068
12069         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12070         when _HPUX_SOURCE is defined.
12071         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12072
12073 2011-03-10  Jason Merrill  <jason@redhat.com>
12074
12075         PR c++/48029
12076         * stor-layout.c (layout_type): Don't set structural equality
12077         on arrays of incomplete type.
12078         * tree.c (type_hash_eq): Handle comparing them properly.
12079
12080 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
12081
12082         PR debug/48043
12083         * config/s390/s390.c (s390_delegitimize_address): Make sure the
12084         result mode matches original rtl mode.
12085
12086 2011-03-10  Nick Clifton  <nickc@redhat.com>
12087
12088         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12089         (andsi3, andsi3_flags): Fix timings for three operand alternative.
12090
12091 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
12092
12093         PR rtl-optimization/47866
12094         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12095         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12096         if target wasn't scalar.
12097         * function.c (assign_stack_temp_for_type): Assert that neither
12098         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12099         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12100         macro.
12101         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12102
12103 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12104
12105         * config/s390/s390-protos.h (s390_label_align): New prototype.
12106         * config/s390/s390.c (s390_label_align): New function.
12107         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12108
12109 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
12110
12111         PR target/47755
12112         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12113         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
12114         (output_vec_const_move): Ditto.
12115
12116 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
12117
12118         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12119         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12120         * config/mips/mips.c (mips_preferred_reload_class): Make static.
12121         Change 'rclass' argument and result type to reg_class_t.
12122         (TARGET_PREFERRED_RELOAD_CLASS): Define.
12123
12124 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
12125
12126         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12127         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12128         (TARGET_MEMORY_MOVE_COST): Define.
12129         (avr_register_move_cost, avr_memory_move_cost): New Functions.
12130
12131 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
12132
12133         PR debug/47881
12134         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12135         removed anything.
12136
12137         PR tree-optimization/48022
12138         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12139         for EQ/NE_EXPR.
12140
12141 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
12142
12143         PR debug/47991
12144         * var-tracking.c (find_use_val): Return NULL for
12145         cui->sets && cui->store_p BLKmode MEMs.
12146
12147 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
12148
12149         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12150         Remove.
12151         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12152         xstormy16_print_operand_address): Remove.
12153         * config/stormy16/stormy16.c (xstormy16_print_operand,
12154         xstormy16_print_operand_address): Make static.
12155         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12156
12157 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
12158
12159         PR target/47862
12160         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12161         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12162         before definition.
12163
12164 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
12165
12166         PR bootstrap/48000
12167         * cfgloopmanip.c (fix_bb_placements): Return immediately
12168         if FROM is BASE_LOOP's header.
12169
12170 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
12171
12172         * gimplify.c (gimplify_function_tree): Fix building calls
12173         to __builtin_return_address.
12174
12175 2011-03-07  Alan Modra  <amodra@gmail.com>
12176
12177         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12178         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12179         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12180         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12181         return_mode args.
12182         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12183         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12184         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12185         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12186         * config/rs6000/rs6000.c
12187         (rs6000_elf_end_indicate_exec_stack): Rename to..
12188         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
12189         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
12190         (rs6000_file_start): ..here.
12191         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12192         file scope variables.
12193         (call_ABI_of_interest): New function.
12194         (init_cumulative_args): Set above vars when function return value
12195         is a float, vector, or small struct.
12196         (rs6000_function_arg_advance_1): Likewise for function args.
12197         (rs6000_va_start): Set rs6000_passes_float if variable arg function
12198         references float args.
12199
12200 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
12201
12202         * doc/cfg.texi: Remove "See" before @ref.
12203         * doc/invoke.texi: Likewise.
12204
12205 2011-03-05  Jason Merrill  <jason@redhat.com>
12206
12207         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12208
12209 2011-03-05  Anthony Green  <green@moxielogic.com>
12210
12211         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12212
12213 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
12214
12215         PR rtl-optimization/47899
12216         * cfgloopmanip.c (fix_bb_placements): Fix first argument
12217         to flow_loop_nested_p when moving the loop upward.
12218
12219 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
12220
12221         PR target/47719
12222         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
12223
12224 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
12225
12226         PR tree-optimization/47967
12227         * ipa-cp.c (build_const_val): Return NULL instead of creating
12228         VIEW_CONVERT_EXPR for mismatching sizes.
12229         (ipcp_create_replace_map): Return NULL if build_const_val failed.
12230         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12231         give up on versioning.
12232
12233 2011-03-05  Alan Modra  <amodra@gmail.com>
12234
12235         PR target/47986
12236         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12237         full cmodel medium/large lo_sum + high addresses.
12238
12239 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12240
12241         * config/s390/s390.c (s390_decompose_address): Reject non-literal
12242         pool references in UNSPEC_LTREL_OFFSET.
12243
12244 2011-03-04  Jan Hubicka  <jh@suse.cz>
12245
12246         PR lto/47497
12247         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12248         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12249         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12250         Add node pointers.
12251         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12252         cgraph_add_thunk): Add node pointers.
12253         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12254         associated to right node.
12255         (input_node): Update use of cgraph_same_body_alias
12256         and cgraph_add_thunk.
12257
12258 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
12259
12260         * config/i386/i386.opt (mprefer-avx128): New flag.
12261         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12262         modes when the flag -mprefer-avx128 is on.
12263
12264 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
12265
12266         * dwarf2out.c (compare_loc_operands): Fix address handling.
12267
12268 2011-03-04  Alan Modra  <amodra@gmail.com>
12269
12270         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12271
12272 2011-03-04  Richard Guenther  <rguenther@suse.de>
12273
12274         PR middle-end/47968
12275         * expmed.c (extract_bit_field_1): Prefer vector modes that
12276         vec_extract patterns can handle.
12277
12278 2011-03-04  Richard Guenther  <rguenther@suse.de>
12279
12280         PR middle-end/47975
12281         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12282
12283 2011-03-04  Richard Henderson  <rth@redhat.com>
12284
12285         * explow.c (emit_stack_save): Remove 'after' parameter.
12286         (emit_stack_restore): Likewise.
12287         * expr.h: Update to match.
12288         * builtins.c, calls.c, stmt.c: Likewise.
12289         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12290         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12291         * function.c (expand_function_end): Insert the emit_stack_save
12292         sequence before parm_birth_insn instead of after.
12293
12294 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
12295
12296         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12297         (ssse3_pmaddubsw128): Ditto.
12298         (ssse3_pmaddubsw): Ditto.
12299
12300 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
12301
12302         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12303
12304 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
12305
12306         PR c/47963
12307         * gimplify.c (omp_add_variable): Only call omp_notice_variable
12308         on TYPE_SIZE_UNIT if it is a DECL.
12309
12310         PR debug/47283
12311         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12312         first operand is not is_gimple_mem_ref_addr, try to fold it.
12313         If the operand still isn't is_gimple_mem_ref_addr, clear
12314         MEM_EXPR on op0.
12315
12316 2011-03-03  Richard Guenther  <rguenther@suse.de>
12317
12318         PR middle-end/47283
12319         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12320         match comment.
12321         (refs_may_alias_p_1): For release branches return true if
12322         we are confused by our input.
12323
12324 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12325
12326         * config/s390/s390.c (s390_function_value): Rename to ...
12327         (s390_function_and_libcall_value): ... this.
12328         (s390_function_value): New function.
12329         (s390_libcall_value): New function.
12330         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12331         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12332         target macro definitions.
12333         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12334
12335 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
12336
12337         * config/i386/freebsd64.h (CC1_SPEC): Define.
12338         * config/i386/linux64.h (CC1_SPEC): Define.
12339         * config/i386/x86-64.h (CC1_SPEC): Don't define.
12340
12341 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
12342
12343         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12344         Remove.
12345         * config/stormy16/stormy16.c: Include reload.h.
12346         (xstormy16_memory_move_cost): New function.
12347         (TARGET_MEMORY_MOVE_COST): Define.
12348
12349 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
12350
12351         PR rtl-optimization/47925
12352         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12353         with side effects.  Remove the more-specific check for volatile asms.
12354
12355 2011-03-02  Alan Modra  <amodra@gmail.com>
12356
12357         PR target/47935
12358         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12359         toc relative addresses for valid offsets.
12360
12361 2011-03-01  Richard Guenther  <rguenther@suse.de>
12362
12363         PR tree-optimization/47890
12364         * tree-vect-loop.c (get_initial_def_for_induction): Set
12365         related stmt properly.
12366
12367 2011-03-01  Richard Guenther  <rguenther@suse.de>
12368
12369         PR lto/47924
12370         * lto-streamer.c (lto_record_common_node): Also register
12371         the canonical type.
12372
12373 2011-03-01  Richard Guenther  <rguenther@suse.de>
12374
12375         PR lto/46911
12376         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12377         Do not stream DECL_ABSTRACT_ORIGIN.
12378         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12379         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12380         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12381         Do not stream DECL_ABSTRACT_ORIGIN.
12382         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12383         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12384
12385 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
12386
12387         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12388         FUNCTION_VALUE_REGNO_P): Remove.
12389         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12390         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12391         Add 'outgoing' argument.
12392         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12393         function.
12394         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12395         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12396
12397 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
12398
12399         PR debug/28047
12400         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12401         (lookup_filename): Likewise.
12402         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12403
12404 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
12405             Jakub Jelinek  <jakub@redhat.com>
12406
12407         PR middle-end/47893
12408         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12409         (assign_stack_local_1): Change last argument type to int.
12410         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12411         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
12412         don't record padding space into frame_space_list nor use those areas.
12413         (assign_stack_local): Adjust caller.
12414         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12415         of assign_stack_local, pass 0 as last argument.
12416         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12417         callers.
12418
12419 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
12420
12421         PR debug/47283
12422         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12423         Use target address_mode and pointer_mode hooks instead of hardcoded
12424         Pmode and ptr_mode.  Handle some simple cases of extending if
12425         POINTERS_EXTEND_UNSIGNED < 0.
12426         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12427         Call convert_debug_memory_address.
12428         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12429         convert_debug_memory_address.
12430
12431         PR middle-end/46790
12432         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12433         * configure: Regenerated.
12434         * config.in: Regenerated.
12435         * varasm.c (default_function_section): Return NULL
12436         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12437
12438 2011-02-28  Martin Jambor  <mjambor@suse.cz>
12439
12440         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12441         the description to match the printed values.
12442
12443 2011-02-28  Richard Guenther  <rguenther@suse.de>
12444
12445         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12446         of the copied scope tree.
12447
12448 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12449
12450         * doc/extend.texi (Function Attributes): Avoid deeply (and
12451         wrongly) nested tables.
12452
12453 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
12454
12455         PR middle-end/47903
12456         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12457         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12458         r isn't op0 nor op1.
12459
12460 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
12461
12462         * config/avr/avr.md: Remove magic comment for emacs.
12463
12464 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
12465
12466         PR target/45261
12467         * config/avr/avr.c (avr_option_override): Use error on bad options.
12468         (avr_help): New function.
12469         (TARGET_HELP): Define.
12470
12471 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
12472
12473         PR target/42240
12474         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12475         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12476
12477 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
12478
12479         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12480         (ARM Options): Ditto.
12481         (i386 and x86-64 Options): Ditto.
12482         (RX Options): Ditto.
12483         (SPARC Options): Ditto.
12484
12485 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
12486
12487         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12488         FreeBSD 6 and later.  Generally use cpu generic.
12489
12490 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
12491
12492         * doc/cpp.texi: Update copyright years.
12493
12494 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
12495
12496         PR target/46898
12497         * config/lm32/lm32.md (ashrsi3): Added needed variable.
12498
12499 2011-02-25  Jon Beniston  <jon@beniston.com>
12500
12501         PR target/46898
12502         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12503         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12504         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12505         (lm32_block_move_inline): Add type cast to remove warning.
12506         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12507         (gen_int_relational): Move declarations to start of function.
12508
12509 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
12510
12511         PR tree-optimization/45470
12512         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12513         can throw internally only.
12514         * tree-vect-stmts.c (vectorizable_call): Likewise.
12515
12516 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
12517
12518         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12519         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12520         * config/stormy16/stormy16-protos.h
12521         (xstormy16_preferred_reload_class): Remove.
12522         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12523         static. Change 'rclass' argument and return type to reg_class_t.
12524         (TARGET_PREFERRED_RELOAD_CLASS,
12525         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12526
12527 2011-02-24  Richard Guenther  <rguenther@suse.de>
12528
12529         * lto-streamer-in.c (input_bb): Do not find referenced vars
12530         in debug statements.
12531
12532 2011-02-23  Jason Merrill  <jason@redhat.com>
12533
12534         * common.opt (fabi-version): Document v5 and v6.
12535
12536 2011-02-23  Richard Guenther  <rguenther@suse.de>
12537
12538         PR tree-optimization/47849
12539         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12540
12541 2011-02-23  Jie Zhang  <jie@codesourcery.com>
12542
12543         * opts-common.c (decode_cmdline_option): Print empty string
12544         argument as "" in decoded->orig_option_with_args_text.
12545         * gcc.c (execute): Print empty string argument as ""
12546         in the verbose output.
12547         (do_spec_1): Keep empty string argument.
12548
12549 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
12550
12551         * config.gcc: Declare score-* and crx-* obsolete.
12552
12553 2011-02-23  Jie Zhang  <jie@codesourcery.com>
12554
12555         PR rtl-optimization/47763
12556         * web.c (web_main): Ignore naked clobber when replacing register.
12557
12558 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
12559
12560         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12561         Remove.
12562
12563 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
12564
12565         PR doc/47848
12566         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12567
12568 2011-02-22  Mike Stump  <mikestump@comcast.net>
12569
12570         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12571         assembler.
12572         * configure: Regenerate.
12573
12574 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
12575
12576         PR rtl-optimization/46002
12577         * ira-color.c (update_copy_costs): Change class intersection
12578         test to reg_class_contents[] test of 'hard_regno'.
12579
12580 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
12581
12582         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12583         than Driver option.
12584         * config/hpux11.opt (mt): Likewise.
12585         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12586         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12587         * config/vax/elf.opt (mno-asm-pic): Likewise.
12588         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12589
12590 2011-02-21  Mike Stump  <mikestump@comcast.net>
12591
12592         PR target/47822
12593         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12594         tree so we can get save the type.
12595         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12596         for CFString instead of trying to use past the end of the builtins.
12597         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12598         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12599         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12600         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12601         Rename to darwin_builtin_cfstring.
12602         (darwin_init_cfstring_builtins): Return the built type.
12603
12604 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
12605
12606         PR target/47840
12607         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12608         (_mm256_insert_epi64): Use _mm_insert_epi64.
12609
12610 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
12611
12612         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12613         * config/stormy16/stormy16-protos.h
12614         (xstormy16_mode_dependent_address_p): Remove.
12615         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12616         Make static. Change return type to bool. Change argument type to
12617         const_rtx. Remove dead code.
12618         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12619
12620 2011-02-21  Richard Guenther  <rguenther@suse.de>
12621
12622         PR lto/47820
12623         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12624         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12625         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12626         TUs context.
12627         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12628         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12629
12630 2011-02-20  Richard Guenther  <rguenther@suse.de>
12631
12632         PR lto/47822
12633         * tree.c (free_lang_data_in_decl): Clean builtins from
12634         the TU decl BLOCK_VARS.
12635
12636 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
12637
12638         PR debug/47620
12639         PR debug/47630
12640         * haifa-sched.c (fix_tick_ready): Skip tick computation
12641         for debug insns.
12642
12643 2011-02-19  Richard Guenther  <rguenther@suse.de>
12644
12645         PR lto/47647
12646         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12647         Remove lazy BLOCK_VARS streaming.
12648         (lto_input_ts_block_tree_pointers): Likewise.
12649         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12650
12651 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
12652
12653         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12654
12655 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
12656
12657         * config/i386/biarch32.h, config/i386/mach.h,
12658         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12659
12660 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
12661
12662         PR target/47800
12663         * config/i386/i386.md (peephole2 for shift and plus): Use
12664         operands[1] original mode in the first insn.
12665
12666 2011-02-18  Mike Stump  <mikestump@comcast.net>
12667
12668         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12669
12670 2011-02-18  Jan Hubicka  <jh@suse.cz>
12671
12672         PR middle-end/47788
12673         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12674         to zero when the function is not inlinable at all.
12675
12676 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12677
12678         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12679         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12680         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12681         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12682         * config/pa/t-pa64: Likewise.
12683         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12684
12685 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
12686
12687         PR driver/47787
12688         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12689
12690 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12691
12692         PR target/47792
12693         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12694
12695 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
12696
12697         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12698         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12699         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12700         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12701         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12702         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12703         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12704         m32r_load_postinc_p, m32r_store_preinc_predec_p,
12705         m32r_legitimate_address_p): New functions.
12706         * config/m32r/constraints.md (constraint "S"): Don't use
12707         STORE_PREINC_PREDEC_P.
12708         (constraint "U"): Don't use LOAD_POSTINC_P.
12709
12710 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
12711
12712         PR rtl-optimization/46178
12713         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12714         compute ira_hard_regno_cover_class[].
12715
12716 2011-02-18  Richard Guenther  <rguenther@suse.de>
12717
12718         PR lto/47798
12719         * lto-streamer.h (lto_global_var_decls): Declare.
12720         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12721         statics for global var processing.
12722
12723 2011-02-18  Richard Guenther  <rguenther@suse.de>
12724
12725         PR tree-optimization/47737
12726         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12727         edge dominance check.
12728
12729 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
12730
12731         PR debug/47780
12732         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12733         avoid invalid rtx sharing.
12734
12735 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
12736
12737         * doc/cpp.texi (Obsolete Features): Add background on the
12738         origin of assertions.
12739
12740 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
12741
12742         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12743         objc_abi == 2.
12744         * config/darwin.c (output_objc_section_asm_op): Added support for
12745         ABI v1 and v2.
12746         (is_objc_metadata): New.
12747         (darwin_objc2_section): New.
12748         (darwin_objc1_section): New.
12749         (machopic_select_section): Added support for ABI v1 and v2.
12750         (darwin_emit_objc_zeroed): New.
12751         (darwin_output_aligned_bss): Detect objc metadata and treat it
12752         appropriately.
12753         (darwin_asm_output_aligned_decl_common): Same.
12754         (darwin_asm_output_aligned_decl_local): Same.
12755         * config/darwin-sections.def: Updated for ABI v1 and v2.
12756         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12757         compiling Objective-C code for the NeXT runtime, default to using
12758         ABI version 0 for 32-bit, and version 2 for 64-bit.
12759
12760 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12761
12762         * common.opt (optimize_fast): New Variable.
12763         * opts.c (default_options_optimization): Use opts->x_optimize_fast
12764         instead of local variable ofast.
12765
12766 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
12767
12768         * doc/invoke.texi (fobjc-abi-version): Documented.
12769         (fobjc-nilcheck): Documented.
12770         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12771         version.
12772
12773 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12774
12775         PR driver/47390
12776         * common.opt (export-dynamic): New Driver option.
12777         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12778
12779 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12780
12781         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12782
12783 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
12784             Jan Hubicka  <jh@suse.cz>
12785
12786         PR debug/47106
12787         PR debug/47402
12788         * cfgexpand.c (account_used_vars_for_block): Remove.
12789         (estimated_stack_frame_size): Use referenced vars.
12790         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12791         that were referenced in the original function.  Test src_fn
12792         rather than cfun.  Drop redundant get_var_ann.
12793         (setup_one_parameter): Drop redundant get_var_ann.
12794         (declare_return_variable): Likewise.
12795         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12796         (copy_arguments_for_versioning): Drop redundant get_var_ann.
12797         * ipa-inline.c (compute_inline_parameters): Do not compute
12798         disregard_inline_limits here.
12799         (compute_inlinable_for_current, pass_inlinable): New.
12800         (pass_inline_parameters): Require PROP_referenced_vars.
12801         * cgraphunit.c (cgraph_process_new_functions): Don't run
12802         compute_inline_parameters explicitly unless function is in SSA form.
12803         (cgraph_analyze_function): Set .disregard_inline_limits.
12804         * tree-sra.c (convert_callers): Compute inliner parameters
12805         only for functions already in SSA form.
12806
12807 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12808
12809         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12810         -mlittle-endian-data.
12811
12812 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12813
12814         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12815         -mno-fpu, not -fpu and -no-fpu.
12816         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12817         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12818
12819 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
12820
12821         PR target/43653
12822         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12823         input reload with PLUS RTX.
12824
12825 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12826
12827         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12828         of InverseVar(MDMX).
12829
12830 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12831
12832         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12833         --m4-340.
12834
12835 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12836
12837         * config/mn10300/mn10300.opt (mno-crt0): New.
12838
12839 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12840
12841         * config/m68k/uclinux.opt (static-libc): New Driver option.
12842
12843 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12844
12845         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12846
12847 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12848
12849         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12850         %{muser-extend-enabled}.
12851
12852 2011-02-16  Richard Guenther  <rguenther@suse.de>
12853
12854         PR tree-optimization/47738
12855         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12856         the TODO from tree_predictive_commoning.
12857
12858 2011-02-15  Jeff Law  <law@redhat.com>
12859
12860         Revert
12861         2011-01-25  Jeff Law  <law@redhat.com>
12862
12863         PR rtl-optimization/37273
12864         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12865         handle them like argument loads from stack slots.  Do not double
12866         count memory for memory constants and argument loads from stack slots.
12867
12868 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12869
12870         PR middle-end/47725
12871         * combine.c (cant_combine_insn_p): Revert the last change.
12872
12873 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
12874
12875         PR target/47755
12876         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12877         mode for vector constants.  Remove code that checks for TImode.
12878
12879 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12880
12881         PR debug/47106
12882         PR debug/47402
12883         * cgraph.h (compute_inline_parameters): Return void.
12884         * ipa-inline.c (compute_inline_parameters): Adjust.
12885
12886 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12887
12888         PR debug/47106
12889         PR debug/47402
12890         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12891         rather than decl.
12892         * cfgexpand.c (estimated_stack_frame_size): Likewise.
12893         * ipa-inline.c (compute_inline_parameters): Adjust.
12894
12895 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12896
12897         PR debug/47106
12898         PR debug/47402
12899         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12900         Adjust all users.  Pass FN to...
12901         * tree-flow-inline.h (first_referenced_var): ... this.  Add
12902         fn argument.
12903         * ipa-struct-reorg.c: Adjust.
12904         * tree-dfa.c: Adjust.
12905         * tree-into-ssa.c: Adjust.
12906         * tree-sra.c: Adjust.
12907         * tree-ssa-alias.c: Adjust.
12908         * tree-ssa-live.c: Adjust.
12909         * tree-ssa.c: Adjust.
12910         * tree-ssanames.c: Adjust.
12911         * tree-tailcall.c: Adjust.
12912
12913 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12914
12915         PR debug/47106
12916         PR debug/47402
12917         * tree-flow.h (referenced_var_lookup): Add fn parameter.
12918         Adjust all callers.
12919         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12920         * tree-flow-inline.h: Adjust.
12921         * gimple-pretty-print.c: Adjust.
12922         * tree-into-ssa.c: Adjust.
12923         * tree-ssa.c: Adjust.
12924         * cfgexpand.c: Adjust.
12925
12926 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12927
12928         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12929         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12930         (EXTRA_CONSTRAINT): Delete.
12931         * config/iq2000/constraints.md: New file.
12932         * config/iq2000/iq2000.md: Include it.
12933         (define_insn ""): Delete.
12934         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12935         unsupported constraint letters from patterns.
12936         (call_value, call_value_internal1): Likewise.
12937         (call_value_multiple_internal1): Likewise.
12938
12939 2011-02-15  Nick Clifton  <nickc@redhat.com>
12940
12941         * config/mn10300/mn10300.c: Include tm-constrs.h.
12942         (struct liw_data): New data structure describing an LIW candidate
12943         instruction.
12944         (extract_bundle): Use struct liw_data.  Allow small integer
12945         operands for some instructions.
12946         (check_liw_constraints): Use struct liw_data.  Remove swapped
12947         parameter.  Add comments describing the checks.  Fix bug when
12948         assigning the source of liw1 to the source of liw2.
12949         (liw_candidate): Delete.  Code moved into extract_bundle.
12950         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
12951         before swapping.
12952         * config/mn10300/predicates.md (liw_operand): New predicate.
12953         Allows registers and small integer constants.
12954         * config/mn10300/constraints.md (O): New constraint.  Accetps
12955         integers in the range -8 to +7 inclusive.
12956         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12957         for moving a small integer into a register.  Give this alternative
12958         LIW attributes.
12959         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12960         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12961         using the J,K,L and M constraints,
12962         (liw): Remove SI mode on second operands to allow for HI and QI
12963         mode values.
12964         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
12965         instruction.
12966
12967 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12968
12969         PR middle-end/47725
12970         * combine.c (cant_combine_insn_p): Check zero/sign extended
12971         hard registers.
12972
12973 2011-02-15  Richard Guenther  <rguenther@suse.de>
12974
12975         PR tree-optimization/47743
12976         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12977         for a non-type-compatible VN lookup bail out.
12978
12979 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12980
12981         * config/fr30/constraints.md: New file.
12982         * config/fr30/fr30.md: Include it.
12983         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12984         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12985         (EXTRA_CONSTRAINT): Delete.
12986
12987 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12988
12989         * config/frv/constraints.md: New file.
12990         * config/frv/predicates.md: Include it.
12991         * config/frv/frv.c (reg_class_from_letter): Delete.
12992         (frv_option_override): Don't initialize it.
12993         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12994         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12995         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12996         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12997         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12998         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12999         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13000         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13001         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13002         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13003         (REG_CLASS_FROM_CONSTRAINT): Delete.
13004
13005 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
13006
13007         PR middle-end/47581
13008         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13009         if frame size is 0 in a leaf function.
13010
13011 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13012
13013         PR pch/14940
13014         * config/alpha/host-osf.c: New file.
13015         * config/alpha/x-osf: New file.
13016         * config.host (alpha*-dec-osf*): Use it.
13017
13018 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
13019
13020         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13021         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13022         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13023         (rx_mode_dependent_address_p): ...this. Make static. Change argument
13024         type to const_rtx.
13025         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13026
13027 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
13028
13029         * config/stormy16/constraints.md: New file.
13030         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13031         Use satisfies_constraint_Q and satisfies_constraint_R.
13032         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13033         Delete.
13034         (xstormy16_legitiamte_address_p): Declare.
13035         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13036         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13037         (EXTRA_CONSTRAINT): Delete.
13038         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13039         Un-staticize.
13040         (xstormy16_extra_constraint_p): Delete.
13041
13042 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
13043
13044         PR tree-optimization/46494
13045         * loop-unroll.c (split_edge_and_insert): Adjust comment.
13046         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13047         (pass_rtl_loop_done): Add TODO_verify_flow.
13048         * fwprop.c (pass_rtl_fwprop): Likewise.
13049         * modulo-sched.c (pass_sms): Likewise.
13050         * tree-ssa-dom.c (pass_dominator): Likewise.
13051         * tree-ssa-loop-ch.c (pass_ch): Likewise.
13052         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13053         (pass_tree_loop_done): Likewise.
13054         * tree-ssa-pre.c (execute_pre): Likewise.
13055         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13056         * tree-ssa-sink.c (pass_sink_code): Likewise.
13057         * tree-vrp.c (pass_vrp): Likewise.
13058
13059 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
13060
13061         * config/v850/constraints.md: New file.
13062         * config/v850/v850.md: Include it.
13063         * config/v850/predicates.md (reg_or_0_operand): Use
13064         satisfies_constraint_G.
13065         (special_symbolref_operand): Use satisfies_constraint_K.
13066         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13067         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13068         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13069         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13070         (EXTRA_CONSTRAINT): Delete.
13071         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13072         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13073         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13074
13075 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
13076
13077         PR target/47696
13078         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13079         description.
13080
13081 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
13082
13083         * config/mcore/constraints.md: New file.
13084         * config/mcore/mcore.md: Include it.
13085         * config/mcore/mcore.c (reg_class_from_letter): Delete.
13086         * config/mcore/mcore.h (reg_class_from_letter): Delete.
13087         (REG_CLASS_FROM_LETTER): Delete.
13088         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13089         insn_const_int_ok_for_constraint.
13090         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13091         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13092         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13093         (EXTRA_CONSTRAINT): Delete.
13094
13095 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13096
13097         PR ada/41929
13098         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13099         (IS_SIGHANDLER): Define.
13100         (sparc64_is_sighandler): New function, split off from
13101         sparc64_fallback_frame_state.
13102         (sparc_is_sighandler): New function, split off from
13103         sparc_fallback_frame_state.
13104         (sparc64_fallback_frame_state): Merge with ...
13105         (sparc_fallback_frame_state): ... this into ...
13106         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13107         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
13108         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
13109         stack instead of hardcoded offsets.
13110
13111 2011-02-14  Andriy Gapon  <avg@freebsd.org>
13112
13113         PR target/45808
13114         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13115
13116 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13117
13118         * configure: Regenerate.
13119
13120 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
13121
13122         PR driver/45731
13123         * gcc.c (asm_options): Correct spec matching --target-help.
13124
13125 2011-02-12  Martin Jambor  <mjambor@suse.cz>
13126
13127         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13128         to gimple call error.
13129
13130 2011-02-12  Mike Stump  <mikestump@comcast.net>
13131
13132         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13133         comments in backslash regions.
13134
13135 2011-02-12  Mike Stump  <mikestump@comcast.net>
13136             Jakub Jelinek  <jakub@redhat.com>
13137             Iain Sandoe  <iains@gcc.gnu.org>
13138
13139         PR target/47324
13140         * dwarf2out.c (output_cfa_loc): When required, apply the
13141         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13142         (output_loc_sequence): Likewise.
13143         (output_loc_operands_raw): Likewise.
13144         (output_loc_sequence_raw): Likewise.
13145         (output_cfa_loc): Likewise.
13146         (output_loc_list): Suppress register number adjustment when
13147         calling output_loc_sequence()
13148         (output_die): Likewise.
13149
13150 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
13151
13152         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13153         Remove macros.
13154         * config/xtensa/xtensa.c (xtensa_register_move_cost,
13155         xtensa_memory_move_cost): New functions.
13156         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13157
13158 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
13159
13160         PR lto/47225
13161         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13162         in the current directory.
13163         * configure: Rebuilt.
13164
13165 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
13166
13167         * config/darwin.c (darwin_override_options): Add a hunk missed
13168         from the commit of r168571.  Trim comment line lengths and
13169         correct indents of the preceding block.
13170
13171 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
13172
13173         * gcc.c (driver_handle_option): Concatenate the argument to -F with
13174         the switch.
13175
13176 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
13177
13178         * common.opt (nostartfiles): New Driver option.
13179
13180 2011-02-11  Xinliang David Li  <davidxl@google.com>
13181
13182         PR tree-optimization/47707
13183         * tree-chrec.c (convert_affine_scev): Keep type precision.
13184
13185 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
13186
13187         PR tree-optimization/47420
13188         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13189
13190 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
13191
13192         PR rtl-optimization/47614
13193         * rtl.h (check_for_inc_dec): Declare.
13194         * dse.c (check_for_inc_dec): Externalize...
13195         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13196         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13197
13198 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
13199
13200         PR driver/47678
13201         * gcc.c (main): Do not compile inputs if there were errors in
13202         option handling.
13203         * opts-common.c (read_cmdline_option): Check for wrong language
13204         after other error checks.
13205
13206 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
13207
13208         * cgraph.c: Fix comment typos.
13209         * cgraph.h: Likewise.
13210         * cgraphunit.c: Likewise.
13211         * ipa-cp.c: Likewise.
13212         * ipa-inline.c: Likewise.
13213         * ipa-prop.c: Likewise.
13214         * ipa-pure-const.c: Likewise.
13215         * ipa-ref.c: Likewise.
13216         * ipa-reference.c: Likewise.
13217
13218 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
13219
13220         PR debug/47684
13221         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13222
13223 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13224
13225         PR testsuite/47400
13226         * doc/sourcebuild.texi (Require Support): Document
13227         dg-require-ascii-locale.
13228
13229 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
13230
13231         * doc/lto.texi (Write summary): Fix missing parentheses.
13232
13233 2011-02-10  DJ Delorie  <dj@redhat.com>
13234
13235         * config/m32c/m32c.c (m32c_option_override): Disable
13236         -fcombine-stack-adjustments until flag value tracking and compare
13237         optimization can be rewritten.
13238
13239 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
13240
13241         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13242         PROCESSOR_POWER7.
13243         (PROCESSOR_DEFAULT64): Likewise.
13244
13245 2011-02-10  Richard Henderson  <rth@redhat.com>
13246
13247         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13248         change from 2011-02-03.
13249         * config/rx/rx.c (flags_from_code): Likewise.
13250         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13251         is valid, n/pz otherwise.
13252         (rx_select_cc_mode): Return CCmode if Y is not zero.
13253
13254 2011-02-10  Richard Guenther  <rguenther@suse.de>
13255
13256         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13257
13258 2011-02-10  Richard Guenther  <rguenther@suse.de>
13259
13260         PR tree-optimization/47677
13261         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13262
13263 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
13264
13265         PR target/47665
13266         * combine.c (make_compound_operation): Only change shifts into
13267         multiplication for SCALAR_INT_MODE_P.
13268
13269 2011-02-10  Jie Zhang  <jie@codesourcery.com>
13270
13271         PR testsuite/47622
13272         Revert
13273         2011-02-05  Jie Zhang  <jie@codesourcery.com>
13274         PR debug/42631
13275         * web.c (entry_register): Don't clobber the number of the
13276         first uninitialized reference in used[].
13277
13278 2011-02-09  Richard Guenther  <rguenther@suse.de>
13279
13280         PR tree-optimization/47664
13281         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13282         all edges again.
13283
13284 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
13285
13286         PR target/46481
13287         PR target/47032
13288         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13289         PROCESSOR_POWER7.
13290         (PROCESSOR_DEFAULT64): Same.
13291         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13292
13293 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13294
13295         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13296
13297 2011-02-09  Martin Jambor  <mjambor@suse.cz>
13298
13299         PR middle-end/45505
13300         * tree-sra.c (struct access): New flags grp_scalar_read and
13301         grp_scalar_write.  Changed description of assignment read and write
13302         flags.
13303         (dump_access): Dump new flags, reorder all of them.
13304         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13305         to detect multiple scalar reads.
13306         (analyze_access_subtree): Use the new scalar read write flags instead
13307         of the old flags.  Adjusted comments.
13308
13309 2011-02-08  DJ Delorie  <dj@redhat.com>
13310
13311         PR target/47548
13312         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13313         patterns.
13314
13315 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13316
13317         * config/m68k/uclinux.opt: New.
13318         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13319
13320 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13321
13322         * config/cris/elf.opt (sim): New Driver option.
13323
13324 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13325
13326         * config/xtensa/elf.opt: New.
13327         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13328
13329 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13330
13331         * config/vax/elf.opt: New.
13332         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13333
13334 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13335
13336         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13337
13338 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13339
13340         * config/gnu-user.opt: New.
13341         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13342         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13343         *-*-uclinux*): Use gnu-user.opt.
13344
13345 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
13346
13347         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13348         * config/i386/gnu.h (CPP_SPEC): Likewise.
13349
13350 2011-02-08  Ian Lance Taylor  <iant@google.com>
13351
13352         * common.opt (fcx-limited-range): Add SetByCombined flag.
13353         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13354         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13355         (fassociative-math, freciprocal-math): Likewise.
13356         (funsafe-math-optimizations): Likewise.
13357         * opth-gen.awk: Handle SetByCombined.
13358         * optc-gen.awk: Likewise.
13359         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13360         (set_unsafe_math_optimizations_flags): Likewise.
13361         * doc/options.texi (Option properties): Document SetByCombined.
13362
13363 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
13364
13365         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13366         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13367         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13368         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13369         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13370
13371 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
13372
13373         PR tree-optimization/46834
13374         PR tree-optimization/46994
13375         PR tree-optimization/46995
13376         * graphite-sese-to-poly.c (used_outside_reduction): New.
13377         (detect_commutative_reduction): Call used_outside_reduction.
13378         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13379         translate_scalar_reduction_to_array only when at least one
13380         loop-phi/close-phi tuple has been detected.
13381
13382 2011-02-08  Richard Guenther  <rguenther@suse.de>
13383
13384         PR middle-end/47639
13385         * tree-vect-generic.c (expand_vector_operations_1): Update
13386         stmts here ...
13387         (expand_vector_operations): ... not here.  Cleanup EH info
13388         and the CFG if required.
13389
13390 2011-02-08  Richard Guenther  <rguenther@suse.de>
13391
13392         PR tree-optimization/47641
13393         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13394         require type compatibility.
13395
13396 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13397
13398         * gimple-low.c (lower_function_body): Don't remove the location of
13399         the return statement here.
13400         (lower_gimple_return): Do it here instead but only if the return
13401         statement is actually used twice.
13402
13403 2011-02-08  Richard Guenther  <rguenther@suse.de>
13404
13405         PR tree-optimization/47632
13406         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13407         unused up_to_stmt parameter, return whether cfg-cleanup is
13408         necessary, remove EH info properly.
13409         (forward_propagate_into_gimple_cond): Adjust caller.
13410         (forward_propagate_into_cond): Likewise.
13411         (forward_propagate_comparison): Likewise.
13412         (tree_ssa_forward_propagate_single_use_vars): Make
13413         forward_propagate_comparison case similar to the two others.
13414
13415 2011-02-08  Nick Clifton  <nickc@redhat.com>
13416
13417         * config/mn10300/mn10300.opt (mliw): New command line option.
13418         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13419         (liw_bundling): New automaton.
13420         (liw): New attribute.
13421         (liw_op): New attribute.
13422         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13423         (movsi_internal): Add LIW attributes.
13424         (andsi3): Likewise.
13425         (iorsi3): Likewise.
13426         (xorsi3): Likewise.
13427         (addsi3): Separate register and immediate alternatives.
13428         Add LIW attributes.
13429         (subsi3): Likewise.
13430         (cmpsi): Likewise.
13431         (aslsi3): Likewise.
13432         (lshrsi3): Likewise.
13433         (ashrsi3): Likewise.
13434         (liw): New pattern.
13435         * config/mn10300/mn10300.c (liw_op_names): New
13436         (mn10300_print_operand): Handle 'W' operand descriptor.
13437         (extract_bundle): New function.
13438         (check_liw_constraints): New function.
13439         (liw_candidate): New function.
13440         (mn10300_bundle_liw): New function.
13441         (mn10300_reorg): New function.
13442         (TARGET_MACHINE_DEPENDENT_REORG): Define.
13443         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13444         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13445         __LIW__ or __NO_LIW__.
13446         * doc/invoke.texi: Describe the -mliw command line option.
13447
13448 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13449
13450         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13451         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13452         pthread_mutex_unlock): Remove.
13453         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13454         * config/pa/t-pa64: Likewise.
13455         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13456         shared libc if not linking against libpthread.
13457         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13458
13459 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
13460
13461         PR target/47558
13462         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13463         on 10.6 and later to ensure that we always use the unwinder from
13464         the system.  Only add -no_compact_unwind when tarteting darwin
13465         10.6 or later.
13466
13467 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
13468
13469         PR target/46997
13470         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13471         (vec_interleave_lowv2sf): Ditto.
13472         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13473         (vec_extract_oddv2sf): Ditto.
13474
13475 2011-02-07  Mike Stump  <mikestump@comcast.net>
13476
13477         PR target/42333
13478         Add __ieee_divdc3 entry point.
13479         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13480         entry point.
13481         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13482         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13483         * config/darwin.c (darwin_rename_builtins): Add.
13484         * config/darwin-protos.h (darwin_rename_builtins): Add.
13485
13486 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
13487
13488         PR target/47636
13489         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13490         for the condition.
13491
13492 2011-02-07  Mike Stump  <mikestump@comcast.net>
13493
13494         * config/darwin.opt (mmacosx-version-min): Update default OS version.
13495
13496 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
13497
13498         PR target/47534
13499         * config/avr/libgcc.S (exit): Move .endfunc
13500
13501 2011-02-07  Richard Guenther  <rguenther@suse.de>
13502
13503         PR tree-optimization/47615
13504         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13505         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13506         (run_scc_vn): Initialize it.
13507         (visit_reference_op_load): Use it.
13508         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13509
13510 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13511
13512         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13513         DImode trapping arithmetic libfuncs.
13514
13515 2011-02-07  Richard Guenther  <rguenther@suse.de>
13516
13517         PR tree-optimization/47621
13518         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13519         two duplicates ...
13520         (execute_update_addresses_taken): ... here.  Make it more
13521         conservative in what we accept.
13522
13523 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
13524
13525         * config/sparc/freebsd.h (ASM_SPEC): Define.
13526         * config/sparc/vxworks.h (ASM_SPEC): Define.
13527
13528 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
13529
13530         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13531
13532 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
13533
13534         * doc/invoke.texi: Remove reference to compiler internals from
13535         user documentation.
13536
13537         * reg-notes.def: Remove REG_VALUE_PROFILE.
13538         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13539
13540 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
13541
13542         PR middle-end/47610
13543         * varasm.c (default_section_type_flags): If decl is NULL,
13544         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13545
13546 2011-02-05  Jie Zhang  <jie@codesourcery.com>
13547
13548         PR debug/42631
13549         * web.c (entry_register): Don't clobber the number of the
13550         first uninitialized reference in used[].
13551
13552 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
13553
13554         PR tree-optimization/46194
13555         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13556         (build_classic_dist_vector_1): Do not represent classic distance
13557         vectors when the access functions are variating in different loops.
13558
13559 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
13560
13561         * config/mips/iris6.opt: New.
13562         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13563
13564 2011-02-04  Richard Henderson  <rth@redhat.com>
13565             Steve Ellcey  <sje@cup.hp.com>
13566
13567         PR target/46997
13568         * config/ia64/predicates.md (mux1_brcst_element): New.
13569         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13570         * config/ia64/ia64.c (ia64_unpack_assemble): New.
13571         (ia64_unpack_sign): New.
13572         (ia64_expand_unpack): Rewrite using new routines.
13573         (ia64_expand_widen_sum): Ditto.
13574         (ia64_expand_dot_prod_v8qi): Ditto.
13575         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13576         routines, add endian check.
13577         (pmpy2_even): Rename from pmpy2_r, add endian check.
13578         (pmpy2_odd): Rename from pmpy2_l, add endian check.
13579         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13580         (vec_widen_smult_hi_v4hi): Ditto.
13581         (vec_widen_umult_lo_v4hi): Ditto.
13582         (vec_widen_umult_hi_v4hi): Ditto.
13583         (mulv2si3): Change endian checks.
13584         (sdot_prodv4hi): Rewrite with new calls.
13585         (udot_prodv4hi): New.
13586         (vec_pack_ssat_v4hi): Add endian check.
13587         (vec_pack_usat_v4hi): Ditto.
13588         (vec_pack_ssat_v2si): Ditto.
13589         (max1_even): Rename from max1_r, add endian check.
13590         (max1_odd): Rename from max1_l, add endian check.
13591         (*mux1_rev): Format change.
13592         (*mux1_mix): Ditto.
13593         (*mux1_shuf): Ditto.
13594         (*mux1_alt): Ditto.
13595         (*mux1_brcst_v8qi): Use new predicate.
13596         (vec_extract_evenv8qi): Remove endian check.
13597         (vec_extract_oddv8qi): Ditto.
13598         (vec_interleave_lowv4hi): Format change.
13599         (vec_interleave_highv4hi): Ditto.
13600         (mix2_even): Rename from mix2_r, add endian check.
13601         (mix2_odd): Rename from mux2_l, add endian check.
13602         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13603         (vec_extract_evenodd_helper): Format change.
13604         (vec_extract_evenv4hi): Remove endian check.
13605         (vec_extract_oddv4hi): Remove endian check.
13606         (vec_interleave_lowv2si): Format change.
13607         (vec_interleave_highv2si): Format change.
13608         (vec_initv2si): Remove endian check.
13609         (vecinit_v2si): Add endian check.
13610         (reduc_splus_v2sf): Add endian check.
13611         (reduc_smax_v2sf): Ditto.
13612         (reduc_smin_v2sf): Ditto.
13613         (vec_initv2sf): Remove endian check.
13614         (fpack): Add endian check.
13615         (fswap): Add endian check.
13616         (vec_interleave_highv2sf): Add endian check.
13617         (vec_interleave_lowv2sf): Add endian check.
13618         (fmix_lr): Add endian check.
13619         (vec_setv2sf): Format change.
13620         (*vec_extractv2sf_0_be): Use shift to extract operand.
13621         (*vec_extractv2sf_1_be): New.
13622         (vec_pack_trunc_v4hi): Add endian check.
13623         (vec_pack_trunc_v2si): Format change.
13624
13625 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
13626
13627         PR inline-asm/23200
13628         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
13629         do bb, locus and block comparison and disallow loads if it is not set.
13630         (stmt_is_replaceable_p): New function.
13631         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13632         callers.
13633         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13634         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13635         SSA_NAME_DEF_STMT.
13636         * tree-flow.h (stmt_is_replaceable_p): New prototype.
13637
13638 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
13639
13640         * config/rs6000/xilinx.opt: New.
13641         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13642
13643 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
13644
13645         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13646
13647 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
13648
13649         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13650         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13651         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13652         secondary_reload_info, xtensa_secondary_reload): Remove.
13653         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13654         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13655         (xtensa_preferred_reload_class): Make static. Change return and
13656         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13657         Use CONST_DOUBLE_P predicate.
13658         (xtensa_preferred_output_reload_class): New function.
13659         (xtensa_secondary_reload): Make static.
13660
13661 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
13662
13663         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13664         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13665         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13666
13667 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
13668
13669         PR middle-end/31490
13670         * output.h (SECTION_RELRO): Define.
13671         (SECTION_MACH_DEP): Adjust.
13672         (get_variable_section): New prototype.
13673         * varpool.c (varpool_finalize_named_section_flags): New function.
13674         (varpool_assemble_pending_decls): Call it.
13675         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13676         * cgraphunit.c (cgraph_output_in_order): Call
13677         varpool_finalize_named_section_flags.
13678         * varasm.c (get_section): Allow section flags conflicts between
13679         relro and read-only sections if the section hasn't been declared yet.
13680         Set SECTION_OVERRIDE after diagnosing section type conflict.
13681         (get_variable_section): No longer static.
13682         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13683         readonly sections that need relocations.
13684         (decl_readonly_section_1): New function.
13685         (decl_readonly_section): Use it.
13686
13687         Revert:
13688         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
13689                     Steve Ellcey  <sje@cup.hp.com>
13690
13691         PR middle-end/31490
13692         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13693         if section attribute used.
13694
13695 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
13696
13697         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13698         * config/darwin.c (SECTION_NO_ANCHOR): Define.
13699         (darwin_init_sections): Remove assertion.
13700
13701 2011-02-03  Nick Clifton  <nickc@redhat.com>
13702
13703         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13704         lt and ge.
13705         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13706         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13707         instead of "n" and "pz".
13708         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13709         CC_FLAG_S.
13710
13711 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
13712
13713         PR target/47312
13714         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13715         fma, expand FMA_EXPR as fma{,f,l} call.
13716
13717         PR lto/47274
13718         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13719         copy them into a unsigned char variable and pass address of it to
13720         lto_output_data_stream.
13721
13722         PR target/47564
13723         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13724         around backend_init_target and lang_dependent_init_target calls.
13725         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13726         (verify_cgraph_node): Don't call set_cfun here.  Use
13727         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13728         Set error_found for incorrectly represented calls to thunks.
13729
13730 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
13731
13732         PR debug/43092
13733         PR rtl-optimization/43494
13734         * rtl.h (for_each_inc_dec_fn): New type.
13735         (for_each_inc_dec): Declare.
13736         * rtlanal.c (struct for_each_inc_dec_ops): New type.
13737         (for_each_inc_dec_find_inc_dec): New fn.
13738         (for_each_inc_dec_find_mem): New fn.
13739         (for_each_inc_dec): New fn.
13740         * dse.c (struct insn_size): Remove.
13741         (replace_inc_dec, replace_inc_dec_mem): Remove.
13742         (emit_inc_dec_insn_before): New fn.
13743         (check_for_inc_dec): Use it, along with for_each_inc_dec.
13744         (canon_address): Pass mem modes to cselib_lookup.
13745         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
13746         (cselib_lookup_from_insn): Likewise.
13747         (cselib_subst_to_values): Likewise.
13748         * cselib.c (find_slot_memmode): New var.
13749         (cselib_find_slot): New fn.  Use it instead of
13750         htab_find_slot_with_hash everywhere.
13751         (entry_and_rtx_equal_p): Use find_slot_memmode.
13752         (autoinc_split): New fn.
13753         (rtx_equal_for_cselib_p): Rename and implement in terms of...
13754         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
13755         Deal with autoinc.  Special-case recursion into MEMs.
13756         (cselib_hash_rtx): Likewise.
13757         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
13758         address and MEM modes.
13759         (cselib_subst_to_values): Add memmode, pass it on.
13760         Deal with autoinc.
13761         (cselib_lookup): Add memmode argument, pass it on.
13762         (cselib_lookup_from_insn): Add memmode.
13763         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13764         (struct cselib_record_autoinc_data): New.
13765         (cselib_record_autoinc_cb): New fn.
13766         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
13767         mode to cselib_lookup.  Reset autoinced REGs here instead of...
13768         (cselib_process_insn): ... here.
13769         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13770         to cselib_lookup.
13771         (add_uses): Likewise, also to cselib_subst_to_values.
13772         (add_stores): Likewise.
13773         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
13774         cselib_subst_to_values.
13775         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
13776         * gcse.c (do_local_cprop): Adjusted.
13777         * postreload.c (reload_cse_simplify_set): Adjusted.
13778         (reload_cse_simplify_operands): Adjusted.
13779         * sel-sched-dump (debug_mem_addr_value): Pass mode.
13780
13781 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
13782
13783         PR tree-optimization/45122
13784         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13785         unsafe assumptions when there's more than one loop exit.
13786
13787 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13788
13789         PR target/47272
13790         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13791         Document using vector double with the load/store builtins, and
13792         that the load/store builtins always use Altivec instructions.
13793
13794         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13795         to use altivec memory instructions, even on VSX.
13796         (vector_altivec_store_<mode>): Ditto.
13797
13798         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13799         function.
13800
13801         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13802         V2DF, V2DI support to load/store overloaded builtins.
13803
13804         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13805         altivec load/store builtins for V2DF/V2DI types.
13806
13807         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13808         set avoid indexed addresses on power6 if -maltivec.
13809         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13810         vector_altivec_load/vector_altivec_store builtins.
13811         (altivec_expand_st_builtin): Ditto.
13812         (altivec_expand_builtin): Add VSX memory builtins.
13813         (rs6000_init_builtins): Add V2DI types to internal types.
13814         (altivec_init_builtins): Add support for V2DF/V2DI altivec
13815         load/store builtins.
13816         (rs6000_address_for_altivec): Insure memory address is appropriate
13817         for Altivec.
13818
13819         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13820         vec_vsx_ld and vec_vsx_st.
13821         (vsx_store_<mode>): Ditto.
13822
13823         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13824         variables to hold long long types for VSX vector memory builtins.
13825         (RS6000_BTI_unsigned_long_long): Ditto.
13826         (long_long_integer_type_internal_node): Ditti.
13827         (long_long_unsigned_type_internal_node): Ditti.
13828
13829         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13830         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13831         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13832
13833         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13834         short cuts.
13835         (vec_vsx_st): Ditto.
13836
13837 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13838
13839         * config/pa/pa-hpux10.opt: New.
13840         * config/hpux11.opt (pthread): New Driver option.
13841         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13842         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13843
13844 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13845
13846         * config/ia64/vms.opt: New.
13847         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13848
13849 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
13850
13851         PR target/47580
13852         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13853         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13854         generator functions.
13855         (vsx_floatuns<VSi><mode>2): Ditto.
13856         (vsx_fix_trunc<mode><VSi>2): Ditto.
13857         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13858
13859 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13860
13861         * config/i386/djgpp.opt (posix): New Driver option.
13862
13863 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
13864
13865         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13866         Move to the unsupported targets list.
13867
13868 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
13869
13870         PR rtl-optimization/47525
13871         * df-scan.c: Update copyright years.
13872         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13873         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13874
13875 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13876
13877         * config/i386/sysv4.h (TARGET_VERSION): Remove.
13878         (SUBTARGET_RETURN_IN_MEMORY): Remove.
13879         (ASM_OUTPUT_ASCII): Remove.
13880         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13881
13882 2011-02-02  Jeff Law  <law@redhat.com>
13883
13884         PR middle-end/47543
13885         * reload.c (find_reloads_address): Handle reg+d address where both
13886         components are invalid by reloading the entire address.
13887
13888 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
13889             Richard Guenther  <rguenther@suse.de>
13890
13891         PR tree-optimization/40979
13892         PR bootstrap/47044
13893         * passes.c (init_optimization_passes): After LIM call copy_prop
13894         and DCE to clean up.
13895         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13896
13897 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
13898
13899         PR tree-optimization/47576
13900         PR tree-optimization/47555
13901         * doc/invoke.texi (scev-max-expr-complexity): Documented.
13902         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13903         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13904         * tree-scalar-evolution.c (follow_ssa_edge): Use
13905         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13906
13907 2011-02-02  Richard Guenther  <rguenther@suse.de>
13908
13909         PR tree-optimization/47566
13910         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13911
13912 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
13913
13914         PR debug/47106
13915         PR debug/47402
13916         * tree-inline.c (declare_return_variable): Remove unused caller
13917         variable.
13918
13919         PR debug/47106
13920         PR debug/47402
13921         * tree-flow-inline.h (clear_is_used, is_used_p): New.
13922         * cfgexpand.c (account_used_vars_for_block): Use them.
13923         * tree-nrv.c (tree_nrv): Likewise.
13924         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13925         (dump_scope_block): Likewise.
13926         (remove_unused_locals): Likewise.
13927
13928         PR debug/47106
13929         PR debug/47402
13930         * tree-inline.c (declare_return_variable): Add result decl to
13931         local decls only once.
13932         * gimple-low.c (record_vars_into): Mark newly-created variables
13933         as referenced.
13934
13935 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
13936
13937         PR debug/47498
13938         PR debug/47501
13939         PR debug/45136
13940         PR debug/45130
13941         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13942         debug insns.
13943         (no_real_insns_p, schedule_block, set_priorities): Drop special
13944         treatment of boundary debug insns.
13945         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13946         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13947         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13948         (BOUNDARY_DEBUG_INSN_P): Likewise.
13949         (SCHEDULE_DEBUG_INSN_P): Likewise.
13950         * sched-rgn.c (init_ready_list): Drop special treatment of
13951         boundary debug insns.
13952         * final.c (rest_of_clean_state): Clear notes' BB.
13953
13954 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13955
13956         * config/openbsd.opt (assert=): New Driver option.
13957
13958 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13959
13960         * config/i386/nto.opt: New.
13961         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13962
13963 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13964
13965         * config/i386/netware.opt: New.
13966         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13967
13968 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13969
13970         * config/interix.opt (posix): New Driver option.
13971
13972 2011-02-01  DJ Delorie  <dj@redhat.com>
13973
13974         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13975
13976         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13977         class for A0/A1.
13978
13979 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
13980
13981         PR tree-optimization/47561
13982         * toplev.c (process_options): Print the Graphite flags.  Add
13983         flag_loop_flatten to the list of options requiring Graphite.
13984
13985 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13986
13987         * config/i386/cygming.opt (posix): New Driver option.
13988
13989 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13990
13991         * config/arm/vxworks.opt: New.
13992         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13993
13994 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13995
13996         * config/alpha/elf.opt: New.
13997         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13998         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13999
14000 2011-02-01  Richard Guenther  <rguenther@suse.de>
14001
14002         PR tree-optimization/47559
14003         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14004         store-motion on references that can throw.
14005
14006 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
14007
14008         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14009         * tree-pass.h (TDF_CSELIB): New macro.
14010         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14011         cselib_lookup): Check for it rather than for TDF_DETAILS.
14012
14013 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
14014
14015         PR driver/47547
14016         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14017         is HOST_BIT_BUCKET.
14018
14019         * opts.c (finish_options): Don't add x_aux_base_name if it is
14020         HOST_BIT_BUCKET.
14021
14022 2011-02-01  Richard Guenther  <rguenther@suse.de>
14023
14024         PR tree-optimization/47555
14025         Revert
14026         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
14027
14028         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14029
14030 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
14031
14032         PR gcc/46692
14033         * config/lm32/t-lm32: Add multilib for all CPU options.
14034
14035 2011-02-01  Richard Guenther  <rguenther@suse.de>
14036
14037         PR tree-optimization/47541
14038         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14039         sure to have a field at offset zero.
14040
14041 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
14042
14043         * config/arc/arc.opt (EB, EL): New Driver options.
14044
14045 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
14046
14047         * config/alpha/osf5.opt: New.
14048         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14049
14050 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
14051
14052         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14053
14054 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
14055
14056         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14057         -floop-interchange.
14058         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14059         is an alias of -floop-interchange and that it requires the
14060         Graphite infrastructure.
14061         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14062         flag_loop_interchange based on the value of flag_tree_loop_linear.
14063
14064 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
14065             Richard Guenther  <rguenther@suse.de>
14066
14067         PR tree-optimization/47538
14068         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14069         type instead of r1type, except for comparisons.  For right
14070         shifts and comparisons punt if there are mismatches in
14071         sizetype vs. non-sizetype types.
14072
14073 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14074
14075         * doc/sourcebuild.texi (Effective-Target Keywords): Document
14076         avx_runtime.
14077
14078 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14079
14080         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14081         version number.
14082         * configure: Regenerate.
14083
14084 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14085
14086         * configure.ac (gcc_cv_ld_static_option): Define.
14087         (gcc_cv_ld_dynamic_option): Define.
14088         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14089         instead.
14090         (HAVE_LD_STATIC_DYNAMIC): Update message.
14091         (LD_STATIC_OPTION): Define.
14092         (LD_DYNAMIC_OPTION): Define.
14093         * configure: Regenerate.
14094         * config.in: Regenerate.
14095         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14096         HAVE_LD_STATIC_DYNAMIC]: Use them.
14097
14098 2011-01-31  Nick Clifton  <nickc@redhat.com>
14099
14100         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14101         registers inside interrupt handlers if the handler is not a leaf
14102         function.
14103
14104 2011-01-31  Nick Clifton  <nickc@redhat.com>
14105
14106         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14107         reg_renumber returning an INVALID_REGNUM.
14108
14109 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
14110
14111         PR libgcj/44341
14112         * doc/install.texi: Document host options discarded when cross
14113         configuring target libraries.
14114
14115 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
14116
14117         Reverted:
14118         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
14119         PR debug/45136
14120         PR debug/45130
14121         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14122         debug insns.
14123         (no_real_insns_p, schedule_block, set_priorities): Drop special
14124         treatment of boundary debug insns.
14125         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14126         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14127         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14128         (BOUNDARY_DEBUG_INSN_P): Likewise.
14129         (SCHEDULE_DEBUG_INSN_P): Likewise.
14130         * sched-rgn.c (init_ready_list): Drop special treatment of
14131         boundary debug insns.
14132         * final.c (rest_of_clean-state): Clear notes' BB.
14133
14134 2011-01-31  Alan Modra  <amodra@gmail.com>
14135
14136         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14137         toc relative expressions as we do in print_operand_address.
14138
14139 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
14140
14141         * doc/extend.texi: Follow spelling conventions.
14142         * doc/invoke.texi: Fix a typo.
14143
14144 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
14145
14146         * config/hpux11.opt: New.
14147         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14148         ia64*-*-hpux*): Use hpux11.opt.
14149
14150 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
14151
14152         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14153         to tmake_file.
14154
14155 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
14156
14157         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14158         support sites.
14159
14160 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
14161
14162         * doc/install.texi (Binaries): Remove outdated reference for
14163         Motorola 68HC11/68HC12 downloads.
14164
14165 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
14166
14167         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14168         Drepper's paper.
14169
14170 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
14171
14172         PR bootstrap/47147
14173         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14174         used by NetBSD.
14175
14176 2011-01-28  Ahmad Sharif  <asharif@google.com>
14177
14178         * value-prof.c (check_counter): Corrected error message.
14179
14180 2011-01-29  Jie Zhang  <jie@codesourcery.com>
14181
14182         * config/arm/arm.c (arm_legitimize_reload_address): New.
14183         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14184         arm_legitimize_reload_address.
14185         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14186
14187 2011-01-28  Ian Lance Taylor  <iant@google.com>
14188
14189         * godump.c (go_define): Ignore macros whose definitions include
14190         two adjacent operands.
14191
14192 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
14193
14194         PR target/42894
14195         * varasm.c (force_const_mem): Store copy of x in desc->constant
14196         instead of x itself.
14197         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14198         itself into REG_EQUAL note.
14199
14200 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
14201
14202         * config/freebsd.opt (posix, rdynamic): New Driver options.
14203
14204 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14205
14206         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14207         -Bstatic/-Bdynamic.
14208         * configure: Regenerate.
14209
14210 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
14211
14212         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14213         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14214
14215 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
14216
14217         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14218         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14219         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14220         (s390_preferred_reload_class): Make static. Change return and
14221         'rclass' argument type to reg_class_t.
14222
14223 2011-01-27  Jan Hubicka  <jh@suse.cz>
14224
14225         PR middle-end/46949
14226         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14227         (process_function_and_variable_attributes): Check defined weakrefs.
14228
14229 2011-01-27  Martin Jambor  <mjambor@suse.cz>
14230
14231         PR tree-optimization/47228
14232         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14233         build_ref_for_offset.
14234
14235 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14236
14237         * config/spu/spu-elf.h (ASM_SPEC): Remove.
14238
14239 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
14240
14241         PR rtl-optimization/46856
14242         * postreload.c (reload_combine_recognize_const_pattern): Do not
14243         separate cc0 setter and user on cc0 targets.
14244
14245 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
14246
14247         PR c/43082
14248         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14249         passed a VOID_TYPE expression, immediately emit an error and
14250         return error_mark_node.
14251
14252 2011-01-26  Jeff Law  <law@redhat.com>
14253
14254         PR rtl-optimization/47464
14255         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14256         rather than may_trap_p as needed.
14257
14258 2011-01-26  DJ Delorie  <dj@redhat.com>
14259
14260         PR rtl-optimization/46878
14261         * combine.c (insn_a_feeds_b): Check for the implicit cc0
14262         setter/user dependency as well.
14263
14264 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
14265
14266         PR rtl-optimization/44469
14267         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14268         after removing trivially dead basic blocks.
14269
14270 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
14271
14272         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14273         * config/frv/frv.h (LINK_SPEC): Likewise.
14274         * config/i386/netware.h (LINK_SPEC): Likewise.
14275         * config/m68k/linux.h (ASM_SPEC): Likewise.
14276         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14277         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14278         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14279         * config/sparc/linux.h (ASM_SPEC): Likewise.
14280         * config/sparc/linux64.h (ASM_SPEC): Likewise.
14281         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14282
14283 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
14284
14285         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14286         * config/frv/frv.h (ASM_SPEC): Likewise.
14287         * config/m68k/linux.h (ASM_SPEC): Likewise.
14288         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14289         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14290         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14291         * config/sparc/linux.h (ASM_SPEC): Likewise.
14292         * config/sparc/linux64.h (ASM_SPEC): Likewise.
14293         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14294
14295 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
14296
14297         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14298         * config/frv/frv.h (LINK_SPEC): Likewise.
14299         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14300
14301 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
14302
14303         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14304         * config/frv/frv.h (ASM_SPEC): Likewise.
14305         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14306         * config/m68k/linux.h (ASM_SPEC): Likewise.
14307         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14308         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14309         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14310         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
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         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14315
14316 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
14317
14318         PR target/46997
14319         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14320         (*mux2): Ditto.
14321         (vec_extract_evenodd_help): Ditto.
14322         (vec_extract_evenv4hi): Ditto.
14323         (vec_extract_oddv4hi): Ditto.
14324         (vec_interleave_lowv2si): Ditto.
14325         (vec_interleave_highv2si): Ditto.
14326         (vec_extract_evenv2si): Ditto.
14327         (vec_extract_oddv2si: Ditto.
14328         (vec_pack_trunc_v2si): Ditto.
14329
14330 2011-01-22  Jan Hubicka  <jh@suse.cz>
14331
14332         PR target/47237
14333         * cgraph.h (cgraph_local_info): New field can_change_signature.
14334         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14335         signature can change.
14336         (ipcp_estimate_growth): Call sequence simplify only if calle signature
14337         can change.
14338         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14339         (cgraph_function_versioning): We can not change signature of functions
14340         that don't allow that.
14341         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14342         (lto_input_node): Likewise.
14343         * ipa-inline.c (compute_inline_parameters): Compute
14344         local.can_change_signature.
14345         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14346         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14347         functions that can not change signature.
14348         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14349         init_cumulative_args): Do not use local calling conventions
14350         for functions that can not change signature.
14351
14352 2011-01-22  Jan Hubicka  <jh@suse.cz>
14353
14354         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14355
14356 2011-01-26  Richard Guenther  <rguenther@suse.de>
14357
14358         PR tree-optimization/47190
14359         * cgraphunit.c (process_common_attributes): New function.
14360         (process_function_and_variable_attributes): Use it.
14361
14362 2011-01-26  Richard Guenther  <rguenther@suse.de>
14363
14364         PR lto/47423
14365         * cgraphbuild.c (record_eh_tables): Record reference to personality
14366         function.
14367
14368 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
14369
14370         PR debug/45454
14371         * sel-sched.c (moveup_expr): Don't let debug insns prevent
14372         non-debug insns from moving up.
14373
14374 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
14375
14376         PR target/40125
14377         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14378         t-dlldir{,-x} fragment for build and add it to tmake_file.
14379         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14380         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14381         * config/i386/t-dlldir: New file.
14382         (SHLIB_DLLDIR): Define.
14383         * config/i386/t-dlldir-x: New file.
14384         (SHLIB_DLLDIR): Define.
14385         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14386         (SHLIB_INSTALL): Use it.
14387
14388 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
14389
14390         PR target/47246
14391         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14392         lower bound of the allowed Thumb-2 coprocessor load/store
14393         index range to -256. Add explaining comment.
14394
14395 2011-01-25  Ian Lance Taylor  <iant@google.com>
14396
14397         * godump.c (go_define): Improve lexing of macro expansion to only
14398         accept expressions which match Go spec.
14399
14400 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
14401
14402         PR c++/43601
14403         * tree.c (handle_dll_attribute): Handle it.
14404         * doc/extend.texi (@item dllexport): Mention it.
14405         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14406
14407 2011-01-25  Ian Lance Taylor  <iant@google.com>
14408
14409         PR tree-optimization/26854
14410         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14411         (decl_jump_unsafe): Move higher in file, with no other change.
14412         (bind): Set has_jump_unsafe_decl if appropriate.
14413         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14414         (check_earlier_gotos): Likewise.
14415         (c_check_switch_jump_warnings): Likewise.
14416
14417 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
14418
14419         * doc/invoke.texi (Warning Options): Add missing hyphen.
14420         (-fprofile-dir): Minor grammatical fixes.
14421         (-fbranch-probabilities): Likewise.
14422
14423 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
14424
14425         PR debug/45136
14426         PR debug/45130
14427         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14428         debug insns.
14429         (no_real_insns_p, schedule_block, set_priorities): Drop special
14430         treatment of boundary debug insns.
14431         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14432         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14433         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14434         (BOUNDARY_DEBUG_INSN_P): Likewise.
14435         (SCHEDULE_DEBUG_INSN_P): Likewise.
14436         * sched-rgn.c (init_ready_list): Drop special treatment of
14437         boundary debug insns.
14438         * final.c (rest_of_clean-state): Clear notes' BB.
14439
14440 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14441
14442         * Makefile.in (LAMBDA_H): Removed.
14443         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14444         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14445         lambda-trans.o, and tree-loop-linear.o.
14446         (lto-symtab.o): Remove dependence on LAMBDA_H.
14447         (tree-loop-linear.o): Remove rule.
14448         (lambda-mat.o): Same.
14449         (lambda-trans.o): Same.
14450         (lambda-code.o): Same.
14451         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14452         (tree-vect-slp.o): Same.
14453         * hwint.h (gcd): Moved here.
14454         (least_common_multiple): Same.
14455         * lambda-code.c: Removed.
14456         * lambda-mat.c: Removed.
14457         * lambda-trans.c: Removed.
14458         * lambda.h: Removed.
14459         * tree-loop-linear.c: Removed.
14460         * lto-symtab.c: Do not include lambda.h.
14461         * omega.c (gcd): Removed.
14462         * passes.c (init_optimization_passes): Remove pass_linear_transform.
14463         * tree-data-ref.c (print_lambda_vector): Moved here.
14464         (lambda_vector_copy): Same.
14465         (lambda_matrix_copy): Same.
14466         (lambda_matrix_id): Same.
14467         (lambda_vector_first_nz): Same.
14468         (lambda_matrix_row_add): Same.
14469         (lambda_matrix_row_exchange): Same.
14470         (lambda_vector_mult_const): Same.
14471         (lambda_vector_negate): Same.
14472         (lambda_matrix_row_negate): Same.
14473         (lambda_vector_equal): Same.
14474         (lambda_matrix_right_hermite): Same.
14475         * tree-data-ref.h: Do not include lambda.h.
14476         (lambda_vector): Moved here.
14477         (lambda_matrix): Same.
14478         (dependence_level): Same.
14479         (lambda_transform_legal_p): Removed declaration.
14480         (lambda_collect_parameters): Same.
14481         (lambda_compute_access_matrices): Same.
14482         (lambda_vector_gcd): Same.
14483         (lambda_vector_new): Same.
14484         (lambda_vector_clear): Same.
14485         (lambda_vector_lexico_pos): Same.
14486         (lambda_vector_zerop): Same.
14487         (lambda_matrix_new): Same.
14488         * tree-flow.h (least_common_multiple): Removed declaration.
14489         * tree-parloops.c (lambda_trans_matrix): Moved here.
14490         (LTM_MATRIX): Same.
14491         (LTM_ROWSIZE): Same.
14492         (LTM_COLSIZE): Same.
14493         (LTM_DENOMINATOR): Same.
14494         (lambda_trans_matrix_new): Same.
14495         (lambda_matrix_vector_mult): Same.
14496         (lambda_transform_legal_p): Same.
14497         * tree-pass.h (pass_linear_transform): Removed declaration.
14498         * tree-ssa-loop.c (tree_linear_transform): Removed.
14499         (gate_tree_linear_transform): Removed.
14500         (pass_linear_transform): Removed.
14501         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14502         flag_loop_interchange.
14503
14504 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
14505
14506         PR tree-optimization/47265
14507         PR tree-optimization/47443
14508         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14509         if name still has some uses.
14510
14511 2011-01-25  Martin Jambor  <mjambor@suse.cz>
14512
14513         PR tree-optimization/47382
14514         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14515         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14516
14517 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
14518
14519         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14520         sjlj_except_unwind_info.
14521
14522 2011-01-25  Richard Guenther  <rguenther@suse.de>
14523
14524         PR tree-optimization/47426
14525         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14526         visible functions results escape.
14527
14528 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
14529
14530         PR target/45701
14531         * config/arm/arm.c (any_sibcall_uses_r3): New function.
14532         (arm_get_frame_offsets): Use it.
14533
14534 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14535             Jakub Jelinek  <jakub@redhat.com>
14536
14537         PR tree-optimization/47271
14538         * tree-if-conv.c (bb_postdominates_preds): New.
14539         (if_convertible_bb_p): Call bb_postdominates_preds.
14540         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14541         (predicate_scalar_phi): Call bb_postdominates_preds.
14542
14543 2011-01-25  Nick Clifton  <nickc@redhat.com>
14544
14545         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14546         * config/rx/rx.c (rx_function_value): Likewise.
14547         (rx_promote_function_mode): Likewise.
14548         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14549         in order to make it legitimate.
14550         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14551         make sure that the first operand is the same as the result register.
14552         (addsi3_unspec): Delete.
14553         (subdi3): Do not accept immediate operands.
14554         (subdi3_internal): Likewise.
14555
14556 2011-01-25  Jeff Law  <law@redhat.com>
14557
14558         PR rtl-optimization/37273
14559         * ira-costs.c (scan_one_insn): Detect constants living in memory and
14560         handle them like argument loads from stack slots.  Do not double
14561         count memory for memory constants and argument loads from stack slots.
14562
14563 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
14564
14565         PR tree-optimization/47427
14566         PR tree-optimization/47428
14567         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14568         coalesce if the new root var would be TREE_READONLY.
14569
14570 2011-01-25  Richard Guenther  <rguenther@suse.de>
14571
14572         PR middle-end/47414
14573         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14574         correct type for TBAA.
14575
14576 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14577
14578         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14579         (close_phi_written_to_memory): Call for_each_index with
14580         dr_indices_valid_in_loop.
14581
14582 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14583
14584         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14585         when it is initialized.
14586
14587 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14588
14589         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14590         call to graphite_find_data_references_in_stmt.
14591         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14592         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
14593         call to graphite_find_data_references_in_stmt.
14594         (analyze_drs_in_stmts): Same.
14595         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14596         in which the scalar analysis of indices is performed.
14597         (create_data_ref): Same.  Update call to dr_analyze_indices.
14598         (find_data_references_in_stmt): Update call to create_data_ref.
14599         (graphite_find_data_references_in_stmt): Same.
14600         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14601         declaration.
14602         (create_data_ref): Same.
14603         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14604         call to create_data_ref.
14605
14606 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14607
14608         * graphite-sese-to-poly.c (build_poly_scop): Move
14609         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14610
14611 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14612
14613         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14614         VAR_DECL, PARM_DECL, and RESULT_DECL.
14615
14616 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14617
14618         * graphite-dependences.c (reduction_dr_1): Allow several reductions
14619         in a reduction PBB.
14620         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14621         that have already been marked as PBB_IS_REDUCTION.
14622
14623 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14624
14625         * graphite-scop-detection.c (same_close_phi_node): New.
14626         (remove_duplicate_close_phi): New.
14627         (make_close_phi_nodes_unique): New.
14628         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14629
14630 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14631
14632         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14633         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14634         of both data references to be the same.
14635
14636 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14637
14638         * graphite-dependences.c (build_lexicographical_constraint): Remove
14639         the gdim parameter.
14640         (build_lexicographical_constraint): Adjust call to
14641         ppl_powerset_is_empty.
14642         (dependence_polyhedron): Same.
14643         (graphite_legal_transform_dr): Same.
14644         (graphite_carried_dependence_level_k): Same.
14645         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14646         parameter.
14647         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14648
14649 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14650
14651         * graphite-sese-to-poly.c
14652         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14653         (close_phi_written_to_memory): New.
14654         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14655         and unshare_expr.
14656
14657 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14658
14659         * doc/install.texi: Update the expected version number of PPL to 0.11.
14660         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14661         #if PPL_VERSION_MINOR < 11.
14662
14663 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14664
14665         * graphite-dependences.c: Include graphite-cloog-util.h.
14666         (new_poly_ddr): Inlined into dependence_polyhedron.
14667         (free_poly_ddr): Moved close by new_poly_ddr.
14668         (dependence_polyhedron_1): Renamed dependence_polyhedron.
14669         Early return NULL when ppl_powerset_is_empty returns true.
14670         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
14671         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
14672         (graphite_legal_transform_dr): Call new_poly_ddr.
14673         (graphite_carried_dependence_level_k): Same.
14674         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
14675         (dot_transformed_deps_stmt_1): Removed.
14676         (dot_deps_stmt_1): Call dot_deps_stmt_2.
14677         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
14678         (dot_deps_1): Call dot_deps_2.
14679         * Makefile.in (graphite-dependences.o): Add missing dependence on
14680         graphite-cloog-util.h.
14681
14682 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14683
14684         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14685         (build_lexicographical_constraint): Same.
14686         (dependence_polyhedron_1): Same.
14687         (graphite_legal_transform_dr): Same.
14688         (graphite_carried_dependence_level_k): Same.
14689         * graphite-ppl.c (ppl_powerset_is_empty): New.
14690         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14691         * tree-data-ref.c (dump_data_reference): Print the basic block index.
14692
14693 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14694
14695         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14696         the "a followed by b" relation and document it.
14697
14698 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14699
14700         * graphite-dependences.c (build_lexicographical_constraint): Stop the
14701         iteration when the bag of constraints is empty.
14702
14703 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14704
14705         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14706
14707 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14708
14709         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14710         nest and two loop depths as parameters.
14711         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14712         lst_perfect_nestify.
14713
14714 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14715
14716         * graphite-dependences.c (print_pddr): Call
14717         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14718
14719 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14720
14721         * graphite-ppl.c (debug_gmp_value): New.
14722         * graphite-ppl.h (debug_gmp_value): Declared.
14723
14724 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
14725
14726         * doc/install.texi: Document availability of cloog-0.16.
14727
14728 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
14729
14730         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14731         invalid postdominance info.
14732
14733 2011-01-24  Jan Hubicka  <jh@suse.cz>
14734
14735         PR c/21659
14736         * doc/extend.texi (weak pragma): Drop claim that it must
14737         appear before definition.
14738         * varasm.c (merge_weak, declare_weak): Only sanity check
14739         that DECL is not output at a time it is declared weak.
14740
14741 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
14742
14743         * machmode.def: Fixed comments.
14744
14745 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
14746
14747         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14748
14749 2011-01-24  Paul Koning  <ni1d@arrl.net>
14750
14751         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14752         WORDS_BIG_ENDIAN.
14753
14754 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
14755
14756         PR target/46519
14757         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14758         (block_info): Add scanned and prev.
14759         (move_or_delete_vzeroupper_2): Return if the basic block
14760         has been scanned and the upper 128bit state is unchanged
14761         from the last scan.
14762         (move_or_delete_vzeroupper_1): Return true if the exit
14763         state is changed.
14764         (move_or_delete_vzeroupper): Visit basic blocks using the
14765         work-list based algorithm based on vt_find_locations in
14766         var-tracking.c.
14767
14768         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14769
14770 2011-01-24  Nick Clifton  <nickc@redhat.com>
14771
14772         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14773         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14774         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
14775         then define __v850e1__.
14776         * doc/invoke.texi: Document -mv850es.
14777
14778 2011-01-24  Richard Henderson  <rth@redhat.com>
14779
14780         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14781         compound unordered comparisons.
14782         * config/rx/rx.c (rx_split_fp_compare): Remove.
14783         * config/rx/rx-protos.h: Update.
14784         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14785         (cbranchsf4): Don't call rx_split_fp_compare.
14786         (*cbranchsf4): Use rx_split_cbranch.
14787         (*cmpsf): Don't accept "i" constraint.
14788         (*conditional_branch): Only valid after reload.
14789         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
14790
14791 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
14792
14793         PR target/47385
14794         * config/rs6000/altivec.md (vector constant splitters): Add
14795         support for creating vector single precision constants if -mvsx is
14796         used and we would create the constant using Altivec primitives.
14797
14798 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
14799             Richard Sandiford  <rdsandiford@googlemail.com>
14800
14801         PR rtl-optimization/47166
14802         * reload1.c (emit_reload_insns): Disable the spill_reg_store
14803         mechanism for PRE_MODIFY and POST_MODIFY.
14804         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14805         reloadreg.
14806
14807 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
14808
14809         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14810
14811 2011-01-22  Jan Hubicka  <jh@suse.cz>
14812
14813         PR lto/47333
14814         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14815
14816 2011-01-22  Jan Hubicka  <jh@suse.cz>
14817
14818         PR tree-optimization/43884
14819         PR lto/44334
14820         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14821         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14822
14823 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
14824
14825         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14826         * config/s390/s390.c (s390_register_move_cost,
14827         s390_memory_move_cost): New.
14828         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14829
14830 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14831
14832         PR middle-end/47401
14833         * except.c (sjlj_assign_call_site_values): Move setting the
14834         crtl->uses_eh_lsda flag to ...
14835         (sjlj_mark_call_sites): ... here.
14836         (sjlj_emit_function_enter): Support NULL dispatch label.
14837         (sjlj_build_landing_pads): In a function with no landing pads
14838         that still has must-not-throw regions, generate code to register
14839         a personality function with empty LSDA.
14840
14841 2011-01-21  Richard Henderson  <rth@redhat.com>
14842
14843         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14844
14845         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14846
14847         * compare-elim.c: New file.
14848         * Makefile.in (OBJS-common): Add it.
14849         (compare-elim.o): New.
14850         * common.opt (fcompare-elim): New.
14851         * opts.c (default_options_table): Add OPT_fcompare_elim.
14852         * tree-pass.h (pass_compare_elim_after_reload): New.
14853         * passes.c (init_optimization_passes): Add it.
14854         * recog.h: Protect against re-inclusion.
14855         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14856         * doc/invoke.texi (-fcompare-elim): Document it.
14857         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14858         * doc/tm.texi: Rebuild.
14859
14860 2011-01-22  Nick Clifton  <nickc@redhat.com>
14861
14862         * config/rx/rx.md (cstoresf4): Pass comparison operator to
14863         rx_split_fp_compare.
14864
14865 2011-01-22  Nick Clifton  <nickc@redhat.com>
14866
14867         * config/rx/rx.md (UNSPEC_CONST): New.
14868         (deallocate_and_return): Wrap the amount popped off the stack in
14869         an UNSPEC_CONST in order to stop it being rejected by
14870         -mmax-constant-size.
14871         (pop_and_return): Add a "(return)" rtx.
14872         (call): Drop the immediate operand.
14873         (call_internal): Likewise.
14874         (call_value): Likewise.
14875         (call_value_internal): Likewise.
14876         (sibcall_internal): Likewise.
14877         (sibcall_value_internal): Likewise.
14878         (sibcall): Likewise.  Generate an explicit call using
14879         sibcall_internal.
14880         (sibcall_value): Likewise.
14881         (mov<>): FAIL if a constant operand is not legitimate.
14882         (addsi3_unpsec): New pattern.
14883
14884         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14885         (ok_for_max_constant): New function.
14886         (gen_safe_add): New function.
14887         (rx_expand_prologue): Use gen_safe_add.
14888         (rx_expand_epilogue): Likewise.
14889         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
14890         UNSPEC CONSTs.
14891
14892 2011-01-21  Jeff Law  <law@redhat.com>
14893
14894         PR tree-optimization/47053
14895         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14896         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14897         statements are deleted.
14898         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
14899         is nonempty, then purge dead edges and cleanup the CFG.
14900
14901 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14902
14903         PR debug/47402
14904         Temporarily revert:
14905         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14906         PR debug/47106
14907         * tree-dfa.c (create_var_ann): Mark variable as used.
14908
14909 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14910
14911         PR middle-end/45566
14912         * except.c (convert_to_eh_region_ranges): Emit queued no-region
14913         notes from other section in hot/cold partitioning even if
14914         last_action is -3.  Increment call_site_base.
14915
14916         PR rtl-optimization/47366
14917         * fwprop.c (forward_propagate_into): Return bool.  If
14918         any changes are made, -fnon-call-exceptions is used and
14919         REG_EH_REGION note is present, call purge_dead_edges
14920         and return true if it purged anything.
14921         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14922         any EH edges were purged.
14923
14924 2011-01-21  Jeff Law  <law@redhat.com>
14925
14926         PR rtl-optimization/41619
14927         * caller-save.c (setup_save_areas): Break out code to determine
14928         which hard regs are live across calls by examining the reload chains
14929         so that it is always used.
14930         Eliminate code which checked REG_N_CALLS_CROSSED.
14931
14932 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14933
14934         PR tree-optimization/47355
14935         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14936         NOP has non-debug uses beyond PHIs in new_bb.
14937
14938 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14939
14940         PR debug/47106
14941         * cfgexpand.c (account_used_vars_for_block): Only account vars
14942         that are annotated as used.
14943         (estimated_stack_frame_size): Don't set TREE_USED.
14944         * tree-dfa.c (create_var_ann): Mark variable as used.
14945
14946 2011-01-21  Richard Guenther  <rguenther@suse.de>
14947
14948         PR middle-end/47395
14949         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14950
14951 2011-01-21  Richard Guenther  <rguenther@suse.de>
14952
14953         PR tree-optimization/47365
14954         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14955         (vn_reference_lookup_pieces): Adjust.
14956         (vn_reference_lookup): Likewise.
14957         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14958         (vn_reference_lookup_3): Only look through kills if in
14959         VN_WALKREWRITE mode.
14960         (vn_reference_lookup_pieces): Adjust.
14961         (vn_reference_lookup): Likewise.
14962         (visit_reference_op_load): Likewise.
14963         (visit_reference_op_store): Likewise.
14964         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14965         (compute_avail): Likewise.
14966         (eliminate): Likewise.
14967
14968 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14969
14970         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14971         DECL_IGNORED_P non-reg vars if they are used.
14972
14973         PR tree-optimization/47391
14974         * varpool.c (const_value_known_p): Return false if
14975         decl is volatile.
14976
14977 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
14978
14979         PR bootstrap/47215
14980         * config/i386/i386.c (ix86_local_alignment): Handle
14981         case for va_list_type_node is nil.
14982         (ix86_canonical_va_list_type): Likewise.
14983
14984 2011-01-21  Alan Modra  <amodra@gmail.com>
14985
14986         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14987         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14988
14989 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14990
14991         * config/arm/arm.md (define_attr type): Rename f_load
14992         and f_store to f_fpa_load and f_fpa_store. Update.
14993         (write_conflict): Deal with rename fallout.
14994         (*push_fp_multi): Likewise.
14995         * config/arm/fpa.md (f_load): Use f_fpa_load.
14996         (f_store): Use f_fpa_store.
14997         (*movsf_fpa): Likewise.
14998         (*movdf_fpa): Likewise.
14999         (*movxf_fpa): Likewise.
15000         (*thumb2_movsf_fpa): Likewise.
15001         (*thumb2_movdf_fpa): Likewise.
15002         (*thumb2_movxf_fpa): Likewise.
15003         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15004         f_loadd and f_stored.
15005         (*thumb2_movdi_vfp): Likewise.
15006         (*thumb2_movsf_vfp): Fix attribute to f_loads.
15007         (*thumb2_movsi_vfp): Likewise.
15008         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15009         Use f_loads instead of f_load.
15010         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15011
15012 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
15013
15014         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15015         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15016         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15017         (xtensa_mode_dependent_address_p): New function.
15018         (constantpool_address_p): Make static. Change return type to bool.
15019         Change argument type to const_rtx. Use CONST_INT_P predicate.
15020
15021 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
15022
15023         PR debug/46583
15024         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15025
15026 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
15027
15028         PR debug/47283
15029         * cfgexpand.c (expand_debug_expr): Instead of generating
15030         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15031         etc. handling.
15032
15033 2011-01-20  Richard Guenther  <rguenther@suse.de>
15034
15035         PR middle-end/47370
15036         * tree-inline.c (remap_gimple_op_r): Recurse manually for
15037         the pointer operand of MEM_REFs.
15038
15039 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
15040
15041         PR tree-optimization/46130
15042         * ipa-split.c (consider_split): If return_bb contains non-virtual
15043         PHIs other than for retval or if split_function would not adjust it,
15044         refuse to split.
15045
15046 2011-01-20  Richard Guenther  <rguenther@suse.de>
15047
15048         PR tree-optimization/47167
15049         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15050         Revert previous change, only avoid enumeral type changes.
15051
15052 2011-01-19  Mike Stump  <mikestump@comcast.net>
15053
15054         * doc/tm.texi.in (BRANCH_COST): Englishify.
15055         * doc/tm.texi (BRANCH_COST): Likewise.
15056
15057 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
15058
15059         PR c++/47291
15060         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15061         (gen_scheduled_generic_parms_dies): New functions.
15062         (gen_struct_or_union_type_die): Schedule template parameters DIEs
15063         generation for the end of CU compilation.
15064         (dwarf2out_finish): Generate template parameters DIEs here.
15065
15066 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
15067
15068         PR debug/46240
15069         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15070         debug bind stmt on merge edges.
15071
15072 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
15073
15074         PR debug/47079
15075         PR debug/46724
15076         * function.c (instantiate_expr): Instantiate incoming rtl of
15077         implicit arguments, and recurse on VALUE_EXPRs.
15078         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15079         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15080
15081 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
15082
15083         * c-parser.c (c_parser_for_statement): Initialize
15084         collection_expression.
15085
15086 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
15087
15088         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15089
15090 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
15091
15092         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15093         (LINK_SHLIB_SPEC): Don't use %(link_path).
15094         (SUBTARGET_EXTRA_SPECS): Remove link_path.
15095
15096 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
15097
15098         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15099         (NO_SHARED_LIB_SUPPORT): Remove.
15100         (LINK_SHLIB_SPEC): Remove one conditional definition.
15101
15102 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
15103
15104         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15105         %{call_shared}.
15106         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15107         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15108         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15109         %{call_shared} and conditionals on these options not being passed.
15110         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15111         %{call_shared}.
15112
15113 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
15114
15115         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15116         simplify.
15117
15118         * ipa-split.c: Spelling fixes.
15119
15120 2011-01-19  Richard Henderson  <rth@redhat.com>
15121
15122         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15123         (*mulsi3): Likewise.
15124
15125         * longlong.h [__mn10300__] (count_leading_zeros): New.
15126         [__mn10300__] (umul_ppmm, smul_ppmm): New.
15127         [__mn10300__] (add_ssaaaa, subddmmss): New.
15128         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15129         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15130
15131 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15132
15133         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15134
15135 2011-01-19  Richard Henderson  <rth@redhat.com>
15136
15137         * config/mn10300/mn10300.md (addsi3_flags): New.
15138         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15139         (subsi3_flags, subc_internal, subdi3): New.
15140         (subdi3_internal, *subdi3_degenerate): New.
15141         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15142
15143         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15144         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15145         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
15146         * config/mn10300/mn10300-protos.h: Update.
15147         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15148         (return_ret): Likewise.  Rename from return_internal_regs.
15149         (return_internal): Remove.
15150
15151         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15152         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15153         (mn10300_legitimate_constant_p): Likewise.
15154         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15155         (mn10300_frame_size): New.
15156         (mn10300_expand_prologue): Use it.
15157         (mn10300_expand_epilogue): Likewise.
15158         (mn10300_initial_offset): Likewise.
15159         * config/mn10300/mn10300-protos.h: Update.
15160         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15161         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15162         (prologue, epilogue, return_internal): Tidy output code.
15163         (mn10300_store_multiple_operation, return): Likewise.
15164         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15165         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15166         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15167         (load_pic, am33_load_pic): New.
15168         (mn10300_load_pic0, mn10300_load_pic1): New.
15169
15170         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15171         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15172         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15173         (cc_flags_for_mode, cc_flags_for_code): New.
15174         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15175         overflow flag is not valid.  Validate that the flags we need
15176         for the comparison are valid.
15177         (mn10300_output_cmp): Remove.
15178         (mn10300_output_add): New.
15179         (mn10300_select_cc_mode): Use cc_flags_for_code.
15180         (mn10300_split_cbranch): New.
15181         (mn10300_match_ccmode): New.
15182         (mn10300_split_and_operand_count): New.
15183         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15184         to the function.
15185         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15186         (addsi3): ... here.  Use mn10300_output_add.
15187         (*addsi3_flags): New.
15188         (*am33_subsi3, *mn10300_subsi3): Merge...
15189         (subsi3): ... here.  Use attribute isa.
15190         (*subsi3_flags): New.
15191         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
15192         when possible.
15193         (*am33_andsi3, *mn10300_andsi3): Merge...
15194         (andsi3): ... here.
15195         (*andsi3_flags): New.
15196         (andsi3 splitters): New.
15197         (*am33_iorsi3, *mn10300_iorsi3): Merge...
15198         (iorsi3): ... here.
15199         (*iorsi3_flags): New.
15200         (*am33_xorsi3, *mn10300_xorsi3): Merge...
15201         (xorsi3): ... here.
15202         (*xorsi3_flags): New.
15203         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15204         (one_cmplsi2): ... here.
15205         (*one_cmplsi2_flags): New.
15206         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
15207         instead of "dax" in constraints.  Use mn10300_split_cbranch.
15208         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
15209         use matching constraints to eliminate a self-comparison.
15210         (*integer_conditional_branch): Rename from integer_conditional_branch.
15211         Use int_mode_flags to match CC_REG.
15212         (*cbranchsi4_btst, *btstsi): New.
15213         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
15214         mn10300_split_cbranch.
15215         (*am33_cmpsf): Rename from am33_cmpsf.
15216         (*float_conditional_branch): Rename from float_conditional_branch.
15217         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15218         (zero_extendqisi2): ... here.
15219         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15220         (zero_extendhisi2): ... here.
15221         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15222         (extendqisi2): ... here.
15223         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15224         (extendhisi2): ... here.
15225         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15226         (ashlsi3): ... here.
15227         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15228         (lshrsi3): ... here.
15229         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15230         (ashrsi3): ... here.
15231         (consecutive add peephole): Remove.
15232         * config/mn10300/predicates.md (label_ref_operand): New.
15233         (int_mode_flags): New.
15234         (CCZN_comparison_operator): New.
15235
15236         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15237         (throughput_42_latency_43): New reservation.
15238         (mulsidi3, umulsidi3): New expanders.
15239         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
15240         the MDR register to allocation; separately allocate the low and
15241         high parts of the DImode result.
15242         (umulsidi3_internal): Similarly.
15243         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15244         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
15245         (udivsi3, umodsi3): Remove.
15246         (udivmodsi4, divmodsi4): New expanders.
15247         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
15248         (*divmodsi4): Simiarly.
15249         (ext_internal): New.
15250
15251         * config/mn10300/constraints.md ("z"): New constraint.
15252         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15253         (FIXED_REGISTERS): Don't fix MDR.
15254         (CALL_USED_REGSITERS): Reformat nicely.
15255         (REG_ALLOC_ORDER): Add MDR.
15256         (enum regclass): Add MDR_REGS.
15257         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15258         (IRA_COVER_CLASSES): Add MDR_REGS.
15259         (REGNO_REG_CLASS): Handle MDR_REG.
15260         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15261         (mn10300_register_move_cost): Likewise.
15262         * config/mn10300/mn10300.md (MDR_REG): New.
15263         (*movsi_internal): Handle moves to/from MDR_REGS.
15264
15265         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15266         POST_MODIFY.
15267         (mn10300_secondary_reload): Tidy combination reload classes.
15268         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15269         addresses for AM33.  Allow symbolic offsets for reg+imm.
15270         (mn10300_regno_in_class_p): New.
15271         (mn10300_legitimize_reload_address): New.
15272         * config/mn10300/mn10300.h (enum reg_class): Remove
15273         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15274         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
15275         SP_OR_GENERAL_REGS.
15276         (REG_CLASS_NAMES): Update to match.
15277         (REG_CLASS_CONTENTS): Likewise.
15278         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15279         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15280         (REGNO_IN_RANGE_P): Remove.
15281         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15282         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15283         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15284         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15285         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15286         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15287         (REGNO_GENERAL_P): New.
15288         (HAVE_POST_MODIFY_DISP): New.
15289         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15290         (LEGITIMIZE_RELOAD_ADDRESS): New.
15291         * config/mn10300/mn10300-protos.h: Update.
15292
15293         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15294         DATA_REGS for AM33 stack-pointer destination.
15295         (mn10300_preferred_output_reload_class): Likewise.
15296         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15297         into a form appropriate for ...
15298         (TARGET_SECONDARY_RELOAD): New.
15299         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15300         * config/mn10300/mn10300-protos.h: Update.
15301         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15302         reload_insi; use the "A" constraint for the scratch; handle AM33
15303         moves of sp to non-address registers.
15304
15305         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15306         (*movqi_internal): ... here.
15307         (*am33_movhi, *mn10300_movhi): Merge into...
15308         (*movhi_internal): ... here.
15309         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
15310         as the source/destination of moves from/to SP.
15311         (movsf): Only allow for AM33-2.
15312         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15313         any integer constant constraint.  Only allow for AM33-2.  Tidy
15314         all of the alternative outputs.
15315         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15316         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
15317         for MN103.
15318         (udivsi3, umodsi3): New patterns for MN103 only.
15319
15320 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
15321
15322         * doc/tm.texi.in: Spell out that a lack of register class unions
15323         can lead to ICEs.
15324         * doc/tm.texi: Regenerate.
15325
15326 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
15327
15328         PR rtl-optimization/47337
15329         * dce.c (check_argument_store): New function.
15330         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
15331
15332         PR tree-optimization/47290
15333         * tree-eh.c (infinite_empty_loop_p): New function.
15334         (cleanup_empty_eh): Use it.
15335
15336 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
15337
15338         PR target/46997
15339         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15340         (a64_expand_widen_sum): Ditto.
15341         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15342         (vec_extract_evenodd_help): Ditto.
15343         (vec_extract_evenv4hi): Ditto.
15344         (vec_extract_oddv4hi): Ditto.
15345         (vec_extract_evenv2si): Ditto.
15346         (vec_extract_oddv2si): Ditto.
15347         (vec_extract_evenv2sf): Ditto.
15348         (vec_extract_oddv2sf): Ditto.
15349         (vec_pack_trunc_v4hi: Ditto.
15350         (vec_pack_trunc_v2si): Ditto.
15351         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15352         (vec_interleave_highv8qi): Ditto.
15353         (mix1_r): Ditto.
15354         (vec_extract_oddv8qi): Ditto.
15355         (vec_interleave_lowv4hi): Ditto.
15356         (vec_interleave_highv4hi): Ditto.
15357         (vec_interleave_lowv2si): Ditto.
15358         (vec_interleave_highv2si): Ditto.
15359
15360 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15361
15362         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15363         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15364         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
15365         (pa_c_mode_for_suffix): New.
15366         (TARGET_EXPAND_BUILTIN): Define.
15367         (TARGET_C_MODE_FOR_SUFFIX): Define.
15368         (pa_builtins): Define.
15369         (pa_init_builtins): Register __float128 type and init new support
15370         builtins.
15371         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15372         * config/pa/quadlib.c (_U_Qfcopysign): New.
15373
15374 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
15375
15376         PR middle-end/46894
15377         * explow.c (allocate_dynamic_stack_space): Do not assume more than
15378         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15379         are defined.
15380
15381 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15382
15383         PR tree-optimization/47179
15384         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15385         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15386
15387 2011-01-18  Richard Guenther  <rguenther@suse.de>
15388
15389         PR rtl-optimization/47216
15390         * emit-rtl.c: Include tree-flow.h.
15391         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15392         of replicating it with different semantics.
15393         * Makefile.in (emit-rtl.o): Adjust.
15394
15395 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15396
15397         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15398         (cortex_a9_dp): Handle neon types correctly.
15399
15400 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
15401
15402         PR rtl-optimization/47299
15403         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15404         subtarget.  Use normal multiplication if both operands are constants.
15405         * expmed.c (expand_widening_mult): Don't try to optimize constant
15406         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
15407         before using it.
15408
15409 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15410
15411         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
15412         spacing after 'e.g.', typos, comma, hyphenation.
15413
15414 2011-01-17  Richard Henderson  <rth@redhat.com>
15415
15416         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15417         (rx_restricted_mem_operand): New.
15418         (rx_shift_operand): Use register_operand.
15419         (rx_source_operand, rx_compare_operand): Likewise.
15420         * config/rx/rx.md (addsi3_flags): New expander.
15421         (adddi3): Rewrite as expander.
15422         (adc_internal, *adc_flags, adddi3_internal): New patterns.
15423         (subsi3_flags): New expander.
15424         (subdi3): Rewrite as expander.
15425         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15426
15427         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15428         (rx_init_builtins): Remove sat builtin.
15429         (rx_expand_builtin): Likewise.
15430         * config/rx/rx.md (ssaddsi3): New.
15431         (*sat): Rename from sat.  Represent the CC_REG input.
15432
15433         * config/rx/predicates.md (rshift_operator): New.
15434         * config/rx/rx.c (rx_expand_insv): Remove.
15435         * config/rx/rx-protos.h: Update.
15436         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
15437         operand to the canonical position.
15438         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15439         (*bitclr, *bitclr_in_memory): Similarly.
15440         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15441         (insv): Retain the zero_extract in the expansion.
15442
15443         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15444         (bswaphi2, bitinvert, revw): Likewise.
15445
15446         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15447         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15448         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15449         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15450         (bitset, bitset_in_memory): Likewise.
15451         (bitinvert, bitinvert_in_memory): Likewise.
15452         (bitclr, bitclr_in_memory): Likewise.
15453         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15454         (rx_strend, rx_cmpstrn): Likewise.
15455         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
15456         (bitop peep2 patterns): Remove.
15457
15458         * config/rx/rx.c (rx_match_ccmode): New.
15459         * config/rx/rx-protos.h: Update.
15460         * config/rx/rx.md (abssi2): Clobber, don't set flags.
15461         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15462         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15463         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15464         (fix_truncsfsi2, floatsisf2): Likewise.
15465         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15466         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15467         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15468         (*subsi3_flags, *xorsi3_flags): New.
15469
15470         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15471
15472         * config/rx/rx.c (rx_print_operand): Remove workaround for
15473         unsplit comparison operations.
15474
15475         * config/rx/rx.md (movsicc): Split after reload.
15476         (*movsicc): Merge *movsieq and *movsine via match_operator.
15477         (*stcc): New pattern.
15478
15479         * config/rx/rx.c (rx_float_compare_mode): Remove.
15480         * config/rx/rx.h (rx_float_compare_mode): Remove.
15481         * config/rx/rx.md (cstoresi4): Split after reload.
15482         (*sccc): New pattern.
15483
15484         * config/rx/predicates.md (label_ref_operand): New.
15485         (rx_z_comparison_operator): New.
15486         (rx_zs_comparison_operator): New.
15487         (rx_fp_comparison_operator): New.
15488         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15489         Validate that the flags are set properly for the comparison.
15490         (rx_gen_cond_branch_template): Remove.
15491         (rx_cc_modes_compatible): Remove.
15492         (mode_from_flags): New.
15493         (flags_from_code): Rename from flags_needed_for_conditional.
15494         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15495         (rx_select_cc_mode): Likewise.
15496         (rx_split_fp_compare): New.
15497         (rx_split_cbranch): New.
15498         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15499         (*cbranchsi4): Use match_operator and rx_split_cbranch.
15500         (*cbranchsf4): Similarly.
15501         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
15502         match_operator and rx_split_cbranch.
15503         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15504         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
15505         (*cmpsi): Rename from cmpsi.
15506         (*tstsi): Rename from tstsi.
15507         (*cmpsf): Rename from cmpsf; use CC_Fmode.
15508         (*conditional_branch): Rename from conditional_branch.
15509         (*reveresed_conditional_branch): Remove.
15510         (b<code>): Remove expander.
15511         * config/rx/rx-protos.h: Update.
15512
15513         * config/rx/rx.c (rx_compare_redundant): Remove.
15514         * config/rx/rx.md (cmpsi): Don't use it.
15515         * config/rx/rx-protos.h: Update.
15516
15517         * config/rx/rx-modes.def (CC_F): New mode.
15518         * config/rx/rx.c (rx_select_cc_mode): New.
15519         * config/rx/rx.h (SELECT_CC_MODE): Use it.
15520         * config/rx/rx-protos.h: Update.
15521
15522 2011-01-17  Richard Henderson  <rth@redhat.com>
15523
15524         * except.c (dump_eh_tree): Fix stray ; after for statement.
15525
15526 2011-01-17  Richard Guenther  <rguenther@suse.de>
15527
15528         PR tree-optimization/47313
15529         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15530         handling before copying the body.  Properly deal with
15531         by-reference result in SSA form.
15532
15533 2011-01-17  Ian Lance Taylor  <iant@google.com>
15534
15535         PR target/47219
15536         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15537         (struct_value_alias_set): Don't define.
15538         (sparc_option_override): Don't set sparc_sr_alias_set and
15539         struct_value_alias_set.
15540         (save_or_restore_regs): Use gen_frame_mem rather than calling
15541         set_mem_alias_set.
15542         (sparc_struct_value_rtx): Likewise.
15543
15544 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
15545
15546         PR target/47318
15547         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15548         (_mm_maskstore_pd): Likewise.
15549         (_mm_maskload_ps): Likewise.
15550         (_mm_maskstore_ps): Likewise.
15551         (_mm256_maskload_pd): Change mask to __m256i.
15552         (_mm256_maskstore_pd): Likewise.
15553         (_mm256_maskload_ps): Likewise.
15554         (_mm256_maskstore_ps): Likewise.
15555
15556         * config/i386/i386-builtin-types.def: Updated.
15557         (ix86_expand_special_args_builtin): Likewise.
15558
15559         * config/i386/i386.c (bdesc_special_args): Update
15560         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15561         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15562         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15563         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15564
15565         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15566         Use <avxpermvecmode> on mask register.
15567         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15568
15569 2011-01-17  Olivier Hainque  <hainque@adacore.com>
15570             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
15571             Eric Botcazou  <ebotcazou@adacore.com>
15572
15573         PR target/46655
15574         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15575         if <= USHRT_MAX in 32-bit mode.
15576
15577 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15578
15579         * doc/install.texi (Configuration, Specific): Wrap long
15580         lines in examples.  Allow line wrapping in long options
15581         and URLs where beneficial for PDF output.
15582
15583 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
15584
15585         * config/mips/mips.c (mips_classify_symbol): Don't return
15586         SYMBOL_PC_RELATIVE for nonlocal labels.
15587
15588 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
15589
15590         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15591
15592 2011-01-15  Jan Hubicka  <jh@suse.cz>
15593
15594         PR tree-optimization/47276
15595         * ipa.c (function_and_variable_visibility): Do not try to mark alias
15596         declarations as needed.
15597
15598 2011-01-15  Martin Jambor  <mjambor@suse.cz>
15599
15600         * common.opt (fdevirtualize): New flag.
15601         * doc/invoke.texi (Option Summary): Document it.
15602         * opts.c (default_options_table): Add devirtualize flag.
15603         * ipa-prop.c (detect_type_change): Return immediately if
15604         devirtualize flag is not set.
15605         (detect_type_change_ssa): Likewise.
15606         (compute_known_type_jump_func): Likewise.
15607         (ipa_analyze_virtual_call_uses): Likewise.
15608
15609 2011-01-14  Martin Jambor  <mjambor@suse.cz>
15610
15611         PR tree-optimization/45934
15612         PR tree-optimization/46302
15613         * ipa-prop.c (type_change_info): New type.
15614         (stmt_may_be_vtbl_ptr_store): New function.
15615         (check_stmt_for_type_change): Likewise.
15616         (detect_type_change): Likewise.
15617         (detect_type_change_ssa): Likewise.
15618         (compute_complex_assign_jump_func): Check for dynamic type change.
15619         (compute_complex_ancestor_jump_func): Likewise.
15620         (compute_known_type_jump_func): Likewise.
15621         (compute_scalar_jump_functions): Likewise.
15622         (ipa_analyze_virtual_call_uses): Likewise.
15623         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15624
15625 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15626
15627         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15628         * config/i386/i386.opt (msse5): New Alias.
15629
15630 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15631
15632         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15633         * config/sparc/linux64.h (CC1_SPEC): Likewise.
15634         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15635         * config/sparc/sparc.h (CC1_SPEC): Likewise.
15636
15637 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15638
15639         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15640         -mcpu options.
15641         * config/sparc/linux64.h (CC1_SPEC): Likewise.
15642         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15643         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15644         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15645         Likewise.
15646         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15647
15648 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15649
15650         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15651
15652 2011-01-14  Mike Stump  <mikestump@comcast.net>
15653
15654         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15655         * config/fr30/fr30.md: Likweise
15656         (movsi_push): Likewise.
15657         (movsi_pop): Likewise.
15658         (enter_func): Likewise.
15659         * config/moxie/moxie.md (movsi_push): Likewise.
15660         (movsi_pop): Likewise.
15661
15662 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15663
15664         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15665         %{no_archive} %{exact_version}.
15666         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15667         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15668         %{no_archive} %{exact_version}.
15669         * config/mips/openbsd.h (LINK_SPEC): Likewise.
15670         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15671         * config/mips/vxworks.h: Likewise.
15672
15673 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15674
15675         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15676
15677 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15678
15679         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15680         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15681
15682 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15683
15684         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15685         -nodefaultlib.
15686
15687 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15688
15689         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15690         for mcpu not cpu.
15691         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15692         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15693         not cpu.
15694         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15695         Don't handle -shlib.
15696
15697 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15698
15699         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15700         (CC1_SPEC): Don't handle -profile.
15701
15702 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15703
15704         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15705         * config/mips/mips.h (CC1_SPEC): Likewise.
15706
15707 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15708
15709         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15710         * config/mips/mips.h (CC1_SPEC): Likewise.
15711
15712 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15713
15714         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15715         * config/m32r/linux.h (LINK_SPEC): Likewise.
15716         * config/mips/linux.h (LINK_SPEC): Likewise.
15717         * config/mips/linux64.h (LINK_SPEC): Likewise.
15718         * config/sparc/linux.h (LINK_SPEC): Likewise.
15719         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15720         LINK_SPEC): Likewise.
15721         * config/xtensa/linux.h (LINK_SPEC): Likewise.
15722
15723 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15724
15725         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15726         %{version:-v}.
15727         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15728
15729 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15730
15731         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15732         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15733
15734 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15735
15736         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15737
15738 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15739
15740         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15741         supports -Bstatic/-Bdynamic.
15742         * configure: Regenerate.
15743
15744 2011-01-14  Jan Hubicka  <jh@suse.cz>
15745             Jack Howarth  <howarth@bromo.med.uc.edu>
15746
15747         PR target/46037
15748         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15749         when checking debug_info_level. Test write_symbols instead of
15750         debug_hooks->var_location when setting flag_var_tracking_uninit.
15751
15752 2011-01-14  Richard Guenther  <rguenther@suse.de>
15753
15754         PR tree-optimization/47179
15755         * target.def (ref_may_alias_errno): New target hook.
15756         * targhooks.h (default_ref_may_alias_errno): Declare.
15757         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15758         (default_ref_may_alias_errno): New function.
15759         * target.h (struct ao_ref_s): Declare.
15760         * tree-ssa-alias.c: Include target.h.
15761         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15762         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15763         (targhooks.o): Likewise.
15764         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15765         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15766
15767 2011-01-14  Richard Guenther  <rguenther@suse.de>
15768
15769         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
15770
15771 2011-01-14  Richard Guenther  <rguenther@suse.de>
15772
15773         PR tree-optimization/47280
15774         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15775         return CFG changes.
15776         (tree_ssa_forward_propagate_single_use_vars): Deal with
15777         CFG changes from associate_plusminus.
15778
15779 2011-01-14  Richard Guenther  <rguenther@suse.de>
15780
15781         PR middle-end/47281
15782         Revert
15783         2011-01-11  Richard Guenther  <rguenther@suse.de>
15784
15785         PR tree-optimization/46076
15786         * tree-ssa.c (useless_type_conversion_p): Conversions from
15787         unprototyped to empty argument list function types are useless.
15788
15789 2011-01-14  Richard Guenther  <rguenther@suse.de>
15790
15791         PR tree-optimization/47286
15792         * tree-ssa-structalias.c (new_var_info): Register variables are global.
15793
15794 2011-01-14  Martin Jambor  <mjambor@suse.cz>
15795
15796         PR middle-end/46823
15797         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15798
15799 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
15800
15801         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15802         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15803         * config/xtensa/xtensa.c (xtensa_libcall_value,
15804         xtensa_function_value_regno_p): New functions.
15805         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15806
15807 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
15808
15809         PR c++/47213
15810         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15811         PE specific hook.
15812         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15813         New function prototype.
15814         * config/i386/winnt.c (i386_pe_assemble_visibility):
15815         Warn only if attribute was specified by user.
15816
15817 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15818
15819         PR target/47251
15820         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15821         floating point.
15822         (floatunsdidf2_fcfidu): Ditto.
15823
15824 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15825
15826         * config/s390/s390.c (print_operand_address): Replace 'error' with
15827         'output_operand_lossage'.
15828         (print_operand): Likewise.
15829
15830 2011-01-13  Jeff Law  <law@redhat.com>
15831
15832         PR rtl-optimization/39077
15833         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15834         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15835         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15836         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15837         * gcse.c (prune_insertions_deletions): New function.
15838         (compute_pre_data): Use it.
15839
15840 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
15841
15842         PR debug/PR46973
15843         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15844         static function.
15845         (prune_unused_types_mark): Use it.
15846
15847 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
15848
15849         PR rtl-optimization/45352
15850         * sel-sched.c: Update copyright years.
15851         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15852         in the advancing loop when we have issued issue_rate insns.
15853
15854 2011-01-12  Richard Henderson  <rth@redhat.com>
15855
15856         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15857         (TARGET_MD_ASM_CLOBBERS): New.
15858
15859         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15860         (TARGET_DELEGITIMIZE_ADDRESS): New.
15861
15862         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15863         (clzsi2, *bsch): New patterns.
15864
15865         * config/mn10300/mn10300.md (INT): New mode iterator.
15866         (*mov<INT>_clr): New pattern, and peep2 to generate it.
15867
15868         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15869         flag_split_wide_types.
15870
15871         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15872         (mn10300_trampoline_init): Rewrite without a template, an immediate
15873         load and a direct branch.
15874         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15875
15876 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
15877
15878         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15879         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15880         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15881         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15882
15883 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
15884
15885         PR debug/47209
15886         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15887         of type.
15888
15889 2011-01-12  Jan Hubicka  <jh@suse.cz>
15890
15891         PR driver/47244
15892         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15893         (PLUGIN_COND_CLOSE): New macro.
15894         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15895
15896 2011-01-12  Richard Guenther  <rguenther@suse.de>
15897
15898         PR lto/47259
15899         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15900         register variables in a MEM_REF.
15901
15902 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
15903
15904         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15905         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15906         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15907         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15908         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15909         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15910         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15911         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15912         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15913         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15914         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15915         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15916         * config/gnu-user.h: New.  Copied from linux.h.
15917         (LINUX_TARGET_STARTFILE_SPEC): Rename to
15918         GNU_USER_TARGET_STARTFILE_SPEC.
15919         (LINUX_TARGET_ENDFILE_SPEC): Rename to
15920         GNU_USER_TARGET_ENDFILE_SPEC.
15921         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15922         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15923         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15924         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15925         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15926         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15927         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15928         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15929         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15930         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15931         * config/arm/linux-eabi.h (CC1_SPEC): Use
15932         GNU_USER_TARGET_CC1_SPEC.
15933         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15934         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15935         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15936         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15937         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15938         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15939         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15940         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15941
15942 2011-01-12  Richard Guenther  <rguenther@suse.de>
15943
15944         PR other/46946
15945         * doc/invoke.texi (ffast-math): Document it is turned on
15946         with -Ofast.
15947
15948 2011-01-12  Jan Hubicka  <jh@suse.cz>
15949
15950         PR tree-optimization/47233
15951         * opts.c (common_handle_option): Disable ipa-reference with profile
15952         feedback.
15953
15954 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15955
15956         * c-parser.c (c_parser_objc_at_property_declaration): Improved
15957         error message.
15958
15959 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15960
15961         * c-parser.c (c_lex_one_token): Updated and reindented some
15962         comments.  No changes in code.
15963
15964 2011-01-11  Ian Lance Taylor  <iant@google.com>
15965
15966         * godump.c (go_output_var): Don't output the variable if there is
15967         already a type with the same name.
15968
15969 2011-01-11  Ian Lance Taylor  <iant@google.com>
15970
15971         * godump.c (go_format_type): Don't generate float80.
15972
15973 2011-01-11  Richard Henderson  <rth@redhat.com>
15974
15975         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15976         declaration.  Rewrite for both speed and size.
15977         (mn10300_address_cost_1): Remove.
15978         (mn10300_register_move_cost): New.
15979         (mn10300_memory_move_cost): New.
15980         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
15981         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
15982         extensions, shifts, BSWAP, CLZ.
15983         (mn10300_wide_const_load_uses_clr): Remove.
15984         (TARGET_REGISTER_MOVE_COST): New.
15985         (TARGET_MEMORY_MOVE_COST): New.
15986         * config/mn10300/mn10300-protos.h: Update.
15987         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15988
15989         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15990         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15991         * config/mn10300/mn10300-protos.h: Update.
15992         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15993         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15994         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15995         (*test_int_bitfield, *test_byte_bitfield): Remove.
15996         (*bit_test, *subreg_bit_test): Remove.
15997         * config/mn10300/predicates.md (const_8bit_operand): Remove.
15998
15999         * config/mn10300/constraints.md ("c"): Rename from "A".
16000         ("A", "D"): New constraint letters.
16001         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16002         (fmssf4, fnmasf4, fnmssf4): Likewise.
16003
16004         * config/mn10300/mn10300.md (isa): New attribute.
16005         (enabled): New attribute.
16006
16007         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16008         (abssf2, negsf2): Define only for hardware fp.
16009         (sqrtsf2): Reformat.
16010         (addsf3, subsf3, mulsf3): Merge expander and insn.
16011
16012         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16013         (DEBUGGER_AUTO_OFFSET): Remove.
16014         (DEBUGGER_ARG_OFFSET): Remove.
16015
16016         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16017         Emit register stores with the same offsets as the hardware.
16018         (mn10300_store_multiple_operation): Don't check that the register
16019         save offsets are monotonic.
16020         * config/mn10300/mn10300-protos.h: Update.
16021
16022         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16023
16024         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16025         in terms of the value on the stack, not the MDR register.
16026
16027 2011-01-11  Jan Hubicka  <jh@suse.cz>
16028
16029         PR lto/45721
16030         PR lto/45375
16031         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16032         (symbol_alias_set_destroy, symbol_alias_set_contains,
16033         propagate_aliases_backward): Declare.
16034         * lto-streamer-out.c (struct sets): New sturcture.
16035         (trivally_defined_alias): New function.
16036         (output_alias_pair_p): Rewrite.
16037         (output_unreferenced_globals): Fix output of alias pairs.
16038         (produce_symtab): Likewise.
16039         * ipa.c (function_and_variable_visibility): Set weak alias destination
16040         as needed in lto.
16041         * varasm.c (symbol_alias_set_t): Remove.
16042         (symbol_alias_set_destroy): Export.
16043         (propagate_aliases_forward, propagate_aliases_backward): New functions
16044         based on ...
16045         (compute_visible_aliases): ... this one; remove.
16046         (trivially_visible_alias): New
16047         (trivially_defined_alias): New.
16048         (remove_unreachable_alias_pairs): Rewrite.
16049         (finish_aliases_1): Reorganize code checking if alias is defined.
16050         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16051         in LTO mode.
16052
16053 2011-01-11  Richard Guenther  <rguenther@suse.de>
16054
16055         PR tree-optimization/46076
16056         * tree-ssa.c (useless_type_conversion_p): Conversions from
16057         unprototyped to empty argument list function types are useless.
16058
16059 2011-01-11  Richard Guenther  <rguenther@suse.de>
16060
16061         PR middle-end/45235
16062         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16063         volatile MEMs as MEM_READONLY_P.
16064
16065 2011-01-11  Richard Guenther  <rguenther@suse.de>
16066
16067         PR tree-optimization/47239
16068         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16069
16070 2011-01-11  Jeff Law  <law@redhat.com>
16071
16072         PR tree-optimization/47086
16073         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16074         IVs from statements that might throw.
16075
16076 2011-01-10  Jan Hubicka  <jh@suse.cz>
16077
16078         PR lto/45375
16079         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16080
16081 2011-01-10  Jan Hubicka  <jh@suse.cz>
16082
16083         PR lto/45375
16084         * profile.c (read_profile_edge_counts): Ignore profile inconistency
16085         when correcting profile.
16086
16087 2011-01-10  Jan Hubicka  <jh@suse.cz>
16088
16089         PR lto/46083
16090         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16091         DECL_FINI_PRIORITY.
16092         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16093         Restore DECL_FINI_PRIORITY.
16094
16095 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16096
16097         * doc/gimple.texi: Fix quoting of multi-word return values in
16098         @deftypefn statements.  Ensure presence of return value.  Wrap
16099         overlong @deftypefn lines.
16100         (is_gimple_operand, is_gimple_min_invariant_address): Remove
16101         descriptions of removed functions.
16102         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16103         of multi-word return value in @deftypefn statement.
16104
16105 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16106
16107         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16108         (Conditional Expressions, Logical Operators)
16109         (Statement and operand traversals): Do not indent smallexample
16110         code.  Fix duplicate function argument in example.
16111
16112 2011-01-10  Jeff Law  <law@redhat.com>
16113
16114         PR tree-optimization/47141
16115         * ipa-split.c (split_function): Handle case where we are
16116         returning a value and the return block has a virtual operand phi.
16117
16118 2011-01-10  Jan Hubicka  <jh@suse.cz>
16119
16120         PR tree-optimization/47234
16121         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16122         (pass_feedback_split_functions): Declare.
16123         * passes.c (init_optimization_passes): Add ipa-split as subpass of
16124         tree-profile.
16125         * ipa-split.c (gate_split_functions): Update comments; disable
16126         split-functions for profile_arc_flag and branch_probabilities.
16127         (gate_feedback_split_functions): New function.
16128         (execute_feedback_split_functions): New function.
16129         (pass_feedback_split_functions): New global var.
16130
16131 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
16132
16133         PR lto/46760
16134         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16135         calling gimple_call_set_cannot_inline.
16136
16137 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
16138
16139         * config/darwin-sections.def: Remove unused section.
16140
16141 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
16142
16143         PR c++/47218
16144         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16145
16146 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
16147
16148         PR objc/47232
16149         * c-parser.c (c_parser_declaration_or_fndef): Improved
16150         error message.
16151
16152 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
16153
16154         * config/i386/winnt.c (i386_pe_start_function): Make sure
16155         to switch back to function's section.
16156
16157 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
16158
16159         PR gcc/46902
16160         PR testsuite/46912
16161         * plugin.c: Move include of dlfcn.h from here...
16162         * system.h: ... to here.
16163
16164 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16165
16166         * doc/cpp.texi (C++ Named Operators): Fix markup for header
16167         file name.
16168         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16169         two extra empty pages in PDF output.
16170
16171 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
16172
16173         PR objc/47078
16174         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16175         for error recovery purposes behave as if it was not specified so
16176         that the default type is usd.
16177
16178 2011-01-07  Jan Hubicka  <jh@suse.cz>
16179
16180         PR tree-optmization/46469
16181         * ipa.c (function_and_variable_visibility): Clear needed flags on
16182         nodes with external decls; handle weakrefs merging correctly.
16183
16184 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
16185
16186         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16187         not false.
16188
16189 2011-01-07  Jan Hubicka  <jh@suse.cz>
16190
16191         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16192         and no longer claim that gold is required for linker plugin.
16193         * configure: Regenerate.
16194         * gcc.c (PLUGIN_COND): New macro.
16195         (LINK_COMMAND_SPEC): Use it.
16196         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16197         * config.in (HAVE_LTO_PLUGIN): New.
16198         * configure.ac (--with-lto-plugin): New parameter; autodetect
16199         HAVE_LTO_PLUGIN.
16200
16201 2011-01-07  Jan Hubicka  <jh@suse.cz>
16202
16203         PR tree-optimization/46367
16204         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16205         when we can update original.
16206         (cgraph_mark_inline_edge): Sanity check.
16207         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16208
16209 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16210
16211         * config/spu/spu.h (ASM_COMMENT_START): Define.
16212
16213 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
16214
16215         PR driver/42445
16216         * gcc.c (%>S): New.
16217         (SWITCH_KEEP_FOR_GCC): Likewise.
16218         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16219         (do_spec_1): Handle "%>".
16220
16221         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16222
16223 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
16224
16225         PR target/47201
16226         * config/i386/i386.c (ix86_delegitimize_address): If
16227         simplify_gen_subreg fails, return orig_x.
16228
16229         PR bootstrap/47187
16230         * value-prof.c (gimple_stringop_fixed_value): Handle
16231         lhs of the call properly.
16232
16233 2011-01-07  Jan Hubicka  <jh@suse.cz>
16234
16235         PR lto/45375
16236         * lto-opt.c (lto_reissue_options): Set flag_shlib.
16237
16238 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
16239
16240         * target.def (function_switched_text_sections): New hook.
16241         * doc/tm.texi: Regenerated.
16242         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16243         * final.c (default_function_switched_text_sections): New.
16244         (final_scan_insn): Call function_switched_text_sections when a
16245         mid-function section change occurs.
16246         * output.h (default_function_switched_text_sections): Declare.
16247         * config/darwin-protos.h (darwin_function_switched_text_sections):
16248         Likewise.
16249         * config/darwin.c (darwin_function_switched_text_sections): New.
16250         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16251
16252 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
16253
16254         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
16255         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
16256         the secondary code fragment when outputting for DWARF == 2.
16257
16258 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
16259
16260         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16261         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16262         Remove.
16263         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16264         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16265
16266 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
16267
16268         PR debug/46704
16269         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16270         when it is not empty.
16271
16272 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
16273
16274         Bobcat Enablement
16275         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16276         (case ${target}): Add btver1.
16277         * config/i386/driver-i386.c (host_detect_local_cpu): Let
16278         -march=native recognize btver1 processors.
16279         * config/i386/i386-c.c (ix86_target_macros_internal): Add
16280         btver1 def_and_undef
16281         * config/i386/i386.c (struct processor_costs btver1_cost): New
16282         btver1 cost table.
16283         (m_BTVER1): New definition.
16284         (m_AMD_MULTIPLE): Includes m_BTVER1.
16285         (initial_ix86_tune_features): Add btver1 tune.
16286         (processor_target_table): Add btver1 entry.
16287         (static const char *const cpu_names): Add btver1 entry.
16288         (software_prefetching_beneficial_p): Add btver1.
16289         (ix86_option_override_internal): Add btver1 instruction sets.
16290         (ix86_issue_rate): Add btver1.
16291         (ix86_adjust_cost): Add btver1.
16292         * config/i386/i386.h (TARGET_BTVER1): New definition.
16293         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16294         (enum processor_type): Add PROCESSOR_BTVER1.
16295         * config/i386/i386.md (define_attr "cpu"): Add btver1.
16296
16297 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16298
16299         PR target/43309
16300         * config/i386/i386.c (legitimize_tls_address)
16301         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16302         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16303         (tls_initial_exec_64_sun): New pattern.
16304
16305 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
16306
16307         * doc/invoke.texi (Overall Options): Improve wording and markup
16308         of the description of -wrapper.
16309
16310 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
16311
16312         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16313         rdynamic, threads): New Driver options.
16314
16315 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16316
16317         PR target/38118
16318         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16319         if coming from .tdata.
16320         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16321
16322 2011-01-06  Jan Hubicka  <jh@suse.cz>
16323
16324         PR lto/47188
16325         * collect2.c (main): Do not enable LTOmode when plugin is active.
16326
16327 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16328
16329         PR other/45915
16330         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16331         --version output if supported.
16332         * configure: Regenerate.
16333
16334 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
16335
16336         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16337         Driver options.
16338
16339 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
16340
16341         PR c/47150
16342         * c-convert.c (convert): When converting a complex expression
16343         other than COMPLEX_EXPR to a different complex type, ensure
16344         c_save_expr is called instead of save_expr, unless in_late_binary_op.
16345         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16346         when converting COMPLEX_TYPE.
16347
16348 2011-01-06  Ira Rosen  <irar@il.ibm.com>
16349
16350         PR tree-optimization/47139
16351         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16352         only the last reduction value is used outside the loop.  Update
16353         documentation.
16354
16355 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
16356
16357         * config/rtems.opt: New.
16358         * config.gcc (*-*-rtems*): Use rtems.opt.
16359
16360 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
16361
16362         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16363         processors do not support 3DNow instructions.
16364
16365 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16366
16367         * config/spu/spu.c (spu_option_override): Set parameter
16368         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16369
16370 2011-01-05  Jan Hubicka  <jh@suse.cz>
16371
16372         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16373         at the command line.
16374
16375 2011-01-05  Martin Jambor  <mjambor@suse.cz>
16376
16377         PR lto/47162
16378         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16379         deltas on streamed outgoing edges.
16380         (output_node_opt_summary): Output info for outgoing edges only when
16381         the node is in new parameter set.
16382         (output_cgraph_opt_summary): New parameter set, passed to the two
16383         aforementioned functions.  Update its forward declaration and its
16384         callee too.
16385
16386 2011-01-05  Tom Tromey  <tromey@redhat.com>
16387
16388         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16389         operator to c_finish_omp_atomic.
16390         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16391         (build_unary_op): Update.
16392         (build_modify_expr): Update.
16393         (build_asm_expr): Update.
16394
16395 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16396
16397         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16398         newly inserted insns.
16399         (pad_bb): Likewise.
16400         (spu_emit_branch_hint): Likewise.
16401         (insert_hbrp_for_ilb_runout): Likewise.
16402         (spu_machine_dependent_reorg): Call df_finish_pass after
16403         schedule_insns returns.
16404
16405 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16406
16407         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16408
16409 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
16410
16411         PR tree-optimization/47005
16412         * tree-sra.c (struct access): Add 'non_addressable' bit.
16413         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16414         (decide_one_param_reduction): Return 0 if the parameter is passed by
16415         reference and one of the accesses in the group is non_addressable.
16416
16417 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16418
16419         PR tree-optimization/47056
16420         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16421         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
16422         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
16423
16424 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
16425
16426         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16427         initializer.  Skip view conversions from aggregate types.
16428
16429 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
16430
16431         PR bootstrap/47055
16432         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16433
16434 2011-01-04  Philipp Thomas  <pth@suse.de>
16435
16436         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16437         obvious typo.
16438
16439 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16440
16441         * function.c (thread_prologue_and_epilogue_insns): Do not crash
16442         on empty epilogue sequences.
16443
16444 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
16445
16446         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16447         non-static): New Driver options.
16448
16449 2011-01-04  Jie Zhang  <jie@codesourcery.com>
16450
16451         PR driver/47137
16452         * gcc.c (default_compilers[]): Set combinable field to 0
16453         for all assembly languages.
16454
16455 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
16456
16457         * config/mips/loongson3a.md: New file.
16458         * config/mips/mips.md: Include loongson3a.md.
16459         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16460         TUNE_LOONGSON_3A.
16461
16462 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
16463
16464         PR middle-end/47017
16465         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16466         instead of convert_memory_address_addr_space on the base expression.
16467
16468 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16469
16470         * config/spu/spu.c (spu_option_override): Update error text
16471         for bad -march= / -mtune= values.
16472
16473 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16474
16475         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16476         if branch-hint optimization will be performed.
16477
16478 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
16479
16480         PR tree-optimization/47148
16481         * ipa-split.c (split_function): Convert arguments to
16482         DECL_ARG_TYPE if possible.
16483
16484         PR tree-optimization/47155
16485         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16486         when computing uns.
16487
16488         PR rtl-optimization/47157
16489         * combine.c (try_combine): If undobuf.other_insn becomes
16490         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16491         and set *new_direct_jump_p too.
16492
16493 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
16494
16495         PR tree-optimization/47021
16496         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16497
16498 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
16499
16500         * gcc.c (process_command): Update copyright notice dates.
16501         * gcov.c (print_version): Likewise.
16502         * gcov-dump.c (print_version): Likewise.
16503         * mips-tfile.c (main): Likewise.
16504         * mips-tdump.c (main): Likewise.
16505
16506 2011-01-03  Martin Jambor  <mjambor@suse.cz>
16507
16508         PR tree-optimization/46801
16509         * tree-sra.c (type_internals_preclude_sra_p): Check whether
16510         aggregate fields start at byte boundary instead of the bit-field flag.
16511
16512 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
16513
16514         PR driver/47137
16515         * gcc.c (main): Revert revision 168407.
16516
16517 2011-01-03  Martin Jambor  <mjambor@suse.cz>
16518
16519         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16520
16521 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16522
16523         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16524         vector optab to expand vector/scalar shift, update gimple to vector.
16525
16526 2011-01-03  Martin Jambor  <mjambor@suse.cz>
16527
16528         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16529         a thunk.
16530
16531 2011-01-03  Martin Jambor  <mjambor@suse.cz>
16532
16533         PR tree-optimization/46984
16534         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16535         HOST_WIDE_INT.
16536         (cgraph_create_indirect_edge): Fixed line length.
16537         (cgraph_indirect_call_info): Declare.
16538         (cgraph_make_edge_direct) Update declaration.
16539         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16540         (cgraph_create_indirect_edge): Use it.
16541         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
16542         callees.
16543         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16544         the new thunk_delta representation.
16545         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16546         HOST_WIDE_INT.
16547         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16548         (ipa_read_indirect_edge_info): Likewise.
16549         * lto-cgraph.c (output_edge_opt_summary): New function.
16550         (output_node_opt_summary): Call it on all outgoing edges.
16551         (input_edge_opt_summary): New function.
16552         (input_node_opt_summary): Call it on all outgoing edges.
16553
16554 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
16555
16556         PR driver/47137
16557         * gcc.c (main): Don't check have_o when settting combine_inputs.
16558
16559 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
16560
16561         * regrename.c: Add general comment describing the pass.
16562         (struct du_head): Remove 'length' field.
16563         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16564         (regrename_optimize): Do not sort chains.  Rework comments, add others.
16565         Force renaming to the preferred class (if any) in the first pass and do
16566         not consider registers that belong to it in the second pass.
16567         (create_new_chain): Do not set 'length' field.
16568         (scan_rtx_reg): Likewise.
16569
16570 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
16571
16572         PR tree-optimization/47140
16573         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16574         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16575         to bit_value_binop.
16576
16577         PR rtl-optimization/47028
16578         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16579         parm_birth_insn instead of at the beginning of first bb.
16580
16581 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
16582
16583         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16584         Remove the word "see" before "@pxref".
16585         * doc/rtl.texi: Remove the word "see" before "@pxref".
16586
16587 2011-01-01  Jan Hubicka  <jh@suse.cz>
16588
16589         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16590         memory.
16591
16592 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
16593
16594         PR target/38662
16595         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16596
16597 \f
16598 Copyright (C) 2011 Free Software Foundation, Inc.
16599
16600 Copying and distribution of this file, with or without modification,
16601 are permitted in any medium without royalty provided the copyright
16602 notice and this notice are preserved.