use ASM_COMMENT_START instead of #
[official-gcc.git] / gcc / ChangeLog
blob9ebcff0379fde3524cc5a4390979e4c781eaa889
1 2011-04-18  Xinliang David Li  <davidxl@google.com>
3         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
7         PR middle-end/48661
8         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
9         if TREE_TYPE (v) is non-NULL.
11         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
12         gimple_get_virt_mehtod_for_binfo.
13         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
14         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
15         callers.
16         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
18 2011-05-18  Michael Matz  <matz@suse.de>
19             Steve Ellcey  <sje@cup.hp.com>
21         * expr.c (expand_expr_real_2): Use GET_MODE instead of TYPE_MODE.
23 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
25         * doc/passes.texi: Fill crossref nodes.
27 2011-04-18  Jim Meyering  <meyering@redhat.com>
29         fix doubled-word typos in comments and strings
30         * config/alpha/vms-unwind.h: s/for for/for/
31         * config/arm/unwind-arm.h: Likewise.
32         * config/microblaze/microblaze.c: Likewise.
33         * config/sh/constraints.md: s/in in/in/
34         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
36 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
38         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
39         (AVX_FLOAT_MODE_P): Ditto.
40         (AVX128_VEC_FLOAT_MODE_P): Ditto.
41         (AVX256_VEC_FLOAT_MODE_P): Ditto.
42         (AVX_VEC_FLOAT_MODE_P): Ditto.
43         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
44         (UNSPEC_MASKSTORE): Ditto.
45         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
46         Merge from <sse>_movmsk<ssemodesuffix> and
47         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
48         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
49         iterator.
50         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
51         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
52         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
54 2011-04-18  Jan Hubicka  <jh@suse.cz>
56         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
58         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
59         (want_inline_function_called_once_p): Break out the logic from
60         ipa_inline.
61         (edge_badness): Ensure that profile is not misupdated.
62         (lookup_recursive_calls): Prioritize by call frequencies.
63         (inline_small_functions): Move program size estimates here;
64         actually process whole queue even when unit growth has been
65         met. (to properly compute inline_failed reasons and for the
66         case unit size decrease.) Revisit comments on recursive inlining.
67         (ipa_inline): Remove unit summary code; first inline hot calls
68         of functions called once, cold calls next.
69         (order, nnodes): Remove unused variables.
70         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
71         (GTFILES): Remove ipa-inline.c
72         * sel-sched.c (fill_insns): Silence uninitialized var warning.
74 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
76         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
78 2011-04-18  Jie Zhang  <jie@codesourcery.com>
79             Richard Earnshaw  <rearnsha@arm.com>
81         * arm.c (neon_builtin_type_bits): Remove.
82         (typedef enum neon_builtin_mode): New.
83         (T_MAX): Don't define.
84         (typedef enum neon_builtin_datum): Remove bits, codes[],
85         num_vars and base_fcode.  Add mode, code and fcode.
86         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
87         VAR10): Change accordingly.
88         (neon_builtin_data[]): Change accordingly
89         (arm_init_neon_builtins): Change accordingly.
90         (neon_builtin_compare): Remove.
91         (locate_neon_builtin_icode): Remove.
92         (arm_expand_neon_builtin): Change accordingly.
94         * arm.h (enum arm_builtins): Move to ...
95         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
97         * arm.c (arm_builtin_decl): Declare.
98         (TARGET_BUILTIN_DECL): Define.
99         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
100         (arm_builtin_decls[]): New.
101         (arm_init_neon_builtins): Store builtin declarations in
102         arm_builtin_decls[].
103         (arm_init_tls_builtins): Likewise.
104         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
105         (arm_builtin_decl): New.
107 2011-04-18  Richard Guenther  <rguenther@suse.de>
109         * tree.c (upper_bound_in_type): Build properly canonicalized
110         INTEGER_CSTs.
111         (lower_bound_in_type): Likewise.
113 2011-04-18  Richard Guenther  <rguenther@suse.de>
115         * gimple.h (gimple_call_addr_fndecl): New function.
116         (gimple_call_fndecl): Use it.
117         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
118         for direct calls.
119         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
120         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
122 2011-04-18  Richard Guenther  <rguenther@suse.de>
124         PR middle-end/48650
125         * tree.c (build_string): STRING_CST is now derived from tree_typed.
127 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
129         PR lto/48492
130         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
131         DECL_IN_CONSTANT_POOL without RTL.
133 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
134             Ira Rosen  <ira.rosen@linaro.org>
136         PR target/48252
137         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
138         to match neon_vzip/vuzp/vtrn_internal.
139         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
140         outputs explicitly dependent on both inputs.
141         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
143 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
145         PR tree-optimization/48616
146         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
147         whether the shift is by scalar or vector based on whether all SLP
148         scalar stmts have the same rhs.
150 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
152         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
153         memory operands.
155 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
157         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
158         registers.
160 2011-04-17  Jan Hubicka  <jh@suse.cz>
162         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
163         * cgrpahunit.c (cgraph_finalize_function): Do not set
164         finalized_by_frontend.
165         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
166         finalized_by_frontend.
168 2011-04-17  Jan Hubicka  <jh@suse.cz>
170         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
171         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
172         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
173         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
174         method.
175         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
176         gimple-fold.c
177         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
179 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
181         PR lto/48538
182         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
183         is non-null before accessing it.
184         (input_cgraph): Remove trailing spaces.
186 2011-04-17  Revital Eres  <revital.eres@linaro.org>
188         * params.def (sms-min-sc): New param flag.
189         * modulo-sched.c (sms_schedule): Use it.
190         * doc/invoke.texi (sms-min-sc): Document it.
192 2011-04-17  Jan Hubicka  <jh@suse.cz>
194         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
195         present, also set gimple_call_set_cannot_inline.
196         * ipa-inline.c: Update toplevel comment.
197         (MAX_TIME): Remove.
198         (cgraph_clone_inlined_nodes): Fix linebreaks.
199         (cgraph_check_inline_limits): Restructure to ...
200         (caller_growth_limits): ... this one; be more tolerant
201         on growth in nested inline chains; add explanatory comment;
202         fix stack accounting thinko introduced by previous patch.
203         (cgraph_default_inline_p): Remove.
204         (report_inline_failed_reason): New function.
205         (can_inline_edge_p): New function.
206         (can_early_inline_edge_p): New function.
207         (leaf_node_p): Move upwards in file.
208         (want_early_inline_function_p): New function.
209         (want_inline_small_function_p): New function.
210         (want_inline_self_recursive_call_p): New function.
211         (cgraph_edge_badness): Rename to ...
212         (edge_badness) ... this one; fix linebreaks.
213         (update_edge_key): Update call of edge_baddness; add
214         detailed dump about queue updates.
215         (update_caller_keys): Use can_inline_edge_p and
216         want_inline_small_function_p.
217         (cgraph_decide_recursive_inlining): Rename to...
218         (recursive_inlining): Use can_inline_edge_p and
219         want_inline_self_recursive_call_p; simplify and remove no longer
220         valid FIXME.
221         (cgraph_set_inline_failed): Remove.
222         (add_new_edges_to_heap): Use can_inline_edge_p and
223         want_inline_small_function_p.
224         (cgraph_decide_inlining_of_small_functions): Rename to ...
225         (inline_small_functions): ... this one; cleanup; use
226         can/want predicates; cleanup debug ouput; work edges till fibheap
227         is exhausted and do not stop once unit growth is reached; remove
228         later loop processing remaining edges.
229         (cgraph_flatten): Rename to ...
230         (flatten_function): ... this one; use can_inline_edge_p
231         and can_early_inline_edge_p predicates.
232         (cgraph_decide_inlining): Rename to ...
233         (ipa_inline): ... this one; remove unreachable nodes before
234         inlining functions called once; simplify the pass.
235         (cgraph_perform_always_inlining): Rename to ...
236         (inline_always_inline_functions): ... this one; use
237         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
238         (cgraph_decide_inlining_incrementally): Rename to ...
239         (early_inline_small_functions): ... this one; simplify
240         using new predicates; cleanup; make dumps prettier.
241         (cgraph_early_inlining): Rename to ...
242         (early_inliner): newer inline regular functions into always-inlines;
243         fix updating of call stmt summaries.
244         (pass_early_inline): Update for new names.
245         (inline_transform): Fix formating.
246         (gate_cgraph_decide_inlining): Rename to ...
247         (pass_ipa_inline): ... this one.
248         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
249         * ipa-inline-analysis.c (dump_inline_summary): Update.
250         (compute_inline_parameters): Do not compute disregard_inline_limits;
251         look for mismatching arguments.
252         (estimate_growth): Fix handlig of non-trivial self recursion.
253         (inline_read_summary): Do not read info->disregard_inline_limits.
254         (inline_write_summary): Do not write info->disregard_inline_limits.
255         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
256         and move all checks into can_inline_edge_p predicate; re-enable code
257         comparing optimization levels.
258         (expand_call_inline): Do not test inline_forbidden_into_p.
259         * Makefile.in (ipa-inline.o): Update arguments.
261 2011-04-17  Revital Eres  <revital.eres@linaro.org>
263         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
265 2011-04-17  Revital Eres  <revital.eres@linaro.org>
267         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
269 2011-04-17  Michael Matz  <matz@suse.de>
271         PR tree-optimization/48622
272         PR lto/48645
273         * ipa-inline-analysis.c (inline_read_summary): Read size/time
274         in same order as they're written.
276 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
278         * config/i386/sse.md (sseunpackmode): New mode attribute.
279         (ssepackmode): Ditto.
280         (vec_pack_trunc_<mode>): Macroize expander from
281         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
282         (vec_unpacks_lo_<mode>): Macroize expander from
283         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
284         (vec_unpacks_hi_<mode>): Macroize expander from
285         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
286         (vec_unpacku_lo_<mode>): Macroize expander from
287         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
288         (vec_unpacku_hi_<mode>): Macroize expander from
289         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
290         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
291         ix86_expand_sse4_unpack.
292         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
294 2011-04-16  Jan Hubicka  <jh@suse.cz>
296         * cgraphbuild.c: Include ipa-inline.h.
297         (reset_inline_failed): Use initialize_inline_failed.
298         * cgraph.c: Include ipa-inline.h.
299         (cgraph_create_node_1): Do not initialize estimated_growth.
300         (initialize_inline_failed): More to ipa-inline-analysis.c
301         (dump_cgraph_node): Do not dump inline flags.
302         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
303         and disregard_inline_limits flags.
304         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
305         time, size, estimated_growth.
306         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
307         Update.
308         * cgraphunit.c (cgraph_decide_is_function_needed): Use
309         DECL_DISREGARD_INLINE_LIMITS.
310         (cgraph_analyze_function): Do not initialize
311         node->local.disregard_inline_limits.
312         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
313         inlinable, versionable and disregard_inline_limits.
314         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
315         cgraph_check_inline_limits, cgraph_default_inline_p,
316         cgraph_edge_badness, update_caller_keys, update_callee_keys,
317         add_new_edges_to_heap): Update.
318         (cgraph_decide_inlining_of_small_function): Update; set
319         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
320         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
321         cgraph_decide_inlining_incrementally): Update.
322         * ipa-inline.h (inline_summary): Add inlinable, versionable,
323         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
324         time, size and estimated_growth parameters.
325         (estimate_edge_growth): Update.
326         (initialize_inline_failed): Declare.
327         * ipa-split.c: Include ipa-inline.h
328         (execute_split_functions): Update.
329         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
330         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
331         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
332         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
333         estimated_growth to INT_MIN.
334         (inline_node_duplication_hook): Likewise.
335         (dump_inline_summary): Dump new fields.
336         (compute_inline_parameters): Update.
337         (estimate_edge_time, estimate_time_after_inlining,
338         estimate_size_after_inlining, estimate_growth, inline_read_summary,
339         inline_write_summary):
340         (initialize_inline_failed): Move here from cgraph.c.
341         * tree-sra.c: Include ipa-inline.h.
342         (ipa_sra_preliminary_function_checks): Update.
343         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
344         ipa-inline.h.
346 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
348         * config/i386/sse.md (V16): New mode iterator.
349         (VI1, VI8): Ditto.
350         (AVXMODEQI, AVXMODEDI): Remove.
351         (sse2, sse3): New mode attribute.
352         (mov<mode>): Use V16 mode iterator.
353         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
354         (push<mode>1): Use V16 mode iterator.
355         (movmisalign<mode>): Ditto.
356         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
357         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
358         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
359         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
360         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
361         avx_movdqu<avxmodesuffix>.
362         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
363         *avx_movdqu<avxmodesuffix>.
364         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
365         avx_lddqu<avxmodesuffix>.
366         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
367         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
368         avx_movnt<AVXMODEDI:mode>.
369         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
370         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
372 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
374         PR target/48629
375         * haifa-sched.c (prune_ready_list, schedule_block): Use
376         sched_pressure_p rather than flag_sched_pressure.
378 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
380         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
381         cgraph_get_node instead of cgraph_get_create_node.
383 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
385         * cfgexpand.c (expand_debug_expr): Use
386         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
388 2011-04-15  Michael Matz  <matz@suse.de>
390         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
391         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
392         * function.c (gimplify_parameters): Ditto.
393         * gimplify.c (gimplify_vla_decl): Ditto.
395         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
396         (gimple_call_set_alloca_for_var): New inline function.
397         (gimple_call_alloca_for_var_p): Ditto.
398         * gimple.c (gimple_build_call_from_tree): Remember
399         CALL_ALLOCA_FOR_VAR_P state.
400         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
402         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
403         calls if they were for VLA objects.
405 2011-04-15  Martin Jambor  <mjambor@suse.cz>
407         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
408         of ADR_EXPRs.
410 2011-04-15  Martin Jambor  <mjambor@suse.cz>
412         PR middle-end/48601
413         * tree-emutls.c (lower_emutls_function_body): Call
414         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
415         result is non-NULL.
417 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
419         * c-decl.c (detect_field_duplicates): Call
420         objc_detect_field_duplicates instead of objc_get_interface_ivars.
422 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
424         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
425         * gimple.c (gimple_asm_clobbers_memory_p): Define.
426         * ipa-pure-const.c (check_stmt): Call it.
427         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
429 2011-04-15  Richard Guenther  <rguenther@suse.de>
431         PR tree-optimization/48290
432         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
433         Properly decide inhibiting propagation based on the valueized
434         operand.  Do loop-closed SSA form preserving here ...
435         (init_copy_prop): ... not here.
437 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
439         PR target/48612
440         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
441         (*ieee_smax<mode>3): Likewise.
443 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
445         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
446         Replace match_operand with match_dup for the third operand in
447         these expanders.
449 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
451         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
452         to track processing of conditionals.  Update all callers.
453         (try_combine, simplify_if_then_else): Update.
455 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
457         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
458         -fsched-pressure.
460 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
462         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
463         instead of match_operand for operand 3.
465 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
467         * recog.h (insn_operand_data): Add an "allows_mem" field.
468         * genoutput.c (output_operand_data): Initialize it.
469         * optabs.c (maybe_legitimize_operand_same_code): New function.
470         (maybe_legitimize_operand): Use it when matching the original
471         op->value.
473 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
475         * gimplify.c: Fix issues in comments throughout.
476         (voidify_wrapper_expr): Fix long line.
477         (build_stack_save_restore): Likewise.
478         (gimplify_loop_expr): Likewise.
479         (gimplify_compound_lval): Likewise.
480         (gimplify_init_ctor_eval): Likewise.
481         (gimplify_modify_expr_rhs): Likewise.
482         (omp_notice_threadprivate_variable): Likewise.
484 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
486         * cfgexpand.c (expand_call_stmt): Convert the function type to the
487         original one if this is not a builtin function.
489 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
491         PR target/48605
492         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
493         offset it as needed based on top 2 bits in operands[3], change
494         MEM mode to SFmode and mask those 2 bits away from operands[3].
496 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
498         * c-parser.c (c_parser_objc_protocol_definition): Updated for
499         change from objc_declare_protocols() to objc_declare_protocol().
501 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
503         * config/i386/sse.md (sse4_1): New mode attribute.
504         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
505         avx_blend<ssemodesuffix><avxmodesuffix> and
506         sse4_1_blend<ssemodesuffix> using VF mode iterator.
507         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
508         avx_blendv<ssemodesuffix><avxmodesuffix> and
509         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
510         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
511         avx_dp<ssemodesuffix><avxmodesuffix> and
512         sse4_1_dp<ssemodesuffix> using VF mode iterator.
513         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
514         (sse4_1_packusdw): Merge with *avx_packusdw.
515         (sse4_1_pblendvb): Merge with *avx_pblendvb.
516         (sse4_1_pblendw): Merge with *avx_pblendw.
517         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
518         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
519         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
520         VF mode iterator.
521         (sse4_1_round<ssescalarmodesuffix>): Merge with
522         *avx_round<ssescalarmodesuffix>.
523         (aesenc): Merge with *avx_aesenc.
524         (aesenclast): Merge with *avx_aesenclast.
525         (aesdec): Merge with *avx_aesdec.
526         (aesdeclast): Merge with *avx_aesdeclast.
527         (pclmulqdq): Merge with *pclmulqdq.
528         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
529         New predicate.
530         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
532 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
534         PR middle-end/48608
535         * cfgexpand.c (get_decl_align_unit): Renamed to ...
536         (align_local_variable): This.  Update DECL_ALIGN.
537         (add_stack_var): Updated.
538         (expand_one_stack_var): Likewise.
540 2011-04-14  Richard Guenther  <rguenther@suse.de>
542         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
543         Remove.
544         (dse_initialize_block_local_data, dse_leave_block,
545         record_voperand_set, get_stmt_uid): Likewise.
546         (dse_possible_dead_store_p): Allow any kind of killing stmt.
547         (dse_optimize_stmt): Remove voperand set handling code.
548         Simplify and improve to handle any kind of killing stmt.
549         (dse_record_phi): Remove.
550         (dse_enter_block): Simplify.
551         (tree_ssa_dse): Likewise.
552         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
554 2011-04-14  Jan Hubicka  <jh@suse.cz>
556         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
557         * cgraph.h (struct inline_summary): Move to ipa-inline.h
558         (cgraph_local_info): Remove inline_summary.
559         * ipa-cp.c: Include ipa-inline.h.
560         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
561         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
562         accesor.
563         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
564         (input_overwrite_node): Do not set inline summary.
565         (input_node): Do not stream inline summary.
566         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
567         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
568         growth; we do not have inline parameters computed for that anyway.
569         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
570         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
571         (inline_summary_t): New type and VECtor.
572         (debug_inline_summary, dump_inline_summaries): Declare.
573         (inline_summary): Use VOCtor.
574         (estimate_edge_growth): Kill hack computing call stmt size directly.
575         * lto-section-in.c (lto_section_name): Add inline section.
576         * ipa-inline-analysis.c: Include lto-streamer.h
577         (node_removal_hook_holder, node_duplication_hook_holder): New holders
578         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
579         (inline_summary_vec): Define.
580         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
581         dump_inline_summaries): New functions.
582         (estimate_function_body_sizes): Properly compute size/time of outgoing
583         calls.
584         (compute_inline_parameters): Alloc inline_summary; do not compute
585         size/time of incomming calls.
586         (estimate_edge_time): Avoid missing time summary hack.
587         (inline_read_summary): Read inline summary info.
588         (inline_write_summary): Write inline summary info.
589         (inline_free_summary): Free all hooks and inline summary vector.
590         * lto-streamer.h: Add LTO_section_inline_summary section.
591         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
592         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
594 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
596         * tree-vectorizer.h (vect_strided_store_supported): Add a
597         HOST_WIDE_INT argument.
598         (vect_strided_load_supported): Likewise.
599         (vect_permute_store_chain): Return void.
600         (vect_transform_strided_load): Likewise.
601         (vect_permute_load_chain): Delete.
602         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
603         count argument.  Check that the count is a power of two.
604         (vect_strided_load_supported): Likewise.
605         (vect_permute_store_chain): Return void.  Update after above changes.
606         Assert that the access is supported.
607         (vect_permute_load_chain): Likewise.
608         (vect_transform_strided_load): Return void.
609         * tree-vect-stmts.c (vectorizable_store): Update calls after
610         above interface changes.
611         (vectorizable_load): Likewise.
612         (vect_analyze_stmt): Don't check for strided powers of two here.
614 2011-04-14  Richard Guenther  <rguenther@suse.de>
616         PR tree-optimization/48590
617         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
618         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
619         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
620         BUILT_IN_STACK_SAVE.
621         * tree-ssa-dce.c (propagate_necessity): Handle
622         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
624 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
626         * c-parser.c (c_parser_objc_class_declaration): Updated call to
627         objc_declare_class.
629 2011-04-14  Richard Guenther  <rguenther@suse.de>
631         * tree.h (get_object_alignment_1): Declare.
632         * builtins.c (get_object_alignment_1): Split out worker from ...
633         (get_object_alignment): ... here.
634         * fold-const.c (get_pointer_modulus_and_residue): Use
635         get_object_alignment_1.
637 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
639         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
640         type parameter.
641         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
642         parameter.  Generalise code to handle arrays as well as vectors.
643         (vect_setup_realignment): Update accordingly.
644         * tree-vect-stmts.c (vectorizable_store): Likewise.
645         (vectorizable_load): Likewise.
647 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
649         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
650         within the per-copy loop.
652 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
654         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
655         in the dump file.
657 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
659         * doc/options.texi (Negative): Explicitly mention that the
660         Negative chain must be circular.
662 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
664         * function.h (block_chainon): Declare.
665         * function.c (block_chainon): Define.
667 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
668             Eric Weddington  <eric.weddington@atmel.com>
669             Georg-Johann Lay <avr@gjlay.de>
671         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
672         New Includes
673         (avr_init_builtins, avr_expand_builtin,
674         avr_expand_delay_cycles, avr_expand_unop_builtin,
675         avr_expand_binop_builtin ): New functions.
676         (avr_builtin_id): New enum
677         (struct avr_builtin_description): New struct
678         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
679         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
681         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
682         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
683         UNSPECV_DELAY_CYCLES): new enumeration values
684         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
685         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
686         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
687         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
688         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
689         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
690         "fmulsu"): New insns
692         * config/avr/avr-c.c: fix line endings
693         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
694         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
695         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
696         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
697         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
699         * doc/extend.texi (AVR Built-in Functions): New node
700         (Target Builtins): Add documentation of AVR
701         built-in functions.
703 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
705         PR target/44643
706         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
707         alone. Error if non-const data has attribute progmem.
709 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
711         * tree.h (struct tree_constructor): Include tree_typed instead of
712         tree_common.
713         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
714         TS_TYPED instead of TS_COMMON.
716 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
718         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
719         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
720         (sse2_psadbw): Merge with *avx_psadbw.
721         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
722         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
723         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
724         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
725         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
726         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
727         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
728         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
729         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
730         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
731         (ssse3_palignrti): Merge with *avx_palignrti.
733 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
735         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
736         * tree-ssanames.c (fini_ssanames): VEC_free it.
737         (make_ssa_name_fn): Update for VECness of free_ssanames.
738         (release_ssa_name, release_dead_ssa_names): Likewise.
739         * tree.h (struct tree_ssa_name): Include tree_typed instead of
740         tree_common.
741         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
742         TS_TYPED instead of TS_COMMON.
744 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
746         * postreload-gcse.c (gcse_after_reload_main): Add calls to
747         statistics_counter_event.
748         * tree-ssa-copyrename.c (stats): Define.
749         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
750         statistics_counter_event.
751         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
752         (bswap_stats, widen_mul_stats): Define.
753         (insert_reciprocals): Increment rdivs_inserted.
754         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
755         rfuncs_inserted.  Add calls to statistics_counter_event.
756         (execute_cse_sincos_1): Increment inserted.
757         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
758         statistics_counter_event.
759         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
760         of bswap_stats.  Add calls to statistics_counter_event.
761         (convert_mult_to_widen): Increment widen_mults_inserted.
762         (convert_plusminus_to_widen): Increment maccs_inserted.
763         (convert_mult_to_fma): Increment fmas_inserted.
764         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
765         calls to statistics_counter_event.
767 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
769         PR rtl-optimization/48455
770         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
771         `temp_costs->mem_cost'.
773 2011-04-13  Jan Hubicka  <jh@suse.cz>
775         * ipa-inline.h: New file.
776         * ipa-inline-analysis.c: New file. Broken out of ...
777         * ipa-inline.c: ... this file; update toplevel comment;
778         include ipa-inline.h
779         (inline_summary): Move to ipa-inline.h
780         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
781         ipa-inline-analysis.c.
782         (cgraph_estimate_time_after_inlining): Rename to estiamte_time_after_inlining;
783         move to ipa-inline-analysis.c
784         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
785         to estimate_edge_growth.
786         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
787         rename to estimate_size_after_inlining.
788         (cgraph_mark_inline_edge): Update for new naming convention.
789         (cgraph_check_inline_limits): Likewise.
790         (cgraph_edge_badness): Likewise.
791         (cgraph_decide_recursive_inlining): Likewise.
792         (cgraph_decide_inlining_of_small_functions): Likewise.
793         (cgraph_decide_inlining_incrementally): Likewise.
794         (cgraph_estimate_growth): Rename to estimate_growth; move to ipa-inline-analysis.c.
795         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
796         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
797         (compute_inline_parameters): Likewise.
798         (compute_inline_parameters_for_current): Likewise.
799         (pass_inline_parameters): Likewise.
800         (inline_indirect_intraprocedural_analysis): Likewise.
801         (analyze_function): Rename to inline_analyze_function; likewise.
802         (add_new_function): Move to ipa-inline-analysis.c.
803         (inline_generate_summary): Likewise.
804         (inline_read_summary): Likewise.
805         (inline_write_summary): Likewise.
806         * Makefile.in (ipa-inline-analysis.c): New file.
808 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
810         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
811         * configure: Regenerate.
813 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
815         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
816         instead of tree_common.
817         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
818         Likewise.
819         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
820         TS_TYPED rather than TS_COMMON.
821         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
823 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
825         PR target/45263
826         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
827         r20 around calls of __tablejump_elpm__
829 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
831         PR middle-end/48591
832         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
833         NULL.
834         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
836 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
838         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
839         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
840         (cfi_vec): New typedef.
841         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
842         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
843         (cie_cfi_vec): New static variable.
844         (cie_cfi_head): Delete.
845         (add_cfi): Accept a cfi_vec * as first argument. All callers and
846         declaration changed. Use vector rather than list operations.
847         (new_cfi): Don't initialize the dw_cfi_next field.
848         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
849         rather than list operations.
850         (lookup_cfa): Use vector rather than list operations.
851         (output_cfis): New argument upto. Accept a cfi_vec rather than
852         a dw_cfi_ref list head as argument. All callers changed.
853         Iterate over the vector using upto as a maximum index.
854         (output_all_cfis): New static function.
855         (output_fde): Use vector rather than list operations. Use the
856         new upto argument for output_cfis rather than manipulating a
857         list.
858         (dwarf2out_begin_prologue): Change initializations to match
859         new struct members.
860         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
861         from the vector length rather than searching for the end of a list.
862         Use output_all_cfis.
863         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
865 2011-04-13  Nick Clifton  <nickc@redhat.com>
867         * config/rx/rx.md (movmemsi): Do not use this pattern when
868         volatile pointers are involved.
870 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
872         * config/i386/sse.md (pinsrbits): Remove.
873         (sse2_packsswb): Merge with *avx_packsswb.
874         (sse2_packssdw): Merge with *avx_packssdw.
875         (sse2_packuswb): Merge with *avx_packuswb.
876         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
877         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
878         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
879         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
880         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
881         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
882         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
883         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
884         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
885         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
886         (sse2_loadld): Merge with *avx_loadld.
887         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
888         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
889         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
890         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
891         (vec_concatv2di): Merge with *vec_concatv2di_avx.
893 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
895         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
896         calling TREE_CHAIN.
897         * print-tree.c (print_node): Likewise.
898         * tree-inline.c (copy_tree_r): Likewise.
899         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
900         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
901         instead of TS_COMMON.
902         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
903         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
904         (copy_node_stat): Zero TREE_CHAIN only if necessary.
905         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
906         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
907         ...and these...
908         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
909         * tree.h: ...here.
910         (TREE_CHAIN): Check for a TS_COMMON structure.
911         (TREE_TYPE): Check for a TS_TYPED structure.
913 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
915         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
916         cgraph_get_create_node instead of cgraph_node.
918 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
920         * c-parser.c (c_parser_initelt): Updated call to
921         objc_build_message_expr.
922         (c_parser_postfix_expression): Likewise.
924 2011-04-12  Kai Tietz  <ktietz@redhat.com>
926         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
927         MASK_MS_BITFIELD_LAYOUT bit.
929 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
931         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
932         assert it is always true.
933         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
934         moves.
936 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
938         * c-parser.c (c_lex_one_token): Rewritten conditional used when
939         compiling Objective-C to be more efficient.
941 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
943         * opts-common.c (decode_cmdline_options_to_array): Remove variable
944         argv_copied.
946 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
948         * recog.h, genoutput.c, optabs.c: Revert last patch.
950 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
952         PR target/48090
953         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
955 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
957         * recog.h (insn_operand_data): Add an "allows_mem" field.
958         * genoutput.c (output_operand_data): Initialize it.
959         * optabs.c (maybe_legitimize_operand_same_code): New function.
960         (maybe_legitimize_operand): Use it when matching the original
961         op->value.
963 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
965         * genpreds.c (process_define_predicate): Move most processing
966         to gensupport.c.  Continue to validate the expression.
967         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
968         (process_define_predicate): Move processing to gensupport.c.
969         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
970         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
971         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
972         argument.
973         (valid_predicate_name_p): New function, split out from old
974         genpreds.c:process_define_predicate.
975         (process_define_predicate): New function, combining code from
976         old genpreds.c and genrecog.c functions.
977         (process_rtx): Call it for DEFINE_PREDICATE and
978         DEFINE_SPECIAL_PREDICATE.
980 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
982         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
983         size of a '%A' memory reference.
984         (T_DREG, T_QREG): New neon_builtin_type_bits.
985         (arm_init_neon_builtins): Assert that the load and store operands
986         are neon_struct_operands.
987         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
988         (NEON_ARG_MEMORY): New builtin_arg.
989         (neon_dereference_pointer): New function.
990         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
991         Handle NEON_ARG_MEMORY.
992         (arm_expand_neon_builtin): Update after above interface changes.
993         Use NEON_ARG_MEMORY for loads and stores.
994         * config/arm/predicates.md (neon_struct_operand): New predicate.
995         * config/arm/iterators.md (V_two_elem): Tweak formatting.
996         (V_three_elem): Use BLKmode for accesses that have no associated mode.
997         (V_four_elem): Tweak formatting.
998         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
999         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1000         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1001         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1002         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1003         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1004         (neon_vst4<mode>): Replace pointer operand with a memory operand.
1005         Use %A in the output template.
1006         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1007         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1008         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1009         the width of the memory access.  Remove post-increment.
1010         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1012 2011-04-12  Nick Clifton  <nickc@redhat.com>
1014         * config/v850/v850.c (expand_prologue): Do not use the CALLT
1015         instruction for interrupt handlers if the target is the basic V850
1016         architecture.
1017         (expand_epilogue): Likewise.
1019 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1021         PR rtl-optimization/48549
1022         * combine.c (propagate_for_debug): Also stop after BB_END of
1023         this_basic_block.  Process LAST and just stop processing after it.
1024         (combine_instructions): If last_combined_insn has been deleted,
1025         set last_combined_insn to its PREV_INSN.
1027 2011-04-12  Richard Guenther  <rguenther@suse.de>
1029         PR tree-optimization/46076
1030         * gimple.h (struct gimple_statement_call): Add fntype field.
1031         (gimple_call_fntype): Adjust.
1032         (gimple_call_set_fntype): New function.
1033         * gimple.c (gimple_build_call_1): Set the call function type.
1034         * gimplify.c (gimplify_call_expr): Preserve the function
1035         type the frontend used for the call.
1036         (gimplify_modify_expr): Likewise.
1037         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1038         function type.
1039         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1040         function type.
1041         * tree-ssa.c (useless_type_conversion_p): Function pointer
1042         conversions are useless.
1044 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1046         * cgraph.h (cgraph_node): Remove function declaration.
1047         (cgraph_create_node): Declare.
1048         (cgraph_get_create_node): Likewise.
1049         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1050         Updated all callers.
1051         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1052         the decl does not already exist.  Call cgraph_get_create_node instead
1053         of cgraph_node.
1054         (cgraph_get_create_node): New function.
1055         (cgraph_same_body_alias): Update comment.
1056         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1057         assert it does not return NULL.
1058         (cgraph_update_edges_for_call_stmt): Likewise.
1059         (cgraph_clone_edge): Likewise.
1060         (cgraph_create_virtual_clone): Likewise.
1061         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1062         instead of cgraph_node.
1063         (cgraph_add_new_function): Call cgraph_create_node or
1064         cgraph_get_create_node instead of cgraph_node.
1065         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1066         instead of cgraph_node.
1067         (record_eh_tables): Likewise.
1068         (mark_address): Likewise.
1069         (mark_load): Likewise.
1070         (build_cgraph_edges): Call cgraph_get_create_node instead
1071         of cgraph_node.
1072         (rebuild_cgraph_edges): Likewise.
1073         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1074         instead of cgraph_node.
1075         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1076         cgraph_node.
1077         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1078         cgraph_create_node instead of cgraph_node.
1079         * c-decl.c (finish_function): Call cgraph_get_create_node instead
1080         of cgraph_node.
1081         * lto-cgraph.c (input_node): Likewise.
1082         * lto-streamer-in.c (input_function): Likewise.
1083         * varasm.c (mark_decl_referenced): Likewise.
1084         (assemble_alias): Likewise.
1086 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1088         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1089         instead of cgraph_node and assert it does not return NULL.
1090         * lto-streamer-in.c (lto_read_body): Likewise.
1091         * omp-low.c (new_omp_context): Likewise.
1092         (create_task_copyfn): Likewise.
1093         * tree-emutls.c (lower_emutls_function_body): Likewise.
1094         * matrix-reorg.c (transform_allocation_sites): Likewise.
1096 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1098         PR c/48552
1099         * c-typeck.c (build_asm_expr): Error out on attempts to use
1100         void type outputs or inputs for constraints that allow reg or
1101         don't allow memory.
1103 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
1104             Richard Earnshaw  <rearnsha@arm.com>
1106         PR target/48250
1107         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1108         to use sign-magnitude offsets. Reject unsupported unaligned
1109         cases. Add detailed description in comments.
1110         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1111         condition from TARGET_32BIT to TARGET_ARM.
1113 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
1115         * tree.h (struct typed_tree): New.
1116         (struct tree_common): Include it instead of tree_base.
1117         (TREE_TYPE): Update for new location of type field.
1118         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1119         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1120         (union tree_node): Add typed field.
1121         * treestruct.def (TS_TYPED): New.
1122         * lto-streamer.c (check_handled_ts_structures): Handle it.
1123         * tree.c (MARK_TS_TYPED): New macro.
1124         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1126 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
1128         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1129         (force_nonfallthru): Do not alter the loop nest if no basic block
1130         was created.
1132 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1134         * config/i386/sse.md (VI): New mode iterator.
1135         (SSEMODEI): Remove.
1136         (AVX256MODEI): Ditto.
1137         (AVXMODEF4P): Ditto.
1138         (avxvecpsmode): Ditto.
1139         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
1140         (sse2_andnot<mode>3): New expander.
1141         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1142         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
1143         (<any_logic:code><mode>3): Use VI mode iterator.
1144         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1145         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
1146         (*andnottf3): Handle AVX three-operand constraints.
1147         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1149 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1150             Robert Millan  <rmh@gnu.org>
1152         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1153         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1154         GNU_USER_DYNAMIC_LINKER64): Define.
1155         (REG_NAME): Don't undefine.
1156         (MD_UNWIND_SUPPORT): Undefine.
1157         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1158         (REG_NAME): Don't undefine.
1159         (MD_UNWIND_SUPPORT): Undefine.
1160         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1162 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1164         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1165         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1167 2011-04-11  Xinliang David Li  <davidxl@google.com>
1169         * value-profile.c (check_ic_target): New function.
1170         (gimple_ic_transform): Sanity check indirect call target.
1171         * gimple-low.c (gimple_check_call_args): Interface change.
1172         (gimple_check_call_matching_types): New function.
1173         * tree-inline.c (tree_can_inline_p): Call new function.
1175 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
1177         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1178         tree-pretty-print.h & realmpfr.h.
1180 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
1182         PR middle-end/48464
1183         * ira.c (setup_pressure_classes): Fix typo in loop condition.
1184         (setup_allocno_and_important_classes): Ditto.
1186 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1188         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1189         GNU_USER_DYNAMIC_LINKER.
1190         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1191         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1192         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1193         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1194         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1195         GNU_USER_TARGET_OS_CPP_BUILTINS.
1196         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1197         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1198         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1199         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1200         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1201         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1202         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1203         GNU_USER_TARGET_OS_CPP_BUILTINS.
1204         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1205         GNU_USER_DYNAMIC_LINKER.
1206         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1207         GNU_USER_TARGET_OS_CPP_BUILTINS.
1208         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1209         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1210         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1211         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1212         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1213         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1214         GNU_USER_DYNAMIC_LINKER64): Remove.
1215         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1216         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1217         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1218         GNU_USER_DYNAMIC_LINKER.
1219         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1220         GNU_USER_TARGET_OS_CPP_BUILTINS.
1221         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1222         GNU_USER_TARGET_OS_CPP_BUILTINS.
1223         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1224         to GNU_USER_TARGET_OS_CPP_BUILTINS.
1225         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1226         GNU_USER_TARGET_OS_CPP_BUILTINS.
1227         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1228         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1229         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1230         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1231         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1232         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1233         GNU_USER_DYNAMIC_LINKER.
1234         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1235         GNU_USER_TARGET_OS_CPP_BUILTINS.
1236         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1237         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1238         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1239         GNU_USER_DYNAMIC_LINKER.
1240         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1241         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1242         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1243         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1244         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1245         GNU_USER_DYNAMIC_LINKER.
1246         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1247         GNU_USER_DYNAMIC_LINKERN32.
1248         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1249         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
1250         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
1251         GNU_USER_DYNAMIC_LINKER32.
1252         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1253         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1254         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1255         GNU_USER_DYNAMIC_LINKER.
1256         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1257         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1258         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
1259         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1260         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1261         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
1262         GNU_USER_DYNAMIC_LINKER32.
1263         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1264         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
1265         GNU_USER_DYNAMIC_LINKER.
1266         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
1267         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1268         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1269         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
1270         GNU_USER_DYNAMIC_LINKER64.
1271         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
1272         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1273         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1274         GNU_USER_DYNAMIC_LINKER.
1275         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
1276         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1277         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1278         GNU_USER_DYNAMIC_LINKER.
1279         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
1280         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1281         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1282         GNU_USER_DYNAMIC_LINKER32.
1283         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1284         GNU_USER_DYNAMIC_LINKER64.
1285         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1286         GNU_USER_DYNAMIC_LINKER64.
1287         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
1288         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1289         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
1290         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1291         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1293 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1295         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
1296         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
1297         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
1298         GNU_USER_DYNAMIC_LINKER.
1299         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1300         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
1301         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
1302         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
1303         GNU_USER_DYNAMIC_LINKER64.
1304         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1305         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
1306         GNU_USER_LINK_EMULATION.
1307         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1308         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
1309         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
1310         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
1311         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
1312         CPP_SPEC, CC1_SPEC): Remove.
1313         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
1314         (GNU_USER_DYNAMIC_LINKER): Define.
1315         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
1316         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
1317         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
1318         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
1319         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
1320         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
1321         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1322         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
1323         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
1324         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
1325         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
1326         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
1327         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
1328         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
1329         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
1330         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1331         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1332         GNU_USER_DYNAMIC_LINKER.
1333         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1334         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1335         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1336         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1337         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1338         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1339         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
1340         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
1341         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
1342         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
1344 2011-04-11  Kai Tietz  <ktietz@redhat.com>
1346         PR target/9601
1347         PR target/11772
1348         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
1349         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
1350         comment.
1351         (ix86_is_msabi_thiscall): Removed.
1352         (ix86_is_type_thiscall): Likewise.
1353         (ix86_get_callcvt): New function.
1354         (ix86_comp_type_attributes): Simplify check.
1355         (ix86_function_regparm): Use ix86_get_callcvt for calling
1356         convention attribute checks.
1357         (ix86_return_pops_args): Likewise.
1358         (ix86_static_chain): Likewise.
1359         (x86_this_parameter): Likewise.
1360         (x86_output_mi_thunk): Likewise.
1361         (ix86_function_type_abi): Optimize check for types without attributes.
1362         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
1363         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
1364         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
1365         by flag-values.
1366         (IX86_BASE_CALLCVT): Helper macro.
1367         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1368         Use ix86_get_callcvt for calling convention attribute checks and avoid
1369         symbol-decoration for stdcall in TARGET_RTD case.
1370         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
1371         Likewise.
1372         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
1373         for declaration.
1375 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1377         * config/i386/sse.md (VI_128): New mode iterator.
1378         (VI12_128): Rename from SSEMODE12.
1379         (VI14_128): Rename from SSEMODE14.
1380         (VI124_128): New mode iterator.
1381         (VI24_128): Rename from SSEMODE248.
1382         (VI248_128): Rename from SSEMODE248.
1383         (SSEMODE124C8): Remove.
1384         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1385         (*sse2_<plusminus_insn><mode>3): Merge with
1386         *avx_<plusminus_insn><mode>3.
1387         (*mulv8hi3): Merge with *avx_mulv8hi3.
1388         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
1389         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
1390         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
1391         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
1392         (ashr<mode>3): Merge with *avx_ashr<mode>3.
1393         (lshr<mode>3): Merge with *avx_lshr<mode>3.
1394         (ashl<mode>3): Merge with *avx_ashl<mode>3.
1395         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
1396         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
1397         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1398         (*<smaxmin:code>v8hi3): Ditto.
1399         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
1400         (*<smaxmin:code>v16qi3): Ditto.
1401         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
1402         (*sse2_eq<mode>3): Ditto.
1403         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
1404         (*sse2_gt<mode>3): Ditto.
1405         (vcondv2di): Split out of vcond<mode>.
1406         (vconduv2di): Split out of vcondu<mode>.
1408 2011-04-11  Richard Guenther  <rguenther@suse.de>
1410         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
1411         before calling tree_low_cst.
1413 2011-04-11  Richard Guenther  <rguenther@suse.de>
1415         * stor-layout.c (layout_type): Compute all array index size operations
1416         in the original type.
1417         (initialize_sizetypes): Add comment.
1418         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
1420 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1422         * common.opt (Tbss=, Tdata=, Ttext=): New options.
1424 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1426         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
1427         of cgraph_node, handle NULL return value.
1428         (cgraph_global_info): Likewise.
1429         (cgraph_rtl_info): Likewise.
1430         * tree-inline.c (estimate_num_insns): Likewise.
1431         * gimplify.c (unshare_body): Likewise.
1432         (unvisit_body): Likewise.
1433         (gimplify_body): Likewise.
1434         * predict.c (optimize_function_for_size_p): Likewise.
1435         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1436         (call_may_clobber_ref_p_1): Likewise.
1437         * varasm.c (function_section_1): Likewise.
1438         (assemble_start_function): Likewise.
1440 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1442         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
1443         of cgraph_node.
1444         * final.c (rest_of_clean_state): Likewise.
1445         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
1446         * passes.c (pass_init_dump_file): Likewise.
1447         (execute_all_ipa_transforms): Likewise.
1448         (function_called_by_processed_nodes_p): Likewise.
1449         * predict.c (maybe_hot_frequency_p): Likewise.
1450         (probably_never_executed_bb_p): Likewise.
1451         (compute_function_frequency): Likewise.
1452         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
1453         (unnest_nesting_tree_1): Likewise.
1454         (lower_nested_functions): Likewise.
1455         * tree-optimize.c (execute_fixup_cfg): Likewise.
1456         (tree_rest_of_compilation): Likewise.
1457         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
1458         * tree-sra.c (ipa_early_sra): Likewise.
1459         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1460         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
1461         * ipa.c (record_cdtor_fn): Likewise.
1462         * ipa-inline.c (cgraph_early_inlining): Likewise.
1463         (compute_inline_parameters_for_current): Likewise.
1464         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1465         * ipa-pure-const.c (local_pure_const): Likewise.
1466         * ipa-split.c (split_function): Likewise.
1467         (execute_split_functions): Likewise.
1468         * cgraphbuild.c (build_cgraph_edges): Likewise.
1469         (rebuild_cgraph_edges): Likewise.
1470         (cgraph_rebuild_references): Likewise.
1471         (remove_cgraph_callee_edges): Likewise.
1472         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
1473         (verify_cgraph_node): Likewise.
1474         (cgraph_analyze_functions): Likewise.
1475         (cgraph_preserve_function_body_p): Likewise.
1476         (save_inline_function_body): Likewise.
1477         (save_inline_function_body): Likewise.
1478         * tree-inline.c (copy_bb): Likewise.
1479         (optimize_inline_calls): Likewise.
1481 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1483         PR tree-optimization/48195
1484         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
1485         ipa_check_create_edge_args.
1486         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
1487         ipa_check_create_edge_args.
1488         * ipa-inline.c (inline_generate_summary): Do not call
1489         ipa_check_create_node_params and ipa_check_create_edge_args.
1490         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
1491         ipa_check_create_edge_args.
1493 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
1495         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
1496         instead of loop.
1497         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1498         * function.c (record_hard_reg_sets): Likewise.
1499         * ira.c (compute_regs_asm_clobbered): Likewise.
1500         * sched-deps.c (sched_analyze_1): Likewise.
1501         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
1503 2011-04-09  Xinliang David Li  <davidxl@google.com>
1505         PR tree-optimization/PR48484
1506         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
1507         has_valid_pred lazily
1509 2011-04-09  Duncan Sands  <baldrick@free.fr>
1511         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
1513 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
1515         * combine.c (combine_validate_cost): Adjust comments.  Set registered
1516         cost of I0 to zero at the end, if any.
1518 2011-04-08  Xinliang David Li  <davidxl@google.com>
1520         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
1521         to insane profile data.
1523 2011-04-08  Xinliang David Li  <davidxl@google.com>
1525         * final.c (dump_basic_block_info): New function.
1526         (final): Dump basic block.
1527         (final_scan_insn): Remove old dump.
1529 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1531         PR target/47829
1532         * config.gcc (i386-*-freebsd): Disable unwind table generation for
1533         crtbegin/crtend.
1535 2011-04-08  Michael Matz  <matz@suse.de>
1537         PR middle-end/48389
1538         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
1539         functions.
1540         (rebuild_jump_labels): Call rebuild_jump_labels_1.
1541         * rtl.h (rebuild_jump_labels_chain): Declare.
1542         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
1543         insns inserted on edges.
1545 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
1547         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
1548         * config/arm/arm-arches.def: New.
1549         * config/arm/arm-opts.h: New.
1550         * config/arm/genopt.sh: New.
1551         * config/arm/arm-tables.opt: New (generated).
1552         * config/arm/arm.c (arm_handle_option, arm_target_help,
1553         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
1554         (all_architectures): Get most table contents from arm-arches.def.
1555         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
1556         arm_selected_tune here.
1557         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
1558         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
1559         (march=, mcpu=, mtune=): Use Enum and Var.
1560         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
1561         (arm.o): Update dependencies.
1563 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
1565         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
1566         of header_file.
1567         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
1568         (write_typed_alloc_defns): Likewise.
1569         (main): Calls write_typed_alloc_defns with output_header.
1571 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
1573         PR inline-asm/48435
1574         * ira-color.c (setup_profitable_hard_regs): Add comments.
1575         Don't take prohibited hard regs into account.
1576         (setup_conflict_profitable_regs): Rename to
1577         get_conflict_profitable_regs.
1578         (check_hard_reg_p): Check prohibited hard regs.
1580 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
1582         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
1583         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
1584         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
1586 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1588         PR target/48366
1589         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
1590         move from floating point to shift amount register .
1591         (emit_move_sequence): Remove secondary reload support for floating
1592         point to shift amount amount register copies.
1593         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
1594         amount register copies.
1595         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
1596         register, return false if mode isn't a scalar integer mode.
1597         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
1599 2011-04-08  Richard Guenther  <rguenther@suse.de>
1601         * gimple.c (gimple_call_flags): Remove kludge.
1603 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1605         * sel-sched.c (sel_region_init): Move call to
1606         sel_setup_region_sched_flags after setup_current_loop_nest.
1608 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
1610         PR rtl-optimization/48272
1611         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
1612         init_insn_reg_pressure_info.  Adjust a caller.
1613         * sched-int.h (init_insn_reg_pressure_info): Declare.
1614         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
1615         when sched-pressure is enabled.
1617 2011-04-08  Richard Guenther  <rguenther@suse.de>
1619         * gimple.c (gimple_set_modified): Do not queue calls to
1620         MODIFIED_NORETURN_CALLS here ...
1621         * tree-ssa-operands.c (update_stmt_operands): ... but here.
1623 2011-04-08  Richard Guenther  <rguenther@suse.de>
1625         PR lto/48467
1626         * toplev.c (lang_dependent_init): Do not open asm_out_file
1627         in WPA mode, nor perform debug machinery initialization.
1628         (finalize): Do not unlink asm_out_file in WPA mode.
1630 2011-04-08  Richard Guenther  <rguenther@suse.de>
1632         * gimple.h (gimple_call_fntype): New function.
1633         (gimple_call_return_type): Use it.
1634         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
1635         * gimple-low.c (gimple_check_call_args): Likewise.
1636         * gimple.c (gimple_call_flags): Likewise.
1637         (gimple_call_arg_flags): Likewise.
1638         (gimple_call_return_flags): Likewise.
1639         * tree-cfg.c (verify_gimple_call): Likewise.
1640         (do_warn_unused_result): Likewise.
1641         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
1642         * value-prof.c (gimple_ic_transform): Fix fndecl check.
1644 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
1646         PR rtl-optimization/48235
1647         * sel-sched.c (code_motion_process_successors): Recompute the last
1648         insn in basic block if control flow changed.
1649         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
1650         Update condition for ilist_remove.
1652 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1654         PR rtl-optimization/48302
1655         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
1656         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
1657         it to record added preheader blocks.
1658         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
1659         on to sel_add_loop_preheaders.
1660         (sel_region_init): Move call to setup_current_loop_nest after
1661         sel_init_bbs.
1663 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1665         PR target/48273
1666         * cfgloop.h (loop_has_exit_edges): New helper.
1667         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1668         non-clonable.
1669         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1670         that have no exit edges.
1672 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1674         PR rtl-optimization/48442
1675         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
1676         all callers.  Adjust assert.
1678 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
1680         PR tree-optimization/48377
1681         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
1682         is_packed to true even for types with smaller TYPE_ALIGN than
1683         TYPE_SIZE.
1685 2011-04-08  Richard Guenther  <rguenther@suse.de>
1687         PR bootstrap/48513
1688         * doc/tm.texi: Re-generate.
1690 2011-04-08  Wei Guozhi  <carrot@google.com>
1692         PR target/47855
1693         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
1694         * config/arm/arm.c (arm_attr_length_push_multi): New function.
1695         * config/arm/arm.md (*push_multi): Change the length computation to
1696         call a C function.
1698 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
1700         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
1701         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
1702         * doc/tm.texi: Regenerate.
1703         * system.h (ASM_OUTPUT_BSS): Poison.
1704         * varasm.c (asm_output_bss): Remove function.
1705         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
1707         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
1708         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
1709         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
1710         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1711         Likewise.
1712         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1713         Likewise.
1714         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1715         Likewise.
1716         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1718 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
1720         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
1721         EnumValue lines.
1723 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
1725         * config/m68k/m68k.c (m68k_handle_option): Don't handle
1726         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
1727         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
1728         OPT_mcpu32.
1729         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1730         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
1731         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
1732         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
1733         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
1734         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
1735         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1736         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
1737         options.  Don't map other m68k options manually.  Don't handle
1738         old-style options as canonical.
1739         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1740         * doc/install.texi (m68k-*-*): Document binutils version requirement.
1742 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
1744         * basic-block.h (force_nonfallthru): Move to...
1745         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
1746         (force_nonfallthru): ...here.
1747         * cfghooks.c (force_nonfallthru): New function.
1748         * cfgrtl.c (force_nonfallthru): Rename into...
1749         (rtl_force_nonfallthru): ...this.
1750         (commit_one_edge_insertion): Do not set AUX field.
1751         (commit_edge_insertions): Do not discover new basic blocks.
1752         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
1753         (cfg_layout_rtl_cfg_hooks): Likewise.
1754         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
1755         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
1756         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
1758 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
1760         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
1761         Remove macros.
1763 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
1765         * config/i386/sse.md: Update copyright year.
1766         (avxcvtvecmode): Remove.
1767         (sse_movhlps): Merge with *avx_movhlps.
1768         (sse_movlhps): Merge with *avx_movlhps.
1769         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
1770         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
1771         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
1772         (sse_loadhps): Merge with *avx_loadhps.
1773         (sse_storelps): Merge with *avx_storelps.
1774         (sse_loadlps): Merge with *avx_loadlps.
1775         (sse_movss): Merge with *avx_movss.
1776         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
1777         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
1778         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
1779         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
1780         (vec_set<mode>_0): Ditto.
1781         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
1782         (sse4_1_insertps): Merge with *avx_insertps.
1783         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
1784         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
1785         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
1786         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
1787         (sse2_storehpd): Merge with *avx_storehpd.
1788         (sse2_loadhpd): Merge with *avx_loadhpd.
1789         (sse2_loadlpd): Merge with *avx_loadlpd.
1790         (sse2_movsd): Merge with *avx_movsd.
1791         (*vec_concatv2df): Merge with *vec_concatv2df.
1793 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
1795         PR debug/48343
1796         * combine.c (combine_instructions): Add last_combined_insn,
1797         update it if insn is after it, pass it to all try_combine calls.
1798         (try_combine): Add last_combined_insn parameter, pass it instead of
1799         i3 to propagate_for_debug.
1801 2011-04-07  Nick Clifton  <nickc@redhat.com>
1803         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
1804         to handle MDR <-> data register transfers.
1805         (movhi_internal): Likewise.
1807 2011-04-07  Alan Modra  <amodra@gmail.com>
1809         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
1810         previous stack info.
1812 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1814         PR target/43920
1815         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
1816         flow_find_cross_jump.  Swap variables to implement backward replacement.
1817         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
1819 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1821         PR target/43920
1822         * cfgcleanup.c (walk_to_nondebug_insn): New function.
1823         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
1824         and bb2.
1825         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
1826         src1 or src2.  Redirect edges to the last basic block.  Update
1827         frequency and count on multiple basic blocks in case of fallthru.
1829 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1831         PR target/43920
1832         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
1833         function.
1834         (old_insns_match_p): Change return type.  Replace return false/true
1835         with return dir_none/dir_both.  Use can_replace_by.
1836         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
1837         direction from dir_p.  Register replacement direction in dir, last_dir
1838         and afterlast_dir.  Handle new return type of old_insns_match_p using
1839         merge_dir.  Return replacement direction in dir_p.
1840         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
1841         return type of old_insns_match_p.
1842         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
1843         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
1844         flow_find_cross_jump.
1845         * basic-block.h (enum replace_direction): New type.
1846         (flow_find_cross_jump): Add parameter to declaration.
1848 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
1850         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
1851         (AVXMODEDCVTPS2DQ): Ditto.
1852         (VEC_FLOAT_MODE): Ditto.
1853         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
1854         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1855         (<any_logic:code><mode>3): Use VF mode iterator.
1856         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
1857         Use VF mode iterator.
1858         (copysign<mode>3): Use VF mode iterator.
1859         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
1860         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1861         (*<any_logic:code><MODEF:mode>3): Merge with
1862         *avx_<any_logic:code><MODEF:mode>3.
1863         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
1864         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
1865         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
1866         (avx_cvtdq2ps<avxmodesuffix>): Remove.
1867         (sse2_cvtdq2ps): Use %v modifier.
1868         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
1869         (avx_cvtps2dq<avxmodesuffix>): Remove.
1870         (sse2_cvtps2dq): Use %v modifier.
1871         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
1872         (avx_cvttps2dq<avxmodesuffix>): Remove.
1873         (sse2_cvttps2dq): Use %v modifier.
1874         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
1875         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
1876         (sse2_cvtsd2siq): Fix insn template.
1877         (sse2_cvtsd2siq_2): Ditto.
1878         (sse2_cvttsd2siq): Ditto.
1879         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
1880         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
1882 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
1884         * gcov-io.c: Use GCC Runtime Library Exception.
1886 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
1888         PR debug/48466
1889         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
1890         as base_reg whatever register reg has been eliminated to, instead
1891         of hardcoding STACK_POINTER_REGNUM.
1893 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
1895         * doc/tm.texi.in: Document C target hooks as separate from general
1896         target hooks.
1897         * doc/tm.texi: Regenerate.
1898         * genhooks.c (struct hook_desc): Add docname field.
1899         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
1900         docname field.
1901         (hook_array): Include c-target.def.
1902         (emit_documentation): Use docname field in output.
1903         (emit_init_macros): Take docname argument.  Only emit definitions
1904         for hooks matching docname.
1905         (main): Expect additional arguments in all cases.  Pass argument
1906         to emit_init_macros.
1907         * target.def: Move initial macro definitions and comments to
1908         target-hooks-macros.h.
1909         (gcc_targetcm): Move to c-family/c-target.def.
1910         * target.h (targetcm): Move declaration to c-family/c-target.h.
1911         * targhooks.c (default_handle_c_option): Move to
1912         c-family/c-opts.c.
1913         * targhooks.h (default_handle_c_option): Move declaration to
1914         c-family/c-common.h.
1915         * target-hooks-macros.h: New file.
1916         * config.gcc (target_has_targetcm): Define and use to add to
1917         c_target_objs and cxx_target_objs.
1918         * config/default-c.c: New file.
1919         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
1920         of target.h and target-def.h.
1921         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
1922         (darwin_objc_construct_string, darwin_cfstring_ref_p,
1923         darwin_check_cfstring_format_arg): Make static.
1924         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1925         TARGET_STRING_OBJECT_REF_TYPE_P,
1926         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
1927         * config/darwin-protos.h (darwin_objc_construct_string,
1928         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
1929         declare.
1930         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1931         TARGET_STRING_OBJECT_REF_TYPE_P,
1932         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
1933         * config/t-darwin (darwin-c.o): Update dependencies.
1934         * system.h (TARGET_HAS_TARGETCM): Poison.
1935         * Makefile.in (TARGET_H): Update.
1936         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
1937         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
1938         (default-c.o): New target.
1939         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
1940         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
1941         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
1942         c-target.def.
1943         (build/genhooks.o): Update dependencies.
1945 2011-04-06  Richard Guenther  <rguenther@suse.de>
1947         * ipa-inline.c (enum inlining_mode): Remove.
1948         (cgraph_flatten): Use some other token.
1949         (cgraph_edge_early_inlinable_p): New function, split out from ...
1950         (cgraph_perform_always_inlining): New function, split out from ...
1951         (cgraph_decide_inlining_incrementally): ... here.
1952         (cgraph_mark_inline_edge): Adjust.
1953         (cgraph_early_inlining): Re-structure.
1954         (pass_early_inline): Require SSA form.
1956 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
1957             Julian Brown  <julian@codesourcery.com>
1958             Mark Shinwell  <shinwell@codesourcery.com>
1960         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
1961         LO_REGS only for Thumb-1.
1962         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
1963         be used in short instructions when optimising for size on Thumb-2.
1965 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
1967         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
1968         associated with user returns to be preserved.
1970 2011-04-06  Tristan Gingold  <gingold@adacore.com>
1972         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
1973         symbol_queue_size, DBXOUT_DECR_NESTING,
1974         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
1975         if XCOFF_DEBUGGING_INFO.
1977 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
1979         * config/i386/i386.md (attribute isa): New.
1980         (attribute enabled): New.
1981         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
1982         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
1983         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
1984         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
1985         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
1986         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1987         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
1988         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
1990         * config/i386/sse.md (VF): New mode iterator.
1991         (VF1): Ditto.
1992         (VF2): Ditto.
1993         (VF_128): Ditto.
1994         (SSEMODEF4): Remove.
1995         (attribute sse): Handle V8SF and V4DF modes.
1996         (<absneg:code><mode>2): Use VF mode iterator.
1997         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
1998         mode iterator.
1999         (<plusminus_insn><mode>3): Use VF mode iterator.
2000         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2001         Use VF mode iterator.
2002         (<sse>_vm<plusminus_insn><mode>3): Merge with
2003         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
2004         (mul<mode>3): Use VF mode iterator.
2005         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
2006         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
2007         mode iterator.
2008         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2009         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2010         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
2011         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
2012         mode iterator.
2013         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2014         Use VF1 mode iterator.
2015         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2016         (sqrt<VF2:mode>2): New expander.
2017         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2018         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2019         and sqrtv2df2.  Use VF mode iterator.
2020         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
2021         mode iterator.
2022         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2023         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2024         Use VF1 mode iterator.
2025         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2026         (<smaxmin:code><mode>3): Use VF mode iterator.
2027         (*<smaxmin:code><mode>3_finite): Merge with
2028         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
2029         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2030         (<sse>_vm<smaxmin:code><mode>2): Merge with
2031         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
2032         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
2033         mode iterator.
2034         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
2035         mode iterator.
2036         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2037         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2038         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2039         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2040         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
2041         VF mode iterator.
2042         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2043         Use VF_128 mode iterator.
2044         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
2045         mode iterator.
2046         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
2047         VF_128 mode iterator.
2048         (vcond<mode>): Use VF mode iterator.
2049         * config/i386/predicates.md (sse_comparison_operator): Merge with
2050         avx_comparison_float_operator.  Do not declare as special_predicate.
2051         * config/i386/i386.c (struct builtin_description): Update for renamed
2052         compare patterns.
2053         (ix86_expand_args_builtin): Ditto.
2054         (ix86_expand_sse_compare_mask): Ditto.
2056 2011-04-06  Richard Guenther  <rguenther@suse.de>
2058         * tree-inline.c (estimate_num_insns): For calls simply account
2059         for all passed arguments and a used return value.
2061 2011-04-06  Richard Guenther  <rguenther@suse.de>
2063         PR tree-optimization/47663
2064         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2065         call_stmt_time fields.
2066         (cgraph_edge_inlinable_p): Declare.
2067         (cgraph_edge_recursive_p): New inline function.
2068         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2069         (cgraph_clone_edge): Copy it.
2070         * ipa-inline.c (cgraph_estimate_edge_time): New function.
2071         Account for call stmt time.
2072         (cgraph_estimate_time_after_inlining): Take edge argument.
2073         (cgraph_estimate_edge_growth): Account call stmt size.
2074         (cgraph_estimate_size_after_inlining): Take edge argument.
2075         (cgraph_mark_inline_edge): Adjust.
2076         (cgraph_check_inline_limits): Likewise.
2077         (cgraph_recursive_inlining_p): Remove.
2078         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2079         (cgraph_decide_recursive_inlining): Take edge argument and
2080         adjust.
2081         (cgraph_decide_inlining_of_small_functions): Do not avoid
2082         diags for recursive inlining here.
2083         (cgraph_flatten): Adjust.
2084         (cgraph_decide_inlining_incrementally): Likewise.
2085         (estimate_function_body_sizes): Remove call cost handling.
2086         (compute_inline_parameters): Initialize caller edge call costs.
2087         (cgraph_estimate_edge_growth): New function.
2088         (cgraph_estimate_growth): Use it.
2089         (cgraph_edge_badness): Likewise.
2090         (cgraph_check_inline_limits): Take an edge argument.
2091         (cgraph_decide_inlining_of_small_functions): Adjust.
2092         (cgraph_decide_inlining): Likewise.
2093         * tree-inline.c (estimate_num_insns): Only account for call
2094         return value if it is used.
2095         (expand_call_inline): Avoid diagnostics on recursive inline
2096         functions here.
2097         * lto-cgraph.c (lto_output_edge): Output edge call costs.
2098         (input_edge): Input edge call costs.
2100 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2102         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2104 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2106         * doc/invoke.texi (Spec Files): Fix typo.
2108 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2110         * profile.c (branch_prob): Move declaration of local variable.  Remove
2111         obsolete ??? comment.  Expand the location explicitly instead of using
2112         the LOCATION_FILE and LOCATION_LINE macros.
2114 2011-04-06  Wei Guozhi  <carrot@google.com>
2116         PR target/47855
2117         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2118         (arm_cond_branch): Likewise.
2119         (arm_cond_branch_reversed): Likewise.
2120         (arm_jump): Likewise.
2121         (push_multi): Likewise.
2122         * config/arm/constraints.md (Py): New constraint.
2124 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2126         PR bootstrap/48471
2127         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2128         Move these...
2129         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2130         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2131         #ifdef DBX_DEBUGGING_INFO.
2133 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
2135         PR bootstrap/48403
2136         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2137         if old and new states differ.
2139 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2141         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2142         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2143         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2144         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2145         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2146         mcfv4e): Use Alias.
2147         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2148         ColdFire options to -mcpu= options.
2150 2011-04-05  Jeff Law  <law@redhat.com>
2152         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2153         check if BB is a successor of LOOP->header and return
2154         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2156 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2158         * cprop.c (struct reg_use): Remove.
2159         (reg_use_table): Make an array of RTX.
2160         (find_used_regs, constprop_register, local_cprop_pass,
2161         bypass_block): Simplify users of reg_use_table.
2162         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
2163         on one of the uses found by find_used_regs.
2165 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2167         PR bootstrap/48469
2168         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2169         declaration.
2171 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2173         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2174         as an rtx.
2175         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2177 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2179         PR middle-end/48441
2180         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2182 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2184         * combine.c: Include obstack.h.
2185         (struct insn_link): Define.
2186         (uid_log_links): Adjust type.
2187         (FOR_EACH_LOG_LINK): New macro.
2188         (insn_link_obstack): Declare.
2189         (alloc_insn_link): Define.
2190         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
2191         type of link variables.
2192         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2193         (try_combine, record_promoted_values, distribute_notes): Likewise.
2194         (distribute_links): Likewise.  Tweak prototype.
2195         (clear_log_links): Delete.
2196         (adjust_for_new_dest): Call alloc_insn_link.
2197         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2199 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2201         * gcse.c (modify_mem_list): Convert to an array of VECs.
2202         (canon_modify_mem_list, compute_transp): Tweak formatting.
2203         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
2204         (load_killed_in_block_p): Likewise.
2205         (record_last_mem_set_info): Likewise.
2206         (clear_modify_mem_tables): Likewise.
2208 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2210         PR middle-end/48461
2211         * function.c (emit_use_return_register_into_block): Only define if
2212         HAVE_return.
2214 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
2216         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2218 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2220         * config/rx/rx-opts.h: New.
2221         * config/rx/rx.c (rx_cpu_type): Remove.
2222         (rx_handle_option): Don't assert that global structures are in
2223         use.  Access variables via opts pointer.  Defer most handling of
2224         OPT_mint_register_.  Use error_at.
2225         (rx_option_override): Handle deferred OPT_mint_register_ here.
2226         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2227         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2228         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2229         (rx_cpu_types): New Enum and EnumValue entries.
2230         (mint-register=): Use Defer and use Var accordingly.
2232 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2234         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2235         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2236         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2237         Move these...
2238         (debug_free_queue, debug_nesting, symbol_queue_index):
2239         ...and these...
2240         * dbxout.c: ...to here.  Make static.
2242 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2244         * gcse.c (modify_pair): Define.  Define a VEC of it.
2245         (canon_modify_mem_list): Convert to an array of VECs.
2246         (free_insn_expr_list_list): Delete.
2247         (clear_modify_mem_tables): Call VEC_free instead.
2248         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2249         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2250         (canon_list_insert, compute_transp): Likewise.
2252 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2254         PR target/43920
2255         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
2256         for size.
2258 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2260         PR target/43920
2261         * function.c (emit_use_return_register_into_block): New function.
2262         (thread_prologue_and_epilogue_insns): Use
2263         emit_use_return_register_into_block.
2265 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2267         PR target/43920
2268         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
2269         insn.
2271 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2273         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2275 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
2277         * config/arm/arm.md (define_constants for unspec): Replace with
2278         define_c_enum.
2279         (define_constants for unspecv): Replace with define_c_enum.
2280         * config/arm/neon.md (define_constants for unspec): Replace with
2281         define_c_enum.
2283 2011-04-04  Richard Henderson  <rth@redhat.com>
2285         PR bootstrap/48400
2286         * dwarf2out.c (output_line_info): Always emit line info from
2287         at least one section.
2288         (dwarf2out_init): Create text_section_line_info here ...
2289         (set_cur_line_info_table): ... not here.
2291 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
2293         PR target/48380
2294         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
2295         not called.
2297         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
2299 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
2301         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
2302         (expr_equiv_p): Remove.
2303         (insert_set_in_table): Look at <dest, src> pair instead of expr.
2304         (hash_scan_set): Update call to insert_set_in_table.
2305         (dump_hash_table): Dump <dest, src> pair.
2306         (lookup_set): Simplify.  Lookup <dest, src> pair.
2307         (compute_transp): Remove, fold heavily simplified code into...
2308         (compute_local_properties): ...here.  Expect COMP and TRANSP
2309         unconditionally.
2310         (find_avail_set): Take set directly from struct expr.
2311         (find_bypass-set): Likewise.
2312         (bypass_block): Likewise.
2313         (cprop_insn): Likewise.  Remove redundant INSN_P test.
2315         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
2316         checks on form of COND from find_implicit_sets to here.
2317         (find_implicit_sets): Cleanup control flow. Split critical edges
2318         if it exposes implicit sets.  Allocate/resize implicit_sets as
2319         necessary.
2320         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
2321         changed something.  Run df_analyze after find_implicit_sets if any
2322         edges were split.  Do not allocate implicit_sets here.
2324         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
2325         (gcse_obstack): Renamed to cprop_obstack.
2326         (GNEW, GNEWVEC, GNEWVAR): Remove.
2327         (gmalloc): Remove.
2328         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
2329         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
2330         (gcse_alloc): Likewise, and rename to cprop_alloc.
2331         (alloc_gcse_men, free_gcse_mem): Remove.
2332         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
2333         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
2334         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
2336         * cprop.c (oprs_not_set_p): Remove.
2337         (mark_set, mark_clobber): Remove.
2338         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
2339         (reg_not_set_p): New function.
2340         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
2341         (cprop_insn): Likewise.
2342         (cprop_jump): Use FOR_EACH_EDGE.
2344 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
2346         PR bootstrap/48403
2347         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
2348         (rank_for_schedule): Use scheduled_insns vector instead of
2349         last_scheduled_insn.
2350         (ok_for_early_queue_removal): Likewise.
2351         (queue_to_ready): Search forward in nonscheduled_insns_begin if
2352         we have a dbg_cnt.
2353         (choose_ready): Likewise.
2354         (commit_schedule): Use VEC_iterate.
2355         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
2356         a dbg_cnt, use it and ensure the first insn is in the ready list.
2357         (haifa_sched_init): Allocate scheduled_insns.
2358         (sched_extend_ready_list): Don't allocate it; reserve space.
2359         (haifa_sched_finish): Free it.
2361 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
2363         * optc-gen.awk: Always remove type from Variable entry before
2364         recording in var_seen.
2366 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
2368         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
2369         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
2370         call to tidy_fallthru_edges.
2372 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
2374         * doc/options.texi (ToLower): Document.
2375         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
2376         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
2377         * opts.h (cl_option): Add cl_tolower field.
2378         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
2379         arguments with lowercase strings.
2380         * config/rx/rx.opt (mcpu=): Add ToLower.
2381         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
2382         argument.
2384 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
2386         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
2388 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
2390         * config/vax/vax.c: Include reload.h.
2392 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
2394         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
2395         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2396         (sparc_preferred_reload_class): New function.
2398 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
2400         PR debug/48401
2401         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2402         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
2404 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
2406         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
2407         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
2409 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
2411         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
2412         (ASM_OUTPUT_ALIGNED_BSS): Define.
2414 2011-04-03  Michael Matz  <matz@suse.de>
2416         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
2417         and next_slot members.
2418         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
2419         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
2420         (lto_streamer_cache_append): Declare.
2421         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
2422         unsigned index, remove offset parameter, ensure that we append
2423         or update existing entries.
2424         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
2425         parameter, update next_slot for append.
2426         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
2427         parameter.
2428         (lto_streamer_cache_insert_at): Likewise.
2429         (lto_streamer_cache_append): New function.
2430         (lto_streamer_cache_lookup): Use unsigned index.
2431         (lto_streamer_cache_get): Likewise.
2432         (lto_record_common_node): Don't test tree_node_can_be_shared.
2433         (preload_common_node): Adjust call to lto_streamer_cache_insert.
2434         (lto_streamer_cache_delete): Don't free offsets member.
2435         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
2436         (lto_output_string_with_length): Use lto_output_data_stream.
2437         (lto_output_tree_header): Remove ix parameter, don't write it.
2438         (lto_output_builtin_tree): Likewise.
2439         (lto_write_tree): Adjust callers to above, don't track and write
2440         offset, write unsigned index.
2441         (output_unreferenced_globals): Don't emit all global vars.
2442         (write_global_references): Use unsigned indices.
2443         (lto_output_decl_state_refs): Likewise.
2444         (write_symbol): Likewise.
2445         * lto-streamer-in.c (lto_input_chain): Move earlier.
2446         (input_function): Use unsigned index.
2447         (input_alias_pairs): Don't read and then ignore all global vars.
2448         (lto_materialize_tree): Remove ix_p parameter, don't read index,
2449         don't pass it back, use lto_streamer_cache_append.
2450         (lto_register_var_decl_in_symtab): Use unsigned index.
2451         (lto_register_function_decl_in_symtab): Likewise.
2452         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
2453         index.
2454         (lto_get_builtin_tree): Don't read index, use
2455         lto_streamer_cache_append.
2456         (lto_read_tree): Adjust call to lto_materialize_tree.
2458         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
2459         don't use function calls in arguments to MIN.
2461         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
2462         twice.
2464         * gimple.c (gimple_type_leader_entry): Mark deletable.
2466 2011-04-03  Alan Modra  <amodra@gmail.com>
2468         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
2470 2011-04-03  Michael Matz  <matz@suse.de>
2472         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
2473         an integer.
2474         * tree.h (tree_decl_non_common.vindex): Adjust comment.
2476 2011-04-03  Michael Matz  <matz@suse.de>
2478         * cgraphbuild.c (record_reference): Canonicalize constructor values.
2479         * gimple-fold.c (canonicalize_constructor_val): Accept being called
2480         without function context.
2481         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
2482         current_function_decl and cfun.
2484 2011-04-03  Michael Matz  <matz@suse.de>
2486         * tree.c (decl_init_priority_insert): Don't create entry for
2487         default priority.
2488         (decl_fini_priority_insert): Ditto.
2489         (fields_compatible_p, find_compatible_field): Remove.
2490         * tree.h (fields_compatible_p, find_compatible_field): Remove.
2491         * gimple.c (gimple_compare_field_offset): Adjust block comment.
2493 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
2495         * combine.c (try_combine): Remove useless local variable.
2497 2011-04-03  Richard Guenther  <rguenther@suse.de>
2498             Ira Rosen  <ira.rosen@linaro.org>
2500         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
2501         non-variable offsets and compare the remaining bases of the two
2502         accesses instead of looking for exact same data-ref.
2504 2011-04-02  Kai Tietz  <ktietz@redhat.com>
2506         PR target/48416
2507         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
2509         * i386.c (ix86_is_msabi_thiscall): New helper function.
2510         (ix86_is_type_thiscall): New helper function.
2511         (ix86_comp_type_attributes): Handle thiscall for method-functions
2512         special.
2513         (init_cumulative_args): Likewise.
2514         (find_drap_reg): Likewise.
2515         (ix86_static_chain): Likewise.
2516         (x86_this_parameter): Likewise.
2517         (x86_output_mi_thunk): Likewise.
2519 2011-04-01  Olivier Hainque  <hainque@adacore.com>
2520             Nicolas Setton  <setton@adacore.com>
2521             Eric Botcazou  <ebotcazou@adacore.com>
2523         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
2524         (add_gnat_descriptive_type_attribute): New function.
2525         (gen_array_type_die): Call it.
2526         (gen_enumeration_type_die): Likewise.
2527         (gen_struct_or_union_type_die): Likewise.
2528         (modified_type_die): Likewise.
2529         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
2530         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
2531         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
2533 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
2535         PR bootstrap/48148
2536         * dwarf2out.c (resolve_addr): Don't call force_decl_die
2537         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
2539         Revert:
2540         2011-03-17  Richard Guenther  <rguenther@suse.de>
2542         PR bootstrap/48148
2543         * lto-cgraph.c (input_overwrite_node): Clear the abstract
2544         origin for decls in other ltrans units.
2545         (input_varpool_node): Likewise.
2547 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
2549         PR middle-end/48335
2550         * expr.c (expand_assignment): Handle all possibilities
2551         if TO_RTX is CONCAT.
2552         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
2553         (store_split_bit_field): If SUBREG_REG (op0) or
2554         op0 itself has smaller mode than word, return it
2555         for offset 0 and const0_rtx for out-of-bounds stores.
2556         If word is const0_rtx, skip it.
2558 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
2560         * config/h8300/h8300.c (print_operand_address): Rename to...
2561         (h8300_print_operand_address): ...this. Make static. Adjust comments.
2562         Call h8300_print_operand and h8300_print_operand_address instead of
2563         print_operand and print_operand_address. Declare.
2564         (print_operand): Renake to...
2565         (h8300_print_operand): ...this. Make static. Adjust comments.
2566         Call h8300_print_operand instead of print_operand. Declare.
2567         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
2568         (h8300_register_move_cost): Likewise.
2569         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
2570         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
2571         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
2572         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
2573         * config/h8300/h8300-protos.h (print_operand): Delete.
2574         (print_operand_address): Delete.
2576 2011-04-01  Richard Henderson  <rth@redhat.com>
2578         PR 48400
2579         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
2580         in strict mode before dwarf4.  Re-order tests to early out
2581         before switching sections.
2583 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
2585         * config/h8300/constraints.md: New file.
2586         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
2587         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
2588         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
2589         * config/h8300/predicates.md (bit_operand): Likewise.
2590         (incdec_operand): Use satisfies_constraint_M and
2591         satisfies_constraint_O.  Don't use C code block.
2592         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
2593         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
2594         (compute_mov_length): Use satisfies_constraint_G.
2595         (fix_bit_operand): Use satisfies_constraint_U.
2596         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
2597         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
2598         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
2599         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
2600         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
2601         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
2602         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2603         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
2604         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
2605         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
2606         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
2607         (EXTRA_MEMORY_CONSTRAINT): Delete.
2609 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
2610             Michael Meissner  <meissner@linux.vnet.ibm.com>
2612         PR target/48262
2613         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
2614         operands, as per the specifications.
2616         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
2617         (vec_extract_evenv4sf): Ditto.
2618         (vec_extract_evenv8hi): Ditto.
2619         (vec_extract_evenv16qi): Ditto.
2620         (vec_extract_oddv4si): Ditto.
2622 2011-03-31  Mark Wielaard  <mjw@redhat.com>
2624         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
2625         high_pc attribute if the CU has no associated code. Only output
2626         DW_AT_entry_pc for CU if not generating strict dwarf and
2627         dwarf_version < 4.
2629 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
2631         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
2632         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
2633         out of ...
2634         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
2635         * final.c (final_start_function): Call the new function rather
2636         than using a NULL argument for dwarf2out_frame_debug.
2638         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
2639         that contains the prologue.
2641         * haifa-sched.c (queue_insn): New arg REASON.  All callers
2642         changed.  Print it in debugging output.
2644         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
2646         * sched-ebb.c (begin_schedule_ready): Remove second argument.
2647         Split most of the code into...
2648         (begin_move_insn): ... here.  New function.
2649         (ebb_sched_info): Add a pointer to it.
2650         * haifa-sched.c (scheduled_insns): New static variable.
2651         (sched_extend_ready_list): Allocate it.
2652         (schedule_block): Use it to record the order of scheduled insns.
2653         Perform RTL changes to move insns only after all scheduling
2654         decisions have been made.
2655         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
2656         begin_move_insn field.
2657         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2658         * sched-int.h (struct haifa_sched_info): Remove second argument
2659         from begin_schedule_ready hook.  Add new member begin_move_insn.
2660         * sched-rgn.c (begin_schedule_ready): Remove second argument.
2661         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
2663         * haifa-sched.c (prune_ready_list): New function, broken out of
2664         schedule_block.
2665         (schedule_block): Use it.
2667 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2669         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2671 2011-04-01  Kai Tietz  <ktietz@redhat.com>
2673         * config.gcc (*-*-mingw*): Allow as option the
2674         posix threading model.
2675         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
2676         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
2677         definition.
2678         (CPP_SPEC): Add pthread/no-pthread handling.
2679         (LIB_SPEC): Likewise.
2680         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
2681         (LIB_SPEC): Likewise.
2682         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
2683         flag to pass -pthread option for shared libgcc build.
2684         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
2685         for shared libgcc build.
2686         * config/i386/t-mingw-pthread: New file.
2687         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
2688         New define to enable use of library pthread by default.
2689         * config/i386/mingw.opt (pthread): New driver option.
2690         (no-pthread): New driver option.
2691         * config/i386/cygming.opt: Make sure trailing empty line is retained.
2692         * config/i386/mingw-w64.opt: Likewise.
2694 2011-04-01  Gary Funck <gary@intrepid.com>
2696         * c-decl.c (grokdeclarator): Fix formatting.
2698 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2700         * expr.c (emit_block_move_via_movmem): Use n_generator_args
2701         instead of n_operands.
2702         (set_storage_via_setmem): Likewise.
2703         * optabs.c (maybe_gen_insn): Likewise.
2704         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
2705         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
2706         (mips_expand_builtin_direct): Likewise.
2707         * config/spu/spu.c (expand_builtin_args): Likewise.
2709 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2711         * recog.h (insn_data_d): Add n_generator_args.
2712         * genoutput.c (data): Likewise.
2713         (output_insn_data): Print it.
2714         (max_opno, num_dups): Delete.
2715         (scan_operands): Just fill in "d->operand[...]".
2716         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
2718 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2720         * gensupport.h (pattern_stats): New structure.
2721         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
2722         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
2723         (max_operand_1, max_operand_vec): Delete.
2724         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
2726 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
2728         * emit-rtl.c (emit_pattern_after_setloc): New function.
2729         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
2730         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
2731         (emit_pattern_after): New function.
2732         (emit_insn_after, emit_jump_insn_after): Call it.
2733         (emit_call_insn_after, emit_debug_insn_after): Likewise.
2734         (emit_pattern_before_setloc): New function.
2735         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
2736         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
2737         Likewise.
2738         (emit_pattern_before): New function.
2739         (emit_insn_before, emit_jump_insn_before): Call it.
2740         (emit_call_insn_before, emit_debug_insn_before): Likewise.
2742 2011-03-31  Richard Henderson  <rth@redhat.com>
2744         * dwarf2out.c (dw_separate_line_info_ref): Remove.
2745         (dw_separate_line_info_entry): Remove.
2746         (enum dw_line_info_opcode): New.
2747         (dw_line_info_entry): Use it.
2748         (dw_line_info_table, dw_line_info_table_p): New.
2749         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
2750         (line_info_table, line_info_label_num): Remove.
2751         (line_info_table_in_use): Remove.
2752         (separate_line_info_table): Remove.
2753         (separate_line_info_table_allocated): Remove.
2754         (separate_line_info_table_in_use): Remove.
2755         (LINE_INFO_TABLE_INCREMENT): Remove.
2756         (line_info_label_num): New.
2757         (cur_line_info_table): New.
2758         (text_section_line_info, cold_text_section_line_info): New.
2759         (separate_line_info): New.
2760         (SEPARATE_LINE_CODE_LABEL): Remove.
2761         (print_dwarf_line_table): Remove.
2762         (debug_dwarf): Don't dump it.
2763         (output_one_line_info_table): New.
2764         (output_line_info): Use it.
2765         (new_line_info_table): New.
2766         (set_cur_line_info_table): New.
2767         (dwarf2out_switch_text_section): Use it.
2768         (dwarf2out_begin_function): Likewise.
2769         (push_dw_line_info_entry): New.
2770         (dwarf2out_source_line): Rewrite for new line info tables.
2771         (dwarf2out_init): Remove dead initailizations.
2773 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
2775         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
2776         various flags.
2777         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
2778         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
2779         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
2780         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
2781         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
2782         * opt-functions.awk (flag_init, switch_bit_fields): New.
2783         (switch_flags): Don't handle flags moved to bit-fields.  Don't
2784         generate CL_MISSING_OK or CL_SAVE.
2785         * optc-gen.awk: Update to generate bit-field output as well as
2786         flags field.
2787         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
2788         bit-field instead of CL_REJECT_DRIVER flag.
2789         * opts-common.c (generate_canonical_option,
2790         decode_cmdline_option): Use bit-fields instead of CL_* flags.
2791         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
2792         instead of CL_REJECT_NEGATIVE flag.
2793         * toplev.c (print_switch_values): Use cl_report bit-field instead
2794         of CL_REPORT flag.
2796 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
2798         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
2799         a zero minimum index only if it is redundant.
2801 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
2803         PR rtl-optimization/48381
2804         * ira-color.c (assign_hard_reg): Use hard reg set intersection
2805         instead of ira_class_hard_reg_index for calculating conflicting
2806         hard registers.
2808 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
2810         * cprop.c: Clean up hash table building.
2811         (reg_avail_info): Remove.
2812         (oprs_available_p): Remove.
2813         (record_last_reg_set_info): Remove.
2814         (record_last_set_info): Remove.
2815         (reg_available_p): New function.
2816         (gcse_constant_p): Do not treat unfolded conditions as constants.
2817         (make_set_regs_unavailable): New function.
2818         (hash_scan_set): Simplify with new reg_available_p.
2819         (compute_hash_table_work): Traverse insns stream only once.
2820         Do not compute reg_avail_info. Traverse insns in reverse order.
2821         Record implicit sets after recording explicit sets from the block.
2823 2011-03-31  Michael Matz  <matz@suse.de>
2825         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
2827 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
2829         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
2830         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
2831         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2832         (h8300_mode_dependent_address_p): New function.
2833         (h8300_get_index): Make static.
2835 2011-03-31  Jeff Law  <law@redhat.com>
2837         * reload1.c (elimination_effects): Fix typo in recent change.
2839         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
2840         typo potentially leading to null pointer dereference.
2842         * caller-save.c (new_saved_hard_reg): Eliminate return value.
2843         (setup_save_areas): Corresponding changes to avoid useless
2844         assignments.
2846         * jump.c (reversed_comparison_code_parts): Avoid successive return
2847         statements when REVERSE_CONDITION is defined.
2849         * expr.c (expand_assignment): Avoid useless assignments.
2850         (expand_expr_real_1): Likewise.
2851         (expand_expr_real_2): Avoid useless statements.
2853         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
2855         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2857         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
2858         statements.
2860         * stmt.c (expand_expr_stmt): Avoid useless assignment.
2862 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
2864         PR target/47109
2865         * doc/tm.texi.in (TARGET_VERSION): Remove.
2866         * doc/tm.texi: Regenerate.
2867         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
2868         * collect2.c (main): Don't use TARGET_VERSION.
2869         * mips-tdump.c (main): Don't use TARGET_VERSION.
2870         * mips-tfile.c (main): Don't use TARGET_VERSION.
2871         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
2872         * config/rs6000/vxworksae.h: Remove.
2873         * config/alpha/alpha.h (TARGET_VERSION): Remove.
2874         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
2875         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
2876         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
2877         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2878         * config/arm/arm.h (TARGET_VERSION): Remove.
2879         * config/arm/coff.h (TARGET_VERSION): Remove.
2880         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
2881         * config/arm/elf.h (TARGET_VERSION): Remove.
2882         * config/arm/freebsd.h (TARGET_VERSION): Remove.
2883         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
2884         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
2885         * config/arm/pe.h (TARGET_VERSION): Remove.
2886         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
2887         * config/arm/semi.h (TARGET_VERSION): Remove.
2888         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
2889         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
2890         * config/arm/vxworks.h (TARGET_VERSION): Remove.
2891         * config/avr/avr.h (TARGET_VERSION): Remove.
2892         * config/bfin/bfin.h (TARGET_VERSION): Remove.
2893         * config/fr30/fr30.h (TARGET_VERSION): Remove.
2894         * config/frv/frv.h (TARGET_VERSION): Remove.
2895         * config/h8300/h8300.h (TARGET_VERSION): Remove.
2896         * config/i386/cygwin.h (TARGET_VERSION): Remove.
2897         * config/i386/darwin.h (TARGET_VERSION): Remove.
2898         * config/i386/darwin64.h (TARGET_VERSION): Remove.
2899         * config/i386/djgpp.h (TARGET_VERSION): Remove.
2900         * config/i386/freebsd.h (TARGET_VERSION): Remove.
2901         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
2902         * config/i386/gnu.h (TARGET_VERSION): Remove.
2903         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
2904         * config/i386/i386elf.h (TARGET_VERSION): Remove.
2905         * config/i386/linux.h (TARGET_VERSION): Remove.
2906         * config/i386/linux64.h (TARGET_VERSION): Remove.
2907         * config/i386/lynx.h (TARGET_VERSION): Remove.
2908         * config/i386/mingw32.h (TARGET_VERSION): Remove.
2909         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
2910         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
2911         * config/i386/netware.h (TARGET_VERSION): Remove.
2912         * config/i386/nto.h (TARGET_VERSION): Remove.
2913         * config/i386/openbsd.h (TARGET_VERSION): Remove.
2914         * config/i386/vxworks.h (TARGET_VERSION): Remove.
2915         * config/ia64/elf.h (TARGET_VERSION): Remove.
2916         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
2917         * config/ia64/hpux.h (TARGET_VERSION): Remove.
2918         * config/ia64/linux.h (TARGET_VERSION): Remove.
2919         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2920         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
2921         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2922         * config/lm32/lm32.h (TARGET_VERSION): Remove.
2923         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
2924         * config/m32c/m32c.h (TARGET_VERSION): Remove.
2925         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
2926         * config/m32r/m32r.h (TARGET_VERSION): Remove.
2927         * config/m68k/linux.h (TARGET_VERSION): Remove.
2928         * config/m68k/m68k.h (TARGET_VERSION): Remove.
2929         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
2930         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
2931         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
2932         * config/mep/mep.h (TARGET_VERSION): Remove.
2933         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
2934         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2935         * config/mips/iris6.h (MACHINE_TYPE): Remove.
2936         * config/mips/linux.h (TARGET_VERSION): Remove.
2937         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
2938         * config/mips/vxworks.h (TARGET_VERSION): Remove.
2939         * config/mmix/mmix.h (TARGET_VERSION): Remove.
2940         * config/mn10300/linux.h (TARGET_VERSION): Remove.
2941         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
2942         * config/pa/pa.h (TARGET_VERSION): Remove.
2943         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
2944         * config/picochip/picochip.h (TARGET_VERSION): Remove.
2945         * config/rs6000/aix.h (TARGET_VERSION): Remove.
2946         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
2947         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
2948         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
2949         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
2950         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
2951         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
2952         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
2953         * config/rs6000/linux.h (TARGET_VERSION): Remove.
2954         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
2955         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
2956         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
2957         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
2958         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
2959         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
2960         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
2961         * config/s390/linux.h (TARGET_VERSION): Remove.
2962         * config/s390/s390.h (TARGET_VERSION): Remove.
2963         * config/s390/tpf.h (TARGET_VERSION): Remove.
2964         * config/score/score.h (TARGET_VERSION): Remove.
2965         * config/sh/linux.h (TARGET_VERSION): Remove.
2966         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
2967         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
2968         * config/sh/sh.h (TARGET_VERSION): Remove.
2969         * config/sh/sh64.h (TARGET_VERSION): Remove.
2970         * config/sh/superh.h (TARGET_VERSION): Remove.
2971         * config/sh/vxworks.h (TARGET_VERSION): Remove.
2972         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
2973         * config/sparc/linux.h (TARGET_VERSION): Remove.
2974         * config/sparc/linux64.h (TARGET_VERSION): Remove.
2975         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
2976         TARGET_NAME32, TARGET_NAME): Remove.
2977         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
2978         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
2979         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
2980         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
2981         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
2982         * config/spu/spu.h (TARGET_VERSION): Remove.
2983         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
2984         * config/v850/v850.h (TARGET_VERSION): Remove.
2985         * config/vax/linux.h (TARGET_VERSION): Remove.
2986         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
2987         * config/xtensa/elf.h (TARGET_VERSION): Remove.
2988         * config/xtensa/linux.h (TARGET_VERSION): Remove.
2990 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
2992         PR target/48142
2993         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
2994         frame-related from frame-unrelated adjustments to the stack pointer.
2996 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
2998         * common.opt (fdebug-types-section): Move earlier.
2999         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3001 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
3003         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3004         var.
3006 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
3008         * tree.h (CASE_CHAIN): Define.
3009         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3010         (gimple_redirect_edge_and_branch): Likewise.
3012 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3014         PR middle-end/48367
3015         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3016         calculation.
3018 2011-03-30  Jeff Law  <law@redhat.com>
3020         * PR bootstrap/48371
3021         * reload1.c (reload): Fix botch in last change.
3023         * reload.h (struct reload): Fix typo introduced in last change.
3025 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3027         * config/arm/arm.opt (mhard-float, msoft-float): Mark
3028         Undocumented.  Remove help text.
3029         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3030         -mhard-float.
3032 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3034         * doc/options.texi (NegativeAlias): Document.
3035         (Alias): Mention NegativeAlias.
3036         * opt-functions.awk: Handle NegativeAlias.
3037         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3038         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3039         * opts.h (CL_NEGATIVE_ALIAS): Define.
3040         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3041         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3042         OPT_mspe_.
3043         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3044         Alias entries.
3045         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3046         mno-spe and mno-isel instead of mspe=no and -misel=no.
3048 2011-03-29  Mark Wielaard  <mjw@redhat.com>
3050         * common.opt (fdebug-types-section): New flag.
3051         * doc/invoke.texi: Document new -fno-debug-types-section flag.
3052         * dwarf2out.c (use_debug_types): New define.
3053         (struct die_struct): Mark die_id with GTY desc use_debug_types.
3054         (print_die): Guard output of type unit signatures using
3055         use_debug_types.
3056         (build_abbrev_table): Replace assert of dwarf_version >= 4
3057         with assert on use_debug_types.
3058         (size_of_die): Likewise.
3059         (unmark_dies): Likewise.
3060         (value_format): Decide AT_ref_external form on use_debug_types.
3061         (output_die): Replace dwarf_version version check guard with
3062         use_debug_types where appropriate.
3063         (modified_type_die): Likewise.
3064         (gen_reference_type_die): Likewise.
3065         (dwarf2out_start_source_file): Likewise.
3066         (dwarf2out_end_source_file): Likewise.
3067         (prune_unused_types_walk_attribs): Likewise.
3068         (dwarf2out_finish): Likewise.
3070 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3072         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3074 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3076         PR rtl-optimization/48332
3077         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3078         mode of input operand N and modeN to its actual mode.
3080 2011-03-30  Jeff Law  <law@redhat.com>
3082         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3083         define accessor macro.
3084         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3085         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3086         (reg_equiv_init): Likewise.
3087         (reg_equivs_size): New variable.
3088         (reg_equiv_init_size): Remove.
3089         (allocate_initial_values): Move prototype to here from....
3090         * integrate.h (allocate_initial_values): Remove prototype.
3091         * integrate.c: Include reload.h.
3092         (allocate_initial_values): Corresponding changes.
3093         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3094         (fix_reg_equiv_init, no_equiv): Corresponding changes.
3095         (update_equiv_regs): Corresponding changes.
3096         (ira): Corresponding changes.
3097         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3098         (push_secondary_reload): Corresponding changes.
3099         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3100         (make_memloc, find_reloads_address): Corresponding changes.
3101         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3102         (find_reloads_address_1): Corresponding changes.
3103         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3104         (refers_to_regno_for_reload_p): Corresponding changes.
3105         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3106         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3107         * reload1.c: Include ggc.h.
3108         (grow_reg_equivs): New function.
3109         (replace_pseudos_in, reload): Corresponding changes.
3110         (calculate_needs_all_insns, alter_regs): Corresponding changes.
3111         (eliminate_regs_1, elimination_effects): Corresponding changes.
3112         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3113         (delete_output_reload): Likewise.
3114         * caller-save.c (mark_referenced_regs): Corresponding changes.
3115         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3116         * frv/predicates.md (frv_load_operand): Corresponding changes.
3117         * microblaze/microblaze.c (double_memory_operand): Corresponding
3118         changes.
3119         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3120         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3121         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3122         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3123         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3124         changes.
3125         * pa/pa.c (emit_move_sequence): Corresponding changes.
3126         * vax/vax.c (nonindexed_address_p): Corresponding changes.
3128 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3130         PR target/47551
3131         * config/arm/arm.c (coproc_secondary_reload_class): Handle
3132         structure modes.  Don't check neon_vector_mem_operand for
3133         vector or structure modes.
3135 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3136             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3138         PR target/43590
3139         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3140         operand 1 and reshuffle the operands to match.
3141         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3143 2011-03-30  Christian Schüler  <cschueler@gmx.de>
3145         PR driver/48208
3146         * config/c.opt (F): Added 'Driver' to -F option.
3148         PR driver/48260
3149         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3150           handler function.
3151         * config/darwin.opt: Added '-arch' option.
3153 2011-03-30  Nick Clifton  <nickc@redhat.com>
3155         * config/rx/rx.md: Add peepholes and patterns to combine
3156         extending loads and simple arithmetic instructions.
3157         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3158         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3159         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3160         modes to use pre-decrement and post-increment addressing.
3161         (rx_is_restricted_memory_address): Add range checking of REG+INT
3162         addresses.
3163         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
3164         (rx_memory_move_cost): Adjust cost of stores.
3165         (rx_adjust_insn_length): New function.
3167 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
3169         PR c/48305
3170         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3171         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3172         matching arg00/arg01 types.
3174 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
3176         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3177         last_location to UNKNOWN_LOCATION.
3179 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
3181         PR target/48349
3182         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3183         FLOAT_SSE_REGS.
3185 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3186             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3188         PR bootstrap/48337
3189         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3190         Init(PROCESSOR_V7).
3191         (sparc_cpu): Likewise.
3192         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3193         PROCESSOR_V7.
3195 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3197         PR target/48336
3198         PR middle-end/48342
3199         PR rtl-optimization/48345
3200         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3201         hard regs for given mode from profitable regs when doing secondary
3202         allocation.
3204 2011-03-29  Jeff Law  <law@redhat.com>
3206         PR bootstrap/48327
3207         * tree-ssa-threadupdate.c (struct redirection_data): Remove
3208         do_not_duplicate field.
3209         (lookup_redirection_data): Corresponding changes.
3210         (create_duplicates): Always create a template block.
3211         (redirect_edges): Remove code which reused the original block
3212         when it was going to become unreachable code.
3213         (thread_block): Don't set do_not_duplicate field.
3215 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
3217         * lto-opts.c (register_user_option_p, lto_register_user_option):
3218         Make type argument unsigned.
3219         * lto-streamer.h (lto_register_user_option): Make type argument
3220         unsigned.
3221         * opth-gen.awk: Make CL_* macros unsigned.
3222         * opts-common.c (find_opt): Make lang_mask argument unsigned.
3223         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3224         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3225         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3226         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3227         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3228         (find_opt): Make lang_mask argument unsigned.
3230 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3232         PR rtl-optimization/48331
3233         PR rtl-optimization/48334
3234         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3235         for any used algorithm.
3237 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3239         * ira-conflicts.c (build_object_conflicts): Add unused attribute
3240         to parent_max.
3242 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
3244         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3245         (alpha_option_override): Don't set alpha_sr_alias_set.
3246         (emit_frame_store_1): Use gen_frame_mem rather than calling
3247         set_mem_alias_set.
3248         (alpha_expand_epilogue): Ditto.
3250 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
3252         PR tree-optimization/48290
3253         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
3254         vectorization, check that relevant phis in the basic block after
3255         the inner loop are really inner loop's exit phis.
3257 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
3259         PR debug/48190
3260         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
3261         (cached_dw_loc_list_def): New structure.
3262         (cached_dw_loc_list): New typedef.
3263         (cached_dw_loc_list_table): New variable.
3264         (cached_dw_loc_list_table_hash): New function.
3265         (cached_dw_loc_list_table_eq): Likewise.
3266         (add_location_or_const_value_attribute): Take a bool cache_p.
3267         Cache the list when the parameter is true.
3268         (gen_formal_parameter_die): Update caller.
3269         (gen_variable_die): Likewise.
3270         (dwarf2out_finish): Likewise.
3271         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
3272         while generating debug info for the decl.
3273         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
3274         (dwarf2out_init): Initialize cached_dw_loc_list_table.
3275         (resolve_addr): Cache the result of resolving a chain of
3276         location lists.
3278 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
3280         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
3281         conflict object hard regset nodes have intersecting hard reg sets.
3283         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
3284         after regstat_init_n_sets_and_refs.
3286         * ira.c: Add more comments at the top.
3287         (setup_stack_reg_pressure_class, setup_pressure_classes):
3288         Add comments how we compute the register pressure classes.
3289         (setup_allocno_and_important_classes): Add more comments.
3290         (setup_class_translate_array, reorder_important_classes)
3291         (setup_reg_class_relations): Add comments.
3293         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
3294         start of the file.
3296         * ira-color.c: Add 2011 to the Copyright line.
3297         (assign_hard_reg):  Add more comments.
3298         (improve_allocation): Ditto.
3300         * ira-costs.c: Add 2011 to the Copyright line.
3301         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
3302         comments.
3303         (setup_regno_cost_classes_by_mode): Ditto.
3305         Initial patches from ira-improv branch:
3307         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
3309         * ira-build.c (ira_create_object): Remove initialization of
3310         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
3311         (ira_create_allocno): Remove initialization of
3312         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
3313         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
3314         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3315         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
3316         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
3317         Initialize ALLOCNO_ADD_DATA.
3318         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
3319         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
3320         ALLOCNO_REG.
3321         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
3322         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
3324         * ira.c (ira_reallocate): Remove.
3325         (setup_pressure_classes): Call
3326         ira_init_register_move_cost_if_necessary.  Use
3327         ira_register_move_cost instead of ira_get_register_move_cost.
3328         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
3329         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
3331         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
3332         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3333         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
3334         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
3335         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
3336         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
3337         Fix formatting.
3338         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
3339         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3340         (struct allocno_color_data): New.
3341         (allocno_color_data_t): New typedef.
3342         (allocno_color_data): New definition.
3343         (ALLOCNO_COLOR_DATA): New macro.
3344         (struct object_color_data): New.
3345         (object_color_data_t): New typedef.
3346         (object_color_data): New definition.
3347         (OBJECT_COLOR_DATA): New macro.
3348         (update_copy_costs, calculate_allocno_spill_cost): Call
3349         ira_init_register_move_cost_if_necessary.  Use
3350         ira_register_move_cost instead of ira_get_register_move_cost.
3351         (move_spill_restore, update_curr_costs): Ditto.
3352         (allocno_spill_priority): Make it inline.
3353         (color_pass): Allocate and free allocno_color_dat and object_color_data.
3354         (struct coalesce_data, coalesce_data_t): New.
3355         (allocno_coalesce_data): New definition.
3356         (ALLOCNO_COALESCE_DATA): New macro.
3357         (merge_allocnos, coalesced_allocno_conflict_p): Use
3358         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
3359         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
3360         (coalesce_allocnos): Ditto.
3361         (setup_coalesced_allocno_costs_and_nums): Ditto.
3362         (collect_spilled_coalesced_allocnos): Ditto.
3363         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
3364         (setup_slot_coalesced_allocno_live_ranges): Ditto.
3365         (coalesce_spill_slots): Ditto.
3366         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
3367         free allocno_coalesce_data.
3369         * ira-conflicts.c: Fix formatting.
3370         (process_regs_for_copy): Call
3371         ira_init_register_move_cost_if_necessary.  Use
3372         ira_register_move_cost instead of ira_get_register_move_cost.
3373         (build_object_conflicts): Optimize.
3375         * ira-costs.c (record_reg_classes): Optimize.  Call
3376         ira_init_register_move_cost_if_necessary.  Use
3377         ira_register_move_cost, ira_may_move_in_cost, and
3378         ira_may_move_out_cost instead of ira_get_register_move_cost and
3379         ira_get_may_move_cost.
3380         (record_address_regs): Ditto.
3381         (scan_one_insn): Optimize.
3382         (find_costs_and_classes): Optimize.
3383         (process_bb_node_for_hard_reg_moves): Call
3384         ira_init_register_move_cost_if_necessary.  Use
3385         ira_register_move_cost instead of ira_get_register_move_cost.
3387         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
3388         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
3389         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
3390         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
3391         definitions.
3392         (ira_initiate_emit_data, ira_finish_emit_data)
3393         (create_new_allocno): New functions.
3394         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
3395         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
3396         Use ira_register_move_cost instead of ira_get_register_move_cost.
3398         * ira-int.h: Fix some comments.
3399         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
3400         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3401         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
3402         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
3403         add_data.
3404         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
3405         bitfield after mode.  Make hard_regno a short int.  Make
3406         hard_regno short.  Remove first_coalesced_allocno and
3407         next_coalesced_allocno.  Move mem_optimized_dest_p,
3408         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
3409         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
3410         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
3411         temp, colorable_p.  Add new member add_data.
3412         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
3413         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
3414         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
3415         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
3416         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
3417         (ALLOCNO_ADD_DATA): New macro.
3418         (ira_emit_data_t): New typedef.
3419         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
3420         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
3421         from struct ira_allocno.
3422         (ALLOCNO_EMIT_DATA): New macro.
3423         (ira_allocno_emit_data, allocno_emit_reg): New.
3424         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
3425         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
3426         (OBJECT_ADD_DATA): New macro.
3427         (ira_reallocate): Remove.
3428         (ira_initiate_emit_data, ira_finish_emit_data): New.
3429         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
3430         (ira_init_register_move_cost_if_necessary): New.
3431         (ira_object_conflict_iter_next): Merge into
3432         ira_object_conflict_iter_cond.
3433         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
3435         * ira-live.c (process_single_reg_class_operands): Call
3436         ira_init_register_move_cost_if_necessary.  Use
3437         ira_register_move_cost instead of ira_get_register_move_cost.
3439         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
3441         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
3443         * ira-costs.c: Fix formatting.
3444         (cost_classes, cost_classes_num): Remove.
3445         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
3446         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
3447         (cost_classes_del, cost_classes_htab): New.
3448         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
3449         (initiate_regno_cost_classes, setup_cost_classes): New.
3450         (setup_regno_cost_classes_by_aclass): New.
3451         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
3452         (record_reg_classes): Use regno_cost_classes instead of
3453         cost_classes.  Move checking opposite operand up.
3454         (record_address_regs): Use regno_cost_classes
3455         instead of cost_classes.
3456         (scan_one_insn): Ditto.  Use always general register.
3457         (print_allocno_costs): Use regno_cost_classes instead of
3458         cost_classes.
3459         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
3460         (find_costs_and_classes): Set up cost classes for each registers.
3461         Use also their mode for this.  Use regno_cost_classes instead of
3462         cost_classes.
3463         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
3464         cost_classes.
3465         (free_ira_costs, ira_init_costs): Don't use cost_classes.
3466         (ira_costs, ira_set_pseudo_classes): Call
3467         initiate_regno_cost_classes and finish_regno_cost_classes.
3469         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
3471         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
3473         * target.def (ira_cover_classes): Remove.
3475         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
3477         * doc/tm.texi.in: Ditto.
3479         * ira-conflicts.c: Remove mentioning cover classes from the file.
3480         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
3481         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
3483         * targhooks.c (default_ira_cover_classes): Remove.
3485         * targhooks.h (default_ira_cover_classes): Ditto.
3487         * haifa-sched.c: Remove mentioning cover classes from the file.
3488         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
3489         ira_pressure_classes and ira_pressure_classes_num instead of
3490         ira_reg_class_cover_size and ira_reg_class_cover.  Use
3491         sched_regno_pressure_class instead of sched_regno_cover_class.
3492         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
3493         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3495         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
3496         classes from the file.
3497         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
3498         (struct object_hard_regs, struct object_hard_regs_node): New.
3499         (struct ira_object): New members profitable_hard_regs,
3500         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
3501         (struct ira_allocno): Rename cover_class to aclass.  Rename
3502         cover_class_cost and updated_cover_class_cost to class_cost and
3503         updated_class_cost.  Remove splay_removed_p and
3504         left_conflict_size.  Add new members colorable_p.
3505         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
3506         (ALLOCNO_COLORABLE_P): New macro.
3507         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
3508         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
3509         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
3510         (OBJECT_...): Rename parameter C to O.
3511         (OBJECT_PROFITABLE_HARD_REGS): New macro.
3512         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
3513         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
3514         (struct target_ira_int): New members x_ira_max_memory_move_cost,
3515         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
3516         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
3517         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
3518         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
3519         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
3520         x_ira_reg_class_subunion.
3521         (ira_max_memory_move_cost, ira_max_register_move_cost)
3522         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
3523         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
3524         (ira_important_class_nums, ira_reg_class_superunion): New macros.
3525         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
3526         (ira_reg_class_union): Rename to ira_reg_class_subunion.
3527         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3528         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3529         (ira_tune_allocno_costs_and_cover_classes): Rename to
3530         ira_tune_allocno_costs.
3531         (ira_debug_hard_regs_forest): New.
3532         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
3533         (ira_object_conflict_iter_next): Fix comments.
3534         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
3535         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
3536         cover_class to aclass.
3537         (ira_allocate_and_accumulate_costs): Ditto.
3538         (ira_allocate_and_set_or_copy_costs): Ditto.
3540         * opts.c (decode_options): Remove ira_cover_class check.
3542         * ira-color.c: Remove mentioning cover classes from the file.  Use
3543         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
3544         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
3545         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
3546         (splay-tree.h): Remove include.
3547         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
3548         before copy_freq_compare_func.
3549         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
3550         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
3551         New definitions.
3552         (hard_regs_roots, hard_regs_node_vec): Ditto.
3553         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
3554         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
3555         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
3556         (create_new_object_hard_regs_node): Ditto.
3557         (add_new_object_hard_regs_node_to_forest): Ditto.
3558         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
3559         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
3560         Ditto.
3561         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
3562         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
3563         (remove_unused_object_hard_regs_nodes): Ditto.
3564         (enumerate_object_hard_regs_nodes): Ditto.
3565         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
3566         (object_hard_regs_subnode_t): Ditto.
3567         (struct object_hard_regs_subnode): Ditto.
3568         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
3569         (setup_object_hard_regs_subnode_index): Ditto.
3570         (get_object_hard_regs_subnodes_num): Ditto.
3571         (form_object_hard_regs_nodes_forest): Ditto.
3572         (finish_object_hard_regs_nodes_tree): Ditto.
3573         (finish_object_hard_regs_nodes_forest): Ditto.
3574         (allocnos_have_intersected_live_ranges_p): Rename to
3575         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
3576         (pseudos_have_intersected_live_ranges_p): Rename to
3577         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
3578         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
3579         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
3580         (update_copy_costs): Remove assert.  Skip cost update if the hard
3581         reg does not belong the class.
3582         (assign_hard_reg): Process only profitable hard regs.
3583         (uncolorable_allocnos_num): Make it scalar.
3584         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3585         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
3586         and ira_reg_class_max_nregs.
3587         (bucket_allocno_compare_func): Check frequency first.
3588         (sort_bucket): Add compare function as a parameter.
3589         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
3590         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
3591         (push_allocno_to_stack): Rewrite for checking new allocno
3592         colorability.
3593         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
3594         (push_only_colorable): Pass new parameter to sort_bucket.
3595         (push_allocno_to_spill): Remove.
3596         (allocno_spill_priority_compare): Make it inline and rewrite.
3597         (splay_tree_allocate, splay_tree_free): Remove.
3598         (allocno_spill_sort_compare): New function.
3599         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
3600         build and use splay tree.  Choose first allocno in uncolorable
3601         allocno bucket to spill.  Remove setting spill cost.
3602         (all_conflicting_hard_regs): Remove.
3603         (setup_allocno_available_regs_num): Check only profitable hard
3604         regs.  Print info about hard regs nodes.
3605         (setup_allocno_left_conflicts_size): Remove.
3606         (put_allocno_into_bucket): Don't call
3607         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
3608         (improve_allocation): New.
3609         (color_allocnos): Call setup_profitable_hard_regs,
3610         form_object_hard_regs_nodes_forest, improve_allocation,
3611         finish_object_hard_regs_nodes_forest.  Setup spill cost.
3612         (print_loop_title): Use pressure classes.
3613         (color_allocnso): Ditto.
3614         (do_coloring): Remove allocation and freeing splay_tree_node_pool
3615         and allocnos_for_spilling.
3616         (ira_sort_regnos_for_alter_reg): Don't setup members
3617         {first,next}_coalesced_allocno.
3618         (color): Remove allocating and freeing removed_splay_allocno_vec.
3619         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
3620         prohibited_class_mode_regs.
3622         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
3623         formatting.
3624         (update_allocno_pressure_excess_length): Use pressure classes.
3625         (inc_register_pressure, dec_register_pressure): Check for pressure
3626         class.
3627         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
3628         pressure class.  Use ira_reg_class_nregs instead of
3629         ira_reg_class_max_nregs.
3630         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
3631         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
3632         (single_reg_class): Use ira_reg_class_nregs instead of
3633         ira_reg_class_max_nregs.
3634         (process_bb_node_lives): Use pressure classes.
3636         * ira-emit.c: Remove mentioning cover classes from the file.  Use
3637         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
3638         (change_loop): Use pressure classes.
3639         (modify_move_list): Call ira_set_allocno_class instead of
3640         ira_set_allocno_cover_class.
3642         * ira-build.c: Remove mentioning cover classes from the file.  Use
3643         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
3644         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
3645         ALLOCNO_UPDATED_CLASS_COST instead of
3646         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
3647         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
3648         (ira_create_allocno): Remove initialization of
3649         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
3650         ALLOCNO_COLORABLE_P.
3651         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3652         Update conflict regs for the objects.
3653         (create_cap_allocno): Remove assert.  Don't propagate
3654         ALLOCNO_AVAILABLE_REGS_NUM.
3655         (ira_free_allocno_costs): New function.
3656         (finish_allocno): Change a part of code into call of
3657         ira_free_allocno_costs.
3658         (low_pressure_loop_node_p): Use pressure classes.
3659         (object_range_compare_func): Don't compare classes.
3660         (setup_min_max_conflict_allocno_ids): Ditto.
3662         * loop-invariant.c: Remove mentioning cover classes from the file.
3663         Use ira_pressure_classes and ira_pressure_classes_num instead of
3664         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
3665         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
3666         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3667         Use reg_allocno_class instead of reg_cover_class.
3668         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
3669         STACK_REG_COVER_CLASS.
3670         (get_regno_cover_class): Rename to get_regno_pressure_class.
3671         (move_loop_invariants): Initialize and finalize regstat.
3673         * ira.c: Remove mentioning cover classes from the file.  Add
3674         comments about coloring without cover classes.  Use ALLOCNO_CLASS
3675         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
3676         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
3677         setup_class_subset_and_memory_move_costs.
3678         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
3679         (setup_cover_and_important_classes): Rename to
3680         setup_allocno_and_important_classes.
3681         (setup_class_translate_array): New.
3682         (setup_class_translate): Call it for allocno and pressure classes.
3683         (cover_class_order): Rename to allocno_class_order.
3684         (comp_reg_classes_func): Use ira_allocno_class_translate instead
3685         of ira_class_translate.
3686         (reorder_important_classes): Set up ira_important_class_nums.
3687         (setup_reg_class_relations): Set up ira_reg_class_superunion.
3688         (print_class_cover): Rename to print_classes.  Add parameter.
3689         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3690         Print pressure classes too.
3691         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
3692         setup_reg_subclasses.
3693         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3694         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3695         (setup_prohibited_class_mode_regs): Use
3696         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
3697         (clarify_prohibited_class_mode_regs): New function.
3698         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
3699         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
3700         (ira_init_once): Initialize them.
3701         (free_register_move_costs): Process them.
3702         (ira_init): Move calls of find_reg_classes and
3703         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
3704         Call clarify_prohibited_class_mode_regs.
3705         (ira_no_alloc_reg): Remove.
3706         (too_high_register_pressure_p): Use pressure classes.
3708         * sched-deps.c: Remove mentioning cover classes from the file.
3709         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
3710         ira_pressure_classes and ira_pressure_classes_num instead of
3711         ira_reg_class_cover_size and ira_reg_class_cover.
3712         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
3713         sched_regno_pressure_class instead of sched_regno_cover_class.
3714         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
3715         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3717         * ira.h: Add 2010 to Copyright.
3718         (ira_no_alloc_reg): Remove external.
3719         (struct target_ira): Rename x_ira_hard_regno_cover_class,
3720         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
3721         x_ira_class_translate to x_ira_hard_regno_allocno_class,
3722         x_ira_allocno_classes_num, x_ira_allocno_classes, and
3723         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
3724         x_ira_pressure_classes, x_ira_pressure_class_translate, and
3725         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
3726         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
3727         x_ira_no_alloc_regs.
3728         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3729         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
3730         ira_allocno_classes_num and ira_allocno_classes.
3731         (ira_class_translate): Rename to ira_allocno_class_translate.
3732         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
3733         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
3734         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3735         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
3736         (ira_no_alloc_regs): New.
3738         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
3739         classes from the file.  Use ALLOCNO_CLASS instead of
3740         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
3741         ALLOCNO_COVER_CLASS_COST.
3742         (regno_cover_class): Rename to regno_aclass.
3743         (record_reg_classes): Use ira_reg_class_subunion instead of
3744         ira_reg_class_union.
3745         (record_address_regs): Check overflow.
3746         (scan_one_insn): Ditto.
3747         (print_allocno_costs): Print total mem cost fore regional allocation.
3748         (print_pseudo_costs): Use REG_N_REFS.
3749         (find_costs_and_classes): Use classes intersected with them on the
3750         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
3751         ira_reg_class_union.  Use ira_allocno_class_translate and
3752         regno_aclass instead of ira_class_translate and regno_cover_class.
3753         Modify code for finding regno_aclass.  Setup preferred classes for
3754         the next pass.
3755         (setup_allocno_cover_class_and_costs): Rename to
3756         setup_allocno_class_and_costs.  Use regno_aclass instead of
3757         regno_cover_class.  Use ira_set_allocno_class instead of
3758         ira_set_allocno_cover_class.
3759         (init_costs, finish_costs): Use regno_aclass instead of
3760         regno_cover_class.
3761         (ira_costs): Use setup_allocno_class_and_costs instead of
3762         setup_allocno_cover_class_and_costs.
3763         (ira_tune_allocno_costs_and_cover_classes): Rename to
3764         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
3765         by processing objects.  Use ira_reg_class_max_nregs instead of
3766         ira_reg_class_nregs.
3768         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
3770         * sched-int.h: Remove mentioning cover classes from the file.
3771         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
3773         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
3774         classes from the file.
3775         (struct reg_pref): Rename coverclass into allocnoclass.
3776         (reg_cover_class): Rename to reg_allocno_class.
3778         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
3780         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
3782         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3784         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
3786         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
3788         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
3790         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
3792         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
3794         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
3796         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
3798         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
3799         (i386_ira_cover_classes): Ditto.
3801         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3803         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
3805         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
3807         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
3809         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
3811         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
3813         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
3814         (mips_ira_cover_classes): Ditto.
3816         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
3818         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
3820         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
3822         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
3824         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
3826         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
3827         (IRA_COVER_CLASSES_VSX): Ditto.
3829         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
3830         (rs6000_ira_cover_classes): Ditto.
3832         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
3834         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
3836         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
3838         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
3840         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
3842         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
3844         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
3846         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
3848         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
3850         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
3852 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
3854         PR debug/48253
3855         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
3856         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
3857         dw_fde_unlikely_section_end_label, cold_in_std_section,
3858         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
3859         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
3860         fields.
3861         (output_fde): Use dw_fde_second_{begin,end} if second is
3862         true, otherwise dw_fde_{begin,end}.
3863         (output_call_frame_info): Test dw_fde_second_begin != NULL
3864         instead of dw_fde_switched_sections.
3865         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
3866         fields, initialize new fields.  Initialize in_std_section
3867         unconditionally from the first partition.
3868         (dwarf2out_end_epilogue): Don't override dw_fde_end when
3869         dw_fde_second_begin is non-NULL.
3870         (dwarf2out_switch_text_section): Stop initializing removed
3871         dw_fde_struct fields, initialize new fields, initialize
3872         also dw_fde_end here.  Set dw_fde_switch_cfi even when
3873         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
3874         (struct var_loc_list_def): Add last_before_switch field.
3875         (arange_table, arange_table_allocated, arange_table_in_use,
3876         ARANGE_TABLE_INCREMENT, add_arange): Removed.
3877         (size_of_aranges): Count !in_std_section and !second_in_std_section
3878         hunks in fdes, instead of looking at arange_table_in_use.
3879         (output_aranges): Add aranges_length argument, don't call
3880         size_of_aranges here.  Instead of using aranges_table*
3881         emit ranges for fdes when !in_std_section resp.
3882         !second_in_std_section.
3883         (dw_loc_list): Break ranges crossing section switch.
3884         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
3885         use dw_fde_second_end instead of dw_fde_end as end of last range.
3886         (gen_subprogram_die): Don't call add_arange.  Use
3887         dw_fde_{begin,end} for first partition and if switched
3888         section dw_fde_second_{begin,end} for the second.
3889         (var_location_switch_text_section_1,
3890         var_location_switch_text_section): New functions.
3891         (dwarf2out_begin_function): Initialize cold_text_section even
3892         when function_section () isn't text_section.
3893         (prune_unused_types): Don't walk arange_table.
3894         (dwarf2out_finish): Don't needlessly test
3895         flag_reorder_blocks_and_partition when testing cold_text_section_used.
3896         If info_section_emitted, call size_of_aranges and if it indicates
3897         non-empty .debug_aranges, call output_aranges with the computed
3898         size.  Stop using removed dw_fde_struct fields, use
3899         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
3900         for second.
3902         PR debug/48203
3903         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
3904         create ENTRY_VALUE if incoming or address of incoming's MEM
3905         is a hard REG.
3906         * dwarf2out.c (mem_loc_descriptor): Don't emit
3907         DW_OP_GNU_entry_value of DW_OP_fbreg.
3908         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
3909         on ENTRY_VALUE is able to find the canonical parameter VALUE.
3910         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
3911         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
3912         ENTRY_VALUE_EXPs.
3913         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
3914         is a REG_P or MEM_P with REG_P address, compute hash directly
3915         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
3916         (preserve_only_constants): Don't clear VALUES forwaring
3917         ENTRY_VALUE to some other VALUE.
3919 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
3921         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
3922         instead of GEN_INT.
3924 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
3926         * cfgexpand.c (expand_gimple_cond): Always set the source location and
3927         block before expanding the statement.
3928         (expand_gimple_stmt_1): Likewise.  Set them here...
3929         (expand_gimple_stmt): ...and not here.  Tidy.
3930         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
3931         unknown.
3933 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
3935         * Makefile.in: New rule for cprop.o.
3936         * gcse.c: Move constant/copy propagation to cprop.c.
3937         (compute_local_properties): Only handle expression tables.
3938         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
3939         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
3940         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
3941         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
3942         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
3943         compute_cprop_data, find_used_regs, try_replace_reg,
3944         find_avail_set, cprop_jump, constprop_register, cprop_insn,
3945         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
3946         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
3947         find_bypass_set, reg_killed_on_edge, bypass_block,
3948         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
3949         execute_rtl_cprop, pass_rtl_cprop): Move to...
3950         * cprop.c: ...here.  New file, constant/copy propagation for RTL
3951         moved from gcse.c to here with minor cleanups in duplicated code.
3953 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
3955         * config/i386/i386.c (flag_opts): Fix a typo in
3956         -mavx256-split-unaligned-store.
3958 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
3960         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3961         LIBCALL_VALUE): Remove macros.
3962         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3963         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3964         (h8300_function_value, h8300_libcall_value,
3965         h8300_function_value_regno_p): New functions.
3967 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
3969         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
3971 2011-03-28  Jeff Law  <law@redhat.com>
3973         * tree-ssa-threadupdate.c (redirect_edges): Call
3974         create_edge_and_update_destination_phis as needed.
3975         (create_edge_and_update_destination_phis): Accept new BB argument.
3976         All callers updated.
3977         (thread_block): Do not update the profile when threading around
3978         intermediate blocks.
3979         (thread_single_edge): Likewise.
3980         (determine_bb_domination_status): If BB is not a successor of the
3981         loop header, return NONDOMINATING.
3982         (register_jump_thread): Note when we register a jump thread around
3983         an intermediate block.
3984         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
3985         (thread_across_edge): Use it.
3987 2011-03-28  Tristan Gingold  <gingold@adacore.com>
3989         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
3990         when for_return is 2.
3992 2011-03-28  Jeff Law  <law@redhat.com>
3994         * var-tracking.c (canonicalize_values_mark): Delete unused
3995         lhs assignment.
3996         (canonicalize_values_star, set_variable_part): Likewise.
3997         (clobber_variable_part, delete_variable_part): Likewise.
3999 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4001         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4003 2011-03-28  Martin Jambor  <mjambor@suse.cz>
4005         * tree-inline.c (expand_call_inline): Do not check that destination
4006         node is analyzed.
4007         (optimize_inline_calls): Assert that destination node is analyzed.
4008         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4009         not call tree_lowering_passes.
4010         * cgraph.h (cgraph_analyze_function): Declare.
4011         * cgraphunit.c (cgraph_analyze_function): Make public.
4013 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
4015         * config/sparc/sparc-opts.h: New.
4016         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4017         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4018         (sparc_option_override): Store processor_type enumeration rather
4019         than string in cpu_default.  Remove name and enumeration from
4020         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
4021         without using sparc_select.  Use target_flags_explicit instead of
4022         fpu_option_set.
4023         * config/sparc/sparc.h (enum processor_type): Move to
4024         sparc-opts.h.
4025         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4026         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4027         HeaderInclude entry.
4028         (mcpu=, mtune=): Use Var and Enum.
4029         (sparc_processor_type): New Enum and EnumValue entries.
4031 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4032             Iain Sandoe  <iains@gcc.gnu.org>
4034         PR target/48245
4035         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4037 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4039         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4040         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4041         Insert new statements at it in lieu of STMT.
4042         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4043         * tree-vect-stmts.c (vectorizable_store): Likewise.
4044         (vectorizable_load): Likewise.
4046 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
4048         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4049         (divtf3): Ditto.
4050         (multf3): Ditto.
4051         (subtf3): Ditto.
4053 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4055         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4056         unaligned 256bit load/store.
4057         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4058         (*avx_movdqu<avxmodesuffix>): Likewise.
4060 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4062         PR target/48288
4063         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4064         * config/pa/pa.md (iordi3): Use new predicate in expander.
4065         (iorsi3): Likewise.
4067 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
4069         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4070         FUNCTION_VALUE_REGNO_P): Remove macros.
4071         * config/mips/mips-protos.h (mips_function_value): Remove.
4072         * config/mips/mips.c (mips_function_value): Rename to...
4073         (mips_function_value_1): ... this. Make static.  Handle receiving
4074         the function type in 'fn_decl_or_type' argument.
4075         (mips_function_value, mips_libcall_value,
4076         mips_function_value_regno_p): New function.
4077         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4078         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4080 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4082         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4083         and -mavx256-split-unaligned-store.
4084         (ix86_option_override_internal): Split 32-byte AVX unaligned
4085         load/store by default.
4086         (ix86_avx256_split_vector_move_misalign): New.
4087         (ix86_expand_vector_move_misalign): Use it.
4089         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4090         -mavx256-split-unaligned-store.
4092         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4093         256bit load/store.  Generate unaligned store on misaligned memory
4094         operand.
4095         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4096         256bit load/store.
4097         (*avx_movdqu<avxmodesuffix>): Likewise.
4099         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4100         -mavx256-split-unaligned-store.
4102 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4104         PR target/38598
4105         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4106         Update commentary.
4108 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4110         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4111         opno arguments with an expand_operand.  Use create_input_operand.
4112         (mips_prepare_builtin_target): Delete.
4113         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4114         functions.
4115         (mips_expand_builtin_direct): Use create_output_operand and
4116         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
4117         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
4118         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4120 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
4122         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4123         function.
4124         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4126 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
4128         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4129         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
4130         basic blocks and call commit_edge_insertions directly.
4131         (fixup_abnormal_edges): Move from here to...
4132         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
4133         on the edges and return whether some have actually been inserted.
4134         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4135         compensation code.
4137 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
4139         PR rtl-optimization/48144
4140         * sel-sched-ir.c (merge_history_vect): Factor out from ...
4141         (merge_expr_data): ... here.
4142         (av_set_intersect): Rename to av_set_code_motion_filter.
4143         Update all callers.  Call merge_history_vect when an expression
4144         is found in both sets.
4145         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4147 2011-03-26  Alan Modra  <amodra@gmail.com>
4149         * config/rs6000/predicates.md (word_offset_memref_op): Handle
4150         cmodel medium addresses.
4151         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4152         64-bit gpr loads and stores.
4153         (rs6000_secondary_reload_ppc64): New function.
4154         * config/rs6000/rs6000-protos.h: Declare it.
4155         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4157 2011-03-26  Alan Modra  <amodra@gmail.com>
4159         PR target/47487
4160         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4161         GNU Go in traceback table.
4163 2011-03-25  Richard Henderson  <rth@redhat.com>
4165         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4166         if there are exactly 6 operands.
4167         (set_storage_via_setmem): Similarly.
4169 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4171         * collect2.c (write_c_file_stat): Handle backslash
4172         as right-hand directory separator.
4173         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4174         checking just for slash.
4175         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4176         instead of checking for trailing slash.
4177         * gcc.c (record_temp_file): Use filename_cmp instead
4178         of strcmp.
4179         (do_spec_1): Likewise.
4180         (replace_outfile_spec_function): Likewise.
4181         (is_directory): Use filename_ncmp instead of strncmp.
4182         (print_multilib_info): Likewise.
4183         * gcov.c (find_source): Use filename_cmp instead
4184         instead of strcmp.
4185         (make_gcov_file_name): Fix order of slash/backslash
4186         checks.
4187         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4188         (add_standard_paths): Likewise.
4189         * mips-tfile.c (saber_stop): Handle backslash.
4190         * prefix.c (update_path): Use filename_ncmp instead of
4191         strncmp.
4192         * profile.c (output_location): Use filename_cmp instead
4193         of strcmp.
4194         * read-md.c (handle_toplevel_file): Handle backslash.
4195         * tlink.c (frob_extension):  Likewise.
4196         * tree-cfg.c (same_line_p): Use filename_cmp instead of
4197         strcmp.
4198         * tree-dump.c (dequeue_and_dump): Handle backslash.
4199         * tree.c (get_file_function_name): Likewise.
4200         * gengtype.c (read_input_list): Likewise.
4201         (get_file_realbasename): Likewise.
4202         (get_output_file_with_visibility): Use filename_cmp
4203         instead of strcmp.
4205 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
4207         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4208         case to VFPv1.
4210 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4212         * fold-const.c (expr_location_or): New function.
4213         (fold_truth_not_expr): Call it.
4215 2011-03-25  Jeff Law  <law@redhat.com>
4217         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4218         va_end.
4219         * c-family/c-common.c (def_fn_type): Likewise.
4220         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4221         * emit-rtl.c (gen_rtvec): Likewise.
4222         * lto/lto-lang.c (def_fn_type): Likewise.
4224 2011-03-25  Richard Guenther  <rguenther@suse.de>
4226         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4227         also generate copies.
4228         (fini_copy_prop): Handle constant values properly.
4230 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
4232         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4233         mode size instead of bitsize with DWARF2_ADDR_SIZE.
4234         (hash_loc_operands, compare_loc_operands): Handle
4235         DW_OP_GNU_entry_value.
4237 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4239         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4240         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4241         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4242         comment and use macro TARGET_64BIT_MS_ABI instead.
4243         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4244         and change default behavior for 32-bit MS_ABI.
4245         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4246         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4247         32-bit, too.
4248         (ix86_cfun_abi): Likewise.
4249         (ix86_maybe_switch_abi): Adjust comment.
4250         (init_cumulative_args): Check for bit-ness in MS_ABI case.
4251         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4252         instead of checking for SYSV_ABI.
4253         (ix86_nsaved_sseregs): Likewise.
4254         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
4255         to 16 bytes.
4256         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
4257         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
4258         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
4259         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
4260         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
4262 2011-03-25  Richard Guenther  <rguenther@suse.de>
4264         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
4265         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4266         (verify_gimple): Remove.
4267         * tree-cfg.c (verify_gimple_call): Merge verification
4268         from verify_stmts.
4269         (verify_gimple_phi): Merge verification from verify_stmts.
4270         (verify_gimple_label): New function.
4271         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
4272         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4273         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
4274         (verify_stmts): Rename to verify_gimple_in_cfg.
4275         (verify_gimple_in_cfg): New function.
4276         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
4277         * tree-ssa.c (verify_ssa): Likewise.
4278         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
4280 2011-03-25  Richard Guenther  <rguenther@suse.de>
4282         * passes.c (init_optimization_passes): Add FRE pass after
4283         early SRA.
4285 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
4286             Andrew Stubbs  <ams@codesourcery.com>
4288         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
4289         for Cortex-A8.
4290         (arm_movdi_vfp_cortexa8): New pattern.
4291         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
4292         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
4293         instructions when tuning for Cortex-A8.  Set attribute "arch".
4294         * config/arm/arm.md: Move include arm-tune.md up a bit.
4295         (define_attr "arch"): Add "onlya8" and "nota8" values.
4296         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
4298 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4300         PR bootstrap/48282
4301         Revert:
4302         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4304         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4305         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
4306         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4307         * passes.c (init_optimization_passes): Move
4308         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4310 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4312         * c-typeck.c (comptypes_internal): Replace target
4313         hook call of comp_type_attributes by version in tree.c file.
4314         * gimple.c (gimple_types_compatible_p_1): Likewise.
4315         * tree-ssa.c (useless_type_conversion_p): Likewise.
4316         * tree.c (build_type_attribute_qual_variant): Likewise.
4317         (attribute_value_equal): New static helper function.
4318         (comp_type_attributes): New function.
4319         (merge_attributes): Use attribute_value_equal for comparison.
4320         (attribute_list_contained): Likewise.
4321         * tree.h (comp_type_attributes): New prototype.
4323 2011-03-25  Richard Guenther  <rguenther@suse.de>
4325         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
4326         of complex types at -O0.
4327         (verify_gimple_assign_binary): Likewise.
4328         (verify_gimple_assign_ternary): Likewise.
4330 2011-03-24  Mark Wielaard  <mjw@redhat.com>
4332         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
4333         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4335 2011-03-24  Mark Wielaard  <mjw@redhat.com>
4337         PR debug/48041
4338         * dwarf2out.c (output_abbrev_section): Only write table when
4339         abbrev_die_table_in_use > 1.
4341 2011-02-24  Richard Henderson  <rth@redhat.com>
4343         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
4344         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
4345         (alpha_expand_unaligned_load_words): Use extql.
4346         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
4347         (emit_insxl): Handle all modes for consistency.
4349 2011-02-24  Richard Henderson  <rth@redhat.com>
4351         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
4352         (alpha_expand_unaligned_load): Likewise.
4353         (alpha_expand_unaligned_store): Likewise.
4354         (alpha_expand_unaligned_load_words): Likewise.
4355         (alpha_expand_unaligned_store_words): Likewise.
4356         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
4357         (alpha_split_lock_test_and_set_12): Likewise.
4358         (print_operand, alpha_fold_builtin_extxx): Likewise.
4359         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
4360         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
4361         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
4362         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
4363         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
4364         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
4365         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
4366         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
4367         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
4368         (extwl, extll, extql): Similarly.
4369         (inswh, inslh, insqh): Similarly.
4370         (mskbl, mskwl, mskll, mskql): Similarly.
4371         (mskwh, msklh, mskqh): Similarly.
4373 2011-02-24  Richard Henderson  <rth@redhat.com>
4375         * config/alpha/alpha.md (attribute isa): Add er, ner.
4376         (attribute enabled): Handle them.
4377         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
4379 2011-02-24  Richard Henderson  <rth@redhat.com>
4381         * config/alpha/alpha.md (attribute isa): Add vms.
4382         (attribute enabled): Handle it.
4383         (*movsf): Merge *movsf_{nofix,fix,nofp}.
4384         (*movdf): Merge *movdf_{nofix,fix,nofp}.
4385         (*movtf): Rename from *movtf_internal for consistency.
4386         (*movsi): Merge with *movsi_nt_vms.
4387         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
4388         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
4389         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
4390         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
4392 2011-02-24  Richard Henderson  <rth@redhat.com>
4394         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
4395         (extendqisi2, extendhisi2): Likewise.
4396         (extendqidi2): Simplify BWX/non-BWX expansions.
4397         (extendhidi2): Similarly.
4399 2011-02-24  Richard Henderson  <rth@redhat.com>
4401         * config/alpha/alpha.md (attribute isa): New.
4402         (attribute enabled): New.
4403         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
4404         (zero_extendqisi2, zero_extendqidi2): Similarly.
4405         (zero_extendhisi2, zero_extendhidi2): Similarly.
4406         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
4408 2011-02-24  Richard Henderson  <rth@redhat.com>
4410         * config/alpha/predicates.md (input_operand): Revert last change;
4411         update comment to mention 32-bit VMS rather than Windows.
4413 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4415         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4416         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
4417         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4418         * passes.c (init_optimization_passes): Move
4419         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4421 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4423         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
4425 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
4427         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
4428         correctly.
4430 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
4432         PR debug/48204
4433         * simplify-rtx.c (simplify_const_unary_operation): Call
4434         real_convert when changing mode class with FLOAT_EXTEND.
4436 2011-03-24  Nick Clifton  <nickc@redhat.com>
4438         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
4439         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4440         * config/rx/rx.c (rx_option_override): Set align_jumps,
4441         align_loops and align_labels if not set by the user.
4442         (rx_align_for_label): New function.
4443         (rx_max_skip_for_label): New function.
4444         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
4445         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
4446         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
4447         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
4448         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
4450 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4452         PR rtl-optimization/48263
4453         * optabs.c (expand_binop_directly): Reinstate convert_modes code
4454         and original commutative_p handling.  Use maybe_gen_insn.
4456 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4458         * reload.c (find_reloads_subreg_address): Add address_reloaded
4459         parameter and return true there if the full address has been
4460         reloaded.
4461         (find_reloads_toplev): Pass address_reloaded flag.
4462         (find_reloads_address_1): Don't use address_reloaded parameter.
4464 2011-03-24  Jeff Law  <law@redhat.com>
4466         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
4467         unused variable "ann".
4468         (remove_unused_locals): Likewise.
4470         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
4471         statement.
4473         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
4474         after it is freed.
4476 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4478         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
4479         for invalid symbolic addresses.
4480         (s390_secondary_reload): Don't use s390_check_symref_alignment for
4481         larl operands.
4483 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4485         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
4486         the argument in calls to fold_truth_not_expr.
4488 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4490         * tree.c (record_node_allocation_statistics): New function.
4491         (make_node_stat, copy_node_stat, build_string): Call it.
4492         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
4493         (build1_stat, build_omp_clause): Likewise.
4495 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4497         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
4498         last commit.
4500 2011-03-24  Richard Guenther  <rguenther@suse.de>
4502         PR tree-optimization/48271
4503         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
4504         blocks that still exist.
4506 2011-03-24  Richard Guenther  <rguenther@suse.de>
4508         PR tree-optimization/48270
4509         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
4510         not free datarefs before ddrs.
4512 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4514         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
4515         from the address built for a reference with variable offset.
4517 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
4519         PR target/48237
4520         * config/i386/i386.md (*movdf_internal_rex64): Do not split
4521         alternatives that can be handled with movq or movabsq insn.
4522         (*movdf_internal): Disable for !TARGET_64BIT.
4523         (*movdf_internal_nointeger): Ditto.
4524         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
4526 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4528         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4529         (FUNCTION_ARG_ADVANCE): Likewise.
4530         * tm.texi.in: Change references to them to hook references.
4531         * tm.texi: Regenerate.
4532         * targhooks.c (default_function_arg): Eliminate check for target macro.
4533         (default_function_incoming_arg): Likewise.
4534         (default_function_arg_advance): Likewise.
4535         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4536         (function_arg_advance): Likewise.
4537         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4539 2011-03-24  Richard Guenther  <rguenther@suse.de>
4541         PR middle-end/48269
4542         * tree-object-size.c (addr_object_size): Do not double-account
4543         for MEM_REF offsets.
4545 2011-03-24  Diego Novillo  <dnovillo@google.com>
4547         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
4548         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
4549         (lto_input_data_block): Move from lto-opts.c.  Make extern.
4550         Update all users.
4551         (lto_input_string): Rename from input_string.  Make extern.
4552         Update all users.
4553         * lto-streamer-out.c (lto_output_string_with_length): Rename from
4554         output_string_with_length.
4555         Output 0 to indicate a non-NULL string.  Update all callers to
4556         not emit 0.
4557         (lto_output_string): Rename from output_string.  Make extern.
4558         Update all users.
4559         (lto_output_decl_state_streams): Make extern.
4560         (lto_output_decl_state_refs): Make extern.
4561         * lto-streamer.h (lto_input_string): Declare.
4562         (lto_input_data_block): Declare.
4563         (lto_output_string): Declare.
4564         (lto_output_string_with_length): Declare.
4565         (lto_output_decl_state_streams): Declare.
4566         (lto_output_decl_state_refs): Declare.
4568 2011-03-24  Richard Guenther  <rguenther@suse.de>
4570         PR tree-optimization/46562
4571         * tree.c (build_invariant_address): New function.
4572         * tree.h (build_invariant_address): Declare.
4573         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
4574         a renamed function moved ...
4575         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
4576         Take valueization callback parameter.
4577         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
4578         * gimple-fold.h: New file.
4579         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
4580         (ccp_fold, fold_const_aggregate_ref,
4581         fold_ctor_reference, fold_nonarray_ctor_reference,
4582         fold_array_ctor_reference, fold_string_cst_ctor_reference,
4583         get_base_constructor): Move ...
4584         * gimple-fold.c: ... here.
4585         (gimple_fold_stmt_to_constant_1): New function
4586         split out from ccp_fold.  Take a valueization callback parameter.
4587         Valueize all operands.
4588         (gimple_fold_stmt_to_constant): New wrapper function.
4589         (fold_const_aggregate_ref_1): New function split out from
4590         fold_const_aggregate_ref.  Take a valueization callback parameter.
4591         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
4592         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
4593         invariant POINTER_PLUS_EXPRs to invariant form.
4594         (vn_valueize): New function.
4595         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
4596         * tree-vrp.c (vrp_valueize): New function.
4597         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
4598         to fold statements to constants.
4599         * tree-ssa-pre.c (eliminate): Properly guard propagation of
4600         function declarations.
4601         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
4602         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
4604 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4606         * config/h8300/predicates.md (jump_address_operand): Fix register
4607         mode check.
4609 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
4611         * doc/invoke.texi (max-stores-to-sink): Document.
4612         * params.h (MAX_STORES_TO_SINK): Define.
4613         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
4614         if either vectorization or if-conversion is disabled.
4615         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
4616         tree-vect-data-refs.c vect_equal_offsets.
4617         (dr_equal_offsets_p): New function.
4618         (find_data_references_in_bb): Remove static.
4619         * tree-data-ref.h (find_data_references_in_bb): Declare.
4620         (dr_equal_offsets_p): Likewise.
4621         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
4622         (vect_drs_dependent_in_basic_block): Update calls to
4623         vect_equal_offsets.
4624         (vect_check_interleaving): Likewise.
4625         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
4626         (cond_if_else_store_replacement): Rename to...
4627         (cond_if_else_store_replacement_1): ... this.  Change arguments and
4628         documentation.
4629         (cond_if_else_store_replacement): New function.
4630         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
4631         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
4633 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
4635         PR target/46934
4636         * config/arm/arm.md (casesi): Use the gen_int_mode() function
4637         to subtract lower bound instead of GEN_INT().
4639 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
4641         PR other/48179
4642         PR other/48221
4643         PR other/48234
4644         * doc/extend.texi (Alignment): Move section to match order in TOC.
4645         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
4646         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
4648 2011-03-23  Jeff Law  <law@redhat.com>
4650         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
4651         before removing the edge.
4653         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
4654         it may have been freed by redirect_branch_edge or
4655         redirect_edge_succ_nodup.
4657 2011-03-23  Richard Guenther  <rguenther@suse.de>
4659         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
4660         (check_va_list_escapes): Likewise.
4661         (check_all_va_list_escapes): Likewise.
4663 2011-03-23  Richard Guenther  <rguenther@suse.de>
4665         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
4666         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
4667         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
4668         (alias.o): Likewise.
4669         (ipa-type-escape.o): Remove.
4670         (ipa-struct-reorg.o): Likewise.
4671         (GTFILES): Remove ipa-struct-reorg.c.
4672         * alias.c: Do not include ipa-type-escape.h.
4673         * tree-ssa-alias.c: Likewise.
4674         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
4675         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
4676         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
4677         and ipa-type-escape passes.
4678         * tree-pass.h (pass_ipa_type_escape): Remove.
4679         (pass_ipa_struct_reorg): Likewise.
4680         * ipa-struct-reorg.h: Remove.
4681         * ipa-struct-reorg.c: Likewise.
4682         * ipa-type-escape.h: Likewise.
4683         * ipa-type-escape.c: Likewise.
4684         * doc/invoke.texi (-fipa-struct-reorg): Remove.
4685         (--param struct-reorg-cold-struct-ratio): Likewise.
4686         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4687         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4688         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
4690 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4692         * config/s390/2084.md: Enable all insn reservations also for z9_ec
4693         cpu attribute value.
4694         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
4695         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
4696         * config/s390/s390.c (processor_flags_table): New constant array.
4697         (s390_handle_arch_option): Remove.
4698         (s390_handle_option): Remove s390_handle_arch_option invocations
4699         and OPT_mwarn_framesize_ handling.
4700         (s390_option_override): Remove s390_handle_arch_option invocation.
4701         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
4702         warnings.
4703         * config/s390/s390.md (cpu attribute): Add z9_ec value.
4704         * config/s390/s390.opt (s390_tune, s390_arch)
4705         (march=): Replace s390_arch_option enum and values with
4706         processor_type.  Set variable name to s390_arch.  Set
4707         initialization value.
4708         (mtune=): Replace s390_arch_option with processor_type.  Set
4709         variable name to s390_tune.  Set initialization value.
4711 2011-03-23  Julian Brown  <julian@codesourcery.com>
4713         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
4714         accesses which are not naturally aligned.
4716 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
4718         PR target/47553
4719         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
4721 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
4723         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
4724         parameter from "int" to "enum insn_code".
4725         (expand_operand_type): New enum.
4726         (expand_operand): New structure.
4727         (create_expand_operand): New function.
4728         (create_fixed_operand, create_output_operand): Likewise
4729         (create_input_operand, create_convert_operand_to): Likewise.
4730         (create_convert_operand_from, create_address_operand): Likewise.
4731         (create_integer_operand): Likewise.
4732         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
4733         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4734         (expand_insn, expand_jump_insn): Likewise.
4735         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
4736         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
4737         (expand_movstr, expand_builtin___clear_cache): Likewise.
4738         (expand_builtin_lock_release): Likewise.
4739         * explow.c (allocate_dynamic_stack_space): Likewise.
4740         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
4741         and use the default handling in that case.
4742         * expmed.c (check_predicate_volatile_ok): Delete.
4743         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
4744         (emit_cstore): Likewise.
4745         * expr.c (emit_block_move_via_movmem): Likewise.
4746         (set_storage_via_setmem, expand_assignment): Likewise.
4747         (emit_storent_insn, try_casesi): Likewise.
4748         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
4749         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
4750         (expand_vec_shift_expr, expand_binop_directly): Likewise.
4751         (expand_twoval_unop, expand_twoval_binop): Likewise.
4752         (expand_unop_direct, emit_indirect_jump): Likewise.
4753         (emit_conditional_move, vector_compare_rtx): Likewise.
4754         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
4755         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
4756         (expand_sync_lock_test_and_set): Likewise.
4757         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
4758         (emit_unop_insn): Likewise.
4759         (expand_copysign_absneg): Change icode to an insn_code.
4760         (create_convert_operand_from_type): New function.
4761         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
4762         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4763         (expand_insn, expand_jump_insn): Likewise.
4764         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
4765         than const_int_operand for operand 2.
4767 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4769         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
4770         if possible.
4772 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
4774         * emit-rtl.c (emit_pattern_before_noloc): New function.
4775         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
4776         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
4777         (emit_pattern_after_noloc): New function.
4778         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
4779         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
4781 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
4783         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
4784         (__ffsDI2): Likewise.
4786 2011-03-22  Richard Henderson  <rth@redhat.com>
4788         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
4789         of !TARGET_ABI_OPEN_VMS.
4790         (alpha_trampoline_init, alpha_start_function): Likewise.
4791         (alpha_expand_epilogue, alpha_file_start): Likewise.
4792         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
4793         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
4794         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
4795         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
4796         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
4798 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4800         * config/s390/s390-opts.h: New.
4801         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
4802         s390_arch_flags, s390_warn_framesize, s390_stack_size,
4803         s390_stack_guard): Remove.
4804         (s390_handle_arch_option): Return void.  Take enum
4805         s390_arch_option value instead of string and searching array.
4806         (s390_handle_option): Don't assert that global structures are in
4807         use.  Access variables via opts pointer.  Use error_at.  Don't use
4808         sscanf for -mstack-guard= or -mstack-size=.  Update call to
4809         s390_handle_arch_option.
4810         (s390_option_override): Update call to s390_handle_arch_option.
4811         (s390_emit_prologue): Use %d format for s390_stack_size in
4812         diagnostic.  Use %wd for HOST_WIDE_INT.
4813         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
4814         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
4815         * config/s390/s390.opt (config/s390/s390-opts.h): New
4816         HeaderInclude entry.
4817         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
4818         s390_arch_flags, s390_warn_framesize): New Variable entries.
4819         (s390_arch_option): New Enum and EnumValue entries.
4820         (march=): Use Enum instead of Var.
4821         (mstack-guard=, mstack-size=): Use UInteger and Var.
4822         (mtune=): Use Enum.
4824 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4826         * config/score/score.c (score_handle_option): Don't assert that
4827         global structures are in use.  Access target_flags via opts
4828         pointer.  Use value of -march= option to determine target_flags
4829         settings.
4830         * config/score/score.opt (march=): Use Enum.
4831         (score_arch): New Enum and EnumValue entries.
4833 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4835         * config/mep/mep.c (option_mtiny_specified): Remove.
4836         (mep_option_override): Move register handling for -mivc2 from
4837         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
4838         instead of option_mtiny_specified.
4839         (mep_handle_option): Access target_flags via opts pointer.  Don't
4840         assert that global structures are in use.  Defer part of -mivc2
4841         handling and move it to mep_option_override.
4842         * config/mep/mep.opt (IVC2): New Mask entry.
4843         (mivc2): Use Var and Defer instead of Mask.
4845 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4847         * config/v850/v850-opts.h: New.
4848         * config/v850/v850.c (small_memory): Replace with
4849         small_memory_physical_max array.  Make that array static const.
4850         (v850_handle_memory_option): Take integer value of argument.  Take
4851         gcc_options pointer, option text and location.  Return void.
4852         Update for changes to small memory structures.
4853         (v850_handle_option): Access target_flags via opts pointer.  Don't
4854         assert that global structures are in use.  Update calls to
4855         v850_handle_memory_option.
4856         (v850_encode_data_area): Update references to small memory settings.
4857         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4858         (enum small_memory_type): Move to v850-opts.h.
4859         * config/v850/v850.opt (config/v850/v850-opts.h): New
4860         HeaderInclude entry.
4861         (small_memory_max): New Variable entry.
4862         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
4863         (mtda, mzda): Likewise.
4865 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4867         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
4868         pointer.  Don't assert that global structures are in use.
4870 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4872         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
4873         via opts pointer.  Don't assert that global structures are in use.
4875 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4877         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
4878         (munix=93): Use Var.
4879         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
4880         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
4881         * config/pa/pa-opts.h: New.
4882         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
4883         (pa_handle_option): Don't assert that global structures are in
4884         use.  Access target_flags via opts pointer.  Don't handle
4885         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
4886         OPT_munix_98 here.
4887         (pa_option_override): Handle deferred OPT_mfixed_range_.
4889 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4891         * config/mn10300/mn10300-opts.h: New.
4892         * config/mn10300/mn10300.c (mn10300_processor,
4893         mn10300_tune_string): Remove.
4894         (mn10300_handle_option): Don't assert that global structures are
4895         in use.  Access mn10300_processor via opts pointer.  Don't handle
4896         OPT_mtune_ here.
4897         * config/mn10300/mn10300.h (enum processor_type): Move to
4898         mn10300-opts.h.
4899         (mn10300_processor): Remove.
4900         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
4901         HeaderInclude entry.
4902         (mn10300_processor): New Variable entry.
4903         (mtune=): Use Var.
4905 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4907         * config/microblaze/microblaze.c: Don't include opts.h.
4908         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
4909         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
4910         (mno-clearbss): Use Var and Warn.
4912 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4914         * config/m32r/m32r-opts.h: New.
4915         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
4916         (m32r_handle_option): Don't assert that global structures are in
4917         use.  Access target_flags and m32r_cache_flush_func via opts
4918         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
4919         OPT_mno_flush_trap here.
4920         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
4921         include of m32r-opts.h.
4922         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
4923         HeaderInclude entry.
4924         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
4925         (mmodel=): Use Enum and Var.
4926         (m32r_model): New Enum and EnumValue entries.
4927         (mno-flush-trap): Use Var.
4928         (msdata=): Use Enum and Var.
4929         (m32r_sdata): New Enum and EnumValue entries.
4931 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4933         * config/m32c/m32c.c: Don't include opts.h.
4934         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
4935         m32c_handle_option): Remove.
4936         (m32c_option_override): Check global_options_set.x_target_memregs
4937         instead of target_memregs_set.
4938         * config/m32c/m32c.h (target_memregs): Remove.
4939         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
4940         variable.
4942 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4944         * config/iq2000/iq2000-opts.h: New.
4945         * config/iq2000/iq2000.c: Don't include opts.h.
4946         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
4947         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
4948         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
4949         HeaderInclude entry.
4950         (iq2000_tune): New Variable entry.
4951         (march=): Add comment.  Use Enum.
4952         (iq2000_arch): New Enum and EnumValue entries.
4953         (mcpu=): Use Enum and Var.
4954         (iq2000_tune): New Enum and EnumValue entries.
4956 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4958         * config/ia64/ia64-opts.h: New.
4959         * config/ia64/ia64.c (ia64_tune): Remove.
4960         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
4961         here.  Use error_at.
4962         (ia64_option_override): Handle deferred OPT_mfixed_range_.
4963         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
4964         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
4965         HeaderInclude entry.
4966         (ia64_tune): New Variable entry.
4967         (mfixed-range=): Use Defer and Var.
4968         (mtune=): Use Enum and Var.
4969         (ia64_tune): New Enum and EnumValue entries.
4971 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4973         * config/frv/frv-opts.h: New.
4974         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
4975         frv-opts.h.
4976         (frv_cpu_type): Remove.
4977         * config/frv/frv.c: Don't include opts.h.
4978         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
4979         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
4980         (frv_cpu_type): New Variable entry.
4981         (frv_cpu): New Enum and EnumValue entries.
4983 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4985         * config/cris/cris.c (cris_handle_option): Access target_flags via
4986         opts pointer.  Don't assert that global structures are in use.
4987         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
4988         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
4990 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4992         * config/bfin/bfin-opts.h: New.
4993         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
4994         bfin_si_revision, bfin_workarounds): Remove.
4995         (bfin_cpus): Make static const.
4996         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
4997         not bfin_lib_id_given.
4998         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
4999         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5000         pointer. Use error_at.  Don't assert that global structures are in use.
5001         * config/bfin/bfin.h: Include bfin-opts.h.
5002         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5003         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5004         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5005         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5006         entries.
5008 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5010         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5011         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5012         or -msoft-float here.
5013         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5014         -msoft-float and -mhard-float.
5015         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5016         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5017         msoft-float.
5018         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5019         -msoft-float.
5020         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5021         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5022         not mhard-float.
5023         (LIBGCC_SPEC): Don't handle -msoft-float.
5024         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5025         -mhard-float.
5026         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5027         msoft-float.
5028         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5029         -mfloat-abi=*, not -msoft-float and -mhard-float.
5030         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5031         -msoft-float.
5032         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5033         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5034         mhard-float and msoft-float.
5035         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5036         mfloat-abi=soft in comments, not mhard-float and msoft-float.
5037         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5038         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5039         mhard-float.
5040         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5041         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5042         msoft-float.
5043         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5044         not mhard-float.
5045         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5046         not msoft-float.
5048 2011-03-22  Richard Henderson  <rth@redhat.com>
5050         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5051         TARGET_ABI_WINDOWS_NT.
5052         (alpha_output_function_end_prologue): Likewise.
5053         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5054         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5055         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5056         (trap, *movsi_nt_vms): Likewise.
5057         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5058         (*tablejump_osf_nt_internal): Remove.
5059         * config/alpha/predicates.md (input_operand): Only test Pmode.
5061 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5063         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5064         via opts pointer.  Use error_at.  Don't assert that global
5065         structures are in use.
5067 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5069         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5070         (ix86_handle_option): Access ix86_isa_flags and
5071         ix86_isa_flags_explicit via opts pointer.  Don't assert that
5072         global structures are in use.
5073         (ix86_function_specific_save, ix86_function_specific_restore):
5074         Update ix86_isa_flags_explicit field name.
5075         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5076         (ix86_isa_flags_explicit): Rename TargetSave entry to
5077         x_ix86_isa_flags_explicit.
5079 2011-03-22  Richard Henderson  <rth@redhat.com>
5081         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5082         (alpha_option_override, direct_return): Likewise.
5083         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5084         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5085         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5086         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5087         (alpha_expand_epilogue, alpha_end_function): Likewise.
5088         (alpha_init_libfuncs): Likewise.
5089         (struct machine_function): Remove unicosmk members.
5090         (print_operand) ['t']: Remove.
5091         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5092         unicosmk_output_module_name, unicosmk_output_common,
5093         current_section_align, unicosmk_output_text_section_asm_op,
5094         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5095         unicosmk_section_type_flags, unicosmk_unique_section,
5096         unicosmk_asm_named_section, unicosmk_insert_attributes,
5097         unicosmk_output_align, unicosmk_defer_case_vector,
5098         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5099         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5100         unicosmk_output_ssib, unicosmk_add_call_info_word,
5101         unicosmk_extern_head, unicosmk_output_default_externs,
5102         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5103         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5104         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5105         * config/alpha/alpha-protos.h: Update.
5106         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5107         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5108         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5109         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5110         (*mulsi_se, mulvsi3): Likewise.
5111         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5112         (*divmodsi_internal, call, call_value, realign): Likewise.
5113         (moddi3, umoddi3): Likewise; remove duplicate expander.
5114         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5115         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5116         (*movdi_nofix): Remove r/U alternative.
5117         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5118         * config/alpha/constraints.md ("U"): Remove.
5119         * config/alpha/predicates.md (call_operand"): Don't test
5120         TARGET_ABI_UNICOSMK.
5122 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5124         * target.def (handle_option): Take gcc_options and
5125         cl_decoded_option pointers and location_t.
5126         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5127         * doc/tm.texi: Regenerate.
5128         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5129         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5130         * lto-opts.c (lto_reissue_options): Generate option structure for
5131         targetm.handle_option call.
5132         * opts.c (target_handle_option): Update call to
5133         targetm.handle_option.  Remove assertions about values now passed
5134         down to hook.
5135         * targhooks.c (default_target_handle_option): New.
5136         * targhooks.h (default_target_handle_option): Declare.
5137         * config/alpha/alpha.c: Include opts.h.
5138         (alpha_handle_option): Update to new hook interface.
5139         * config/arm/arm.c: Include opts.h.
5140         (arm_handle_option): Update to new hook interface.
5141         * config/arm/t-arm (arm.o): Update dependencies.
5142         * config/bfin/bfin.c: Include opts.h.
5143         (bfin_handle_option): Update to new hook interface.
5144         * config/cris/cris.c: Include opts.h.
5145         (cris_handle_option): Update to new hook interface.
5146         * config/frv/frv.c: Include opts.h.
5147         (frv_handle_option): Update to new hook interface.
5148         * config/i386/i386.c: Include opts.h.
5149         (ix86_handle_option): Update to new hook interface.
5150         (ix86_valid_target_attribute_inner_p): Generate option structure
5151         for call to ix86_handle_option.
5152         * config/i386/t-i386 (i386.o): Update dependencies.
5153         * config/ia64/ia64.c: Include opts.h.
5154         (ia64_handle_option): Update to new hook interface.
5155         * config/ia64/t-ia64 (ia64.o): Update dependencies.
5156         * config/iq2000/iq2000.c: Include opts.h.
5157         (iq2000_handle_option): Update to new hook interface.
5158         * config/m32c/m32c.c: Include opts.h.
5159         (m32c_handle_option): Update to new hook interface.
5160         * config/m32r/m32r.c: Include opts.h.
5161         (m32r_handle_option): Update to new hook interface.
5162         * config/m68k/m68k.c: Include opts.h.
5163         (m68k_handle_option): Update to new hook interface.
5164         * config/mep/mep.c: Include opts.h.
5165         (mep_handle_option): Update to new hook interface.
5166         * config/microblaze/microblaze.c: Include opts.h.
5167         (microblaze_handle_option): Update to new hook interface.
5168         * config/mips/mips.c: Include opts.h.
5169         (mips_handle_option): Update to new hook interface.
5170         * config/mn10300/mn10300.c: Include opts.h.
5171         (mn10300_handle_option): Update to new hook interface.
5172         * config/pa/pa.c: Include opts.h.
5173         (pa_handle_option): Update to new hook interface.
5174         * config/pdp11/pdp11.c: Include opts.h.
5175         (pdp11_handle_option): Update to new hook interface.
5176         * config/rs6000/rs6000.c: Include opts.h.
5177         (rs6000_handle_option): Update to new hook interface.
5178         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5179         * config/rx/rx.c: Include opts.h.
5180         (rx_handle_option): Update to new hook interface.
5181         * config/s390/s390.c: Include opts.h.
5182         (s390_handle_option): Update to new hook interface.
5183         * config/score/score.c: Include opts.h.
5184         (score_handle_option): Update to new hook interface.
5185         * config/sh/sh.c: Include opts.h.
5186         (sh_handle_option): Update to new hook interface.
5187         * config/sparc/sparc.c: Include opts.h.
5188         (sparc_handle_option): Update to new hook interface.
5189         * config/v850/v850.c: Include opts.h.
5190         (v850_handle_option): Update to new hook interface.
5192 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5194         * gcc.c (driver_unknown_option_callback): Only permit and save
5195         unknown -Wno- options.
5196         (driver_wrong_lang_callback): Save options directly instead of via
5197         driver_unknown_option_callback.
5199 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5201         * combine.c (simplify_set): Try harder to find the best CC mode when
5202         simplifying a nested COMPARE on the RHS.
5204 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5206         * config/alpha/gnu.h: Remove.
5207         * config/arc: Remove directory.
5208         * config/arm/netbsd.h: Remove.
5209         * config/arm/t-pe: Remove.
5210         * config/crx: Remove directory.
5211         * config/i386/netbsd.h: Remove.
5212         * config/m68hc11: Remove directory.
5213         * config/m68k/uclinux-oldabi.h: Remove.
5214         * config/mcore/mcore-pe.h: Remove.
5215         * config/mcore/t-mcore-pe: Remove.
5216         * config/netbsd-aout.h: Remove.
5217         * config/rs6000/gnu.h: Remove.
5218         * config/sh/sh-symbian.h: Remove.
5219         * config/sh/symbian-base.c: Remove.
5220         * config/sh/symbian-c.c: Remove.
5221         * config/sh/symbian-cxx.c: Remove.
5222         * config/sh/symbian-post.h: Remove.
5223         * config/sh/symbian-pre.h: Remove.
5224         * config/sh/t-symbian: Remove.
5225         * config/svr3.h: Remove.
5226         * config/vax/netbsd.h: Remove.
5227         * config.build: Don't handle i[34567]86-*-pe.
5228         * config.gcc: Remove handling of deprecations for most deprecated
5229         targets.
5230         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5231         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5232         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5233         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5234         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5235         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5236         Remove cases.
5237         * config.host: Don't handle i[34567]86-*-pe.
5238         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5239         (ASM_SPEC32): Don't handle -mcall-gnu.
5240         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5241         -mcall-gnu.
5242         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5243         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5244         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5245         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5246         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5247         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5248         conditional on SYMBIAN.
5249         * configure.ac: Don't handle powerpc*-*-gnu*.
5250         * configure: Regenerate.
5251         * doc/extend.texi (interrupt attribute): Don't mention CRX.
5252         * doc/install-old.texi (m6811, m6812): Don't mention.
5253         * doc/install.texi (arc-*-elf*): Don't document multilib option.
5254         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
5255         (m68k-uclinuxoldabi): Don't mention.
5256         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
5257         Remove.
5258         (-mcall-gnu): Remove.
5259         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
5260         families): Remove constraint documentation.
5262 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
5264         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
5265         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
5266         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5268 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
5270         * config/avr/avr-protos.h (expand_epilogue): Change prototype
5271         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
5272         * config/avr/avr.c (init_cumulative_args)
5273         (avr_function_arg_advance): Use it.
5274         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
5275         sibcall epilogues.
5276         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
5277         (avr_function_ok_for_sibcall): ...this new function.
5278         (avr_lookup_function_attribute1): New static Function.
5279         (avr_naked_function_p, interrupt_function_p)
5280         (signal_function_p, avr_OS_task_function_p)
5281         (avr_OS_main_function_p): Use it.
5282         * config/avr/avr.md ("sibcall", "sibcall_value")
5283         ("sibcall_epilogue"): New expander.
5284         ("*call_insn", "*call_value_insn"): New insn.
5285         ("call_insn", "call_value_insn"): Remove
5286         ("call", "call_value", "epilogue"): Change expander to handle
5287         sibling calls.
5289 2011-03-21  Nick Clifton  <nickc@redhat.com>
5291         * doc/invoke.texi (Overall Options): Move closing brace to end of
5292         options list.
5293         (Optimization Options): Add missing @gol.
5294         (Directory Options): Likewise.
5295         (i386 and x86-64 Options): Likewise.
5296         (RS6000 and PowerPC Options): Likewise.
5297         (i386 and x86-64 Windows Options): Likewise.
5298         (V850 Options): Add text missing from descriptions.
5300 2011-03-22  Richard Henderson  <rth@redhat.com>
5302         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
5303         (avr_incoming_return_addr_rtx): New.
5304         (emit_push_byte): New.
5305         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
5306         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
5307         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
5308         (emit_pop_byte): New.
5309         (expand_epilogue): Use it.  Pop frame pointer by bytes.
5310         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
5311         (INCOMING_RETURN_ADDR_RTX): New.
5312         (INCOMING_FRAME_SP_OFFSET): New.
5313         (ARG_POINTER_CFA_OFFSET): New.
5314         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
5315         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
5316         (pophi): Remove.
5318         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
5320 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5322         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5323         (FUNCTION_ARG_ADVANCE): Likewise.
5324         * tm.texi.in: Change references to them to hook references.
5325         * tm.texi: Regenerate.
5326         * targhooks.c (default_function_arg): Eliminate check for target
5327         macro.
5328         (default_function_incoming_arg): Likewise.
5329         (default_function_arg_advance): Likewise.
5330         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5331         (function_arg_advance): Likewise.
5332         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5334 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5336         * tree.c (build_call_1): New function.
5337         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
5339 2011-03-22  Richard Guenther  <rguenther@suse.de>
5341         PR tree-optimization/48228
5342         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
5343         for single-arg PHIs.
5345 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
5347         PR rtl-optimization/48143
5348         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
5349         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
5350         sse2_cvtps2pd): Likewise.
5352 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5354         * recog.c (canonicalize_change_group): Use validate_unshare_change.
5356 2011-03-22  Richard Guenther  <rguenther@suse.de>
5358         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
5359         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
5360         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
5361         and REALIGN_LOAD_EXPR.
5362         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
5363         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
5364         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
5365         DOT_PROD_EXPR case ...
5366         (expand_expr_real_2): ... here.
5367         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
5368         and REALIGN_LOAD_EXPR.
5369         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
5370         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
5371         (vect_create_epilog_for_reduction): Likewise.
5372         (vectorizable_reduction): Likewise.
5373         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
5374         * tree-vect-stmts.c (vectorizable_load): Likewise.
5376 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5378         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
5380 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5382         * config/s390/s390.c (s390_delegitimize_address): Fix offset
5383         handling for PLTOFF/GOTOFF.
5385 2011-03-22  Nick Clifton  <nickc@redhat.com>
5387         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
5388         trailing backslash from the end of the macro definition.
5390 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5392         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
5393         and PLT unspecs.
5395 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
5397         * expr.h (prepare_operand): Move to...
5398         * optabs.h (prepare_operand): ...here and change the insn code
5399         parameter from "int" to "enum insn_code".
5400         (insn_operand_matches): Declare.
5401         * expr.c (init_expr_target): Use insn_operand_matches.
5402         (compress_float_constant): Likewise.
5403         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
5404         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
5405         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
5406         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
5407         Likewise.
5408         (gen_cond_trap): Likewise.
5409         (prepare_operand): Likewise.  Change icode to an insn_code.
5410         (insn_operand_matches): New function.
5411         * reload.c (find_reloads_address_1): Use insn_operand_matches.
5412         * reload1.c (gen_reload): Likewise.
5413         * targhooks.c (default_secondary_reload): Likewise.
5415 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
5417         * config/alpha/alpha.md (unspec): New define_c_enum.
5418         (unspecv): Ditto.
5420 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
5422         PR debug/48214
5423         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
5424         between a call and its CALL_ARG_LOCATION note.
5426 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
5428         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
5430 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
5432         PR c/42544
5433         PR c/48197
5434         * c-common.c (shorten_compare): If primopN is first sign-extended
5435         to opN and then zero-extended to result type, set primopN to opN.
5437 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
5439         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
5440         for barrier handlers.
5442 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
5444         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
5445         UNSPEC constants to be in the unspec enumeration, and redefine
5446         all UNSPECV constants to be in the unspecv enumeration, so that
5447         dumps print which unspec/unspec_volatile this is.
5448         * config/rs6000/vector.md (UNSPEC_*): Ditto.
5449         * config/rs6000/paired.md (UNSPEC_*): Ditto.
5450         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
5451         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
5452         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
5454         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
5455         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
5456         UNSPECV_LWSYNC, since these are used as unspec_volatile.
5457         * config/rs6000/sync.md (isync, lwsync): Ditto.
5459 2011-03-21  Richard Guenther  <rguenther@suse.de>
5461         * params.def (lto-min-partition): Fix typo.
5463 2011-03-21  Richard Guenther  <rguenther@suse.de>
5465         PR c/47939
5466         * c-decl.c (grokdeclarator): Drop to the main variant only
5467         for array types.  Drop flag_gen_aux_info check.
5469 2011-03-21  Richard Guenther  <rguenther@suse.de>
5471         PR translation/47911
5472         * params.def (lto-partitions): Fix typo.
5473         (lto-min-partition): Fix wording.
5475 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
5477         * config/rs6000/t-freebsd: Remove duplication from file.
5479 2011-03-21  Richard Guenther  <rguenther@suse.de>
5481         PR middle-end/47661
5482         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
5484 2011-03-21  Richard Guenther  <rguenther@suse.de>
5486         PR lto/48210
5487         * params.def (lto-partitions): Require at least 1 partition.
5489 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5491         * gthr-solaris.h: Remove.
5492         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
5493         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
5494         (LIB_SPEC): Likewise.
5495         * config/sol2.opt (threads): Remove.
5496         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
5497         (sparc*-*-solaris2*): Likewise.
5498         * configure.ac (enable_threads): Enable solaris support.
5499         * configure: Regenerate.
5500         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
5501         * doc/install.texi (Configuration, --enable-threads=lib): Remove
5502         solaris.
5504 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5506         * config.gcc: Obsolete *-*-solaris2.8*.
5507         * doc/install.texi (Specific, *-*-solaris2*): Document it.
5509 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5511         PR bootstrap/48135
5512         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
5513         reference.  Solaris 8 perl works.
5515 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5517         PR bootstrap/48135
5518         * doc/install.texi (Prerequisites): Move jar etc. up.
5519         Explain support library version requirements.
5521 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5523         PR bootstrap/48135
5524         * doc/install.texi (Prerequisites): Move Perl to build
5525         requirements.  Always necessary on Solaris 2 with Sun ld.
5527 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5529         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
5530         binutils 2.21.
5531         (Specific, i?86-*-solaris2.[89]): Likewise.
5532         (Specific, i?86-*-solaris2.10): Likewise.
5533         (Specific, mips-sgi-irix6): Likewise.
5534         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
5535         Update for binutils 2.21.
5537 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5539         * configure.ac (gcc_cv_lto_plugin): Fix typo.
5540         Allow -fuse-linker-plugin for non-default plugin linker.
5541         * configure: Regenerate.
5543 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
5545         PR bootstrap/48167
5546         * gengtype.c (files_rules): Added rule for cp/parser.h.
5548 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
5550         PR target/48213
5551         * config/s390/s390.c (s390_delegitimize_address): Don't call
5552         lowpart_subreg if orig_x has BLKmode.
5554 2011-03-21  Kai Tietz  <ktietz@redhat.com>
5556         PR target/12171
5557         * doc/plugins.texi: Adjust documentation for plugin register_callback.
5558         * tree.h (attribute_spec): Add new member affects_type_identity.
5559         * attribs.c (empty_attribute_table): Adjust attribute_spec
5560         initializers.
5561         * config/alpha/alpha.c: Likewise.
5562         * config/arc/arc.c: Likewise.
5563         * config/arm/arm.c: Likewise.
5564         * config/avr/avr.c: Likewise.
5565         * config/bfin/bfin.c: Likewise.
5566         * config/crx/crx.c: Likewise.
5567         * config/darwin.h: Likewise.
5568         * config/h8300/h8300.c: Likewise.
5569         * config/i386/cygming.h: Likewise.
5570         * config/i386/i386.c: Likewise.
5571         * config/ia64/ia64.c: Likewise.
5572         * config/m32c/m32c.c: Likewise.
5573         * config/m32r/m32r.c: Likewise.
5574         * config/m68hc11/m68hc11.c: Likewise.
5575         * config/m68k/m68k.c: Likewise.
5576         * config/mcore/mcore.c: Likewise.
5577         * config/mep/mep.c: Likewise.
5578         * config/microblaze/microblaze.c: Likewise.
5579         * config/mips/mips.c: Likewise.
5580         * config/rs6000/rs6000.c: Likewise.
5581         * config/rx/rx.c: Likewise.
5582         * config/sh/sh.c: Likewise.
5583         * config/sol2.h: Likewise.
5584         * config/sparc/sparc.c: Likewise.
5585         * config/spu/spu.c: Likewise.
5586         * config/stormy16/stormy16.c: Likewise.
5587         * config/v850/v850.c: Likewise.
5589 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
5591         * simplify-rtx.c (simplify_binary_operation_1): Handle
5592         (xor (and A B) C) case when B and C are both constants.
5594 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
5596         * tree-dfa.c (add_referenced_var): Fix typo in comment.
5598 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
5600         PR bootstrap/48168
5601         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
5603 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
5605         PR rtl-optimization/48156
5606         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
5607         assume df and df_lr are not NULL.
5609 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5611         PR debug/48023
5612         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
5613         between a call and its CALL_ARG_LOCATION note.
5615 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
5617         PR debug/48178
5618         * config/sh/sh.c (find_barrier): Don't emit a constant pool
5619         between a call and its corresponding CALL_ARG_LOCATION note.
5621 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
5623         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
5624         instead of loop. Use HARD_REGISTER_NUM_P predicate.
5625         * haifa-sched.c (setup_ref_regs): Ditto.
5626         * caller-save.c (add_used_regs_1): Ditto.
5627         * dse.c (look_for_hardregs): Ditto.
5628         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
5629         * sched-rgn.c (check_live_1): Ditto.
5631 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
5633         * c-decl.c (diagnose_mismatched_decls): Give an error for
5634         redefining a typedef with variably modified type.
5636 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
5638         * c-decl.c (grokfield): Don't allow typedefs for structures or
5639         unions with no tag by default.
5640         * doc/extend.texi (Unnamed Fields): Update.
5642 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
5644         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5645         Rewrite using indirect functions.
5646         (lwp_slwpcb): Ditto.
5647         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
5648         (avx_vinsertf128<mode>): Ditto.
5650 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5652         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
5653         unspecs.
5655 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5657         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
5658         splitting between a call and its corresponding CALL_ARG_LOCATION note.
5660 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
5662         PR rtl-optimization/48170
5663         * gcse.c (hoist_code): Remove bogus asserts.
5665 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
5667         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
5668         computation for prologue/epilogue.
5670 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5672         * Makefile.in (check-consistency): Remove.
5674 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
5676         PR debug/48176
5677         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
5678         arange_table_in_use is 0, but either text_section_used or
5679         cold_text_section_used is true.  Don't call it if
5680         !info_section_emitted.
5682 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
5684         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
5685         FUNCTION_VALUE_REGNO_P): Remove.
5686         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
5687         Remove.
5688         * config/avr/avr.c (avr_ret_register): Make static inline.
5689         (avr_function_value_regno_p): New function.
5690         (avr_libcall_value): Make static. Add 'func' argument.
5691         (avr_function_value): Make static. Rename 'func' argument to
5692         'fn_decl_or_type', forward it to avr_libcall_value. Call
5693         avr_ret_register function instead of RET_REGISTER macro.
5694         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5696 2011-03-18  Jason Merrill  <jason@redhat.com>
5698         PR c++/23372
5699         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
5701 2011-03-18  Richard Guenther  <rguenther@suse.de>
5703         * doc/install.texi (--enable-gold): Remove.
5704         (--with-plugin-ld): Document.
5705         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
5707 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
5709         PR middle-end/47790
5710         * expr.c (optimize_bitfield_assignment_op): Revamp to work
5711         again after expansion changes.
5713 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
5715         * combine.c (try_combine): Do simplification only call of
5716         subst() on i2 even when i1 is present. Update comments.
5718 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
5720         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
5721         and UNSPEC_PCREL_SYMOFF.
5723 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5725         * config/s390/s390.md: Use define_c_enum for the unspec constant
5726         definitions.
5728 2011-03-18  Richard Henderson  <rth@redhat.com>
5729             Jakub Jelinek  <jakub@redhat.com>
5731         PR bootstrap/48161
5732         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
5733         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
5735 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5737         PR middle-end/47725
5738         * combine.c (cant_combine_insn_p): Don't check zero/sign
5739         extended hard registers.
5741 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5743         PR middle-end/47725
5744         * combine.c (cant_combine_insn_p): Check zero/sign extended
5745         hard registers.
5747 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
5749         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5750         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
5751         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
5752         Change return type to bool.
5753         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5755 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5757         PR debug/48163
5758         * var-tracking.c (prepare_call_arguments): If CALL target
5759         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
5760         pc instead of looking it up using cselib_lookup and use
5761         Pmode for it if x has VOIDmode.
5762         * dwarf2out.c (gen_subprogram_die): If also both first and
5763         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
5765         PR debug/48163
5766         * function.c (assign_parms): For data.passed_pointer parms
5767         use MEM of data.entry_parm instead of data.entry_parm itself
5768         as DECL_INCOMING_RTL.
5769         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
5770         also when passed and declared mode is the same, DECL_RTL
5771         is a MEM with pseudo as address and DECL_INCOMING_RTL is
5772         a MEM too.
5774 2011-03-16  Jeff Law  <law@redhat.com>
5776         PR rtl-optimization/37273
5777         * ira-costs.c (scan_one_insn): Detect constants living in memory and
5778         handle them like argument loads from stack slots.  Do not double
5779         count memory for memory constants and argument loads from stack slots.
5781 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5783         PR debug/48160
5784         * var-tracking.c (prepare_call_arguments): Check SUBREG.
5786 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5788         PR target/48171
5789         * config/i386/i386.opt: Add Save to -mavx and -mfma.
5791 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5793         PR bootstrap/48153
5794         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
5795         if dwarf_strict.
5796         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
5797         Clear call_arg_locations and call_arg_loc_last always.
5799         PR middle-end/48152
5800         * var-tracking.c (prepare_call_arguments): If argument needs to be
5801         passed by reference, adjust argtype and mode.
5803 2011-03-17  Richard Guenther  <rguenther@suse.de>
5805         PR middle-end/48134
5806         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
5807         a value make sure to fold the statement.
5809 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
5811         PR target/43872
5812         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
5813         return condition with !cfun->calls_alloca.
5815 2011-03-17  Richard Guenther  <rguenther@suse.de>
5817         PR bootstrap/48148
5818         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5819         origin for decls in other ltrans units.
5820         (input_varpool_node): Likewise.
5822 2011-03-17  Richard Guenther  <rguenther@suse.de>
5824         PR middle-end/48165
5825         * tree-object-size.c (compute_object_offset): Properly return
5826         the offset operand of MEM_REFs as sizetype.
5828 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5830         PR rtl-optimization/48141
5831         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
5832         * dse.c: Include params.h.
5833         (active_local_stores_len): New variable.
5834         (add_wild_read, dse_step1): Clear it when setting active_local_stores
5835         to NULL.
5836         (record_store, check_mem_read_rtx): Decrease it when removing
5837         from the chain.
5838         (scan_insn): Likewise.  Increase it when adding to chain, if it
5839         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
5840         set active_local_stores to NULL before the addition.
5841         * Makefile.in (dse.o): Depend on $(PARAMS_H).
5843         PR rtl-optimization/48141
5844         * dse.c (record_store): If no positions are needed in an insn
5845         that cannot be deleted, at least unchain it from active_local_stores.
5847 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
5849         PR debug/47510
5850         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
5851         (lookup_type_die_strip_naming_typedef): ... here.
5852         (get_context_die): Use it.
5853         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
5854         the anonymous struct named by the naming typedef.
5856 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5858         PR target/48154
5859         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
5860         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5862 2011-03-16  Jeff Law  <law@redhat.com>
5864         * tree-vrp.c (identify_jump_threads): Slightly simplify type
5865         check for operands of conditional.  Allow type to be a pointer.
5867 2011-03-16  Richard Guenther  <rguenther@suse.de>
5869         PR tree-optimization/48149
5870         * fold-const.c (fold_binary_loc): Fold
5871         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
5873 2011-03-16  Richard Guenther  <rguenther@suse.de>
5875         PR tree-optimization/26134
5876         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
5877         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
5878         (non_rewritable_mem_ref_base): Handle complex type component
5879         accesses, constrain offsets for vector and complex extracts
5880         more properly.
5882 2011-03-16  Richard Guenther  <rguenther@suse.de>
5884         PR tree-optimization/48146
5885         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
5886         operands avoiding the need for renaming.
5888 2011-03-16  Richard Guenther  <rguenther@suse.de>
5890         * gimple-fold.c (maybe_fold_reference): Open-code relevant
5891         constant folding.  Move MEM_REF canonicalization first.
5892         Rely on fold_const_aggregate_ref for initializer folding.
5893         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
5895 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
5897         PR middle-end/48136
5898         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5899         arg0/arg1 or their arguments are always fold converted to matching
5900         types.
5902         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
5903         to nargs.
5905 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5907         PR lto/46944
5908         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
5909         Handle in-tree gold.
5910         (ld_vers): Extract binutils version for gold.
5911         (gcc_cv_ld_hidden): Handle gold here.
5912         (gcc_cv_lto_plugin): Determine level of linker plugin support.
5913         * configure: Regenerate.
5914         * config.in: Regenerate.
5915         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
5916         -fuse-linker-plugin otherwise.
5917         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
5918         (LINK_COMMAND_SPEC): Use it.
5919         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
5921 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
5923         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
5924         * calls.c: Remove debug.h include.
5925         (emit_call_1): Don't call virtual_call_token debug hook.
5926         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
5927         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
5928         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
5929         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
5930         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
5931         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
5932         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
5933         dwarf2out_virtual_call): Remove.
5934         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
5935         copy_call_info and virtual_call hooks.
5936         (dwarf2out_init): Don't initialize vcall_insn_table,
5937         debug_dcall_section and debug_vcall_section.
5938         (prune_unused_types): Don't mark nodes from dcall_table.
5939         (dwarf2out_finish): Don't output dcall or vcall tables.
5940         * final.c (final_scan_insn): Don't call direct_call or
5941         virtual_call debug hooks.
5942         * debug.h (struct gcc_debug_hooks): Remove direct_call,
5943         virtual_call_token, copy_call_info and virtual_call hooks.
5944         (debug_nothing_uid): Remove prototype.
5945         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
5946         copy_call_info and virtual_call hooks.
5947         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5948         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
5949         * debug.c (do_nothing_debug_hooks): Likewise.
5950         (debug_nothing_uid): Remove.
5951         * doc/invoke.texi (-fenable-icf-debug): Remove.
5952         * common.opt (-fenable-icf-debug): Likewise.
5954         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
5955         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
5956         call's MEM.  Handle functions returning aggregate through a hidden
5957         first pointer.  For virtual calls add clobbered pc to call arguments
5958         chain.
5959         * dwarf2out.c (gen_subprogram_die): Emit
5960         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
5961         can't be emitted.
5963         PR debug/45882
5964         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
5965         * rtl.h (ENTRY_VALUE_EXP): Define.
5966         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
5967         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
5968         * print-rtl.c (print_rtx): Likewise.
5969         * gengtype.c (adjust_field_rtx_def): Likewise.
5970         * var-tracking.c (vt_add_function_parameter): Adjust
5971         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
5972         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
5973         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
5974         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
5975         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
5977         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
5978         Call var_location debug hook even on CALL_INSNs.
5979         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
5980         * rtl.def (ENTRY_VALUE): New.
5981         * dwarf2out.c: Include cfglayout.h.
5982         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5983         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
5984         (struct call_arg_loc_node): New type.
5985         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
5986         tail_call_site_count): New variables.
5987         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
5988         DW_TAG_GNU_call_site_parameter.
5989         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
5990         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
5991         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
5992         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
5993         and DW_AT_GNU_all_source_call_sites.
5994         (mem_loc_descriptor): Handle ENTRY_VALUE.
5995         (add_src_coords_attributes): Don't add enything if
5996         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
5997         (dwarf2out_abstract_function): Save and clear call_arg_location,
5998         call_site_count and tail_call_site_count around dwarf2out_decl call.
5999         (gen_call_site_die): New function.
6000         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6001         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6002         (dwarf2out_function_decl): Clear call_arg_locations,
6003         call_arg_loc_last, set call_site_count and tail_call_site_count
6004         to -1 and free block_map.
6005         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6006         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
6007         followed by any real instructions.
6008         (dwarf2out_begin_function): Set call_site_count and
6009         tail_call_site_count to 0.
6010         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6011         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6012         attempt to force a DIE for it and worst case remove the attribute.
6013         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6014         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6015         the decl itself.
6016         * var-tracking.c: Include tm_p.h.
6017         (vt_stack_adjustments): For calls call note_register_arguments.
6018         (argument_reg_set): New variable.
6019         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6020         ensure the VALUE is resolved.
6021         (call_arguments): New variable.
6022         (prepare_call_arguments): New function.
6023         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6024         (struct expand_loc_callback_data): Add ignore_cur_loc field.
6025         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6026         always use the best expression.
6027         (vt_expand_loc): Add ignore_cur_loc argument.
6028         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6029         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6030         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6031         note for all calls.
6032         (vt_add_function_parameter): Use cselib_lookup_from_insn.
6033         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6034         argument.  Don't call cselib_preserve_only_values and
6035         cselib_reset_table.
6036         (note_register_arguments): New function.
6037         (vt_initialize): Compute argument_reg_set.  Call
6038         vt_add_function_parameters before processing basic blocks instead of
6039         afterwards.  For calls call prepare_call_arguments before calling
6040         cselib_process_insn.
6041         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6042         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6043         (var-tracking.o): Depend on $(TM_P_H).
6044         * cfglayout.h (insn_scope): New prototype.
6045         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6046         * cfglayout.c (insn_scope): No longer static.
6047         * insn-notes.def (CALL_ARG_LOCATION): New.
6048         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6049         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6050         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6051         nothing for DECL_EXTERNAL BLOCK_VARS.
6053 2011-03-16  Alan Modra  <amodra@gmail.com>
6055         PR target/45844
6056         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6057         create invalid offset address for vsx splat insn.
6058         * config/rs6000/predicates.md (splat_input_operand): New.
6059         * config/rs6000/vsx.md (vsx_splat_*): Use it.
6061 2011-03-15  Xinliang David Li  <davidxl@google.com>
6063         PR c/47837
6064         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6065         (normalize_preds): New function.
6066         (is_use_properly_guarded): Normalize def predicates.
6068 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6070         PR target/46788
6071         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6072         in the output template.
6074 2011-03-15  Richard Guenther  <rguenther@suse.de>
6076         PR middle-end/47650
6077         * tree-pretty-print.c (dump_function_declaration): Properly
6078         dump unprototyped and varargs function types.
6080 2011-03-15  Richard Guenther  <rguenther@suse.de>
6082         PR tree-optimization/13954
6083         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6084         and friends.
6086 2011-03-15  Richard Guenther  <rguenther@suse.de>
6088         PR tree-optimization/48037
6089         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6090         selects into BIT_FIELD_REFs.
6091         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6092         vector select.
6094 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
6096         PR tree-optimization/48129
6097         * builtins.c (fold_builtin_snprintf): Convert to type of
6098         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6099         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6101 2011-03-15  Richard Guenther  <rguenther@suse.de>
6103         PR tree-optimization/41490
6104         * tree-ssa-dce.c (propagate_necessity): Handle returns without
6105         value but with VUSE.
6106         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6107         return statements.
6108         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6109         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6110         * tree-tailcall.c (find_tail_calls): Ignore returns.
6112 2011-03-15  Richard Guenther  <rguenther@suse.de>
6114         PR middle-end/48031
6115         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6116         or variable-indexed array accesses when in gimple form.
6118 2011-03-15  Richard Guenther  <rguenther@suse.de>
6120         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6122 2011-03-15  Alan Modra  <amodra@gmail.com>
6124         PR target/48032
6125         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6126         presume symbol_refs without a symbol_ref_decl are suitably
6127         aligned, nor other trees we may see here.  Handle anchor symbols.
6128         (legitimate_constant_pool_address_p): Comment.  Add mode param.
6129         Check cmodel=medium addresses.  Adjust all calls.
6130         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6131         creating cmodel=medium optimized access to locals.
6132         * config/rs6000/constraints.md (R): Pass QImode to
6133         legitimate_constant_pool_address_p.
6134         * config/rs6000/predicates.md (input_operand): Pass mode to
6135         legitimate_constant_pool_address_p.
6136         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6137         Update prototype.
6139 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6141         PR target/48053
6142         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6143         64-bit constants being loaded into registers other than GPRs such
6144         as loading 0 into a VSX register.
6146 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6148         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6150 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6152         PR middle-end/47917
6153         * builtins.c (fold_builtin_snprintf): New function.
6154         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6155         (fold_builtin_4): Likewise.
6157         PR middle-end/38878
6158         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6159         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
6160         and C - X == X also strip nops from +/-/p+ operand.
6161         When optimizing -X == C, fold C to arg0's type.
6163         PR debug/47946
6164         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6165         emit it as add_AT_int instead of add_AT_unsigned.
6167 2011-03-14  Tom Tromey  <tromey@redhat.com>
6169         * unwind-dw2.c: Include sys/sdt.h if it exists.
6170         (_Unwind_DebugHook): Use STAP_PROBE2.
6171         * config.in, configure: Rebuild.
6172         * configure.ac: Check for sys/sdt.h.
6174 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
6176         * config/i386/i386.md (ROUND_FLOOR): New constant.
6177         (ROUND_CEIL): Ditto.
6178         (ROUND_TRUNC): Ditto.
6179         (ROUND_MXCSR): Ditto.
6180         (ROUND_NO_EXC): Ditto.
6181         (rint<mode>2): Use new defines instead of numerical constants.
6182         (floor<mode>2): Ditto.
6183         (ceil<mode>2): Ditto.
6184         (btrunc<mode>2): Ditto.
6185         * config/i386/i386-builtin-types.def: Define ROUND function type
6186         aliases.
6187         * config/i386/i386.c (enum ix86_builtins): Add
6188         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6189         (struct builtin_description): Add
6190         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6191         (ix86_expand_sse_round): New static function.
6192         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6193         function types.
6194         (ix86_builtin_vectorized_function): Handle
6195         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6197 2011-03-14  Tom Tromey  <tromey@redhat.com>
6199         * c-parser.c (c_parser_asm_string_literal): Clear
6200         warn_overlength_strings.
6202 2011-03-14  Tom Tromey  <tromey@redhat.com>
6204         * c-parser.c (disable_extension_diagnostics): Save
6205         warn_overlength_strings.
6206         (restore_extension_diagnostics): Restore warn_overlength_strings.
6208 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6210         * BASE-VER: Change to 4.7.0.
6212 2011-03-14  Richard Guenther  <rguenther@suse.de>
6214         PR middle-end/48098
6215         * tree.c (build_vector_from_val): Adjust assert to requirements
6216         and reality.
6218 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6220         PR bootstrap/48102
6221         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6223 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
6225         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
6226         terms of target_flags_explicit. Adjust copyright year.
6228         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6229         * config/rs6000/t-freebsd: New file. Add override for
6230         LIB2FUNCS_EXTRA.
6232 2011-03-13  Chris Demetriou  <cgd@google.com>
6234         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6235         (-fno-diagnostics-show-option): this, to reflect current default.
6236         (-Werror=): Update text about -fno-diagnostics-show-option.
6238 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
6240         PR target/48053
6241         * config/rs6000/predicates.md (easy_vector_constant_add_self,
6242         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6243         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6244         mode is not V2DImode or V2DFmode.
6245         (vspltis_constant): Do not handle V2DImode and V2DFmode.
6246         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6247         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6248         registers to 0.
6249         (movdi_internal64): Likewise.
6251 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
6253         PR tree-optimization/47127
6254         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
6255         parameter.
6256         (set_cloog_options): Same.
6257         (scop_to_clast): Same.
6258         (print_clast_stmt): Do not call cloog_state_malloc and
6259         cloog_state_free.
6260         (print_generated_program): Same.
6261         (gloog): Same.
6262         * graphite-clast-to-gimple.h (cloog_state): Declared.
6263         (scop_to_clast): Adjust declaration.
6264         * graphite.c (cloog_state): Defined here.
6265         (graphite_initialize): Call cloog_state_malloc.
6266         (graphite_finalize): Call cloog_state_free.
6268 2011-03-11  Jason Merrill  <jason@redhat.com>
6270         * attribs.c (lookup_attribute_spec): Take const_tree.
6271         * tree.h: Adjust.
6273 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
6275         * config/sparc/sparc.c (sparc_option_override): Use
6276         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
6278 2011-03-11  Richard Guenther  <rguenther@suse.de>
6280         PR tree-optimization/48067
6281         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
6282         multiplication result will be only used once on the target
6283         stmt.
6285 2011-03-11  Richard Guenther  <rguenther@suse.de>
6287         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
6289 2011-03-11  Richard Guenther  <rguenther@suse.de>
6291         PR lto/48073
6292         * tree.c (find_decls_types_r): Do not walk types only reachable
6293         from IDENTIFIER_NODEs.
6295 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
6297         PR middle-end/48044
6298         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
6299         all vnode->force_output nodes as needed.
6301 2011-03-11  Jason Merrill  <jason@redhat.com>
6303         PR c++/48069
6304         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
6305         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
6307 2011-03-11  Martin Jambor  <mjambor@suse.cz>
6309         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
6310         cgraph_node.
6312 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
6314         PR tree-optimization/48063
6315         * ipa-inline.c (cgraph_decide_inlining): Don't try to
6316         inline functions called once if !tree_can_inline_p (node->callers).
6318 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
6320         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
6321         extra_objs.
6322         * config/score/score3.c: Delete.
6323         * config/score/score3.h: Delete.
6324         * config/score/mul-div.S: Delete.
6325         * config/score/sfp-machine.h: Add new file.
6326         * config/score/constraints.md: Add new file.
6327         * config/score/t-score-softfp: Add new file.
6328         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
6329         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
6330         (score7_extra_constraint): Delete.
6331         (score7_option_override): Remove unused code.
6332         * config/score/score.c: Remove score3 and score5 define and code.
6333         * config/score/score.h: Remove score3 and score5 define and code.
6334         * config/score/score.md: Remove score3 template and unusual insn.
6335         * config/score/score.opt: Remove score3 and score5 options.
6337 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6339         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
6340         when _HPUX_SOURCE is defined.
6341         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
6343 2011-03-10  Jason Merrill  <jason@redhat.com>
6345         PR c++/48029
6346         * stor-layout.c (layout_type): Don't set structural equality
6347         on arrays of incomplete type.
6348         * tree.c (type_hash_eq): Handle comparing them properly.
6350 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
6352         PR debug/48043
6353         * config/s390/s390.c (s390_delegitimize_address): Make sure the
6354         result mode matches original rtl mode.
6356 2011-03-10  Nick Clifton  <nickc@redhat.com>
6358         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
6359         (andsi3, andsi3_flags): Fix timings for three operand alternative.
6361 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
6363         PR rtl-optimization/47866
6364         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
6365         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
6366         if target wasn't scalar.
6367         * function.c (assign_stack_temp_for_type): Assert that neither
6368         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
6369         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
6370         macro.
6371         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
6373 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6375         * config/s390/s390-protos.h (s390_label_align): New prototype.
6376         * config/s390/s390.c (s390_label_align): New function.
6377         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
6379 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
6381         PR target/47755
6382         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
6383         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
6384         (output_vec_const_move): Ditto.
6386 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
6388         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
6389         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
6390         * config/mips/mips.c (mips_preferred_reload_class): Make static.
6391         Change 'rclass' argument and result type to reg_class_t.
6392         (TARGET_PREFERRED_RELOAD_CLASS): Define.
6394 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
6396         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6397         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
6398         (TARGET_MEMORY_MOVE_COST): Define.
6399         (avr_register_move_cost, avr_memory_move_cost): New Functions.
6401 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
6403         PR debug/47881
6404         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
6405         removed anything.
6407         PR tree-optimization/48022
6408         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
6409         for EQ/NE_EXPR.
6411 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
6413         PR debug/47991
6414         * var-tracking.c (find_use_val): Return NULL for
6415         cui->sets && cui->store_p BLKmode MEMs.
6417 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
6419         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6420         Remove.
6421         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
6422         xstormy16_print_operand_address): Remove.
6423         * config/stormy16/stormy16.c (xstormy16_print_operand,
6424         xstormy16_print_operand_address): Make static.
6425         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6427 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
6429         PR target/47862
6430         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6431         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
6432         before definition.
6434 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
6436         PR bootstrap/48000
6437         * cfgloopmanip.c (fix_bb_placements): Return immediately
6438         if FROM is BASE_LOOP's header.
6440 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
6442         * gimplify.c (gimplify_function_tree): Fix building calls
6443         to __builtin_return_address.
6445 2011-03-07  Alan Modra  <amodra@gmail.com>
6447         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
6448         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
6449         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
6450         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
6451         return_mode args.
6452         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
6453         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
6454         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
6455         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
6456         * config/rs6000/rs6000.c
6457         (rs6000_elf_end_indicate_exec_stack): Rename to..
6458         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
6459         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
6460         (rs6000_file_start): ..here.
6461         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
6462         file scope variables.
6463         (call_ABI_of_interest): New function.
6464         (init_cumulative_args): Set above vars when function return value
6465         is a float, vector, or small struct.
6466         (rs6000_function_arg_advance_1): Likewise for function args.
6467         (rs6000_va_start): Set rs6000_passes_float if variable arg function
6468         references float args.
6470 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
6472         * doc/cfg.texi: Remove "See" before @ref.
6473         * doc/invoke.texi: Likewise.
6475 2011-03-05  Jason Merrill  <jason@redhat.com>
6477         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
6479 2011-03-05  Anthony Green  <green@moxielogic.com>
6481         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
6483 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
6485         PR rtl-optimization/47899
6486         * cfgloopmanip.c (fix_bb_placements): Fix first argument
6487         to flow_loop_nested_p when moving the loop upward.
6489 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
6491         PR target/47719
6492         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
6494 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
6496         PR tree-optimization/47967
6497         * ipa-cp.c (build_const_val): Return NULL instead of creating
6498         VIEW_CONVERT_EXPR for mismatching sizes.
6499         (ipcp_create_replace_map): Return NULL if build_const_val failed.
6500         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
6501         give up on versioning.
6503 2011-03-05  Alan Modra  <amodra@gmail.com>
6505         PR target/47986
6506         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6507         full cmodel medium/large lo_sum + high addresses.
6509 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6511         * config/s390/s390.c (s390_decompose_address): Reject non-literal
6512         pool references in UNSPEC_LTREL_OFFSET.
6514 2011-03-04  Jan Hubicka  <jh@suse.cz>
6516         PR lto/47497
6517         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
6518         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
6519         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
6520         Add node pointers.
6521         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
6522         cgraph_add_thunk): Add node pointers.
6523         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
6524         associated to right node.
6525         (input_node): Update use of cgraph_same_body_alias
6526         and cgraph_add_thunk.
6528 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
6530         * config/i386/i386.opt (mprefer-avx128): New flag.
6531         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
6532         modes when the flag -mprefer-avx128 is on.
6534 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
6536         * dwarf2out.c (compare_loc_operands): Fix address handling.
6538 2011-03-04  Alan Modra  <amodra@gmail.com>
6540         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
6542 2011-03-04  Richard Guenther  <rguenther@suse.de>
6544         PR middle-end/47968
6545         * expmed.c (extract_bit_field_1): Prefer vector modes that
6546         vec_extract patterns can handle.
6548 2011-03-04  Richard Guenther  <rguenther@suse.de>
6550         PR middle-end/47975
6551         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
6553 2011-03-04  Richard Henderson  <rth@redhat.com>
6555         * explow.c (emit_stack_save): Remove 'after' parameter.
6556         (emit_stack_restore): Likewise.
6557         * expr.h: Update to match.
6558         * builtins.c, calls.c, stmt.c: Likewise.
6559         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
6560         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
6561         * function.c (expand_function_end): Insert the emit_stack_save
6562         sequence before parm_birth_insn instead of after.
6564 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
6566         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
6567         (ssse3_pmaddubsw128): Ditto.
6568         (ssse3_pmaddubsw): Ditto.
6570 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
6572         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
6574 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
6576         PR c/47963
6577         * gimplify.c (omp_add_variable): Only call omp_notice_variable
6578         on TYPE_SIZE_UNIT if it is a DECL.
6580         PR debug/47283
6581         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
6582         first operand is not is_gimple_mem_ref_addr, try to fold it.
6583         If the operand still isn't is_gimple_mem_ref_addr, clear
6584         MEM_EXPR on op0.
6586 2011-03-03  Richard Guenther  <rguenther@suse.de>
6588         PR middle-end/47283
6589         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
6590         match comment.
6591         (refs_may_alias_p_1): For release branches return true if
6592         we are confused by our input.
6594 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6596         * config/s390/s390.c (s390_function_value): Rename to ...
6597         (s390_function_and_libcall_value): ... this.
6598         (s390_function_value): New function.
6599         (s390_libcall_value): New function.
6600         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
6601         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
6602         target macro definitions.
6603         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
6605 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
6607         * config/i386/freebsd64.h (CC1_SPEC): Define.
6608         * config/i386/linux64.h (CC1_SPEC): Define.
6609         * config/i386/x86-64.h (CC1_SPEC): Don't define.
6611 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
6613         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6614         Remove.
6615         * config/stormy16/stormy16.c: Include reload.h.
6616         (xstormy16_memory_move_cost): New function.
6617         (TARGET_MEMORY_MOVE_COST): Define.
6619 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
6621         PR rtl-optimization/47925
6622         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
6623         with side effects.  Remove the more-specific check for volatile asms.
6625 2011-03-02  Alan Modra  <amodra@gmail.com>
6627         PR target/47935
6628         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
6629         toc relative addresses for valid offsets.
6631 2011-03-01  Richard Guenther  <rguenther@suse.de>
6633         PR tree-optimization/47890
6634         * tree-vect-loop.c (get_initial_def_for_induction): Set
6635         related stmt properly.
6637 2011-03-01  Richard Guenther  <rguenther@suse.de>
6639         PR lto/47924
6640         * lto-streamer.c (lto_record_common_node): Also register
6641         the canonical type.
6643 2011-03-01  Richard Guenther  <rguenther@suse.de>
6645         PR lto/46911
6646         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6647         Do not stream DECL_ABSTRACT_ORIGIN.
6648         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6649         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6650         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6651         Do not stream DECL_ABSTRACT_ORIGIN.
6652         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6653         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6655 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
6657         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
6658         FUNCTION_VALUE_REGNO_P): Remove.
6659         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
6660         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
6661         Add 'outgoing' argument.
6662         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
6663         function.
6664         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6665         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6667 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
6669         PR debug/28047
6670         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
6671         (lookup_filename): Likewise.
6672         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
6674 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
6675             Jakub Jelinek  <jakub@redhat.com>
6677         PR middle-end/47893
6678         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
6679         (assign_stack_local_1): Change last argument type to int.
6680         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
6681         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
6682         don't record padding space into frame_space_list nor use those areas.
6683         (assign_stack_local): Adjust caller.
6684         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
6685         of assign_stack_local, pass 0 as last argument.
6686         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
6687         callers.
6689 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
6691         PR debug/47283
6692         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
6693         Use target address_mode and pointer_mode hooks instead of hardcoded
6694         Pmode and ptr_mode.  Handle some simple cases of extending if
6695         POINTERS_EXTEND_UNSIGNED < 0.
6696         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
6697         Call convert_debug_memory_address.
6698         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
6699         convert_debug_memory_address.
6701         PR middle-end/46790
6702         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
6703         * configure: Regenerated.
6704         * config.in: Regenerated.
6705         * varasm.c (default_function_section): Return NULL
6706         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
6708 2011-02-28  Martin Jambor  <mjambor@suse.cz>
6710         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
6711         the description to match the printed values.
6713 2011-02-28  Richard Guenther  <rguenther@suse.de>
6715         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
6716         of the copied scope tree.
6718 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6720         * doc/extend.texi (Function Attributes): Avoid deeply (and
6721         wrongly) nested tables.
6723 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
6725         PR middle-end/47903
6726         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
6727         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
6728         r isn't op0 nor op1.
6730 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
6732         * config/avr/avr.md: Remove magic comment for emacs.
6734 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
6736         PR target/45261
6737         * config/avr/avr.c (avr_option_override): Use error on bad options.
6738         (avr_help): New function.
6739         (TARGET_HELP): Define.
6741 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
6743         PR target/42240
6744         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
6745         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
6747 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
6749         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
6750         (ARM Options): Ditto.
6751         (i386 and x86-64 Options): Ditto.
6752         (RX Options): Ditto.
6753         (SPARC Options): Ditto.
6755 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
6757         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
6758         FreeBSD 6 and later.  Generally use cpu generic.
6760 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
6762         * doc/cpp.texi: Update copyright years.
6764 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
6766         PR target/46898
6767         * config/lm32/lm32.md (ashrsi3): Added needed variable.
6769 2011-02-25  Jon Beniston  <jon@beniston.com>
6771         PR target/46898
6772         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
6773         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
6774         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
6775         (lm32_block_move_inline): Add type cast to remove warning.
6776         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
6777         (gen_int_relational): Move declarations to start of function.
6779 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
6781         PR tree-optimization/45470
6782         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6783         can throw internally only.
6784         * tree-vect-stmts.c (vectorizable_call): Likewise.
6786 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
6788         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
6789         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6790         * config/stormy16/stormy16-protos.h
6791         (xstormy16_preferred_reload_class): Remove.
6792         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
6793         static. Change 'rclass' argument and return type to reg_class_t.
6794         (TARGET_PREFERRED_RELOAD_CLASS,
6795         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6797 2011-02-24  Richard Guenther  <rguenther@suse.de>
6799         * lto-streamer-in.c (input_bb): Do not find referenced vars
6800         in debug statements.
6802 2011-02-23  Jason Merrill  <jason@redhat.com>
6804         * common.opt (fabi-version): Document v5 and v6.
6806 2011-02-23  Richard Guenther  <rguenther@suse.de>
6808         PR tree-optimization/47849
6809         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
6811 2011-02-23  Jie Zhang  <jie@codesourcery.com>
6813         * opts-common.c (decode_cmdline_option): Print empty string
6814         argument as "" in decoded->orig_option_with_args_text.
6815         * gcc.c (execute): Print empty string argument as ""
6816         in the verbose output.
6817         (do_spec_1): Keep empty string argument.
6819 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
6821         * config.gcc: Declare score-* and crx-* obsolete.
6823 2011-02-23  Jie Zhang  <jie@codesourcery.com>
6825         PR rtl-optimization/47763
6826         * web.c (web_main): Ignore naked clobber when replacing register.
6828 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
6830         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6831         Remove.
6833 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
6835         PR doc/47848
6836         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
6838 2011-02-22  Mike Stump  <mikestump@comcast.net>
6840         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
6841         assembler.
6842         * configure: Regenerate.
6844 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
6846         PR rtl-optimization/46002
6847         * ira-color.c (update_copy_costs): Change class intersection
6848         test to reg_class_contents[] test of 'hard_regno'.
6850 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
6852         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
6853         than Driver option.
6854         * config/hpux11.opt (mt): Likewise.
6855         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
6856         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
6857         * config/vax/elf.opt (mno-asm-pic): Likewise.
6858         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
6860 2011-02-21  Mike Stump  <mikestump@comcast.net>
6862         PR target/47822
6863         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
6864         tree so we can get save the type.
6865         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
6866         for CFString instead of trying to use past the end of the builtins.
6867         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
6868         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
6869         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
6870         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
6871         Rename to darwin_builtin_cfstring.
6872         (darwin_init_cfstring_builtins): Return the built type.
6874 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
6876         PR target/47840
6877         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
6878         (_mm256_insert_epi64): Use _mm_insert_epi64.
6880 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
6882         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6883         * config/stormy16/stormy16-protos.h
6884         (xstormy16_mode_dependent_address_p): Remove.
6885         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
6886         Make static. Change return type to bool. Change argument type to
6887         const_rtx. Remove dead code.
6888         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6890 2011-02-21  Richard Guenther  <rguenther@suse.de>
6892         PR lto/47820
6893         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6894         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6895         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
6896         TUs context.
6897         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6898         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6900 2011-02-20  Richard Guenther  <rguenther@suse.de>
6902         PR lto/47822
6903         * tree.c (free_lang_data_in_decl): Clean builtins from
6904         the TU decl BLOCK_VARS.
6906 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
6908         PR debug/47620
6909         PR debug/47630
6910         * haifa-sched.c (fix_tick_ready): Skip tick computation
6911         for debug insns.
6913 2011-02-19  Richard Guenther  <rguenther@suse.de>
6915         PR lto/47647
6916         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
6917         Remove lazy BLOCK_VARS streaming.
6918         (lto_input_ts_block_tree_pointers): Likewise.
6919         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
6921 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
6923         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
6925 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
6927         * config/i386/biarch32.h, config/i386/mach.h,
6928         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
6930 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
6932         PR target/47800
6933         * config/i386/i386.md (peephole2 for shift and plus): Use
6934         operands[1] original mode in the first insn.
6936 2011-02-18  Mike Stump  <mikestump@comcast.net>
6938         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
6940 2011-02-18  Jan Hubicka  <jh@suse.cz>
6942         PR middle-end/47788
6943         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
6944         to zero when the function is not inlinable at all.
6946 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6948         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
6949         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6950         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
6951         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
6952         * config/pa/t-pa64: Likewise.
6953         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6955 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
6957         PR driver/47787
6958         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
6960 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6962         PR target/47792
6963         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
6965 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
6967         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6968         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
6969         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
6970         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6971         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
6972         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
6973         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
6974         m32r_load_postinc_p, m32r_store_preinc_predec_p,
6975         m32r_legitimate_address_p): New functions.
6976         * config/m32r/constraints.md (constraint "S"): Don't use
6977         STORE_PREINC_PREDEC_P.
6978         (constraint "U"): Don't use LOAD_POSTINC_P.
6980 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
6982         PR rtl-optimization/46178
6983         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
6984         compute ira_hard_regno_cover_class[].
6986 2011-02-18  Richard Guenther  <rguenther@suse.de>
6988         PR lto/47798
6989         * lto-streamer.h (lto_global_var_decls): Declare.
6990         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
6991         statics for global var processing.
6993 2011-02-18  Richard Guenther  <rguenther@suse.de>
6995         PR tree-optimization/47737
6996         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
6997         edge dominance check.
6999 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7001         PR debug/47780
7002         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7003         avoid invalid rtx sharing.
7005 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
7007         * doc/cpp.texi (Obsolete Features): Add background on the
7008         origin of assertions.
7010 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
7012         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7013         objc_abi == 2.
7014         * config/darwin.c (output_objc_section_asm_op): Added support for
7015         ABI v1 and v2.
7016         (is_objc_metadata): New.
7017         (darwin_objc2_section): New.
7018         (darwin_objc1_section): New.
7019         (machopic_select_section): Added support for ABI v1 and v2.
7020         (darwin_emit_objc_zeroed): New.
7021         (darwin_output_aligned_bss): Detect objc metadata and treat it
7022         appropriately.
7023         (darwin_asm_output_aligned_decl_common): Same.
7024         (darwin_asm_output_aligned_decl_local): Same.
7025         * config/darwin-sections.def: Updated for ABI v1 and v2.
7026         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7027         compiling Objective-C code for the NeXT runtime, default to using
7028         ABI version 0 for 32-bit, and version 2 for 64-bit.
7030 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7032         * common.opt (optimize_fast): New Variable.
7033         * opts.c (default_options_optimization): Use opts->x_optimize_fast
7034         instead of local variable ofast.
7036 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7038         * doc/invoke.texi (fobjc-abi-version): Documented.
7039         (fobjc-nilcheck): Documented.
7040         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7041         version.
7043 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7045         PR driver/47390
7046         * common.opt (export-dynamic): New Driver option.
7047         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7049 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7051         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7053 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
7054             Jan Hubicka  <jh@suse.cz>
7056         PR debug/47106
7057         PR debug/47402
7058         * cfgexpand.c (account_used_vars_for_block): Remove.
7059         (estimated_stack_frame_size): Use referenced vars.
7060         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7061         that were referenced in the original function.  Test src_fn
7062         rather than cfun.  Drop redundant get_var_ann.
7063         (setup_one_parameter): Drop redundant get_var_ann.
7064         (declare_return_variable): Likewise.
7065         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7066         (copy_arguments_for_versioning): Drop redundant get_var_ann.
7067         * ipa-inline.c (compute_inline_parameters): Do not compute
7068         disregard_inline_limits here.
7069         (compute_inlinable_for_current, pass_inlinable): New.
7070         (pass_inline_parameters): Require PROP_referenced_vars.
7071         * cgraphunit.c (cgraph_process_new_functions): Don't run
7072         compute_inline_parameters explicitly unless function is in SSA form.
7073         (cgraph_analyze_function): Set .disregard_inline_limits.
7074         * tree-sra.c (convert_callers): Compute inliner parameters
7075         only for functions already in SSA form.
7077 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7079         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7080         -mlittle-endian-data.
7082 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7084         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7085         -mno-fpu, not -fpu and -no-fpu.
7086         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7087         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7089 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
7091         PR target/43653
7092         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7093         input reload with PLUS RTX.
7095 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7097         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7098         of InverseVar(MDMX).
7100 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7102         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7103         --m4-340.
7105 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7107         * config/mn10300/mn10300.opt (mno-crt0): New.
7109 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7111         * config/m68k/uclinux.opt (static-libc): New Driver option.
7113 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7115         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7117 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7119         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7120         %{muser-extend-enabled}.
7122 2011-02-16  Richard Guenther  <rguenther@suse.de>
7124         PR tree-optimization/47738
7125         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7126         the TODO from tree_predictive_commoning.
7128 2011-02-15  Jeff Law  <law@redhat.com>
7130         Revert
7131         2011-01-25  Jeff Law  <law@redhat.com>
7133         PR rtl-optimization/37273
7134         * ira-costs.c (scan_one_insn): Detect constants living in memory and
7135         handle them like argument loads from stack slots.  Do not double
7136         count memory for memory constants and argument loads from stack slots.
7138 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7140         PR middle-end/47725
7141         * combine.c (cant_combine_insn_p): Revert the last change.
7143 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
7145         PR target/47755
7146         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7147         mode for vector constants.  Remove code that checks for TImode.
7149 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7151         PR debug/47106
7152         PR debug/47402
7153         * cgraph.h (compute_inline_parameters): Return void.
7154         * ipa-inline.c (compute_inline_parameters): Adjust.
7156 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7158         PR debug/47106
7159         PR debug/47402
7160         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7161         rather than decl.
7162         * cfgexpand.c (estimated_stack_frame_size): Likewise.
7163         * ipa-inline.c (compute_inline_parameters): Adjust.
7165 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7167         PR debug/47106
7168         PR debug/47402
7169         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7170         Adjust all users.  Pass FN to...
7171         * tree-flow-inline.h (first_referenced_var): ... this.  Add
7172         fn argument.
7173         * ipa-struct-reorg.c: Adjust.
7174         * tree-dfa.c: Adjust.
7175         * tree-into-ssa.c: Adjust.
7176         * tree-sra.c: Adjust.
7177         * tree-ssa-alias.c: Adjust.
7178         * tree-ssa-live.c: Adjust.
7179         * tree-ssa.c: Adjust.
7180         * tree-ssanames.c: Adjust.
7181         * tree-tailcall.c: Adjust.
7183 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7185         PR debug/47106
7186         PR debug/47402
7187         * tree-flow.h (referenced_var_lookup): Add fn parameter.
7188         Adjust all callers.
7189         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7190         * tree-flow-inline.h: Adjust.
7191         * gimple-pretty-print.c: Adjust.
7192         * tree-into-ssa.c: Adjust.
7193         * tree-ssa.c: Adjust.
7194         * cfgexpand.c: Adjust.
7196 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7198         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7199         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7200         (EXTRA_CONSTRAINT): Delete.
7201         * config/iq2000/constraints.md: New file.
7202         * config/iq2000/iq2000.md: Include it.
7203         (define_insn ""): Delete.
7204         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7205         unsupported constraint letters from patterns.
7206         (call_value, call_value_internal1): Likewise.
7207         (call_value_multiple_internal1): Likewise.
7209 2011-02-15  Nick Clifton  <nickc@redhat.com>
7211         * config/mn10300/mn10300.c: Include tm-constrs.h.
7212         (struct liw_data): New data structure describing an LIW candidate
7213         instruction.
7214         (extract_bundle): Use struct liw_data.  Allow small integer
7215         operands for some instructions.
7216         (check_liw_constraints): Use struct liw_data.  Remove swapped
7217         parameter.  Add comments describing the checks.  Fix bug when
7218         assigning the source of liw1 to the source of liw2.
7219         (liw_candidate): Delete.  Code moved into extract_bundle.
7220         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
7221         before swapping.
7222         * config/mn10300/predicates.md (liw_operand): New predicate.
7223         Allows registers and small integer constants.
7224         * config/mn10300/constraints.md (O): New constraint.  Accetps
7225         integers in the range -8 to +7 inclusive.
7226         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7227         for moving a small integer into a register.  Give this alternative
7228         LIW attributes.
7229         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7230         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7231         using the J,K,L and M constraints,
7232         (liw): Remove SI mode on second operands to allow for HI and QI
7233         mode values.
7234         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
7235         instruction.
7237 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7239         PR middle-end/47725
7240         * combine.c (cant_combine_insn_p): Check zero/sign extended
7241         hard registers.
7243 2011-02-15  Richard Guenther  <rguenther@suse.de>
7245         PR tree-optimization/47743
7246         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7247         for a non-type-compatible VN lookup bail out.
7249 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7251         * config/fr30/constraints.md: New file.
7252         * config/fr30/fr30.md: Include it.
7253         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
7254         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7255         (EXTRA_CONSTRAINT): Delete.
7257 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7259         * config/frv/constraints.md: New file.
7260         * config/frv/predicates.md: Include it.
7261         * config/frv/frv.c (reg_class_from_letter): Delete.
7262         (frv_option_override): Don't initialize it.
7263         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
7264         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
7265         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
7266         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7267         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
7268         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7269         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
7270         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
7271         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
7272         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
7273         (REG_CLASS_FROM_CONSTRAINT): Delete.
7275 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
7277         PR middle-end/47581
7278         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
7279         if frame size is 0 in a leaf function.
7281 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7283         PR pch/14940
7284         * config/alpha/host-osf.c: New file.
7285         * config/alpha/x-osf: New file.
7286         * config.host (alpha*-dec-osf*): Use it.
7288 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
7290         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7291         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
7292         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
7293         (rx_mode_dependent_address_p): ...this. Make static. Change argument
7294         type to const_rtx.
7295         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7297 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7299         * config/stormy16/constraints.md: New file.
7300         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
7301         Use satisfies_constraint_Q and satisfies_constraint_R.
7302         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
7303         Delete.
7304         (xstormy16_legitiamte_address_p): Declare.
7305         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
7306         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7307         (EXTRA_CONSTRAINT): Delete.
7308         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
7309         Un-staticize.
7310         (xstormy16_extra_constraint_p): Delete.
7312 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
7314         PR tree-optimization/46494
7315         * loop-unroll.c (split_edge_and_insert): Adjust comment.
7316         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
7317         (pass_rtl_loop_done): Add TODO_verify_flow.
7318         * fwprop.c (pass_rtl_fwprop): Likewise.
7319         * modulo-sched.c (pass_sms): Likewise.
7320         * tree-ssa-dom.c (pass_dominator): Likewise.
7321         * tree-ssa-loop-ch.c (pass_ch): Likewise.
7322         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
7323         (pass_tree_loop_done): Likewise.
7324         * tree-ssa-pre.c (execute_pre): Likewise.
7325         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7326         * tree-ssa-sink.c (pass_sink_code): Likewise.
7327         * tree-vrp.c (pass_vrp): Likewise.
7329 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7331         * config/v850/constraints.md: New file.
7332         * config/v850/v850.md: Include it.
7333         * config/v850/predicates.md (reg_or_0_operand): Use
7334         satisfies_constraint_G.
7335         (special_symbolref_operand): Use satisfies_constraint_K.
7336         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
7337         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
7338         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
7339         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7340         (EXTRA_CONSTRAINT): Delete.
7341         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
7342         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
7343         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
7345 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
7347         PR target/47696
7348         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
7349         description.
7351 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7353         * config/mcore/constraints.md: New file.
7354         * config/mcore/mcore.md: Include it.
7355         * config/mcore/mcore.c (reg_class_from_letter): Delete.
7356         * config/mcore/mcore.h (reg_class_from_letter): Delete.
7357         (REG_CLASS_FROM_LETTER): Delete.
7358         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
7359         insn_const_int_ok_for_constraint.
7360         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
7361         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
7362         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7363         (EXTRA_CONSTRAINT): Delete.
7365 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7367         PR ada/41929
7368         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
7369         (IS_SIGHANDLER): Define.
7370         (sparc64_is_sighandler): New function, split off from
7371         sparc64_fallback_frame_state.
7372         (sparc_is_sighandler): New function, split off from
7373         sparc_fallback_frame_state.
7374         (sparc64_fallback_frame_state): Merge with ...
7375         (sparc_fallback_frame_state): ... this into ...
7376         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
7377         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
7378         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
7379         stack instead of hardcoded offsets.
7381 2011-02-14  Andriy Gapon  <avg@freebsd.org>
7383         PR target/45808
7384         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
7386 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7388         * configure: Regenerate.
7390 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
7392         PR driver/45731
7393         * gcc.c (asm_options): Correct spec matching --target-help.
7395 2011-02-12  Martin Jambor  <mjambor@suse.cz>
7397         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
7398         to gimple call error.
7400 2011-02-12  Mike Stump  <mikestump@comcast.net>
7402         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
7403         comments in backslash regions.
7405 2011-02-12  Mike Stump  <mikestump@comcast.net>
7406             Jakub Jelinek  <jakub@redhat.com>
7407             Iain Sandoe  <iains@gcc.gnu.org>
7409         PR target/47324
7410         * dwarf2out.c (output_cfa_loc): When required, apply the
7411         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
7412         (output_loc_sequence): Likewise.
7413         (output_loc_operands_raw): Likewise.
7414         (output_loc_sequence_raw): Likewise.
7415         (output_cfa_loc): Likewise.
7416         (output_loc_list): Suppress register number adjustment when
7417         calling output_loc_sequence()
7418         (output_die): Likewise.
7420 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
7422         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7423         Remove macros.
7424         * config/xtensa/xtensa.c (xtensa_register_move_cost,
7425         xtensa_memory_move_cost): New functions.
7426         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
7428 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
7430         PR lto/47225
7431         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
7432         in the current directory.
7433         * configure: Rebuilt.
7435 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
7437         * config/darwin.c (darwin_override_options): Add a hunk missed
7438         from the commit of r168571.  Trim comment line lengths and
7439         correct indents of the preceding block.
7441 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
7443         * gcc.c (driver_handle_option): Concatenate the argument to -F with
7444         the switch.
7446 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
7448         * common.opt (nostartfiles): New Driver option.
7450 2011-02-11  Xinliang David Li  <davidxl@google.com>
7452         PR tree-optimization/47707
7453         * tree-chrec.c (convert_affine_scev): Keep type precision.
7455 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
7457         PR tree-optimization/47420
7458         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
7460 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
7462         PR rtl-optimization/47614
7463         * rtl.h (check_for_inc_dec): Declare.
7464         * dse.c (check_for_inc_dec): Externalize...
7465         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
7466         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
7468 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
7470         PR driver/47678
7471         * gcc.c (main): Do not compile inputs if there were errors in
7472         option handling.
7473         * opts-common.c (read_cmdline_option): Check for wrong language
7474         after other error checks.
7476 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
7478         * cgraph.c: Fix comment typos.
7479         * cgraph.h: Likewise.
7480         * cgraphunit.c: Likewise.
7481         * ipa-cp.c: Likewise.
7482         * ipa-inline.c: Likewise.
7483         * ipa-prop.c: Likewise.
7484         * ipa-pure-const.c: Likewise.
7485         * ipa-ref.c: Likewise.
7486         * ipa-reference.c: Likewise.
7488 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
7490         PR debug/47684
7491         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
7493 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7495         PR testsuite/47400
7496         * doc/sourcebuild.texi (Require Support): Document
7497         dg-require-ascii-locale.
7499 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
7501         * doc/lto.texi (Write summary): Fix missing parentheses.
7503 2011-02-10  DJ Delorie  <dj@redhat.com>
7505         * config/m32c/m32c.c (m32c_option_override): Disable
7506         -fcombine-stack-adjustments until flag value tracking and compare
7507         optimization can be rewritten.
7509 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
7511         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
7512         PROCESSOR_POWER7.
7513         (PROCESSOR_DEFAULT64): Likewise.
7515 2011-02-10  Richard Henderson  <rth@redhat.com>
7517         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
7518         change from 2011-02-03.
7519         * config/rx/rx.c (flags_from_code): Likewise.
7520         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
7521         is valid, n/pz otherwise.
7522         (rx_select_cc_mode): Return CCmode if Y is not zero.
7524 2011-02-10  Richard Guenther  <rguenther@suse.de>
7526         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
7528 2011-02-10  Richard Guenther  <rguenther@suse.de>
7530         PR tree-optimization/47677
7531         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
7533 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
7535         PR target/47665
7536         * combine.c (make_compound_operation): Only change shifts into
7537         multiplication for SCALAR_INT_MODE_P.
7539 2011-02-10  Jie Zhang  <jie@codesourcery.com>
7541         PR testsuite/47622
7542         Revert
7543         2011-02-05  Jie Zhang  <jie@codesourcery.com>
7544         PR debug/42631
7545         * web.c (entry_register): Don't clobber the number of the
7546         first uninitialized reference in used[].
7548 2011-02-09  Richard Guenther  <rguenther@suse.de>
7550         PR tree-optimization/47664
7551         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
7552         all edges again.
7554 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
7556         PR target/46481
7557         PR target/47032
7558         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
7559         PROCESSOR_POWER7.
7560         (PROCESSOR_DEFAULT64): Same.
7561         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
7563 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7565         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
7567 2011-02-09  Martin Jambor  <mjambor@suse.cz>
7569         PR middle-end/45505
7570         * tree-sra.c (struct access): New flags grp_scalar_read and
7571         grp_scalar_write.  Changed description of assignment read and write
7572         flags.
7573         (dump_access): Dump new flags, reorder all of them.
7574         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
7575         to detect multiple scalar reads.
7576         (analyze_access_subtree): Use the new scalar read write flags instead
7577         of the old flags.  Adjusted comments.
7579 2011-02-08  DJ Delorie  <dj@redhat.com>
7581         PR target/47548
7582         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
7583         patterns.
7585 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7587         * config/m68k/uclinux.opt: New.
7588         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
7590 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7592         * config/cris/elf.opt (sim): New Driver option.
7594 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7596         * config/xtensa/elf.opt: New.
7597         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
7599 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7601         * config/vax/elf.opt: New.
7602         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
7604 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7606         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
7608 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7610         * config/gnu-user.opt: New.
7611         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
7612         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
7613         *-*-uclinux*): Use gnu-user.opt.
7615 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
7617         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
7618         * config/i386/gnu.h (CPP_SPEC): Likewise.
7620 2011-02-08  Ian Lance Taylor  <iant@google.com>
7622         * common.opt (fcx-limited-range): Add SetByCombined flag.
7623         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
7624         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
7625         (fassociative-math, freciprocal-math): Likewise.
7626         (funsafe-math-optimizations): Likewise.
7627         * opth-gen.awk: Handle SetByCombined.
7628         * optc-gen.awk: Likewise.
7629         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
7630         (set_unsafe_math_optimizations_flags): Likewise.
7631         * doc/options.texi (Option properties): Document SetByCombined.
7633 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7635         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
7636         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
7637         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
7638         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
7639         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
7641 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
7643         PR tree-optimization/46834
7644         PR tree-optimization/46994
7645         PR tree-optimization/46995
7646         * graphite-sese-to-poly.c (used_outside_reduction): New.
7647         (detect_commutative_reduction): Call used_outside_reduction.
7648         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
7649         translate_scalar_reduction_to_array only when at least one
7650         loop-phi/close-phi tuple has been detected.
7652 2011-02-08  Richard Guenther  <rguenther@suse.de>
7654         PR middle-end/47639
7655         * tree-vect-generic.c (expand_vector_operations_1): Update
7656         stmts here ...
7657         (expand_vector_operations): ... not here.  Cleanup EH info
7658         and the CFG if required.
7660 2011-02-08  Richard Guenther  <rguenther@suse.de>
7662         PR tree-optimization/47641
7663         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
7664         require type compatibility.
7666 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7668         * gimple-low.c (lower_function_body): Don't remove the location of
7669         the return statement here.
7670         (lower_gimple_return): Do it here instead but only if the return
7671         statement is actually used twice.
7673 2011-02-08  Richard Guenther  <rguenther@suse.de>
7675         PR tree-optimization/47632
7676         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
7677         unused up_to_stmt parameter, return whether cfg-cleanup is
7678         necessary, remove EH info properly.
7679         (forward_propagate_into_gimple_cond): Adjust caller.
7680         (forward_propagate_into_cond): Likewise.
7681         (forward_propagate_comparison): Likewise.
7682         (tree_ssa_forward_propagate_single_use_vars): Make
7683         forward_propagate_comparison case similar to the two others.
7685 2011-02-08  Nick Clifton  <nickc@redhat.com>
7687         * config/mn10300/mn10300.opt (mliw): New command line option.
7688         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
7689         (liw_bundling): New automaton.
7690         (liw): New attribute.
7691         (liw_op): New attribute.
7692         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
7693         (movsi_internal): Add LIW attributes.
7694         (andsi3): Likewise.
7695         (iorsi3): Likewise.
7696         (xorsi3): Likewise.
7697         (addsi3): Separate register and immediate alternatives.
7698         Add LIW attributes.
7699         (subsi3): Likewise.
7700         (cmpsi): Likewise.
7701         (aslsi3): Likewise.
7702         (lshrsi3): Likewise.
7703         (ashrsi3): Likewise.
7704         (liw): New pattern.
7705         * config/mn10300/mn10300.c (liw_op_names): New
7706         (mn10300_print_operand): Handle 'W' operand descriptor.
7707         (extract_bundle): New function.
7708         (check_liw_constraints): New function.
7709         (liw_candidate): New function.
7710         (mn10300_bundle_liw): New function.
7711         (mn10300_reorg): New function.
7712         (TARGET_MACHINE_DEPENDENT_REORG): Define.
7713         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
7714         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
7715         __LIW__ or __NO_LIW__.
7716         * doc/invoke.texi: Describe the -mliw command line option.
7718 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7720         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
7721         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7722         pthread_mutex_unlock): Remove.
7723         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
7724         * config/pa/t-pa64: Likewise.
7725         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
7726         shared libc if not linking against libpthread.
7727         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7729 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
7731         PR target/47558
7732         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
7733         on 10.6 and later to ensure that we always use the unwinder from
7734         the system.  Only add -no_compact_unwind when tarteting darwin
7735         10.6 or later.
7737 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
7739         PR target/46997
7740         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
7741         (vec_interleave_lowv2sf): Ditto.
7742         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
7743         (vec_extract_oddv2sf): Ditto.
7745 2011-02-07  Mike Stump  <mikestump@comcast.net>
7747         PR target/42333
7748         Add __ieee_divdc3 entry point.
7749         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
7750         entry point.
7751         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
7752         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
7753         * config/darwin.c (darwin_rename_builtins): Add.
7754         * config/darwin-protos.h (darwin_rename_builtins): Add.
7756 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
7758         PR target/47636
7759         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
7760         for the condition.
7762 2011-02-07  Mike Stump  <mikestump@comcast.net>
7764         * config/darwin.opt (mmacosx-version-min): Update default OS version.
7766 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
7768         PR target/47534
7769         * config/avr/libgcc.S (exit): Move .endfunc
7771 2011-02-07  Richard Guenther  <rguenther@suse.de>
7773         PR tree-optimization/47615
7774         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
7775         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
7776         (run_scc_vn): Initialize it.
7777         (visit_reference_op_load): Use it.
7778         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
7780 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7782         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
7783         DImode trapping arithmetic libfuncs.
7785 2011-02-07  Richard Guenther  <rguenther@suse.de>
7787         PR tree-optimization/47621
7788         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
7789         two duplicates ...
7790         (execute_update_addresses_taken): ... here.  Make it more
7791         conservative in what we accept.
7793 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
7795         * config/sparc/freebsd.h (ASM_SPEC): Define.
7796         * config/sparc/vxworks.h (ASM_SPEC): Define.
7798 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
7800         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7802 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
7804         * doc/invoke.texi: Remove reference to compiler internals from
7805         user documentation.
7807         * reg-notes.def: Remove REG_VALUE_PROFILE.
7808         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
7810 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
7812         PR middle-end/47610
7813         * varasm.c (default_section_type_flags): If decl is NULL,
7814         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
7816 2011-02-05  Jie Zhang  <jie@codesourcery.com>
7818         PR debug/42631
7819         * web.c (entry_register): Don't clobber the number of the
7820         first uninitialized reference in used[].
7822 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
7824         PR tree-optimization/46194
7825         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
7826         (build_classic_dist_vector_1): Do not represent classic distance
7827         vectors when the access functions are variating in different loops.
7829 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7831         * config/mips/iris6.opt: New.
7832         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
7834 2011-02-04  Richard Henderson  <rth@redhat.com>
7835             Steve Ellcey  <sje@cup.hp.com>
7837         PR target/46997
7838         * config/ia64/predicates.md (mux1_brcst_element): New.
7839         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
7840         * config/ia64/ia64.c (ia64_unpack_assemble): New.
7841         (ia64_unpack_sign): New.
7842         (ia64_expand_unpack): Rewrite using new routines.
7843         (ia64_expand_widen_sum): Ditto.
7844         (ia64_expand_dot_prod_v8qi): Ditto.
7845         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
7846         routines, add endian check.
7847         (pmpy2_even): Rename from pmpy2_r, add endian check.
7848         (pmpy2_odd): Rename from pmpy2_l, add endian check.
7849         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
7850         (vec_widen_smult_hi_v4hi): Ditto.
7851         (vec_widen_umult_lo_v4hi): Ditto.
7852         (vec_widen_umult_hi_v4hi): Ditto.
7853         (mulv2si3): Change endian checks.
7854         (sdot_prodv4hi): Rewrite with new calls.
7855         (udot_prodv4hi): New.
7856         (vec_pack_ssat_v4hi): Add endian check.
7857         (vec_pack_usat_v4hi): Ditto.
7858         (vec_pack_ssat_v2si): Ditto.
7859         (max1_even): Rename from max1_r, add endian check.
7860         (max1_odd): Rename from max1_l, add endian check.
7861         (*mux1_rev): Format change.
7862         (*mux1_mix): Ditto.
7863         (*mux1_shuf): Ditto.
7864         (*mux1_alt): Ditto.
7865         (*mux1_brcst_v8qi): Use new predicate.
7866         (vec_extract_evenv8qi): Remove endian check.
7867         (vec_extract_oddv8qi): Ditto.
7868         (vec_interleave_lowv4hi): Format change.
7869         (vec_interleave_highv4hi): Ditto.
7870         (mix2_even): Rename from mix2_r, add endian check.
7871         (mix2_odd): Rename from mux2_l, add endian check.
7872         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
7873         (vec_extract_evenodd_helper): Format change.
7874         (vec_extract_evenv4hi): Remove endian check.
7875         (vec_extract_oddv4hi): Remove endian check.
7876         (vec_interleave_lowv2si): Format change.
7877         (vec_interleave_highv2si): Format change.
7878         (vec_initv2si): Remove endian check.
7879         (vecinit_v2si): Add endian check.
7880         (reduc_splus_v2sf): Add endian check.
7881         (reduc_smax_v2sf): Ditto.
7882         (reduc_smin_v2sf): Ditto.
7883         (vec_initv2sf): Remove endian check.
7884         (fpack): Add endian check.
7885         (fswap): Add endian check.
7886         (vec_interleave_highv2sf): Add endian check.
7887         (vec_interleave_lowv2sf): Add endian check.
7888         (fmix_lr): Add endian check.
7889         (vec_setv2sf): Format change.
7890         (*vec_extractv2sf_0_be): Use shift to extract operand.
7891         (*vec_extractv2sf_1_be): New.
7892         (vec_pack_trunc_v4hi): Add endian check.
7893         (vec_pack_trunc_v2si): Format change.
7895 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
7897         PR inline-asm/23200
7898         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
7899         do bb, locus and block comparison and disallow loads if it is not set.
7900         (stmt_is_replaceable_p): New function.
7901         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
7902         callers.
7903         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
7904         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
7905         SSA_NAME_DEF_STMT.
7906         * tree-flow.h (stmt_is_replaceable_p): New prototype.
7908 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7910         * config/rs6000/xilinx.opt: New.
7911         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
7913 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7915         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
7917 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
7919         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
7920         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7921         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
7922         secondary_reload_info, xtensa_secondary_reload): Remove.
7923         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
7924         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7925         (xtensa_preferred_reload_class): Make static. Change return and
7926         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
7927         Use CONST_DOUBLE_P predicate.
7928         (xtensa_preferred_output_reload_class): New function.
7929         (xtensa_secondary_reload): Make static.
7931 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
7933         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
7934         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
7935         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
7937 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7939         PR middle-end/31490
7940         * output.h (SECTION_RELRO): Define.
7941         (SECTION_MACH_DEP): Adjust.
7942         (get_variable_section): New prototype.
7943         * varpool.c (varpool_finalize_named_section_flags): New function.
7944         (varpool_assemble_pending_decls): Call it.
7945         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
7946         * cgraphunit.c (cgraph_output_in_order): Call
7947         varpool_finalize_named_section_flags.
7948         * varasm.c (get_section): Allow section flags conflicts between
7949         relro and read-only sections if the section hasn't been declared yet.
7950         Set SECTION_OVERRIDE after diagnosing section type conflict.
7951         (get_variable_section): No longer static.
7952         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
7953         readonly sections that need relocations.
7954         (decl_readonly_section_1): New function.
7955         (decl_readonly_section): Use it.
7957         Revert:
7958         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
7959                     Steve Ellcey  <sje@cup.hp.com>
7961         PR middle-end/31490
7962         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
7963         if section attribute used.
7965 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7967         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
7968         * config/darwin.c (SECTION_NO_ANCHOR): Define.
7969         (darwin_init_sections): Remove assertion.
7971 2011-02-03  Nick Clifton  <nickc@redhat.com>
7973         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
7974         lt and ge.
7975         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
7976         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
7977         instead of "n" and "pz".
7978         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
7979         CC_FLAG_S.
7981 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7983         PR target/47312
7984         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
7985         fma, expand FMA_EXPR as fma{,f,l} call.
7987         PR lto/47274
7988         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
7989         copy them into a unsigned char variable and pass address of it to
7990         lto_output_data_stream.
7992         PR target/47564
7993         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
7994         around backend_init_target and lang_dependent_init_target calls.
7995         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
7996         (verify_cgraph_node): Don't call set_cfun here.  Use
7997         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
7998         Set error_found for incorrectly represented calls to thunks.
8000 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8002         PR debug/43092
8003         PR rtl-optimization/43494
8004         * rtl.h (for_each_inc_dec_fn): New type.
8005         (for_each_inc_dec): Declare.
8006         * rtlanal.c (struct for_each_inc_dec_ops): New type.
8007         (for_each_inc_dec_find_inc_dec): New fn.
8008         (for_each_inc_dec_find_mem): New fn.
8009         (for_each_inc_dec): New fn.
8010         * dse.c (struct insn_size): Remove.
8011         (replace_inc_dec, replace_inc_dec_mem): Remove.
8012         (emit_inc_dec_insn_before): New fn.
8013         (check_for_inc_dec): Use it, along with for_each_inc_dec.
8014         (canon_address): Pass mem modes to cselib_lookup.
8015         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
8016         (cselib_lookup_from_insn): Likewise.
8017         (cselib_subst_to_values): Likewise.
8018         * cselib.c (find_slot_memmode): New var.
8019         (cselib_find_slot): New fn.  Use it instead of
8020         htab_find_slot_with_hash everywhere.
8021         (entry_and_rtx_equal_p): Use find_slot_memmode.
8022         (autoinc_split): New fn.
8023         (rtx_equal_for_cselib_p): Rename and implement in terms of...
8024         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
8025         Deal with autoinc.  Special-case recursion into MEMs.
8026         (cselib_hash_rtx): Likewise.
8027         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
8028         address and MEM modes.
8029         (cselib_subst_to_values): Add memmode, pass it on.
8030         Deal with autoinc.
8031         (cselib_lookup): Add memmode argument, pass it on.
8032         (cselib_lookup_from_insn): Add memmode.
8033         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8034         (struct cselib_record_autoinc_data): New.
8035         (cselib_record_autoinc_cb): New fn.
8036         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
8037         mode to cselib_lookup.  Reset autoinced REGs here instead of...
8038         (cselib_process_insn): ... here.
8039         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8040         to cselib_lookup.
8041         (add_uses): Likewise, also to cselib_subst_to_values.
8042         (add_stores): Likewise.
8043         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
8044         cselib_subst_to_values.
8045         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
8046         * gcse.c (do_local_cprop): Adjusted.
8047         * postreload.c (reload_cse_simplify_set): Adjusted.
8048         (reload_cse_simplify_operands): Adjusted.
8049         * sel-sched-dump (debug_mem_addr_value): Pass mode.
8051 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8053         PR tree-optimization/45122
8054         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8055         unsafe assumptions when there's more than one loop exit.
8057 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8059         PR target/47272
8060         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8061         Document using vector double with the load/store builtins, and
8062         that the load/store builtins always use Altivec instructions.
8064         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8065         to use altivec memory instructions, even on VSX.
8066         (vector_altivec_store_<mode>): Ditto.
8068         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8069         function.
8071         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8072         V2DF, V2DI support to load/store overloaded builtins.
8074         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8075         altivec load/store builtins for V2DF/V2DI types.
8077         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8078         set avoid indexed addresses on power6 if -maltivec.
8079         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8080         vector_altivec_load/vector_altivec_store builtins.
8081         (altivec_expand_st_builtin): Ditto.
8082         (altivec_expand_builtin): Add VSX memory builtins.
8083         (rs6000_init_builtins): Add V2DI types to internal types.
8084         (altivec_init_builtins): Add support for V2DF/V2DI altivec
8085         load/store builtins.
8086         (rs6000_address_for_altivec): Insure memory address is appropriate
8087         for Altivec.
8089         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8090         vec_vsx_ld and vec_vsx_st.
8091         (vsx_store_<mode>): Ditto.
8093         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8094         variables to hold long long types for VSX vector memory builtins.
8095         (RS6000_BTI_unsigned_long_long): Ditto.
8096         (long_long_integer_type_internal_node): Ditti.
8097         (long_long_unsigned_type_internal_node): Ditti.
8099         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8100         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8101         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8103         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8104         short cuts.
8105         (vec_vsx_st): Ditto.
8107 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8109         * config/pa/pa-hpux10.opt: New.
8110         * config/hpux11.opt (pthread): New Driver option.
8111         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8112         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8114 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8116         * config/ia64/vms.opt: New.
8117         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8119 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8121         PR target/47580
8122         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8123         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8124         generator functions.
8125         (vsx_floatuns<VSi><mode>2): Ditto.
8126         (vsx_fix_trunc<mode><VSi>2): Ditto.
8127         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8129 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8131         * config/i386/djgpp.opt (posix): New Driver option.
8133 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
8135         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8136         Move to the unsupported targets list.
8138 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
8140         PR rtl-optimization/47525
8141         * df-scan.c: Update copyright years.
8142         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8143         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8145 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8147         * config/i386/sysv4.h (TARGET_VERSION): Remove.
8148         (SUBTARGET_RETURN_IN_MEMORY): Remove.
8149         (ASM_OUTPUT_ASCII): Remove.
8150         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8152 2011-02-02  Jeff Law  <law@redhat.com>
8154         PR middle-end/47543
8155         * reload.c (find_reloads_address): Handle reg+d address where both
8156         components are invalid by reloading the entire address.
8158 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8159             Richard Guenther  <rguenther@suse.de>
8161         PR tree-optimization/40979
8162         PR bootstrap/47044
8163         * passes.c (init_optimization_passes): After LIM call copy_prop
8164         and DCE to clean up.
8165         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8167 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8169         PR tree-optimization/47576
8170         PR tree-optimization/47555
8171         * doc/invoke.texi (scev-max-expr-complexity): Documented.
8172         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8173         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8174         * tree-scalar-evolution.c (follow_ssa_edge): Use
8175         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8177 2011-02-02  Richard Guenther  <rguenther@suse.de>
8179         PR tree-optimization/47566
8180         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8182 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8184         PR debug/47106
8185         PR debug/47402
8186         * tree-inline.c (declare_return_variable): Remove unused caller
8187         variable.
8189         PR debug/47106
8190         PR debug/47402
8191         * tree-flow-inline.h (clear_is_used, is_used_p): New.
8192         * cfgexpand.c (account_used_vars_for_block): Use them.
8193         * tree-nrv.c (tree_nrv): Likewise.
8194         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8195         (dump_scope_block): Likewise.
8196         (remove_unused_locals): Likewise.
8198         PR debug/47106
8199         PR debug/47402
8200         * tree-inline.c (declare_return_variable): Add result decl to
8201         local decls only once.
8202         * gimple-low.c (record_vars_into): Mark newly-created variables
8203         as referenced.
8205 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8207         PR debug/47498
8208         PR debug/47501
8209         PR debug/45136
8210         PR debug/45130
8211         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8212         debug insns.
8213         (no_real_insns_p, schedule_block, set_priorities): Drop special
8214         treatment of boundary debug insns.
8215         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8216         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8217         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8218         (BOUNDARY_DEBUG_INSN_P): Likewise.
8219         (SCHEDULE_DEBUG_INSN_P): Likewise.
8220         * sched-rgn.c (init_ready_list): Drop special treatment of
8221         boundary debug insns.
8222         * final.c (rest_of_clean_state): Clear notes' BB.
8224 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8226         * config/openbsd.opt (assert=): New Driver option.
8228 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8230         * config/i386/nto.opt: New.
8231         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8233 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8235         * config/i386/netware.opt: New.
8236         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8238 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8240         * config/interix.opt (posix): New Driver option.
8242 2011-02-01  DJ Delorie  <dj@redhat.com>
8244         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8246         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8247         class for A0/A1.
8249 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
8251         PR tree-optimization/47561
8252         * toplev.c (process_options): Print the Graphite flags.  Add
8253         flag_loop_flatten to the list of options requiring Graphite.
8255 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8257         * config/i386/cygming.opt (posix): New Driver option.
8259 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8261         * config/arm/vxworks.opt: New.
8262         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
8264 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8266         * config/alpha/elf.opt: New.
8267         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
8268         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
8270 2011-02-01  Richard Guenther  <rguenther@suse.de>
8272         PR tree-optimization/47559
8273         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
8274         store-motion on references that can throw.
8276 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
8278         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
8279         * tree-pass.h (TDF_CSELIB): New macro.
8280         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
8281         cselib_lookup): Check for it rather than for TDF_DETAILS.
8283 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
8285         PR driver/47547
8286         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
8287         is HOST_BIT_BUCKET.
8289         * opts.c (finish_options): Don't add x_aux_base_name if it is
8290         HOST_BIT_BUCKET.
8292 2011-02-01  Richard Guenther  <rguenther@suse.de>
8294         PR tree-optimization/47555
8295         Revert
8296         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
8298         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8300 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
8302         PR gcc/46692
8303         * config/lm32/t-lm32: Add multilib for all CPU options.
8305 2011-02-01  Richard Guenther  <rguenther@suse.de>
8307         PR tree-optimization/47541
8308         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8309         sure to have a field at offset zero.
8311 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8313         * config/arc/arc.opt (EB, EL): New Driver options.
8315 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8317         * config/alpha/osf5.opt: New.
8318         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
8320 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8322         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
8324 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
8326         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
8327         -floop-interchange.
8328         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
8329         is an alias of -floop-interchange and that it requires the
8330         Graphite infrastructure.
8331         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
8332         flag_loop_interchange based on the value of flag_tree_loop_linear.
8334 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
8335             Richard Guenther  <rguenther@suse.de>
8337         PR tree-optimization/47538
8338         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
8339         type instead of r1type, except for comparisons.  For right
8340         shifts and comparisons punt if there are mismatches in
8341         sizetype vs. non-sizetype types.
8343 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8345         * doc/sourcebuild.texi (Effective-Target Keywords): Document
8346         avx_runtime.
8348 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8350         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
8351         version number.
8352         * configure: Regenerate.
8354 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8356         * configure.ac (gcc_cv_ld_static_option): Define.
8357         (gcc_cv_ld_dynamic_option): Define.
8358         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
8359         instead.
8360         (HAVE_LD_STATIC_DYNAMIC): Update message.
8361         (LD_STATIC_OPTION): Define.
8362         (LD_DYNAMIC_OPTION): Define.
8363         * configure: Regenerate.
8364         * config.in: Regenerate.
8365         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
8366         HAVE_LD_STATIC_DYNAMIC]: Use them.
8368 2011-01-31  Nick Clifton  <nickc@redhat.com>
8370         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
8371         registers inside interrupt handlers if the handler is not a leaf
8372         function.
8374 2011-01-31  Nick Clifton  <nickc@redhat.com>
8376         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
8377         reg_renumber returning an INVALID_REGNUM.
8379 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
8381         PR libgcj/44341
8382         * doc/install.texi: Document host options discarded when cross
8383         configuring target libraries.
8385 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
8387         Reverted:
8388         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
8389         PR debug/45136
8390         PR debug/45130
8391         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8392         debug insns.
8393         (no_real_insns_p, schedule_block, set_priorities): Drop special
8394         treatment of boundary debug insns.
8395         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8396         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8397         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8398         (BOUNDARY_DEBUG_INSN_P): Likewise.
8399         (SCHEDULE_DEBUG_INSN_P): Likewise.
8400         * sched-rgn.c (init_ready_list): Drop special treatment of
8401         boundary debug insns.
8402         * final.c (rest_of_clean-state): Clear notes' BB.
8404 2011-01-31  Alan Modra  <amodra@gmail.com>
8406         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
8407         toc relative expressions as we do in print_operand_address.
8409 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
8411         * doc/extend.texi: Follow spelling conventions.
8412         * doc/invoke.texi: Fix a typo.
8414 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
8416         * config/hpux11.opt: New.
8417         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
8418         ia64*-*-hpux*): Use hpux11.opt.
8420 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
8422         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
8423         to tmake_file.
8425 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8427         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
8428         support sites.
8430 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8432         * doc/install.texi (Binaries): Remove outdated reference for
8433         Motorola 68HC11/68HC12 downloads.
8435 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8437         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
8438         Drepper's paper.
8440 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
8442         PR bootstrap/47147
8443         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
8444         used by NetBSD.
8446 2011-01-28  Ahmad Sharif  <asharif@google.com>
8448         * value-prof.c (check_counter): Corrected error message.
8450 2011-01-29  Jie Zhang  <jie@codesourcery.com>
8452         * config/arm/arm.c (arm_legitimize_reload_address): New.
8453         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8454         arm_legitimize_reload_address.
8455         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
8457 2011-01-28  Ian Lance Taylor  <iant@google.com>
8459         * godump.c (go_define): Ignore macros whose definitions include
8460         two adjacent operands.
8462 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
8464         PR target/42894
8465         * varasm.c (force_const_mem): Store copy of x in desc->constant
8466         instead of x itself.
8467         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
8468         itself into REG_EQUAL note.
8470 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
8472         * config/freebsd.opt (posix, rdynamic): New Driver options.
8474 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8476         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
8477         -Bstatic/-Bdynamic.
8478         * configure: Regenerate.
8480 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
8482         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
8483         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
8485 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
8487         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
8488         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
8489         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8490         (s390_preferred_reload_class): Make static. Change return and
8491         'rclass' argument type to reg_class_t.
8493 2011-01-27  Jan Hubicka  <jh@suse.cz>
8495         PR middle-end/46949
8496         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
8497         (process_function_and_variable_attributes): Check defined weakrefs.
8499 2011-01-27  Martin Jambor  <mjambor@suse.cz>
8501         PR tree-optimization/47228
8502         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
8503         build_ref_for_offset.
8505 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8507         * config/spu/spu-elf.h (ASM_SPEC): Remove.
8509 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
8511         PR rtl-optimization/46856
8512         * postreload.c (reload_combine_recognize_const_pattern): Do not
8513         separate cc0 setter and user on cc0 targets.
8515 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
8517         PR c/43082
8518         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
8519         passed a VOID_TYPE expression, immediately emit an error and
8520         return error_mark_node.
8522 2011-01-26  Jeff Law  <law@redhat.com>
8524         PR rtl-optimization/47464
8525         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
8526         rather than may_trap_p as needed.
8528 2011-01-26  DJ Delorie  <dj@redhat.com>
8530         PR rtl-optimization/46878
8531         * combine.c (insn_a_feeds_b): Check for the implicit cc0
8532         setter/user dependency as well.
8534 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
8536         PR rtl-optimization/44469
8537         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
8538         after removing trivially dead basic blocks.
8540 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8542         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
8543         * config/frv/frv.h (LINK_SPEC): Likewise.
8544         * config/i386/netware.h (LINK_SPEC): Likewise.
8545         * config/m68k/linux.h (ASM_SPEC): Likewise.
8546         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
8547         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8548         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8549         * config/sparc/linux.h (ASM_SPEC): Likewise.
8550         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8551         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8553 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8555         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
8556         * config/frv/frv.h (ASM_SPEC): Likewise.
8557         * config/m68k/linux.h (ASM_SPEC): Likewise.
8558         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8559         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
8560         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8561         * config/sparc/linux.h (ASM_SPEC): Likewise.
8562         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8563         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8565 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8567         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
8568         * config/frv/frv.h (LINK_SPEC): Likewise.
8569         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8571 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8573         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
8574         * config/frv/frv.h (ASM_SPEC): Likewise.
8575         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
8576         * config/m68k/linux.h (ASM_SPEC): Likewise.
8577         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8578         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
8579         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8580         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
8581         * config/sparc/linux.h (ASM_SPEC): Likewise.
8582         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8583         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8584         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
8586 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
8588         PR target/46997
8589         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
8590         (*mux2): Ditto.
8591         (vec_extract_evenodd_help): Ditto.
8592         (vec_extract_evenv4hi): Ditto.
8593         (vec_extract_oddv4hi): Ditto.
8594         (vec_interleave_lowv2si): Ditto.
8595         (vec_interleave_highv2si): Ditto.
8596         (vec_extract_evenv2si): Ditto.
8597         (vec_extract_oddv2si: Ditto.
8598         (vec_pack_trunc_v2si): Ditto.
8600 2011-01-22  Jan Hubicka  <jh@suse.cz>
8602         PR target/47237
8603         * cgraph.h (cgraph_local_info): New field can_change_signature.
8604         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
8605         signature can change.
8606         (ipcp_estimate_growth): Call sequence simplify only if calle signature
8607         can change.
8608         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
8609         (cgraph_function_versioning): We can not change signature of functions
8610         that don't allow that.
8611         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
8612         (lto_input_node): Likewise.
8613         * ipa-inline.c (compute_inline_parameters): Compute
8614         local.can_change_signature.
8615         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
8616         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
8617         functions that can not change signature.
8618         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
8619         init_cumulative_args): Do not use local calling conventions
8620         for functions that can not change signature.
8622 2011-01-22  Jan Hubicka  <jh@suse.cz>
8624         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
8626 2011-01-26  Richard Guenther  <rguenther@suse.de>
8628         PR tree-optimization/47190
8629         * cgraphunit.c (process_common_attributes): New function.
8630         (process_function_and_variable_attributes): Use it.
8632 2011-01-26  Richard Guenther  <rguenther@suse.de>
8634         PR lto/47423
8635         * cgraphbuild.c (record_eh_tables): Record reference to personality
8636         function.
8638 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
8640         PR debug/45454
8641         * sel-sched.c (moveup_expr): Don't let debug insns prevent
8642         non-debug insns from moving up.
8644 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
8646         PR target/40125
8647         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
8648         t-dlldir{,-x} fragment for build and add it to tmake_file.
8649         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
8650         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
8651         * config/i386/t-dlldir: New file.
8652         (SHLIB_DLLDIR): Define.
8653         * config/i386/t-dlldir-x: New file.
8654         (SHLIB_DLLDIR): Define.
8655         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
8656         (SHLIB_INSTALL): Use it.
8658 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
8660         PR target/47246
8661         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
8662         lower bound of the allowed Thumb-2 coprocessor load/store
8663         index range to -256. Add explaining comment.
8665 2011-01-25  Ian Lance Taylor  <iant@google.com>
8667         * godump.c (go_define): Improve lexing of macro expansion to only
8668         accept expressions which match Go spec.
8670 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
8672         PR c++/43601
8673         * tree.c (handle_dll_attribute): Handle it.
8674         * doc/extend.texi (@item dllexport): Mention it.
8675         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
8677 2011-01-25  Ian Lance Taylor  <iant@google.com>
8679         PR tree-optimization/26854
8680         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
8681         (decl_jump_unsafe): Move higher in file, with no other change.
8682         (bind): Set has_jump_unsafe_decl if appropriate.
8683         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
8684         (check_earlier_gotos): Likewise.
8685         (c_check_switch_jump_warnings): Likewise.
8687 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
8689         * doc/invoke.texi (Warning Options): Add missing hyphen.
8690         (-fprofile-dir): Minor grammatical fixes.
8691         (-fbranch-probabilities): Likewise.
8693 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
8695         PR debug/45136
8696         PR debug/45130
8697         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8698         debug insns.
8699         (no_real_insns_p, schedule_block, set_priorities): Drop special
8700         treatment of boundary debug insns.
8701         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8702         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8703         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8704         (BOUNDARY_DEBUG_INSN_P): Likewise.
8705         (SCHEDULE_DEBUG_INSN_P): Likewise.
8706         * sched-rgn.c (init_ready_list): Drop special treatment of
8707         boundary debug insns.
8708         * final.c (rest_of_clean-state): Clear notes' BB.
8710 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8712         * Makefile.in (LAMBDA_H): Removed.
8713         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
8714         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
8715         lambda-trans.o, and tree-loop-linear.o.
8716         (lto-symtab.o): Remove dependence on LAMBDA_H.
8717         (tree-loop-linear.o): Remove rule.
8718         (lambda-mat.o): Same.
8719         (lambda-trans.o): Same.
8720         (lambda-code.o): Same.
8721         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
8722         (tree-vect-slp.o): Same.
8723         * hwint.h (gcd): Moved here.
8724         (least_common_multiple): Same.
8725         * lambda-code.c: Removed.
8726         * lambda-mat.c: Removed.
8727         * lambda-trans.c: Removed.
8728         * lambda.h: Removed.
8729         * tree-loop-linear.c: Removed.
8730         * lto-symtab.c: Do not include lambda.h.
8731         * omega.c (gcd): Removed.
8732         * passes.c (init_optimization_passes): Remove pass_linear_transform.
8733         * tree-data-ref.c (print_lambda_vector): Moved here.
8734         (lambda_vector_copy): Same.
8735         (lambda_matrix_copy): Same.
8736         (lambda_matrix_id): Same.
8737         (lambda_vector_first_nz): Same.
8738         (lambda_matrix_row_add): Same.
8739         (lambda_matrix_row_exchange): Same.
8740         (lambda_vector_mult_const): Same.
8741         (lambda_vector_negate): Same.
8742         (lambda_matrix_row_negate): Same.
8743         (lambda_vector_equal): Same.
8744         (lambda_matrix_right_hermite): Same.
8745         * tree-data-ref.h: Do not include lambda.h.
8746         (lambda_vector): Moved here.
8747         (lambda_matrix): Same.
8748         (dependence_level): Same.
8749         (lambda_transform_legal_p): Removed declaration.
8750         (lambda_collect_parameters): Same.
8751         (lambda_compute_access_matrices): Same.
8752         (lambda_vector_gcd): Same.
8753         (lambda_vector_new): Same.
8754         (lambda_vector_clear): Same.
8755         (lambda_vector_lexico_pos): Same.
8756         (lambda_vector_zerop): Same.
8757         (lambda_matrix_new): Same.
8758         * tree-flow.h (least_common_multiple): Removed declaration.
8759         * tree-parloops.c (lambda_trans_matrix): Moved here.
8760         (LTM_MATRIX): Same.
8761         (LTM_ROWSIZE): Same.
8762         (LTM_COLSIZE): Same.
8763         (LTM_DENOMINATOR): Same.
8764         (lambda_trans_matrix_new): Same.
8765         (lambda_matrix_vector_mult): Same.
8766         (lambda_transform_legal_p): Same.
8767         * tree-pass.h (pass_linear_transform): Removed declaration.
8768         * tree-ssa-loop.c (tree_linear_transform): Removed.
8769         (gate_tree_linear_transform): Removed.
8770         (pass_linear_transform): Removed.
8771         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
8772         flag_loop_interchange.
8774 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8776         PR tree-optimization/47265
8777         PR tree-optimization/47443
8778         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
8779         if name still has some uses.
8781 2011-01-25  Martin Jambor  <mjambor@suse.cz>
8783         PR tree-optimization/47382
8784         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
8785         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
8787 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
8789         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
8790         sjlj_except_unwind_info.
8792 2011-01-25  Richard Guenther  <rguenther@suse.de>
8794         PR tree-optimization/47426
8795         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
8796         visible functions results escape.
8798 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8800         PR target/45701
8801         * config/arm/arm.c (any_sibcall_uses_r3): New function.
8802         (arm_get_frame_offsets): Use it.
8804 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8805             Jakub Jelinek  <jakub@redhat.com>
8807         PR tree-optimization/47271
8808         * tree-if-conv.c (bb_postdominates_preds): New.
8809         (if_convertible_bb_p): Call bb_postdominates_preds.
8810         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
8811         (predicate_scalar_phi): Call bb_postdominates_preds.
8813 2011-01-25  Nick Clifton  <nickc@redhat.com>
8815         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
8816         * config/rx/rx.c (rx_function_value): Likewise.
8817         (rx_promote_function_mode): Likewise.
8818         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
8819         in order to make it legitimate.
8820         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
8821         make sure that the first operand is the same as the result register.
8822         (addsi3_unspec): Delete.
8823         (subdi3): Do not accept immediate operands.
8824         (subdi3_internal): Likewise.
8826 2011-01-25  Jeff Law  <law@redhat.com>
8828         PR rtl-optimization/37273
8829         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8830         handle them like argument loads from stack slots.  Do not double
8831         count memory for memory constants and argument loads from stack slots.
8833 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8835         PR tree-optimization/47427
8836         PR tree-optimization/47428
8837         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8838         coalesce if the new root var would be TREE_READONLY.
8840 2011-01-25  Richard Guenther  <rguenther@suse.de>
8842         PR middle-end/47414
8843         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
8844         correct type for TBAA.
8846 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8848         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
8849         (close_phi_written_to_memory): Call for_each_index with
8850         dr_indices_valid_in_loop.
8852 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8854         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
8855         when it is initialized.
8857 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8859         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
8860         call to graphite_find_data_references_in_stmt.
8861         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
8862         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
8863         call to graphite_find_data_references_in_stmt.
8864         (analyze_drs_in_stmts): Same.
8865         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
8866         in which the scalar analysis of indices is performed.
8867         (create_data_ref): Same.  Update call to dr_analyze_indices.
8868         (find_data_references_in_stmt): Update call to create_data_ref.
8869         (graphite_find_data_references_in_stmt): Same.
8870         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
8871         declaration.
8872         (create_data_ref): Same.
8873         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
8874         call to create_data_ref.
8876 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8878         * graphite-sese-to-poly.c (build_poly_scop): Move
8879         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
8881 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8883         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
8884         VAR_DECL, PARM_DECL, and RESULT_DECL.
8886 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8888         * graphite-dependences.c (reduction_dr_1): Allow several reductions
8889         in a reduction PBB.
8890         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
8891         that have already been marked as PBB_IS_REDUCTION.
8893 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8895         * graphite-scop-detection.c (same_close_phi_node): New.
8896         (remove_duplicate_close_phi): New.
8897         (make_close_phi_nodes_unique): New.
8898         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
8900 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8902         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
8903         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
8904         of both data references to be the same.
8906 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8908         * graphite-dependences.c (build_lexicographical_constraint): Remove
8909         the gdim parameter.
8910         (build_lexicographical_constraint): Adjust call to
8911         ppl_powerset_is_empty.
8912         (dependence_polyhedron): Same.
8913         (graphite_legal_transform_dr): Same.
8914         (graphite_carried_dependence_level_k): Same.
8915         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
8916         parameter.
8917         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
8919 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8921         * graphite-sese-to-poly.c
8922         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
8923         (close_phi_written_to_memory): New.
8924         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
8925         and unshare_expr.
8927 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8929         * doc/install.texi: Update the expected version number of PPL to 0.11.
8930         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
8931         #if PPL_VERSION_MINOR < 11.
8933 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8935         * graphite-dependences.c: Include graphite-cloog-util.h.
8936         (new_poly_ddr): Inlined into dependence_polyhedron.
8937         (free_poly_ddr): Moved close by new_poly_ddr.
8938         (dependence_polyhedron_1): Renamed dependence_polyhedron.
8939         Early return NULL when ppl_powerset_is_empty returns true.
8940         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
8941         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
8942         (graphite_legal_transform_dr): Call new_poly_ddr.
8943         (graphite_carried_dependence_level_k): Same.
8944         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
8945         (dot_transformed_deps_stmt_1): Removed.
8946         (dot_deps_stmt_1): Call dot_deps_stmt_2.
8947         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
8948         (dot_deps_1): Call dot_deps_2.
8949         * Makefile.in (graphite-dependences.o): Add missing dependence on
8950         graphite-cloog-util.h.
8952 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8954         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
8955         (build_lexicographical_constraint): Same.
8956         (dependence_polyhedron_1): Same.
8957         (graphite_legal_transform_dr): Same.
8958         (graphite_carried_dependence_level_k): Same.
8959         * graphite-ppl.c (ppl_powerset_is_empty): New.
8960         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
8961         * tree-data-ref.c (dump_data_reference): Print the basic block index.
8963 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8965         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
8966         the "a followed by b" relation and document it.
8968 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8970         * graphite-dependences.c (build_lexicographical_constraint): Stop the
8971         iteration when the bag of constraints is empty.
8973 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8975         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
8977 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8979         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
8980         nest and two loop depths as parameters.
8981         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
8982         lst_perfect_nestify.
8984 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8986         * graphite-dependences.c (print_pddr): Call
8987         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
8989 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8991         * graphite-ppl.c (debug_gmp_value): New.
8992         * graphite-ppl.h (debug_gmp_value): Declared.
8994 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
8996         * doc/install.texi: Document availability of cloog-0.16.
8998 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
9000         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9001         invalid postdominance info.
9003 2011-01-24  Jan Hubicka  <jh@suse.cz>
9005         PR c/21659
9006         * doc/extend.texi (weak pragma): Drop claim that it must
9007         appear before definition.
9008         * varasm.c (merge_weak, declare_weak): Only sanity check
9009         that DECL is not output at a time it is declared weak.
9011 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
9013         * machmode.def: Fixed comments.
9015 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
9017         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9019 2011-01-24  Paul Koning  <ni1d@arrl.net>
9021         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9022         WORDS_BIG_ENDIAN.
9024 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
9026         PR target/46519
9027         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9028         (block_info): Add scanned and prev.
9029         (move_or_delete_vzeroupper_2): Return if the basic block
9030         has been scanned and the upper 128bit state is unchanged
9031         from the last scan.
9032         (move_or_delete_vzeroupper_1): Return true if the exit
9033         state is changed.
9034         (move_or_delete_vzeroupper): Visit basic blocks using the
9035         work-list based algorithm based on vt_find_locations in
9036         var-tracking.c.
9038         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9040 2011-01-24  Nick Clifton  <nickc@redhat.com>
9042         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9043         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9044         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
9045         then define __v850e1__.
9046         * doc/invoke.texi: Document -mv850es.
9048 2011-01-24  Richard Henderson  <rth@redhat.com>
9050         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9051         compound unordered comparisons.
9052         * config/rx/rx.c (rx_split_fp_compare): Remove.
9053         * config/rx/rx-protos.h: Update.
9054         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9055         (cbranchsf4): Don't call rx_split_fp_compare.
9056         (*cbranchsf4): Use rx_split_cbranch.
9057         (*cmpsf): Don't accept "i" constraint.
9058         (*conditional_branch): Only valid after reload.
9059         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
9061 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9063         PR target/47385
9064         * config/rs6000/altivec.md (vector constant splitters): Add
9065         support for creating vector single precision constants if -mvsx is
9066         used and we would create the constant using Altivec primitives.
9068 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
9069             Richard Sandiford  <rdsandiford@googlemail.com>
9071         PR rtl-optimization/47166
9072         * reload1.c (emit_reload_insns): Disable the spill_reg_store
9073         mechanism for PRE_MODIFY and POST_MODIFY.
9074         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9075         reloadreg.
9077 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
9079         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9081 2011-01-22  Jan Hubicka  <jh@suse.cz>
9083         PR lto/47333
9084         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9086 2011-01-22  Jan Hubicka  <jh@suse.cz>
9088         PR tree-optimization/43884
9089         PR lto/44334
9090         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9091         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9093 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
9095         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9096         * config/s390/s390.c (s390_register_move_cost,
9097         s390_memory_move_cost): New.
9098         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9100 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9102         PR middle-end/47401
9103         * except.c (sjlj_assign_call_site_values): Move setting the
9104         crtl->uses_eh_lsda flag to ...
9105         (sjlj_mark_call_sites): ... here.
9106         (sjlj_emit_function_enter): Support NULL dispatch label.
9107         (sjlj_build_landing_pads): In a function with no landing pads
9108         that still has must-not-throw regions, generate code to register
9109         a personality function with empty LSDA.
9111 2011-01-21  Richard Henderson  <rth@redhat.com>
9113         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9115         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9117         * compare-elim.c: New file.
9118         * Makefile.in (OBJS-common): Add it.
9119         (compare-elim.o): New.
9120         * common.opt (fcompare-elim): New.
9121         * opts.c (default_options_table): Add OPT_fcompare_elim.
9122         * tree-pass.h (pass_compare_elim_after_reload): New.
9123         * passes.c (init_optimization_passes): Add it.
9124         * recog.h: Protect against re-inclusion.
9125         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9126         * doc/invoke.texi (-fcompare-elim): Document it.
9127         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9128         * doc/tm.texi: Rebuild.
9130 2011-01-22  Nick Clifton  <nickc@redhat.com>
9132         * config/rx/rx.md (cstoresf4): Pass comparison operator to
9133         rx_split_fp_compare.
9135 2011-01-22  Nick Clifton  <nickc@redhat.com>
9137         * config/rx/rx.md (UNSPEC_CONST): New.
9138         (deallocate_and_return): Wrap the amount popped off the stack in
9139         an UNSPEC_CONST in order to stop it being rejected by
9140         -mmax-constant-size.
9141         (pop_and_return): Add a "(return)" rtx.
9142         (call): Drop the immediate operand.
9143         (call_internal): Likewise.
9144         (call_value): Likewise.
9145         (call_value_internal): Likewise.
9146         (sibcall_internal): Likewise.
9147         (sibcall_value_internal): Likewise.
9148         (sibcall): Likewise.  Generate an explicit call using
9149         sibcall_internal.
9150         (sibcall_value): Likewise.
9151         (mov<>): FAIL if a constant operand is not legitimate.
9152         (addsi3_unpsec): New pattern.
9154         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9155         (ok_for_max_constant): New function.
9156         (gen_safe_add): New function.
9157         (rx_expand_prologue): Use gen_safe_add.
9158         (rx_expand_epilogue): Likewise.
9159         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
9160         UNSPEC CONSTs.
9162 2011-01-21  Jeff Law  <law@redhat.com>
9164         PR tree-optimization/47053
9165         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9166         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9167         statements are deleted.
9168         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
9169         is nonempty, then purge dead edges and cleanup the CFG.
9171 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9173         PR debug/47402
9174         Temporarily revert:
9175         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9176         PR debug/47106
9177         * tree-dfa.c (create_var_ann): Mark variable as used.
9179 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9181         PR middle-end/45566
9182         * except.c (convert_to_eh_region_ranges): Emit queued no-region
9183         notes from other section in hot/cold partitioning even if
9184         last_action is -3.  Increment call_site_base.
9186         PR rtl-optimization/47366
9187         * fwprop.c (forward_propagate_into): Return bool.  If
9188         any changes are made, -fnon-call-exceptions is used and
9189         REG_EH_REGION note is present, call purge_dead_edges
9190         and return true if it purged anything.
9191         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9192         any EH edges were purged.
9194 2011-01-21  Jeff Law  <law@redhat.com>
9196         PR rtl-optimization/41619
9197         * caller-save.c (setup_save_areas): Break out code to determine
9198         which hard regs are live across calls by examining the reload chains
9199         so that it is always used.
9200         Eliminate code which checked REG_N_CALLS_CROSSED.
9202 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9204         PR tree-optimization/47355
9205         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9206         NOP has non-debug uses beyond PHIs in new_bb.
9208 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9210         PR debug/47106
9211         * cfgexpand.c (account_used_vars_for_block): Only account vars
9212         that are annotated as used.
9213         (estimated_stack_frame_size): Don't set TREE_USED.
9214         * tree-dfa.c (create_var_ann): Mark variable as used.
9216 2011-01-21  Richard Guenther  <rguenther@suse.de>
9218         PR middle-end/47395
9219         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9221 2011-01-21  Richard Guenther  <rguenther@suse.de>
9223         PR tree-optimization/47365
9224         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9225         (vn_reference_lookup_pieces): Adjust.
9226         (vn_reference_lookup): Likewise.
9227         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9228         (vn_reference_lookup_3): Only look through kills if in
9229         VN_WALKREWRITE mode.
9230         (vn_reference_lookup_pieces): Adjust.
9231         (vn_reference_lookup): Likewise.
9232         (visit_reference_op_load): Likewise.
9233         (visit_reference_op_store): Likewise.
9234         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9235         (compute_avail): Likewise.
9236         (eliminate): Likewise.
9238 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9240         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9241         DECL_IGNORED_P non-reg vars if they are used.
9243         PR tree-optimization/47391
9244         * varpool.c (const_value_known_p): Return false if
9245         decl is volatile.
9247 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
9249         PR bootstrap/47215
9250         * config/i386/i386.c (ix86_local_alignment): Handle
9251         case for va_list_type_node is nil.
9252         (ix86_canonical_va_list_type): Likewise.
9254 2011-01-21  Alan Modra  <amodra@gmail.com>
9256         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
9257         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
9259 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9261         * config/arm/arm.md (define_attr type): Rename f_load
9262         and f_store to f_fpa_load and f_fpa_store. Update.
9263         (write_conflict): Deal with rename fallout.
9264         (*push_fp_multi): Likewise.
9265         * config/arm/fpa.md (f_load): Use f_fpa_load.
9266         (f_store): Use f_fpa_store.
9267         (*movsf_fpa): Likewise.
9268         (*movdf_fpa): Likewise.
9269         (*movxf_fpa): Likewise.
9270         (*thumb2_movsf_fpa): Likewise.
9271         (*thumb2_movdf_fpa): Likewise.
9272         (*thumb2_movxf_fpa): Likewise.
9273         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
9274         f_loadd and f_stored.
9275         (*thumb2_movdi_vfp): Likewise.
9276         (*thumb2_movsf_vfp): Fix attribute to f_loads.
9277         (*thumb2_movsi_vfp): Likewise.
9278         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
9279         Use f_loads instead of f_load.
9280         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
9282 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
9284         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9285         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
9286         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9287         (xtensa_mode_dependent_address_p): New function.
9288         (constantpool_address_p): Make static. Change return type to bool.
9289         Change argument type to const_rtx. Use CONST_INT_P predicate.
9291 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
9293         PR debug/46583
9294         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
9296 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
9298         PR debug/47283
9299         * cfgexpand.c (expand_debug_expr): Instead of generating
9300         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
9301         etc. handling.
9303 2011-01-20  Richard Guenther  <rguenther@suse.de>
9305         PR middle-end/47370
9306         * tree-inline.c (remap_gimple_op_r): Recurse manually for
9307         the pointer operand of MEM_REFs.
9309 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
9311         PR tree-optimization/46130
9312         * ipa-split.c (consider_split): If return_bb contains non-virtual
9313         PHIs other than for retval or if split_function would not adjust it,
9314         refuse to split.
9316 2011-01-20  Richard Guenther  <rguenther@suse.de>
9318         PR tree-optimization/47167
9319         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9320         Revert previous change, only avoid enumeral type changes.
9322 2011-01-19  Mike Stump  <mikestump@comcast.net>
9324         * doc/tm.texi.in (BRANCH_COST): Englishify.
9325         * doc/tm.texi (BRANCH_COST): Likewise.
9327 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
9329         PR c++/47291
9330         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
9331         (gen_scheduled_generic_parms_dies): New functions.
9332         (gen_struct_or_union_type_die): Schedule template parameters DIEs
9333         generation for the end of CU compilation.
9334         (dwarf2out_finish): Generate template parameters DIEs here.
9336 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9338         PR debug/46240
9339         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
9340         debug bind stmt on merge edges.
9342 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9344         PR debug/47079
9345         PR debug/46724
9346         * function.c (instantiate_expr): Instantiate incoming rtl of
9347         implicit arguments, and recurse on VALUE_EXPRs.
9348         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
9349         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
9351 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9353         * c-parser.c (c_parser_for_statement): Initialize
9354         collection_expression.
9356 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9358         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
9360 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9362         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
9363         (LINK_SHLIB_SPEC): Don't use %(link_path).
9364         (SUBTARGET_EXTRA_SPECS): Remove link_path.
9366 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9368         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
9369         (NO_SHARED_LIB_SUPPORT): Remove.
9370         (LINK_SHLIB_SPEC): Remove one conditional definition.
9372 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9374         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
9375         %{call_shared}.
9376         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
9377         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
9378         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
9379         %{call_shared} and conditionals on these options not being passed.
9380         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
9381         %{call_shared}.
9383 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
9385         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
9386         simplify.
9388         * ipa-split.c: Spelling fixes.
9390 2011-01-19  Richard Henderson  <rth@redhat.com>
9392         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
9393         (*mulsi3): Likewise.
9395         * longlong.h [__mn10300__] (count_leading_zeros): New.
9396         [__mn10300__] (umul_ppmm, smul_ppmm): New.
9397         [__mn10300__] (add_ssaaaa, subddmmss): New.
9398         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
9399         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
9401 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9403         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
9405 2011-01-19  Richard Henderson  <rth@redhat.com>
9407         * config/mn10300/mn10300.md (addsi3_flags): New.
9408         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
9409         (subsi3_flags, subc_internal, subdi3): New.
9410         (subdi3_internal, *subdi3_degenerate): New.
9411         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
9413         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
9414         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
9415         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
9416         * config/mn10300/mn10300-protos.h: Update.
9417         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
9418         (return_ret): Likewise.  Rename from return_internal_regs.
9419         (return_internal): Remove.
9421         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
9422         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
9423         (mn10300_legitimate_constant_p): Likewise.
9424         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
9425         (mn10300_frame_size): New.
9426         (mn10300_expand_prologue): Use it.
9427         (mn10300_expand_epilogue): Likewise.
9428         (mn10300_initial_offset): Likewise.
9429         * config/mn10300/mn10300-protos.h: Update.
9430         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
9431         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
9432         (prologue, epilogue, return_internal): Tidy output code.
9433         (mn10300_store_multiple_operation, return): Likewise.
9434         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
9435         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
9436         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
9437         (load_pic, am33_load_pic): New.
9438         (mn10300_load_pic0, mn10300_load_pic1): New.
9440         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
9441         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
9442         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
9443         (cc_flags_for_mode, cc_flags_for_code): New.
9444         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
9445         overflow flag is not valid.  Validate that the flags we need
9446         for the comparison are valid.
9447         (mn10300_output_cmp): Remove.
9448         (mn10300_output_add): New.
9449         (mn10300_select_cc_mode): Use cc_flags_for_code.
9450         (mn10300_split_cbranch): New.
9451         (mn10300_match_ccmode): New.
9452         (mn10300_split_and_operand_count): New.
9453         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
9454         to the function.
9455         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
9456         (addsi3): ... here.  Use mn10300_output_add.
9457         (*addsi3_flags): New.
9458         (*am33_subsi3, *mn10300_subsi3): Merge...
9459         (subsi3): ... here.  Use attribute isa.
9460         (*subsi3_flags): New.
9461         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
9462         when possible.
9463         (*am33_andsi3, *mn10300_andsi3): Merge...
9464         (andsi3): ... here.
9465         (*andsi3_flags): New.
9466         (andsi3 splitters): New.
9467         (*am33_iorsi3, *mn10300_iorsi3): Merge...
9468         (iorsi3): ... here.
9469         (*iorsi3_flags): New.
9470         (*am33_xorsi3, *mn10300_xorsi3): Merge...
9471         (xorsi3): ... here.
9472         (*xorsi3_flags): New.
9473         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
9474         (one_cmplsi2): ... here.
9475         (*one_cmplsi2_flags): New.
9476         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
9477         instead of "dax" in constraints.  Use mn10300_split_cbranch.
9478         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
9479         use matching constraints to eliminate a self-comparison.
9480         (*integer_conditional_branch): Rename from integer_conditional_branch.
9481         Use int_mode_flags to match CC_REG.
9482         (*cbranchsi4_btst, *btstsi): New.
9483         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
9484         mn10300_split_cbranch.
9485         (*am33_cmpsf): Rename from am33_cmpsf.
9486         (*float_conditional_branch): Rename from float_conditional_branch.
9487         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
9488         (zero_extendqisi2): ... here.
9489         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
9490         (zero_extendhisi2): ... here.
9491         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
9492         (extendqisi2): ... here.
9493         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
9494         (extendhisi2): ... here.
9495         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
9496         (ashlsi3): ... here.
9497         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
9498         (lshrsi3): ... here.
9499         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
9500         (ashrsi3): ... here.
9501         (consecutive add peephole): Remove.
9502         * config/mn10300/predicates.md (label_ref_operand): New.
9503         (int_mode_flags): New.
9504         (CCZN_comparison_operator): New.
9506         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
9507         (throughput_42_latency_43): New reservation.
9508         (mulsidi3, umulsidi3): New expanders.
9509         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
9510         the MDR register to allocation; separately allocate the low and
9511         high parts of the DImode result.
9512         (umulsidi3_internal): Similarly.
9513         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
9514         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
9515         (udivsi3, umodsi3): Remove.
9516         (udivmodsi4, divmodsi4): New expanders.
9517         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
9518         (*divmodsi4): Simiarly.
9519         (ext_internal): New.
9521         * config/mn10300/constraints.md ("z"): New constraint.
9522         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
9523         (FIXED_REGISTERS): Don't fix MDR.
9524         (CALL_USED_REGSITERS): Reformat nicely.
9525         (REG_ALLOC_ORDER): Add MDR.
9526         (enum regclass): Add MDR_REGS.
9527         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
9528         (IRA_COVER_CLASSES): Add MDR_REGS.
9529         (REGNO_REG_CLASS): Handle MDR_REG.
9530         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
9531         (mn10300_register_move_cost): Likewise.
9532         * config/mn10300/mn10300.md (MDR_REG): New.
9533         (*movsi_internal): Handle moves to/from MDR_REGS.
9535         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
9536         POST_MODIFY.
9537         (mn10300_secondary_reload): Tidy combination reload classes.
9538         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
9539         addresses for AM33.  Allow symbolic offsets for reg+imm.
9540         (mn10300_regno_in_class_p): New.
9541         (mn10300_legitimize_reload_address): New.
9542         * config/mn10300/mn10300.h (enum reg_class): Remove
9543         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
9544         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
9545         SP_OR_GENERAL_REGS.
9546         (REG_CLASS_NAMES): Update to match.
9547         (REG_CLASS_CONTENTS): Likewise.
9548         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
9549         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
9550         (REGNO_IN_RANGE_P): Remove.
9551         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
9552         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
9553         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
9554         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
9555         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
9556         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
9557         (REGNO_GENERAL_P): New.
9558         (HAVE_POST_MODIFY_DISP): New.
9559         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
9560         (LEGITIMIZE_RELOAD_ADDRESS): New.
9561         * config/mn10300/mn10300-protos.h: Update.
9563         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
9564         DATA_REGS for AM33 stack-pointer destination.
9565         (mn10300_preferred_output_reload_class): Likewise.
9566         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
9567         into a form appropriate for ...
9568         (TARGET_SECONDARY_RELOAD): New.
9569         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
9570         * config/mn10300/mn10300-protos.h: Update.
9571         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
9572         reload_insi; use the "A" constraint for the scratch; handle AM33
9573         moves of sp to non-address registers.
9575         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
9576         (*movqi_internal): ... here.
9577         (*am33_movhi, *mn10300_movhi): Merge into...
9578         (*movhi_internal): ... here.
9579         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
9580         as the source/destination of moves from/to SP.
9581         (movsf): Only allow for AM33-2.
9582         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
9583         any integer constant constraint.  Only allow for AM33-2.  Tidy
9584         all of the alternative outputs.
9585         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
9586         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
9587         for MN103.
9588         (udivsi3, umodsi3): New patterns for MN103 only.
9590 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
9592         * doc/tm.texi.in: Spell out that a lack of register class unions
9593         can lead to ICEs.
9594         * doc/tm.texi: Regenerate.
9596 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
9598         PR rtl-optimization/47337
9599         * dce.c (check_argument_store): New function.
9600         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
9602         PR tree-optimization/47290
9603         * tree-eh.c (infinite_empty_loop_p): New function.
9604         (cleanup_empty_eh): Use it.
9606 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
9608         PR target/46997
9609         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
9610         (a64_expand_widen_sum): Ditto.
9611         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
9612         (vec_extract_evenodd_help): Ditto.
9613         (vec_extract_evenv4hi): Ditto.
9614         (vec_extract_oddv4hi): Ditto.
9615         (vec_extract_evenv2si): Ditto.
9616         (vec_extract_oddv2si): Ditto.
9617         (vec_extract_evenv2sf): Ditto.
9618         (vec_extract_oddv2sf): Ditto.
9619         (vec_pack_trunc_v4hi: Ditto.
9620         (vec_pack_trunc_v2si): Ditto.
9621         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
9622         (vec_interleave_highv8qi): Ditto.
9623         (mix1_r): Ditto.
9624         (vec_extract_oddv8qi): Ditto.
9625         (vec_interleave_lowv4hi): Ditto.
9626         (vec_interleave_highv4hi): Ditto.
9627         (vec_interleave_lowv2si): Ditto.
9628         (vec_interleave_highv2si): Ditto.
9630 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9632         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
9633         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
9634         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
9635         (pa_c_mode_for_suffix): New.
9636         (TARGET_EXPAND_BUILTIN): Define.
9637         (TARGET_C_MODE_FOR_SUFFIX): Define.
9638         (pa_builtins): Define.
9639         (pa_init_builtins): Register __float128 type and init new support
9640         builtins.
9641         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
9642         * config/pa/quadlib.c (_U_Qfcopysign): New.
9644 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
9646         PR middle-end/46894
9647         * explow.c (allocate_dynamic_stack_space): Do not assume more than
9648         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
9649         are defined.
9651 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9653         PR tree-optimization/47179
9654         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
9655         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
9657 2011-01-18  Richard Guenther  <rguenther@suse.de>
9659         PR rtl-optimization/47216
9660         * emit-rtl.c: Include tree-flow.h.
9661         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
9662         of replicating it with different semantics.
9663         * Makefile.in (emit-rtl.o): Adjust.
9665 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9667         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
9668         (cortex_a9_dp): Handle neon types correctly.
9670 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
9672         PR rtl-optimization/47299
9673         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
9674         subtarget.  Use normal multiplication if both operands are constants.
9675         * expmed.c (expand_widening_mult): Don't try to optimize constant
9676         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
9677         before using it.
9679 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9681         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
9682         spacing after 'e.g.', typos, comma, hyphenation.
9684 2011-01-17  Richard Henderson  <rth@redhat.com>
9686         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
9687         (rx_restricted_mem_operand): New.
9688         (rx_shift_operand): Use register_operand.
9689         (rx_source_operand, rx_compare_operand): Likewise.
9690         * config/rx/rx.md (addsi3_flags): New expander.
9691         (adddi3): Rewrite as expander.
9692         (adc_internal, *adc_flags, adddi3_internal): New patterns.
9693         (subsi3_flags): New expander.
9694         (subdi3): Rewrite as expander.
9695         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
9697         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
9698         (rx_init_builtins): Remove sat builtin.
9699         (rx_expand_builtin): Likewise.
9700         * config/rx/rx.md (ssaddsi3): New.
9701         (*sat): Rename from sat.  Represent the CC_REG input.
9703         * config/rx/predicates.md (rshift_operator): New.
9704         * config/rx/rx.c (rx_expand_insv): Remove.
9705         * config/rx/rx-protos.h: Update.
9706         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
9707         operand to the canonical position.
9708         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
9709         (*bitclr, *bitclr_in_memory): Similarly.
9710         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
9711         (insv): Retain the zero_extract in the expansion.
9713         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
9714         (bswaphi2, bitinvert, revw): Likewise.
9716         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
9717         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
9718         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
9719         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
9720         (bitset, bitset_in_memory): Likewise.
9721         (bitinvert, bitinvert_in_memory): Likewise.
9722         (bitclr, bitclr_in_memory): Likewise.
9723         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
9724         (rx_strend, rx_cmpstrn): Likewise.
9725         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
9726         (bitop peep2 patterns): Remove.
9728         * config/rx/rx.c (rx_match_ccmode): New.
9729         * config/rx/rx-protos.h: Update.
9730         * config/rx/rx.md (abssi2): Clobber, don't set flags.
9731         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
9732         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
9733         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
9734         (fix_truncsfsi2, floatsisf2): Likewise.
9735         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
9736         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
9737         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
9738         (*subsi3_flags, *xorsi3_flags): New.
9740         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
9742         * config/rx/rx.c (rx_print_operand): Remove workaround for
9743         unsplit comparison operations.
9745         * config/rx/rx.md (movsicc): Split after reload.
9746         (*movsicc): Merge *movsieq and *movsine via match_operator.
9747         (*stcc): New pattern.
9749         * config/rx/rx.c (rx_float_compare_mode): Remove.
9750         * config/rx/rx.h (rx_float_compare_mode): Remove.
9751         * config/rx/rx.md (cstoresi4): Split after reload.
9752         (*sccc): New pattern.
9754         * config/rx/predicates.md (label_ref_operand): New.
9755         (rx_z_comparison_operator): New.
9756         (rx_zs_comparison_operator): New.
9757         (rx_fp_comparison_operator): New.
9758         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
9759         Validate that the flags are set properly for the comparison.
9760         (rx_gen_cond_branch_template): Remove.
9761         (rx_cc_modes_compatible): Remove.
9762         (mode_from_flags): New.
9763         (flags_from_code): Rename from flags_needed_for_conditional.
9764         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
9765         (rx_select_cc_mode): Likewise.
9766         (rx_split_fp_compare): New.
9767         (rx_split_cbranch): New.
9768         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
9769         (*cbranchsi4): Use match_operator and rx_split_cbranch.
9770         (*cbranchsf4): Similarly.
9771         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
9772         match_operator and rx_split_cbranch.
9773         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
9774         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
9775         (*cmpsi): Rename from cmpsi.
9776         (*tstsi): Rename from tstsi.
9777         (*cmpsf): Rename from cmpsf; use CC_Fmode.
9778         (*conditional_branch): Rename from conditional_branch.
9779         (*reveresed_conditional_branch): Remove.
9780         (b<code>): Remove expander.
9781         * config/rx/rx-protos.h: Update.
9783         * config/rx/rx.c (rx_compare_redundant): Remove.
9784         * config/rx/rx.md (cmpsi): Don't use it.
9785         * config/rx/rx-protos.h: Update.
9787         * config/rx/rx-modes.def (CC_F): New mode.
9788         * config/rx/rx.c (rx_select_cc_mode): New.
9789         * config/rx/rx.h (SELECT_CC_MODE): Use it.
9790         * config/rx/rx-protos.h: Update.
9792 2011-01-17  Richard Henderson  <rth@redhat.com>
9794         * except.c (dump_eh_tree): Fix stray ; after for statement.
9796 2011-01-17  Richard Guenther  <rguenther@suse.de>
9798         PR tree-optimization/47313
9799         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
9800         handling before copying the body.  Properly deal with
9801         by-reference result in SSA form.
9803 2011-01-17  Ian Lance Taylor  <iant@google.com>
9805         PR target/47219
9806         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
9807         (struct_value_alias_set): Don't define.
9808         (sparc_option_override): Don't set sparc_sr_alias_set and
9809         struct_value_alias_set.
9810         (save_or_restore_regs): Use gen_frame_mem rather than calling
9811         set_mem_alias_set.
9812         (sparc_struct_value_rtx): Likewise.
9814 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
9816         PR target/47318
9817         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
9818         (_mm_maskstore_pd): Likewise.
9819         (_mm_maskload_ps): Likewise.
9820         (_mm_maskstore_ps): Likewise.
9821         (_mm256_maskload_pd): Change mask to __m256i.
9822         (_mm256_maskstore_pd): Likewise.
9823         (_mm256_maskload_ps): Likewise.
9824         (_mm256_maskstore_ps): Likewise.
9826         * config/i386/i386-builtin-types.def: Updated.
9827         (ix86_expand_special_args_builtin): Likewise.
9829         * config/i386/i386.c (bdesc_special_args): Update
9830         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
9831         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
9832         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
9833         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
9835         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
9836         Use <avxpermvecmode> on mask register.
9837         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
9839 2011-01-17  Olivier Hainque  <hainque@adacore.com>
9840             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9841             Eric Botcazou  <ebotcazou@adacore.com>
9843         PR target/46655
9844         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
9845         if <= USHRT_MAX in 32-bit mode.
9847 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9849         * doc/install.texi (Configuration, Specific): Wrap long
9850         lines in examples.  Allow line wrapping in long options
9851         and URLs where beneficial for PDF output.
9853 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
9855         * config/mips/mips.c (mips_classify_symbol): Don't return
9856         SYMBOL_PC_RELATIVE for nonlocal labels.
9858 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
9860         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
9862 2011-01-15  Jan Hubicka  <jh@suse.cz>
9864         PR tree-optimization/47276
9865         * ipa.c (function_and_variable_visibility): Do not try to mark alias
9866         declarations as needed.
9868 2011-01-15  Martin Jambor  <mjambor@suse.cz>
9870         * common.opt (fdevirtualize): New flag.
9871         * doc/invoke.texi (Option Summary): Document it.
9872         * opts.c (default_options_table): Add devirtualize flag.
9873         * ipa-prop.c (detect_type_change): Return immediately if
9874         devirtualize flag is not set.
9875         (detect_type_change_ssa): Likewise.
9876         (compute_known_type_jump_func): Likewise.
9877         (ipa_analyze_virtual_call_uses): Likewise.
9879 2011-01-14  Martin Jambor  <mjambor@suse.cz>
9881         PR tree-optimization/45934
9882         PR tree-optimization/46302
9883         * ipa-prop.c (type_change_info): New type.
9884         (stmt_may_be_vtbl_ptr_store): New function.
9885         (check_stmt_for_type_change): Likewise.
9886         (detect_type_change): Likewise.
9887         (detect_type_change_ssa): Likewise.
9888         (compute_complex_assign_jump_func): Check for dynamic type change.
9889         (compute_complex_ancestor_jump_func): Likewise.
9890         (compute_known_type_jump_func): Likewise.
9891         (compute_scalar_jump_functions): Likewise.
9892         (ipa_analyze_virtual_call_uses): Likewise.
9893         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
9895 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9897         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
9898         * config/i386/i386.opt (msse5): New Alias.
9900 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9902         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9903         * config/sparc/linux64.h (CC1_SPEC): Likewise.
9904         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9905         * config/sparc/sparc.h (CC1_SPEC): Likewise.
9907 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9909         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
9910         -mcpu options.
9911         * config/sparc/linux64.h (CC1_SPEC): Likewise.
9912         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9913         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
9914         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
9915         Likewise.
9916         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
9918 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9920         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
9922 2011-01-14  Mike Stump  <mikestump@comcast.net>
9924         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
9925         * config/fr30/fr30.md: Likweise
9926         (movsi_push): Likewise.
9927         (movsi_pop): Likewise.
9928         (enter_func): Likewise.
9929         * config/moxie/moxie.md (movsi_push): Likewise.
9930         (movsi_pop): Likewise.
9932 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9934         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
9935         %{no_archive} %{exact_version}.
9936         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
9937         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
9938         %{no_archive} %{exact_version}.
9939         * config/mips/openbsd.h (LINK_SPEC): Likewise.
9940         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
9941         * config/mips/vxworks.h: Likewise.
9943 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9945         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
9947 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9949         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
9950         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
9952 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9954         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
9955         -nodefaultlib.
9957 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9959         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
9960         for mcpu not cpu.
9961         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
9962         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
9963         not cpu.
9964         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
9965         Don't handle -shlib.
9967 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9969         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
9970         (CC1_SPEC): Don't handle -profile.
9972 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9974         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
9975         * config/mips/mips.h (CC1_SPEC): Likewise.
9977 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9979         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
9980         * config/mips/mips.h (CC1_SPEC): Likewise.
9982 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9984         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
9985         * config/m32r/linux.h (LINK_SPEC): Likewise.
9986         * config/mips/linux.h (LINK_SPEC): Likewise.
9987         * config/mips/linux64.h (LINK_SPEC): Likewise.
9988         * config/sparc/linux.h (LINK_SPEC): Likewise.
9989         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9990         LINK_SPEC): Likewise.
9991         * config/xtensa/linux.h (LINK_SPEC): Likewise.
9993 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9995         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
9996         %{version:-v}.
9997         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
9999 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10001         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10002         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10004 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10006         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10008 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10010         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10011         supports -Bstatic/-Bdynamic.
10012         * configure: Regenerate.
10014 2011-01-14  Jan Hubicka  <jh@suse.cz>
10015             Jack Howarth  <howarth@bromo.med.uc.edu>
10017         PR target/46037
10018         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10019         when checking debug_info_level. Test write_symbols instead of
10020         debug_hooks->var_location when setting flag_var_tracking_uninit.
10022 2011-01-14  Richard Guenther  <rguenther@suse.de>
10024         PR tree-optimization/47179
10025         * target.def (ref_may_alias_errno): New target hook.
10026         * targhooks.h (default_ref_may_alias_errno): Declare.
10027         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10028         (default_ref_may_alias_errno): New function.
10029         * target.h (struct ao_ref_s): Declare.
10030         * tree-ssa-alias.c: Include target.h.
10031         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10032         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10033         (targhooks.o): Likewise.
10034         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10035         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10037 2011-01-14  Richard Guenther  <rguenther@suse.de>
10039         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
10041 2011-01-14  Richard Guenther  <rguenther@suse.de>
10043         PR tree-optimization/47280
10044         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10045         return CFG changes.
10046         (tree_ssa_forward_propagate_single_use_vars): Deal with
10047         CFG changes from associate_plusminus.
10049 2011-01-14  Richard Guenther  <rguenther@suse.de>
10051         PR middle-end/47281
10052         Revert
10053         2011-01-11  Richard Guenther  <rguenther@suse.de>
10055         PR tree-optimization/46076
10056         * tree-ssa.c (useless_type_conversion_p): Conversions from
10057         unprototyped to empty argument list function types are useless.
10059 2011-01-14  Richard Guenther  <rguenther@suse.de>
10061         PR tree-optimization/47286
10062         * tree-ssa-structalias.c (new_var_info): Register variables are global.
10064 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10066         PR middle-end/46823
10067         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10069 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
10071         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10072         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10073         * config/xtensa/xtensa.c (xtensa_libcall_value,
10074         xtensa_function_value_regno_p): New functions.
10075         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10077 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
10079         PR c++/47213
10080         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10081         PE specific hook.
10082         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10083         New function prototype.
10084         * config/i386/winnt.c (i386_pe_assemble_visibility):
10085         Warn only if attribute was specified by user.
10087 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10089         PR target/47251
10090         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10091         floating point.
10092         (floatunsdidf2_fcfidu): Ditto.
10094 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10096         * config/s390/s390.c (print_operand_address): Replace 'error' with
10097         'output_operand_lossage'.
10098         (print_operand): Likewise.
10100 2011-01-13  Jeff Law  <law@redhat.com>
10102         PR rtl-optimization/39077
10103         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10104         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10105         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10106         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10107         * gcse.c (prune_insertions_deletions): New function.
10108         (compute_pre_data): Use it.
10110 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
10112         PR debug/PR46973
10113         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10114         static function.
10115         (prune_unused_types_mark): Use it.
10117 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
10119         PR rtl-optimization/45352
10120         * sel-sched.c: Update copyright years.
10121         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10122         in the advancing loop when we have issued issue_rate insns.
10124 2011-01-12  Richard Henderson  <rth@redhat.com>
10126         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10127         (TARGET_MD_ASM_CLOBBERS): New.
10129         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10130         (TARGET_DELEGITIMIZE_ADDRESS): New.
10132         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10133         (clzsi2, *bsch): New patterns.
10135         * config/mn10300/mn10300.md (INT): New mode iterator.
10136         (*mov<INT>_clr): New pattern, and peep2 to generate it.
10138         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10139         flag_split_wide_types.
10141         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10142         (mn10300_trampoline_init): Rewrite without a template, an immediate
10143         load and a direct branch.
10144         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10146 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
10148         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10149         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10150         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10151         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10153 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
10155         PR debug/47209
10156         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10157         of type.
10159 2011-01-12  Jan Hubicka  <jh@suse.cz>
10161         PR driver/47244
10162         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10163         (PLUGIN_COND_CLOSE): New macro.
10164         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10166 2011-01-12  Richard Guenther  <rguenther@suse.de>
10168         PR lto/47259
10169         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10170         register variables in a MEM_REF.
10172 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
10174         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10175         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10176         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10177         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10178         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10179         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10180         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10181         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10182         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10183         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10184         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10185         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10186         * config/gnu-user.h: New.  Copied from linux.h.
10187         (LINUX_TARGET_STARTFILE_SPEC): Rename to
10188         GNU_USER_TARGET_STARTFILE_SPEC.
10189         (LINUX_TARGET_ENDFILE_SPEC): Rename to
10190         GNU_USER_TARGET_ENDFILE_SPEC.
10191         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10192         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10193         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10194         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10195         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10196         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10197         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10198         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10199         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10200         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10201         * config/arm/linux-eabi.h (CC1_SPEC): Use
10202         GNU_USER_TARGET_CC1_SPEC.
10203         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10204         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10205         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10206         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10207         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10208         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10209         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10210         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10212 2011-01-12  Richard Guenther  <rguenther@suse.de>
10214         PR other/46946
10215         * doc/invoke.texi (ffast-math): Document it is turned on
10216         with -Ofast.
10218 2011-01-12  Jan Hubicka  <jh@suse.cz>
10220         PR tree-optimization/47233
10221         * opts.c (common_handle_option): Disable ipa-reference with profile
10222         feedback.
10224 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10226         * c-parser.c (c_parser_objc_at_property_declaration): Improved
10227         error message.
10229 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10231         * c-parser.c (c_lex_one_token): Updated and reindented some
10232         comments.  No changes in code.
10234 2011-01-11  Ian Lance Taylor  <iant@google.com>
10236         * godump.c (go_output_var): Don't output the variable if there is
10237         already a type with the same name.
10239 2011-01-11  Ian Lance Taylor  <iant@google.com>
10241         * godump.c (go_format_type): Don't generate float80.
10243 2011-01-11  Richard Henderson  <rth@redhat.com>
10245         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10246         declaration.  Rewrite for both speed and size.
10247         (mn10300_address_cost_1): Remove.
10248         (mn10300_register_move_cost): New.
10249         (mn10300_memory_move_cost): New.
10250         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
10251         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
10252         extensions, shifts, BSWAP, CLZ.
10253         (mn10300_wide_const_load_uses_clr): Remove.
10254         (TARGET_REGISTER_MOVE_COST): New.
10255         (TARGET_MEMORY_MOVE_COST): New.
10256         * config/mn10300/mn10300-protos.h: Update.
10257         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
10259         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
10260         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
10261         * config/mn10300/mn10300-protos.h: Update.
10262         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
10263         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
10264         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
10265         (*test_int_bitfield, *test_byte_bitfield): Remove.
10266         (*bit_test, *subreg_bit_test): Remove.
10267         * config/mn10300/predicates.md (const_8bit_operand): Remove.
10269         * config/mn10300/constraints.md ("c"): Rename from "A".
10270         ("A", "D"): New constraint letters.
10271         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
10272         (fmssf4, fnmasf4, fnmssf4): Likewise.
10274         * config/mn10300/mn10300.md (isa): New attribute.
10275         (enabled): New attribute.
10277         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
10278         (abssf2, negsf2): Define only for hardware fp.
10279         (sqrtsf2): Reformat.
10280         (addsf3, subsf3, mulsf3): Merge expander and insn.
10282         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
10283         (DEBUGGER_AUTO_OFFSET): Remove.
10284         (DEBUGGER_ARG_OFFSET): Remove.
10286         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
10287         Emit register stores with the same offsets as the hardware.
10288         (mn10300_store_multiple_operation): Don't check that the register
10289         save offsets are monotonic.
10290         * config/mn10300/mn10300-protos.h: Update.
10292         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
10294         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
10295         in terms of the value on the stack, not the MDR register.
10297 2011-01-11  Jan Hubicka  <jh@suse.cz>
10299         PR lto/45721
10300         PR lto/45375
10301         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
10302         (symbol_alias_set_destroy, symbol_alias_set_contains,
10303         propagate_aliases_backward): Declare.
10304         * lto-streamer-out.c (struct sets): New sturcture.
10305         (trivally_defined_alias): New function.
10306         (output_alias_pair_p): Rewrite.
10307         (output_unreferenced_globals): Fix output of alias pairs.
10308         (produce_symtab): Likewise.
10309         * ipa.c (function_and_variable_visibility): Set weak alias destination
10310         as needed in lto.
10311         * varasm.c (symbol_alias_set_t): Remove.
10312         (symbol_alias_set_destroy): Export.
10313         (propagate_aliases_forward, propagate_aliases_backward): New functions
10314         based on ...
10315         (compute_visible_aliases): ... this one; remove.
10316         (trivially_visible_alias): New
10317         (trivially_defined_alias): New.
10318         (remove_unreachable_alias_pairs): Rewrite.
10319         (finish_aliases_1): Reorganize code checking if alias is defined.
10320         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
10321         in LTO mode.
10323 2011-01-11  Richard Guenther  <rguenther@suse.de>
10325         PR tree-optimization/46076
10326         * tree-ssa.c (useless_type_conversion_p): Conversions from
10327         unprototyped to empty argument list function types are useless.
10329 2011-01-11  Richard Guenther  <rguenther@suse.de>
10331         PR middle-end/45235
10332         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
10333         volatile MEMs as MEM_READONLY_P.
10335 2011-01-11  Richard Guenther  <rguenther@suse.de>
10337         PR tree-optimization/47239
10338         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
10340 2011-01-11  Jeff Law  <law@redhat.com>
10342         PR tree-optimization/47086
10343         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
10344         IVs from statements that might throw.
10346 2011-01-10  Jan Hubicka  <jh@suse.cz>
10348         PR lto/45375
10349         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
10351 2011-01-10  Jan Hubicka  <jh@suse.cz>
10353         PR lto/45375
10354         * profile.c (read_profile_edge_counts): Ignore profile inconistency
10355         when correcting profile.
10357 2011-01-10  Jan Hubicka  <jh@suse.cz>
10359         PR lto/46083
10360         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
10361         DECL_FINI_PRIORITY.
10362         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
10363         Restore DECL_FINI_PRIORITY.
10365 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10367         * doc/gimple.texi: Fix quoting of multi-word return values in
10368         @deftypefn statements.  Ensure presence of return value.  Wrap
10369         overlong @deftypefn lines.
10370         (is_gimple_operand, is_gimple_min_invariant_address): Remove
10371         descriptions of removed functions.
10372         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
10373         of multi-word return value in @deftypefn statement.
10375 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10377         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
10378         (Conditional Expressions, Logical Operators)
10379         (Statement and operand traversals): Do not indent smallexample
10380         code.  Fix duplicate function argument in example.
10382 2011-01-10  Jeff Law  <law@redhat.com>
10384         PR tree-optimization/47141
10385         * ipa-split.c (split_function): Handle case where we are
10386         returning a value and the return block has a virtual operand phi.
10388 2011-01-10  Jan Hubicka  <jh@suse.cz>
10390         PR tree-optimization/47234
10391         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
10392         (pass_feedback_split_functions): Declare.
10393         * passes.c (init_optimization_passes): Add ipa-split as subpass of
10394         tree-profile.
10395         * ipa-split.c (gate_split_functions): Update comments; disable
10396         split-functions for profile_arc_flag and branch_probabilities.
10397         (gate_feedback_split_functions): New function.
10398         (execute_feedback_split_functions): New function.
10399         (pass_feedback_split_functions): New global var.
10401 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10403         PR lto/46760
10404         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
10405         calling gimple_call_set_cannot_inline.
10407 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
10409         * config/darwin-sections.def: Remove unused section.
10411 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
10413         PR c++/47218
10414         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
10416 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
10418         PR objc/47232
10419         * c-parser.c (c_parser_declaration_or_fndef): Improved
10420         error message.
10422 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
10424         * config/i386/winnt.c (i386_pe_start_function): Make sure
10425         to switch back to function's section.
10427 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
10429         PR gcc/46902
10430         PR testsuite/46912
10431         * plugin.c: Move include of dlfcn.h from here...
10432         * system.h: ... to here.
10434 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10436         * doc/cpp.texi (C++ Named Operators): Fix markup for header
10437         file name.
10438         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
10439         two extra empty pages in PDF output.
10441 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
10443         PR objc/47078
10444         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
10445         for error recovery purposes behave as if it was not specified so
10446         that the default type is usd.
10448 2011-01-07  Jan Hubicka  <jh@suse.cz>
10450         PR tree-optmization/46469
10451         * ipa.c (function_and_variable_visibility): Clear needed flags on
10452         nodes with external decls; handle weakrefs merging correctly.
10454 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
10456         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
10457         not false.
10459 2011-01-07  Jan Hubicka  <jh@suse.cz>
10461         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
10462         and no longer claim that gold is required for linker plugin.
10463         * configure: Regenerate.
10464         * gcc.c (PLUGIN_COND): New macro.
10465         (LINK_COMMAND_SPEC): Use it.
10466         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
10467         * config.in (HAVE_LTO_PLUGIN): New.
10468         * configure.ac (--with-lto-plugin): New parameter; autodetect
10469         HAVE_LTO_PLUGIN.
10471 2011-01-07  Jan Hubicka  <jh@suse.cz>
10473         PR tree-optimization/46367
10474         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
10475         when we can update original.
10476         (cgraph_mark_inline_edge): Sanity check.
10477         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
10479 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10481         * config/spu/spu.h (ASM_COMMENT_START): Define.
10483 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
10485         PR driver/42445
10486         * gcc.c (%>S): New.
10487         (SWITCH_KEEP_FOR_GCC): Likewise.
10488         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
10489         (do_spec_1): Handle "%>".
10491         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
10493 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
10495         PR target/47201
10496         * config/i386/i386.c (ix86_delegitimize_address): If
10497         simplify_gen_subreg fails, return orig_x.
10499         PR bootstrap/47187
10500         * value-prof.c (gimple_stringop_fixed_value): Handle
10501         lhs of the call properly.
10503 2011-01-07  Jan Hubicka  <jh@suse.cz>
10505         PR lto/45375
10506         * lto-opt.c (lto_reissue_options): Set flag_shlib.
10508 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
10510         * target.def (function_switched_text_sections): New hook.
10511         * doc/tm.texi: Regenerated.
10512         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10513         * final.c (default_function_switched_text_sections): New.
10514         (final_scan_insn): Call function_switched_text_sections when a
10515         mid-function section change occurs.
10516         * output.h (default_function_switched_text_sections): Declare.
10517         * config/darwin-protos.h (darwin_function_switched_text_sections):
10518         Likewise.
10519         * config/darwin.c (darwin_function_switched_text_sections): New.
10520         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10522 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
10524         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
10525         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
10526         the secondary code fragment when outputting for DWARF == 2.
10528 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
10530         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10531         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
10532         Remove.
10533         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
10534         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10536 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
10538         PR debug/46704
10539         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
10540         when it is not empty.
10542 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
10544         Bobcat Enablement
10545         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
10546         (case ${target}): Add btver1.
10547         * config/i386/driver-i386.c (host_detect_local_cpu): Let
10548         -march=native recognize btver1 processors.
10549         * config/i386/i386-c.c (ix86_target_macros_internal): Add
10550         btver1 def_and_undef
10551         * config/i386/i386.c (struct processor_costs btver1_cost): New
10552         btver1 cost table.
10553         (m_BTVER1): New definition.
10554         (m_AMD_MULTIPLE): Includes m_BTVER1.
10555         (initial_ix86_tune_features): Add btver1 tune.
10556         (processor_target_table): Add btver1 entry.
10557         (static const char *const cpu_names): Add btver1 entry.
10558         (software_prefetching_beneficial_p): Add btver1.
10559         (ix86_option_override_internal): Add btver1 instruction sets.
10560         (ix86_issue_rate): Add btver1.
10561         (ix86_adjust_cost): Add btver1.
10562         * config/i386/i386.h (TARGET_BTVER1): New definition.
10563         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
10564         (enum processor_type): Add PROCESSOR_BTVER1.
10565         * config/i386/i386.md (define_attr "cpu"): Add btver1.
10567 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10569         PR target/43309
10570         * config/i386/i386.c (legitimize_tls_address)
10571         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
10572         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
10573         (tls_initial_exec_64_sun): New pattern.
10575 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
10577         * doc/invoke.texi (Overall Options): Improve wording and markup
10578         of the description of -wrapper.
10580 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
10582         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
10583         rdynamic, threads): New Driver options.
10585 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10587         PR target/38118
10588         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
10589         if coming from .tdata.
10590         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10592 2011-01-06  Jan Hubicka  <jh@suse.cz>
10594         PR lto/47188
10595         * collect2.c (main): Do not enable LTOmode when plugin is active.
10597 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10599         PR other/45915
10600         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
10601         --version output if supported.
10602         * configure: Regenerate.
10604 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
10606         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
10607         Driver options.
10609 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
10611         PR c/47150
10612         * c-convert.c (convert): When converting a complex expression
10613         other than COMPLEX_EXPR to a different complex type, ensure
10614         c_save_expr is called instead of save_expr, unless in_late_binary_op.
10615         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
10616         when converting COMPLEX_TYPE.
10618 2011-01-06  Ira Rosen  <irar@il.ibm.com>
10620         PR tree-optimization/47139
10621         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
10622         only the last reduction value is used outside the loop.  Update
10623         documentation.
10625 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
10627         * config/rtems.opt: New.
10628         * config.gcc (*-*-rtems*): Use rtems.opt.
10630 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
10632         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
10633         processors do not support 3DNow instructions.
10635 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10637         * config/spu/spu.c (spu_option_override): Set parameter
10638         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
10640 2011-01-05  Jan Hubicka  <jh@suse.cz>
10642         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
10643         at the command line.
10645 2011-01-05  Martin Jambor  <mjambor@suse.cz>
10647         PR lto/47162
10648         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
10649         deltas on streamed outgoing edges.
10650         (output_node_opt_summary): Output info for outgoing edges only when
10651         the node is in new parameter set.
10652         (output_cgraph_opt_summary): New parameter set, passed to the two
10653         aforementioned functions.  Update its forward declaration and its
10654         callee too.
10656 2011-01-05  Tom Tromey  <tromey@redhat.com>
10658         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
10659         operator to c_finish_omp_atomic.
10660         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
10661         (build_unary_op): Update.
10662         (build_modify_expr): Update.
10663         (build_asm_expr): Update.
10665 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10667         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
10668         newly inserted insns.
10669         (pad_bb): Likewise.
10670         (spu_emit_branch_hint): Likewise.
10671         (insert_hbrp_for_ilb_runout): Likewise.
10672         (spu_machine_dependent_reorg): Call df_finish_pass after
10673         schedule_insns returns.
10675 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10677         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
10679 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
10681         PR tree-optimization/47005
10682         * tree-sra.c (struct access): Add 'non_addressable' bit.
10683         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
10684         (decide_one_param_reduction): Return 0 if the parameter is passed by
10685         reference and one of the accesses in the group is non_addressable.
10687 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10689         PR tree-optimization/47056
10690         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
10691         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
10692         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
10694 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10696         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
10697         initializer.  Skip view conversions from aggregate types.
10699 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
10701         PR bootstrap/47055
10702         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
10704 2011-01-04  Philipp Thomas  <pth@suse.de>
10706         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
10707         obvious typo.
10709 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10711         * function.c (thread_prologue_and_epilogue_insns): Do not crash
10712         on empty epilogue sequences.
10714 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
10716         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
10717         non-static): New Driver options.
10719 2011-01-04  Jie Zhang  <jie@codesourcery.com>
10721         PR driver/47137
10722         * gcc.c (default_compilers[]): Set combinable field to 0
10723         for all assembly languages.
10725 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
10727         * config/mips/loongson3a.md: New file.
10728         * config/mips/mips.md: Include loongson3a.md.
10729         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
10730         TUNE_LOONGSON_3A.
10732 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
10734         PR middle-end/47017
10735         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
10736         instead of convert_memory_address_addr_space on the base expression.
10738 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10740         * config/spu/spu.c (spu_option_override): Update error text
10741         for bad -march= / -mtune= values.
10743 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10745         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
10746         if branch-hint optimization will be performed.
10748 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
10750         PR tree-optimization/47148
10751         * ipa-split.c (split_function): Convert arguments to
10752         DECL_ARG_TYPE if possible.
10754         PR tree-optimization/47155
10755         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
10756         when computing uns.
10758         PR rtl-optimization/47157
10759         * combine.c (try_combine): If undobuf.other_insn becomes
10760         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
10761         and set *new_direct_jump_p too.
10763 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
10765         PR tree-optimization/47021
10766         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
10768 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
10770         * gcc.c (process_command): Update copyright notice dates.
10771         * gcov.c (print_version): Likewise.
10772         * gcov-dump.c (print_version): Likewise.
10773         * mips-tfile.c (main): Likewise.
10774         * mips-tdump.c (main): Likewise.
10776 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10778         PR tree-optimization/46801
10779         * tree-sra.c (type_internals_preclude_sra_p): Check whether
10780         aggregate fields start at byte boundary instead of the bit-field flag.
10782 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
10784         PR driver/47137
10785         * gcc.c (main): Revert revision 168407.
10787 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10789         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
10791 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10793         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
10794         vector optab to expand vector/scalar shift, update gimple to vector.
10796 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10798         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
10799         a thunk.
10801 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10803         PR tree-optimization/46984
10804         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
10805         HOST_WIDE_INT.
10806         (cgraph_create_indirect_edge): Fixed line length.
10807         (cgraph_indirect_call_info): Declare.
10808         (cgraph_make_edge_direct) Update declaration.
10809         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
10810         (cgraph_create_indirect_edge): Use it.
10811         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
10812         callees.
10813         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
10814         the new thunk_delta representation.
10815         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
10816         HOST_WIDE_INT.
10817         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
10818         (ipa_read_indirect_edge_info): Likewise.
10819         * lto-cgraph.c (output_edge_opt_summary): New function.
10820         (output_node_opt_summary): Call it on all outgoing edges.
10821         (input_edge_opt_summary): New function.
10822         (input_node_opt_summary): Call it on all outgoing edges.
10824 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
10826         PR driver/47137
10827         * gcc.c (main): Don't check have_o when settting combine_inputs.
10829 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
10831         * regrename.c: Add general comment describing the pass.
10832         (struct du_head): Remove 'length' field.
10833         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
10834         (regrename_optimize): Do not sort chains.  Rework comments, add others.
10835         Force renaming to the preferred class (if any) in the first pass and do
10836         not consider registers that belong to it in the second pass.
10837         (create_new_chain): Do not set 'length' field.
10838         (scan_rtx_reg): Likewise.
10840 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
10842         PR tree-optimization/47140
10843         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
10844         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
10845         to bit_value_binop.
10847         PR rtl-optimization/47028
10848         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
10849         parm_birth_insn instead of at the beginning of first bb.
10851 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
10853         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
10854         Remove the word "see" before "@pxref".
10855         * doc/rtl.texi: Remove the word "see" before "@pxref".
10857 2011-01-01  Jan Hubicka  <jh@suse.cz>
10859         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
10860         memory.
10862 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
10864         PR target/38662
10865         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
10868 Copyright (C) 2011 Free Software Foundation, Inc.
10870 Copying and distribution of this file, with or without modification,
10871 are permitted in any medium without royalty provided the copyright
10872 notice and this notice are preserved.