OSDN Git Service

* config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
2
3         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4         (AVX_FLOAT_MODE_P): Ditto.
5         (AVX128_VEC_FLOAT_MODE_P): Ditto.
6         (AVX256_VEC_FLOAT_MODE_P): Ditto.
7         (AVX_VEC_FLOAT_MODE_P): Ditto.
8         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
9         (UNSPEC_MASKSTORE): Ditto.
10         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
11         Merge from <sse>_movmsk<ssemodesuffix> and
12         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
13         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
14         iterator.
15         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
16         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
17         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
18
19 2011-04-18  Jan Hubicka  <jh@suse.cz>
20
21         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
22
23         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
24         (want_inline_function_called_once_p): Break out the logic from
25         ipa_inline.
26         (edge_badness): Ensure that profile is not misupdated.
27         (lookup_recursive_calls): Prioritize by call frequencies.
28         (inline_small_functions): Move program size estimates here;
29         actually process whole queue even when unit growth has been
30         met. (to properly compute inline_failed reasons and for the
31         case unit size decrease.) Revisit comments on recursive inlining.
32         (ipa_inline): Remove unit summary code; first inline hot calls
33         of functions called once, cold calls next.
34         (order, nnodes): Remove unused variables.
35         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
36         (GTFILES): Remove ipa-inline.c
37         * sel-sched.c (fill_insns): Silence uninitialized var warning.
38
39 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
40
41         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
42
43 2011-04-18  Jie Zhang  <jie@codesourcery.com>
44             Richard Earnshaw  <rearnsha@arm.com>
45
46         * arm.c (neon_builtin_type_bits): Remove.
47         (typedef enum neon_builtin_mode): New.
48         (T_MAX): Don't define.
49         (typedef enum neon_builtin_datum): Remove bits, codes[],
50         num_vars and base_fcode.  Add mode, code and fcode.
51         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
52         VAR10): Change accordingly.
53         (neon_builtin_data[]): Change accordingly
54         (arm_init_neon_builtins): Change accordingly.
55         (neon_builtin_compare): Remove.
56         (locate_neon_builtin_icode): Remove.
57         (arm_expand_neon_builtin): Change accordingly.
58
59         * arm.h (enum arm_builtins): Move to ...
60         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
61
62         * arm.c (arm_builtin_decl): Declare.
63         (TARGET_BUILTIN_DECL): Define.
64         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
65         (arm_builtin_decls[]): New.
66         (arm_init_neon_builtins): Store builtin declarations in
67         arm_builtin_decls[].
68         (arm_init_tls_builtins): Likewise.
69         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
70         (arm_builtin_decl): New.
71
72 2011-04-18  Richard Guenther  <rguenther@suse.de>
73
74         * tree.c (upper_bound_in_type): Build properly canonicalized
75         INTEGER_CSTs.
76         (lower_bound_in_type): Likewise.
77
78 2011-04-18  Richard Guenther  <rguenther@suse.de>
79
80         * gimple.h (gimple_call_addr_fndecl): New function.
81         (gimple_call_fndecl): Use it.
82         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
83         for direct calls.
84         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
85         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
86
87 2011-04-18  Richard Guenther  <rguenther@suse.de>
88
89         PR middle-end/48650
90         * tree.c (build_string): STRING_CST is now derived from tree_typed.
91
92 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
93
94         PR lto/48492
95         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
96         DECL_IN_CONSTANT_POOL without RTL.
97
98 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
99             Ira Rosen  <ira.rosen@linaro.org>
100
101         PR target/48252
102         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
103         to match neon_vzip/vuzp/vtrn_internal.
104         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
105         outputs explicitly dependent on both inputs.
106         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
107
108 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
109
110         PR tree-optimization/48616
111         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
112         whether the shift is by scalar or vector based on whether all SLP
113         scalar stmts have the same rhs.
114
115 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
116
117         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
118         memory operands.
119
120 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
121
122         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
123         registers.
124
125 2011-04-17  Jan Hubicka  <jh@suse.cz>
126
127         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
128         * cgrpahunit.c (cgraph_finalize_function): Do not set
129         finalized_by_frontend.
130         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
131         finalized_by_frontend.
132
133 2011-04-17  Jan Hubicka  <jh@suse.cz>
134
135         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
136         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
137         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
138         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
139         method.
140         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
141         gimple-fold.c
142         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
143
144 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
145
146         PR lto/48538
147         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
148         is non-null before accessing it.
149         (input_cgraph): Remove trailing spaces.
150
151 2011-04-17  Revital Eres  <revital.eres@linaro.org>
152
153         * params.def (sms-min-sc): New param flag.
154         * modulo-sched.c (sms_schedule): Use it.
155         * doc/invoke.texi (sms-min-sc): Document it.
156
157 2011-04-17  Jan Hubicka  <jh@suse.cz>
158
159         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
160         present, also set gimple_call_set_cannot_inline.
161         * ipa-inline.c: Update toplevel comment.
162         (MAX_TIME): Remove.
163         (cgraph_clone_inlined_nodes): Fix linebreaks.
164         (cgraph_check_inline_limits): Restructure to ...
165         (caller_growth_limits): ... this one; be more tolerant
166         on growth in nested inline chains; add explanatory comment;
167         fix stack accounting thinko introduced by previous patch.
168         (cgraph_default_inline_p): Remove.
169         (report_inline_failed_reason): New function.
170         (can_inline_edge_p): New function.
171         (can_early_inline_edge_p): New function.
172         (leaf_node_p): Move upwards in file.
173         (want_early_inline_function_p): New function.
174         (want_inline_small_function_p): New function.
175         (want_inline_self_recursive_call_p): New function.
176         (cgraph_edge_badness): Rename to ...
177         (edge_badness) ... this one; fix linebreaks.
178         (update_edge_key): Update call of edge_baddness; add
179         detailed dump about queue updates.
180         (update_caller_keys): Use can_inline_edge_p and
181         want_inline_small_function_p.
182         (cgraph_decide_recursive_inlining): Rename to...
183         (recursive_inlining): Use can_inline_edge_p and
184         want_inline_self_recursive_call_p; simplify and remove no longer
185         valid FIXME.
186         (cgraph_set_inline_failed): Remove.
187         (add_new_edges_to_heap): Use can_inline_edge_p and
188         want_inline_small_function_p.
189         (cgraph_decide_inlining_of_small_functions): Rename to ...
190         (inline_small_functions): ... this one; cleanup; use
191         can/want predicates; cleanup debug ouput; work edges till fibheap
192         is exhausted and do not stop once unit growth is reached; remove
193         later loop processing remaining edges.
194         (cgraph_flatten): Rename to ...
195         (flatten_function): ... this one; use can_inline_edge_p
196         and can_early_inline_edge_p predicates.
197         (cgraph_decide_inlining): Rename to ...
198         (ipa_inline): ... this one; remove unreachable nodes before
199         inlining functions called once; simplify the pass.
200         (cgraph_perform_always_inlining): Rename to ...
201         (inline_always_inline_functions): ... this one; use
202         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
203         (cgraph_decide_inlining_incrementally): Rename to ...
204         (early_inline_small_functions): ... this one; simplify
205         using new predicates; cleanup; make dumps prettier.
206         (cgraph_early_inlining): Rename to ...
207         (early_inliner): newer inline regular functions into always-inlines;
208         fix updating of call stmt summaries.
209         (pass_early_inline): Update for new names.
210         (inline_transform): Fix formating.
211         (gate_cgraph_decide_inlining): Rename to ...
212         (pass_ipa_inline): ... this one.
213         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
214         * ipa-inline-analysis.c (dump_inline_summary): Update.
215         (compute_inline_parameters): Do not compute disregard_inline_limits;
216         look for mismatching arguments.
217         (estimate_growth): Fix handlig of non-trivial self recursion.
218         (inline_read_summary): Do not read info->disregard_inline_limits.
219         (inline_write_summary): Do not write info->disregard_inline_limits.
220         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
221         and move all checks into can_inline_edge_p predicate; re-enable code
222         comparing optimization levels.
223         (expand_call_inline): Do not test inline_forbidden_into_p.
224         * Makefile.in (ipa-inline.o): Update arguments.
225
226 2011-04-17  Revital Eres  <revital.eres@linaro.org>
227
228         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
229
230 2011-04-17  Revital Eres  <revital.eres@linaro.org>
231
232         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
233
234 2011-04-17  Michael Matz  <matz@suse.de>
235
236         PR tree-optimization/48622
237         PR lto/48645
238         * ipa-inline-analysis.c (inline_read_summary): Read size/time
239         in same order as they're written.
240
241 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
242
243         * config/i386/sse.md (sseunpackmode): New mode attribute.
244         (ssepackmode): Ditto.
245         (vec_pack_trunc_<mode>): Macroize expander from
246         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
247         (vec_unpacks_lo_<mode>): Macroize expander from
248         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
249         (vec_unpacks_hi_<mode>): Macroize expander from
250         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
251         (vec_unpacku_lo_<mode>): Macroize expander from
252         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
253         (vec_unpacku_hi_<mode>): Macroize expander from
254         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
255         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
256         ix86_expand_sse4_unpack.
257         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
258
259 2011-04-16  Jan Hubicka  <jh@suse.cz>
260
261         * cgraphbuild.c: Include ipa-inline.h.
262         (reset_inline_failed): Use initialize_inline_failed.
263         * cgraph.c: Include ipa-inline.h.
264         (cgraph_create_node_1): Do not initialize estimated_growth.
265         (initialize_inline_failed): More to ipa-inline-analysis.c
266         (dump_cgraph_node): Do not dump inline flags.
267         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
268         and disregard_inline_limits flags.
269         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
270         time, size, estimated_growth.
271         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
272         Update.
273         * cgraphunit.c (cgraph_decide_is_function_needed): Use
274         DECL_DISREGARD_INLINE_LIMITS.
275         (cgraph_analyze_function): Do not initialize
276         node->local.disregard_inline_limits.
277         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
278         inlinable, versionable and disregard_inline_limits.
279         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
280         cgraph_check_inline_limits, cgraph_default_inline_p,
281         cgraph_edge_badness, update_caller_keys, update_callee_keys,
282         add_new_edges_to_heap): Update.
283         (cgraph_decide_inlining_of_small_function): Update; set
284         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
285         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
286         cgraph_decide_inlining_incrementally): Update.
287         * ipa-inline.h (inline_summary): Add inlinable, versionable,
288         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
289         time, size and estimated_growth parameters.
290         (estimate_edge_growth): Update.
291         (initialize_inline_failed): Declare.
292         * ipa-split.c: Include ipa-inline.h
293         (execute_split_functions): Update.
294         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
295         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
296         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
297         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
298         estimated_growth to INT_MIN.
299         (inline_node_duplication_hook): Likewise.
300         (dump_inline_summary): Dump new fields.
301         (compute_inline_parameters): Update.
302         (estimate_edge_time, estimate_time_after_inlining,
303         estimate_size_after_inlining, estimate_growth, inline_read_summary,
304         inline_write_summary):
305         (initialize_inline_failed): Move here from cgraph.c.
306         * tree-sra.c: Include ipa-inline.h.
307         (ipa_sra_preliminary_function_checks): Update.
308         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
309         ipa-inline.h.
310
311 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
312
313         * config/i386/sse.md (V16): New mode iterator.
314         (VI1, VI8): Ditto.
315         (AVXMODEQI, AVXMODEDI): Remove.
316         (sse2, sse3): New mode attribute.
317         (mov<mode>): Use V16 mode iterator.
318         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
319         (push<mode>1): Use V16 mode iterator.
320         (movmisalign<mode>): Ditto.
321         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
322         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
323         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
324         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
325         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
326         avx_movdqu<avxmodesuffix>.
327         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
328         *avx_movdqu<avxmodesuffix>.
329         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
330         avx_lddqu<avxmodesuffix>.
331         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
332         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
333         avx_movnt<AVXMODEDI:mode>.
334         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
335         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
336
337 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
338
339         PR target/48629
340         * haifa-sched.c (prune_ready_list, schedule_block): Use
341         sched_pressure_p rather than flag_sched_pressure.
342
343 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
344
345         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
346         cgraph_get_node instead of cgraph_get_create_node.
347
348 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
349
350         * cfgexpand.c (expand_debug_expr): Use
351         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
352
353 2011-04-15  Michael Matz  <matz@suse.de>
354
355         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
356         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
357         * function.c (gimplify_parameters): Ditto.
358         * gimplify.c (gimplify_vla_decl): Ditto.
359
360         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
361         (gimple_call_set_alloca_for_var): New inline function.
362         (gimple_call_alloca_for_var_p): Ditto.
363         * gimple.c (gimple_build_call_from_tree): Remember
364         CALL_ALLOCA_FOR_VAR_P state.
365         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
366
367         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
368         calls if they were for VLA objects.
369
370 2011-04-15  Martin Jambor  <mjambor@suse.cz>
371
372         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
373         of ADR_EXPRs.
374
375 2011-04-15  Martin Jambor  <mjambor@suse.cz>
376
377         PR middle-end/48601
378         * tree-emutls.c (lower_emutls_function_body): Call
379         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
380         result is non-NULL.
381
382 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
383
384         * c-decl.c (detect_field_duplicates): Call
385         objc_detect_field_duplicates instead of objc_get_interface_ivars.
386
387 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
388
389         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
390         * gimple.c (gimple_asm_clobbers_memory_p): Define.
391         * ipa-pure-const.c (check_stmt): Call it.
392         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
393
394 2011-04-15  Richard Guenther  <rguenther@suse.de>
395
396         PR tree-optimization/48290
397         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
398         Properly decide inhibiting propagation based on the valueized
399         operand.  Do loop-closed SSA form preserving here ...
400         (init_copy_prop): ... not here.
401
402 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
403
404         PR target/48612
405         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
406         (*ieee_smax<mode>3): Likewise.
407
408 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
409
410         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
411         Replace match_operand with match_dup for the third operand in
412         these expanders.
413
414 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
415
416         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
417         to track processing of conditionals.  Update all callers.
418         (try_combine, simplify_if_then_else): Update.
419
420 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
421
422         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
423         -fsched-pressure.
424
425 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
426
427         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
428         instead of match_operand for operand 3.
429
430 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
431
432         * recog.h (insn_operand_data): Add an "allows_mem" field.
433         * genoutput.c (output_operand_data): Initialize it.
434         * optabs.c (maybe_legitimize_operand_same_code): New function.
435         (maybe_legitimize_operand): Use it when matching the original
436         op->value.
437
438 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
439
440         * gimplify.c: Fix issues in comments throughout.
441         (voidify_wrapper_expr): Fix long line.
442         (build_stack_save_restore): Likewise.
443         (gimplify_loop_expr): Likewise.
444         (gimplify_compound_lval): Likewise.
445         (gimplify_init_ctor_eval): Likewise.
446         (gimplify_modify_expr_rhs): Likewise.
447         (omp_notice_threadprivate_variable): Likewise.
448
449 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
450
451         * cfgexpand.c (expand_call_stmt): Convert the function type to the
452         original one if this is not a builtin function.
453
454 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
455
456         PR target/48605
457         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
458         offset it as needed based on top 2 bits in operands[3], change
459         MEM mode to SFmode and mask those 2 bits away from operands[3].
460
461 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
462
463         * c-parser.c (c_parser_objc_protocol_definition): Updated for
464         change from objc_declare_protocols() to objc_declare_protocol().
465
466 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
467
468         * config/i386/sse.md (sse4_1): New mode attribute.
469         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
470         avx_blend<ssemodesuffix><avxmodesuffix> and
471         sse4_1_blend<ssemodesuffix> using VF mode iterator.
472         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
473         avx_blendv<ssemodesuffix><avxmodesuffix> and
474         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
475         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
476         avx_dp<ssemodesuffix><avxmodesuffix> and
477         sse4_1_dp<ssemodesuffix> using VF mode iterator.
478         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
479         (sse4_1_packusdw): Merge with *avx_packusdw.
480         (sse4_1_pblendvb): Merge with *avx_pblendvb.
481         (sse4_1_pblendw): Merge with *avx_pblendw.
482         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
483         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
484         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
485         VF mode iterator.
486         (sse4_1_round<ssescalarmodesuffix>): Merge with
487         *avx_round<ssescalarmodesuffix>.
488         (aesenc): Merge with *avx_aesenc.
489         (aesenclast): Merge with *avx_aesenclast.
490         (aesdec): Merge with *avx_aesdec.
491         (aesdeclast): Merge with *avx_aesdeclast.
492         (pclmulqdq): Merge with *pclmulqdq.
493         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
494         New predicate.
495         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
496
497 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
498
499         PR middle-end/48608
500         * cfgexpand.c (get_decl_align_unit): Renamed to ...
501         (align_local_variable): This.  Update DECL_ALIGN.
502         (add_stack_var): Updated.
503         (expand_one_stack_var): Likewise.
504
505 2011-04-14  Richard Guenther  <rguenther@suse.de>
506
507         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
508         Remove.
509         (dse_initialize_block_local_data, dse_leave_block,
510         record_voperand_set, get_stmt_uid): Likewise.
511         (dse_possible_dead_store_p): Allow any kind of killing stmt.
512         (dse_optimize_stmt): Remove voperand set handling code.
513         Simplify and improve to handle any kind of killing stmt.
514         (dse_record_phi): Remove.
515         (dse_enter_block): Simplify.
516         (tree_ssa_dse): Likewise.
517         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
518
519 2011-04-14  Jan Hubicka  <jh@suse.cz>
520
521         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
522         * cgraph.h (struct inline_summary): Move to ipa-inline.h
523         (cgraph_local_info): Remove inline_summary.
524         * ipa-cp.c: Include ipa-inline.h.
525         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
526         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
527         accesor.
528         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
529         (input_overwrite_node): Do not set inline summary.
530         (input_node): Do not stream inline summary.
531         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
532         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
533         growth; we do not have inline parameters computed for that anyway.
534         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
535         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
536         (inline_summary_t): New type and VECtor.
537         (debug_inline_summary, dump_inline_summaries): Declare.
538         (inline_summary): Use VOCtor.
539         (estimate_edge_growth): Kill hack computing call stmt size directly.
540         * lto-section-in.c (lto_section_name): Add inline section.
541         * ipa-inline-analysis.c: Include lto-streamer.h
542         (node_removal_hook_holder, node_duplication_hook_holder): New holders
543         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
544         (inline_summary_vec): Define.
545         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
546         dump_inline_summaries): New functions.
547         (estimate_function_body_sizes): Properly compute size/time of outgoing
548         calls.
549         (compute_inline_parameters): Alloc inline_summary; do not compute
550         size/time of incomming calls.
551         (estimate_edge_time): Avoid missing time summary hack.
552         (inline_read_summary): Read inline summary info.
553         (inline_write_summary): Write inline summary info.
554         (inline_free_summary): Free all hooks and inline summary vector.
555         * lto-streamer.h: Add LTO_section_inline_summary section.
556         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
557         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
558
559 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
560
561         * tree-vectorizer.h (vect_strided_store_supported): Add a
562         HOST_WIDE_INT argument.
563         (vect_strided_load_supported): Likewise.
564         (vect_permute_store_chain): Return void.
565         (vect_transform_strided_load): Likewise.
566         (vect_permute_load_chain): Delete.
567         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
568         count argument.  Check that the count is a power of two.
569         (vect_strided_load_supported): Likewise.
570         (vect_permute_store_chain): Return void.  Update after above changes.
571         Assert that the access is supported.
572         (vect_permute_load_chain): Likewise.
573         (vect_transform_strided_load): Return void.
574         * tree-vect-stmts.c (vectorizable_store): Update calls after
575         above interface changes.
576         (vectorizable_load): Likewise.
577         (vect_analyze_stmt): Don't check for strided powers of two here.
578
579 2011-04-14  Richard Guenther  <rguenther@suse.de>
580
581         PR tree-optimization/48590
582         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
583         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
584         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
585         BUILT_IN_STACK_SAVE.
586         * tree-ssa-dce.c (propagate_necessity): Handle
587         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
588
589 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
590
591         * c-parser.c (c_parser_objc_class_declaration): Updated call to
592         objc_declare_class.
593
594 2011-04-14  Richard Guenther  <rguenther@suse.de>
595
596         * tree.h (get_object_alignment_1): Declare.
597         * builtins.c (get_object_alignment_1): Split out worker from ...
598         (get_object_alignment): ... here.
599         * fold-const.c (get_pointer_modulus_and_residue): Use
600         get_object_alignment_1.
601
602 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
603
604         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
605         type parameter.
606         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
607         parameter.  Generalise code to handle arrays as well as vectors.
608         (vect_setup_realignment): Update accordingly.
609         * tree-vect-stmts.c (vectorizable_store): Likewise.
610         (vectorizable_load): Likewise.
611
612 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
613
614         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
615         within the per-copy loop.
616
617 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
618
619         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
620         in the dump file.
621
622 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
623
624         * doc/options.texi (Negative): Explicitly mention that the
625         Negative chain must be circular.
626
627 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
628
629         * function.h (block_chainon): Declare.
630         * function.c (block_chainon): Define.
631
632 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
633             Eric Weddington  <eric.weddington@atmel.com>
634             Georg-Johann Lay <avr@gjlay.de>
635
636         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
637         New Includes
638         (avr_init_builtins, avr_expand_builtin,
639         avr_expand_delay_cycles, avr_expand_unop_builtin,
640         avr_expand_binop_builtin ): New functions.
641         (avr_builtin_id): New enum
642         (struct avr_builtin_description): New struct
643         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
644         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
645
646         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
647         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
648         UNSPECV_DELAY_CYCLES): new enumeration values
649         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
650         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
651         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
652         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
653         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
654         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
655         "fmulsu"): New insns
656
657         * config/avr/avr-c.c: fix line endings
658         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
659         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
660         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
661         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
662         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
663
664         * doc/extend.texi (AVR Built-in Functions): New node
665         (Target Builtins): Add documentation of AVR
666         built-in functions.
667
668 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
669
670         PR target/44643
671         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
672         alone. Error if non-const data has attribute progmem.
673
674 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
675
676         * tree.h (struct tree_constructor): Include tree_typed instead of
677         tree_common.
678         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
679         TS_TYPED instead of TS_COMMON.
680
681 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
682
683         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
684         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
685         (sse2_psadbw): Merge with *avx_psadbw.
686         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
687         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
688         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
689         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
690         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
691         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
692         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
693         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
694         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
695         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
696         (ssse3_palignrti): Merge with *avx_palignrti.
697
698 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
699
700         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
701         * tree-ssanames.c (fini_ssanames): VEC_free it.
702         (make_ssa_name_fn): Update for VECness of free_ssanames.
703         (release_ssa_name, release_dead_ssa_names): Likewise.
704         * tree.h (struct tree_ssa_name): Include tree_typed instead of
705         tree_common.
706         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
707         TS_TYPED instead of TS_COMMON.
708
709 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
710
711         * postreload-gcse.c (gcse_after_reload_main): Add calls to
712         statistics_counter_event.
713         * tree-ssa-copyrename.c (stats): Define.
714         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
715         statistics_counter_event.
716         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
717         (bswap_stats, widen_mul_stats): Define.
718         (insert_reciprocals): Increment rdivs_inserted.
719         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
720         rfuncs_inserted.  Add calls to statistics_counter_event.
721         (execute_cse_sincos_1): Increment inserted.
722         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
723         statistics_counter_event.
724         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
725         of bswap_stats.  Add calls to statistics_counter_event.
726         (convert_mult_to_widen): Increment widen_mults_inserted.
727         (convert_plusminus_to_widen): Increment maccs_inserted.
728         (convert_mult_to_fma): Increment fmas_inserted.
729         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
730         calls to statistics_counter_event.
731
732 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
733
734         PR rtl-optimization/48455
735         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
736         `temp_costs->mem_cost'.
737
738 2011-04-13  Jan Hubicka  <jh@suse.cz>
739
740         * ipa-inline.h: New file.
741         * ipa-inline-analysis.c: New file. Broken out of ...
742         * ipa-inline.c: ... this file; update toplevel comment;
743         include ipa-inline.h
744         (inline_summary): Move to ipa-inline.h
745         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
746         ipa-inline-analysis.c.
747         (cgraph_estimate_time_after_inlining): Rename to estiamte_time_after_inlining;
748         move to ipa-inline-analysis.c
749         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
750         to estimate_edge_growth.
751         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
752         rename to estimate_size_after_inlining.
753         (cgraph_mark_inline_edge): Update for new naming convention.
754         (cgraph_check_inline_limits): Likewise.
755         (cgraph_edge_badness): Likewise.
756         (cgraph_decide_recursive_inlining): Likewise.
757         (cgraph_decide_inlining_of_small_functions): Likewise.
758         (cgraph_decide_inlining_incrementally): Likewise.
759         (cgraph_estimate_growth): Rename to estimate_growth; move to ipa-inline-analysis.c.
760         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
761         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
762         (compute_inline_parameters): Likewise.
763         (compute_inline_parameters_for_current): Likewise.
764         (pass_inline_parameters): Likewise.
765         (inline_indirect_intraprocedural_analysis): Likewise.
766         (analyze_function): Rename to inline_analyze_function; likewise.
767         (add_new_function): Move to ipa-inline-analysis.c.
768         (inline_generate_summary): Likewise.
769         (inline_read_summary): Likewise.
770         (inline_write_summary): Likewise.
771         * Makefile.in (ipa-inline-analysis.c): New file.
772
773 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
774
775         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
776         * configure: Regenerate.
777
778 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
779
780         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
781         instead of tree_common.
782         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
783         Likewise.
784         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
785         TS_TYPED rather than TS_COMMON.
786         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
787
788 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
789
790         PR target/45263
791         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
792         r20 around calls of __tablejump_elpm__
793
794 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
795
796         PR middle-end/48591
797         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
798         NULL.
799         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
800
801 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
802
803         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
804         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
805         (cfi_vec): New typedef.
806         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
807         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
808         (cie_cfi_vec): New static variable.
809         (cie_cfi_head): Delete.
810         (add_cfi): Accept a cfi_vec * as first argument. All callers and
811         declaration changed. Use vector rather than list operations.
812         (new_cfi): Don't initialize the dw_cfi_next field.
813         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
814         rather than list operations.
815         (lookup_cfa): Use vector rather than list operations.
816         (output_cfis): New argument upto. Accept a cfi_vec rather than
817         a dw_cfi_ref list head as argument. All callers changed.
818         Iterate over the vector using upto as a maximum index.
819         (output_all_cfis): New static function.
820         (output_fde): Use vector rather than list operations. Use the
821         new upto argument for output_cfis rather than manipulating a
822         list.
823         (dwarf2out_begin_prologue): Change initializations to match
824         new struct members.
825         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
826         from the vector length rather than searching for the end of a list.
827         Use output_all_cfis.
828         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
829
830 2011-04-13  Nick Clifton  <nickc@redhat.com>
831
832         * config/rx/rx.md (movmemsi): Do not use this pattern when
833         volatile pointers are involved.
834
835 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
836
837         * config/i386/sse.md (pinsrbits): Remove.
838         (sse2_packsswb): Merge with *avx_packsswb.
839         (sse2_packssdw): Merge with *avx_packssdw.
840         (sse2_packuswb): Merge with *avx_packuswb.
841         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
842         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
843         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
844         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
845         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
846         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
847         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
848         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
849         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
850         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
851         (sse2_loadld): Merge with *avx_loadld.
852         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
853         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
854         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
855         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
856         (vec_concatv2di): Merge with *vec_concatv2di_avx.
857
858 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
859
860         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
861         calling TREE_CHAIN.
862         * print-tree.c (print_node): Likewise.
863         * tree-inline.c (copy_tree_r): Likewise.
864         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
865         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
866         instead of TS_COMMON.
867         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
868         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
869         (copy_node_stat): Zero TREE_CHAIN only if necessary.
870         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
871         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
872         ...and these...
873         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
874         * tree.h: ...here.
875         (TREE_CHAIN): Check for a TS_COMMON structure.
876         (TREE_TYPE): Check for a TS_TYPED structure.
877
878 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
879
880         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
881         cgraph_get_create_node instead of cgraph_node.
882
883 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
884
885         * c-parser.c (c_parser_initelt): Updated call to
886         objc_build_message_expr.
887         (c_parser_postfix_expression): Likewise.
888
889 2011-04-12  Kai Tietz  <ktietz@redhat.com>
890
891         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
892         MASK_MS_BITFIELD_LAYOUT bit.
893
894 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
895
896         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
897         assert it is always true.
898         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
899         moves.
900
901 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
902
903         * c-parser.c (c_lex_one_token): Rewritten conditional used when
904         compiling Objective-C to be more efficient.
905
906 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
907
908         * opts-common.c (decode_cmdline_options_to_array): Remove variable
909         argv_copied.
910
911 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
912
913         * recog.h, genoutput.c, optabs.c: Revert last patch.
914
915 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
916
917         PR target/48090
918         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
919
920 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
921
922         * recog.h (insn_operand_data): Add an "allows_mem" field.
923         * genoutput.c (output_operand_data): Initialize it.
924         * optabs.c (maybe_legitimize_operand_same_code): New function.
925         (maybe_legitimize_operand): Use it when matching the original
926         op->value.
927
928 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
929
930         * genpreds.c (process_define_predicate): Move most processing
931         to gensupport.c.  Continue to validate the expression.
932         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
933         (process_define_predicate): Move processing to gensupport.c.
934         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
935         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
936         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
937         argument.
938         (valid_predicate_name_p): New function, split out from old
939         genpreds.c:process_define_predicate.
940         (process_define_predicate): New function, combining code from
941         old genpreds.c and genrecog.c functions.
942         (process_rtx): Call it for DEFINE_PREDICATE and
943         DEFINE_SPECIAL_PREDICATE.
944
945 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
946
947         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
948         size of a '%A' memory reference.
949         (T_DREG, T_QREG): New neon_builtin_type_bits.
950         (arm_init_neon_builtins): Assert that the load and store operands
951         are neon_struct_operands.
952         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
953         (NEON_ARG_MEMORY): New builtin_arg.
954         (neon_dereference_pointer): New function.
955         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
956         Handle NEON_ARG_MEMORY.
957         (arm_expand_neon_builtin): Update after above interface changes.
958         Use NEON_ARG_MEMORY for loads and stores.
959         * config/arm/predicates.md (neon_struct_operand): New predicate.
960         * config/arm/iterators.md (V_two_elem): Tweak formatting.
961         (V_three_elem): Use BLKmode for accesses that have no associated mode.
962         (V_four_elem): Tweak formatting.
963         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
964         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
965         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
966         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
967         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
968         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
969         (neon_vst4<mode>): Replace pointer operand with a memory operand.
970         Use %A in the output template.
971         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
972         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
973         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
974         the width of the memory access.  Remove post-increment.
975         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
976
977 2011-04-12  Nick Clifton  <nickc@redhat.com>
978
979         * config/v850/v850.c (expand_prologue): Do not use the CALLT
980         instruction for interrupt handlers if the target is the basic V850
981         architecture.
982         (expand_epilogue): Likewise.
983
984 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
985
986         PR rtl-optimization/48549
987         * combine.c (propagate_for_debug): Also stop after BB_END of
988         this_basic_block.  Process LAST and just stop processing after it.
989         (combine_instructions): If last_combined_insn has been deleted,
990         set last_combined_insn to its PREV_INSN.
991
992 2011-04-12  Richard Guenther  <rguenther@suse.de>
993
994         PR tree-optimization/46076
995         * gimple.h (struct gimple_statement_call): Add fntype field.
996         (gimple_call_fntype): Adjust.
997         (gimple_call_set_fntype): New function.
998         * gimple.c (gimple_build_call_1): Set the call function type.
999         * gimplify.c (gimplify_call_expr): Preserve the function
1000         type the frontend used for the call.
1001         (gimplify_modify_expr): Likewise.
1002         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1003         function type.
1004         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1005         function type.
1006         * tree-ssa.c (useless_type_conversion_p): Function pointer
1007         conversions are useless.
1008
1009 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1010
1011         * cgraph.h (cgraph_node): Remove function declaration.
1012         (cgraph_create_node): Declare.
1013         (cgraph_get_create_node): Likewise.
1014         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1015         Updated all callers.
1016         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1017         the decl does not already exist.  Call cgraph_get_create_node instead
1018         of cgraph_node.
1019         (cgraph_get_create_node): New function.
1020         (cgraph_same_body_alias): Update comment.
1021         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1022         assert it does not return NULL.
1023         (cgraph_update_edges_for_call_stmt): Likewise.
1024         (cgraph_clone_edge): Likewise.
1025         (cgraph_create_virtual_clone): Likewise.
1026         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1027         instead of cgraph_node.
1028         (cgraph_add_new_function): Call cgraph_create_node or
1029         cgraph_get_create_node instead of cgraph_node.
1030         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1031         instead of cgraph_node.
1032         (record_eh_tables): Likewise.
1033         (mark_address): Likewise.
1034         (mark_load): Likewise.
1035         (build_cgraph_edges): Call cgraph_get_create_node instead
1036         of cgraph_node.
1037         (rebuild_cgraph_edges): Likewise.
1038         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1039         instead of cgraph_node.
1040         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1041         cgraph_node.
1042         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1043         cgraph_create_node instead of cgraph_node.
1044         * c-decl.c (finish_function): Call cgraph_get_create_node instead
1045         of cgraph_node.
1046         * lto-cgraph.c (input_node): Likewise.
1047         * lto-streamer-in.c (input_function): Likewise.
1048         * varasm.c (mark_decl_referenced): Likewise.
1049         (assemble_alias): Likewise.
1050
1051 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1052
1053         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1054         instead of cgraph_node and assert it does not return NULL.
1055         * lto-streamer-in.c (lto_read_body): Likewise.
1056         * omp-low.c (new_omp_context): Likewise.
1057         (create_task_copyfn): Likewise.
1058         * tree-emutls.c (lower_emutls_function_body): Likewise.
1059         * matrix-reorg.c (transform_allocation_sites): Likewise.
1060
1061 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1062
1063         PR c/48552
1064         * c-typeck.c (build_asm_expr): Error out on attempts to use
1065         void type outputs or inputs for constraints that allow reg or
1066         don't allow memory.
1067
1068 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
1069             Richard Earnshaw  <rearnsha@arm.com>
1070
1071         PR target/48250
1072         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1073         to use sign-magnitude offsets. Reject unsupported unaligned
1074         cases. Add detailed description in comments.
1075         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1076         condition from TARGET_32BIT to TARGET_ARM.
1077
1078 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
1079
1080         * tree.h (struct typed_tree): New.
1081         (struct tree_common): Include it instead of tree_base.
1082         (TREE_TYPE): Update for new location of type field.
1083         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1084         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1085         (union tree_node): Add typed field.
1086         * treestruct.def (TS_TYPED): New.
1087         * lto-streamer.c (check_handled_ts_structures): Handle it.
1088         * tree.c (MARK_TS_TYPED): New macro.
1089         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1090
1091 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
1092
1093         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1094         (force_nonfallthru): Do not alter the loop nest if no basic block
1095         was created.
1096
1097 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1098
1099         * config/i386/sse.md (VI): New mode iterator.
1100         (SSEMODEI): Remove.
1101         (AVX256MODEI): Ditto.
1102         (AVXMODEF4P): Ditto.
1103         (avxvecpsmode): Ditto.
1104         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
1105         (sse2_andnot<mode>3): New expander.
1106         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1107         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
1108         (<any_logic:code><mode>3): Use VI mode iterator.
1109         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1110         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
1111         (*andnottf3): Handle AVX three-operand constraints.
1112         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1113
1114 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1115             Robert Millan  <rmh@gnu.org>
1116
1117         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1118         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1119         GNU_USER_DYNAMIC_LINKER64): Define.
1120         (REG_NAME): Don't undefine.
1121         (MD_UNWIND_SUPPORT): Undefine.
1122         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1123         (REG_NAME): Don't undefine.
1124         (MD_UNWIND_SUPPORT): Undefine.
1125         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1126
1127 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1128
1129         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1130         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1131
1132 2011-04-11  Xinliang David Li  <davidxl@google.com>
1133
1134         * value-profile.c (check_ic_target): New function.
1135         (gimple_ic_transform): Sanity check indirect call target.
1136         * gimple-low.c (gimple_check_call_args): Interface change.
1137         (gimple_check_call_matching_types): New function.
1138         * tree-inline.c (tree_can_inline_p): Call new function.
1139
1140 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
1141
1142         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1143         tree-pretty-print.h & realmpfr.h.
1144
1145 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
1146
1147         PR middle-end/48464
1148         * ira.c (setup_pressure_classes): Fix typo in loop condition.
1149         (setup_allocno_and_important_classes): Ditto.
1150
1151 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1152
1153         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1154         GNU_USER_DYNAMIC_LINKER.
1155         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1156         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1157         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1158         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1159         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1160         GNU_USER_TARGET_OS_CPP_BUILTINS.
1161         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1162         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1163         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1164         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1165         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1166         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1167         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1168         GNU_USER_TARGET_OS_CPP_BUILTINS.
1169         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1170         GNU_USER_DYNAMIC_LINKER.
1171         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1172         GNU_USER_TARGET_OS_CPP_BUILTINS.
1173         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1174         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1175         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1176         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1177         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1178         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1179         GNU_USER_DYNAMIC_LINKER64): Remove.
1180         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1181         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1182         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1183         GNU_USER_DYNAMIC_LINKER.
1184         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1185         GNU_USER_TARGET_OS_CPP_BUILTINS.
1186         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1187         GNU_USER_TARGET_OS_CPP_BUILTINS.
1188         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1189         to GNU_USER_TARGET_OS_CPP_BUILTINS.
1190         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1191         GNU_USER_TARGET_OS_CPP_BUILTINS.
1192         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1193         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1194         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1195         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1196         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1197         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1198         GNU_USER_DYNAMIC_LINKER.
1199         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1200         GNU_USER_TARGET_OS_CPP_BUILTINS.
1201         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1202         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1203         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1204         GNU_USER_DYNAMIC_LINKER.
1205         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1206         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1207         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1208         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1209         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1210         GNU_USER_DYNAMIC_LINKER.
1211         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1212         GNU_USER_DYNAMIC_LINKERN32.
1213         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1214         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
1215         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
1216         GNU_USER_DYNAMIC_LINKER32.
1217         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1218         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1219         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1220         GNU_USER_DYNAMIC_LINKER.
1221         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1222         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1223         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
1224         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1225         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1226         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
1227         GNU_USER_DYNAMIC_LINKER32.
1228         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1229         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
1230         GNU_USER_DYNAMIC_LINKER.
1231         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
1232         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1233         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1234         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
1235         GNU_USER_DYNAMIC_LINKER64.
1236         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
1237         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1238         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1239         GNU_USER_DYNAMIC_LINKER.
1240         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
1241         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1242         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1243         GNU_USER_DYNAMIC_LINKER.
1244         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
1245         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1246         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
1247         GNU_USER_DYNAMIC_LINKER32.
1248         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1249         GNU_USER_DYNAMIC_LINKER64.
1250         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
1251         GNU_USER_DYNAMIC_LINKER64.
1252         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
1253         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1254         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
1255         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1256         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1257
1258 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1259
1260         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
1261         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
1262         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
1263         GNU_USER_DYNAMIC_LINKER.
1264         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1265         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
1266         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
1267         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
1268         GNU_USER_DYNAMIC_LINKER64.
1269         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
1270         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
1271         GNU_USER_LINK_EMULATION.
1272         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
1273         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
1274         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
1275         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
1276         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
1277         CPP_SPEC, CC1_SPEC): Remove.
1278         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
1279         (GNU_USER_DYNAMIC_LINKER): Define.
1280         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
1281         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
1282         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
1283         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
1284         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
1285         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
1286         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1287         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
1288         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
1289         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
1290         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
1291         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
1292         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
1293         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
1294         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
1295         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
1296         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1297         GNU_USER_DYNAMIC_LINKER.
1298         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1299         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1300         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1301         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1302         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
1303         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
1304         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
1305         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
1306         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
1307         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
1308
1309 2011-04-11  Kai Tietz  <ktietz@redhat.com>
1310
1311         PR target/9601
1312         PR target/11772
1313         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
1314         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
1315         comment.
1316         (ix86_is_msabi_thiscall): Removed.
1317         (ix86_is_type_thiscall): Likewise.
1318         (ix86_get_callcvt): New function.
1319         (ix86_comp_type_attributes): Simplify check.
1320         (ix86_function_regparm): Use ix86_get_callcvt for calling
1321         convention attribute checks.
1322         (ix86_return_pops_args): Likewise.
1323         (ix86_static_chain): Likewise.
1324         (x86_this_parameter): Likewise.
1325         (x86_output_mi_thunk): Likewise.
1326         (ix86_function_type_abi): Optimize check for types without attributes.
1327         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
1328         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
1329         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
1330         by flag-values.
1331         (IX86_BASE_CALLCVT): Helper macro.
1332         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1333         Use ix86_get_callcvt for calling convention attribute checks and avoid
1334         symbol-decoration for stdcall in TARGET_RTD case.
1335         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
1336         Likewise.
1337         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
1338         for declaration.
1339
1340 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1341
1342         * config/i386/sse.md (VI_128): New mode iterator.
1343         (VI12_128): Rename from SSEMODE12.
1344         (VI14_128): Rename from SSEMODE14.
1345         (VI124_128): New mode iterator.
1346         (VI24_128): Rename from SSEMODE248.
1347         (VI248_128): Rename from SSEMODE248.
1348         (SSEMODE124C8): Remove.
1349         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1350         (*sse2_<plusminus_insn><mode>3): Merge with
1351         *avx_<plusminus_insn><mode>3.
1352         (*mulv8hi3): Merge with *avx_mulv8hi3.
1353         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
1354         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
1355         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
1356         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
1357         (ashr<mode>3): Merge with *avx_ashr<mode>3.
1358         (lshr<mode>3): Merge with *avx_lshr<mode>3.
1359         (ashl<mode>3): Merge with *avx_ashl<mode>3.
1360         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
1361         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
1362         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1363         (*<smaxmin:code>v8hi3): Ditto.
1364         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
1365         (*<smaxmin:code>v16qi3): Ditto.
1366         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
1367         (*sse2_eq<mode>3): Ditto.
1368         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
1369         (*sse2_gt<mode>3): Ditto.
1370         (vcondv2di): Split out of vcond<mode>.
1371         (vconduv2di): Split out of vcondu<mode>.
1372
1373 2011-04-11  Richard Guenther  <rguenther@suse.de>
1374
1375         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
1376         before calling tree_low_cst.
1377
1378 2011-04-11  Richard Guenther  <rguenther@suse.de>
1379
1380         * stor-layout.c (layout_type): Compute all array index size operations
1381         in the original type.
1382         (initialize_sizetypes): Add comment.
1383         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
1384
1385 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1386
1387         * common.opt (Tbss=, Tdata=, Ttext=): New options.
1388
1389 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1390
1391         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
1392         of cgraph_node, handle NULL return value.
1393         (cgraph_global_info): Likewise.
1394         (cgraph_rtl_info): Likewise.
1395         * tree-inline.c (estimate_num_insns): Likewise.
1396         * gimplify.c (unshare_body): Likewise.
1397         (unvisit_body): Likewise.
1398         (gimplify_body): Likewise.
1399         * predict.c (optimize_function_for_size_p): Likewise.
1400         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1401         (call_may_clobber_ref_p_1): Likewise.
1402         * varasm.c (function_section_1): Likewise.
1403         (assemble_start_function): Likewise.
1404
1405 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1406
1407         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
1408         of cgraph_node.
1409         * final.c (rest_of_clean_state): Likewise.
1410         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
1411         * passes.c (pass_init_dump_file): Likewise.
1412         (execute_all_ipa_transforms): Likewise.
1413         (function_called_by_processed_nodes_p): Likewise.
1414         * predict.c (maybe_hot_frequency_p): Likewise.
1415         (probably_never_executed_bb_p): Likewise.
1416         (compute_function_frequency): Likewise.
1417         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
1418         (unnest_nesting_tree_1): Likewise.
1419         (lower_nested_functions): Likewise.
1420         * tree-optimize.c (execute_fixup_cfg): Likewise.
1421         (tree_rest_of_compilation): Likewise.
1422         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
1423         * tree-sra.c (ipa_early_sra): Likewise.
1424         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
1425         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
1426         * ipa.c (record_cdtor_fn): Likewise.
1427         * ipa-inline.c (cgraph_early_inlining): Likewise.
1428         (compute_inline_parameters_for_current): Likewise.
1429         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1430         * ipa-pure-const.c (local_pure_const): Likewise.
1431         * ipa-split.c (split_function): Likewise.
1432         (execute_split_functions): Likewise.
1433         * cgraphbuild.c (build_cgraph_edges): Likewise.
1434         (rebuild_cgraph_edges): Likewise.
1435         (cgraph_rebuild_references): Likewise.
1436         (remove_cgraph_callee_edges): Likewise.
1437         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
1438         (verify_cgraph_node): Likewise.
1439         (cgraph_analyze_functions): Likewise.
1440         (cgraph_preserve_function_body_p): Likewise.
1441         (save_inline_function_body): Likewise.
1442         (save_inline_function_body): Likewise.
1443         * tree-inline.c (copy_bb): Likewise.
1444         (optimize_inline_calls): Likewise.
1445
1446 2011-04-11  Martin Jambor  <mjambor@suse.cz>
1447
1448         PR tree-optimization/48195
1449         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
1450         ipa_check_create_edge_args.
1451         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
1452         ipa_check_create_edge_args.
1453         * ipa-inline.c (inline_generate_summary): Do not call
1454         ipa_check_create_node_params and ipa_check_create_edge_args.
1455         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
1456         ipa_check_create_edge_args.
1457
1458 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
1459
1460         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
1461         instead of loop.
1462         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1463         * function.c (record_hard_reg_sets): Likewise.
1464         * ira.c (compute_regs_asm_clobbered): Likewise.
1465         * sched-deps.c (sched_analyze_1): Likewise.
1466         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
1467
1468 2011-04-09  Xinliang David Li  <davidxl@google.com>
1469
1470         PR tree-optimization/PR48484
1471         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
1472         has_valid_pred lazily
1473
1474 2011-04-09  Duncan Sands  <baldrick@free.fr>
1475
1476         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
1477
1478 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
1479
1480         * combine.c (combine_validate_cost): Adjust comments.  Set registered
1481         cost of I0 to zero at the end, if any.
1482
1483 2011-04-08  Xinliang David Li  <davidxl@google.com>
1484
1485         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
1486         to insane profile data.
1487
1488 2011-04-08  Xinliang David Li  <davidxl@google.com>
1489
1490         * final.c (dump_basic_block_info): New function.
1491         (final): Dump basic block.
1492         (final_scan_insn): Remove old dump.
1493
1494 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
1495
1496         PR target/47829
1497         * config.gcc (i386-*-freebsd): Disable unwind table generation for
1498         crtbegin/crtend.
1499
1500 2011-04-08  Michael Matz  <matz@suse.de>
1501
1502         PR middle-end/48389
1503         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
1504         functions.
1505         (rebuild_jump_labels): Call rebuild_jump_labels_1.
1506         * rtl.h (rebuild_jump_labels_chain): Declare.
1507         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
1508         insns inserted on edges.
1509
1510 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
1511
1512         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
1513         * config/arm/arm-arches.def: New.
1514         * config/arm/arm-opts.h: New.
1515         * config/arm/genopt.sh: New.
1516         * config/arm/arm-tables.opt: New (generated).
1517         * config/arm/arm.c (arm_handle_option, arm_target_help,
1518         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
1519         (all_architectures): Get most table contents from arm-arches.def.
1520         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
1521         arm_selected_tune here.
1522         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
1523         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
1524         (march=, mcpu=, mtune=): Use Enum and Var.
1525         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
1526         (arm.o): Update dependencies.
1527
1528 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
1529
1530         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
1531         of header_file.
1532         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
1533         (write_typed_alloc_defns): Likewise.
1534         (main): Calls write_typed_alloc_defns with output_header.
1535
1536 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
1537
1538         PR inline-asm/48435
1539         * ira-color.c (setup_profitable_hard_regs): Add comments.
1540         Don't take prohibited hard regs into account.
1541         (setup_conflict_profitable_regs): Rename to
1542         get_conflict_profitable_regs.
1543         (check_hard_reg_p): Check prohibited hard regs.
1544
1545 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
1546
1547         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
1548         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
1549         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
1550
1551 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1552
1553         PR target/48366
1554         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
1555         move from floating point to shift amount register .
1556         (emit_move_sequence): Remove secondary reload support for floating
1557         point to shift amount amount register copies.
1558         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
1559         amount register copies.
1560         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
1561         register, return false if mode isn't a scalar integer mode.
1562         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
1563
1564 2011-04-08  Richard Guenther  <rguenther@suse.de>
1565
1566         * gimple.c (gimple_call_flags): Remove kludge.
1567
1568 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1569
1570         * sel-sched.c (sel_region_init): Move call to
1571         sel_setup_region_sched_flags after setup_current_loop_nest.
1572
1573 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
1574
1575         PR rtl-optimization/48272
1576         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
1577         init_insn_reg_pressure_info.  Adjust a caller.
1578         * sched-int.h (init_insn_reg_pressure_info): Declare.
1579         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
1580         when sched-pressure is enabled.
1581
1582 2011-04-08  Richard Guenther  <rguenther@suse.de>
1583
1584         * gimple.c (gimple_set_modified): Do not queue calls to
1585         MODIFIED_NORETURN_CALLS here ...
1586         * tree-ssa-operands.c (update_stmt_operands): ... but here.
1587
1588 2011-04-08  Richard Guenther  <rguenther@suse.de>
1589
1590         PR lto/48467
1591         * toplev.c (lang_dependent_init): Do not open asm_out_file
1592         in WPA mode, nor perform debug machinery initialization.
1593         (finalize): Do not unlink asm_out_file in WPA mode.
1594
1595 2011-04-08  Richard Guenther  <rguenther@suse.de>
1596
1597         * gimple.h (gimple_call_fntype): New function.
1598         (gimple_call_return_type): Use it.
1599         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
1600         * gimple-low.c (gimple_check_call_args): Likewise.
1601         * gimple.c (gimple_call_flags): Likewise.
1602         (gimple_call_arg_flags): Likewise.
1603         (gimple_call_return_flags): Likewise.
1604         * tree-cfg.c (verify_gimple_call): Likewise.
1605         (do_warn_unused_result): Likewise.
1606         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
1607         * value-prof.c (gimple_ic_transform): Fix fndecl check.
1608
1609 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
1610
1611         PR rtl-optimization/48235
1612         * sel-sched.c (code_motion_process_successors): Recompute the last
1613         insn in basic block if control flow changed.
1614         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
1615         Update condition for ilist_remove.
1616
1617 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1618
1619         PR rtl-optimization/48302
1620         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
1621         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
1622         it to record added preheader blocks.
1623         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
1624         on to sel_add_loop_preheaders.
1625         (sel_region_init): Move call to setup_current_loop_nest after
1626         sel_init_bbs.
1627
1628 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1629
1630         PR target/48273
1631         * cfgloop.h (loop_has_exit_edges): New helper.
1632         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
1633         non-clonable.
1634         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
1635         that have no exit edges.
1636
1637 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
1638
1639         PR rtl-optimization/48442
1640         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
1641         all callers.  Adjust assert.
1642
1643 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
1644
1645         PR tree-optimization/48377
1646         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
1647         is_packed to true even for types with smaller TYPE_ALIGN than
1648         TYPE_SIZE.
1649
1650 2011-04-08  Richard Guenther  <rguenther@suse.de>
1651
1652         PR bootstrap/48513
1653         * doc/tm.texi: Re-generate.
1654
1655 2011-04-08  Wei Guozhi  <carrot@google.com>
1656
1657         PR target/47855
1658         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
1659         * config/arm/arm.c (arm_attr_length_push_multi): New function.
1660         * config/arm/arm.md (*push_multi): Change the length computation to
1661         call a C function.
1662
1663 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
1664
1665         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
1666         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
1667         * doc/tm.texi: Regenerate.
1668         * system.h (ASM_OUTPUT_BSS): Poison.
1669         * varasm.c (asm_output_bss): Remove function.
1670         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
1671
1672         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
1673         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
1674         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
1675         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1676         Likewise.
1677         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1678         Likewise.
1679         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
1680         Likewise.
1681         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1682
1683 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
1684
1685         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
1686         EnumValue lines.
1687
1688 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
1689
1690         * config/m68k/m68k.c (m68k_handle_option): Don't handle
1691         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
1692         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
1693         OPT_mcpu32.
1694         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1695         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
1696         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
1697         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
1698         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
1699         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
1700         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1701         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
1702         options.  Don't map other m68k options manually.  Don't handle
1703         old-style options as canonical.
1704         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
1705         * doc/install.texi (m68k-*-*): Document binutils version requirement.
1706
1707 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
1708
1709         * basic-block.h (force_nonfallthru): Move to...
1710         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
1711         (force_nonfallthru): ...here.
1712         * cfghooks.c (force_nonfallthru): New function.
1713         * cfgrtl.c (force_nonfallthru): Rename into...
1714         (rtl_force_nonfallthru): ...this.
1715         (commit_one_edge_insertion): Do not set AUX field.
1716         (commit_edge_insertions): Do not discover new basic blocks.
1717         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
1718         (cfg_layout_rtl_cfg_hooks): Likewise.
1719         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
1720         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
1721         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
1722
1723 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
1724
1725         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
1726         Remove macros.
1727
1728 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
1729
1730         * config/i386/sse.md: Update copyright year.
1731         (avxcvtvecmode): Remove.
1732         (sse_movhlps): Merge with *avx_movhlps.
1733         (sse_movlhps): Merge with *avx_movlhps.
1734         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
1735         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
1736         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
1737         (sse_loadhps): Merge with *avx_loadhps.
1738         (sse_storelps): Merge with *avx_storelps.
1739         (sse_loadlps): Merge with *avx_loadlps.
1740         (sse_movss): Merge with *avx_movss.
1741         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
1742         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
1743         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
1744         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
1745         (vec_set<mode>_0): Ditto.
1746         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
1747         (sse4_1_insertps): Merge with *avx_insertps.
1748         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
1749         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
1750         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
1751         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
1752         (sse2_storehpd): Merge with *avx_storehpd.
1753         (sse2_loadhpd): Merge with *avx_loadhpd.
1754         (sse2_loadlpd): Merge with *avx_loadlpd.
1755         (sse2_movsd): Merge with *avx_movsd.
1756         (*vec_concatv2df): Merge with *vec_concatv2df.
1757
1758 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
1759
1760         PR debug/48343
1761         * combine.c (combine_instructions): Add last_combined_insn,
1762         update it if insn is after it, pass it to all try_combine calls.
1763         (try_combine): Add last_combined_insn parameter, pass it instead of
1764         i3 to propagate_for_debug.
1765
1766 2011-04-07  Nick Clifton  <nickc@redhat.com>
1767
1768         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
1769         to handle MDR <-> data register transfers.
1770         (movhi_internal): Likewise.
1771
1772 2011-04-07  Alan Modra  <amodra@gmail.com>
1773
1774         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
1775         previous stack info.
1776
1777 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1778
1779         PR target/43920
1780         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
1781         flow_find_cross_jump.  Swap variables to implement backward replacement.
1782         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
1783
1784 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1785
1786         PR target/43920
1787         * cfgcleanup.c (walk_to_nondebug_insn): New function.
1788         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
1789         and bb2.
1790         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
1791         src1 or src2.  Redirect edges to the last basic block.  Update
1792         frequency and count on multiple basic blocks in case of fallthru.
1793
1794 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1795
1796         PR target/43920
1797         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
1798         function.
1799         (old_insns_match_p): Change return type.  Replace return false/true
1800         with return dir_none/dir_both.  Use can_replace_by.
1801         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
1802         direction from dir_p.  Register replacement direction in dir, last_dir
1803         and afterlast_dir.  Handle new return type of old_insns_match_p using
1804         merge_dir.  Return replacement direction in dir_p.
1805         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
1806         return type of old_insns_match_p.
1807         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
1808         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
1809         flow_find_cross_jump.
1810         * basic-block.h (enum replace_direction): New type.
1811         (flow_find_cross_jump): Add parameter to declaration.
1812
1813 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
1814
1815         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
1816         (AVXMODEDCVTPS2DQ): Ditto.
1817         (VEC_FLOAT_MODE): Ditto.
1818         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
1819         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1820         (<any_logic:code><mode>3): Use VF mode iterator.
1821         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
1822         Use VF mode iterator.
1823         (copysign<mode>3): Use VF mode iterator.
1824         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
1825         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1826         (*<any_logic:code><MODEF:mode>3): Merge with
1827         *avx_<any_logic:code><MODEF:mode>3.
1828         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
1829         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
1830         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
1831         (avx_cvtdq2ps<avxmodesuffix>): Remove.
1832         (sse2_cvtdq2ps): Use %v modifier.
1833         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
1834         (avx_cvtps2dq<avxmodesuffix>): Remove.
1835         (sse2_cvtps2dq): Use %v modifier.
1836         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
1837         (avx_cvttps2dq<avxmodesuffix>): Remove.
1838         (sse2_cvttps2dq): Use %v modifier.
1839         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
1840         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
1841         (sse2_cvtsd2siq): Fix insn template.
1842         (sse2_cvtsd2siq_2): Ditto.
1843         (sse2_cvttsd2siq): Ditto.
1844         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
1845         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
1846
1847 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
1848
1849         * gcov-io.c: Use GCC Runtime Library Exception.
1850
1851 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
1852
1853         PR debug/48466
1854         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
1855         as base_reg whatever register reg has been eliminated to, instead
1856         of hardcoding STACK_POINTER_REGNUM.
1857
1858 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
1859
1860         * doc/tm.texi.in: Document C target hooks as separate from general
1861         target hooks.
1862         * doc/tm.texi: Regenerate.
1863         * genhooks.c (struct hook_desc): Add docname field.
1864         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
1865         docname field.
1866         (hook_array): Include c-target.def.
1867         (emit_documentation): Use docname field in output.
1868         (emit_init_macros): Take docname argument.  Only emit definitions
1869         for hooks matching docname.
1870         (main): Expect additional arguments in all cases.  Pass argument
1871         to emit_init_macros.
1872         * target.def: Move initial macro definitions and comments to
1873         target-hooks-macros.h.
1874         (gcc_targetcm): Move to c-family/c-target.def.
1875         * target.h (targetcm): Move declaration to c-family/c-target.h.
1876         * targhooks.c (default_handle_c_option): Move to
1877         c-family/c-opts.c.
1878         * targhooks.h (default_handle_c_option): Move declaration to
1879         c-family/c-common.h.
1880         * target-hooks-macros.h: New file.
1881         * config.gcc (target_has_targetcm): Define and use to add to
1882         c_target_objs and cxx_target_objs.
1883         * config/default-c.c: New file.
1884         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
1885         of target.h and target-def.h.
1886         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
1887         (darwin_objc_construct_string, darwin_cfstring_ref_p,
1888         darwin_check_cfstring_format_arg): Make static.
1889         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1890         TARGET_STRING_OBJECT_REF_TYPE_P,
1891         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
1892         * config/darwin-protos.h (darwin_objc_construct_string,
1893         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
1894         declare.
1895         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1896         TARGET_STRING_OBJECT_REF_TYPE_P,
1897         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
1898         * config/t-darwin (darwin-c.o): Update dependencies.
1899         * system.h (TARGET_HAS_TARGETCM): Poison.
1900         * Makefile.in (TARGET_H): Update.
1901         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
1902         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
1903         (default-c.o): New target.
1904         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
1905         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
1906         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
1907         c-target.def.
1908         (build/genhooks.o): Update dependencies.
1909
1910 2011-04-06  Richard Guenther  <rguenther@suse.de>
1911
1912         * ipa-inline.c (enum inlining_mode): Remove.
1913         (cgraph_flatten): Use some other token.
1914         (cgraph_edge_early_inlinable_p): New function, split out from ...
1915         (cgraph_perform_always_inlining): New function, split out from ...
1916         (cgraph_decide_inlining_incrementally): ... here.
1917         (cgraph_mark_inline_edge): Adjust.
1918         (cgraph_early_inlining): Re-structure.
1919         (pass_early_inline): Require SSA form.
1920
1921 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
1922             Julian Brown  <julian@codesourcery.com>
1923             Mark Shinwell  <shinwell@codesourcery.com>
1924
1925         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
1926         LO_REGS only for Thumb-1.
1927         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
1928         be used in short instructions when optimising for size on Thumb-2.
1929
1930 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
1931
1932         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
1933         associated with user returns to be preserved.
1934
1935 2011-04-06  Tristan Gingold  <gingold@adacore.com>
1936
1937         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
1938         symbol_queue_size, DBXOUT_DECR_NESTING,
1939         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
1940         if XCOFF_DEBUGGING_INFO.
1941
1942 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
1943
1944         * config/i386/i386.md (attribute isa): New.
1945         (attribute enabled): New.
1946         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
1947         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
1948         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
1949         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
1950         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
1951         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1952         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
1953         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
1954
1955         * config/i386/sse.md (VF): New mode iterator.
1956         (VF1): Ditto.
1957         (VF2): Ditto.
1958         (VF_128): Ditto.
1959         (SSEMODEF4): Remove.
1960         (attribute sse): Handle V8SF and V4DF modes.
1961         (<absneg:code><mode>2): Use VF mode iterator.
1962         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
1963         mode iterator.
1964         (<plusminus_insn><mode>3): Use VF mode iterator.
1965         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1966         Use VF mode iterator.
1967         (<sse>_vm<plusminus_insn><mode>3): Merge with
1968         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
1969         (mul<mode>3): Use VF mode iterator.
1970         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
1971         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
1972         mode iterator.
1973         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
1974         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
1975         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
1976         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
1977         mode iterator.
1978         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
1979         Use VF1 mode iterator.
1980         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
1981         (sqrt<VF2:mode>2): New expander.
1982         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
1983         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
1984         and sqrtv2df2.  Use VF mode iterator.
1985         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
1986         mode iterator.
1987         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
1988         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
1989         Use VF1 mode iterator.
1990         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
1991         (<smaxmin:code><mode>3): Use VF mode iterator.
1992         (*<smaxmin:code><mode>3_finite): Merge with
1993         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
1994         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1995         (<sse>_vm<smaxmin:code><mode>2): Merge with
1996         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
1997         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
1998         mode iterator.
1999         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
2000         mode iterator.
2001         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2002         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2003         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2004         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2005         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
2006         VF mode iterator.
2007         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2008         Use VF_128 mode iterator.
2009         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
2010         mode iterator.
2011         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
2012         VF_128 mode iterator.
2013         (vcond<mode>): Use VF mode iterator.
2014         * config/i386/predicates.md (sse_comparison_operator): Merge with
2015         avx_comparison_float_operator.  Do not declare as special_predicate.
2016         * config/i386/i386.c (struct builtin_description): Update for renamed
2017         compare patterns.
2018         (ix86_expand_args_builtin): Ditto.
2019         (ix86_expand_sse_compare_mask): Ditto.
2020
2021 2011-04-06  Richard Guenther  <rguenther@suse.de>
2022
2023         * tree-inline.c (estimate_num_insns): For calls simply account
2024         for all passed arguments and a used return value.
2025
2026 2011-04-06  Richard Guenther  <rguenther@suse.de>
2027
2028         PR tree-optimization/47663
2029         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2030         call_stmt_time fields.
2031         (cgraph_edge_inlinable_p): Declare.
2032         (cgraph_edge_recursive_p): New inline function.
2033         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2034         (cgraph_clone_edge): Copy it.
2035         * ipa-inline.c (cgraph_estimate_edge_time): New function.
2036         Account for call stmt time.
2037         (cgraph_estimate_time_after_inlining): Take edge argument.
2038         (cgraph_estimate_edge_growth): Account call stmt size.
2039         (cgraph_estimate_size_after_inlining): Take edge argument.
2040         (cgraph_mark_inline_edge): Adjust.
2041         (cgraph_check_inline_limits): Likewise.
2042         (cgraph_recursive_inlining_p): Remove.
2043         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2044         (cgraph_decide_recursive_inlining): Take edge argument and
2045         adjust.
2046         (cgraph_decide_inlining_of_small_functions): Do not avoid
2047         diags for recursive inlining here.
2048         (cgraph_flatten): Adjust.
2049         (cgraph_decide_inlining_incrementally): Likewise.
2050         (estimate_function_body_sizes): Remove call cost handling.
2051         (compute_inline_parameters): Initialize caller edge call costs.
2052         (cgraph_estimate_edge_growth): New function.
2053         (cgraph_estimate_growth): Use it.
2054         (cgraph_edge_badness): Likewise.
2055         (cgraph_check_inline_limits): Take an edge argument.
2056         (cgraph_decide_inlining_of_small_functions): Adjust.
2057         (cgraph_decide_inlining): Likewise.
2058         * tree-inline.c (estimate_num_insns): Only account for call
2059         return value if it is used.
2060         (expand_call_inline): Avoid diagnostics on recursive inline
2061         functions here.
2062         * lto-cgraph.c (lto_output_edge): Output edge call costs.
2063         (input_edge): Input edge call costs.
2064
2065 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2066
2067         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2068
2069 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2070
2071         * doc/invoke.texi (Spec Files): Fix typo.
2072
2073 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2074
2075         * profile.c (branch_prob): Move declaration of local variable.  Remove
2076         obsolete ??? comment.  Expand the location explicitly instead of using
2077         the LOCATION_FILE and LOCATION_LINE macros.
2078
2079 2011-04-06  Wei Guozhi  <carrot@google.com>
2080
2081         PR target/47855
2082         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2083         (arm_cond_branch): Likewise.
2084         (arm_cond_branch_reversed): Likewise.
2085         (arm_jump): Likewise.
2086         (push_multi): Likewise.
2087         * config/arm/constraints.md (Py): New constraint.
2088
2089 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2090
2091         PR bootstrap/48471
2092         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2093         Move these...
2094         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2095         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2096         #ifdef DBX_DEBUGGING_INFO.
2097
2098 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
2099
2100         PR bootstrap/48403
2101         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2102         if old and new states differ.
2103
2104 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2105
2106         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2107         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2108         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2109         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2110         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2111         mcfv4e): Use Alias.
2112         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2113         ColdFire options to -mcpu= options.
2114
2115 2011-04-05  Jeff Law  <law@redhat.com>
2116
2117         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2118         check if BB is a successor of LOOP->header and return
2119         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2120
2121 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2122
2123         * cprop.c (struct reg_use): Remove.
2124         (reg_use_table): Make an array of RTX.
2125         (find_used_regs, constprop_register, local_cprop_pass,
2126         bypass_block): Simplify users of reg_use_table.
2127         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
2128         on one of the uses found by find_used_regs.
2129
2130 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2131
2132         PR bootstrap/48469
2133         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2134         declaration.
2135
2136 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2137
2138         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2139         as an rtx.
2140         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2141
2142 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2143
2144         PR middle-end/48441
2145         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2146
2147 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2148
2149         * combine.c: Include obstack.h.
2150         (struct insn_link): Define.
2151         (uid_log_links): Adjust type.
2152         (FOR_EACH_LOG_LINK): New macro.
2153         (insn_link_obstack): Declare.
2154         (alloc_insn_link): Define.
2155         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
2156         type of link variables.
2157         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2158         (try_combine, record_promoted_values, distribute_notes): Likewise.
2159         (distribute_links): Likewise.  Tweak prototype.
2160         (clear_log_links): Delete.
2161         (adjust_for_new_dest): Call alloc_insn_link.
2162         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2163
2164 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2165
2166         * gcse.c (modify_mem_list): Convert to an array of VECs.
2167         (canon_modify_mem_list, compute_transp): Tweak formatting.
2168         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
2169         (load_killed_in_block_p): Likewise.
2170         (record_last_mem_set_info): Likewise.
2171         (clear_modify_mem_tables): Likewise.
2172
2173 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2174
2175         PR middle-end/48461
2176         * function.c (emit_use_return_register_into_block): Only define if
2177         HAVE_return.
2178
2179 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
2180
2181         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2182
2183 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2184
2185         * config/rx/rx-opts.h: New.
2186         * config/rx/rx.c (rx_cpu_type): Remove.
2187         (rx_handle_option): Don't assert that global structures are in
2188         use.  Access variables via opts pointer.  Defer most handling of
2189         OPT_mint_register_.  Use error_at.
2190         (rx_option_override): Handle deferred OPT_mint_register_ here.
2191         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2192         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2193         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2194         (rx_cpu_types): New Enum and EnumValue entries.
2195         (mint-register=): Use Defer and use Var accordingly.
2196
2197 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2198
2199         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2200         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2201         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2202         Move these...
2203         (debug_free_queue, debug_nesting, symbol_queue_index):
2204         ...and these...
2205         * dbxout.c: ...to here.  Make static.
2206
2207 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2208
2209         * gcse.c (modify_pair): Define.  Define a VEC of it.
2210         (canon_modify_mem_list): Convert to an array of VECs.
2211         (free_insn_expr_list_list): Delete.
2212         (clear_modify_mem_tables): Call VEC_free instead.
2213         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2214         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2215         (canon_list_insert, compute_transp): Likewise.
2216
2217 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2218
2219         PR target/43920
2220         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
2221         for size.
2222
2223 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2224
2225         PR target/43920
2226         * function.c (emit_use_return_register_into_block): New function.
2227         (thread_prologue_and_epilogue_insns): Use
2228         emit_use_return_register_into_block.
2229
2230 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2231
2232         PR target/43920
2233         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
2234         insn.
2235
2236 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2237
2238         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
2239
2240 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
2241
2242         * config/arm/arm.md (define_constants for unspec): Replace with
2243         define_c_enum.
2244         (define_constants for unspecv): Replace with define_c_enum.
2245         * config/arm/neon.md (define_constants for unspec): Replace with
2246         define_c_enum.
2247
2248 2011-04-04  Richard Henderson  <rth@redhat.com>
2249
2250         PR bootstrap/48400
2251         * dwarf2out.c (output_line_info): Always emit line info from
2252         at least one section.
2253         (dwarf2out_init): Create text_section_line_info here ...
2254         (set_cur_line_info_table): ... not here.
2255
2256 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
2257
2258         PR target/48380
2259         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
2260         not called.
2261
2262         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
2263
2264 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
2265
2266         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
2267         (expr_equiv_p): Remove.
2268         (insert_set_in_table): Look at <dest, src> pair instead of expr.
2269         (hash_scan_set): Update call to insert_set_in_table.
2270         (dump_hash_table): Dump <dest, src> pair.
2271         (lookup_set): Simplify.  Lookup <dest, src> pair.
2272         (compute_transp): Remove, fold heavily simplified code into...
2273         (compute_local_properties): ...here.  Expect COMP and TRANSP
2274         unconditionally.
2275         (find_avail_set): Take set directly from struct expr.
2276         (find_bypass-set): Likewise.
2277         (bypass_block): Likewise.
2278         (cprop_insn): Likewise.  Remove redundant INSN_P test.
2279
2280         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
2281         checks on form of COND from find_implicit_sets to here.
2282         (find_implicit_sets): Cleanup control flow. Split critical edges
2283         if it exposes implicit sets.  Allocate/resize implicit_sets as
2284         necessary.
2285         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
2286         changed something.  Run df_analyze after find_implicit_sets if any
2287         edges were split.  Do not allocate implicit_sets here.
2288
2289         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
2290         (gcse_obstack): Renamed to cprop_obstack.
2291         (GNEW, GNEWVEC, GNEWVAR): Remove.
2292         (gmalloc): Remove.
2293         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
2294         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
2295         (gcse_alloc): Likewise, and rename to cprop_alloc.
2296         (alloc_gcse_men, free_gcse_mem): Remove.
2297         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
2298         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
2299         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
2300
2301         * cprop.c (oprs_not_set_p): Remove.
2302         (mark_set, mark_clobber): Remove.
2303         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
2304         (reg_not_set_p): New function.
2305         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
2306         (cprop_insn): Likewise.
2307         (cprop_jump): Use FOR_EACH_EDGE.
2308
2309 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
2310
2311         PR bootstrap/48403
2312         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
2313         (rank_for_schedule): Use scheduled_insns vector instead of
2314         last_scheduled_insn.
2315         (ok_for_early_queue_removal): Likewise.
2316         (queue_to_ready): Search forward in nonscheduled_insns_begin if
2317         we have a dbg_cnt.
2318         (choose_ready): Likewise.
2319         (commit_schedule): Use VEC_iterate.
2320         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
2321         a dbg_cnt, use it and ensure the first insn is in the ready list.
2322         (haifa_sched_init): Allocate scheduled_insns.
2323         (sched_extend_ready_list): Don't allocate it; reserve space.
2324         (haifa_sched_finish): Free it.
2325
2326 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
2327
2328         * optc-gen.awk: Always remove type from Variable entry before
2329         recording in var_seen.
2330
2331 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
2332
2333         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
2334         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
2335         call to tidy_fallthru_edges.
2336
2337 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
2338
2339         * doc/options.texi (ToLower): Document.
2340         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
2341         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
2342         * opts.h (cl_option): Add cl_tolower field.
2343         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
2344         arguments with lowercase strings.
2345         * config/rx/rx.opt (mcpu=): Add ToLower.
2346         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
2347         argument.
2348
2349 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
2350
2351         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
2352
2353 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
2354
2355         * config/vax/vax.c: Include reload.h.
2356
2357 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
2358
2359         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
2360         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2361         (sparc_preferred_reload_class): New function.
2362
2363 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
2364
2365         PR debug/48401
2366         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2367         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
2368
2369 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
2370
2371         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
2372         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
2373
2374 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
2375
2376         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
2377         (ASM_OUTPUT_ALIGNED_BSS): Define.
2378
2379 2011-04-03  Michael Matz  <matz@suse.de>
2380
2381         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
2382         and next_slot members.
2383         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
2384         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
2385         (lto_streamer_cache_append): Declare.
2386         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
2387         unsigned index, remove offset parameter, ensure that we append
2388         or update existing entries.
2389         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
2390         parameter, update next_slot for append.
2391         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
2392         parameter.
2393         (lto_streamer_cache_insert_at): Likewise.
2394         (lto_streamer_cache_append): New function.
2395         (lto_streamer_cache_lookup): Use unsigned index.
2396         (lto_streamer_cache_get): Likewise.
2397         (lto_record_common_node): Don't test tree_node_can_be_shared.
2398         (preload_common_node): Adjust call to lto_streamer_cache_insert.
2399         (lto_streamer_cache_delete): Don't free offsets member.
2400         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
2401         (lto_output_string_with_length): Use lto_output_data_stream.
2402         (lto_output_tree_header): Remove ix parameter, don't write it.
2403         (lto_output_builtin_tree): Likewise.
2404         (lto_write_tree): Adjust callers to above, don't track and write
2405         offset, write unsigned index.
2406         (output_unreferenced_globals): Don't emit all global vars.
2407         (write_global_references): Use unsigned indices.
2408         (lto_output_decl_state_refs): Likewise.
2409         (write_symbol): Likewise.
2410         * lto-streamer-in.c (lto_input_chain): Move earlier.
2411         (input_function): Use unsigned index.
2412         (input_alias_pairs): Don't read and then ignore all global vars.
2413         (lto_materialize_tree): Remove ix_p parameter, don't read index,
2414         don't pass it back, use lto_streamer_cache_append.
2415         (lto_register_var_decl_in_symtab): Use unsigned index.
2416         (lto_register_function_decl_in_symtab): Likewise.
2417         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
2418         index.
2419         (lto_get_builtin_tree): Don't read index, use
2420         lto_streamer_cache_append.
2421         (lto_read_tree): Adjust call to lto_materialize_tree.
2422
2423         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
2424         don't use function calls in arguments to MIN.
2425
2426         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
2427         twice.
2428
2429         * gimple.c (gimple_type_leader_entry): Mark deletable.
2430
2431 2011-04-03  Alan Modra  <amodra@gmail.com>
2432
2433         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
2434
2435 2011-04-03  Michael Matz  <matz@suse.de>
2436
2437         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
2438         an integer.
2439         * tree.h (tree_decl_non_common.vindex): Adjust comment.
2440
2441 2011-04-03  Michael Matz  <matz@suse.de>
2442
2443         * cgraphbuild.c (record_reference): Canonicalize constructor values.
2444         * gimple-fold.c (canonicalize_constructor_val): Accept being called
2445         without function context.
2446         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
2447         current_function_decl and cfun.
2448
2449 2011-04-03  Michael Matz  <matz@suse.de>
2450
2451         * tree.c (decl_init_priority_insert): Don't create entry for
2452         default priority.
2453         (decl_fini_priority_insert): Ditto.
2454         (fields_compatible_p, find_compatible_field): Remove.
2455         * tree.h (fields_compatible_p, find_compatible_field): Remove.
2456         * gimple.c (gimple_compare_field_offset): Adjust block comment.
2457
2458 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
2459
2460         * combine.c (try_combine): Remove useless local variable.
2461
2462 2011-04-03  Richard Guenther  <rguenther@suse.de>
2463             Ira Rosen  <ira.rosen@linaro.org>
2464
2465         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
2466         non-variable offsets and compare the remaining bases of the two
2467         accesses instead of looking for exact same data-ref.
2468
2469 2011-04-02  Kai Tietz  <ktietz@redhat.com>
2470
2471         PR target/48416
2472         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
2473
2474         * i386.c (ix86_is_msabi_thiscall): New helper function.
2475         (ix86_is_type_thiscall): New helper function.
2476         (ix86_comp_type_attributes): Handle thiscall for method-functions
2477         special.
2478         (init_cumulative_args): Likewise.
2479         (find_drap_reg): Likewise.
2480         (ix86_static_chain): Likewise.
2481         (x86_this_parameter): Likewise.
2482         (x86_output_mi_thunk): Likewise.
2483
2484 2011-04-01  Olivier Hainque  <hainque@adacore.com>
2485             Nicolas Setton  <setton@adacore.com>
2486             Eric Botcazou  <ebotcazou@adacore.com>
2487
2488         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
2489         (add_gnat_descriptive_type_attribute): New function.
2490         (gen_array_type_die): Call it.
2491         (gen_enumeration_type_die): Likewise.
2492         (gen_struct_or_union_type_die): Likewise.
2493         (modified_type_die): Likewise.
2494         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
2495         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
2496         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
2497
2498 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
2499
2500         PR bootstrap/48148
2501         * dwarf2out.c (resolve_addr): Don't call force_decl_die
2502         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
2503
2504         Revert:
2505         2011-03-17  Richard Guenther  <rguenther@suse.de>
2506
2507         PR bootstrap/48148
2508         * lto-cgraph.c (input_overwrite_node): Clear the abstract
2509         origin for decls in other ltrans units.
2510         (input_varpool_node): Likewise.
2511
2512 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
2513
2514         PR middle-end/48335
2515         * expr.c (expand_assignment): Handle all possibilities
2516         if TO_RTX is CONCAT.
2517         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
2518         (store_split_bit_field): If SUBREG_REG (op0) or
2519         op0 itself has smaller mode than word, return it
2520         for offset 0 and const0_rtx for out-of-bounds stores.
2521         If word is const0_rtx, skip it.
2522
2523 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
2524
2525         * config/h8300/h8300.c (print_operand_address): Rename to...
2526         (h8300_print_operand_address): ...this. Make static. Adjust comments.
2527         Call h8300_print_operand and h8300_print_operand_address instead of
2528         print_operand and print_operand_address. Declare.
2529         (print_operand): Renake to...
2530         (h8300_print_operand): ...this. Make static. Adjust comments.
2531         Call h8300_print_operand instead of print_operand. Declare.
2532         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
2533         (h8300_register_move_cost): Likewise.
2534         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
2535         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
2536         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
2537         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
2538         * config/h8300/h8300-protos.h (print_operand): Delete.
2539         (print_operand_address): Delete.
2540
2541 2011-04-01  Richard Henderson  <rth@redhat.com>
2542
2543         PR 48400
2544         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
2545         in strict mode before dwarf4.  Re-order tests to early out
2546         before switching sections.
2547
2548 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
2549
2550         * config/h8300/constraints.md: New file.
2551         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
2552         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
2553         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
2554         * config/h8300/predicates.md (bit_operand): Likewise.
2555         (incdec_operand): Use satisfies_constraint_M and
2556         satisfies_constraint_O.  Don't use C code block.
2557         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
2558         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
2559         (compute_mov_length): Use satisfies_constraint_G.
2560         (fix_bit_operand): Use satisfies_constraint_U.
2561         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
2562         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
2563         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
2564         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
2565         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
2566         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
2567         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2568         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
2569         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
2570         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
2571         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
2572         (EXTRA_MEMORY_CONSTRAINT): Delete.
2573
2574 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
2575             Michael Meissner  <meissner@linux.vnet.ibm.com>
2576
2577         PR target/48262
2578         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
2579         operands, as per the specifications.
2580
2581         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
2582         (vec_extract_evenv4sf): Ditto.
2583         (vec_extract_evenv8hi): Ditto.
2584         (vec_extract_evenv16qi): Ditto.
2585         (vec_extract_oddv4si): Ditto.
2586
2587 2011-03-31  Mark Wielaard  <mjw@redhat.com>
2588
2589         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
2590         high_pc attribute if the CU has no associated code. Only output
2591         DW_AT_entry_pc for CU if not generating strict dwarf and
2592         dwarf_version < 4.
2593
2594 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
2595
2596         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
2597         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
2598         out of ...
2599         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
2600         * final.c (final_start_function): Call the new function rather
2601         than using a NULL argument for dwarf2out_frame_debug.
2602
2603         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
2604         that contains the prologue.
2605
2606         * haifa-sched.c (queue_insn): New arg REASON.  All callers
2607         changed.  Print it in debugging output.
2608
2609         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
2610
2611         * sched-ebb.c (begin_schedule_ready): Remove second argument.
2612         Split most of the code into...
2613         (begin_move_insn): ... here.  New function.
2614         (ebb_sched_info): Add a pointer to it.
2615         * haifa-sched.c (scheduled_insns): New static variable.
2616         (sched_extend_ready_list): Allocate it.
2617         (schedule_block): Use it to record the order of scheduled insns.
2618         Perform RTL changes to move insns only after all scheduling
2619         decisions have been made.
2620         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
2621         begin_move_insn field.
2622         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2623         * sched-int.h (struct haifa_sched_info): Remove second argument
2624         from begin_schedule_ready hook.  Add new member begin_move_insn.
2625         * sched-rgn.c (begin_schedule_ready): Remove second argument.
2626         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
2627
2628         * haifa-sched.c (prune_ready_list): New function, broken out of
2629         schedule_block.
2630         (schedule_block): Use it.
2631
2632 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2633
2634         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
2635
2636 2011-04-01  Kai Tietz  <ktietz@redhat.com>
2637
2638         * config.gcc (*-*-mingw*): Allow as option the
2639         posix threading model.
2640         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
2641         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
2642         definition.
2643         (CPP_SPEC): Add pthread/no-pthread handling.
2644         (LIB_SPEC): Likewise.
2645         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
2646         (LIB_SPEC): Likewise.
2647         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
2648         flag to pass -pthread option for shared libgcc build.
2649         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
2650         for shared libgcc build.
2651         * config/i386/t-mingw-pthread: New file.
2652         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
2653         New define to enable use of library pthread by default.
2654         * config/i386/mingw.opt (pthread): New driver option.
2655         (no-pthread): New driver option.
2656         * config/i386/cygming.opt: Make sure trailing empty line is retained.
2657         * config/i386/mingw-w64.opt: Likewise.
2658
2659 2011-04-01  Gary Funck <gary@intrepid.com>
2660
2661         * c-decl.c (grokdeclarator): Fix formatting.
2662
2663 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2664
2665         * expr.c (emit_block_move_via_movmem): Use n_generator_args
2666         instead of n_operands.
2667         (set_storage_via_setmem): Likewise.
2668         * optabs.c (maybe_gen_insn): Likewise.
2669         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
2670         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
2671         (mips_expand_builtin_direct): Likewise.
2672         * config/spu/spu.c (expand_builtin_args): Likewise.
2673
2674 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2675
2676         * recog.h (insn_data_d): Add n_generator_args.
2677         * genoutput.c (data): Likewise.
2678         (output_insn_data): Print it.
2679         (max_opno, num_dups): Delete.
2680         (scan_operands): Just fill in "d->operand[...]".
2681         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
2682
2683 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
2684
2685         * gensupport.h (pattern_stats): New structure.
2686         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
2687         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
2688         (max_operand_1, max_operand_vec): Delete.
2689         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
2690
2691 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
2692
2693         * emit-rtl.c (emit_pattern_after_setloc): New function.
2694         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
2695         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
2696         (emit_pattern_after): New function.
2697         (emit_insn_after, emit_jump_insn_after): Call it.
2698         (emit_call_insn_after, emit_debug_insn_after): Likewise.
2699         (emit_pattern_before_setloc): New function.
2700         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
2701         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
2702         Likewise.
2703         (emit_pattern_before): New function.
2704         (emit_insn_before, emit_jump_insn_before): Call it.
2705         (emit_call_insn_before, emit_debug_insn_before): Likewise.
2706
2707 2011-03-31  Richard Henderson  <rth@redhat.com>
2708
2709         * dwarf2out.c (dw_separate_line_info_ref): Remove.
2710         (dw_separate_line_info_entry): Remove.
2711         (enum dw_line_info_opcode): New.
2712         (dw_line_info_entry): Use it.
2713         (dw_line_info_table, dw_line_info_table_p): New.
2714         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
2715         (line_info_table, line_info_label_num): Remove.
2716         (line_info_table_in_use): Remove.
2717         (separate_line_info_table): Remove.
2718         (separate_line_info_table_allocated): Remove.
2719         (separate_line_info_table_in_use): Remove.
2720         (LINE_INFO_TABLE_INCREMENT): Remove.
2721         (line_info_label_num): New.
2722         (cur_line_info_table): New.
2723         (text_section_line_info, cold_text_section_line_info): New.
2724         (separate_line_info): New.
2725         (SEPARATE_LINE_CODE_LABEL): Remove.
2726         (print_dwarf_line_table): Remove.
2727         (debug_dwarf): Don't dump it.
2728         (output_one_line_info_table): New.
2729         (output_line_info): Use it.
2730         (new_line_info_table): New.
2731         (set_cur_line_info_table): New.
2732         (dwarf2out_switch_text_section): Use it.
2733         (dwarf2out_begin_function): Likewise.
2734         (push_dw_line_info_entry): New.
2735         (dwarf2out_source_line): Rewrite for new line info tables.
2736         (dwarf2out_init): Remove dead initailizations.
2737
2738 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
2739
2740         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
2741         various flags.
2742         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
2743         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
2744         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
2745         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
2746         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
2747         * opt-functions.awk (flag_init, switch_bit_fields): New.
2748         (switch_flags): Don't handle flags moved to bit-fields.  Don't
2749         generate CL_MISSING_OK or CL_SAVE.
2750         * optc-gen.awk: Update to generate bit-field output as well as
2751         flags field.
2752         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
2753         bit-field instead of CL_REJECT_DRIVER flag.
2754         * opts-common.c (generate_canonical_option,
2755         decode_cmdline_option): Use bit-fields instead of CL_* flags.
2756         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
2757         instead of CL_REJECT_NEGATIVE flag.
2758         * toplev.c (print_switch_values): Use cl_report bit-field instead
2759         of CL_REPORT flag.
2760
2761 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
2762
2763         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
2764         a zero minimum index only if it is redundant.
2765
2766 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
2767
2768         PR rtl-optimization/48381
2769         * ira-color.c (assign_hard_reg): Use hard reg set intersection
2770         instead of ira_class_hard_reg_index for calculating conflicting
2771         hard registers.
2772
2773 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
2774
2775         * cprop.c: Clean up hash table building.
2776         (reg_avail_info): Remove.
2777         (oprs_available_p): Remove.
2778         (record_last_reg_set_info): Remove.
2779         (record_last_set_info): Remove.
2780         (reg_available_p): New function.
2781         (gcse_constant_p): Do not treat unfolded conditions as constants.
2782         (make_set_regs_unavailable): New function.
2783         (hash_scan_set): Simplify with new reg_available_p.
2784         (compute_hash_table_work): Traverse insns stream only once.
2785         Do not compute reg_avail_info. Traverse insns in reverse order.
2786         Record implicit sets after recording explicit sets from the block.
2787
2788 2011-03-31  Michael Matz  <matz@suse.de>
2789
2790         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
2791
2792 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
2793
2794         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
2795         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
2796         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2797         (h8300_mode_dependent_address_p): New function.
2798         (h8300_get_index): Make static.
2799
2800 2011-03-31  Jeff Law  <law@redhat.com>
2801
2802         * reload1.c (elimination_effects): Fix typo in recent change.
2803
2804         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
2805         typo potentially leading to null pointer dereference.
2806
2807         * caller-save.c (new_saved_hard_reg): Eliminate return value.
2808         (setup_save_areas): Corresponding changes to avoid useless
2809         assignments.
2810
2811         * jump.c (reversed_comparison_code_parts): Avoid successive return
2812         statements when REVERSE_CONDITION is defined.
2813
2814         * expr.c (expand_assignment): Avoid useless assignments.
2815         (expand_expr_real_1): Likewise.
2816         (expand_expr_real_2): Avoid useless statements.
2817
2818         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
2819
2820         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2821
2822         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
2823         statements.
2824
2825         * stmt.c (expand_expr_stmt): Avoid useless assignment.
2826
2827 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
2828
2829         PR target/47109
2830         * doc/tm.texi.in (TARGET_VERSION): Remove.
2831         * doc/tm.texi: Regenerate.
2832         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
2833         * collect2.c (main): Don't use TARGET_VERSION.
2834         * mips-tdump.c (main): Don't use TARGET_VERSION.
2835         * mips-tfile.c (main): Don't use TARGET_VERSION.
2836         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
2837         * config/rs6000/vxworksae.h: Remove.
2838         * config/alpha/alpha.h (TARGET_VERSION): Remove.
2839         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
2840         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
2841         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
2842         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2843         * config/arm/arm.h (TARGET_VERSION): Remove.
2844         * config/arm/coff.h (TARGET_VERSION): Remove.
2845         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
2846         * config/arm/elf.h (TARGET_VERSION): Remove.
2847         * config/arm/freebsd.h (TARGET_VERSION): Remove.
2848         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
2849         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
2850         * config/arm/pe.h (TARGET_VERSION): Remove.
2851         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
2852         * config/arm/semi.h (TARGET_VERSION): Remove.
2853         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
2854         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
2855         * config/arm/vxworks.h (TARGET_VERSION): Remove.
2856         * config/avr/avr.h (TARGET_VERSION): Remove.
2857         * config/bfin/bfin.h (TARGET_VERSION): Remove.
2858         * config/fr30/fr30.h (TARGET_VERSION): Remove.
2859         * config/frv/frv.h (TARGET_VERSION): Remove.
2860         * config/h8300/h8300.h (TARGET_VERSION): Remove.
2861         * config/i386/cygwin.h (TARGET_VERSION): Remove.
2862         * config/i386/darwin.h (TARGET_VERSION): Remove.
2863         * config/i386/darwin64.h (TARGET_VERSION): Remove.
2864         * config/i386/djgpp.h (TARGET_VERSION): Remove.
2865         * config/i386/freebsd.h (TARGET_VERSION): Remove.
2866         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
2867         * config/i386/gnu.h (TARGET_VERSION): Remove.
2868         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
2869         * config/i386/i386elf.h (TARGET_VERSION): Remove.
2870         * config/i386/linux.h (TARGET_VERSION): Remove.
2871         * config/i386/linux64.h (TARGET_VERSION): Remove.
2872         * config/i386/lynx.h (TARGET_VERSION): Remove.
2873         * config/i386/mingw32.h (TARGET_VERSION): Remove.
2874         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
2875         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
2876         * config/i386/netware.h (TARGET_VERSION): Remove.
2877         * config/i386/nto.h (TARGET_VERSION): Remove.
2878         * config/i386/openbsd.h (TARGET_VERSION): Remove.
2879         * config/i386/vxworks.h (TARGET_VERSION): Remove.
2880         * config/ia64/elf.h (TARGET_VERSION): Remove.
2881         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
2882         * config/ia64/hpux.h (TARGET_VERSION): Remove.
2883         * config/ia64/linux.h (TARGET_VERSION): Remove.
2884         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2885         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
2886         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2887         * config/lm32/lm32.h (TARGET_VERSION): Remove.
2888         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
2889         * config/m32c/m32c.h (TARGET_VERSION): Remove.
2890         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
2891         * config/m32r/m32r.h (TARGET_VERSION): Remove.
2892         * config/m68k/linux.h (TARGET_VERSION): Remove.
2893         * config/m68k/m68k.h (TARGET_VERSION): Remove.
2894         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
2895         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
2896         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
2897         * config/mep/mep.h (TARGET_VERSION): Remove.
2898         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
2899         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2900         * config/mips/iris6.h (MACHINE_TYPE): Remove.
2901         * config/mips/linux.h (TARGET_VERSION): Remove.
2902         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
2903         * config/mips/vxworks.h (TARGET_VERSION): Remove.
2904         * config/mmix/mmix.h (TARGET_VERSION): Remove.
2905         * config/mn10300/linux.h (TARGET_VERSION): Remove.
2906         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
2907         * config/pa/pa.h (TARGET_VERSION): Remove.
2908         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
2909         * config/picochip/picochip.h (TARGET_VERSION): Remove.
2910         * config/rs6000/aix.h (TARGET_VERSION): Remove.
2911         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
2912         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
2913         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
2914         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
2915         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
2916         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
2917         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
2918         * config/rs6000/linux.h (TARGET_VERSION): Remove.
2919         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
2920         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
2921         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
2922         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
2923         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
2924         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
2925         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
2926         * config/s390/linux.h (TARGET_VERSION): Remove.
2927         * config/s390/s390.h (TARGET_VERSION): Remove.
2928         * config/s390/tpf.h (TARGET_VERSION): Remove.
2929         * config/score/score.h (TARGET_VERSION): Remove.
2930         * config/sh/linux.h (TARGET_VERSION): Remove.
2931         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
2932         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
2933         * config/sh/sh.h (TARGET_VERSION): Remove.
2934         * config/sh/sh64.h (TARGET_VERSION): Remove.
2935         * config/sh/superh.h (TARGET_VERSION): Remove.
2936         * config/sh/vxworks.h (TARGET_VERSION): Remove.
2937         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
2938         * config/sparc/linux.h (TARGET_VERSION): Remove.
2939         * config/sparc/linux64.h (TARGET_VERSION): Remove.
2940         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
2941         TARGET_NAME32, TARGET_NAME): Remove.
2942         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
2943         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
2944         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
2945         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
2946         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
2947         * config/spu/spu.h (TARGET_VERSION): Remove.
2948         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
2949         * config/v850/v850.h (TARGET_VERSION): Remove.
2950         * config/vax/linux.h (TARGET_VERSION): Remove.
2951         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
2952         * config/xtensa/elf.h (TARGET_VERSION): Remove.
2953         * config/xtensa/linux.h (TARGET_VERSION): Remove.
2954
2955 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
2956
2957         PR target/48142
2958         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
2959         frame-related from frame-unrelated adjustments to the stack pointer.
2960
2961 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
2962
2963         * common.opt (fdebug-types-section): Move earlier.
2964         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
2965
2966 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
2967
2968         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
2969         var.
2970
2971 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
2972
2973         * tree.h (CASE_CHAIN): Define.
2974         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
2975         (gimple_redirect_edge_and_branch): Likewise.
2976
2977 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2978
2979         PR middle-end/48367
2980         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
2981         calculation.
2982
2983 2011-03-30  Jeff Law  <law@redhat.com>
2984
2985         * PR bootstrap/48371
2986         * reload1.c (reload): Fix botch in last change.
2987
2988         * reload.h (struct reload): Fix typo introduced in last change.
2989
2990 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
2991
2992         * config/arm/arm.opt (mhard-float, msoft-float): Mark
2993         Undocumented.  Remove help text.
2994         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
2995         -mhard-float.
2996
2997 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
2998
2999         * doc/options.texi (NegativeAlias): Document.
3000         (Alias): Mention NegativeAlias.
3001         * opt-functions.awk: Handle NegativeAlias.
3002         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3003         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3004         * opts.h (CL_NEGATIVE_ALIAS): Define.
3005         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3006         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3007         OPT_mspe_.
3008         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3009         Alias entries.
3010         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3011         mno-spe and mno-isel instead of mspe=no and -misel=no.
3012
3013 2011-03-29  Mark Wielaard  <mjw@redhat.com>
3014
3015         * common.opt (fdebug-types-section): New flag.
3016         * doc/invoke.texi: Document new -fno-debug-types-section flag.
3017         * dwarf2out.c (use_debug_types): New define.
3018         (struct die_struct): Mark die_id with GTY desc use_debug_types.
3019         (print_die): Guard output of type unit signatures using
3020         use_debug_types.
3021         (build_abbrev_table): Replace assert of dwarf_version >= 4
3022         with assert on use_debug_types.
3023         (size_of_die): Likewise.
3024         (unmark_dies): Likewise.
3025         (value_format): Decide AT_ref_external form on use_debug_types.
3026         (output_die): Replace dwarf_version version check guard with
3027         use_debug_types where appropriate.
3028         (modified_type_die): Likewise.
3029         (gen_reference_type_die): Likewise.
3030         (dwarf2out_start_source_file): Likewise.
3031         (dwarf2out_end_source_file): Likewise.
3032         (prune_unused_types_walk_attribs): Likewise.
3033         (dwarf2out_finish): Likewise.
3034
3035 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3036
3037         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3038
3039 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3040
3041         PR rtl-optimization/48332
3042         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3043         mode of input operand N and modeN to its actual mode.
3044
3045 2011-03-30  Jeff Law  <law@redhat.com>
3046
3047         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3048         define accessor macro.
3049         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3050         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3051         (reg_equiv_init): Likewise.
3052         (reg_equivs_size): New variable.
3053         (reg_equiv_init_size): Remove.
3054         (allocate_initial_values): Move prototype to here from....
3055         * integrate.h (allocate_initial_values): Remove prototype.
3056         * integrate.c: Include reload.h.
3057         (allocate_initial_values): Corresponding changes.
3058         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3059         (fix_reg_equiv_init, no_equiv): Corresponding changes.
3060         (update_equiv_regs): Corresponding changes.
3061         (ira): Corresponding changes.
3062         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3063         (push_secondary_reload): Corresponding changes.
3064         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3065         (make_memloc, find_reloads_address): Corresponding changes.
3066         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3067         (find_reloads_address_1): Corresponding changes.
3068         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3069         (refers_to_regno_for_reload_p): Corresponding changes.
3070         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3071         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3072         * reload1.c: Include ggc.h.
3073         (grow_reg_equivs): New function.
3074         (replace_pseudos_in, reload): Corresponding changes.
3075         (calculate_needs_all_insns, alter_regs): Corresponding changes.
3076         (eliminate_regs_1, elimination_effects): Corresponding changes.
3077         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3078         (delete_output_reload): Likewise.
3079         * caller-save.c (mark_referenced_regs): Corresponding changes.
3080         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3081         * frv/predicates.md (frv_load_operand): Corresponding changes.
3082         * microblaze/microblaze.c (double_memory_operand): Corresponding
3083         changes.
3084         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3085         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3086         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3087         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3088         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3089         changes.
3090         * pa/pa.c (emit_move_sequence): Corresponding changes.
3091         * vax/vax.c (nonindexed_address_p): Corresponding changes.
3092
3093 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3094
3095         PR target/47551
3096         * config/arm/arm.c (coproc_secondary_reload_class): Handle
3097         structure modes.  Don't check neon_vector_mem_operand for
3098         vector or structure modes.
3099
3100 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3101             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3102
3103         PR target/43590
3104         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3105         operand 1 and reshuffle the operands to match.
3106         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3107
3108 2011-03-30  Christian Schüler  <cschueler@gmx.de>
3109
3110         PR driver/48208
3111         * config/c.opt (F): Added 'Driver' to -F option.
3112
3113         PR driver/48260
3114         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3115           handler function.
3116         * config/darwin.opt: Added '-arch' option.
3117
3118 2011-03-30  Nick Clifton  <nickc@redhat.com>
3119
3120         * config/rx/rx.md: Add peepholes and patterns to combine
3121         extending loads and simple arithmetic instructions.
3122         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3123         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3124         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3125         modes to use pre-decrement and post-increment addressing.
3126         (rx_is_restricted_memory_address): Add range checking of REG+INT
3127         addresses.
3128         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
3129         (rx_memory_move_cost): Adjust cost of stores.
3130         (rx_adjust_insn_length): New function.
3131
3132 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
3133
3134         PR c/48305
3135         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3136         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3137         matching arg00/arg01 types.
3138
3139 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
3140
3141         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3142         last_location to UNKNOWN_LOCATION.
3143
3144 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
3145
3146         PR target/48349
3147         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3148         FLOAT_SSE_REGS.
3149
3150 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3151             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3152
3153         PR bootstrap/48337
3154         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3155         Init(PROCESSOR_V7).
3156         (sparc_cpu): Likewise.
3157         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3158         PROCESSOR_V7.
3159
3160 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3161
3162         PR target/48336
3163         PR middle-end/48342
3164         PR rtl-optimization/48345
3165         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3166         hard regs for given mode from profitable regs when doing secondary
3167         allocation.
3168
3169 2011-03-29  Jeff Law  <law@redhat.com>
3170
3171         PR bootstrap/48327
3172         * tree-ssa-threadupdate.c (struct redirection_data): Remove
3173         do_not_duplicate field.
3174         (lookup_redirection_data): Corresponding changes.
3175         (create_duplicates): Always create a template block.
3176         (redirect_edges): Remove code which reused the original block
3177         when it was going to become unreachable code.
3178         (thread_block): Don't set do_not_duplicate field.
3179
3180 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
3181
3182         * lto-opts.c (register_user_option_p, lto_register_user_option):
3183         Make type argument unsigned.
3184         * lto-streamer.h (lto_register_user_option): Make type argument
3185         unsigned.
3186         * opth-gen.awk: Make CL_* macros unsigned.
3187         * opts-common.c (find_opt): Make lang_mask argument unsigned.
3188         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3189         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3190         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3191         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3192         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3193         (find_opt): Make lang_mask argument unsigned.
3194
3195 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3196
3197         PR rtl-optimization/48331
3198         PR rtl-optimization/48334
3199         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3200         for any used algorithm.
3201
3202 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3203
3204         * ira-conflicts.c (build_object_conflicts): Add unused attribute
3205         to parent_max.
3206
3207 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
3208
3209         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3210         (alpha_option_override): Don't set alpha_sr_alias_set.
3211         (emit_frame_store_1): Use gen_frame_mem rather than calling
3212         set_mem_alias_set.
3213         (alpha_expand_epilogue): Ditto.
3214
3215 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
3216
3217         PR tree-optimization/48290
3218         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
3219         vectorization, check that relevant phis in the basic block after
3220         the inner loop are really inner loop's exit phis.
3221
3222 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
3223
3224         PR debug/48190
3225         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
3226         (cached_dw_loc_list_def): New structure.
3227         (cached_dw_loc_list): New typedef.
3228         (cached_dw_loc_list_table): New variable.
3229         (cached_dw_loc_list_table_hash): New function.
3230         (cached_dw_loc_list_table_eq): Likewise.
3231         (add_location_or_const_value_attribute): Take a bool cache_p.
3232         Cache the list when the parameter is true.
3233         (gen_formal_parameter_die): Update caller.
3234         (gen_variable_die): Likewise.
3235         (dwarf2out_finish): Likewise.
3236         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
3237         while generating debug info for the decl.
3238         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
3239         (dwarf2out_init): Initialize cached_dw_loc_list_table.
3240         (resolve_addr): Cache the result of resolving a chain of
3241         location lists.
3242
3243 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
3244
3245         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
3246         conflict object hard regset nodes have intersecting hard reg sets.
3247
3248         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
3249         after regstat_init_n_sets_and_refs.
3250
3251         * ira.c: Add more comments at the top.
3252         (setup_stack_reg_pressure_class, setup_pressure_classes):
3253         Add comments how we compute the register pressure classes.
3254         (setup_allocno_and_important_classes): Add more comments.
3255         (setup_class_translate_array, reorder_important_classes)
3256         (setup_reg_class_relations): Add comments.
3257
3258         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
3259         start of the file.
3260
3261         * ira-color.c: Add 2011 to the Copyright line.
3262         (assign_hard_reg):  Add more comments.
3263         (improve_allocation): Ditto.
3264
3265         * ira-costs.c: Add 2011 to the Copyright line.
3266         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
3267         comments.
3268         (setup_regno_cost_classes_by_mode): Ditto.
3269
3270         Initial patches from ira-improv branch:
3271
3272         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
3273
3274         * ira-build.c (ira_create_object): Remove initialization of
3275         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
3276         (ira_create_allocno): Remove initialization of
3277         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
3278         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
3279         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3280         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
3281         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
3282         Initialize ALLOCNO_ADD_DATA.
3283         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
3284         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
3285         ALLOCNO_REG.
3286         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
3287         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
3288
3289         * ira.c (ira_reallocate): Remove.
3290         (setup_pressure_classes): Call
3291         ira_init_register_move_cost_if_necessary.  Use
3292         ira_register_move_cost instead of ira_get_register_move_cost.
3293         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
3294         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
3295
3296         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
3297         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
3298         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
3299         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
3300         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
3301         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
3302         Fix formatting.
3303         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
3304         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3305         (struct allocno_color_data): New.
3306         (allocno_color_data_t): New typedef.
3307         (allocno_color_data): New definition.
3308         (ALLOCNO_COLOR_DATA): New macro.
3309         (struct object_color_data): New.
3310         (object_color_data_t): New typedef.
3311         (object_color_data): New definition.
3312         (OBJECT_COLOR_DATA): New macro.
3313         (update_copy_costs, calculate_allocno_spill_cost): Call
3314         ira_init_register_move_cost_if_necessary.  Use
3315         ira_register_move_cost instead of ira_get_register_move_cost.
3316         (move_spill_restore, update_curr_costs): Ditto.
3317         (allocno_spill_priority): Make it inline.
3318         (color_pass): Allocate and free allocno_color_dat and object_color_data.
3319         (struct coalesce_data, coalesce_data_t): New.
3320         (allocno_coalesce_data): New definition.
3321         (ALLOCNO_COALESCE_DATA): New macro.
3322         (merge_allocnos, coalesced_allocno_conflict_p): Use
3323         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
3324         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
3325         (coalesce_allocnos): Ditto.
3326         (setup_coalesced_allocno_costs_and_nums): Ditto.
3327         (collect_spilled_coalesced_allocnos): Ditto.
3328         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
3329         (setup_slot_coalesced_allocno_live_ranges): Ditto.
3330         (coalesce_spill_slots): Ditto.
3331         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
3332         free allocno_coalesce_data.
3333
3334         * ira-conflicts.c: Fix formatting.
3335         (process_regs_for_copy): Call
3336         ira_init_register_move_cost_if_necessary.  Use
3337         ira_register_move_cost instead of ira_get_register_move_cost.
3338         (build_object_conflicts): Optimize.
3339
3340         * ira-costs.c (record_reg_classes): Optimize.  Call
3341         ira_init_register_move_cost_if_necessary.  Use
3342         ira_register_move_cost, ira_may_move_in_cost, and
3343         ira_may_move_out_cost instead of ira_get_register_move_cost and
3344         ira_get_may_move_cost.
3345         (record_address_regs): Ditto.
3346         (scan_one_insn): Optimize.
3347         (find_costs_and_classes): Optimize.
3348         (process_bb_node_for_hard_reg_moves): Call
3349         ira_init_register_move_cost_if_necessary.  Use
3350         ira_register_move_cost instead of ira_get_register_move_cost.
3351
3352         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
3353         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
3354         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
3355         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
3356         definitions.
3357         (ira_initiate_emit_data, ira_finish_emit_data)
3358         (create_new_allocno): New functions.
3359         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
3360         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
3361         Use ira_register_move_cost instead of ira_get_register_move_cost.
3362
3363         * ira-int.h: Fix some comments.
3364         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
3365         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
3366         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
3367         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
3368         add_data.
3369         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
3370         bitfield after mode.  Make hard_regno a short int.  Make
3371         hard_regno short.  Remove first_coalesced_allocno and
3372         next_coalesced_allocno.  Move mem_optimized_dest_p,
3373         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
3374         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
3375         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
3376         temp, colorable_p.  Add new member add_data.
3377         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
3378         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
3379         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
3380         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
3381         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
3382         (ALLOCNO_ADD_DATA): New macro.
3383         (ira_emit_data_t): New typedef.
3384         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
3385         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
3386         from struct ira_allocno.
3387         (ALLOCNO_EMIT_DATA): New macro.
3388         (ira_allocno_emit_data, allocno_emit_reg): New.
3389         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
3390         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
3391         (OBJECT_ADD_DATA): New macro.
3392         (ira_reallocate): Remove.
3393         (ira_initiate_emit_data, ira_finish_emit_data): New.
3394         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
3395         (ira_init_register_move_cost_if_necessary): New.
3396         (ira_object_conflict_iter_next): Merge into
3397         ira_object_conflict_iter_cond.
3398         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
3399
3400         * ira-live.c (process_single_reg_class_operands): Call
3401         ira_init_register_move_cost_if_necessary.  Use
3402         ira_register_move_cost instead of ira_get_register_move_cost.
3403
3404         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
3405
3406         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
3407
3408         * ira-costs.c: Fix formatting.
3409         (cost_classes, cost_classes_num): Remove.
3410         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
3411         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
3412         (cost_classes_del, cost_classes_htab): New.
3413         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
3414         (initiate_regno_cost_classes, setup_cost_classes): New.
3415         (setup_regno_cost_classes_by_aclass): New.
3416         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
3417         (record_reg_classes): Use regno_cost_classes instead of
3418         cost_classes.  Move checking opposite operand up.
3419         (record_address_regs): Use regno_cost_classes
3420         instead of cost_classes.
3421         (scan_one_insn): Ditto.  Use always general register.
3422         (print_allocno_costs): Use regno_cost_classes instead of
3423         cost_classes.
3424         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
3425         (find_costs_and_classes): Set up cost classes for each registers.
3426         Use also their mode for this.  Use regno_cost_classes instead of
3427         cost_classes.
3428         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
3429         cost_classes.
3430         (free_ira_costs, ira_init_costs): Don't use cost_classes.
3431         (ira_costs, ira_set_pseudo_classes): Call
3432         initiate_regno_cost_classes and finish_regno_cost_classes.
3433
3434         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
3435
3436         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
3437
3438         * target.def (ira_cover_classes): Remove.
3439
3440         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
3441
3442         * doc/tm.texi.in: Ditto.
3443
3444         * ira-conflicts.c: Remove mentioning cover classes from the file.
3445         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
3446         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
3447
3448         * targhooks.c (default_ira_cover_classes): Remove.
3449
3450         * targhooks.h (default_ira_cover_classes): Ditto.
3451
3452         * haifa-sched.c: Remove mentioning cover classes from the file.
3453         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
3454         ira_pressure_classes and ira_pressure_classes_num instead of
3455         ira_reg_class_cover_size and ira_reg_class_cover.  Use
3456         sched_regno_pressure_class instead of sched_regno_cover_class.
3457         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
3458         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3459
3460         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
3461         classes from the file.
3462         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
3463         (struct object_hard_regs, struct object_hard_regs_node): New.
3464         (struct ira_object): New members profitable_hard_regs,
3465         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
3466         (struct ira_allocno): Rename cover_class to aclass.  Rename
3467         cover_class_cost and updated_cover_class_cost to class_cost and
3468         updated_class_cost.  Remove splay_removed_p and
3469         left_conflict_size.  Add new members colorable_p.
3470         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
3471         (ALLOCNO_COLORABLE_P): New macro.
3472         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
3473         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
3474         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
3475         (OBJECT_...): Rename parameter C to O.
3476         (OBJECT_PROFITABLE_HARD_REGS): New macro.
3477         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
3478         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
3479         (struct target_ira_int): New members x_ira_max_memory_move_cost,
3480         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
3481         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
3482         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
3483         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
3484         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
3485         x_ira_reg_class_subunion.
3486         (ira_max_memory_move_cost, ira_max_register_move_cost)
3487         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
3488         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
3489         (ira_important_class_nums, ira_reg_class_superunion): New macros.
3490         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
3491         (ira_reg_class_union): Rename to ira_reg_class_subunion.
3492         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3493         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3494         (ira_tune_allocno_costs_and_cover_classes): Rename to
3495         ira_tune_allocno_costs.
3496         (ira_debug_hard_regs_forest): New.
3497         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
3498         (ira_object_conflict_iter_next): Fix comments.
3499         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
3500         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
3501         cover_class to aclass.
3502         (ira_allocate_and_accumulate_costs): Ditto.
3503         (ira_allocate_and_set_or_copy_costs): Ditto.
3504
3505         * opts.c (decode_options): Remove ira_cover_class check.
3506
3507         * ira-color.c: Remove mentioning cover classes from the file.  Use
3508         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
3509         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
3510         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
3511         (splay-tree.h): Remove include.
3512         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
3513         before copy_freq_compare_func.
3514         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
3515         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
3516         New definitions.
3517         (hard_regs_roots, hard_regs_node_vec): Ditto.
3518         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
3519         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
3520         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
3521         (create_new_object_hard_regs_node): Ditto.
3522         (add_new_object_hard_regs_node_to_forest): Ditto.
3523         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
3524         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
3525         Ditto.
3526         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
3527         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
3528         (remove_unused_object_hard_regs_nodes): Ditto.
3529         (enumerate_object_hard_regs_nodes): Ditto.
3530         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
3531         (object_hard_regs_subnode_t): Ditto.
3532         (struct object_hard_regs_subnode): Ditto.
3533         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
3534         (setup_object_hard_regs_subnode_index): Ditto.
3535         (get_object_hard_regs_subnodes_num): Ditto.
3536         (form_object_hard_regs_nodes_forest): Ditto.
3537         (finish_object_hard_regs_nodes_tree): Ditto.
3538         (finish_object_hard_regs_nodes_forest): Ditto.
3539         (allocnos_have_intersected_live_ranges_p): Rename to
3540         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
3541         (pseudos_have_intersected_live_ranges_p): Rename to
3542         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
3543         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
3544         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
3545         (update_copy_costs): Remove assert.  Skip cost update if the hard
3546         reg does not belong the class.
3547         (assign_hard_reg): Process only profitable hard regs.
3548         (uncolorable_allocnos_num): Make it scalar.
3549         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3550         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
3551         and ira_reg_class_max_nregs.
3552         (bucket_allocno_compare_func): Check frequency first.
3553         (sort_bucket): Add compare function as a parameter.
3554         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
3555         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
3556         (push_allocno_to_stack): Rewrite for checking new allocno
3557         colorability.
3558         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
3559         (push_only_colorable): Pass new parameter to sort_bucket.
3560         (push_allocno_to_spill): Remove.
3561         (allocno_spill_priority_compare): Make it inline and rewrite.
3562         (splay_tree_allocate, splay_tree_free): Remove.
3563         (allocno_spill_sort_compare): New function.
3564         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
3565         build and use splay tree.  Choose first allocno in uncolorable
3566         allocno bucket to spill.  Remove setting spill cost.
3567         (all_conflicting_hard_regs): Remove.
3568         (setup_allocno_available_regs_num): Check only profitable hard
3569         regs.  Print info about hard regs nodes.
3570         (setup_allocno_left_conflicts_size): Remove.
3571         (put_allocno_into_bucket): Don't call
3572         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
3573         (improve_allocation): New.
3574         (color_allocnos): Call setup_profitable_hard_regs,
3575         form_object_hard_regs_nodes_forest, improve_allocation,
3576         finish_object_hard_regs_nodes_forest.  Setup spill cost.
3577         (print_loop_title): Use pressure classes.
3578         (color_allocnso): Ditto.
3579         (do_coloring): Remove allocation and freeing splay_tree_node_pool
3580         and allocnos_for_spilling.
3581         (ira_sort_regnos_for_alter_reg): Don't setup members
3582         {first,next}_coalesced_allocno.
3583         (color): Remove allocating and freeing removed_splay_allocno_vec.
3584         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
3585         prohibited_class_mode_regs.
3586
3587         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
3588         formatting.
3589         (update_allocno_pressure_excess_length): Use pressure classes.
3590         (inc_register_pressure, dec_register_pressure): Check for pressure
3591         class.
3592         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
3593         pressure class.  Use ira_reg_class_nregs instead of
3594         ira_reg_class_max_nregs.
3595         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
3596         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
3597         (single_reg_class): Use ira_reg_class_nregs instead of
3598         ira_reg_class_max_nregs.
3599         (process_bb_node_lives): Use pressure classes.
3600
3601         * ira-emit.c: Remove mentioning cover classes from the file.  Use
3602         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
3603         (change_loop): Use pressure classes.
3604         (modify_move_list): Call ira_set_allocno_class instead of
3605         ira_set_allocno_cover_class.
3606
3607         * ira-build.c: Remove mentioning cover classes from the file.  Use
3608         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
3609         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
3610         ALLOCNO_UPDATED_CLASS_COST instead of
3611         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
3612         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
3613         (ira_create_allocno): Remove initialization of
3614         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
3615         ALLOCNO_COLORABLE_P.
3616         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
3617         Update conflict regs for the objects.
3618         (create_cap_allocno): Remove assert.  Don't propagate
3619         ALLOCNO_AVAILABLE_REGS_NUM.
3620         (ira_free_allocno_costs): New function.
3621         (finish_allocno): Change a part of code into call of
3622         ira_free_allocno_costs.
3623         (low_pressure_loop_node_p): Use pressure classes.
3624         (object_range_compare_func): Don't compare classes.
3625         (setup_min_max_conflict_allocno_ids): Ditto.
3626
3627         * loop-invariant.c: Remove mentioning cover classes from the file.
3628         Use ira_pressure_classes and ira_pressure_classes_num instead of
3629         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
3630         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
3631         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3632         Use reg_allocno_class instead of reg_cover_class.
3633         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
3634         STACK_REG_COVER_CLASS.
3635         (get_regno_cover_class): Rename to get_regno_pressure_class.
3636         (move_loop_invariants): Initialize and finalize regstat.
3637
3638         * ira.c: Remove mentioning cover classes from the file.  Add
3639         comments about coloring without cover classes.  Use ALLOCNO_CLASS
3640         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
3641         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
3642         setup_class_subset_and_memory_move_costs.
3643         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
3644         (setup_cover_and_important_classes): Rename to
3645         setup_allocno_and_important_classes.
3646         (setup_class_translate_array): New.
3647         (setup_class_translate): Call it for allocno and pressure classes.
3648         (cover_class_order): Rename to allocno_class_order.
3649         (comp_reg_classes_func): Use ira_allocno_class_translate instead
3650         of ira_class_translate.
3651         (reorder_important_classes): Set up ira_important_class_nums.
3652         (setup_reg_class_relations): Set up ira_reg_class_superunion.
3653         (print_class_cover): Rename to print_classes.  Add parameter.
3654         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
3655         Print pressure classes too.
3656         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
3657         setup_reg_subclasses.
3658         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3659         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3660         (setup_prohibited_class_mode_regs): Use
3661         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
3662         (clarify_prohibited_class_mode_regs): New function.
3663         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
3664         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
3665         (ira_init_once): Initialize them.
3666         (free_register_move_costs): Process them.
3667         (ira_init): Move calls of find_reg_classes and
3668         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
3669         Call clarify_prohibited_class_mode_regs.
3670         (ira_no_alloc_reg): Remove.
3671         (too_high_register_pressure_p): Use pressure classes.
3672
3673         * sched-deps.c: Remove mentioning cover classes from the file.
3674         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
3675         ira_pressure_classes and ira_pressure_classes_num instead of
3676         ira_reg_class_cover_size and ira_reg_class_cover.
3677         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
3678         sched_regno_pressure_class instead of sched_regno_cover_class.
3679         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
3680         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
3681
3682         * ira.h: Add 2010 to Copyright.
3683         (ira_no_alloc_reg): Remove external.
3684         (struct target_ira): Rename x_ira_hard_regno_cover_class,
3685         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
3686         x_ira_class_translate to x_ira_hard_regno_allocno_class,
3687         x_ira_allocno_classes_num, x_ira_allocno_classes, and
3688         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
3689         x_ira_pressure_classes, x_ira_pressure_class_translate, and
3690         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
3691         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
3692         x_ira_no_alloc_regs.
3693         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
3694         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
3695         ira_allocno_classes_num and ira_allocno_classes.
3696         (ira_class_translate): Rename to ira_allocno_class_translate.
3697         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
3698         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
3699         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
3700         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
3701         (ira_no_alloc_regs): New.
3702
3703         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
3704         classes from the file.  Use ALLOCNO_CLASS instead of
3705         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
3706         ALLOCNO_COVER_CLASS_COST.
3707         (regno_cover_class): Rename to regno_aclass.
3708         (record_reg_classes): Use ira_reg_class_subunion instead of
3709         ira_reg_class_union.
3710         (record_address_regs): Check overflow.
3711         (scan_one_insn): Ditto.
3712         (print_allocno_costs): Print total mem cost fore regional allocation.
3713         (print_pseudo_costs): Use REG_N_REFS.
3714         (find_costs_and_classes): Use classes intersected with them on the
3715         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
3716         ira_reg_class_union.  Use ira_allocno_class_translate and
3717         regno_aclass instead of ira_class_translate and regno_cover_class.
3718         Modify code for finding regno_aclass.  Setup preferred classes for
3719         the next pass.
3720         (setup_allocno_cover_class_and_costs): Rename to
3721         setup_allocno_class_and_costs.  Use regno_aclass instead of
3722         regno_cover_class.  Use ira_set_allocno_class instead of
3723         ira_set_allocno_cover_class.
3724         (init_costs, finish_costs): Use regno_aclass instead of
3725         regno_cover_class.
3726         (ira_costs): Use setup_allocno_class_and_costs instead of
3727         setup_allocno_cover_class_and_costs.
3728         (ira_tune_allocno_costs_and_cover_classes): Rename to
3729         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
3730         by processing objects.  Use ira_reg_class_max_nregs instead of
3731         ira_reg_class_nregs.
3732
3733         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
3734
3735         * sched-int.h: Remove mentioning cover classes from the file.
3736         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
3737
3738         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
3739         classes from the file.
3740         (struct reg_pref): Rename coverclass into allocnoclass.
3741         (reg_cover_class): Rename to reg_allocno_class.
3742
3743         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
3744
3745         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
3746
3747         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3748
3749         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
3750
3751         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
3752
3753         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
3754
3755         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
3756
3757         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
3758
3759         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
3760
3761         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
3762
3763         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
3764         (i386_ira_cover_classes): Ditto.
3765
3766         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3767
3768         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
3769
3770         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
3771
3772         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
3773
3774         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
3775
3776         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
3777
3778         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
3779         (mips_ira_cover_classes): Ditto.
3780
3781         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
3782
3783         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
3784
3785         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
3786
3787         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
3788
3789         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
3790
3791         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
3792         (IRA_COVER_CLASSES_VSX): Ditto.
3793
3794         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
3795         (rs6000_ira_cover_classes): Ditto.
3796
3797         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
3798
3799         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
3800
3801         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
3802
3803         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
3804
3805         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
3806
3807         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
3808
3809         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
3810
3811         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
3812
3813         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
3814
3815         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
3816
3817 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
3818
3819         PR debug/48253
3820         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
3821         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
3822         dw_fde_unlikely_section_end_label, cold_in_std_section,
3823         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
3824         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
3825         fields.
3826         (output_fde): Use dw_fde_second_{begin,end} if second is
3827         true, otherwise dw_fde_{begin,end}.
3828         (output_call_frame_info): Test dw_fde_second_begin != NULL
3829         instead of dw_fde_switched_sections.
3830         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
3831         fields, initialize new fields.  Initialize in_std_section
3832         unconditionally from the first partition.
3833         (dwarf2out_end_epilogue): Don't override dw_fde_end when
3834         dw_fde_second_begin is non-NULL.
3835         (dwarf2out_switch_text_section): Stop initializing removed
3836         dw_fde_struct fields, initialize new fields, initialize
3837         also dw_fde_end here.  Set dw_fde_switch_cfi even when
3838         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
3839         (struct var_loc_list_def): Add last_before_switch field.
3840         (arange_table, arange_table_allocated, arange_table_in_use,
3841         ARANGE_TABLE_INCREMENT, add_arange): Removed.
3842         (size_of_aranges): Count !in_std_section and !second_in_std_section
3843         hunks in fdes, instead of looking at arange_table_in_use.
3844         (output_aranges): Add aranges_length argument, don't call
3845         size_of_aranges here.  Instead of using aranges_table*
3846         emit ranges for fdes when !in_std_section resp.
3847         !second_in_std_section.
3848         (dw_loc_list): Break ranges crossing section switch.
3849         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
3850         use dw_fde_second_end instead of dw_fde_end as end of last range.
3851         (gen_subprogram_die): Don't call add_arange.  Use
3852         dw_fde_{begin,end} for first partition and if switched
3853         section dw_fde_second_{begin,end} for the second.
3854         (var_location_switch_text_section_1,
3855         var_location_switch_text_section): New functions.
3856         (dwarf2out_begin_function): Initialize cold_text_section even
3857         when function_section () isn't text_section.
3858         (prune_unused_types): Don't walk arange_table.
3859         (dwarf2out_finish): Don't needlessly test
3860         flag_reorder_blocks_and_partition when testing cold_text_section_used.
3861         If info_section_emitted, call size_of_aranges and if it indicates
3862         non-empty .debug_aranges, call output_aranges with the computed
3863         size.  Stop using removed dw_fde_struct fields, use
3864         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
3865         for second.
3866
3867         PR debug/48203
3868         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
3869         create ENTRY_VALUE if incoming or address of incoming's MEM
3870         is a hard REG.
3871         * dwarf2out.c (mem_loc_descriptor): Don't emit
3872         DW_OP_GNU_entry_value of DW_OP_fbreg.
3873         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
3874         on ENTRY_VALUE is able to find the canonical parameter VALUE.
3875         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
3876         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
3877         ENTRY_VALUE_EXPs.
3878         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
3879         is a REG_P or MEM_P with REG_P address, compute hash directly
3880         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
3881         (preserve_only_constants): Don't clear VALUES forwaring
3882         ENTRY_VALUE to some other VALUE.
3883
3884 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
3885
3886         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
3887         instead of GEN_INT.
3888
3889 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
3890
3891         * cfgexpand.c (expand_gimple_cond): Always set the source location and
3892         block before expanding the statement.
3893         (expand_gimple_stmt_1): Likewise.  Set them here...
3894         (expand_gimple_stmt): ...and not here.  Tidy.
3895         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
3896         unknown.
3897
3898 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
3899
3900         * Makefile.in: New rule for cprop.o.
3901         * gcse.c: Move constant/copy propagation to cprop.c.
3902         (compute_local_properties): Only handle expression tables.
3903         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
3904         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
3905         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
3906         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
3907         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
3908         compute_cprop_data, find_used_regs, try_replace_reg,
3909         find_avail_set, cprop_jump, constprop_register, cprop_insn,
3910         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
3911         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
3912         find_bypass_set, reg_killed_on_edge, bypass_block,
3913         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
3914         execute_rtl_cprop, pass_rtl_cprop): Move to...
3915         * cprop.c: ...here.  New file, constant/copy propagation for RTL
3916         moved from gcse.c to here with minor cleanups in duplicated code.
3917
3918 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
3919
3920         * config/i386/i386.c (flag_opts): Fix a typo in
3921         -mavx256-split-unaligned-store.
3922
3923 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
3924
3925         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3926         LIBCALL_VALUE): Remove macros.
3927         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3928         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3929         (h8300_function_value, h8300_libcall_value,
3930         h8300_function_value_regno_p): New functions.
3931
3932 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
3933
3934         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
3935
3936 2011-03-28  Jeff Law  <law@redhat.com>
3937
3938         * tree-ssa-threadupdate.c (redirect_edges): Call
3939         create_edge_and_update_destination_phis as needed.
3940         (create_edge_and_update_destination_phis): Accept new BB argument.
3941         All callers updated.
3942         (thread_block): Do not update the profile when threading around
3943         intermediate blocks.
3944         (thread_single_edge): Likewise.
3945         (determine_bb_domination_status): If BB is not a successor of the
3946         loop header, return NONDOMINATING.
3947         (register_jump_thread): Note when we register a jump thread around
3948         an intermediate block.
3949         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
3950         (thread_across_edge): Use it.
3951
3952 2011-03-28  Tristan Gingold  <gingold@adacore.com>
3953
3954         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
3955         when for_return is 2.
3956
3957 2011-03-28  Jeff Law  <law@redhat.com>
3958
3959         * var-tracking.c (canonicalize_values_mark): Delete unused
3960         lhs assignment.
3961         (canonicalize_values_star, set_variable_part): Likewise.
3962         (clobber_variable_part, delete_variable_part): Likewise.
3963
3964 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
3965
3966         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
3967
3968 2011-03-28  Martin Jambor  <mjambor@suse.cz>
3969
3970         * tree-inline.c (expand_call_inline): Do not check that destination
3971         node is analyzed.
3972         (optimize_inline_calls): Assert that destination node is analyzed.
3973         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
3974         not call tree_lowering_passes.
3975         * cgraph.h (cgraph_analyze_function): Declare.
3976         * cgraphunit.c (cgraph_analyze_function): Make public.
3977
3978 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
3979
3980         * config/sparc/sparc-opts.h: New.
3981         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
3982         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
3983         (sparc_option_override): Store processor_type enumeration rather
3984         than string in cpu_default.  Remove name and enumeration from
3985         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
3986         without using sparc_select.  Use target_flags_explicit instead of
3987         fpu_option_set.
3988         * config/sparc/sparc.h (enum processor_type): Move to
3989         sparc-opts.h.
3990         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
3991         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
3992         HeaderInclude entry.
3993         (mcpu=, mtune=): Use Var and Enum.
3994         (sparc_processor_type): New Enum and EnumValue entries.
3995
3996 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3997             Iain Sandoe  <iains@gcc.gnu.org>
3998
3999         PR target/48245
4000         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4001
4002 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4003
4004         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4005         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4006         Insert new statements at it in lieu of STMT.
4007         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4008         * tree-vect-stmts.c (vectorizable_store): Likewise.
4009         (vectorizable_load): Likewise.
4010
4011 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
4012
4013         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4014         (divtf3): Ditto.
4015         (multf3): Ditto.
4016         (subtf3): Ditto.
4017
4018 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4019
4020         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4021         unaligned 256bit load/store.
4022         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4023         (*avx_movdqu<avxmodesuffix>): Likewise.
4024
4025 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4026
4027         PR target/48288
4028         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4029         * config/pa/pa.md (iordi3): Use new predicate in expander.
4030         (iorsi3): Likewise.
4031
4032 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
4033
4034         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4035         FUNCTION_VALUE_REGNO_P): Remove macros.
4036         * config/mips/mips-protos.h (mips_function_value): Remove.
4037         * config/mips/mips.c (mips_function_value): Rename to...
4038         (mips_function_value_1): ... this. Make static.  Handle receiving
4039         the function type in 'fn_decl_or_type' argument.
4040         (mips_function_value, mips_libcall_value,
4041         mips_function_value_regno_p): New function.
4042         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4043         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4044
4045 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4046
4047         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4048         and -mavx256-split-unaligned-store.
4049         (ix86_option_override_internal): Split 32-byte AVX unaligned
4050         load/store by default.
4051         (ix86_avx256_split_vector_move_misalign): New.
4052         (ix86_expand_vector_move_misalign): Use it.
4053
4054         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4055         -mavx256-split-unaligned-store.
4056
4057         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4058         256bit load/store.  Generate unaligned store on misaligned memory
4059         operand.
4060         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4061         256bit load/store.
4062         (*avx_movdqu<avxmodesuffix>): Likewise.
4063
4064         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4065         -mavx256-split-unaligned-store.
4066
4067 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4068
4069         PR target/38598
4070         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4071         Update commentary.
4072
4073 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4074
4075         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4076         opno arguments with an expand_operand.  Use create_input_operand.
4077         (mips_prepare_builtin_target): Delete.
4078         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4079         functions.
4080         (mips_expand_builtin_direct): Use create_output_operand and
4081         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
4082         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
4083         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4084
4085 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
4086
4087         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4088         function.
4089         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4090
4091 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
4092
4093         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4094         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
4095         basic blocks and call commit_edge_insertions directly.
4096         (fixup_abnormal_edges): Move from here to...
4097         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
4098         on the edges and return whether some have actually been inserted.
4099         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4100         compensation code.
4101
4102 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
4103
4104         PR rtl-optimization/48144
4105         * sel-sched-ir.c (merge_history_vect): Factor out from ...
4106         (merge_expr_data): ... here.
4107         (av_set_intersect): Rename to av_set_code_motion_filter.
4108         Update all callers.  Call merge_history_vect when an expression
4109         is found in both sets.
4110         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4111
4112 2011-03-26  Alan Modra  <amodra@gmail.com>
4113
4114         * config/rs6000/predicates.md (word_offset_memref_op): Handle
4115         cmodel medium addresses.
4116         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4117         64-bit gpr loads and stores.
4118         (rs6000_secondary_reload_ppc64): New function.
4119         * config/rs6000/rs6000-protos.h: Declare it.
4120         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4121
4122 2011-03-26  Alan Modra  <amodra@gmail.com>
4123
4124         PR target/47487
4125         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4126         GNU Go in traceback table.
4127
4128 2011-03-25  Richard Henderson  <rth@redhat.com>
4129
4130         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4131         if there are exactly 6 operands.
4132         (set_storage_via_setmem): Similarly.
4133
4134 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4135
4136         * collect2.c (write_c_file_stat): Handle backslash
4137         as right-hand directory separator.
4138         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4139         checking just for slash.
4140         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4141         instead of checking for trailing slash.
4142         * gcc.c (record_temp_file): Use filename_cmp instead
4143         of strcmp.
4144         (do_spec_1): Likewise.
4145         (replace_outfile_spec_function): Likewise.
4146         (is_directory): Use filename_ncmp instead of strncmp.
4147         (print_multilib_info): Likewise.
4148         * gcov.c (find_source): Use filename_cmp instead
4149         instead of strcmp.
4150         (make_gcov_file_name): Fix order of slash/backslash
4151         checks.
4152         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4153         (add_standard_paths): Likewise.
4154         * mips-tfile.c (saber_stop): Handle backslash.
4155         * prefix.c (update_path): Use filename_ncmp instead of
4156         strncmp.
4157         * profile.c (output_location): Use filename_cmp instead
4158         of strcmp.
4159         * read-md.c (handle_toplevel_file): Handle backslash.
4160         * tlink.c (frob_extension):  Likewise.
4161         * tree-cfg.c (same_line_p): Use filename_cmp instead of
4162         strcmp.
4163         * tree-dump.c (dequeue_and_dump): Handle backslash.
4164         * tree.c (get_file_function_name): Likewise.
4165         * gengtype.c (read_input_list): Likewise.
4166         (get_file_realbasename): Likewise.
4167         (get_output_file_with_visibility): Use filename_cmp
4168         instead of strcmp.
4169
4170 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
4171
4172         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4173         case to VFPv1.
4174
4175 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4176
4177         * fold-const.c (expr_location_or): New function.
4178         (fold_truth_not_expr): Call it.
4179
4180 2011-03-25  Jeff Law  <law@redhat.com>
4181
4182         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4183         va_end.
4184         * c-family/c-common.c (def_fn_type): Likewise.
4185         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4186         * emit-rtl.c (gen_rtvec): Likewise.
4187         * lto/lto-lang.c (def_fn_type): Likewise.
4188
4189 2011-03-25  Richard Guenther  <rguenther@suse.de>
4190
4191         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4192         also generate copies.
4193         (fini_copy_prop): Handle constant values properly.
4194
4195 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
4196
4197         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4198         mode size instead of bitsize with DWARF2_ADDR_SIZE.
4199         (hash_loc_operands, compare_loc_operands): Handle
4200         DW_OP_GNU_entry_value.
4201
4202 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4203
4204         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4205         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4206         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4207         comment and use macro TARGET_64BIT_MS_ABI instead.
4208         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4209         and change default behavior for 32-bit MS_ABI.
4210         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4211         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4212         32-bit, too.
4213         (ix86_cfun_abi): Likewise.
4214         (ix86_maybe_switch_abi): Adjust comment.
4215         (init_cumulative_args): Check for bit-ness in MS_ABI case.
4216         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4217         instead of checking for SYSV_ABI.
4218         (ix86_nsaved_sseregs): Likewise.
4219         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
4220         to 16 bytes.
4221         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
4222         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
4223         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
4224         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
4225         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
4226
4227 2011-03-25  Richard Guenther  <rguenther@suse.de>
4228
4229         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
4230         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4231         (verify_gimple): Remove.
4232         * tree-cfg.c (verify_gimple_call): Merge verification
4233         from verify_stmts.
4234         (verify_gimple_phi): Merge verification from verify_stmts.
4235         (verify_gimple_label): New function.
4236         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
4237         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
4238         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
4239         (verify_stmts): Rename to verify_gimple_in_cfg.
4240         (verify_gimple_in_cfg): New function.
4241         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
4242         * tree-ssa.c (verify_ssa): Likewise.
4243         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
4244
4245 2011-03-25  Richard Guenther  <rguenther@suse.de>
4246
4247         * passes.c (init_optimization_passes): Add FRE pass after
4248         early SRA.
4249
4250 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
4251             Andrew Stubbs  <ams@codesourcery.com>
4252
4253         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
4254         for Cortex-A8.
4255         (arm_movdi_vfp_cortexa8): New pattern.
4256         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
4257         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
4258         instructions when tuning for Cortex-A8.  Set attribute "arch".
4259         * config/arm/arm.md: Move include arm-tune.md up a bit.
4260         (define_attr "arch"): Add "onlya8" and "nota8" values.
4261         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
4262
4263 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4264
4265         PR bootstrap/48282
4266         Revert:
4267         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4268
4269         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4270         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
4271         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4272         * passes.c (init_optimization_passes): Move
4273         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4274
4275 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4276
4277         * c-typeck.c (comptypes_internal): Replace target
4278         hook call of comp_type_attributes by version in tree.c file.
4279         * gimple.c (gimple_types_compatible_p_1): Likewise.
4280         * tree-ssa.c (useless_type_conversion_p): Likewise.
4281         * tree.c (build_type_attribute_qual_variant): Likewise.
4282         (attribute_value_equal): New static helper function.
4283         (comp_type_attributes): New function.
4284         (merge_attributes): Use attribute_value_equal for comparison.
4285         (attribute_list_contained): Likewise.
4286         * tree.h (comp_type_attributes): New prototype.
4287
4288 2011-03-25  Richard Guenther  <rguenther@suse.de>
4289
4290         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
4291         of complex types at -O0.
4292         (verify_gimple_assign_binary): Likewise.
4293         (verify_gimple_assign_ternary): Likewise.
4294
4295 2011-03-24  Mark Wielaard  <mjw@redhat.com>
4296
4297         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
4298         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4299
4300 2011-03-24  Mark Wielaard  <mjw@redhat.com>
4301
4302         PR debug/48041
4303         * dwarf2out.c (output_abbrev_section): Only write table when
4304         abbrev_die_table_in_use > 1.
4305
4306 2011-02-24  Richard Henderson  <rth@redhat.com>
4307
4308         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
4309         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
4310         (alpha_expand_unaligned_load_words): Use extql.
4311         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
4312         (emit_insxl): Handle all modes for consistency.
4313
4314 2011-02-24  Richard Henderson  <rth@redhat.com>
4315
4316         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
4317         (alpha_expand_unaligned_load): Likewise.
4318         (alpha_expand_unaligned_store): Likewise.
4319         (alpha_expand_unaligned_load_words): Likewise.
4320         (alpha_expand_unaligned_store_words): Likewise.
4321         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
4322         (alpha_split_lock_test_and_set_12): Likewise.
4323         (print_operand, alpha_fold_builtin_extxx): Likewise.
4324         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
4325         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
4326         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
4327         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
4328         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
4329         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
4330         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
4331         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
4332         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
4333         (extwl, extll, extql): Similarly.
4334         (inswh, inslh, insqh): Similarly.
4335         (mskbl, mskwl, mskll, mskql): Similarly.
4336         (mskwh, msklh, mskqh): Similarly.
4337
4338 2011-02-24  Richard Henderson  <rth@redhat.com>
4339
4340         * config/alpha/alpha.md (attribute isa): Add er, ner.
4341         (attribute enabled): Handle them.
4342         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
4343
4344 2011-02-24  Richard Henderson  <rth@redhat.com>
4345
4346         * config/alpha/alpha.md (attribute isa): Add vms.
4347         (attribute enabled): Handle it.
4348         (*movsf): Merge *movsf_{nofix,fix,nofp}.
4349         (*movdf): Merge *movdf_{nofix,fix,nofp}.
4350         (*movtf): Rename from *movtf_internal for consistency.
4351         (*movsi): Merge with *movsi_nt_vms.
4352         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
4353         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
4354         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
4355         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
4356
4357 2011-02-24  Richard Henderson  <rth@redhat.com>
4358
4359         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
4360         (extendqisi2, extendhisi2): Likewise.
4361         (extendqidi2): Simplify BWX/non-BWX expansions.
4362         (extendhidi2): Similarly.
4363
4364 2011-02-24  Richard Henderson  <rth@redhat.com>
4365
4366         * config/alpha/alpha.md (attribute isa): New.
4367         (attribute enabled): New.
4368         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
4369         (zero_extendqisi2, zero_extendqidi2): Similarly.
4370         (zero_extendhisi2, zero_extendhidi2): Similarly.
4371         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
4372
4373 2011-02-24  Richard Henderson  <rth@redhat.com>
4374
4375         * config/alpha/predicates.md (input_operand): Revert last change;
4376         update comment to mention 32-bit VMS rather than Windows.
4377
4378 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4379
4380         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
4381         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
4382         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
4383         * passes.c (init_optimization_passes): Move
4384         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
4385
4386 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4387
4388         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
4389
4390 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
4391
4392         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
4393         correctly.
4394
4395 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
4396
4397         PR debug/48204
4398         * simplify-rtx.c (simplify_const_unary_operation): Call
4399         real_convert when changing mode class with FLOAT_EXTEND.
4400
4401 2011-03-24  Nick Clifton  <nickc@redhat.com>
4402
4403         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
4404         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4405         * config/rx/rx.c (rx_option_override): Set align_jumps,
4406         align_loops and align_labels if not set by the user.
4407         (rx_align_for_label): New function.
4408         (rx_max_skip_for_label): New function.
4409         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
4410         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
4411         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
4412         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
4413         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
4414
4415 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4416
4417         PR rtl-optimization/48263
4418         * optabs.c (expand_binop_directly): Reinstate convert_modes code
4419         and original commutative_p handling.  Use maybe_gen_insn.
4420
4421 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4422
4423         * reload.c (find_reloads_subreg_address): Add address_reloaded
4424         parameter and return true there if the full address has been
4425         reloaded.
4426         (find_reloads_toplev): Pass address_reloaded flag.
4427         (find_reloads_address_1): Don't use address_reloaded parameter.
4428
4429 2011-03-24  Jeff Law  <law@redhat.com>
4430
4431         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
4432         unused variable "ann".
4433         (remove_unused_locals): Likewise.
4434
4435         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
4436         statement.
4437
4438         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
4439         after it is freed.
4440
4441 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4442
4443         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
4444         for invalid symbolic addresses.
4445         (s390_secondary_reload): Don't use s390_check_symref_alignment for
4446         larl operands.
4447
4448 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4449
4450         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
4451         the argument in calls to fold_truth_not_expr.
4452
4453 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4454
4455         * tree.c (record_node_allocation_statistics): New function.
4456         (make_node_stat, copy_node_stat, build_string): Call it.
4457         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
4458         (build1_stat, build_omp_clause): Likewise.
4459
4460 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4461
4462         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
4463         last commit.
4464
4465 2011-03-24  Richard Guenther  <rguenther@suse.de>
4466
4467         PR tree-optimization/48271
4468         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
4469         blocks that still exist.
4470
4471 2011-03-24  Richard Guenther  <rguenther@suse.de>
4472
4473         PR tree-optimization/48270
4474         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
4475         not free datarefs before ddrs.
4476
4477 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
4478
4479         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
4480         from the address built for a reference with variable offset.
4481
4482 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
4483
4484         PR target/48237
4485         * config/i386/i386.md (*movdf_internal_rex64): Do not split
4486         alternatives that can be handled with movq or movabsq insn.
4487         (*movdf_internal): Disable for !TARGET_64BIT.
4488         (*movdf_internal_nointeger): Ditto.
4489         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
4490
4491 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
4492
4493         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4494         (FUNCTION_ARG_ADVANCE): Likewise.
4495         * tm.texi.in: Change references to them to hook references.
4496         * tm.texi: Regenerate.
4497         * targhooks.c (default_function_arg): Eliminate check for target macro.
4498         (default_function_incoming_arg): Likewise.
4499         (default_function_arg_advance): Likewise.
4500         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4501         (function_arg_advance): Likewise.
4502         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4503
4504 2011-03-24  Richard Guenther  <rguenther@suse.de>
4505
4506         PR middle-end/48269
4507         * tree-object-size.c (addr_object_size): Do not double-account
4508         for MEM_REF offsets.
4509
4510 2011-03-24  Diego Novillo  <dnovillo@google.com>
4511
4512         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
4513         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
4514         (lto_input_data_block): Move from lto-opts.c.  Make extern.
4515         Update all users.
4516         (lto_input_string): Rename from input_string.  Make extern.
4517         Update all users.
4518         * lto-streamer-out.c (lto_output_string_with_length): Rename from
4519         output_string_with_length.
4520         Output 0 to indicate a non-NULL string.  Update all callers to
4521         not emit 0.
4522         (lto_output_string): Rename from output_string.  Make extern.
4523         Update all users.
4524         (lto_output_decl_state_streams): Make extern.
4525         (lto_output_decl_state_refs): Make extern.
4526         * lto-streamer.h (lto_input_string): Declare.
4527         (lto_input_data_block): Declare.
4528         (lto_output_string): Declare.
4529         (lto_output_string_with_length): Declare.
4530         (lto_output_decl_state_streams): Declare.
4531         (lto_output_decl_state_refs): Declare.
4532
4533 2011-03-24  Richard Guenther  <rguenther@suse.de>
4534
4535         PR tree-optimization/46562
4536         * tree.c (build_invariant_address): New function.
4537         * tree.h (build_invariant_address): Declare.
4538         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
4539         a renamed function moved ...
4540         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
4541         Take valueization callback parameter.
4542         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
4543         * gimple-fold.h: New file.
4544         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
4545         (ccp_fold, fold_const_aggregate_ref,
4546         fold_ctor_reference, fold_nonarray_ctor_reference,
4547         fold_array_ctor_reference, fold_string_cst_ctor_reference,
4548         get_base_constructor): Move ...
4549         * gimple-fold.c: ... here.
4550         (gimple_fold_stmt_to_constant_1): New function
4551         split out from ccp_fold.  Take a valueization callback parameter.
4552         Valueize all operands.
4553         (gimple_fold_stmt_to_constant): New wrapper function.
4554         (fold_const_aggregate_ref_1): New function split out from
4555         fold_const_aggregate_ref.  Take a valueization callback parameter.
4556         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
4557         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
4558         invariant POINTER_PLUS_EXPRs to invariant form.
4559         (vn_valueize): New function.
4560         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
4561         * tree-vrp.c (vrp_valueize): New function.
4562         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
4563         to fold statements to constants.
4564         * tree-ssa-pre.c (eliminate): Properly guard propagation of
4565         function declarations.
4566         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
4567         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
4568
4569 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
4570
4571         * config/h8300/predicates.md (jump_address_operand): Fix register
4572         mode check.
4573
4574 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
4575
4576         * doc/invoke.texi (max-stores-to-sink): Document.
4577         * params.h (MAX_STORES_TO_SINK): Define.
4578         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
4579         if either vectorization or if-conversion is disabled.
4580         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
4581         tree-vect-data-refs.c vect_equal_offsets.
4582         (dr_equal_offsets_p): New function.
4583         (find_data_references_in_bb): Remove static.
4584         * tree-data-ref.h (find_data_references_in_bb): Declare.
4585         (dr_equal_offsets_p): Likewise.
4586         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
4587         (vect_drs_dependent_in_basic_block): Update calls to
4588         vect_equal_offsets.
4589         (vect_check_interleaving): Likewise.
4590         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
4591         (cond_if_else_store_replacement): Rename to...
4592         (cond_if_else_store_replacement_1): ... this.  Change arguments and
4593         documentation.
4594         (cond_if_else_store_replacement): New function.
4595         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
4596         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
4597
4598 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
4599
4600         PR target/46934
4601         * config/arm/arm.md (casesi): Use the gen_int_mode() function
4602         to subtract lower bound instead of GEN_INT().
4603
4604 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
4605
4606         PR other/48179
4607         PR other/48221
4608         PR other/48234
4609         * doc/extend.texi (Alignment): Move section to match order in TOC.
4610         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
4611         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
4612
4613 2011-03-23  Jeff Law  <law@redhat.com>
4614
4615         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
4616         before removing the edge.
4617
4618         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
4619         it may have been freed by redirect_branch_edge or
4620         redirect_edge_succ_nodup.
4621
4622 2011-03-23  Richard Guenther  <rguenther@suse.de>
4623
4624         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
4625         (check_va_list_escapes): Likewise.
4626         (check_all_va_list_escapes): Likewise.
4627
4628 2011-03-23  Richard Guenther  <rguenther@suse.de>
4629
4630         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
4631         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
4632         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
4633         (alias.o): Likewise.
4634         (ipa-type-escape.o): Remove.
4635         (ipa-struct-reorg.o): Likewise.
4636         (GTFILES): Remove ipa-struct-reorg.c.
4637         * alias.c: Do not include ipa-type-escape.h.
4638         * tree-ssa-alias.c: Likewise.
4639         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
4640         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
4641         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
4642         and ipa-type-escape passes.
4643         * tree-pass.h (pass_ipa_type_escape): Remove.
4644         (pass_ipa_struct_reorg): Likewise.
4645         * ipa-struct-reorg.h: Remove.
4646         * ipa-struct-reorg.c: Likewise.
4647         * ipa-type-escape.h: Likewise.
4648         * ipa-type-escape.c: Likewise.
4649         * doc/invoke.texi (-fipa-struct-reorg): Remove.
4650         (--param struct-reorg-cold-struct-ratio): Likewise.
4651         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4652         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
4653         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
4654
4655 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4656
4657         * config/s390/2084.md: Enable all insn reservations also for z9_ec
4658         cpu attribute value.
4659         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
4660         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
4661         * config/s390/s390.c (processor_flags_table): New constant array.
4662         (s390_handle_arch_option): Remove.
4663         (s390_handle_option): Remove s390_handle_arch_option invocations
4664         and OPT_mwarn_framesize_ handling.
4665         (s390_option_override): Remove s390_handle_arch_option invocation.
4666         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
4667         warnings.
4668         * config/s390/s390.md (cpu attribute): Add z9_ec value.
4669         * config/s390/s390.opt (s390_tune, s390_arch)
4670         (march=): Replace s390_arch_option enum and values with
4671         processor_type.  Set variable name to s390_arch.  Set
4672         initialization value.
4673         (mtune=): Replace s390_arch_option with processor_type.  Set
4674         variable name to s390_tune.  Set initialization value.
4675
4676 2011-03-23  Julian Brown  <julian@codesourcery.com>
4677
4678         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
4679         accesses which are not naturally aligned.
4680
4681 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
4682
4683         PR target/47553
4684         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
4685
4686 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
4687
4688         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
4689         parameter from "int" to "enum insn_code".
4690         (expand_operand_type): New enum.
4691         (expand_operand): New structure.
4692         (create_expand_operand): New function.
4693         (create_fixed_operand, create_output_operand): Likewise
4694         (create_input_operand, create_convert_operand_to): Likewise.
4695         (create_convert_operand_from, create_address_operand): Likewise.
4696         (create_integer_operand): Likewise.
4697         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
4698         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4699         (expand_insn, expand_jump_insn): Likewise.
4700         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
4701         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
4702         (expand_movstr, expand_builtin___clear_cache): Likewise.
4703         (expand_builtin_lock_release): Likewise.
4704         * explow.c (allocate_dynamic_stack_space): Likewise.
4705         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
4706         and use the default handling in that case.
4707         * expmed.c (check_predicate_volatile_ok): Delete.
4708         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
4709         (emit_cstore): Likewise.
4710         * expr.c (emit_block_move_via_movmem): Likewise.
4711         (set_storage_via_setmem, expand_assignment): Likewise.
4712         (emit_storent_insn, try_casesi): Likewise.
4713         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
4714         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
4715         (expand_vec_shift_expr, expand_binop_directly): Likewise.
4716         (expand_twoval_unop, expand_twoval_binop): Likewise.
4717         (expand_unop_direct, emit_indirect_jump): Likewise.
4718         (emit_conditional_move, vector_compare_rtx): Likewise.
4719         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
4720         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
4721         (expand_sync_lock_test_and_set): Likewise.
4722         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
4723         (emit_unop_insn): Likewise.
4724         (expand_copysign_absneg): Change icode to an insn_code.
4725         (create_convert_operand_from_type): New function.
4726         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
4727         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
4728         (expand_insn, expand_jump_insn): Likewise.
4729         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
4730         than const_int_operand for operand 2.
4731
4732 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4733
4734         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
4735         if possible.
4736
4737 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
4738
4739         * emit-rtl.c (emit_pattern_before_noloc): New function.
4740         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
4741         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
4742         (emit_pattern_after_noloc): New function.
4743         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
4744         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
4745
4746 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
4747
4748         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
4749         (__ffsDI2): Likewise.
4750
4751 2011-03-22  Richard Henderson  <rth@redhat.com>
4752
4753         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
4754         of !TARGET_ABI_OPEN_VMS.
4755         (alpha_trampoline_init, alpha_start_function): Likewise.
4756         (alpha_expand_epilogue, alpha_file_start): Likewise.
4757         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
4758         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
4759         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
4760         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
4761         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
4762
4763 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4764
4765         * config/s390/s390-opts.h: New.
4766         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
4767         s390_arch_flags, s390_warn_framesize, s390_stack_size,
4768         s390_stack_guard): Remove.
4769         (s390_handle_arch_option): Return void.  Take enum
4770         s390_arch_option value instead of string and searching array.
4771         (s390_handle_option): Don't assert that global structures are in
4772         use.  Access variables via opts pointer.  Use error_at.  Don't use
4773         sscanf for -mstack-guard= or -mstack-size=.  Update call to
4774         s390_handle_arch_option.
4775         (s390_option_override): Update call to s390_handle_arch_option.
4776         (s390_emit_prologue): Use %d format for s390_stack_size in
4777         diagnostic.  Use %wd for HOST_WIDE_INT.
4778         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
4779         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
4780         * config/s390/s390.opt (config/s390/s390-opts.h): New
4781         HeaderInclude entry.
4782         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
4783         s390_arch_flags, s390_warn_framesize): New Variable entries.
4784         (s390_arch_option): New Enum and EnumValue entries.
4785         (march=): Use Enum instead of Var.
4786         (mstack-guard=, mstack-size=): Use UInteger and Var.
4787         (mtune=): Use Enum.
4788
4789 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4790
4791         * config/score/score.c (score_handle_option): Don't assert that
4792         global structures are in use.  Access target_flags via opts
4793         pointer.  Use value of -march= option to determine target_flags
4794         settings.
4795         * config/score/score.opt (march=): Use Enum.
4796         (score_arch): New Enum and EnumValue entries.
4797
4798 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4799
4800         * config/mep/mep.c (option_mtiny_specified): Remove.
4801         (mep_option_override): Move register handling for -mivc2 from
4802         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
4803         instead of option_mtiny_specified.
4804         (mep_handle_option): Access target_flags via opts pointer.  Don't
4805         assert that global structures are in use.  Defer part of -mivc2
4806         handling and move it to mep_option_override.
4807         * config/mep/mep.opt (IVC2): New Mask entry.
4808         (mivc2): Use Var and Defer instead of Mask.
4809
4810 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4811
4812         * config/v850/v850-opts.h: New.
4813         * config/v850/v850.c (small_memory): Replace with
4814         small_memory_physical_max array.  Make that array static const.
4815         (v850_handle_memory_option): Take integer value of argument.  Take
4816         gcc_options pointer, option text and location.  Return void.
4817         Update for changes to small memory structures.
4818         (v850_handle_option): Access target_flags via opts pointer.  Don't
4819         assert that global structures are in use.  Update calls to
4820         v850_handle_memory_option.
4821         (v850_encode_data_area): Update references to small memory settings.
4822         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4823         (enum small_memory_type): Move to v850-opts.h.
4824         * config/v850/v850.opt (config/v850/v850-opts.h): New
4825         HeaderInclude entry.
4826         (small_memory_max): New Variable entry.
4827         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
4828         (mtda, mzda): Likewise.
4829
4830 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4831
4832         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
4833         pointer.  Don't assert that global structures are in use.
4834
4835 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4836
4837         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
4838         via opts pointer.  Don't assert that global structures are in use.
4839
4840 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4841
4842         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
4843         (munix=93): Use Var.
4844         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
4845         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
4846         * config/pa/pa-opts.h: New.
4847         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
4848         (pa_handle_option): Don't assert that global structures are in
4849         use.  Access target_flags via opts pointer.  Don't handle
4850         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
4851         OPT_munix_98 here.
4852         (pa_option_override): Handle deferred OPT_mfixed_range_.
4853
4854 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4855
4856         * config/mn10300/mn10300-opts.h: New.
4857         * config/mn10300/mn10300.c (mn10300_processor,
4858         mn10300_tune_string): Remove.
4859         (mn10300_handle_option): Don't assert that global structures are
4860         in use.  Access mn10300_processor via opts pointer.  Don't handle
4861         OPT_mtune_ here.
4862         * config/mn10300/mn10300.h (enum processor_type): Move to
4863         mn10300-opts.h.
4864         (mn10300_processor): Remove.
4865         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
4866         HeaderInclude entry.
4867         (mn10300_processor): New Variable entry.
4868         (mtune=): Use Var.
4869
4870 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4871
4872         * config/microblaze/microblaze.c: Don't include opts.h.
4873         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
4874         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
4875         (mno-clearbss): Use Var and Warn.
4876
4877 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4878
4879         * config/m32r/m32r-opts.h: New.
4880         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
4881         (m32r_handle_option): Don't assert that global structures are in
4882         use.  Access target_flags and m32r_cache_flush_func via opts
4883         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
4884         OPT_mno_flush_trap here.
4885         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
4886         include of m32r-opts.h.
4887         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
4888         HeaderInclude entry.
4889         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
4890         (mmodel=): Use Enum and Var.
4891         (m32r_model): New Enum and EnumValue entries.
4892         (mno-flush-trap): Use Var.
4893         (msdata=): Use Enum and Var.
4894         (m32r_sdata): New Enum and EnumValue entries.
4895
4896 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4897
4898         * config/m32c/m32c.c: Don't include opts.h.
4899         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
4900         m32c_handle_option): Remove.
4901         (m32c_option_override): Check global_options_set.x_target_memregs
4902         instead of target_memregs_set.
4903         * config/m32c/m32c.h (target_memregs): Remove.
4904         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
4905         variable.
4906
4907 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4908
4909         * config/iq2000/iq2000-opts.h: New.
4910         * config/iq2000/iq2000.c: Don't include opts.h.
4911         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
4912         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
4913         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
4914         HeaderInclude entry.
4915         (iq2000_tune): New Variable entry.
4916         (march=): Add comment.  Use Enum.
4917         (iq2000_arch): New Enum and EnumValue entries.
4918         (mcpu=): Use Enum and Var.
4919         (iq2000_tune): New Enum and EnumValue entries.
4920
4921 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4922
4923         * config/ia64/ia64-opts.h: New.
4924         * config/ia64/ia64.c (ia64_tune): Remove.
4925         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
4926         here.  Use error_at.
4927         (ia64_option_override): Handle deferred OPT_mfixed_range_.
4928         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
4929         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
4930         HeaderInclude entry.
4931         (ia64_tune): New Variable entry.
4932         (mfixed-range=): Use Defer and Var.
4933         (mtune=): Use Enum and Var.
4934         (ia64_tune): New Enum and EnumValue entries.
4935
4936 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4937
4938         * config/frv/frv-opts.h: New.
4939         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
4940         frv-opts.h.
4941         (frv_cpu_type): Remove.
4942         * config/frv/frv.c: Don't include opts.h.
4943         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
4944         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
4945         (frv_cpu_type): New Variable entry.
4946         (frv_cpu): New Enum and EnumValue entries.
4947
4948 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4949
4950         * config/cris/cris.c (cris_handle_option): Access target_flags via
4951         opts pointer.  Don't assert that global structures are in use.
4952         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
4953         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
4954
4955 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4956
4957         * config/bfin/bfin-opts.h: New.
4958         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
4959         bfin_si_revision, bfin_workarounds): Remove.
4960         (bfin_cpus): Make static const.
4961         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
4962         not bfin_lib_id_given.
4963         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
4964         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
4965         pointer. Use error_at.  Don't assert that global structures are in use.
4966         * config/bfin/bfin.h: Include bfin-opts.h.
4967         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
4968         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
4969         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
4970         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
4971         entries.
4972
4973 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4974
4975         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
4976         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
4977         or -msoft-float here.
4978         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
4979         -msoft-float and -mhard-float.
4980         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
4981         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4982         msoft-float.
4983         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
4984         -msoft-float.
4985         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
4986         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
4987         not mhard-float.
4988         (LIBGCC_SPEC): Don't handle -msoft-float.
4989         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
4990         -mhard-float.
4991         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4992         msoft-float.
4993         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
4994         -mfloat-abi=*, not -msoft-float and -mhard-float.
4995         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
4996         -msoft-float.
4997         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
4998         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
4999         mhard-float and msoft-float.
5000         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5001         mfloat-abi=soft in comments, not mhard-float and msoft-float.
5002         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5003         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5004         mhard-float.
5005         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5006         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5007         msoft-float.
5008         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5009         not mhard-float.
5010         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5011         not msoft-float.
5012
5013 2011-03-22  Richard Henderson  <rth@redhat.com>
5014
5015         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5016         TARGET_ABI_WINDOWS_NT.
5017         (alpha_output_function_end_prologue): Likewise.
5018         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5019         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5020         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5021         (trap, *movsi_nt_vms): Likewise.
5022         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5023         (*tablejump_osf_nt_internal): Remove.
5024         * config/alpha/predicates.md (input_operand): Only test Pmode.
5025
5026 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5027
5028         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5029         via opts pointer.  Use error_at.  Don't assert that global
5030         structures are in use.
5031
5032 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5033
5034         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5035         (ix86_handle_option): Access ix86_isa_flags and
5036         ix86_isa_flags_explicit via opts pointer.  Don't assert that
5037         global structures are in use.
5038         (ix86_function_specific_save, ix86_function_specific_restore):
5039         Update ix86_isa_flags_explicit field name.
5040         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5041         (ix86_isa_flags_explicit): Rename TargetSave entry to
5042         x_ix86_isa_flags_explicit.
5043
5044 2011-03-22  Richard Henderson  <rth@redhat.com>
5045
5046         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5047         (alpha_option_override, direct_return): Likewise.
5048         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5049         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5050         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5051         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5052         (alpha_expand_epilogue, alpha_end_function): Likewise.
5053         (alpha_init_libfuncs): Likewise.
5054         (struct machine_function): Remove unicosmk members.
5055         (print_operand) ['t']: Remove.
5056         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5057         unicosmk_output_module_name, unicosmk_output_common,
5058         current_section_align, unicosmk_output_text_section_asm_op,
5059         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5060         unicosmk_section_type_flags, unicosmk_unique_section,
5061         unicosmk_asm_named_section, unicosmk_insert_attributes,
5062         unicosmk_output_align, unicosmk_defer_case_vector,
5063         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5064         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5065         unicosmk_output_ssib, unicosmk_add_call_info_word,
5066         unicosmk_extern_head, unicosmk_output_default_externs,
5067         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5068         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5069         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5070         * config/alpha/alpha-protos.h: Update.
5071         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5072         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5073         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5074         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5075         (*mulsi_se, mulvsi3): Likewise.
5076         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5077         (*divmodsi_internal, call, call_value, realign): Likewise.
5078         (moddi3, umoddi3): Likewise; remove duplicate expander.
5079         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5080         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5081         (*movdi_nofix): Remove r/U alternative.
5082         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5083         * config/alpha/constraints.md ("U"): Remove.
5084         * config/alpha/predicates.md (call_operand"): Don't test
5085         TARGET_ABI_UNICOSMK.
5086
5087 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5088
5089         * target.def (handle_option): Take gcc_options and
5090         cl_decoded_option pointers and location_t.
5091         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5092         * doc/tm.texi: Regenerate.
5093         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5094         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5095         * lto-opts.c (lto_reissue_options): Generate option structure for
5096         targetm.handle_option call.
5097         * opts.c (target_handle_option): Update call to
5098         targetm.handle_option.  Remove assertions about values now passed
5099         down to hook.
5100         * targhooks.c (default_target_handle_option): New.
5101         * targhooks.h (default_target_handle_option): Declare.
5102         * config/alpha/alpha.c: Include opts.h.
5103         (alpha_handle_option): Update to new hook interface.
5104         * config/arm/arm.c: Include opts.h.
5105         (arm_handle_option): Update to new hook interface.
5106         * config/arm/t-arm (arm.o): Update dependencies.
5107         * config/bfin/bfin.c: Include opts.h.
5108         (bfin_handle_option): Update to new hook interface.
5109         * config/cris/cris.c: Include opts.h.
5110         (cris_handle_option): Update to new hook interface.
5111         * config/frv/frv.c: Include opts.h.
5112         (frv_handle_option): Update to new hook interface.
5113         * config/i386/i386.c: Include opts.h.
5114         (ix86_handle_option): Update to new hook interface.
5115         (ix86_valid_target_attribute_inner_p): Generate option structure
5116         for call to ix86_handle_option.
5117         * config/i386/t-i386 (i386.o): Update dependencies.
5118         * config/ia64/ia64.c: Include opts.h.
5119         (ia64_handle_option): Update to new hook interface.
5120         * config/ia64/t-ia64 (ia64.o): Update dependencies.
5121         * config/iq2000/iq2000.c: Include opts.h.
5122         (iq2000_handle_option): Update to new hook interface.
5123         * config/m32c/m32c.c: Include opts.h.
5124         (m32c_handle_option): Update to new hook interface.
5125         * config/m32r/m32r.c: Include opts.h.
5126         (m32r_handle_option): Update to new hook interface.
5127         * config/m68k/m68k.c: Include opts.h.
5128         (m68k_handle_option): Update to new hook interface.
5129         * config/mep/mep.c: Include opts.h.
5130         (mep_handle_option): Update to new hook interface.
5131         * config/microblaze/microblaze.c: Include opts.h.
5132         (microblaze_handle_option): Update to new hook interface.
5133         * config/mips/mips.c: Include opts.h.
5134         (mips_handle_option): Update to new hook interface.
5135         * config/mn10300/mn10300.c: Include opts.h.
5136         (mn10300_handle_option): Update to new hook interface.
5137         * config/pa/pa.c: Include opts.h.
5138         (pa_handle_option): Update to new hook interface.
5139         * config/pdp11/pdp11.c: Include opts.h.
5140         (pdp11_handle_option): Update to new hook interface.
5141         * config/rs6000/rs6000.c: Include opts.h.
5142         (rs6000_handle_option): Update to new hook interface.
5143         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5144         * config/rx/rx.c: Include opts.h.
5145         (rx_handle_option): Update to new hook interface.
5146         * config/s390/s390.c: Include opts.h.
5147         (s390_handle_option): Update to new hook interface.
5148         * config/score/score.c: Include opts.h.
5149         (score_handle_option): Update to new hook interface.
5150         * config/sh/sh.c: Include opts.h.
5151         (sh_handle_option): Update to new hook interface.
5152         * config/sparc/sparc.c: Include opts.h.
5153         (sparc_handle_option): Update to new hook interface.
5154         * config/v850/v850.c: Include opts.h.
5155         (v850_handle_option): Update to new hook interface.
5156
5157 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5158
5159         * gcc.c (driver_unknown_option_callback): Only permit and save
5160         unknown -Wno- options.
5161         (driver_wrong_lang_callback): Save options directly instead of via
5162         driver_unknown_option_callback.
5163
5164 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5165
5166         * combine.c (simplify_set): Try harder to find the best CC mode when
5167         simplifying a nested COMPARE on the RHS.
5168
5169 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5170
5171         * config/alpha/gnu.h: Remove.
5172         * config/arc: Remove directory.
5173         * config/arm/netbsd.h: Remove.
5174         * config/arm/t-pe: Remove.
5175         * config/crx: Remove directory.
5176         * config/i386/netbsd.h: Remove.
5177         * config/m68hc11: Remove directory.
5178         * config/m68k/uclinux-oldabi.h: Remove.
5179         * config/mcore/mcore-pe.h: Remove.
5180         * config/mcore/t-mcore-pe: Remove.
5181         * config/netbsd-aout.h: Remove.
5182         * config/rs6000/gnu.h: Remove.
5183         * config/sh/sh-symbian.h: Remove.
5184         * config/sh/symbian-base.c: Remove.
5185         * config/sh/symbian-c.c: Remove.
5186         * config/sh/symbian-cxx.c: Remove.
5187         * config/sh/symbian-post.h: Remove.
5188         * config/sh/symbian-pre.h: Remove.
5189         * config/sh/t-symbian: Remove.
5190         * config/svr3.h: Remove.
5191         * config/vax/netbsd.h: Remove.
5192         * config.build: Don't handle i[34567]86-*-pe.
5193         * config.gcc: Remove handling of deprecations for most deprecated
5194         targets.
5195         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5196         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5197         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5198         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5199         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5200         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5201         Remove cases.
5202         * config.host: Don't handle i[34567]86-*-pe.
5203         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5204         (ASM_SPEC32): Don't handle -mcall-gnu.
5205         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5206         -mcall-gnu.
5207         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5208         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5209         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5210         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5211         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5212         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5213         conditional on SYMBIAN.
5214         * configure.ac: Don't handle powerpc*-*-gnu*.
5215         * configure: Regenerate.
5216         * doc/extend.texi (interrupt attribute): Don't mention CRX.
5217         * doc/install-old.texi (m6811, m6812): Don't mention.
5218         * doc/install.texi (arc-*-elf*): Don't document multilib option.
5219         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
5220         (m68k-uclinuxoldabi): Don't mention.
5221         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
5222         Remove.
5223         (-mcall-gnu): Remove.
5224         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
5225         families): Remove constraint documentation.
5226
5227 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
5228
5229         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
5230         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
5231         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
5232
5233 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
5234
5235         * config/avr/avr-protos.h (expand_epilogue): Change prototype
5236         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
5237         * config/avr/avr.c (init_cumulative_args)
5238         (avr_function_arg_advance): Use it.
5239         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
5240         sibcall epilogues.
5241         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
5242         (avr_function_ok_for_sibcall): ...this new function.
5243         (avr_lookup_function_attribute1): New static Function.
5244         (avr_naked_function_p, interrupt_function_p)
5245         (signal_function_p, avr_OS_task_function_p)
5246         (avr_OS_main_function_p): Use it.
5247         * config/avr/avr.md ("sibcall", "sibcall_value")
5248         ("sibcall_epilogue"): New expander.
5249         ("*call_insn", "*call_value_insn"): New insn.
5250         ("call_insn", "call_value_insn"): Remove
5251         ("call", "call_value", "epilogue"): Change expander to handle
5252         sibling calls.
5253
5254 2011-03-21  Nick Clifton  <nickc@redhat.com>
5255
5256         * doc/invoke.texi (Overall Options): Move closing brace to end of
5257         options list.
5258         (Optimization Options): Add missing @gol.
5259         (Directory Options): Likewise.
5260         (i386 and x86-64 Options): Likewise.
5261         (RS6000 and PowerPC Options): Likewise.
5262         (i386 and x86-64 Windows Options): Likewise.
5263         (V850 Options): Add text missing from descriptions.
5264
5265 2011-03-22  Richard Henderson  <rth@redhat.com>
5266
5267         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
5268         (avr_incoming_return_addr_rtx): New.
5269         (emit_push_byte): New.
5270         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
5271         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
5272         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
5273         (emit_pop_byte): New.
5274         (expand_epilogue): Use it.  Pop frame pointer by bytes.
5275         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
5276         (INCOMING_RETURN_ADDR_RTX): New.
5277         (INCOMING_FRAME_SP_OFFSET): New.
5278         (ARG_POINTER_CFA_OFFSET): New.
5279         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
5280         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
5281         (pophi): Remove.
5282
5283         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
5284
5285 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5286
5287         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5288         (FUNCTION_ARG_ADVANCE): Likewise.
5289         * tm.texi.in: Change references to them to hook references.
5290         * tm.texi: Regenerate.
5291         * targhooks.c (default_function_arg): Eliminate check for target
5292         macro.
5293         (default_function_incoming_arg): Likewise.
5294         (default_function_arg_advance): Likewise.
5295         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5296         (function_arg_advance): Likewise.
5297         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5298
5299 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5300
5301         * tree.c (build_call_1): New function.
5302         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
5303
5304 2011-03-22  Richard Guenther  <rguenther@suse.de>
5305
5306         PR tree-optimization/48228
5307         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
5308         for single-arg PHIs.
5309
5310 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
5311
5312         PR rtl-optimization/48143
5313         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
5314         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
5315         sse2_cvtps2pd): Likewise.
5316
5317 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5318
5319         * recog.c (canonicalize_change_group): Use validate_unshare_change.
5320
5321 2011-03-22  Richard Guenther  <rguenther@suse.de>
5322
5323         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
5324         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
5325         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
5326         and REALIGN_LOAD_EXPR.
5327         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
5328         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
5329         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
5330         DOT_PROD_EXPR case ...
5331         (expand_expr_real_2): ... here.
5332         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
5333         and REALIGN_LOAD_EXPR.
5334         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
5335         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
5336         (vect_create_epilog_for_reduction): Likewise.
5337         (vectorizable_reduction): Likewise.
5338         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
5339         * tree-vect-stmts.c (vectorizable_load): Likewise.
5340
5341 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5342
5343         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
5344
5345 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5346
5347         * config/s390/s390.c (s390_delegitimize_address): Fix offset
5348         handling for PLTOFF/GOTOFF.
5349
5350 2011-03-22  Nick Clifton  <nickc@redhat.com>
5351
5352         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
5353         trailing backslash from the end of the macro definition.
5354
5355 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5356
5357         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
5358         and PLT unspecs.
5359
5360 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
5361
5362         * expr.h (prepare_operand): Move to...
5363         * optabs.h (prepare_operand): ...here and change the insn code
5364         parameter from "int" to "enum insn_code".
5365         (insn_operand_matches): Declare.
5366         * expr.c (init_expr_target): Use insn_operand_matches.
5367         (compress_float_constant): Likewise.
5368         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
5369         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
5370         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
5371         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
5372         Likewise.
5373         (gen_cond_trap): Likewise.
5374         (prepare_operand): Likewise.  Change icode to an insn_code.
5375         (insn_operand_matches): New function.
5376         * reload.c (find_reloads_address_1): Use insn_operand_matches.
5377         * reload1.c (gen_reload): Likewise.
5378         * targhooks.c (default_secondary_reload): Likewise.
5379
5380 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
5381
5382         * config/alpha/alpha.md (unspec): New define_c_enum.
5383         (unspecv): Ditto.
5384
5385 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
5386
5387         PR debug/48214
5388         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
5389         between a call and its CALL_ARG_LOCATION note.
5390
5391 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
5392
5393         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
5394
5395 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
5396
5397         PR c/42544
5398         PR c/48197
5399         * c-common.c (shorten_compare): If primopN is first sign-extended
5400         to opN and then zero-extended to result type, set primopN to opN.
5401
5402 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
5403
5404         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
5405         for barrier handlers.
5406
5407 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
5408
5409         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
5410         UNSPEC constants to be in the unspec enumeration, and redefine
5411         all UNSPECV constants to be in the unspecv enumeration, so that
5412         dumps print which unspec/unspec_volatile this is.
5413         * config/rs6000/vector.md (UNSPEC_*): Ditto.
5414         * config/rs6000/paired.md (UNSPEC_*): Ditto.
5415         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
5416         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
5417         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
5418
5419         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
5420         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
5421         UNSPECV_LWSYNC, since these are used as unspec_volatile.
5422         * config/rs6000/sync.md (isync, lwsync): Ditto.
5423
5424 2011-03-21  Richard Guenther  <rguenther@suse.de>
5425
5426         * params.def (lto-min-partition): Fix typo.
5427
5428 2011-03-21  Richard Guenther  <rguenther@suse.de>
5429
5430         PR c/47939
5431         * c-decl.c (grokdeclarator): Drop to the main variant only
5432         for array types.  Drop flag_gen_aux_info check.
5433
5434 2011-03-21  Richard Guenther  <rguenther@suse.de>
5435
5436         PR translation/47911
5437         * params.def (lto-partitions): Fix typo.
5438         (lto-min-partition): Fix wording.
5439
5440 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
5441
5442         * config/rs6000/t-freebsd: Remove duplication from file.
5443
5444 2011-03-21  Richard Guenther  <rguenther@suse.de>
5445
5446         PR middle-end/47661
5447         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
5448
5449 2011-03-21  Richard Guenther  <rguenther@suse.de>
5450
5451         PR lto/48210
5452         * params.def (lto-partitions): Require at least 1 partition.
5453
5454 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5455
5456         * gthr-solaris.h: Remove.
5457         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
5458         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
5459         (LIB_SPEC): Likewise.
5460         * config/sol2.opt (threads): Remove.
5461         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
5462         (sparc*-*-solaris2*): Likewise.
5463         * configure.ac (enable_threads): Enable solaris support.
5464         * configure: Regenerate.
5465         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
5466         * doc/install.texi (Configuration, --enable-threads=lib): Remove
5467         solaris.
5468
5469 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5470
5471         * config.gcc: Obsolete *-*-solaris2.8*.
5472         * doc/install.texi (Specific, *-*-solaris2*): Document it.
5473
5474 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5475
5476         PR bootstrap/48135
5477         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
5478         reference.  Solaris 8 perl works.
5479
5480 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5481
5482         PR bootstrap/48135
5483         * doc/install.texi (Prerequisites): Move jar etc. up.
5484         Explain support library version requirements.
5485
5486 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5487
5488         PR bootstrap/48135
5489         * doc/install.texi (Prerequisites): Move Perl to build
5490         requirements.  Always necessary on Solaris 2 with Sun ld.
5491
5492 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5493
5494         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
5495         binutils 2.21.
5496         (Specific, i?86-*-solaris2.[89]): Likewise.
5497         (Specific, i?86-*-solaris2.10): Likewise.
5498         (Specific, mips-sgi-irix6): Likewise.
5499         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
5500         Update for binutils 2.21.
5501
5502 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5503
5504         * configure.ac (gcc_cv_lto_plugin): Fix typo.
5505         Allow -fuse-linker-plugin for non-default plugin linker.
5506         * configure: Regenerate.
5507
5508 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
5509
5510         PR bootstrap/48167
5511         * gengtype.c (files_rules): Added rule for cp/parser.h.
5512
5513 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
5514
5515         PR target/48213
5516         * config/s390/s390.c (s390_delegitimize_address): Don't call
5517         lowpart_subreg if orig_x has BLKmode.
5518
5519 2011-03-21  Kai Tietz  <ktietz@redhat.com>
5520
5521         PR target/12171
5522         * doc/plugins.texi: Adjust documentation for plugin register_callback.
5523         * tree.h (attribute_spec): Add new member affects_type_identity.
5524         * attribs.c (empty_attribute_table): Adjust attribute_spec
5525         initializers.
5526         * config/alpha/alpha.c: Likewise.
5527         * config/arc/arc.c: Likewise.
5528         * config/arm/arm.c: Likewise.
5529         * config/avr/avr.c: Likewise.
5530         * config/bfin/bfin.c: Likewise.
5531         * config/crx/crx.c: Likewise.
5532         * config/darwin.h: Likewise.
5533         * config/h8300/h8300.c: Likewise.
5534         * config/i386/cygming.h: Likewise.
5535         * config/i386/i386.c: Likewise.
5536         * config/ia64/ia64.c: Likewise.
5537         * config/m32c/m32c.c: Likewise.
5538         * config/m32r/m32r.c: Likewise.
5539         * config/m68hc11/m68hc11.c: Likewise.
5540         * config/m68k/m68k.c: Likewise.
5541         * config/mcore/mcore.c: Likewise.
5542         * config/mep/mep.c: Likewise.
5543         * config/microblaze/microblaze.c: Likewise.
5544         * config/mips/mips.c: Likewise.
5545         * config/rs6000/rs6000.c: Likewise.
5546         * config/rx/rx.c: Likewise.
5547         * config/sh/sh.c: Likewise.
5548         * config/sol2.h: Likewise.
5549         * config/sparc/sparc.c: Likewise.
5550         * config/spu/spu.c: Likewise.
5551         * config/stormy16/stormy16.c: Likewise.
5552         * config/v850/v850.c: Likewise.
5553
5554 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
5555
5556         * simplify-rtx.c (simplify_binary_operation_1): Handle
5557         (xor (and A B) C) case when B and C are both constants.
5558
5559 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
5560
5561         * tree-dfa.c (add_referenced_var): Fix typo in comment.
5562
5563 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
5564
5565         PR bootstrap/48168
5566         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
5567
5568 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
5569
5570         PR rtl-optimization/48156
5571         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
5572         assume df and df_lr are not NULL.
5573
5574 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5575
5576         PR debug/48023
5577         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
5578         between a call and its CALL_ARG_LOCATION note.
5579
5580 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
5581
5582         PR debug/48178
5583         * config/sh/sh.c (find_barrier): Don't emit a constant pool
5584         between a call and its corresponding CALL_ARG_LOCATION note.
5585
5586 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
5587
5588         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
5589         instead of loop. Use HARD_REGISTER_NUM_P predicate.
5590         * haifa-sched.c (setup_ref_regs): Ditto.
5591         * caller-save.c (add_used_regs_1): Ditto.
5592         * dse.c (look_for_hardregs): Ditto.
5593         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
5594         * sched-rgn.c (check_live_1): Ditto.
5595
5596 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
5597
5598         * c-decl.c (diagnose_mismatched_decls): Give an error for
5599         redefining a typedef with variably modified type.
5600
5601 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
5602
5603         * c-decl.c (grokfield): Don't allow typedefs for structures or
5604         unions with no tag by default.
5605         * doc/extend.texi (Unnamed Fields): Update.
5606
5607 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
5608
5609         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
5610         Rewrite using indirect functions.
5611         (lwp_slwpcb): Ditto.
5612         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
5613         (avx_vinsertf128<mode>): Ditto.
5614
5615 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5616
5617         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
5618         unspecs.
5619
5620 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5621
5622         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
5623         splitting between a call and its corresponding CALL_ARG_LOCATION note.
5624
5625 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
5626
5627         PR rtl-optimization/48170
5628         * gcse.c (hoist_code): Remove bogus asserts.
5629
5630 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
5631
5632         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
5633         computation for prologue/epilogue.
5634
5635 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5636
5637         * Makefile.in (check-consistency): Remove.
5638
5639 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
5640
5641         PR debug/48176
5642         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
5643         arange_table_in_use is 0, but either text_section_used or
5644         cold_text_section_used is true.  Don't call it if
5645         !info_section_emitted.
5646
5647 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
5648
5649         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
5650         FUNCTION_VALUE_REGNO_P): Remove.
5651         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
5652         Remove.
5653         * config/avr/avr.c (avr_ret_register): Make static inline.
5654         (avr_function_value_regno_p): New function.
5655         (avr_libcall_value): Make static. Add 'func' argument.
5656         (avr_function_value): Make static. Rename 'func' argument to
5657         'fn_decl_or_type', forward it to avr_libcall_value. Call
5658         avr_ret_register function instead of RET_REGISTER macro.
5659         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5660
5661 2011-03-18  Jason Merrill  <jason@redhat.com>
5662
5663         PR c++/23372
5664         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
5665
5666 2011-03-18  Richard Guenther  <rguenther@suse.de>
5667
5668         * doc/install.texi (--enable-gold): Remove.
5669         (--with-plugin-ld): Document.
5670         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
5671
5672 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
5673
5674         PR middle-end/47790
5675         * expr.c (optimize_bitfield_assignment_op): Revamp to work
5676         again after expansion changes.
5677
5678 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
5679
5680         * combine.c (try_combine): Do simplification only call of
5681         subst() on i2 even when i1 is present. Update comments.
5682
5683 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
5684
5685         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
5686         and UNSPEC_PCREL_SYMOFF.
5687
5688 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5689
5690         * config/s390/s390.md: Use define_c_enum for the unspec constant
5691         definitions.
5692
5693 2011-03-18  Richard Henderson  <rth@redhat.com>
5694             Jakub Jelinek  <jakub@redhat.com>
5695
5696         PR bootstrap/48161
5697         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
5698         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
5699
5700 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5701
5702         PR middle-end/47725
5703         * combine.c (cant_combine_insn_p): Don't check zero/sign
5704         extended hard registers.
5705
5706 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5707
5708         PR middle-end/47725
5709         * combine.c (cant_combine_insn_p): Check zero/sign extended
5710         hard registers.
5711
5712 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
5713
5714         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5715         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
5716         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
5717         Change return type to bool.
5718         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5719
5720 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5721
5722         PR debug/48163
5723         * var-tracking.c (prepare_call_arguments): If CALL target
5724         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
5725         pc instead of looking it up using cselib_lookup and use
5726         Pmode for it if x has VOIDmode.
5727         * dwarf2out.c (gen_subprogram_die): If also both first and
5728         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
5729
5730         PR debug/48163
5731         * function.c (assign_parms): For data.passed_pointer parms
5732         use MEM of data.entry_parm instead of data.entry_parm itself
5733         as DECL_INCOMING_RTL.
5734         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
5735         also when passed and declared mode is the same, DECL_RTL
5736         is a MEM with pseudo as address and DECL_INCOMING_RTL is
5737         a MEM too.
5738
5739 2011-03-16  Jeff Law  <law@redhat.com>
5740
5741         PR rtl-optimization/37273
5742         * ira-costs.c (scan_one_insn): Detect constants living in memory and
5743         handle them like argument loads from stack slots.  Do not double
5744         count memory for memory constants and argument loads from stack slots.
5745
5746 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5747
5748         PR debug/48160
5749         * var-tracking.c (prepare_call_arguments): Check SUBREG.
5750
5751 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5752
5753         PR target/48171
5754         * config/i386/i386.opt: Add Save to -mavx and -mfma.
5755
5756 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5757
5758         PR bootstrap/48153
5759         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
5760         if dwarf_strict.
5761         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
5762         Clear call_arg_locations and call_arg_loc_last always.
5763
5764         PR middle-end/48152
5765         * var-tracking.c (prepare_call_arguments): If argument needs to be
5766         passed by reference, adjust argtype and mode.
5767
5768 2011-03-17  Richard Guenther  <rguenther@suse.de>
5769
5770         PR middle-end/48134
5771         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
5772         a value make sure to fold the statement.
5773
5774 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
5775
5776         PR target/43872
5777         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
5778         return condition with !cfun->calls_alloca.
5779
5780 2011-03-17  Richard Guenther  <rguenther@suse.de>
5781
5782         PR bootstrap/48148
5783         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5784         origin for decls in other ltrans units.
5785         (input_varpool_node): Likewise.
5786
5787 2011-03-17  Richard Guenther  <rguenther@suse.de>
5788
5789         PR middle-end/48165
5790         * tree-object-size.c (compute_object_offset): Properly return
5791         the offset operand of MEM_REFs as sizetype.
5792
5793 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5794
5795         PR rtl-optimization/48141
5796         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
5797         * dse.c: Include params.h.
5798         (active_local_stores_len): New variable.
5799         (add_wild_read, dse_step1): Clear it when setting active_local_stores
5800         to NULL.
5801         (record_store, check_mem_read_rtx): Decrease it when removing
5802         from the chain.
5803         (scan_insn): Likewise.  Increase it when adding to chain, if it
5804         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
5805         set active_local_stores to NULL before the addition.
5806         * Makefile.in (dse.o): Depend on $(PARAMS_H).
5807
5808         PR rtl-optimization/48141
5809         * dse.c (record_store): If no positions are needed in an insn
5810         that cannot be deleted, at least unchain it from active_local_stores.
5811
5812 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
5813
5814         PR debug/47510
5815         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
5816         (lookup_type_die_strip_naming_typedef): ... here.
5817         (get_context_die): Use it.
5818         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
5819         the anonymous struct named by the naming typedef.
5820
5821 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5822
5823         PR target/48154
5824         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
5825         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5826
5827 2011-03-16  Jeff Law  <law@redhat.com>
5828
5829         * tree-vrp.c (identify_jump_threads): Slightly simplify type
5830         check for operands of conditional.  Allow type to be a pointer.
5831
5832 2011-03-16  Richard Guenther  <rguenther@suse.de>
5833
5834         PR tree-optimization/48149
5835         * fold-const.c (fold_binary_loc): Fold
5836         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
5837
5838 2011-03-16  Richard Guenther  <rguenther@suse.de>
5839
5840         PR tree-optimization/26134
5841         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
5842         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
5843         (non_rewritable_mem_ref_base): Handle complex type component
5844         accesses, constrain offsets for vector and complex extracts
5845         more properly.
5846
5847 2011-03-16  Richard Guenther  <rguenther@suse.de>
5848
5849         PR tree-optimization/48146
5850         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
5851         operands avoiding the need for renaming.
5852
5853 2011-03-16  Richard Guenther  <rguenther@suse.de>
5854
5855         * gimple-fold.c (maybe_fold_reference): Open-code relevant
5856         constant folding.  Move MEM_REF canonicalization first.
5857         Rely on fold_const_aggregate_ref for initializer folding.
5858         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
5859
5860 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
5861
5862         PR middle-end/48136
5863         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5864         arg0/arg1 or their arguments are always fold converted to matching
5865         types.
5866
5867         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
5868         to nargs.
5869
5870 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5871
5872         PR lto/46944
5873         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
5874         Handle in-tree gold.
5875         (ld_vers): Extract binutils version for gold.
5876         (gcc_cv_ld_hidden): Handle gold here.
5877         (gcc_cv_lto_plugin): Determine level of linker plugin support.
5878         * configure: Regenerate.
5879         * config.in: Regenerate.
5880         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
5881         -fuse-linker-plugin otherwise.
5882         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
5883         (LINK_COMMAND_SPEC): Use it.
5884         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
5885
5886 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
5887
5888         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
5889         * calls.c: Remove debug.h include.
5890         (emit_call_1): Don't call virtual_call_token debug hook.
5891         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
5892         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
5893         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
5894         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
5895         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
5896         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
5897         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
5898         dwarf2out_virtual_call): Remove.
5899         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
5900         copy_call_info and virtual_call hooks.
5901         (dwarf2out_init): Don't initialize vcall_insn_table,
5902         debug_dcall_section and debug_vcall_section.
5903         (prune_unused_types): Don't mark nodes from dcall_table.
5904         (dwarf2out_finish): Don't output dcall or vcall tables.
5905         * final.c (final_scan_insn): Don't call direct_call or
5906         virtual_call debug hooks.
5907         * debug.h (struct gcc_debug_hooks): Remove direct_call,
5908         virtual_call_token, copy_call_info and virtual_call hooks.
5909         (debug_nothing_uid): Remove prototype.
5910         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
5911         copy_call_info and virtual_call hooks.
5912         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5913         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
5914         * debug.c (do_nothing_debug_hooks): Likewise.
5915         (debug_nothing_uid): Remove.
5916         * doc/invoke.texi (-fenable-icf-debug): Remove.
5917         * common.opt (-fenable-icf-debug): Likewise.
5918
5919         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
5920         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
5921         call's MEM.  Handle functions returning aggregate through a hidden
5922         first pointer.  For virtual calls add clobbered pc to call arguments
5923         chain.
5924         * dwarf2out.c (gen_subprogram_die): Emit
5925         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
5926         can't be emitted.
5927
5928         PR debug/45882
5929         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
5930         * rtl.h (ENTRY_VALUE_EXP): Define.
5931         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
5932         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
5933         * print-rtl.c (print_rtx): Likewise.
5934         * gengtype.c (adjust_field_rtx_def): Likewise.
5935         * var-tracking.c (vt_add_function_parameter): Adjust
5936         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
5937         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
5938         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
5939         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
5940         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
5941
5942         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
5943         Call var_location debug hook even on CALL_INSNs.
5944         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
5945         * rtl.def (ENTRY_VALUE): New.
5946         * dwarf2out.c: Include cfglayout.h.
5947         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5948         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
5949         (struct call_arg_loc_node): New type.
5950         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
5951         tail_call_site_count): New variables.
5952         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
5953         DW_TAG_GNU_call_site_parameter.
5954         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
5955         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
5956         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
5957         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
5958         and DW_AT_GNU_all_source_call_sites.
5959         (mem_loc_descriptor): Handle ENTRY_VALUE.
5960         (add_src_coords_attributes): Don't add enything if
5961         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
5962         (dwarf2out_abstract_function): Save and clear call_arg_location,
5963         call_site_count and tail_call_site_count around dwarf2out_decl call.
5964         (gen_call_site_die): New function.
5965         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
5966         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
5967         (dwarf2out_function_decl): Clear call_arg_locations,
5968         call_arg_loc_last, set call_site_count and tail_call_site_count
5969         to -1 and free block_map.
5970         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
5971         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
5972         followed by any real instructions.
5973         (dwarf2out_begin_function): Set call_site_count and
5974         tail_call_site_count to 0.
5975         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
5976         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
5977         attempt to force a DIE for it and worst case remove the attribute.
5978         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
5979         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
5980         the decl itself.
5981         * var-tracking.c: Include tm_p.h.
5982         (vt_stack_adjustments): For calls call note_register_arguments.
5983         (argument_reg_set): New variable.
5984         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
5985         ensure the VALUE is resolved.
5986         (call_arguments): New variable.
5987         (prepare_call_arguments): New function.
5988         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
5989         (struct expand_loc_callback_data): Add ignore_cur_loc field.
5990         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
5991         always use the best expression.
5992         (vt_expand_loc): Add ignore_cur_loc argument.
5993         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
5994         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
5995         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
5996         note for all calls.
5997         (vt_add_function_parameter): Use cselib_lookup_from_insn.
5998         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
5999         argument.  Don't call cselib_preserve_only_values and
6000         cselib_reset_table.
6001         (note_register_arguments): New function.
6002         (vt_initialize): Compute argument_reg_set.  Call
6003         vt_add_function_parameters before processing basic blocks instead of
6004         afterwards.  For calls call prepare_call_arguments before calling
6005         cselib_process_insn.
6006         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6007         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6008         (var-tracking.o): Depend on $(TM_P_H).
6009         * cfglayout.h (insn_scope): New prototype.
6010         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6011         * cfglayout.c (insn_scope): No longer static.
6012         * insn-notes.def (CALL_ARG_LOCATION): New.
6013         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6014         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6015         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6016         nothing for DECL_EXTERNAL BLOCK_VARS.
6017
6018 2011-03-16  Alan Modra  <amodra@gmail.com>
6019
6020         PR target/45844
6021         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6022         create invalid offset address for vsx splat insn.
6023         * config/rs6000/predicates.md (splat_input_operand): New.
6024         * config/rs6000/vsx.md (vsx_splat_*): Use it.
6025
6026 2011-03-15  Xinliang David Li  <davidxl@google.com>
6027
6028         PR c/47837
6029         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6030         (normalize_preds): New function.
6031         (is_use_properly_guarded): Normalize def predicates.
6032
6033 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6034
6035         PR target/46788
6036         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6037         in the output template.
6038
6039 2011-03-15  Richard Guenther  <rguenther@suse.de>
6040
6041         PR middle-end/47650
6042         * tree-pretty-print.c (dump_function_declaration): Properly
6043         dump unprototyped and varargs function types.
6044
6045 2011-03-15  Richard Guenther  <rguenther@suse.de>
6046
6047         PR tree-optimization/13954
6048         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6049         and friends.
6050
6051 2011-03-15  Richard Guenther  <rguenther@suse.de>
6052
6053         PR tree-optimization/48037
6054         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6055         selects into BIT_FIELD_REFs.
6056         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6057         vector select.
6058
6059 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
6060
6061         PR tree-optimization/48129
6062         * builtins.c (fold_builtin_snprintf): Convert to type of
6063         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6064         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6065
6066 2011-03-15  Richard Guenther  <rguenther@suse.de>
6067
6068         PR tree-optimization/41490
6069         * tree-ssa-dce.c (propagate_necessity): Handle returns without
6070         value but with VUSE.
6071         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6072         return statements.
6073         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6074         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6075         * tree-tailcall.c (find_tail_calls): Ignore returns.
6076
6077 2011-03-15  Richard Guenther  <rguenther@suse.de>
6078
6079         PR middle-end/48031
6080         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6081         or variable-indexed array accesses when in gimple form.
6082
6083 2011-03-15  Richard Guenther  <rguenther@suse.de>
6084
6085         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6086
6087 2011-03-15  Alan Modra  <amodra@gmail.com>
6088
6089         PR target/48032
6090         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6091         presume symbol_refs without a symbol_ref_decl are suitably
6092         aligned, nor other trees we may see here.  Handle anchor symbols.
6093         (legitimate_constant_pool_address_p): Comment.  Add mode param.
6094         Check cmodel=medium addresses.  Adjust all calls.
6095         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6096         creating cmodel=medium optimized access to locals.
6097         * config/rs6000/constraints.md (R): Pass QImode to
6098         legitimate_constant_pool_address_p.
6099         * config/rs6000/predicates.md (input_operand): Pass mode to
6100         legitimate_constant_pool_address_p.
6101         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6102         Update prototype.
6103
6104 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6105
6106         PR target/48053
6107         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6108         64-bit constants being loaded into registers other than GPRs such
6109         as loading 0 into a VSX register.
6110
6111 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6112
6113         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6114
6115 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6116
6117         PR middle-end/47917
6118         * builtins.c (fold_builtin_snprintf): New function.
6119         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6120         (fold_builtin_4): Likewise.
6121
6122         PR middle-end/38878
6123         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6124         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
6125         and C - X == X also strip nops from +/-/p+ operand.
6126         When optimizing -X == C, fold C to arg0's type.
6127
6128         PR debug/47946
6129         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6130         emit it as add_AT_int instead of add_AT_unsigned.
6131
6132 2011-03-14  Tom Tromey  <tromey@redhat.com>
6133
6134         * unwind-dw2.c: Include sys/sdt.h if it exists.
6135         (_Unwind_DebugHook): Use STAP_PROBE2.
6136         * config.in, configure: Rebuild.
6137         * configure.ac: Check for sys/sdt.h.
6138
6139 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
6140
6141         * config/i386/i386.md (ROUND_FLOOR): New constant.
6142         (ROUND_CEIL): Ditto.
6143         (ROUND_TRUNC): Ditto.
6144         (ROUND_MXCSR): Ditto.
6145         (ROUND_NO_EXC): Ditto.
6146         (rint<mode>2): Use new defines instead of numerical constants.
6147         (floor<mode>2): Ditto.
6148         (ceil<mode>2): Ditto.
6149         (btrunc<mode>2): Ditto.
6150         * config/i386/i386-builtin-types.def: Define ROUND function type
6151         aliases.
6152         * config/i386/i386.c (enum ix86_builtins): Add
6153         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6154         (struct builtin_description): Add
6155         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6156         (ix86_expand_sse_round): New static function.
6157         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6158         function types.
6159         (ix86_builtin_vectorized_function): Handle
6160         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6161
6162 2011-03-14  Tom Tromey  <tromey@redhat.com>
6163
6164         * c-parser.c (c_parser_asm_string_literal): Clear
6165         warn_overlength_strings.
6166
6167 2011-03-14  Tom Tromey  <tromey@redhat.com>
6168
6169         * c-parser.c (disable_extension_diagnostics): Save
6170         warn_overlength_strings.
6171         (restore_extension_diagnostics): Restore warn_overlength_strings.
6172
6173 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6174
6175         * BASE-VER: Change to 4.7.0.
6176
6177 2011-03-14  Richard Guenther  <rguenther@suse.de>
6178
6179         PR middle-end/48098
6180         * tree.c (build_vector_from_val): Adjust assert to requirements
6181         and reality.
6182
6183 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6184
6185         PR bootstrap/48102
6186         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6187
6188 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
6189
6190         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
6191         terms of target_flags_explicit. Adjust copyright year.
6192
6193         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6194         * config/rs6000/t-freebsd: New file. Add override for
6195         LIB2FUNCS_EXTRA.
6196
6197 2011-03-13  Chris Demetriou  <cgd@google.com>
6198
6199         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6200         (-fno-diagnostics-show-option): this, to reflect current default.
6201         (-Werror=): Update text about -fno-diagnostics-show-option.
6202
6203 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
6204
6205         PR target/48053
6206         * config/rs6000/predicates.md (easy_vector_constant_add_self,
6207         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6208         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6209         mode is not V2DImode or V2DFmode.
6210         (vspltis_constant): Do not handle V2DImode and V2DFmode.
6211         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6212         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6213         registers to 0.
6214         (movdi_internal64): Likewise.
6215
6216 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
6217
6218         PR tree-optimization/47127
6219         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
6220         parameter.
6221         (set_cloog_options): Same.
6222         (scop_to_clast): Same.
6223         (print_clast_stmt): Do not call cloog_state_malloc and
6224         cloog_state_free.
6225         (print_generated_program): Same.
6226         (gloog): Same.
6227         * graphite-clast-to-gimple.h (cloog_state): Declared.
6228         (scop_to_clast): Adjust declaration.
6229         * graphite.c (cloog_state): Defined here.
6230         (graphite_initialize): Call cloog_state_malloc.
6231         (graphite_finalize): Call cloog_state_free.
6232
6233 2011-03-11  Jason Merrill  <jason@redhat.com>
6234
6235         * attribs.c (lookup_attribute_spec): Take const_tree.
6236         * tree.h: Adjust.
6237
6238 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
6239
6240         * config/sparc/sparc.c (sparc_option_override): Use
6241         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
6242
6243 2011-03-11  Richard Guenther  <rguenther@suse.de>
6244
6245         PR tree-optimization/48067
6246         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
6247         multiplication result will be only used once on the target
6248         stmt.
6249
6250 2011-03-11  Richard Guenther  <rguenther@suse.de>
6251
6252         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
6253
6254 2011-03-11  Richard Guenther  <rguenther@suse.de>
6255
6256         PR lto/48073
6257         * tree.c (find_decls_types_r): Do not walk types only reachable
6258         from IDENTIFIER_NODEs.
6259
6260 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
6261
6262         PR middle-end/48044
6263         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
6264         all vnode->force_output nodes as needed.
6265
6266 2011-03-11  Jason Merrill  <jason@redhat.com>
6267
6268         PR c++/48069
6269         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
6270         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
6271
6272 2011-03-11  Martin Jambor  <mjambor@suse.cz>
6273
6274         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
6275         cgraph_node.
6276
6277 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
6278
6279         PR tree-optimization/48063
6280         * ipa-inline.c (cgraph_decide_inlining): Don't try to
6281         inline functions called once if !tree_can_inline_p (node->callers).
6282
6283 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
6284
6285         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
6286         extra_objs.
6287         * config/score/score3.c: Delete.
6288         * config/score/score3.h: Delete.
6289         * config/score/mul-div.S: Delete.
6290         * config/score/sfp-machine.h: Add new file.
6291         * config/score/constraints.md: Add new file.
6292         * config/score/t-score-softfp: Add new file.
6293         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
6294         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
6295         (score7_extra_constraint): Delete.
6296         (score7_option_override): Remove unused code.
6297         * config/score/score.c: Remove score3 and score5 define and code.
6298         * config/score/score.h: Remove score3 and score5 define and code.
6299         * config/score/score.md: Remove score3 template and unusual insn.
6300         * config/score/score.opt: Remove score3 and score5 options.
6301
6302 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6303
6304         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
6305         when _HPUX_SOURCE is defined.
6306         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
6307
6308 2011-03-10  Jason Merrill  <jason@redhat.com>
6309
6310         PR c++/48029
6311         * stor-layout.c (layout_type): Don't set structural equality
6312         on arrays of incomplete type.
6313         * tree.c (type_hash_eq): Handle comparing them properly.
6314
6315 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
6316
6317         PR debug/48043
6318         * config/s390/s390.c (s390_delegitimize_address): Make sure the
6319         result mode matches original rtl mode.
6320
6321 2011-03-10  Nick Clifton  <nickc@redhat.com>
6322
6323         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
6324         (andsi3, andsi3_flags): Fix timings for three operand alternative.
6325
6326 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
6327
6328         PR rtl-optimization/47866
6329         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
6330         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
6331         if target wasn't scalar.
6332         * function.c (assign_stack_temp_for_type): Assert that neither
6333         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
6334         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
6335         macro.
6336         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
6337
6338 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6339
6340         * config/s390/s390-protos.h (s390_label_align): New prototype.
6341         * config/s390/s390.c (s390_label_align): New function.
6342         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
6343
6344 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
6345
6346         PR target/47755
6347         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
6348         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
6349         (output_vec_const_move): Ditto.
6350
6351 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
6352
6353         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
6354         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
6355         * config/mips/mips.c (mips_preferred_reload_class): Make static.
6356         Change 'rclass' argument and result type to reg_class_t.
6357         (TARGET_PREFERRED_RELOAD_CLASS): Define.
6358
6359 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
6360
6361         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6362         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
6363         (TARGET_MEMORY_MOVE_COST): Define.
6364         (avr_register_move_cost, avr_memory_move_cost): New Functions.
6365
6366 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
6367
6368         PR debug/47881
6369         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
6370         removed anything.
6371
6372         PR tree-optimization/48022
6373         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
6374         for EQ/NE_EXPR.
6375
6376 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
6377
6378         PR debug/47991
6379         * var-tracking.c (find_use_val): Return NULL for
6380         cui->sets && cui->store_p BLKmode MEMs.
6381
6382 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
6383
6384         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6385         Remove.
6386         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
6387         xstormy16_print_operand_address): Remove.
6388         * config/stormy16/stormy16.c (xstormy16_print_operand,
6389         xstormy16_print_operand_address): Make static.
6390         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6391
6392 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
6393
6394         PR target/47862
6395         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6396         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
6397         before definition.
6398
6399 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
6400
6401         PR bootstrap/48000
6402         * cfgloopmanip.c (fix_bb_placements): Return immediately
6403         if FROM is BASE_LOOP's header.
6404
6405 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
6406
6407         * gimplify.c (gimplify_function_tree): Fix building calls
6408         to __builtin_return_address.
6409
6410 2011-03-07  Alan Modra  <amodra@gmail.com>
6411
6412         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
6413         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
6414         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
6415         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
6416         return_mode args.
6417         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
6418         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
6419         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
6420         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
6421         * config/rs6000/rs6000.c
6422         (rs6000_elf_end_indicate_exec_stack): Rename to..
6423         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
6424         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
6425         (rs6000_file_start): ..here.
6426         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
6427         file scope variables.
6428         (call_ABI_of_interest): New function.
6429         (init_cumulative_args): Set above vars when function return value
6430         is a float, vector, or small struct.
6431         (rs6000_function_arg_advance_1): Likewise for function args.
6432         (rs6000_va_start): Set rs6000_passes_float if variable arg function
6433         references float args.
6434
6435 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
6436
6437         * doc/cfg.texi: Remove "See" before @ref.
6438         * doc/invoke.texi: Likewise.
6439
6440 2011-03-05  Jason Merrill  <jason@redhat.com>
6441
6442         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
6443
6444 2011-03-05  Anthony Green  <green@moxielogic.com>
6445
6446         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
6447
6448 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
6449
6450         PR rtl-optimization/47899
6451         * cfgloopmanip.c (fix_bb_placements): Fix first argument
6452         to flow_loop_nested_p when moving the loop upward.
6453
6454 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
6455
6456         PR target/47719
6457         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
6458
6459 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
6460
6461         PR tree-optimization/47967
6462         * ipa-cp.c (build_const_val): Return NULL instead of creating
6463         VIEW_CONVERT_EXPR for mismatching sizes.
6464         (ipcp_create_replace_map): Return NULL if build_const_val failed.
6465         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
6466         give up on versioning.
6467
6468 2011-03-05  Alan Modra  <amodra@gmail.com>
6469
6470         PR target/47986
6471         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6472         full cmodel medium/large lo_sum + high addresses.
6473
6474 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6475
6476         * config/s390/s390.c (s390_decompose_address): Reject non-literal
6477         pool references in UNSPEC_LTREL_OFFSET.
6478
6479 2011-03-04  Jan Hubicka  <jh@suse.cz>
6480
6481         PR lto/47497
6482         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
6483         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
6484         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
6485         Add node pointers.
6486         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
6487         cgraph_add_thunk): Add node pointers.
6488         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
6489         associated to right node.
6490         (input_node): Update use of cgraph_same_body_alias
6491         and cgraph_add_thunk.
6492
6493 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
6494
6495         * config/i386/i386.opt (mprefer-avx128): New flag.
6496         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
6497         modes when the flag -mprefer-avx128 is on.
6498
6499 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
6500
6501         * dwarf2out.c (compare_loc_operands): Fix address handling.
6502
6503 2011-03-04  Alan Modra  <amodra@gmail.com>
6504
6505         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
6506
6507 2011-03-04  Richard Guenther  <rguenther@suse.de>
6508
6509         PR middle-end/47968
6510         * expmed.c (extract_bit_field_1): Prefer vector modes that
6511         vec_extract patterns can handle.
6512
6513 2011-03-04  Richard Guenther  <rguenther@suse.de>
6514
6515         PR middle-end/47975
6516         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
6517
6518 2011-03-04  Richard Henderson  <rth@redhat.com>
6519
6520         * explow.c (emit_stack_save): Remove 'after' parameter.
6521         (emit_stack_restore): Likewise.
6522         * expr.h: Update to match.
6523         * builtins.c, calls.c, stmt.c: Likewise.
6524         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
6525         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
6526         * function.c (expand_function_end): Insert the emit_stack_save
6527         sequence before parm_birth_insn instead of after.
6528
6529 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
6530
6531         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
6532         (ssse3_pmaddubsw128): Ditto.
6533         (ssse3_pmaddubsw): Ditto.
6534
6535 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
6536
6537         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
6538
6539 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
6540
6541         PR c/47963
6542         * gimplify.c (omp_add_variable): Only call omp_notice_variable
6543         on TYPE_SIZE_UNIT if it is a DECL.
6544
6545         PR debug/47283
6546         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
6547         first operand is not is_gimple_mem_ref_addr, try to fold it.
6548         If the operand still isn't is_gimple_mem_ref_addr, clear
6549         MEM_EXPR on op0.
6550
6551 2011-03-03  Richard Guenther  <rguenther@suse.de>
6552
6553         PR middle-end/47283
6554         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
6555         match comment.
6556         (refs_may_alias_p_1): For release branches return true if
6557         we are confused by our input.
6558
6559 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6560
6561         * config/s390/s390.c (s390_function_value): Rename to ...
6562         (s390_function_and_libcall_value): ... this.
6563         (s390_function_value): New function.
6564         (s390_libcall_value): New function.
6565         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
6566         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
6567         target macro definitions.
6568         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
6569
6570 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
6571
6572         * config/i386/freebsd64.h (CC1_SPEC): Define.
6573         * config/i386/linux64.h (CC1_SPEC): Define.
6574         * config/i386/x86-64.h (CC1_SPEC): Don't define.
6575
6576 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
6577
6578         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6579         Remove.
6580         * config/stormy16/stormy16.c: Include reload.h.
6581         (xstormy16_memory_move_cost): New function.
6582         (TARGET_MEMORY_MOVE_COST): Define.
6583
6584 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
6585
6586         PR rtl-optimization/47925
6587         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
6588         with side effects.  Remove the more-specific check for volatile asms.
6589
6590 2011-03-02  Alan Modra  <amodra@gmail.com>
6591
6592         PR target/47935
6593         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
6594         toc relative addresses for valid offsets.
6595
6596 2011-03-01  Richard Guenther  <rguenther@suse.de>
6597
6598         PR tree-optimization/47890
6599         * tree-vect-loop.c (get_initial_def_for_induction): Set
6600         related stmt properly.
6601
6602 2011-03-01  Richard Guenther  <rguenther@suse.de>
6603
6604         PR lto/47924
6605         * lto-streamer.c (lto_record_common_node): Also register
6606         the canonical type.
6607
6608 2011-03-01  Richard Guenther  <rguenther@suse.de>
6609
6610         PR lto/46911
6611         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6612         Do not stream DECL_ABSTRACT_ORIGIN.
6613         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6614         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6615         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6616         Do not stream DECL_ABSTRACT_ORIGIN.
6617         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
6618         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
6619
6620 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
6621
6622         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
6623         FUNCTION_VALUE_REGNO_P): Remove.
6624         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
6625         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
6626         Add 'outgoing' argument.
6627         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
6628         function.
6629         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6630         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6631
6632 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
6633
6634         PR debug/28047
6635         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
6636         (lookup_filename): Likewise.
6637         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
6638
6639 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
6640             Jakub Jelinek  <jakub@redhat.com>
6641
6642         PR middle-end/47893
6643         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
6644         (assign_stack_local_1): Change last argument type to int.
6645         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
6646         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
6647         don't record padding space into frame_space_list nor use those areas.
6648         (assign_stack_local): Adjust caller.
6649         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
6650         of assign_stack_local, pass 0 as last argument.
6651         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
6652         callers.
6653
6654 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
6655
6656         PR debug/47283
6657         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
6658         Use target address_mode and pointer_mode hooks instead of hardcoded
6659         Pmode and ptr_mode.  Handle some simple cases of extending if
6660         POINTERS_EXTEND_UNSIGNED < 0.
6661         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
6662         Call convert_debug_memory_address.
6663         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
6664         convert_debug_memory_address.
6665
6666         PR middle-end/46790
6667         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
6668         * configure: Regenerated.
6669         * config.in: Regenerated.
6670         * varasm.c (default_function_section): Return NULL
6671         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
6672
6673 2011-02-28  Martin Jambor  <mjambor@suse.cz>
6674
6675         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
6676         the description to match the printed values.
6677
6678 2011-02-28  Richard Guenther  <rguenther@suse.de>
6679
6680         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
6681         of the copied scope tree.
6682
6683 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6684
6685         * doc/extend.texi (Function Attributes): Avoid deeply (and
6686         wrongly) nested tables.
6687
6688 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
6689
6690         PR middle-end/47903
6691         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
6692         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
6693         r isn't op0 nor op1.
6694
6695 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
6696
6697         * config/avr/avr.md: Remove magic comment for emacs.
6698
6699 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
6700
6701         PR target/45261
6702         * config/avr/avr.c (avr_option_override): Use error on bad options.
6703         (avr_help): New function.
6704         (TARGET_HELP): Define.
6705
6706 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
6707
6708         PR target/42240
6709         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
6710         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
6711
6712 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
6713
6714         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
6715         (ARM Options): Ditto.
6716         (i386 and x86-64 Options): Ditto.
6717         (RX Options): Ditto.
6718         (SPARC Options): Ditto.
6719
6720 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
6721
6722         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
6723         FreeBSD 6 and later.  Generally use cpu generic.
6724
6725 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
6726
6727         * doc/cpp.texi: Update copyright years.
6728
6729 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
6730
6731         PR target/46898
6732         * config/lm32/lm32.md (ashrsi3): Added needed variable.
6733
6734 2011-02-25  Jon Beniston  <jon@beniston.com>
6735
6736         PR target/46898
6737         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
6738         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
6739         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
6740         (lm32_block_move_inline): Add type cast to remove warning.
6741         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
6742         (gen_int_relational): Move declarations to start of function.
6743
6744 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
6745
6746         PR tree-optimization/45470
6747         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6748         can throw internally only.
6749         * tree-vect-stmts.c (vectorizable_call): Likewise.
6750
6751 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
6752
6753         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
6754         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6755         * config/stormy16/stormy16-protos.h
6756         (xstormy16_preferred_reload_class): Remove.
6757         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
6758         static. Change 'rclass' argument and return type to reg_class_t.
6759         (TARGET_PREFERRED_RELOAD_CLASS,
6760         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6761
6762 2011-02-24  Richard Guenther  <rguenther@suse.de>
6763
6764         * lto-streamer-in.c (input_bb): Do not find referenced vars
6765         in debug statements.
6766
6767 2011-02-23  Jason Merrill  <jason@redhat.com>
6768
6769         * common.opt (fabi-version): Document v5 and v6.
6770
6771 2011-02-23  Richard Guenther  <rguenther@suse.de>
6772
6773         PR tree-optimization/47849
6774         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
6775
6776 2011-02-23  Jie Zhang  <jie@codesourcery.com>
6777
6778         * opts-common.c (decode_cmdline_option): Print empty string
6779         argument as "" in decoded->orig_option_with_args_text.
6780         * gcc.c (execute): Print empty string argument as ""
6781         in the verbose output.
6782         (do_spec_1): Keep empty string argument.
6783
6784 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
6785
6786         * config.gcc: Declare score-* and crx-* obsolete.
6787
6788 2011-02-23  Jie Zhang  <jie@codesourcery.com>
6789
6790         PR rtl-optimization/47763
6791         * web.c (web_main): Ignore naked clobber when replacing register.
6792
6793 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
6794
6795         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6796         Remove.
6797
6798 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
6799
6800         PR doc/47848
6801         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
6802
6803 2011-02-22  Mike Stump  <mikestump@comcast.net>
6804
6805         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
6806         assembler.
6807         * configure: Regenerate.
6808
6809 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
6810
6811         PR rtl-optimization/46002
6812         * ira-color.c (update_copy_costs): Change class intersection
6813         test to reg_class_contents[] test of 'hard_regno'.
6814
6815 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
6816
6817         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
6818         than Driver option.
6819         * config/hpux11.opt (mt): Likewise.
6820         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
6821         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
6822         * config/vax/elf.opt (mno-asm-pic): Likewise.
6823         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
6824
6825 2011-02-21  Mike Stump  <mikestump@comcast.net>
6826
6827         PR target/47822
6828         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
6829         tree so we can get save the type.
6830         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
6831         for CFString instead of trying to use past the end of the builtins.
6832         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
6833         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
6834         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
6835         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
6836         Rename to darwin_builtin_cfstring.
6837         (darwin_init_cfstring_builtins): Return the built type.
6838
6839 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
6840
6841         PR target/47840
6842         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
6843         (_mm256_insert_epi64): Use _mm_insert_epi64.
6844
6845 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
6846
6847         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6848         * config/stormy16/stormy16-protos.h
6849         (xstormy16_mode_dependent_address_p): Remove.
6850         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
6851         Make static. Change return type to bool. Change argument type to
6852         const_rtx. Remove dead code.
6853         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6854
6855 2011-02-21  Richard Guenther  <rguenther@suse.de>
6856
6857         PR lto/47820
6858         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6859         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6860         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
6861         TUs context.
6862         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6863         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6864
6865 2011-02-20  Richard Guenther  <rguenther@suse.de>
6866
6867         PR lto/47822
6868         * tree.c (free_lang_data_in_decl): Clean builtins from
6869         the TU decl BLOCK_VARS.
6870
6871 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
6872
6873         PR debug/47620
6874         PR debug/47630
6875         * haifa-sched.c (fix_tick_ready): Skip tick computation
6876         for debug insns.
6877
6878 2011-02-19  Richard Guenther  <rguenther@suse.de>
6879
6880         PR lto/47647
6881         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
6882         Remove lazy BLOCK_VARS streaming.
6883         (lto_input_ts_block_tree_pointers): Likewise.
6884         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
6885
6886 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
6887
6888         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
6889
6890 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
6891
6892         * config/i386/biarch32.h, config/i386/mach.h,
6893         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
6894
6895 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
6896
6897         PR target/47800
6898         * config/i386/i386.md (peephole2 for shift and plus): Use
6899         operands[1] original mode in the first insn.
6900
6901 2011-02-18  Mike Stump  <mikestump@comcast.net>
6902
6903         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
6904
6905 2011-02-18  Jan Hubicka  <jh@suse.cz>
6906
6907         PR middle-end/47788
6908         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
6909         to zero when the function is not inlinable at all.
6910
6911 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6912
6913         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
6914         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6915         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
6916         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
6917         * config/pa/t-pa64: Likewise.
6918         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6919
6920 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
6921
6922         PR driver/47787
6923         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
6924
6925 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6926
6927         PR target/47792
6928         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
6929
6930 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
6931
6932         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6933         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
6934         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
6935         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6936         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
6937         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
6938         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
6939         m32r_load_postinc_p, m32r_store_preinc_predec_p,
6940         m32r_legitimate_address_p): New functions.
6941         * config/m32r/constraints.md (constraint "S"): Don't use
6942         STORE_PREINC_PREDEC_P.
6943         (constraint "U"): Don't use LOAD_POSTINC_P.
6944
6945 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
6946
6947         PR rtl-optimization/46178
6948         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
6949         compute ira_hard_regno_cover_class[].
6950
6951 2011-02-18  Richard Guenther  <rguenther@suse.de>
6952
6953         PR lto/47798
6954         * lto-streamer.h (lto_global_var_decls): Declare.
6955         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
6956         statics for global var processing.
6957
6958 2011-02-18  Richard Guenther  <rguenther@suse.de>
6959
6960         PR tree-optimization/47737
6961         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
6962         edge dominance check.
6963
6964 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
6965
6966         PR debug/47780
6967         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
6968         avoid invalid rtx sharing.
6969
6970 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
6971
6972         * doc/cpp.texi (Obsolete Features): Add background on the
6973         origin of assertions.
6974
6975 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
6976
6977         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
6978         objc_abi == 2.
6979         * config/darwin.c (output_objc_section_asm_op): Added support for
6980         ABI v1 and v2.
6981         (is_objc_metadata): New.
6982         (darwin_objc2_section): New.
6983         (darwin_objc1_section): New.
6984         (machopic_select_section): Added support for ABI v1 and v2.
6985         (darwin_emit_objc_zeroed): New.
6986         (darwin_output_aligned_bss): Detect objc metadata and treat it
6987         appropriately.
6988         (darwin_asm_output_aligned_decl_common): Same.
6989         (darwin_asm_output_aligned_decl_local): Same.
6990         * config/darwin-sections.def: Updated for ABI v1 and v2.
6991         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
6992         compiling Objective-C code for the NeXT runtime, default to using
6993         ABI version 0 for 32-bit, and version 2 for 64-bit.
6994
6995 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6996
6997         * common.opt (optimize_fast): New Variable.
6998         * opts.c (default_options_optimization): Use opts->x_optimize_fast
6999         instead of local variable ofast.
7000
7001 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7002
7003         * doc/invoke.texi (fobjc-abi-version): Documented.
7004         (fobjc-nilcheck): Documented.
7005         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7006         version.
7007
7008 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7009
7010         PR driver/47390
7011         * common.opt (export-dynamic): New Driver option.
7012         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7013
7014 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7015
7016         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7017
7018 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
7019             Jan Hubicka  <jh@suse.cz>
7020
7021         PR debug/47106
7022         PR debug/47402
7023         * cfgexpand.c (account_used_vars_for_block): Remove.
7024         (estimated_stack_frame_size): Use referenced vars.
7025         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7026         that were referenced in the original function.  Test src_fn
7027         rather than cfun.  Drop redundant get_var_ann.
7028         (setup_one_parameter): Drop redundant get_var_ann.
7029         (declare_return_variable): Likewise.
7030         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7031         (copy_arguments_for_versioning): Drop redundant get_var_ann.
7032         * ipa-inline.c (compute_inline_parameters): Do not compute
7033         disregard_inline_limits here.
7034         (compute_inlinable_for_current, pass_inlinable): New.
7035         (pass_inline_parameters): Require PROP_referenced_vars.
7036         * cgraphunit.c (cgraph_process_new_functions): Don't run
7037         compute_inline_parameters explicitly unless function is in SSA form.
7038         (cgraph_analyze_function): Set .disregard_inline_limits.
7039         * tree-sra.c (convert_callers): Compute inliner parameters
7040         only for functions already in SSA form.
7041
7042 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7043
7044         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7045         -mlittle-endian-data.
7046
7047 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7048
7049         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7050         -mno-fpu, not -fpu and -no-fpu.
7051         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7052         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7053
7054 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
7055
7056         PR target/43653
7057         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7058         input reload with PLUS RTX.
7059
7060 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7061
7062         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7063         of InverseVar(MDMX).
7064
7065 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7066
7067         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7068         --m4-340.
7069
7070 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7071
7072         * config/mn10300/mn10300.opt (mno-crt0): New.
7073
7074 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7075
7076         * config/m68k/uclinux.opt (static-libc): New Driver option.
7077
7078 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7079
7080         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7081
7082 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7083
7084         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7085         %{muser-extend-enabled}.
7086
7087 2011-02-16  Richard Guenther  <rguenther@suse.de>
7088
7089         PR tree-optimization/47738
7090         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7091         the TODO from tree_predictive_commoning.
7092
7093 2011-02-15  Jeff Law  <law@redhat.com>
7094
7095         Revert
7096         2011-01-25  Jeff Law  <law@redhat.com>
7097
7098         PR rtl-optimization/37273
7099         * ira-costs.c (scan_one_insn): Detect constants living in memory and
7100         handle them like argument loads from stack slots.  Do not double
7101         count memory for memory constants and argument loads from stack slots.
7102
7103 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7104
7105         PR middle-end/47725
7106         * combine.c (cant_combine_insn_p): Revert the last change.
7107
7108 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
7109
7110         PR target/47755
7111         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7112         mode for vector constants.  Remove code that checks for TImode.
7113
7114 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7115
7116         PR debug/47106
7117         PR debug/47402
7118         * cgraph.h (compute_inline_parameters): Return void.
7119         * ipa-inline.c (compute_inline_parameters): Adjust.
7120
7121 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7122
7123         PR debug/47106
7124         PR debug/47402
7125         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7126         rather than decl.
7127         * cfgexpand.c (estimated_stack_frame_size): Likewise.
7128         * ipa-inline.c (compute_inline_parameters): Adjust.
7129
7130 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7131
7132         PR debug/47106
7133         PR debug/47402
7134         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7135         Adjust all users.  Pass FN to...
7136         * tree-flow-inline.h (first_referenced_var): ... this.  Add
7137         fn argument.
7138         * ipa-struct-reorg.c: Adjust.
7139         * tree-dfa.c: Adjust.
7140         * tree-into-ssa.c: Adjust.
7141         * tree-sra.c: Adjust.
7142         * tree-ssa-alias.c: Adjust.
7143         * tree-ssa-live.c: Adjust.
7144         * tree-ssa.c: Adjust.
7145         * tree-ssanames.c: Adjust.
7146         * tree-tailcall.c: Adjust.
7147
7148 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7149
7150         PR debug/47106
7151         PR debug/47402
7152         * tree-flow.h (referenced_var_lookup): Add fn parameter.
7153         Adjust all callers.
7154         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7155         * tree-flow-inline.h: Adjust.
7156         * gimple-pretty-print.c: Adjust.
7157         * tree-into-ssa.c: Adjust.
7158         * tree-ssa.c: Adjust.
7159         * cfgexpand.c: Adjust.
7160
7161 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7162
7163         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7164         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7165         (EXTRA_CONSTRAINT): Delete.
7166         * config/iq2000/constraints.md: New file.
7167         * config/iq2000/iq2000.md: Include it.
7168         (define_insn ""): Delete.
7169         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7170         unsupported constraint letters from patterns.
7171         (call_value, call_value_internal1): Likewise.
7172         (call_value_multiple_internal1): Likewise.
7173
7174 2011-02-15  Nick Clifton  <nickc@redhat.com>
7175
7176         * config/mn10300/mn10300.c: Include tm-constrs.h.
7177         (struct liw_data): New data structure describing an LIW candidate
7178         instruction.
7179         (extract_bundle): Use struct liw_data.  Allow small integer
7180         operands for some instructions.
7181         (check_liw_constraints): Use struct liw_data.  Remove swapped
7182         parameter.  Add comments describing the checks.  Fix bug when
7183         assigning the source of liw1 to the source of liw2.
7184         (liw_candidate): Delete.  Code moved into extract_bundle.
7185         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
7186         before swapping.
7187         * config/mn10300/predicates.md (liw_operand): New predicate.
7188         Allows registers and small integer constants.
7189         * config/mn10300/constraints.md (O): New constraint.  Accetps
7190         integers in the range -8 to +7 inclusive.
7191         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7192         for moving a small integer into a register.  Give this alternative
7193         LIW attributes.
7194         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7195         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7196         using the J,K,L and M constraints,
7197         (liw): Remove SI mode on second operands to allow for HI and QI
7198         mode values.
7199         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
7200         instruction.
7201
7202 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7203
7204         PR middle-end/47725
7205         * combine.c (cant_combine_insn_p): Check zero/sign extended
7206         hard registers.
7207
7208 2011-02-15  Richard Guenther  <rguenther@suse.de>
7209
7210         PR tree-optimization/47743
7211         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7212         for a non-type-compatible VN lookup bail out.
7213
7214 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7215
7216         * config/fr30/constraints.md: New file.
7217         * config/fr30/fr30.md: Include it.
7218         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
7219         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7220         (EXTRA_CONSTRAINT): Delete.
7221
7222 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7223
7224         * config/frv/constraints.md: New file.
7225         * config/frv/predicates.md: Include it.
7226         * config/frv/frv.c (reg_class_from_letter): Delete.
7227         (frv_option_override): Don't initialize it.
7228         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
7229         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
7230         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
7231         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7232         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
7233         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7234         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
7235         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
7236         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
7237         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
7238         (REG_CLASS_FROM_CONSTRAINT): Delete.
7239
7240 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
7241
7242         PR middle-end/47581
7243         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
7244         if frame size is 0 in a leaf function.
7245
7246 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7247
7248         PR pch/14940
7249         * config/alpha/host-osf.c: New file.
7250         * config/alpha/x-osf: New file.
7251         * config.host (alpha*-dec-osf*): Use it.
7252
7253 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
7254
7255         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7256         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
7257         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
7258         (rx_mode_dependent_address_p): ...this. Make static. Change argument
7259         type to const_rtx.
7260         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7261
7262 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7263
7264         * config/stormy16/constraints.md: New file.
7265         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
7266         Use satisfies_constraint_Q and satisfies_constraint_R.
7267         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
7268         Delete.
7269         (xstormy16_legitiamte_address_p): Declare.
7270         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
7271         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7272         (EXTRA_CONSTRAINT): Delete.
7273         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
7274         Un-staticize.
7275         (xstormy16_extra_constraint_p): Delete.
7276
7277 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
7278
7279         PR tree-optimization/46494
7280         * loop-unroll.c (split_edge_and_insert): Adjust comment.
7281         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
7282         (pass_rtl_loop_done): Add TODO_verify_flow.
7283         * fwprop.c (pass_rtl_fwprop): Likewise.
7284         * modulo-sched.c (pass_sms): Likewise.
7285         * tree-ssa-dom.c (pass_dominator): Likewise.
7286         * tree-ssa-loop-ch.c (pass_ch): Likewise.
7287         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
7288         (pass_tree_loop_done): Likewise.
7289         * tree-ssa-pre.c (execute_pre): Likewise.
7290         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
7291         * tree-ssa-sink.c (pass_sink_code): Likewise.
7292         * tree-vrp.c (pass_vrp): Likewise.
7293
7294 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7295
7296         * config/v850/constraints.md: New file.
7297         * config/v850/v850.md: Include it.
7298         * config/v850/predicates.md (reg_or_0_operand): Use
7299         satisfies_constraint_G.
7300         (special_symbolref_operand): Use satisfies_constraint_K.
7301         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
7302         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
7303         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
7304         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
7305         (EXTRA_CONSTRAINT): Delete.
7306         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
7307         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
7308         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
7309
7310 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
7311
7312         PR target/47696
7313         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
7314         description.
7315
7316 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
7317
7318         * config/mcore/constraints.md: New file.
7319         * config/mcore/mcore.md: Include it.
7320         * config/mcore/mcore.c (reg_class_from_letter): Delete.
7321         * config/mcore/mcore.h (reg_class_from_letter): Delete.
7322         (REG_CLASS_FROM_LETTER): Delete.
7323         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
7324         insn_const_int_ok_for_constraint.
7325         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
7326         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
7327         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7328         (EXTRA_CONSTRAINT): Delete.
7329
7330 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7331
7332         PR ada/41929
7333         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
7334         (IS_SIGHANDLER): Define.
7335         (sparc64_is_sighandler): New function, split off from
7336         sparc64_fallback_frame_state.
7337         (sparc_is_sighandler): New function, split off from
7338         sparc_fallback_frame_state.
7339         (sparc64_fallback_frame_state): Merge with ...
7340         (sparc_fallback_frame_state): ... this into ...
7341         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
7342         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
7343         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
7344         stack instead of hardcoded offsets.
7345
7346 2011-02-14  Andriy Gapon  <avg@freebsd.org>
7347
7348         PR target/45808
7349         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
7350
7351 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7352
7353         * configure: Regenerate.
7354
7355 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
7356
7357         PR driver/45731
7358         * gcc.c (asm_options): Correct spec matching --target-help.
7359
7360 2011-02-12  Martin Jambor  <mjambor@suse.cz>
7361
7362         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
7363         to gimple call error.
7364
7365 2011-02-12  Mike Stump  <mikestump@comcast.net>
7366
7367         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
7368         comments in backslash regions.
7369
7370 2011-02-12  Mike Stump  <mikestump@comcast.net>
7371             Jakub Jelinek  <jakub@redhat.com>
7372             Iain Sandoe  <iains@gcc.gnu.org>
7373
7374         PR target/47324
7375         * dwarf2out.c (output_cfa_loc): When required, apply the
7376         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
7377         (output_loc_sequence): Likewise.
7378         (output_loc_operands_raw): Likewise.
7379         (output_loc_sequence_raw): Likewise.
7380         (output_cfa_loc): Likewise.
7381         (output_loc_list): Suppress register number adjustment when
7382         calling output_loc_sequence()
7383         (output_die): Likewise.
7384
7385 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
7386
7387         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7388         Remove macros.
7389         * config/xtensa/xtensa.c (xtensa_register_move_cost,
7390         xtensa_memory_move_cost): New functions.
7391         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
7392
7393 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
7394
7395         PR lto/47225
7396         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
7397         in the current directory.
7398         * configure: Rebuilt.
7399
7400 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
7401
7402         * config/darwin.c (darwin_override_options): Add a hunk missed
7403         from the commit of r168571.  Trim comment line lengths and
7404         correct indents of the preceding block.
7405
7406 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
7407
7408         * gcc.c (driver_handle_option): Concatenate the argument to -F with
7409         the switch.
7410
7411 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
7412
7413         * common.opt (nostartfiles): New Driver option.
7414
7415 2011-02-11  Xinliang David Li  <davidxl@google.com>
7416
7417         PR tree-optimization/47707
7418         * tree-chrec.c (convert_affine_scev): Keep type precision.
7419
7420 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
7421
7422         PR tree-optimization/47420
7423         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
7424
7425 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
7426
7427         PR rtl-optimization/47614
7428         * rtl.h (check_for_inc_dec): Declare.
7429         * dse.c (check_for_inc_dec): Externalize...
7430         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
7431         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
7432
7433 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
7434
7435         PR driver/47678
7436         * gcc.c (main): Do not compile inputs if there were errors in
7437         option handling.
7438         * opts-common.c (read_cmdline_option): Check for wrong language
7439         after other error checks.
7440
7441 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
7442
7443         * cgraph.c: Fix comment typos.
7444         * cgraph.h: Likewise.
7445         * cgraphunit.c: Likewise.
7446         * ipa-cp.c: Likewise.
7447         * ipa-inline.c: Likewise.
7448         * ipa-prop.c: Likewise.
7449         * ipa-pure-const.c: Likewise.
7450         * ipa-ref.c: Likewise.
7451         * ipa-reference.c: Likewise.
7452
7453 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
7454
7455         PR debug/47684
7456         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
7457
7458 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7459
7460         PR testsuite/47400
7461         * doc/sourcebuild.texi (Require Support): Document
7462         dg-require-ascii-locale.
7463
7464 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
7465
7466         * doc/lto.texi (Write summary): Fix missing parentheses.
7467
7468 2011-02-10  DJ Delorie  <dj@redhat.com>
7469
7470         * config/m32c/m32c.c (m32c_option_override): Disable
7471         -fcombine-stack-adjustments until flag value tracking and compare
7472         optimization can be rewritten.
7473
7474 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
7475
7476         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
7477         PROCESSOR_POWER7.
7478         (PROCESSOR_DEFAULT64): Likewise.
7479
7480 2011-02-10  Richard Henderson  <rth@redhat.com>
7481
7482         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
7483         change from 2011-02-03.
7484         * config/rx/rx.c (flags_from_code): Likewise.
7485         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
7486         is valid, n/pz otherwise.
7487         (rx_select_cc_mode): Return CCmode if Y is not zero.
7488
7489 2011-02-10  Richard Guenther  <rguenther@suse.de>
7490
7491         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
7492
7493 2011-02-10  Richard Guenther  <rguenther@suse.de>
7494
7495         PR tree-optimization/47677
7496         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
7497
7498 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
7499
7500         PR target/47665
7501         * combine.c (make_compound_operation): Only change shifts into
7502         multiplication for SCALAR_INT_MODE_P.
7503
7504 2011-02-10  Jie Zhang  <jie@codesourcery.com>
7505
7506         PR testsuite/47622
7507         Revert
7508         2011-02-05  Jie Zhang  <jie@codesourcery.com>
7509         PR debug/42631
7510         * web.c (entry_register): Don't clobber the number of the
7511         first uninitialized reference in used[].
7512
7513 2011-02-09  Richard Guenther  <rguenther@suse.de>
7514
7515         PR tree-optimization/47664
7516         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
7517         all edges again.
7518
7519 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
7520
7521         PR target/46481
7522         PR target/47032
7523         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
7524         PROCESSOR_POWER7.
7525         (PROCESSOR_DEFAULT64): Same.
7526         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
7527
7528 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7529
7530         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
7531
7532 2011-02-09  Martin Jambor  <mjambor@suse.cz>
7533
7534         PR middle-end/45505
7535         * tree-sra.c (struct access): New flags grp_scalar_read and
7536         grp_scalar_write.  Changed description of assignment read and write
7537         flags.
7538         (dump_access): Dump new flags, reorder all of them.
7539         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
7540         to detect multiple scalar reads.
7541         (analyze_access_subtree): Use the new scalar read write flags instead
7542         of the old flags.  Adjusted comments.
7543
7544 2011-02-08  DJ Delorie  <dj@redhat.com>
7545
7546         PR target/47548
7547         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
7548         patterns.
7549
7550 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7551
7552         * config/m68k/uclinux.opt: New.
7553         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
7554
7555 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7556
7557         * config/cris/elf.opt (sim): New Driver option.
7558
7559 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7560
7561         * config/xtensa/elf.opt: New.
7562         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
7563
7564 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7565
7566         * config/vax/elf.opt: New.
7567         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
7568
7569 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7570
7571         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
7572
7573 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7574
7575         * config/gnu-user.opt: New.
7576         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
7577         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
7578         *-*-uclinux*): Use gnu-user.opt.
7579
7580 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
7581
7582         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
7583         * config/i386/gnu.h (CPP_SPEC): Likewise.
7584
7585 2011-02-08  Ian Lance Taylor  <iant@google.com>
7586
7587         * common.opt (fcx-limited-range): Add SetByCombined flag.
7588         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
7589         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
7590         (fassociative-math, freciprocal-math): Likewise.
7591         (funsafe-math-optimizations): Likewise.
7592         * opth-gen.awk: Handle SetByCombined.
7593         * optc-gen.awk: Likewise.
7594         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
7595         (set_unsafe_math_optimizations_flags): Likewise.
7596         * doc/options.texi (Option properties): Document SetByCombined.
7597
7598 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
7599
7600         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
7601         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
7602         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
7603         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
7604         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
7605
7606 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
7607
7608         PR tree-optimization/46834
7609         PR tree-optimization/46994
7610         PR tree-optimization/46995
7611         * graphite-sese-to-poly.c (used_outside_reduction): New.
7612         (detect_commutative_reduction): Call used_outside_reduction.
7613         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
7614         translate_scalar_reduction_to_array only when at least one
7615         loop-phi/close-phi tuple has been detected.
7616
7617 2011-02-08  Richard Guenther  <rguenther@suse.de>
7618
7619         PR middle-end/47639
7620         * tree-vect-generic.c (expand_vector_operations_1): Update
7621         stmts here ...
7622         (expand_vector_operations): ... not here.  Cleanup EH info
7623         and the CFG if required.
7624
7625 2011-02-08  Richard Guenther  <rguenther@suse.de>
7626
7627         PR tree-optimization/47641
7628         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
7629         require type compatibility.
7630
7631 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7632
7633         * gimple-low.c (lower_function_body): Don't remove the location of
7634         the return statement here.
7635         (lower_gimple_return): Do it here instead but only if the return
7636         statement is actually used twice.
7637
7638 2011-02-08  Richard Guenther  <rguenther@suse.de>
7639
7640         PR tree-optimization/47632
7641         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
7642         unused up_to_stmt parameter, return whether cfg-cleanup is
7643         necessary, remove EH info properly.
7644         (forward_propagate_into_gimple_cond): Adjust caller.
7645         (forward_propagate_into_cond): Likewise.
7646         (forward_propagate_comparison): Likewise.
7647         (tree_ssa_forward_propagate_single_use_vars): Make
7648         forward_propagate_comparison case similar to the two others.
7649
7650 2011-02-08  Nick Clifton  <nickc@redhat.com>
7651
7652         * config/mn10300/mn10300.opt (mliw): New command line option.
7653         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
7654         (liw_bundling): New automaton.
7655         (liw): New attribute.
7656         (liw_op): New attribute.
7657         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
7658         (movsi_internal): Add LIW attributes.
7659         (andsi3): Likewise.
7660         (iorsi3): Likewise.
7661         (xorsi3): Likewise.
7662         (addsi3): Separate register and immediate alternatives.
7663         Add LIW attributes.
7664         (subsi3): Likewise.
7665         (cmpsi): Likewise.
7666         (aslsi3): Likewise.
7667         (lshrsi3): Likewise.
7668         (ashrsi3): Likewise.
7669         (liw): New pattern.
7670         * config/mn10300/mn10300.c (liw_op_names): New
7671         (mn10300_print_operand): Handle 'W' operand descriptor.
7672         (extract_bundle): New function.
7673         (check_liw_constraints): New function.
7674         (liw_candidate): New function.
7675         (mn10300_bundle_liw): New function.
7676         (mn10300_reorg): New function.
7677         (TARGET_MACHINE_DEPENDENT_REORG): Define.
7678         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
7679         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
7680         __LIW__ or __NO_LIW__.
7681         * doc/invoke.texi: Describe the -mliw command line option.
7682
7683 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7684
7685         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
7686         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7687         pthread_mutex_unlock): Remove.
7688         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
7689         * config/pa/t-pa64: Likewise.
7690         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
7691         shared libc if not linking against libpthread.
7692         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7693
7694 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
7695
7696         PR target/47558
7697         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
7698         on 10.6 and later to ensure that we always use the unwinder from
7699         the system.  Only add -no_compact_unwind when tarteting darwin
7700         10.6 or later.
7701
7702 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
7703
7704         PR target/46997
7705         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
7706         (vec_interleave_lowv2sf): Ditto.
7707         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
7708         (vec_extract_oddv2sf): Ditto.
7709
7710 2011-02-07  Mike Stump  <mikestump@comcast.net>
7711
7712         PR target/42333
7713         Add __ieee_divdc3 entry point.
7714         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
7715         entry point.
7716         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
7717         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
7718         * config/darwin.c (darwin_rename_builtins): Add.
7719         * config/darwin-protos.h (darwin_rename_builtins): Add.
7720
7721 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
7722
7723         PR target/47636
7724         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
7725         for the condition.
7726
7727 2011-02-07  Mike Stump  <mikestump@comcast.net>
7728
7729         * config/darwin.opt (mmacosx-version-min): Update default OS version.
7730
7731 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
7732
7733         PR target/47534
7734         * config/avr/libgcc.S (exit): Move .endfunc
7735
7736 2011-02-07  Richard Guenther  <rguenther@suse.de>
7737
7738         PR tree-optimization/47615
7739         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
7740         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
7741         (run_scc_vn): Initialize it.
7742         (visit_reference_op_load): Use it.
7743         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
7744
7745 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7746
7747         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
7748         DImode trapping arithmetic libfuncs.
7749
7750 2011-02-07  Richard Guenther  <rguenther@suse.de>
7751
7752         PR tree-optimization/47621
7753         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
7754         two duplicates ...
7755         (execute_update_addresses_taken): ... here.  Make it more
7756         conservative in what we accept.
7757
7758 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
7759
7760         * config/sparc/freebsd.h (ASM_SPEC): Define.
7761         * config/sparc/vxworks.h (ASM_SPEC): Define.
7762
7763 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
7764
7765         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7766
7767 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
7768
7769         * doc/invoke.texi: Remove reference to compiler internals from
7770         user documentation.
7771
7772         * reg-notes.def: Remove REG_VALUE_PROFILE.
7773         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
7774
7775 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
7776
7777         PR middle-end/47610
7778         * varasm.c (default_section_type_flags): If decl is NULL,
7779         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
7780
7781 2011-02-05  Jie Zhang  <jie@codesourcery.com>
7782
7783         PR debug/42631
7784         * web.c (entry_register): Don't clobber the number of the
7785         first uninitialized reference in used[].
7786
7787 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
7788
7789         PR tree-optimization/46194
7790         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
7791         (build_classic_dist_vector_1): Do not represent classic distance
7792         vectors when the access functions are variating in different loops.
7793
7794 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7795
7796         * config/mips/iris6.opt: New.
7797         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
7798
7799 2011-02-04  Richard Henderson  <rth@redhat.com>
7800             Steve Ellcey  <sje@cup.hp.com>
7801
7802         PR target/46997
7803         * config/ia64/predicates.md (mux1_brcst_element): New.
7804         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
7805         * config/ia64/ia64.c (ia64_unpack_assemble): New.
7806         (ia64_unpack_sign): New.
7807         (ia64_expand_unpack): Rewrite using new routines.
7808         (ia64_expand_widen_sum): Ditto.
7809         (ia64_expand_dot_prod_v8qi): Ditto.
7810         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
7811         routines, add endian check.
7812         (pmpy2_even): Rename from pmpy2_r, add endian check.
7813         (pmpy2_odd): Rename from pmpy2_l, add endian check.
7814         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
7815         (vec_widen_smult_hi_v4hi): Ditto.
7816         (vec_widen_umult_lo_v4hi): Ditto.
7817         (vec_widen_umult_hi_v4hi): Ditto.
7818         (mulv2si3): Change endian checks.
7819         (sdot_prodv4hi): Rewrite with new calls.
7820         (udot_prodv4hi): New.
7821         (vec_pack_ssat_v4hi): Add endian check.
7822         (vec_pack_usat_v4hi): Ditto.
7823         (vec_pack_ssat_v2si): Ditto.
7824         (max1_even): Rename from max1_r, add endian check.
7825         (max1_odd): Rename from max1_l, add endian check.
7826         (*mux1_rev): Format change.
7827         (*mux1_mix): Ditto.
7828         (*mux1_shuf): Ditto.
7829         (*mux1_alt): Ditto.
7830         (*mux1_brcst_v8qi): Use new predicate.
7831         (vec_extract_evenv8qi): Remove endian check.
7832         (vec_extract_oddv8qi): Ditto.
7833         (vec_interleave_lowv4hi): Format change.
7834         (vec_interleave_highv4hi): Ditto.
7835         (mix2_even): Rename from mix2_r, add endian check.
7836         (mix2_odd): Rename from mux2_l, add endian check.
7837         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
7838         (vec_extract_evenodd_helper): Format change.
7839         (vec_extract_evenv4hi): Remove endian check.
7840         (vec_extract_oddv4hi): Remove endian check.
7841         (vec_interleave_lowv2si): Format change.
7842         (vec_interleave_highv2si): Format change.
7843         (vec_initv2si): Remove endian check.
7844         (vecinit_v2si): Add endian check.
7845         (reduc_splus_v2sf): Add endian check.
7846         (reduc_smax_v2sf): Ditto.
7847         (reduc_smin_v2sf): Ditto.
7848         (vec_initv2sf): Remove endian check.
7849         (fpack): Add endian check.
7850         (fswap): Add endian check.
7851         (vec_interleave_highv2sf): Add endian check.
7852         (vec_interleave_lowv2sf): Add endian check.
7853         (fmix_lr): Add endian check.
7854         (vec_setv2sf): Format change.
7855         (*vec_extractv2sf_0_be): Use shift to extract operand.
7856         (*vec_extractv2sf_1_be): New.
7857         (vec_pack_trunc_v4hi): Add endian check.
7858         (vec_pack_trunc_v2si): Format change.
7859
7860 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
7861
7862         PR inline-asm/23200
7863         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
7864         do bb, locus and block comparison and disallow loads if it is not set.
7865         (stmt_is_replaceable_p): New function.
7866         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
7867         callers.
7868         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
7869         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
7870         SSA_NAME_DEF_STMT.
7871         * tree-flow.h (stmt_is_replaceable_p): New prototype.
7872
7873 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7874
7875         * config/rs6000/xilinx.opt: New.
7876         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
7877
7878 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7879
7880         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
7881
7882 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
7883
7884         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
7885         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7886         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
7887         secondary_reload_info, xtensa_secondary_reload): Remove.
7888         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
7889         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7890         (xtensa_preferred_reload_class): Make static. Change return and
7891         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
7892         Use CONST_DOUBLE_P predicate.
7893         (xtensa_preferred_output_reload_class): New function.
7894         (xtensa_secondary_reload): Make static.
7895
7896 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
7897
7898         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
7899         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
7900         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
7901
7902 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7903
7904         PR middle-end/31490
7905         * output.h (SECTION_RELRO): Define.
7906         (SECTION_MACH_DEP): Adjust.
7907         (get_variable_section): New prototype.
7908         * varpool.c (varpool_finalize_named_section_flags): New function.
7909         (varpool_assemble_pending_decls): Call it.
7910         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
7911         * cgraphunit.c (cgraph_output_in_order): Call
7912         varpool_finalize_named_section_flags.
7913         * varasm.c (get_section): Allow section flags conflicts between
7914         relro and read-only sections if the section hasn't been declared yet.
7915         Set SECTION_OVERRIDE after diagnosing section type conflict.
7916         (get_variable_section): No longer static.
7917         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
7918         readonly sections that need relocations.
7919         (decl_readonly_section_1): New function.
7920         (decl_readonly_section): Use it.
7921
7922         Revert:
7923         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
7924                     Steve Ellcey  <sje@cup.hp.com>
7925
7926         PR middle-end/31490
7927         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
7928         if section attribute used.
7929
7930 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7931
7932         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
7933         * config/darwin.c (SECTION_NO_ANCHOR): Define.
7934         (darwin_init_sections): Remove assertion.
7935
7936 2011-02-03  Nick Clifton  <nickc@redhat.com>
7937
7938         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
7939         lt and ge.
7940         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
7941         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
7942         instead of "n" and "pz".
7943         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
7944         CC_FLAG_S.
7945
7946 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7947
7948         PR target/47312
7949         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
7950         fma, expand FMA_EXPR as fma{,f,l} call.
7951
7952         PR lto/47274
7953         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
7954         copy them into a unsigned char variable and pass address of it to
7955         lto_output_data_stream.
7956
7957         PR target/47564
7958         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
7959         around backend_init_target and lang_dependent_init_target calls.
7960         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
7961         (verify_cgraph_node): Don't call set_cfun here.  Use
7962         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
7963         Set error_found for incorrectly represented calls to thunks.
7964
7965 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
7966
7967         PR debug/43092
7968         PR rtl-optimization/43494
7969         * rtl.h (for_each_inc_dec_fn): New type.
7970         (for_each_inc_dec): Declare.
7971         * rtlanal.c (struct for_each_inc_dec_ops): New type.
7972         (for_each_inc_dec_find_inc_dec): New fn.
7973         (for_each_inc_dec_find_mem): New fn.
7974         (for_each_inc_dec): New fn.
7975         * dse.c (struct insn_size): Remove.
7976         (replace_inc_dec, replace_inc_dec_mem): Remove.
7977         (emit_inc_dec_insn_before): New fn.
7978         (check_for_inc_dec): Use it, along with for_each_inc_dec.
7979         (canon_address): Pass mem modes to cselib_lookup.
7980         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
7981         (cselib_lookup_from_insn): Likewise.
7982         (cselib_subst_to_values): Likewise.
7983         * cselib.c (find_slot_memmode): New var.
7984         (cselib_find_slot): New fn.  Use it instead of
7985         htab_find_slot_with_hash everywhere.
7986         (entry_and_rtx_equal_p): Use find_slot_memmode.
7987         (autoinc_split): New fn.
7988         (rtx_equal_for_cselib_p): Rename and implement in terms of...
7989         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
7990         Deal with autoinc.  Special-case recursion into MEMs.
7991         (cselib_hash_rtx): Likewise.
7992         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
7993         address and MEM modes.
7994         (cselib_subst_to_values): Add memmode, pass it on.
7995         Deal with autoinc.
7996         (cselib_lookup): Add memmode argument, pass it on.
7997         (cselib_lookup_from_insn): Add memmode.
7998         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
7999         (struct cselib_record_autoinc_data): New.
8000         (cselib_record_autoinc_cb): New fn.
8001         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
8002         mode to cselib_lookup.  Reset autoinced REGs here instead of...
8003         (cselib_process_insn): ... here.
8004         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8005         to cselib_lookup.
8006         (add_uses): Likewise, also to cselib_subst_to_values.
8007         (add_stores): Likewise.
8008         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
8009         cselib_subst_to_values.
8010         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
8011         * gcse.c (do_local_cprop): Adjusted.
8012         * postreload.c (reload_cse_simplify_set): Adjusted.
8013         (reload_cse_simplify_operands): Adjusted.
8014         * sel-sched-dump (debug_mem_addr_value): Pass mode.
8015
8016 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8017
8018         PR tree-optimization/45122
8019         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8020         unsafe assumptions when there's more than one loop exit.
8021
8022 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8023
8024         PR target/47272
8025         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8026         Document using vector double with the load/store builtins, and
8027         that the load/store builtins always use Altivec instructions.
8028
8029         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8030         to use altivec memory instructions, even on VSX.
8031         (vector_altivec_store_<mode>): Ditto.
8032
8033         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8034         function.
8035
8036         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8037         V2DF, V2DI support to load/store overloaded builtins.
8038
8039         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8040         altivec load/store builtins for V2DF/V2DI types.
8041
8042         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8043         set avoid indexed addresses on power6 if -maltivec.
8044         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8045         vector_altivec_load/vector_altivec_store builtins.
8046         (altivec_expand_st_builtin): Ditto.
8047         (altivec_expand_builtin): Add VSX memory builtins.
8048         (rs6000_init_builtins): Add V2DI types to internal types.
8049         (altivec_init_builtins): Add support for V2DF/V2DI altivec
8050         load/store builtins.
8051         (rs6000_address_for_altivec): Insure memory address is appropriate
8052         for Altivec.
8053
8054         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8055         vec_vsx_ld and vec_vsx_st.
8056         (vsx_store_<mode>): Ditto.
8057
8058         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8059         variables to hold long long types for VSX vector memory builtins.
8060         (RS6000_BTI_unsigned_long_long): Ditto.
8061         (long_long_integer_type_internal_node): Ditti.
8062         (long_long_unsigned_type_internal_node): Ditti.
8063
8064         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8065         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8066         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8067
8068         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8069         short cuts.
8070         (vec_vsx_st): Ditto.
8071
8072 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8073
8074         * config/pa/pa-hpux10.opt: New.
8075         * config/hpux11.opt (pthread): New Driver option.
8076         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8077         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8078
8079 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8080
8081         * config/ia64/vms.opt: New.
8082         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8083
8084 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8085
8086         PR target/47580
8087         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8088         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8089         generator functions.
8090         (vsx_floatuns<VSi><mode>2): Ditto.
8091         (vsx_fix_trunc<mode><VSi>2): Ditto.
8092         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8093
8094 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8095
8096         * config/i386/djgpp.opt (posix): New Driver option.
8097
8098 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
8099
8100         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8101         Move to the unsupported targets list.
8102
8103 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
8104
8105         PR rtl-optimization/47525
8106         * df-scan.c: Update copyright years.
8107         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8108         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8109
8110 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8111
8112         * config/i386/sysv4.h (TARGET_VERSION): Remove.
8113         (SUBTARGET_RETURN_IN_MEMORY): Remove.
8114         (ASM_OUTPUT_ASCII): Remove.
8115         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8116
8117 2011-02-02  Jeff Law  <law@redhat.com>
8118
8119         PR middle-end/47543
8120         * reload.c (find_reloads_address): Handle reg+d address where both
8121         components are invalid by reloading the entire address.
8122
8123 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8124             Richard Guenther  <rguenther@suse.de>
8125
8126         PR tree-optimization/40979
8127         PR bootstrap/47044
8128         * passes.c (init_optimization_passes): After LIM call copy_prop
8129         and DCE to clean up.
8130         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8131
8132 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8133
8134         PR tree-optimization/47576
8135         PR tree-optimization/47555
8136         * doc/invoke.texi (scev-max-expr-complexity): Documented.
8137         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8138         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8139         * tree-scalar-evolution.c (follow_ssa_edge): Use
8140         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8141
8142 2011-02-02  Richard Guenther  <rguenther@suse.de>
8143
8144         PR tree-optimization/47566
8145         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8146
8147 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8148
8149         PR debug/47106
8150         PR debug/47402
8151         * tree-inline.c (declare_return_variable): Remove unused caller
8152         variable.
8153
8154         PR debug/47106
8155         PR debug/47402
8156         * tree-flow-inline.h (clear_is_used, is_used_p): New.
8157         * cfgexpand.c (account_used_vars_for_block): Use them.
8158         * tree-nrv.c (tree_nrv): Likewise.
8159         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8160         (dump_scope_block): Likewise.
8161         (remove_unused_locals): Likewise.
8162
8163         PR debug/47106
8164         PR debug/47402
8165         * tree-inline.c (declare_return_variable): Add result decl to
8166         local decls only once.
8167         * gimple-low.c (record_vars_into): Mark newly-created variables
8168         as referenced.
8169
8170 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8171
8172         PR debug/47498
8173         PR debug/47501
8174         PR debug/45136
8175         PR debug/45130
8176         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8177         debug insns.
8178         (no_real_insns_p, schedule_block, set_priorities): Drop special
8179         treatment of boundary debug insns.
8180         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8181         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8182         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8183         (BOUNDARY_DEBUG_INSN_P): Likewise.
8184         (SCHEDULE_DEBUG_INSN_P): Likewise.
8185         * sched-rgn.c (init_ready_list): Drop special treatment of
8186         boundary debug insns.
8187         * final.c (rest_of_clean_state): Clear notes' BB.
8188
8189 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8190
8191         * config/openbsd.opt (assert=): New Driver option.
8192
8193 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8194
8195         * config/i386/nto.opt: New.
8196         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8197
8198 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8199
8200         * config/i386/netware.opt: New.
8201         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8202
8203 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8204
8205         * config/interix.opt (posix): New Driver option.
8206
8207 2011-02-01  DJ Delorie  <dj@redhat.com>
8208
8209         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8210
8211         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8212         class for A0/A1.
8213
8214 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
8215
8216         PR tree-optimization/47561
8217         * toplev.c (process_options): Print the Graphite flags.  Add
8218         flag_loop_flatten to the list of options requiring Graphite.
8219
8220 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8221
8222         * config/i386/cygming.opt (posix): New Driver option.
8223
8224 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8225
8226         * config/arm/vxworks.opt: New.
8227         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
8228
8229 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8230
8231         * config/alpha/elf.opt: New.
8232         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
8233         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
8234
8235 2011-02-01  Richard Guenther  <rguenther@suse.de>
8236
8237         PR tree-optimization/47559
8238         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
8239         store-motion on references that can throw.
8240
8241 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
8242
8243         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
8244         * tree-pass.h (TDF_CSELIB): New macro.
8245         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
8246         cselib_lookup): Check for it rather than for TDF_DETAILS.
8247
8248 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
8249
8250         PR driver/47547
8251         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
8252         is HOST_BIT_BUCKET.
8253
8254         * opts.c (finish_options): Don't add x_aux_base_name if it is
8255         HOST_BIT_BUCKET.
8256
8257 2011-02-01  Richard Guenther  <rguenther@suse.de>
8258
8259         PR tree-optimization/47555
8260         Revert
8261         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
8262
8263         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8264
8265 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
8266
8267         PR gcc/46692
8268         * config/lm32/t-lm32: Add multilib for all CPU options.
8269
8270 2011-02-01  Richard Guenther  <rguenther@suse.de>
8271
8272         PR tree-optimization/47541
8273         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8274         sure to have a field at offset zero.
8275
8276 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8277
8278         * config/arc/arc.opt (EB, EL): New Driver options.
8279
8280 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8281
8282         * config/alpha/osf5.opt: New.
8283         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
8284
8285 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
8286
8287         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
8288
8289 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
8290
8291         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
8292         -floop-interchange.
8293         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
8294         is an alias of -floop-interchange and that it requires the
8295         Graphite infrastructure.
8296         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
8297         flag_loop_interchange based on the value of flag_tree_loop_linear.
8298
8299 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
8300             Richard Guenther  <rguenther@suse.de>
8301
8302         PR tree-optimization/47538
8303         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
8304         type instead of r1type, except for comparisons.  For right
8305         shifts and comparisons punt if there are mismatches in
8306         sizetype vs. non-sizetype types.
8307
8308 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8309
8310         * doc/sourcebuild.texi (Effective-Target Keywords): Document
8311         avx_runtime.
8312
8313 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8314
8315         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
8316         version number.
8317         * configure: Regenerate.
8318
8319 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8320
8321         * configure.ac (gcc_cv_ld_static_option): Define.
8322         (gcc_cv_ld_dynamic_option): Define.
8323         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
8324         instead.
8325         (HAVE_LD_STATIC_DYNAMIC): Update message.
8326         (LD_STATIC_OPTION): Define.
8327         (LD_DYNAMIC_OPTION): Define.
8328         * configure: Regenerate.
8329         * config.in: Regenerate.
8330         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
8331         HAVE_LD_STATIC_DYNAMIC]: Use them.
8332
8333 2011-01-31  Nick Clifton  <nickc@redhat.com>
8334
8335         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
8336         registers inside interrupt handlers if the handler is not a leaf
8337         function.
8338
8339 2011-01-31  Nick Clifton  <nickc@redhat.com>
8340
8341         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
8342         reg_renumber returning an INVALID_REGNUM.
8343
8344 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
8345
8346         PR libgcj/44341
8347         * doc/install.texi: Document host options discarded when cross
8348         configuring target libraries.
8349
8350 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
8351
8352         Reverted:
8353         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
8354         PR debug/45136
8355         PR debug/45130
8356         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8357         debug insns.
8358         (no_real_insns_p, schedule_block, set_priorities): Drop special
8359         treatment of boundary debug insns.
8360         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8361         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8362         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8363         (BOUNDARY_DEBUG_INSN_P): Likewise.
8364         (SCHEDULE_DEBUG_INSN_P): Likewise.
8365         * sched-rgn.c (init_ready_list): Drop special treatment of
8366         boundary debug insns.
8367         * final.c (rest_of_clean-state): Clear notes' BB.
8368
8369 2011-01-31  Alan Modra  <amodra@gmail.com>
8370
8371         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
8372         toc relative expressions as we do in print_operand_address.
8373
8374 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
8375
8376         * doc/extend.texi: Follow spelling conventions.
8377         * doc/invoke.texi: Fix a typo.
8378
8379 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
8380
8381         * config/hpux11.opt: New.
8382         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
8383         ia64*-*-hpux*): Use hpux11.opt.
8384
8385 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
8386
8387         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
8388         to tmake_file.
8389
8390 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8391
8392         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
8393         support sites.
8394
8395 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8396
8397         * doc/install.texi (Binaries): Remove outdated reference for
8398         Motorola 68HC11/68HC12 downloads.
8399
8400 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
8401
8402         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
8403         Drepper's paper.
8404
8405 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
8406
8407         PR bootstrap/47147
8408         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
8409         used by NetBSD.
8410
8411 2011-01-28  Ahmad Sharif  <asharif@google.com>
8412
8413         * value-prof.c (check_counter): Corrected error message.
8414
8415 2011-01-29  Jie Zhang  <jie@codesourcery.com>
8416
8417         * config/arm/arm.c (arm_legitimize_reload_address): New.
8418         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8419         arm_legitimize_reload_address.
8420         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
8421
8422 2011-01-28  Ian Lance Taylor  <iant@google.com>
8423
8424         * godump.c (go_define): Ignore macros whose definitions include
8425         two adjacent operands.
8426
8427 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
8428
8429         PR target/42894
8430         * varasm.c (force_const_mem): Store copy of x in desc->constant
8431         instead of x itself.
8432         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
8433         itself into REG_EQUAL note.
8434
8435 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
8436
8437         * config/freebsd.opt (posix, rdynamic): New Driver options.
8438
8439 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8440
8441         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
8442         -Bstatic/-Bdynamic.
8443         * configure: Regenerate.
8444
8445 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
8446
8447         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
8448         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
8449
8450 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
8451
8452         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
8453         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
8454         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8455         (s390_preferred_reload_class): Make static. Change return and
8456         'rclass' argument type to reg_class_t.
8457
8458 2011-01-27  Jan Hubicka  <jh@suse.cz>
8459
8460         PR middle-end/46949
8461         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
8462         (process_function_and_variable_attributes): Check defined weakrefs.
8463
8464 2011-01-27  Martin Jambor  <mjambor@suse.cz>
8465
8466         PR tree-optimization/47228
8467         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
8468         build_ref_for_offset.
8469
8470 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8471
8472         * config/spu/spu-elf.h (ASM_SPEC): Remove.
8473
8474 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
8475
8476         PR rtl-optimization/46856
8477         * postreload.c (reload_combine_recognize_const_pattern): Do not
8478         separate cc0 setter and user on cc0 targets.
8479
8480 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
8481
8482         PR c/43082
8483         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
8484         passed a VOID_TYPE expression, immediately emit an error and
8485         return error_mark_node.
8486
8487 2011-01-26  Jeff Law  <law@redhat.com>
8488
8489         PR rtl-optimization/47464
8490         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
8491         rather than may_trap_p as needed.
8492
8493 2011-01-26  DJ Delorie  <dj@redhat.com>
8494
8495         PR rtl-optimization/46878
8496         * combine.c (insn_a_feeds_b): Check for the implicit cc0
8497         setter/user dependency as well.
8498
8499 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
8500
8501         PR rtl-optimization/44469
8502         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
8503         after removing trivially dead basic blocks.
8504
8505 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8506
8507         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
8508         * config/frv/frv.h (LINK_SPEC): Likewise.
8509         * config/i386/netware.h (LINK_SPEC): Likewise.
8510         * config/m68k/linux.h (ASM_SPEC): Likewise.
8511         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
8512         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8513         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8514         * config/sparc/linux.h (ASM_SPEC): Likewise.
8515         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8516         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8517
8518 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8519
8520         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
8521         * config/frv/frv.h (ASM_SPEC): Likewise.
8522         * config/m68k/linux.h (ASM_SPEC): Likewise.
8523         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8524         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
8525         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8526         * config/sparc/linux.h (ASM_SPEC): Likewise.
8527         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8528         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8529
8530 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8531
8532         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
8533         * config/frv/frv.h (LINK_SPEC): Likewise.
8534         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8535
8536 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
8537
8538         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
8539         * config/frv/frv.h (ASM_SPEC): Likewise.
8540         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
8541         * config/m68k/linux.h (ASM_SPEC): Likewise.
8542         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
8543         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
8544         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
8545         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
8546         * config/sparc/linux.h (ASM_SPEC): Likewise.
8547         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8548         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
8549         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
8550
8551 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
8552
8553         PR target/46997
8554         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
8555         (*mux2): Ditto.
8556         (vec_extract_evenodd_help): Ditto.
8557         (vec_extract_evenv4hi): Ditto.
8558         (vec_extract_oddv4hi): Ditto.
8559         (vec_interleave_lowv2si): Ditto.
8560         (vec_interleave_highv2si): Ditto.
8561         (vec_extract_evenv2si): Ditto.
8562         (vec_extract_oddv2si: Ditto.
8563         (vec_pack_trunc_v2si): Ditto.
8564
8565 2011-01-22  Jan Hubicka  <jh@suse.cz>
8566
8567         PR target/47237
8568         * cgraph.h (cgraph_local_info): New field can_change_signature.
8569         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
8570         signature can change.
8571         (ipcp_estimate_growth): Call sequence simplify only if calle signature
8572         can change.
8573         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
8574         (cgraph_function_versioning): We can not change signature of functions
8575         that don't allow that.
8576         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
8577         (lto_input_node): Likewise.
8578         * ipa-inline.c (compute_inline_parameters): Compute
8579         local.can_change_signature.
8580         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
8581         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
8582         functions that can not change signature.
8583         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
8584         init_cumulative_args): Do not use local calling conventions
8585         for functions that can not change signature.
8586
8587 2011-01-22  Jan Hubicka  <jh@suse.cz>
8588
8589         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
8590
8591 2011-01-26  Richard Guenther  <rguenther@suse.de>
8592
8593         PR tree-optimization/47190
8594         * cgraphunit.c (process_common_attributes): New function.
8595         (process_function_and_variable_attributes): Use it.
8596
8597 2011-01-26  Richard Guenther  <rguenther@suse.de>
8598
8599         PR lto/47423
8600         * cgraphbuild.c (record_eh_tables): Record reference to personality
8601         function.
8602
8603 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
8604
8605         PR debug/45454
8606         * sel-sched.c (moveup_expr): Don't let debug insns prevent
8607         non-debug insns from moving up.
8608
8609 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
8610
8611         PR target/40125
8612         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
8613         t-dlldir{,-x} fragment for build and add it to tmake_file.
8614         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
8615         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
8616         * config/i386/t-dlldir: New file.
8617         (SHLIB_DLLDIR): Define.
8618         * config/i386/t-dlldir-x: New file.
8619         (SHLIB_DLLDIR): Define.
8620         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
8621         (SHLIB_INSTALL): Use it.
8622
8623 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
8624
8625         PR target/47246
8626         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
8627         lower bound of the allowed Thumb-2 coprocessor load/store
8628         index range to -256. Add explaining comment.
8629
8630 2011-01-25  Ian Lance Taylor  <iant@google.com>
8631
8632         * godump.c (go_define): Improve lexing of macro expansion to only
8633         accept expressions which match Go spec.
8634
8635 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
8636
8637         PR c++/43601
8638         * tree.c (handle_dll_attribute): Handle it.
8639         * doc/extend.texi (@item dllexport): Mention it.
8640         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
8641
8642 2011-01-25  Ian Lance Taylor  <iant@google.com>
8643
8644         PR tree-optimization/26854
8645         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
8646         (decl_jump_unsafe): Move higher in file, with no other change.
8647         (bind): Set has_jump_unsafe_decl if appropriate.
8648         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
8649         (check_earlier_gotos): Likewise.
8650         (c_check_switch_jump_warnings): Likewise.
8651
8652 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
8653
8654         * doc/invoke.texi (Warning Options): Add missing hyphen.
8655         (-fprofile-dir): Minor grammatical fixes.
8656         (-fbranch-probabilities): Likewise.
8657
8658 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
8659
8660         PR debug/45136
8661         PR debug/45130
8662         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8663         debug insns.
8664         (no_real_insns_p, schedule_block, set_priorities): Drop special
8665         treatment of boundary debug insns.
8666         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8667         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
8668         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8669         (BOUNDARY_DEBUG_INSN_P): Likewise.
8670         (SCHEDULE_DEBUG_INSN_P): Likewise.
8671         * sched-rgn.c (init_ready_list): Drop special treatment of
8672         boundary debug insns.
8673         * final.c (rest_of_clean-state): Clear notes' BB.
8674
8675 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8676
8677         * Makefile.in (LAMBDA_H): Removed.
8678         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
8679         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
8680         lambda-trans.o, and tree-loop-linear.o.
8681         (lto-symtab.o): Remove dependence on LAMBDA_H.
8682         (tree-loop-linear.o): Remove rule.
8683         (lambda-mat.o): Same.
8684         (lambda-trans.o): Same.
8685         (lambda-code.o): Same.
8686         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
8687         (tree-vect-slp.o): Same.
8688         * hwint.h (gcd): Moved here.
8689         (least_common_multiple): Same.
8690         * lambda-code.c: Removed.
8691         * lambda-mat.c: Removed.
8692         * lambda-trans.c: Removed.
8693         * lambda.h: Removed.
8694         * tree-loop-linear.c: Removed.
8695         * lto-symtab.c: Do not include lambda.h.
8696         * omega.c (gcd): Removed.
8697         * passes.c (init_optimization_passes): Remove pass_linear_transform.
8698         * tree-data-ref.c (print_lambda_vector): Moved here.
8699         (lambda_vector_copy): Same.
8700         (lambda_matrix_copy): Same.
8701         (lambda_matrix_id): Same.
8702         (lambda_vector_first_nz): Same.
8703         (lambda_matrix_row_add): Same.
8704         (lambda_matrix_row_exchange): Same.
8705         (lambda_vector_mult_const): Same.
8706         (lambda_vector_negate): Same.
8707         (lambda_matrix_row_negate): Same.
8708         (lambda_vector_equal): Same.
8709         (lambda_matrix_right_hermite): Same.
8710         * tree-data-ref.h: Do not include lambda.h.
8711         (lambda_vector): Moved here.
8712         (lambda_matrix): Same.
8713         (dependence_level): Same.
8714         (lambda_transform_legal_p): Removed declaration.
8715         (lambda_collect_parameters): Same.
8716         (lambda_compute_access_matrices): Same.
8717         (lambda_vector_gcd): Same.
8718         (lambda_vector_new): Same.
8719         (lambda_vector_clear): Same.
8720         (lambda_vector_lexico_pos): Same.
8721         (lambda_vector_zerop): Same.
8722         (lambda_matrix_new): Same.
8723         * tree-flow.h (least_common_multiple): Removed declaration.
8724         * tree-parloops.c (lambda_trans_matrix): Moved here.
8725         (LTM_MATRIX): Same.
8726         (LTM_ROWSIZE): Same.
8727         (LTM_COLSIZE): Same.
8728         (LTM_DENOMINATOR): Same.
8729         (lambda_trans_matrix_new): Same.
8730         (lambda_matrix_vector_mult): Same.
8731         (lambda_transform_legal_p): Same.
8732         * tree-pass.h (pass_linear_transform): Removed declaration.
8733         * tree-ssa-loop.c (tree_linear_transform): Removed.
8734         (gate_tree_linear_transform): Removed.
8735         (pass_linear_transform): Removed.
8736         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
8737         flag_loop_interchange.
8738
8739 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8740
8741         PR tree-optimization/47265
8742         PR tree-optimization/47443
8743         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
8744         if name still has some uses.
8745
8746 2011-01-25  Martin Jambor  <mjambor@suse.cz>
8747
8748         PR tree-optimization/47382
8749         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
8750         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
8751
8752 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
8753
8754         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
8755         sjlj_except_unwind_info.
8756
8757 2011-01-25  Richard Guenther  <rguenther@suse.de>
8758
8759         PR tree-optimization/47426
8760         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
8761         visible functions results escape.
8762
8763 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8764
8765         PR target/45701
8766         * config/arm/arm.c (any_sibcall_uses_r3): New function.
8767         (arm_get_frame_offsets): Use it.
8768
8769 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8770             Jakub Jelinek  <jakub@redhat.com>
8771
8772         PR tree-optimization/47271
8773         * tree-if-conv.c (bb_postdominates_preds): New.
8774         (if_convertible_bb_p): Call bb_postdominates_preds.
8775         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
8776         (predicate_scalar_phi): Call bb_postdominates_preds.
8777
8778 2011-01-25  Nick Clifton  <nickc@redhat.com>
8779
8780         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
8781         * config/rx/rx.c (rx_function_value): Likewise.
8782         (rx_promote_function_mode): Likewise.
8783         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
8784         in order to make it legitimate.
8785         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
8786         make sure that the first operand is the same as the result register.
8787         (addsi3_unspec): Delete.
8788         (subdi3): Do not accept immediate operands.
8789         (subdi3_internal): Likewise.
8790
8791 2011-01-25  Jeff Law  <law@redhat.com>
8792
8793         PR rtl-optimization/37273
8794         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8795         handle them like argument loads from stack slots.  Do not double
8796         count memory for memory constants and argument loads from stack slots.
8797
8798 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8799
8800         PR tree-optimization/47427
8801         PR tree-optimization/47428
8802         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8803         coalesce if the new root var would be TREE_READONLY.
8804
8805 2011-01-25  Richard Guenther  <rguenther@suse.de>
8806
8807         PR middle-end/47414
8808         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
8809         correct type for TBAA.
8810
8811 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8812
8813         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
8814         (close_phi_written_to_memory): Call for_each_index with
8815         dr_indices_valid_in_loop.
8816
8817 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8818
8819         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
8820         when it is initialized.
8821
8822 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8823
8824         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
8825         call to graphite_find_data_references_in_stmt.
8826         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
8827         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
8828         call to graphite_find_data_references_in_stmt.
8829         (analyze_drs_in_stmts): Same.
8830         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
8831         in which the scalar analysis of indices is performed.
8832         (create_data_ref): Same.  Update call to dr_analyze_indices.
8833         (find_data_references_in_stmt): Update call to create_data_ref.
8834         (graphite_find_data_references_in_stmt): Same.
8835         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
8836         declaration.
8837         (create_data_ref): Same.
8838         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
8839         call to create_data_ref.
8840
8841 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8842
8843         * graphite-sese-to-poly.c (build_poly_scop): Move
8844         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
8845
8846 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8847
8848         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
8849         VAR_DECL, PARM_DECL, and RESULT_DECL.
8850
8851 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8852
8853         * graphite-dependences.c (reduction_dr_1): Allow several reductions
8854         in a reduction PBB.
8855         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
8856         that have already been marked as PBB_IS_REDUCTION.
8857
8858 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8859
8860         * graphite-scop-detection.c (same_close_phi_node): New.
8861         (remove_duplicate_close_phi): New.
8862         (make_close_phi_nodes_unique): New.
8863         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
8864
8865 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8866
8867         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
8868         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
8869         of both data references to be the same.
8870
8871 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8872
8873         * graphite-dependences.c (build_lexicographical_constraint): Remove
8874         the gdim parameter.
8875         (build_lexicographical_constraint): Adjust call to
8876         ppl_powerset_is_empty.
8877         (dependence_polyhedron): Same.
8878         (graphite_legal_transform_dr): Same.
8879         (graphite_carried_dependence_level_k): Same.
8880         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
8881         parameter.
8882         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
8883
8884 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8885
8886         * graphite-sese-to-poly.c
8887         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
8888         (close_phi_written_to_memory): New.
8889         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
8890         and unshare_expr.
8891
8892 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8893
8894         * doc/install.texi: Update the expected version number of PPL to 0.11.
8895         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
8896         #if PPL_VERSION_MINOR < 11.
8897
8898 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8899
8900         * graphite-dependences.c: Include graphite-cloog-util.h.
8901         (new_poly_ddr): Inlined into dependence_polyhedron.
8902         (free_poly_ddr): Moved close by new_poly_ddr.
8903         (dependence_polyhedron_1): Renamed dependence_polyhedron.
8904         Early return NULL when ppl_powerset_is_empty returns true.
8905         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
8906         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
8907         (graphite_legal_transform_dr): Call new_poly_ddr.
8908         (graphite_carried_dependence_level_k): Same.
8909         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
8910         (dot_transformed_deps_stmt_1): Removed.
8911         (dot_deps_stmt_1): Call dot_deps_stmt_2.
8912         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
8913         (dot_deps_1): Call dot_deps_2.
8914         * Makefile.in (graphite-dependences.o): Add missing dependence on
8915         graphite-cloog-util.h.
8916
8917 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8918
8919         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
8920         (build_lexicographical_constraint): Same.
8921         (dependence_polyhedron_1): Same.
8922         (graphite_legal_transform_dr): Same.
8923         (graphite_carried_dependence_level_k): Same.
8924         * graphite-ppl.c (ppl_powerset_is_empty): New.
8925         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
8926         * tree-data-ref.c (dump_data_reference): Print the basic block index.
8927
8928 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8929
8930         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
8931         the "a followed by b" relation and document it.
8932
8933 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8934
8935         * graphite-dependences.c (build_lexicographical_constraint): Stop the
8936         iteration when the bag of constraints is empty.
8937
8938 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8939
8940         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
8941
8942 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8943
8944         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
8945         nest and two loop depths as parameters.
8946         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
8947         lst_perfect_nestify.
8948
8949 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8950
8951         * graphite-dependences.c (print_pddr): Call
8952         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
8953
8954 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8955
8956         * graphite-ppl.c (debug_gmp_value): New.
8957         * graphite-ppl.h (debug_gmp_value): Declared.
8958
8959 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
8960
8961         * doc/install.texi: Document availability of cloog-0.16.
8962
8963 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
8964
8965         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
8966         invalid postdominance info.
8967
8968 2011-01-24  Jan Hubicka  <jh@suse.cz>
8969
8970         PR c/21659
8971         * doc/extend.texi (weak pragma): Drop claim that it must
8972         appear before definition.
8973         * varasm.c (merge_weak, declare_weak): Only sanity check
8974         that DECL is not output at a time it is declared weak.
8975
8976 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
8977
8978         * machmode.def: Fixed comments.
8979
8980 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
8981
8982         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
8983
8984 2011-01-24  Paul Koning  <ni1d@arrl.net>
8985
8986         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
8987         WORDS_BIG_ENDIAN.
8988
8989 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
8990
8991         PR target/46519
8992         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
8993         (block_info): Add scanned and prev.
8994         (move_or_delete_vzeroupper_2): Return if the basic block
8995         has been scanned and the upper 128bit state is unchanged
8996         from the last scan.
8997         (move_or_delete_vzeroupper_1): Return true if the exit
8998         state is changed.
8999         (move_or_delete_vzeroupper): Visit basic blocks using the
9000         work-list based algorithm based on vt_find_locations in
9001         var-tracking.c.
9002
9003         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9004
9005 2011-01-24  Nick Clifton  <nickc@redhat.com>
9006
9007         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9008         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9009         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
9010         then define __v850e1__.
9011         * doc/invoke.texi: Document -mv850es.
9012
9013 2011-01-24  Richard Henderson  <rth@redhat.com>
9014
9015         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9016         compound unordered comparisons.
9017         * config/rx/rx.c (rx_split_fp_compare): Remove.
9018         * config/rx/rx-protos.h: Update.
9019         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9020         (cbranchsf4): Don't call rx_split_fp_compare.
9021         (*cbranchsf4): Use rx_split_cbranch.
9022         (*cmpsf): Don't accept "i" constraint.
9023         (*conditional_branch): Only valid after reload.
9024         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
9025
9026 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9027
9028         PR target/47385
9029         * config/rs6000/altivec.md (vector constant splitters): Add
9030         support for creating vector single precision constants if -mvsx is
9031         used and we would create the constant using Altivec primitives.
9032
9033 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
9034             Richard Sandiford  <rdsandiford@googlemail.com>
9035
9036         PR rtl-optimization/47166
9037         * reload1.c (emit_reload_insns): Disable the spill_reg_store
9038         mechanism for PRE_MODIFY and POST_MODIFY.
9039         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9040         reloadreg.
9041
9042 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
9043
9044         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9045
9046 2011-01-22  Jan Hubicka  <jh@suse.cz>
9047
9048         PR lto/47333
9049         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9050
9051 2011-01-22  Jan Hubicka  <jh@suse.cz>
9052
9053         PR tree-optimization/43884
9054         PR lto/44334
9055         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9056         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9057
9058 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
9059
9060         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9061         * config/s390/s390.c (s390_register_move_cost,
9062         s390_memory_move_cost): New.
9063         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9064
9065 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9066
9067         PR middle-end/47401
9068         * except.c (sjlj_assign_call_site_values): Move setting the
9069         crtl->uses_eh_lsda flag to ...
9070         (sjlj_mark_call_sites): ... here.
9071         (sjlj_emit_function_enter): Support NULL dispatch label.
9072         (sjlj_build_landing_pads): In a function with no landing pads
9073         that still has must-not-throw regions, generate code to register
9074         a personality function with empty LSDA.
9075
9076 2011-01-21  Richard Henderson  <rth@redhat.com>
9077
9078         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9079
9080         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9081
9082         * compare-elim.c: New file.
9083         * Makefile.in (OBJS-common): Add it.
9084         (compare-elim.o): New.
9085         * common.opt (fcompare-elim): New.
9086         * opts.c (default_options_table): Add OPT_fcompare_elim.
9087         * tree-pass.h (pass_compare_elim_after_reload): New.
9088         * passes.c (init_optimization_passes): Add it.
9089         * recog.h: Protect against re-inclusion.
9090         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9091         * doc/invoke.texi (-fcompare-elim): Document it.
9092         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9093         * doc/tm.texi: Rebuild.
9094
9095 2011-01-22  Nick Clifton  <nickc@redhat.com>
9096
9097         * config/rx/rx.md (cstoresf4): Pass comparison operator to
9098         rx_split_fp_compare.
9099
9100 2011-01-22  Nick Clifton  <nickc@redhat.com>
9101
9102         * config/rx/rx.md (UNSPEC_CONST): New.
9103         (deallocate_and_return): Wrap the amount popped off the stack in
9104         an UNSPEC_CONST in order to stop it being rejected by
9105         -mmax-constant-size.
9106         (pop_and_return): Add a "(return)" rtx.
9107         (call): Drop the immediate operand.
9108         (call_internal): Likewise.
9109         (call_value): Likewise.
9110         (call_value_internal): Likewise.
9111         (sibcall_internal): Likewise.
9112         (sibcall_value_internal): Likewise.
9113         (sibcall): Likewise.  Generate an explicit call using
9114         sibcall_internal.
9115         (sibcall_value): Likewise.
9116         (mov<>): FAIL if a constant operand is not legitimate.
9117         (addsi3_unpsec): New pattern.
9118
9119         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9120         (ok_for_max_constant): New function.
9121         (gen_safe_add): New function.
9122         (rx_expand_prologue): Use gen_safe_add.
9123         (rx_expand_epilogue): Likewise.
9124         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
9125         UNSPEC CONSTs.
9126
9127 2011-01-21  Jeff Law  <law@redhat.com>
9128
9129         PR tree-optimization/47053
9130         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9131         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9132         statements are deleted.
9133         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
9134         is nonempty, then purge dead edges and cleanup the CFG.
9135
9136 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9137
9138         PR debug/47402
9139         Temporarily revert:
9140         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9141         PR debug/47106
9142         * tree-dfa.c (create_var_ann): Mark variable as used.
9143
9144 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9145
9146         PR middle-end/45566
9147         * except.c (convert_to_eh_region_ranges): Emit queued no-region
9148         notes from other section in hot/cold partitioning even if
9149         last_action is -3.  Increment call_site_base.
9150
9151         PR rtl-optimization/47366
9152         * fwprop.c (forward_propagate_into): Return bool.  If
9153         any changes are made, -fnon-call-exceptions is used and
9154         REG_EH_REGION note is present, call purge_dead_edges
9155         and return true if it purged anything.
9156         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9157         any EH edges were purged.
9158
9159 2011-01-21  Jeff Law  <law@redhat.com>
9160
9161         PR rtl-optimization/41619
9162         * caller-save.c (setup_save_areas): Break out code to determine
9163         which hard regs are live across calls by examining the reload chains
9164         so that it is always used.
9165         Eliminate code which checked REG_N_CALLS_CROSSED.
9166
9167 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9168
9169         PR tree-optimization/47355
9170         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9171         NOP has non-debug uses beyond PHIs in new_bb.
9172
9173 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9174
9175         PR debug/47106
9176         * cfgexpand.c (account_used_vars_for_block): Only account vars
9177         that are annotated as used.
9178         (estimated_stack_frame_size): Don't set TREE_USED.
9179         * tree-dfa.c (create_var_ann): Mark variable as used.
9180
9181 2011-01-21  Richard Guenther  <rguenther@suse.de>
9182
9183         PR middle-end/47395
9184         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9185
9186 2011-01-21  Richard Guenther  <rguenther@suse.de>
9187
9188         PR tree-optimization/47365
9189         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9190         (vn_reference_lookup_pieces): Adjust.
9191         (vn_reference_lookup): Likewise.
9192         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9193         (vn_reference_lookup_3): Only look through kills if in
9194         VN_WALKREWRITE mode.
9195         (vn_reference_lookup_pieces): Adjust.
9196         (vn_reference_lookup): Likewise.
9197         (visit_reference_op_load): Likewise.
9198         (visit_reference_op_store): Likewise.
9199         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9200         (compute_avail): Likewise.
9201         (eliminate): Likewise.
9202
9203 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9204
9205         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9206         DECL_IGNORED_P non-reg vars if they are used.
9207
9208         PR tree-optimization/47391
9209         * varpool.c (const_value_known_p): Return false if
9210         decl is volatile.
9211
9212 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
9213
9214         PR bootstrap/47215
9215         * config/i386/i386.c (ix86_local_alignment): Handle
9216         case for va_list_type_node is nil.
9217         (ix86_canonical_va_list_type): Likewise.
9218
9219 2011-01-21  Alan Modra  <amodra@gmail.com>
9220
9221         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
9222         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
9223
9224 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9225
9226         * config/arm/arm.md (define_attr type): Rename f_load
9227         and f_store to f_fpa_load and f_fpa_store. Update.
9228         (write_conflict): Deal with rename fallout.
9229         (*push_fp_multi): Likewise.
9230         * config/arm/fpa.md (f_load): Use f_fpa_load.
9231         (f_store): Use f_fpa_store.
9232         (*movsf_fpa): Likewise.
9233         (*movdf_fpa): Likewise.
9234         (*movxf_fpa): Likewise.
9235         (*thumb2_movsf_fpa): Likewise.
9236         (*thumb2_movdf_fpa): Likewise.
9237         (*thumb2_movxf_fpa): Likewise.
9238         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
9239         f_loadd and f_stored.
9240         (*thumb2_movdi_vfp): Likewise.
9241         (*thumb2_movsf_vfp): Fix attribute to f_loads.
9242         (*thumb2_movsi_vfp): Likewise.
9243         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
9244         Use f_loads instead of f_load.
9245         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
9246
9247 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
9248
9249         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9250         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
9251         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9252         (xtensa_mode_dependent_address_p): New function.
9253         (constantpool_address_p): Make static. Change return type to bool.
9254         Change argument type to const_rtx. Use CONST_INT_P predicate.
9255
9256 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
9257
9258         PR debug/46583
9259         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
9260
9261 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
9262
9263         PR debug/47283
9264         * cfgexpand.c (expand_debug_expr): Instead of generating
9265         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
9266         etc. handling.
9267
9268 2011-01-20  Richard Guenther  <rguenther@suse.de>
9269
9270         PR middle-end/47370
9271         * tree-inline.c (remap_gimple_op_r): Recurse manually for
9272         the pointer operand of MEM_REFs.
9273
9274 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
9275
9276         PR tree-optimization/46130
9277         * ipa-split.c (consider_split): If return_bb contains non-virtual
9278         PHIs other than for retval or if split_function would not adjust it,
9279         refuse to split.
9280
9281 2011-01-20  Richard Guenther  <rguenther@suse.de>
9282
9283         PR tree-optimization/47167
9284         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9285         Revert previous change, only avoid enumeral type changes.
9286
9287 2011-01-19  Mike Stump  <mikestump@comcast.net>
9288
9289         * doc/tm.texi.in (BRANCH_COST): Englishify.
9290         * doc/tm.texi (BRANCH_COST): Likewise.
9291
9292 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
9293
9294         PR c++/47291
9295         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
9296         (gen_scheduled_generic_parms_dies): New functions.
9297         (gen_struct_or_union_type_die): Schedule template parameters DIEs
9298         generation for the end of CU compilation.
9299         (dwarf2out_finish): Generate template parameters DIEs here.
9300
9301 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9302
9303         PR debug/46240
9304         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
9305         debug bind stmt on merge edges.
9306
9307 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9308
9309         PR debug/47079
9310         PR debug/46724
9311         * function.c (instantiate_expr): Instantiate incoming rtl of
9312         implicit arguments, and recurse on VALUE_EXPRs.
9313         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
9314         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
9315
9316 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
9317
9318         * c-parser.c (c_parser_for_statement): Initialize
9319         collection_expression.
9320
9321 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9322
9323         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
9324
9325 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9326
9327         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
9328         (LINK_SHLIB_SPEC): Don't use %(link_path).
9329         (SUBTARGET_EXTRA_SPECS): Remove link_path.
9330
9331 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9332
9333         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
9334         (NO_SHARED_LIB_SUPPORT): Remove.
9335         (LINK_SHLIB_SPEC): Remove one conditional definition.
9336
9337 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
9338
9339         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
9340         %{call_shared}.
9341         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
9342         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
9343         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
9344         %{call_shared} and conditionals on these options not being passed.
9345         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
9346         %{call_shared}.
9347
9348 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
9349
9350         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
9351         simplify.
9352
9353         * ipa-split.c: Spelling fixes.
9354
9355 2011-01-19  Richard Henderson  <rth@redhat.com>
9356
9357         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
9358         (*mulsi3): Likewise.
9359
9360         * longlong.h [__mn10300__] (count_leading_zeros): New.
9361         [__mn10300__] (umul_ppmm, smul_ppmm): New.
9362         [__mn10300__] (add_ssaaaa, subddmmss): New.
9363         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
9364         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
9365
9366 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9367
9368         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
9369
9370 2011-01-19  Richard Henderson  <rth@redhat.com>
9371
9372         * config/mn10300/mn10300.md (addsi3_flags): New.
9373         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
9374         (subsi3_flags, subc_internal, subdi3): New.
9375         (subdi3_internal, *subdi3_degenerate): New.
9376         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
9377
9378         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
9379         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
9380         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
9381         * config/mn10300/mn10300-protos.h: Update.
9382         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
9383         (return_ret): Likewise.  Rename from return_internal_regs.
9384         (return_internal): Remove.
9385
9386         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
9387         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
9388         (mn10300_legitimate_constant_p): Likewise.
9389         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
9390         (mn10300_frame_size): New.
9391         (mn10300_expand_prologue): Use it.
9392         (mn10300_expand_epilogue): Likewise.
9393         (mn10300_initial_offset): Likewise.
9394         * config/mn10300/mn10300-protos.h: Update.
9395         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
9396         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
9397         (prologue, epilogue, return_internal): Tidy output code.
9398         (mn10300_store_multiple_operation, return): Likewise.
9399         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
9400         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
9401         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
9402         (load_pic, am33_load_pic): New.
9403         (mn10300_load_pic0, mn10300_load_pic1): New.
9404
9405         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
9406         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
9407         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
9408         (cc_flags_for_mode, cc_flags_for_code): New.
9409         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
9410         overflow flag is not valid.  Validate that the flags we need
9411         for the comparison are valid.
9412         (mn10300_output_cmp): Remove.
9413         (mn10300_output_add): New.
9414         (mn10300_select_cc_mode): Use cc_flags_for_code.
9415         (mn10300_split_cbranch): New.
9416         (mn10300_match_ccmode): New.
9417         (mn10300_split_and_operand_count): New.
9418         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
9419         to the function.
9420         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
9421         (addsi3): ... here.  Use mn10300_output_add.
9422         (*addsi3_flags): New.
9423         (*am33_subsi3, *mn10300_subsi3): Merge...
9424         (subsi3): ... here.  Use attribute isa.
9425         (*subsi3_flags): New.
9426         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
9427         when possible.
9428         (*am33_andsi3, *mn10300_andsi3): Merge...
9429         (andsi3): ... here.
9430         (*andsi3_flags): New.
9431         (andsi3 splitters): New.
9432         (*am33_iorsi3, *mn10300_iorsi3): Merge...
9433         (iorsi3): ... here.
9434         (*iorsi3_flags): New.
9435         (*am33_xorsi3, *mn10300_xorsi3): Merge...
9436         (xorsi3): ... here.
9437         (*xorsi3_flags): New.
9438         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
9439         (one_cmplsi2): ... here.
9440         (*one_cmplsi2_flags): New.
9441         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
9442         instead of "dax" in constraints.  Use mn10300_split_cbranch.
9443         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
9444         use matching constraints to eliminate a self-comparison.
9445         (*integer_conditional_branch): Rename from integer_conditional_branch.
9446         Use int_mode_flags to match CC_REG.
9447         (*cbranchsi4_btst, *btstsi): New.
9448         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
9449         mn10300_split_cbranch.
9450         (*am33_cmpsf): Rename from am33_cmpsf.
9451         (*float_conditional_branch): Rename from float_conditional_branch.
9452         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
9453         (zero_extendqisi2): ... here.
9454         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
9455         (zero_extendhisi2): ... here.
9456         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
9457         (extendqisi2): ... here.
9458         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
9459         (extendhisi2): ... here.
9460         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
9461         (ashlsi3): ... here.
9462         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
9463         (lshrsi3): ... here.
9464         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
9465         (ashrsi3): ... here.
9466         (consecutive add peephole): Remove.
9467         * config/mn10300/predicates.md (label_ref_operand): New.
9468         (int_mode_flags): New.
9469         (CCZN_comparison_operator): New.
9470
9471         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
9472         (throughput_42_latency_43): New reservation.
9473         (mulsidi3, umulsidi3): New expanders.
9474         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
9475         the MDR register to allocation; separately allocate the low and
9476         high parts of the DImode result.
9477         (umulsidi3_internal): Similarly.
9478         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
9479         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
9480         (udivsi3, umodsi3): Remove.
9481         (udivmodsi4, divmodsi4): New expanders.
9482         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
9483         (*divmodsi4): Simiarly.
9484         (ext_internal): New.
9485
9486         * config/mn10300/constraints.md ("z"): New constraint.
9487         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
9488         (FIXED_REGISTERS): Don't fix MDR.
9489         (CALL_USED_REGSITERS): Reformat nicely.
9490         (REG_ALLOC_ORDER): Add MDR.
9491         (enum regclass): Add MDR_REGS.
9492         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
9493         (IRA_COVER_CLASSES): Add MDR_REGS.
9494         (REGNO_REG_CLASS): Handle MDR_REG.
9495         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
9496         (mn10300_register_move_cost): Likewise.
9497         * config/mn10300/mn10300.md (MDR_REG): New.
9498         (*movsi_internal): Handle moves to/from MDR_REGS.
9499
9500         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
9501         POST_MODIFY.
9502         (mn10300_secondary_reload): Tidy combination reload classes.
9503         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
9504         addresses for AM33.  Allow symbolic offsets for reg+imm.
9505         (mn10300_regno_in_class_p): New.
9506         (mn10300_legitimize_reload_address): New.
9507         * config/mn10300/mn10300.h (enum reg_class): Remove
9508         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
9509         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
9510         SP_OR_GENERAL_REGS.
9511         (REG_CLASS_NAMES): Update to match.
9512         (REG_CLASS_CONTENTS): Likewise.
9513         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
9514         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
9515         (REGNO_IN_RANGE_P): Remove.
9516         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
9517         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
9518         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
9519         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
9520         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
9521         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
9522         (REGNO_GENERAL_P): New.
9523         (HAVE_POST_MODIFY_DISP): New.
9524         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
9525         (LEGITIMIZE_RELOAD_ADDRESS): New.
9526         * config/mn10300/mn10300-protos.h: Update.
9527
9528         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
9529         DATA_REGS for AM33 stack-pointer destination.
9530         (mn10300_preferred_output_reload_class): Likewise.
9531         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
9532         into a form appropriate for ...
9533         (TARGET_SECONDARY_RELOAD): New.
9534         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
9535         * config/mn10300/mn10300-protos.h: Update.
9536         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
9537         reload_insi; use the "A" constraint for the scratch; handle AM33
9538         moves of sp to non-address registers.
9539
9540         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
9541         (*movqi_internal): ... here.
9542         (*am33_movhi, *mn10300_movhi): Merge into...
9543         (*movhi_internal): ... here.
9544         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
9545         as the source/destination of moves from/to SP.
9546         (movsf): Only allow for AM33-2.
9547         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
9548         any integer constant constraint.  Only allow for AM33-2.  Tidy
9549         all of the alternative outputs.
9550         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
9551         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
9552         for MN103.
9553         (udivsi3, umodsi3): New patterns for MN103 only.
9554
9555 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
9556
9557         * doc/tm.texi.in: Spell out that a lack of register class unions
9558         can lead to ICEs.
9559         * doc/tm.texi: Regenerate.
9560
9561 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
9562
9563         PR rtl-optimization/47337
9564         * dce.c (check_argument_store): New function.
9565         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
9566
9567         PR tree-optimization/47290
9568         * tree-eh.c (infinite_empty_loop_p): New function.
9569         (cleanup_empty_eh): Use it.
9570
9571 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
9572
9573         PR target/46997
9574         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
9575         (a64_expand_widen_sum): Ditto.
9576         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
9577         (vec_extract_evenodd_help): Ditto.
9578         (vec_extract_evenv4hi): Ditto.
9579         (vec_extract_oddv4hi): Ditto.
9580         (vec_extract_evenv2si): Ditto.
9581         (vec_extract_oddv2si): Ditto.
9582         (vec_extract_evenv2sf): Ditto.
9583         (vec_extract_oddv2sf): Ditto.
9584         (vec_pack_trunc_v4hi: Ditto.
9585         (vec_pack_trunc_v2si): Ditto.
9586         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
9587         (vec_interleave_highv8qi): Ditto.
9588         (mix1_r): Ditto.
9589         (vec_extract_oddv8qi): Ditto.
9590         (vec_interleave_lowv4hi): Ditto.
9591         (vec_interleave_highv4hi): Ditto.
9592         (vec_interleave_lowv2si): Ditto.
9593         (vec_interleave_highv2si): Ditto.
9594
9595 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9596
9597         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
9598         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
9599         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
9600         (pa_c_mode_for_suffix): New.
9601         (TARGET_EXPAND_BUILTIN): Define.
9602         (TARGET_C_MODE_FOR_SUFFIX): Define.
9603         (pa_builtins): Define.
9604         (pa_init_builtins): Register __float128 type and init new support
9605         builtins.
9606         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
9607         * config/pa/quadlib.c (_U_Qfcopysign): New.
9608
9609 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
9610
9611         PR middle-end/46894
9612         * explow.c (allocate_dynamic_stack_space): Do not assume more than
9613         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
9614         are defined.
9615
9616 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9617
9618         PR tree-optimization/47179
9619         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
9620         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
9621
9622 2011-01-18  Richard Guenther  <rguenther@suse.de>
9623
9624         PR rtl-optimization/47216
9625         * emit-rtl.c: Include tree-flow.h.
9626         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
9627         of replicating it with different semantics.
9628         * Makefile.in (emit-rtl.o): Adjust.
9629
9630 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9631
9632         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
9633         (cortex_a9_dp): Handle neon types correctly.
9634
9635 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
9636
9637         PR rtl-optimization/47299
9638         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
9639         subtarget.  Use normal multiplication if both operands are constants.
9640         * expmed.c (expand_widening_mult): Don't try to optimize constant
9641         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
9642         before using it.
9643
9644 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9645
9646         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
9647         spacing after 'e.g.', typos, comma, hyphenation.
9648
9649 2011-01-17  Richard Henderson  <rth@redhat.com>
9650
9651         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
9652         (rx_restricted_mem_operand): New.
9653         (rx_shift_operand): Use register_operand.
9654         (rx_source_operand, rx_compare_operand): Likewise.
9655         * config/rx/rx.md (addsi3_flags): New expander.
9656         (adddi3): Rewrite as expander.
9657         (adc_internal, *adc_flags, adddi3_internal): New patterns.
9658         (subsi3_flags): New expander.
9659         (subdi3): Rewrite as expander.
9660         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
9661
9662         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
9663         (rx_init_builtins): Remove sat builtin.
9664         (rx_expand_builtin): Likewise.
9665         * config/rx/rx.md (ssaddsi3): New.
9666         (*sat): Rename from sat.  Represent the CC_REG input.
9667
9668         * config/rx/predicates.md (rshift_operator): New.
9669         * config/rx/rx.c (rx_expand_insv): Remove.
9670         * config/rx/rx-protos.h: Update.
9671         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
9672         operand to the canonical position.
9673         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
9674         (*bitclr, *bitclr_in_memory): Similarly.
9675         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
9676         (insv): Retain the zero_extract in the expansion.
9677
9678         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
9679         (bswaphi2, bitinvert, revw): Likewise.
9680
9681         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
9682         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
9683         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
9684         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
9685         (bitset, bitset_in_memory): Likewise.
9686         (bitinvert, bitinvert_in_memory): Likewise.
9687         (bitclr, bitclr_in_memory): Likewise.
9688         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
9689         (rx_strend, rx_cmpstrn): Likewise.
9690         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
9691         (bitop peep2 patterns): Remove.
9692
9693         * config/rx/rx.c (rx_match_ccmode): New.
9694         * config/rx/rx-protos.h: Update.
9695         * config/rx/rx.md (abssi2): Clobber, don't set flags.
9696         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
9697         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
9698         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
9699         (fix_truncsfsi2, floatsisf2): Likewise.
9700         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
9701         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
9702         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
9703         (*subsi3_flags, *xorsi3_flags): New.
9704
9705         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
9706
9707         * config/rx/rx.c (rx_print_operand): Remove workaround for
9708         unsplit comparison operations.
9709
9710         * config/rx/rx.md (movsicc): Split after reload.
9711         (*movsicc): Merge *movsieq and *movsine via match_operator.
9712         (*stcc): New pattern.
9713
9714         * config/rx/rx.c (rx_float_compare_mode): Remove.
9715         * config/rx/rx.h (rx_float_compare_mode): Remove.
9716         * config/rx/rx.md (cstoresi4): Split after reload.
9717         (*sccc): New pattern.
9718
9719         * config/rx/predicates.md (label_ref_operand): New.
9720         (rx_z_comparison_operator): New.
9721         (rx_zs_comparison_operator): New.
9722         (rx_fp_comparison_operator): New.
9723         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
9724         Validate that the flags are set properly for the comparison.
9725         (rx_gen_cond_branch_template): Remove.
9726         (rx_cc_modes_compatible): Remove.
9727         (mode_from_flags): New.
9728         (flags_from_code): Rename from flags_needed_for_conditional.
9729         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
9730         (rx_select_cc_mode): Likewise.
9731         (rx_split_fp_compare): New.
9732         (rx_split_cbranch): New.
9733         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
9734         (*cbranchsi4): Use match_operator and rx_split_cbranch.
9735         (*cbranchsf4): Similarly.
9736         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
9737         match_operator and rx_split_cbranch.
9738         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
9739         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
9740         (*cmpsi): Rename from cmpsi.
9741         (*tstsi): Rename from tstsi.
9742         (*cmpsf): Rename from cmpsf; use CC_Fmode.
9743         (*conditional_branch): Rename from conditional_branch.
9744         (*reveresed_conditional_branch): Remove.
9745         (b<code>): Remove expander.
9746         * config/rx/rx-protos.h: Update.
9747
9748         * config/rx/rx.c (rx_compare_redundant): Remove.
9749         * config/rx/rx.md (cmpsi): Don't use it.
9750         * config/rx/rx-protos.h: Update.
9751
9752         * config/rx/rx-modes.def (CC_F): New mode.
9753         * config/rx/rx.c (rx_select_cc_mode): New.
9754         * config/rx/rx.h (SELECT_CC_MODE): Use it.
9755         * config/rx/rx-protos.h: Update.
9756
9757 2011-01-17  Richard Henderson  <rth@redhat.com>
9758
9759         * except.c (dump_eh_tree): Fix stray ; after for statement.
9760
9761 2011-01-17  Richard Guenther  <rguenther@suse.de>
9762
9763         PR tree-optimization/47313
9764         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
9765         handling before copying the body.  Properly deal with
9766         by-reference result in SSA form.
9767
9768 2011-01-17  Ian Lance Taylor  <iant@google.com>
9769
9770         PR target/47219
9771         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
9772         (struct_value_alias_set): Don't define.
9773         (sparc_option_override): Don't set sparc_sr_alias_set and
9774         struct_value_alias_set.
9775         (save_or_restore_regs): Use gen_frame_mem rather than calling
9776         set_mem_alias_set.
9777         (sparc_struct_value_rtx): Likewise.
9778
9779 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
9780
9781         PR target/47318
9782         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
9783         (_mm_maskstore_pd): Likewise.
9784         (_mm_maskload_ps): Likewise.
9785         (_mm_maskstore_ps): Likewise.
9786         (_mm256_maskload_pd): Change mask to __m256i.
9787         (_mm256_maskstore_pd): Likewise.
9788         (_mm256_maskload_ps): Likewise.
9789         (_mm256_maskstore_ps): Likewise.
9790
9791         * config/i386/i386-builtin-types.def: Updated.
9792         (ix86_expand_special_args_builtin): Likewise.
9793
9794         * config/i386/i386.c (bdesc_special_args): Update
9795         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
9796         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
9797         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
9798         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
9799
9800         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
9801         Use <avxpermvecmode> on mask register.
9802         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
9803
9804 2011-01-17  Olivier Hainque  <hainque@adacore.com>
9805             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9806             Eric Botcazou  <ebotcazou@adacore.com>
9807
9808         PR target/46655
9809         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
9810         if <= USHRT_MAX in 32-bit mode.
9811
9812 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9813
9814         * doc/install.texi (Configuration, Specific): Wrap long
9815         lines in examples.  Allow line wrapping in long options
9816         and URLs where beneficial for PDF output.
9817
9818 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
9819
9820         * config/mips/mips.c (mips_classify_symbol): Don't return
9821         SYMBOL_PC_RELATIVE for nonlocal labels.
9822
9823 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
9824
9825         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
9826
9827 2011-01-15  Jan Hubicka  <jh@suse.cz>
9828
9829         PR tree-optimization/47276
9830         * ipa.c (function_and_variable_visibility): Do not try to mark alias
9831         declarations as needed.
9832
9833 2011-01-15  Martin Jambor  <mjambor@suse.cz>
9834
9835         * common.opt (fdevirtualize): New flag.
9836         * doc/invoke.texi (Option Summary): Document it.
9837         * opts.c (default_options_table): Add devirtualize flag.
9838         * ipa-prop.c (detect_type_change): Return immediately if
9839         devirtualize flag is not set.
9840         (detect_type_change_ssa): Likewise.
9841         (compute_known_type_jump_func): Likewise.
9842         (ipa_analyze_virtual_call_uses): Likewise.
9843
9844 2011-01-14  Martin Jambor  <mjambor@suse.cz>
9845
9846         PR tree-optimization/45934
9847         PR tree-optimization/46302
9848         * ipa-prop.c (type_change_info): New type.
9849         (stmt_may_be_vtbl_ptr_store): New function.
9850         (check_stmt_for_type_change): Likewise.
9851         (detect_type_change): Likewise.
9852         (detect_type_change_ssa): Likewise.
9853         (compute_complex_assign_jump_func): Check for dynamic type change.
9854         (compute_complex_ancestor_jump_func): Likewise.
9855         (compute_known_type_jump_func): Likewise.
9856         (compute_scalar_jump_functions): Likewise.
9857         (ipa_analyze_virtual_call_uses): Likewise.
9858         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
9859
9860 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9861
9862         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
9863         * config/i386/i386.opt (msse5): New Alias.
9864
9865 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9866
9867         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9868         * config/sparc/linux64.h (CC1_SPEC): Likewise.
9869         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9870         * config/sparc/sparc.h (CC1_SPEC): Likewise.
9871
9872 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9873
9874         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
9875         -mcpu options.
9876         * config/sparc/linux64.h (CC1_SPEC): Likewise.
9877         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9878         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
9879         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
9880         Likewise.
9881         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
9882
9883 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9884
9885         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
9886
9887 2011-01-14  Mike Stump  <mikestump@comcast.net>
9888
9889         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
9890         * config/fr30/fr30.md: Likweise
9891         (movsi_push): Likewise.
9892         (movsi_pop): Likewise.
9893         (enter_func): Likewise.
9894         * config/moxie/moxie.md (movsi_push): Likewise.
9895         (movsi_pop): Likewise.
9896
9897 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9898
9899         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
9900         %{no_archive} %{exact_version}.
9901         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
9902         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
9903         %{no_archive} %{exact_version}.
9904         * config/mips/openbsd.h (LINK_SPEC): Likewise.
9905         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
9906         * config/mips/vxworks.h: Likewise.
9907
9908 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9909
9910         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
9911
9912 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9913
9914         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
9915         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
9916
9917 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9918
9919         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
9920         -nodefaultlib.
9921
9922 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9923
9924         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
9925         for mcpu not cpu.
9926         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
9927         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
9928         not cpu.
9929         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
9930         Don't handle -shlib.
9931
9932 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9933
9934         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
9935         (CC1_SPEC): Don't handle -profile.
9936
9937 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9938
9939         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
9940         * config/mips/mips.h (CC1_SPEC): Likewise.
9941
9942 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9943
9944         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
9945         * config/mips/mips.h (CC1_SPEC): Likewise.
9946
9947 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9948
9949         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
9950         * config/m32r/linux.h (LINK_SPEC): Likewise.
9951         * config/mips/linux.h (LINK_SPEC): Likewise.
9952         * config/mips/linux64.h (LINK_SPEC): Likewise.
9953         * config/sparc/linux.h (LINK_SPEC): Likewise.
9954         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9955         LINK_SPEC): Likewise.
9956         * config/xtensa/linux.h (LINK_SPEC): Likewise.
9957
9958 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9959
9960         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
9961         %{version:-v}.
9962         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
9963
9964 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9965
9966         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
9967         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
9968
9969 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9970
9971         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
9972
9973 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9974
9975         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
9976         supports -Bstatic/-Bdynamic.
9977         * configure: Regenerate.
9978
9979 2011-01-14  Jan Hubicka  <jh@suse.cz>
9980             Jack Howarth  <howarth@bromo.med.uc.edu>
9981
9982         PR target/46037
9983         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
9984         when checking debug_info_level. Test write_symbols instead of
9985         debug_hooks->var_location when setting flag_var_tracking_uninit.
9986
9987 2011-01-14  Richard Guenther  <rguenther@suse.de>
9988
9989         PR tree-optimization/47179
9990         * target.def (ref_may_alias_errno): New target hook.
9991         * targhooks.h (default_ref_may_alias_errno): Declare.
9992         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
9993         (default_ref_may_alias_errno): New function.
9994         * target.h (struct ao_ref_s): Declare.
9995         * tree-ssa-alias.c: Include target.h.
9996         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
9997         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
9998         (targhooks.o): Likewise.
9999         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10000         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10001
10002 2011-01-14  Richard Guenther  <rguenther@suse.de>
10003
10004         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
10005
10006 2011-01-14  Richard Guenther  <rguenther@suse.de>
10007
10008         PR tree-optimization/47280
10009         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10010         return CFG changes.
10011         (tree_ssa_forward_propagate_single_use_vars): Deal with
10012         CFG changes from associate_plusminus.
10013
10014 2011-01-14  Richard Guenther  <rguenther@suse.de>
10015
10016         PR middle-end/47281
10017         Revert
10018         2011-01-11  Richard Guenther  <rguenther@suse.de>
10019
10020         PR tree-optimization/46076
10021         * tree-ssa.c (useless_type_conversion_p): Conversions from
10022         unprototyped to empty argument list function types are useless.
10023
10024 2011-01-14  Richard Guenther  <rguenther@suse.de>
10025
10026         PR tree-optimization/47286
10027         * tree-ssa-structalias.c (new_var_info): Register variables are global.
10028
10029 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10030
10031         PR middle-end/46823
10032         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10033
10034 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
10035
10036         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10037         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10038         * config/xtensa/xtensa.c (xtensa_libcall_value,
10039         xtensa_function_value_regno_p): New functions.
10040         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10041
10042 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
10043
10044         PR c++/47213
10045         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10046         PE specific hook.
10047         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10048         New function prototype.
10049         * config/i386/winnt.c (i386_pe_assemble_visibility):
10050         Warn only if attribute was specified by user.
10051
10052 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10053
10054         PR target/47251
10055         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10056         floating point.
10057         (floatunsdidf2_fcfidu): Ditto.
10058
10059 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10060
10061         * config/s390/s390.c (print_operand_address): Replace 'error' with
10062         'output_operand_lossage'.
10063         (print_operand): Likewise.
10064
10065 2011-01-13  Jeff Law  <law@redhat.com>
10066
10067         PR rtl-optimization/39077
10068         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10069         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10070         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10071         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10072         * gcse.c (prune_insertions_deletions): New function.
10073         (compute_pre_data): Use it.
10074
10075 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
10076
10077         PR debug/PR46973
10078         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10079         static function.
10080         (prune_unused_types_mark): Use it.
10081
10082 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
10083
10084         PR rtl-optimization/45352
10085         * sel-sched.c: Update copyright years.
10086         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10087         in the advancing loop when we have issued issue_rate insns.
10088
10089 2011-01-12  Richard Henderson  <rth@redhat.com>
10090
10091         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10092         (TARGET_MD_ASM_CLOBBERS): New.
10093
10094         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10095         (TARGET_DELEGITIMIZE_ADDRESS): New.
10096
10097         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10098         (clzsi2, *bsch): New patterns.
10099
10100         * config/mn10300/mn10300.md (INT): New mode iterator.
10101         (*mov<INT>_clr): New pattern, and peep2 to generate it.
10102
10103         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10104         flag_split_wide_types.
10105
10106         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10107         (mn10300_trampoline_init): Rewrite without a template, an immediate
10108         load and a direct branch.
10109         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10110
10111 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
10112
10113         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10114         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10115         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10116         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10117
10118 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
10119
10120         PR debug/47209
10121         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10122         of type.
10123
10124 2011-01-12  Jan Hubicka  <jh@suse.cz>
10125
10126         PR driver/47244
10127         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10128         (PLUGIN_COND_CLOSE): New macro.
10129         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10130
10131 2011-01-12  Richard Guenther  <rguenther@suse.de>
10132
10133         PR lto/47259
10134         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10135         register variables in a MEM_REF.
10136
10137 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
10138
10139         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10140         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10141         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10142         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10143         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10144         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10145         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10146         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10147         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10148         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10149         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10150         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10151         * config/gnu-user.h: New.  Copied from linux.h.
10152         (LINUX_TARGET_STARTFILE_SPEC): Rename to
10153         GNU_USER_TARGET_STARTFILE_SPEC.
10154         (LINUX_TARGET_ENDFILE_SPEC): Rename to
10155         GNU_USER_TARGET_ENDFILE_SPEC.
10156         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10157         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10158         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10159         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10160         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10161         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10162         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10163         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10164         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10165         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10166         * config/arm/linux-eabi.h (CC1_SPEC): Use
10167         GNU_USER_TARGET_CC1_SPEC.
10168         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10169         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10170         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10171         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10172         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10173         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10174         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10175         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10176
10177 2011-01-12  Richard Guenther  <rguenther@suse.de>
10178
10179         PR other/46946
10180         * doc/invoke.texi (ffast-math): Document it is turned on
10181         with -Ofast.
10182
10183 2011-01-12  Jan Hubicka  <jh@suse.cz>
10184
10185         PR tree-optimization/47233
10186         * opts.c (common_handle_option): Disable ipa-reference with profile
10187         feedback.
10188
10189 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10190
10191         * c-parser.c (c_parser_objc_at_property_declaration): Improved
10192         error message.
10193
10194 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10195
10196         * c-parser.c (c_lex_one_token): Updated and reindented some
10197         comments.  No changes in code.
10198
10199 2011-01-11  Ian Lance Taylor  <iant@google.com>
10200
10201         * godump.c (go_output_var): Don't output the variable if there is
10202         already a type with the same name.
10203
10204 2011-01-11  Ian Lance Taylor  <iant@google.com>
10205
10206         * godump.c (go_format_type): Don't generate float80.
10207
10208 2011-01-11  Richard Henderson  <rth@redhat.com>
10209
10210         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10211         declaration.  Rewrite for both speed and size.
10212         (mn10300_address_cost_1): Remove.
10213         (mn10300_register_move_cost): New.
10214         (mn10300_memory_move_cost): New.
10215         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
10216         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
10217         extensions, shifts, BSWAP, CLZ.
10218         (mn10300_wide_const_load_uses_clr): Remove.
10219         (TARGET_REGISTER_MOVE_COST): New.
10220         (TARGET_MEMORY_MOVE_COST): New.
10221         * config/mn10300/mn10300-protos.h: Update.
10222         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
10223
10224         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
10225         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
10226         * config/mn10300/mn10300-protos.h: Update.
10227         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
10228         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
10229         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
10230         (*test_int_bitfield, *test_byte_bitfield): Remove.
10231         (*bit_test, *subreg_bit_test): Remove.
10232         * config/mn10300/predicates.md (const_8bit_operand): Remove.
10233
10234         * config/mn10300/constraints.md ("c"): Rename from "A".
10235         ("A", "D"): New constraint letters.
10236         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
10237         (fmssf4, fnmasf4, fnmssf4): Likewise.
10238
10239         * config/mn10300/mn10300.md (isa): New attribute.
10240         (enabled): New attribute.
10241
10242         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
10243         (abssf2, negsf2): Define only for hardware fp.
10244         (sqrtsf2): Reformat.
10245         (addsf3, subsf3, mulsf3): Merge expander and insn.
10246
10247         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
10248         (DEBUGGER_AUTO_OFFSET): Remove.
10249         (DEBUGGER_ARG_OFFSET): Remove.
10250
10251         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
10252         Emit register stores with the same offsets as the hardware.
10253         (mn10300_store_multiple_operation): Don't check that the register
10254         save offsets are monotonic.
10255         * config/mn10300/mn10300-protos.h: Update.
10256
10257         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
10258
10259         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
10260         in terms of the value on the stack, not the MDR register.
10261
10262 2011-01-11  Jan Hubicka  <jh@suse.cz>
10263
10264         PR lto/45721
10265         PR lto/45375
10266         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
10267         (symbol_alias_set_destroy, symbol_alias_set_contains,
10268         propagate_aliases_backward): Declare.
10269         * lto-streamer-out.c (struct sets): New sturcture.
10270         (trivally_defined_alias): New function.
10271         (output_alias_pair_p): Rewrite.
10272         (output_unreferenced_globals): Fix output of alias pairs.
10273         (produce_symtab): Likewise.
10274         * ipa.c (function_and_variable_visibility): Set weak alias destination
10275         as needed in lto.
10276         * varasm.c (symbol_alias_set_t): Remove.
10277         (symbol_alias_set_destroy): Export.
10278         (propagate_aliases_forward, propagate_aliases_backward): New functions
10279         based on ...
10280         (compute_visible_aliases): ... this one; remove.
10281         (trivially_visible_alias): New
10282         (trivially_defined_alias): New.
10283         (remove_unreachable_alias_pairs): Rewrite.
10284         (finish_aliases_1): Reorganize code checking if alias is defined.
10285         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
10286         in LTO mode.
10287
10288 2011-01-11  Richard Guenther  <rguenther@suse.de>
10289
10290         PR tree-optimization/46076
10291         * tree-ssa.c (useless_type_conversion_p): Conversions from
10292         unprototyped to empty argument list function types are useless.
10293
10294 2011-01-11  Richard Guenther  <rguenther@suse.de>
10295
10296         PR middle-end/45235
10297         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
10298         volatile MEMs as MEM_READONLY_P.
10299
10300 2011-01-11  Richard Guenther  <rguenther@suse.de>
10301
10302         PR tree-optimization/47239
10303         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
10304
10305 2011-01-11  Jeff Law  <law@redhat.com>
10306
10307         PR tree-optimization/47086
10308         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
10309         IVs from statements that might throw.
10310
10311 2011-01-10  Jan Hubicka  <jh@suse.cz>
10312
10313         PR lto/45375
10314         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
10315
10316 2011-01-10  Jan Hubicka  <jh@suse.cz>
10317
10318         PR lto/45375
10319         * profile.c (read_profile_edge_counts): Ignore profile inconistency
10320         when correcting profile.
10321
10322 2011-01-10  Jan Hubicka  <jh@suse.cz>
10323
10324         PR lto/46083
10325         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
10326         DECL_FINI_PRIORITY.
10327         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
10328         Restore DECL_FINI_PRIORITY.
10329
10330 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10331
10332         * doc/gimple.texi: Fix quoting of multi-word return values in
10333         @deftypefn statements.  Ensure presence of return value.  Wrap
10334         overlong @deftypefn lines.
10335         (is_gimple_operand, is_gimple_min_invariant_address): Remove
10336         descriptions of removed functions.
10337         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
10338         of multi-word return value in @deftypefn statement.
10339
10340 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10341
10342         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
10343         (Conditional Expressions, Logical Operators)
10344         (Statement and operand traversals): Do not indent smallexample
10345         code.  Fix duplicate function argument in example.
10346
10347 2011-01-10  Jeff Law  <law@redhat.com>
10348
10349         PR tree-optimization/47141
10350         * ipa-split.c (split_function): Handle case where we are
10351         returning a value and the return block has a virtual operand phi.
10352
10353 2011-01-10  Jan Hubicka  <jh@suse.cz>
10354
10355         PR tree-optimization/47234
10356         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
10357         (pass_feedback_split_functions): Declare.
10358         * passes.c (init_optimization_passes): Add ipa-split as subpass of
10359         tree-profile.
10360         * ipa-split.c (gate_split_functions): Update comments; disable
10361         split-functions for profile_arc_flag and branch_probabilities.
10362         (gate_feedback_split_functions): New function.
10363         (execute_feedback_split_functions): New function.
10364         (pass_feedback_split_functions): New global var.
10365
10366 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10367
10368         PR lto/46760
10369         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
10370         calling gimple_call_set_cannot_inline.
10371
10372 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
10373
10374         * config/darwin-sections.def: Remove unused section.
10375
10376 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
10377
10378         PR c++/47218
10379         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
10380
10381 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
10382
10383         PR objc/47232
10384         * c-parser.c (c_parser_declaration_or_fndef): Improved
10385         error message.
10386
10387 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
10388
10389         * config/i386/winnt.c (i386_pe_start_function): Make sure
10390         to switch back to function's section.
10391
10392 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
10393
10394         PR gcc/46902
10395         PR testsuite/46912
10396         * plugin.c: Move include of dlfcn.h from here...
10397         * system.h: ... to here.
10398
10399 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10400
10401         * doc/cpp.texi (C++ Named Operators): Fix markup for header
10402         file name.
10403         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
10404         two extra empty pages in PDF output.
10405
10406 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
10407
10408         PR objc/47078
10409         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
10410         for error recovery purposes behave as if it was not specified so
10411         that the default type is usd.
10412
10413 2011-01-07  Jan Hubicka  <jh@suse.cz>
10414
10415         PR tree-optmization/46469
10416         * ipa.c (function_and_variable_visibility): Clear needed flags on
10417         nodes with external decls; handle weakrefs merging correctly.
10418
10419 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
10420
10421         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
10422         not false.
10423
10424 2011-01-07  Jan Hubicka  <jh@suse.cz>
10425
10426         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
10427         and no longer claim that gold is required for linker plugin.
10428         * configure: Regenerate.
10429         * gcc.c (PLUGIN_COND): New macro.
10430         (LINK_COMMAND_SPEC): Use it.
10431         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
10432         * config.in (HAVE_LTO_PLUGIN): New.
10433         * configure.ac (--with-lto-plugin): New parameter; autodetect
10434         HAVE_LTO_PLUGIN.
10435
10436 2011-01-07  Jan Hubicka  <jh@suse.cz>
10437
10438         PR tree-optimization/46367
10439         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
10440         when we can update original.
10441         (cgraph_mark_inline_edge): Sanity check.
10442         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
10443
10444 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10445
10446         * config/spu/spu.h (ASM_COMMENT_START): Define.
10447
10448 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
10449
10450         PR driver/42445
10451         * gcc.c (%>S): New.
10452         (SWITCH_KEEP_FOR_GCC): Likewise.
10453         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
10454         (do_spec_1): Handle "%>".
10455
10456         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
10457
10458 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
10459
10460         PR target/47201
10461         * config/i386/i386.c (ix86_delegitimize_address): If
10462         simplify_gen_subreg fails, return orig_x.
10463
10464         PR bootstrap/47187
10465         * value-prof.c (gimple_stringop_fixed_value): Handle
10466         lhs of the call properly.
10467
10468 2011-01-07  Jan Hubicka  <jh@suse.cz>
10469
10470         PR lto/45375
10471         * lto-opt.c (lto_reissue_options): Set flag_shlib.
10472
10473 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
10474
10475         * target.def (function_switched_text_sections): New hook.
10476         * doc/tm.texi: Regenerated.
10477         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10478         * final.c (default_function_switched_text_sections): New.
10479         (final_scan_insn): Call function_switched_text_sections when a
10480         mid-function section change occurs.
10481         * output.h (default_function_switched_text_sections): Declare.
10482         * config/darwin-protos.h (darwin_function_switched_text_sections):
10483         Likewise.
10484         * config/darwin.c (darwin_function_switched_text_sections): New.
10485         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
10486
10487 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
10488
10489         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
10490         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
10491         the secondary code fragment when outputting for DWARF == 2.
10492
10493 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
10494
10495         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10496         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
10497         Remove.
10498         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
10499         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10500
10501 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
10502
10503         PR debug/46704
10504         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
10505         when it is not empty.
10506
10507 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
10508
10509         Bobcat Enablement
10510         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
10511         (case ${target}): Add btver1.
10512         * config/i386/driver-i386.c (host_detect_local_cpu): Let
10513         -march=native recognize btver1 processors.
10514         * config/i386/i386-c.c (ix86_target_macros_internal): Add
10515         btver1 def_and_undef
10516         * config/i386/i386.c (struct processor_costs btver1_cost): New
10517         btver1 cost table.
10518         (m_BTVER1): New definition.
10519         (m_AMD_MULTIPLE): Includes m_BTVER1.
10520         (initial_ix86_tune_features): Add btver1 tune.
10521         (processor_target_table): Add btver1 entry.
10522         (static const char *const cpu_names): Add btver1 entry.
10523         (software_prefetching_beneficial_p): Add btver1.
10524         (ix86_option_override_internal): Add btver1 instruction sets.
10525         (ix86_issue_rate): Add btver1.
10526         (ix86_adjust_cost): Add btver1.
10527         * config/i386/i386.h (TARGET_BTVER1): New definition.
10528         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
10529         (enum processor_type): Add PROCESSOR_BTVER1.
10530         * config/i386/i386.md (define_attr "cpu"): Add btver1.
10531
10532 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10533
10534         PR target/43309
10535         * config/i386/i386.c (legitimize_tls_address)
10536         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
10537         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
10538         (tls_initial_exec_64_sun): New pattern.
10539
10540 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
10541
10542         * doc/invoke.texi (Overall Options): Improve wording and markup
10543         of the description of -wrapper.
10544
10545 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
10546
10547         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
10548         rdynamic, threads): New Driver options.
10549
10550 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10551
10552         PR target/38118
10553         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
10554         if coming from .tdata.
10555         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10556
10557 2011-01-06  Jan Hubicka  <jh@suse.cz>
10558
10559         PR lto/47188
10560         * collect2.c (main): Do not enable LTOmode when plugin is active.
10561
10562 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10563
10564         PR other/45915
10565         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
10566         --version output if supported.
10567         * configure: Regenerate.
10568
10569 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
10570
10571         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
10572         Driver options.
10573
10574 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
10575
10576         PR c/47150
10577         * c-convert.c (convert): When converting a complex expression
10578         other than COMPLEX_EXPR to a different complex type, ensure
10579         c_save_expr is called instead of save_expr, unless in_late_binary_op.
10580         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
10581         when converting COMPLEX_TYPE.
10582
10583 2011-01-06  Ira Rosen  <irar@il.ibm.com>
10584
10585         PR tree-optimization/47139
10586         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
10587         only the last reduction value is used outside the loop.  Update
10588         documentation.
10589
10590 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
10591
10592         * config/rtems.opt: New.
10593         * config.gcc (*-*-rtems*): Use rtems.opt.
10594
10595 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
10596
10597         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
10598         processors do not support 3DNow instructions.
10599
10600 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10601
10602         * config/spu/spu.c (spu_option_override): Set parameter
10603         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
10604
10605 2011-01-05  Jan Hubicka  <jh@suse.cz>
10606
10607         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
10608         at the command line.
10609
10610 2011-01-05  Martin Jambor  <mjambor@suse.cz>
10611
10612         PR lto/47162
10613         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
10614         deltas on streamed outgoing edges.
10615         (output_node_opt_summary): Output info for outgoing edges only when
10616         the node is in new parameter set.
10617         (output_cgraph_opt_summary): New parameter set, passed to the two
10618         aforementioned functions.  Update its forward declaration and its
10619         callee too.
10620
10621 2011-01-05  Tom Tromey  <tromey@redhat.com>
10622
10623         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
10624         operator to c_finish_omp_atomic.
10625         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
10626         (build_unary_op): Update.
10627         (build_modify_expr): Update.
10628         (build_asm_expr): Update.
10629
10630 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10631
10632         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
10633         newly inserted insns.
10634         (pad_bb): Likewise.
10635         (spu_emit_branch_hint): Likewise.
10636         (insert_hbrp_for_ilb_runout): Likewise.
10637         (spu_machine_dependent_reorg): Call df_finish_pass after
10638         schedule_insns returns.
10639
10640 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10641
10642         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
10643
10644 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
10645
10646         PR tree-optimization/47005
10647         * tree-sra.c (struct access): Add 'non_addressable' bit.
10648         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
10649         (decide_one_param_reduction): Return 0 if the parameter is passed by
10650         reference and one of the accesses in the group is non_addressable.
10651
10652 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10653
10654         PR tree-optimization/47056
10655         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
10656         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
10657         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
10658
10659 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10660
10661         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
10662         initializer.  Skip view conversions from aggregate types.
10663
10664 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
10665
10666         PR bootstrap/47055
10667         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
10668
10669 2011-01-04  Philipp Thomas  <pth@suse.de>
10670
10671         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
10672         obvious typo.
10673
10674 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10675
10676         * function.c (thread_prologue_and_epilogue_insns): Do not crash
10677         on empty epilogue sequences.
10678
10679 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
10680
10681         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
10682         non-static): New Driver options.
10683
10684 2011-01-04  Jie Zhang  <jie@codesourcery.com>
10685
10686         PR driver/47137
10687         * gcc.c (default_compilers[]): Set combinable field to 0
10688         for all assembly languages.
10689
10690 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
10691
10692         * config/mips/loongson3a.md: New file.
10693         * config/mips/mips.md: Include loongson3a.md.
10694         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
10695         TUNE_LOONGSON_3A.
10696
10697 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
10698
10699         PR middle-end/47017
10700         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
10701         instead of convert_memory_address_addr_space on the base expression.
10702
10703 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10704
10705         * config/spu/spu.c (spu_option_override): Update error text
10706         for bad -march= / -mtune= values.
10707
10708 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10709
10710         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
10711         if branch-hint optimization will be performed.
10712
10713 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
10714
10715         PR tree-optimization/47148
10716         * ipa-split.c (split_function): Convert arguments to
10717         DECL_ARG_TYPE if possible.
10718
10719         PR tree-optimization/47155
10720         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
10721         when computing uns.
10722
10723         PR rtl-optimization/47157
10724         * combine.c (try_combine): If undobuf.other_insn becomes
10725         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
10726         and set *new_direct_jump_p too.
10727
10728 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
10729
10730         PR tree-optimization/47021
10731         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
10732
10733 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
10734
10735         * gcc.c (process_command): Update copyright notice dates.
10736         * gcov.c (print_version): Likewise.
10737         * gcov-dump.c (print_version): Likewise.
10738         * mips-tfile.c (main): Likewise.
10739         * mips-tdump.c (main): Likewise.
10740
10741 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10742
10743         PR tree-optimization/46801
10744         * tree-sra.c (type_internals_preclude_sra_p): Check whether
10745         aggregate fields start at byte boundary instead of the bit-field flag.
10746
10747 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
10748
10749         PR driver/47137
10750         * gcc.c (main): Revert revision 168407.
10751
10752 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10753
10754         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
10755
10756 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10757
10758         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
10759         vector optab to expand vector/scalar shift, update gimple to vector.
10760
10761 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10762
10763         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
10764         a thunk.
10765
10766 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10767
10768         PR tree-optimization/46984
10769         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
10770         HOST_WIDE_INT.
10771         (cgraph_create_indirect_edge): Fixed line length.
10772         (cgraph_indirect_call_info): Declare.
10773         (cgraph_make_edge_direct) Update declaration.
10774         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
10775         (cgraph_create_indirect_edge): Use it.
10776         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
10777         callees.
10778         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
10779         the new thunk_delta representation.
10780         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
10781         HOST_WIDE_INT.
10782         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
10783         (ipa_read_indirect_edge_info): Likewise.
10784         * lto-cgraph.c (output_edge_opt_summary): New function.
10785         (output_node_opt_summary): Call it on all outgoing edges.
10786         (input_edge_opt_summary): New function.
10787         (input_node_opt_summary): Call it on all outgoing edges.
10788
10789 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
10790
10791         PR driver/47137
10792         * gcc.c (main): Don't check have_o when settting combine_inputs.
10793
10794 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
10795
10796         * regrename.c: Add general comment describing the pass.
10797         (struct du_head): Remove 'length' field.
10798         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
10799         (regrename_optimize): Do not sort chains.  Rework comments, add others.
10800         Force renaming to the preferred class (if any) in the first pass and do
10801         not consider registers that belong to it in the second pass.
10802         (create_new_chain): Do not set 'length' field.
10803         (scan_rtx_reg): Likewise.
10804
10805 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
10806
10807         PR tree-optimization/47140
10808         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
10809         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
10810         to bit_value_binop.
10811
10812         PR rtl-optimization/47028
10813         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
10814         parm_birth_insn instead of at the beginning of first bb.
10815
10816 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
10817
10818         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
10819         Remove the word "see" before "@pxref".
10820         * doc/rtl.texi: Remove the word "see" before "@pxref".
10821
10822 2011-01-01  Jan Hubicka  <jh@suse.cz>
10823
10824         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
10825         memory.
10826
10827 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
10828
10829         PR target/38662
10830         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
10831
10832 \f
10833 Copyright (C) 2011 Free Software Foundation, Inc.
10834
10835 Copying and distribution of this file, with or without modification,
10836 are permitted in any medium without royalty provided the copyright
10837 notice and this notice are preserved.