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