OSDN Git Service

2011-08-30 Andrew Stubbs <ams@codesourcery.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
2
3         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
4         b3 and b4 unsigned.
5
6 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
7
8         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
9         when code is SET.
10
11 2011-08-30  Richard Guenther  <rguenther@suse.de>
12
13         PR middle-end/48571
14         * gimple.h (maybe_fold_offset_to_address): Remove.
15         (maybe_fold_offset_to_reference): Likewise.
16         (maybe_fold_stmt_addition): Likewise.
17         (may_propagate_address_into_dereference): Likewise.
18         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
19         array references.
20         * gimple-fold.c (canonicalize_constructor_val): Likewise.
21         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
22         addresses instead.
23         (may_propagate_address_into_dereference): Remove.
24         (maybe_fold_offset_to_array_ref): Likewise.
25         (maybe_fold_offset_to_reference): Likewise.
26         (maybe_fold_offset_to_address): Likewise.
27         (maybe_fold_stmt_addition): Likewise.
28         (fold_gimple_assign): Do not reconstruct array references but
29         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
30         MEM_REF addresses.
31         (gimple_fold_stmt_to_constant_1): Likewise.
32         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
33         * gimplify.c (gimplify_conversion): Likewise.
34         (gimplify_expr): Likewise.
35
36 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
37
38         * config/i386/fmaintrin.h: New.
39         * config.gcc: Add fmaintrin.h.
40         * config/i386/i386.c
41         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
42         <IX86_BUILTIN_VFMADDSD3>: Likewise.
43         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
44         (*fmai_fmadd_<mode>): Likewise.
45         (*fmai_fmsub_<mode>): Likewise.
46         (*fmai_fnmadd_<mode>): Likewise.
47         (*fmai_fnmsub_<mode>): Likewise.
48         * config/i386/immintrin.h: Add fmaintrin.h.
49
50 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
51
52         * genautomata.c (NO_COMB_OPTION): New macro.
53         (no_comb_flag): New static variable.
54         (gen_automata_option): Handle NO_COMB_OPTION.
55         (comb_vect_p): False if no_comb_flag.
56         (add_vect): Move computation of min/max values.  Return early if
57         no_comb_flag.
58         * doc/md.texi (automata_option): Document no-comb-vect.
59
60         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
61         "__x86.get_pc_thunk".
62
63         * bb-reorder.c (insert_section_boundary_note): Only do it if
64         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
65
66 2011-08-30  Christian Bruel  <christian.bruel@st.com>
67
68         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
69         flag_profile_use.
70         
71 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
72
73         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
74         to off.  Document switch.
75         * doc/invoke.texi (-msave-toc-indirect): Ditto.
76
77 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
78
79         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
80         conditionals and comments inside macro arguments.
81
82 20011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
83              Richard Guenther  <rguenther@suse.de>
84
85         * tree.h (constant_boolean_node): Adjust prototype.
86         * fold-const.c (fold_convert_loc): Move aggregate conversion
87         leeway down.
88         (constant_boolean_node): Make value parameter boolean, add
89         vector type handling.
90         (fold_unary_loc): Use constant_boolean_node.
91         (fold_binary_loc): Preserve types properly when folding
92         COMPLEX_EXPR <__real x, __imag x>.
93         * gimplify.c (gimplify_expr): Handle vector comparison.
94         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
95         comparison.
96         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
97         comparisons.
98
99 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
100
101         PR middle-end/48722
102         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
103         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
104         (verify_rtl_sharing): Likewise and verify_rtx_sharing
105         in there too.
106         (unshare_all_rtl_in_chain): For CALL_INSNs
107         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
108
109 2011-08-29  Richard Guenther  <rguenther@suse.de>
110
111         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
112         on the built ADDR_EXPR.
113
114 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
115
116         PR debug/50215
117         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
118         before adding ENTRY_VALUE to val->locs.
119
120 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
121
122         PR bootstrap/50218
123         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
124         comp.
125
126 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
127
128         * doc/rtl.texi (simple_return): Document.
129         (parallel, PATTERN): Here too.
130         * doc/md.texi (return): Mention it's allowed to expand to simple_return
131         in some cases.
132         (simple_return): Document standard pattern.
133         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
134         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
135         * reorg.c (function_return_label, function_simple_return_label):
136         New static variables, replacing...
137         (end_of_function_label): ... this.
138         (simplejump_or_return_p): New static function.
139         (optimize_skip, steal_delay_list_from_fallthrough,
140         fill_slots_from_thread): Use it.
141         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
142         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
143         (find_end_label): Take a new arg which is one of the two return
144         rtxs.  Depending on which, set either function_return_label or
145         function_simple_return_label.  All callers changed.
146         (make_return_insns): Make both kinds.
147         (dbr_schedule): Adjust for two kinds of end labels.
148         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
149         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
150         (gen_expand, gen_split): Use ANY_RETURN_P.
151         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
152         * rtl.def (SIMPLE_RETURN): New code.
153         * ifcvt.c (find_if_case_1): Be more careful about
154         redirecting jumps to the EXIT_BLOCK.
155         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
156         returnjump_p_1): Handle SIMPLE_RETURNs.
157         * print-rtl.c (print_rtx): Likewise.
158         * rtl.c (copy_rtx): Likewise.
159         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
160         * combine.c (simplify_set): Likewise.
161         * resource.c (find_dead_or_set_registers, mark_set_resources):
162         Likewise.
163         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
164         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
165         (init_emit_regs): Initialize simple_return_rtx.
166         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
167         force_nonfallthru_and_redirect.
168         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
169         (GR_SIMPLE_RETURN): New enum value.
170         (simple_return_rtx): New macro.
171         * basic-block.h (force_nonfallthru_and_redirect): Adjust
172         declaration.
173         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
174         argument.  All callers changed.  Be careful about what kinds of
175         returnjumps to generate.
176         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
177         ix86_pad_short_function): Likewise.
178         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
179         of return.
180         * config/mips/mips.md (any_return): New code_iterator.
181         (optab): Add cases for return and simple_return.
182         (return): Expand to a simple_return.
183         (simple_return): New pattern.
184         (*<optab>, *<optab>_internal for any_return): New patterns.
185         (return_internal): Remove.
186         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
187         a simple_return_internal.
188
189 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
190
191         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
192         (vec_extract_lo_<mode>): Prevent both operands in memory.
193         (vec_extract_lo_v16hi): Ditto.
194         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
195
196 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
197
198         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
199         (*sse2_mulv4si3): Ditto.
200         (mulv2di3): Ditto.
201         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
202         notes to REG_EQUAL.
203
204 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
205
206         PR target/50202
207         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
208         when all outputs are unused.
209         (sse4_2_pcmpistr): Ditto.
210
211 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
212
213         * config/i386/i386.md (round<mode>2): New expander.
214         * config/i386/i386.c (enum ix86_builtins): Add
215         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
216         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
217         descriptions.
218         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
219         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
220
221 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
222
223         PR middle-end/50083
224         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
225         only when TARGET_C99_FUNCTIONS.
226         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
227         <BUILT_IN_RINT{,F,L}>: Ditto.
228
229 2011-08-26  Michael Matz  <matz@suse.de>
230             Jakub Jelinek  <jakub@redhat.com>
231
232         PR lto/50165
233         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
234         don't call strlen twice, use memcpy.
235
236 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
237
238         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
239         * config/i386/bmiintrin.h: Likewise.
240         * config/i386/lzcntintrin.h: Likewise.
241
242         * config/i386/immintrin.h: Include <lzcntintrin.h>,
243         <bmiintrin.h> and <bmi2intrin.h>.
244
245 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
246
247         PR target/50166
248         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
249         * configure: Regenerate.
250
251 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
252
253         PR c/50179
254         * c-typeck.c (c_process_expr_stmt): Skip over nops and
255         call mark_exp_read even if exprv is ADDR_EXPR.
256
257 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
258
259         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
260         to df_set_dead_notes_for_mw.
261
262 2011-08-26  Richard Guenther  <rguenther@suse.de>
263
264         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
265
266 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
267             Tom de Vries  <tom@codesourcery.com>
268
269         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
270         (struct ivopts_data): Add loop_single_exit_p field.
271         (niter_for_exit): Change parameter desc_p into return value.  Return
272         desc if desc->may_be_zero.  Free desc if unused.
273         (niter_for_single_dom_exit): Change return type.
274         (find_induction_variables): Handle changed return type of
275         niter_for_single_dom_exit.  Dump may_be_zero.
276         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
277         (set_use_iv_cost): Add and handle comp parameter.
278         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
279         comp argument to set_use_iv_cost.
280         (strip_wrap_conserving_type_conversions, expr_equal_p)
281         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
282         (may_eliminate_iv): Add comp parameter.  Handle new return type of
283         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
284         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
285         and may_eliminate_iv.
286         (rewrite_use_compare): Move call to iv_elimination_compare to ...
287         (may_eliminate_iv): Here.
288         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
289
290 2011-08-26  Tom de Vries  <tom@codesourcery.com>
291
292         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
293         accessing TREE_TYPE.
294
295 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
296
297         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
298         (*ior_scc_scc_cmp): Likewise
299         (*and_scc_scc): Likewise.
300         (*and_scc_scc_cmp): Likewise.
301         (*and_scc_scc_nodom): Likewise.
302         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
303
304 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
305
306         * rtlanal.c (nonzero_bits1): Handle CLRSB.
307
308 2011-08-26  Richard Guenther  <rguenther@suse.de>
309
310         * expr.c (string_constant): Handle &MEM_REF.
311
312 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
313
314         * config/arm/arm.c (struct four_ints): New type.
315         (count_insns_for_constant): Delete function.
316         (find_best_start): Delete function.
317         (optimal_immediate_sequence): New function.
318         (optimal_immediate_sequence_1): New function.
319         (arm_gen_constant): Move constant splitting code to
320         optimal_immediate_sequence.
321         Rewrite constant negation/invertion code.
322
323 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
324
325         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
326         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
327         Remove prototype. Remove static function type.
328         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
329         Add arch attribute.
330         * config/arm/constraints.md (Pj, PJ): New constraints.
331
332 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
333
334         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
335         ("cortex_a9_multiply_long"): New and use above.  Handle all
336         long multiply cases.
337         ("cortex_a9_multiply"): Handle smmul and smmulr.
338         ("cortex_a9_mac"): Handle smmla.
339
340 2011-08-25  Richard Henderson  <rth@redhat.com>
341
342         PR 50132
343         PR 49864
344         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
345         non-constant stack adjutment.
346         * expr.c (find_args_size_adjust): Break out from ...
347         (fixup_args_size_notes): ... here.
348         * rtl.h (find_args_size_adjust): Declare.
349
350 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
351
352         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
353         sse4 and sse4_noavx.
354         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
355         (*pushdf_rex64): Change Y2 register constraint to x.
356         (*movdf_internal_rex64): Ditto.
357         (*zero_extendsidi2_rex64): Ditto.
358         (*movdi_internal): Change Y2 register constraint to x
359         and update "isa" attribute.
360         (*pushdf): Ditto.
361         (*movdf internal): Ditto.
362         (zero_extendsidi2_1): Ditto.
363         (*truncdfdf_mixed): Ditto.
364         (*truncxfdf2_mixed): Ditto.
365         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
366         register constraint to x.
367         (*movv2sf_internal_rex64): Ditto.
368         (*mov<mode>_internal): Change Y2 register constraint to x
369         and add "isa" attribute.
370         (*movv2sf_internal): Ditto.
371         (*vec_extractv2si_1): Ditto.
372         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
373         constraints to x and update "isa" attribute.
374         (*vec_interleave_highv2df): Change Y3 registerconstraint
375         to x and update "isa" attribute.
376         (*vec_interleave_lowv2df): Ditto.
377         (*vec_concatv2df): Change Y2 register constraint to x and
378         update "isa" attribute.
379         (sse2_loadld): Ditto.
380         (*vec_extractv2di_1): Ditto.
381         (*vec_dupv4si): Ditto.
382         (*vec_dupv2di): Ditto.
383         (*vec_concatv4si): Ditto.
384         (vec_concatv2di): Ditto.
385         * config/i386/constraints.md (Y2): Remove.
386         (Y3): Ditto.
387         (Y4): Ditto.
388
389 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
390
391         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
392         dump_def_use_chain): Don't declare.
393         (mark_conflict, create_new_chain): Move before users.
394         (regrename_optimize): Move to near end of file.
395
396 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
397
398         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
399         (secondary_input_reload_class): Remove Prototype.
400         * config/avr/avr.c (byte_immediate_operand): Remove Function.
401         * config/avr/avr.md (setmemhi): Use u8_operand.
402         (strlenhi): Use const0_rtx for comparison.
403         * config/avr/avr.h (avr_reg_order): Remove Declaration.
404
405 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
406
407         * config/avr/avr.c (reg_class_tab): Make local to
408         avr_regno_reg_class.  Return smallest register class available.
409
410 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
411
412         * config/avr/avr.c (STR_PREFIX_P): New Define.
413         (avr_asm_declare_function_name): Use it.
414         (avr_asm_named_section): Use it.
415         (avr_section_type_flags): Use it.
416
417 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
418
419         * doc/md.texi (automata_option): Document collapse-ndfa.
420         * genautomata.c (COLLAPSE_OPTION): New macro.
421         (collapse_flag): New static variable.
422         (struct description): New member normal_decls_num.
423         (struct automaton): New members advance_ainsn and collapse_ainsn.
424         (gen_automata_option): Check for COLLAPSE_OPTION.
425         (collapse_ndfa_insn_decl): New static variable.
426         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
427         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
428         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
429         necessary.  Use normal_decls_num rather than decls_num, remove
430         test for special decls.
431         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
432         (make_automaton); Likewise.  Use the new advance_cycle_insn member
433         of struct automaton.
434         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
435         is set.
436         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
437         transition.  Create the necessary transitions for it.
438         (create_ainsns): Return void.  Take an automaton_t argument, and
439         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
440         callers changed.
441         (COLLAPSE_NDFA_VALUE_NAME): New macro.
442         (output_tables): Output code to define it.
443         (output_internal_insn_code_evaluation): Output code to accept
444         const0_rtx as collapse-ndfa transition.
445         (output_default_latencies, output_print_reservation_func,
446         output_print_description): Reorganize loops to use normal_decls_num
447         as loop bound; remove special case for advance_cycle_insn_decl.
448         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
449         (check_automata_insn_issues): Check for collapse_ainsn.
450         (expand_automate): Allocate sufficient space.  Initialize
451         normal_decls_num.
452
453 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
454
455         * config/avr/avr.md: Fix indentation from r177991.
456
457 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
458
459         * regrename.c (struct du_head): Remove member terminated.
460         (create_new_chain): Don't initialize it.
461         (scan_rtx_reg): Don't set or test it, test the open_chains_set
462         bitmap instead.
463         (tick, this_tick): New global variables, moved out of
464         regrename_optimize.
465         (current_id, open_chains, closed_chains, open_chains_set,
466         live_in_chains, live_hard_regs): Reorder declarations.
467         (dump_def_use_chain): Move function earlier in the file.
468         (rename_chains): New static function, broken out of
469         regrename_optimize.
470         (regrename_optimize): Use it.  Remove #if 0'ed code.
471
472 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
473
474         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
475
476 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
477
478         PR target/50172
479         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
480
481 2011-08-24  Richard Guenther  <rguenther@suse.de>
482
483         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
484         ref in the basic-block case.  Move stripping array-refs
485         to the place we create an access-function for it.  Remove
486         bogus stripping down a MEM_REF to its base.
487
488 2011-08-24  Richard Guenther  <rguenther@suse.de>
489
490         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
491         with -fno-strict-overflow.
492
493 2011-08-24  Richard Guenther  <rguenther@suse.de>
494
495         * tree-vectorizer.c (vect_print_dump_info): Avoid the
496         file and location clutter when dumping to dump files.
497
498 2011-08-24  Simon Baldwin  <simonb@google.com>
499
500         * gengtype-state.c (write_state): Remove timestamped header line.
501
502 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
503
504         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
505         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
506         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
507         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
508         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
509         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
510         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
511         rules.
512         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
513
514 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
515
516         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
517
518 2011-08-24  Richard Guenther  <rguenther@suse.de>
519
520         PR tree-optimization/50067
521         * tree-data-ref.c (dr_analyze_indices): Do not add an access
522         function for a MEM_REF base that has no evolution in the loop
523         nest or that is not analyzable.
524
525 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
526
527         * ira.c (ira_init_register_move_cost): Check small subclasses
528         through ira_reg_class_max_nregs and ira_available_class_regs.
529
530 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
531
532         * config/i386/constraints.md (Yp): New register constraint.
533         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
534         Yp register constraint.
535         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
536         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
537         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
538
539 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
540
541         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
542
543 2011-08-23  Mark Heffernan  <meheff@google.com>
544
545         PR middle-end/38509
546         * common.opt (Wfree-nonheap-object): New option.
547         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
548         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
549         to warning.
550         (expand_builtin): Make warning conditional.
551
552 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
553
554         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
555         (length_immediate): Handle imulx, ishiftx and rotatex.
556         (imm_disp): Ditto.
557         (isa): Add bmi2.
558         (enabled): Handle bmi2.
559         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
560         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
561         (*bmi2_umulditi3_1): New insn pattern.
562         (*bmi2_umulsidi3_1): Ditto.
563         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
564         (*bmi2_ashl<mode>3_1): New insn pattern.
565         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
566         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
567         (*bmi2_ashlsi3_1_zext): New insn pattern.
568         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
569         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
570         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
571         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
572         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
573         flags dependency.
574         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
575         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
576         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
577         flags dependency.
578         (*bmi2_rorx<mode>3_1): New insn pattern.
579         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
580         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
581         (*rotatert<mode>3_1 splitter): Ditto.
582         (*bmi2_rorxsi3_1_zext): New insn pattern.
583         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
584         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
585         (*rotatertsi3_1_zext splitter): Ditto.
586
587 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
588
589         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
590         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
591         (ix86_handle_option): Handle OPT_mbmi2 case.
592         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
593         (x86_64-*-*): Likewise.
594         * config/i386/bmi2intrin.h: New file.
595         * config/i386/cpuid.h (bit_BMI2): New.
596         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
597         BMI2 feature.
598         * config/i386/i386-c.c (ix86_target_macros_internal):
599         Conditionally define __BMI2__.
600         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
601         Handle BMI2 option.
602         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
603         (print_reg): New code.
604         (ix86_print_operand): Likewise.
605         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
606         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
607         IX86_BUILTIN_PEXT64.
608         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
609         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
610         IX86_BUILTIN_PEXT64.
611         * config/i386/i386.h (TARGET_BMI2): New.
612         * config/i386/i386.md (UNSPEC_PDEP): New.
613         (UNSPEC_PEXT): Likewise.
614         (*bmi2_bzhi_<mode>3): Likewise.
615         (*bmi2_pdep_<mode>3): Likewise.
616         (*bmi2_pext_<mode>3): Likewise.
617         * config/i386/i386.opt (mbmi2): New.
618         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
619         is defined.
620         * doc/extend.texi: Document BMI2 built-in functions.
621         * doc/invoke.texi: Document -mbmi2.
622
623 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
624
625         PR middle-end/50161
626         * simplify-rtx.c (simplify_const_unary_operation): If
627         op is CONST_INT, don't look at op_mode, but use instead mode.
628         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
629         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
630         operation and TRUNCATE/ZERO_EXTEND if needed.
631         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
632         Document that operand mode must be same as operation mode,
633         or VOIDmode.
634         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
635         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
636         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
637         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
638         use the mode of operand for the operation and add truncate
639         or zero_extend around if needed.
640         * config/c6x/c6x.md (ctzdi2): Likewise.
641         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
642
643 2011-08-12  Michael Matz  <matz@suse.de>
644
645         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
646         (gimple_expand_cfg): Merge alignment info for coalesced pointer
647         SSA names.
648
649 2011-08-23  Richard Guenther  <rguenther@suse.de>
650
651         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
652         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
653         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
654         from ...
655         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
656         (mem_refs_may_alias_p): Adjust.
657         * tree-data-ref.h (dr_may_alias_p): Adjust.
658         * tree-data-ref.c: Include tree-affine.h.
659         (dr_analyze_indices): Do nothing for the non-loop case.
660         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
661         more cases in the non-loop case.
662         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
663         calls to dr_may_alias_p.
664         (write_alias_graph_to_ascii_ecc): Likewise.
665         (write_alias_graph_to_ascii_dot): Likewise.
666         (build_alias_set_optimal_p): Likewise.
667
668 2011-08-23  Richard Guenther  <rguenther@suse.de>
669
670         PR tree-optimization/50162
671         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
672
673 2011-08-23  Richard Guenther  <rguenther@suse.de>
674
675         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
676         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
677         (create_data_ref): Also dump access functions for the created data-ref.
678
679 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
680             Kirill Yukhin  <kirill.yukhin@intel.com>
681
682         PR target/50155
683         * config/i386/sse.md (VI_AVX2): New.
684         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
685         (*<plusminus_insn><mode>3): Ditto.
686         (<sse2_avx2>_andnot<mode>3): Ditto.
687         (*andnot<mode>3): Fix order of cond operands.
688         Add asserts for correct TARGET_xxx.
689         (*<any_logic:code><mode>3): Ditto.
690
691 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
692
693         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
694         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
695         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
696         regclass argument type to reg_class_t. Change 'max' and 'v' vars
697         and return types to unsigned char. Use reg_class_contents instead
698         of class_contents.
699         (TARGET_CLASS_MAX_NREGS): Define.
700
701 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
702
703         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
704         to make computed_jump_p return true.
705
706 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
707
708         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
709         (PICFLAG_FOR_TARGET): Substitute.
710         * aclocal.m4: Regenerate.
711         * configure: Regenerate.
712
713 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
714
715         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
716         after reading in the pch.
717
718 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
719
720         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
721         * configure: Regenerated.
722
723 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
724
725         PR tree-optimization/50133
726         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
727         from stmt instead of some statement around gsi.
728
729         PR middle-end/50141
730         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
731         innerdecl is a VAR_DECL.
732
733 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
734
735         * config/i386/avx2intrin.h: New file.
736         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
737         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
738         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
739         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
740         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
741         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
742         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
743         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
744         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
745         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
746         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
747         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
748         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
749         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
750         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
751         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
752         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
753         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
754         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
755         VOID_FTYPE_PV8SI_V8SI_V8SI,
756         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
757         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
758         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
759         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
760         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
761         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
762         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
763         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
764         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
765         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
766         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
767         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
768         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
769         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
770         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
771         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
772         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
773         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
774         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
775         V4DI_FTYPE_V4DI_INT_CONVERT,
776         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
777         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
778         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
779         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
780         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
781         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
782         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
783         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
784         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
785         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
786         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
787         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
788         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
789         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
790         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
791         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
792         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
793         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
794         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
795         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
796         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
797         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
798         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
799         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
800         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
801         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
802         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
803         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
804         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
805         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
806         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
807         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
808         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
809         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
810         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
811         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
812         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
813         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
814         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
815         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
816         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
817         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
818         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
819         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
820         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
821         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
822         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
823         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
824         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
825         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
826         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
827         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
828         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
829         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
830         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
831         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
832         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
833         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
834         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
835         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
836         IX86_BUILTIN_VBROADCASTSS_PS256,
837         IX86_BUILTIN_VBROADCASTSD_PD256,
838         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
839         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
840         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
841         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
842         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
843         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
844         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
845         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
846         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
847         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
848         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
849         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
850         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
851         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
852         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
853         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
854         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
855         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
856         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
857         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
858         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
859         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
860         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
861         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
862         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
863         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
864         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
865         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
866         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
867         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
868         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
869         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
870         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
871         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
872         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
873         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
874         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
875         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
876         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
877         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
878         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
879         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
880         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
881         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
882         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
883         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
884         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
885         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
886         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
887         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
888         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
889         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
890         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
891         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
892         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
893         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
894         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
895         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
896         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
897         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
898         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
899         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
900         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
901         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
902         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
903         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
904         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
905         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
906         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
907         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
908         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
909         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
910         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
911         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
912         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
913         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
914         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
915         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
916         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
917         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
918         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
919         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
920         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
921         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
922         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
923         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
924         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
925         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
926         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
927         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
928         IX86_BUILTIN_VBROADCASTSD_PD256,
929         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
930         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
931         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
932         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
933         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
934         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
935         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
936         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
937         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
938         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
939         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
940         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
941         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
942         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
943         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
944         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
945         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
946         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
947         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
948         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
949         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
950         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
951         IX86_BUILTIN_GATHERDIV8SI.
952         (ix86_preferred_simd_mode): Support AVX2 modes.
953         (ix86_expand_args_builtin): Support AVX2 builtins.
954         (ix86_expand_special_args_builtin): Likewise.
955         (ix86_expand_builtin): Likewise.
956         * config/i386/i386.md (UNSPEC_VPERMSI): New.
957         (UNSPEC_VPERMDF): Likewise.
958         (UNSPEC_VPERMSF): Likewise.
959         (UNSPEC_VPERMDI): Likewise.
960         (UNSPEC_VPERMTI): Likewise.
961         (UNSPEC_GATHER): Likewise.
962         (ssemodesuffix): Extend.
963         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
964         is defined.
965         * config/i386/predicates.md (const1248_operand): New.
966         * config/i386/sse.md (VI1_AVX2): New mode iterator.
967         (VI2_AVX2): Likewise.
968         (VI4_AVX2): Likewise.
969         (VI8_AVX2): Likewise.
970         (VIMAX_AVX2): Likewise.
971         (SSESCALARMODE): Likewise.
972         (VI12_AVX2): Likewise.
973         (VI24_AVX2): Likewise.
974         (VI124_AVX2): Likewise.
975         (VI248_AVX2): Likewise.
976         (VI48_AVX2): Likewise.
977         (VI4SD_AVX2): Likewise.
978         (V48_AVX2): Likewise.
979         (AVX256MODE2P): Likewise.
980         (AVXMODE48P_DI): Likewise.
981         (sse2_avx2): New mode attribute.
982         (ssse3_avx2): Likewise.
983         (sse4_1_avx2): Likewise.
984         (avx_avx2): Likewise.
985         (ssebytemode): Likewise.
986         (AVXTOSSEMODE): Likewise.
987         (AVXMODE48P_DI): Likewise.
988         (gthrfirstp): Likewise.
989         (gthrlastp): Likewise.
990         (lshift): New code_iterator
991         (lshift): New code attribute.
992         (lshift): Likewise.
993         (ssescalarmodesuffix): Update.
994         (sseunpackmode): Likewise.
995         (ssepackmode): Likewise.
996         (avx2_vec_dupv4sf): New insn pattern.
997         (avx2_vec_dupv8sf): Likewise.
998         (avx2_interleave_highv4di): Likewise.
999         (avx2_interleave_lowv4di): Likewise.
1000         (avx2_umulv4siv4di3): Likewise
1001         (*avx2_umulv4siv4di3): Likewise
1002         (avx2_pmaddwd): Likewise.
1003         (*avx2_pmaddwd): Likewise.
1004         (avx2_lshrqv4di3): Likewise.
1005         (avx2_lshlqv4di3): Likewise.
1006         (avx2_lshl<mode>3): Likewise.
1007         (avx2_<umaxmin:code><mode>3): Likewise.
1008         (*avx2_<umaxmin:code><mode>3): Likewise.
1009         (avx2_<smaxmin:code><mode>3): Likewise.
1010         (*avx2_<smaxmin:code><mode>3): Likewise.
1011         (avx2_eq<mode>3): Likewise.
1012         (*avx2_eq<mode>3): Likewise.
1013         (avx2_gt<mode>3): Likewise.
1014         (avx2_interleave_highv32qi): New.
1015         (avx2_interleave_lowv32qi): Likewise.
1016         (avx2_interleave_highv16hi): Likewise.
1017         (avx2_interleave_lowv16hi): Likewise.
1018         (avx2_interleave_highv8si): Likewise.
1019         (avx2_interleave_lowv8si): Likewise.
1020         (avx2_pshufd): Likewise.
1021         (avx2_pshufd_1): Likewise.
1022         (avx2_pshuflwv3): Likewise.
1023         (avx2_pshuflw_1): Likewise.
1024         (avx2_pshufhwv3): Likewise.
1025         (avx2_pshufhw_1): Likewise.
1026         (avx2_uavgv32qi3): Likewise.
1027         (*avx2_uavgv32qi3): Likewise.
1028         (avx2_uavgv16hi3): Likewise.
1029         (*avx2_uavgv16hi3): Likewise.
1030         (avx2_pmovmskb): Likewise.
1031         (avx2_phaddwv16hi3): Likewise.
1032         (avx2_phadddv8si3): Likewise.
1033         (avx2_phaddswv16hi3): Likewise.
1034         (avx2_phsubwv16hi3): Likewise.
1035         (avx2_phsubdv8si3): Likewise.
1036         (avx2_phsubswv16hi3): Likewise.
1037         (avx2_pmaddubsw256): Likewise.
1038         (avx2_umulhrswv16hi3): Likewise.
1039         (*avx2_umulhrswv16hi3): Likewise.
1040         (avx2_packusdw): Likewise.
1041         (avx2_pblendd<mode>): Likewise.
1042         (avx2_<code>v16qiv16hi2): Likewise.
1043         (avx2_<code>v8qiv8si2): Likewise.
1044         (avx2_<code>v8hiv8si2): Likewise.
1045         (avx2_<code>v4qiv4di2): Likewise.
1046         (avx2_<code>v4hiv4di2): Likewise.
1047         (avx2_<code>v4siv4di2): Likewise.
1048         (avx2_pbroadcast<mode>): Likewise.
1049         (avx2_permvarv8si): Likewise.
1050         (avx2_permv4df): Likewise.
1051         (avx2_permvarv8sf): Likewise.
1052         (avx2_permv4di): Likewise.
1053         (avx2_permv2ti): Likewise.
1054         (avx2_vec_dupv4df): Likewise.
1055         (avx2_vbroadcasti128_<mode>): Likewise.
1056         (avx2_vec_set_lo_v4di): Likewise.
1057         (avx2_vec_set_hi_v4di): Likewise.
1058         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
1059         (avx2_extracti128): Likewise.
1060         (avx2_inserti128): Likewise.
1061         (avx2_ashrvv8si): Likewise.
1062         (avx2_ashrvv4si): Likewise.
1063         (avx2_<lshift>vv8si): Likewise.
1064         (avx2_<lshift>v<mode>): Likewise.
1065         (avx2_<lshift>vv2di): Likewise.
1066         (avx2_gathersi<mode>): Likewise.
1067         (*avx2_gathersi<mode>): Likewise.
1068         (avx2_gatherdi<mode>): Likewise.
1069         (*avx2_gatherdi<mode>): Likewise.
1070         (avx2_gatherdi<mode>256): Likewise.
1071         (*avx2_gatherdi<mode>256): Likewise.
1072         (<plusminus_insn><mode>3): Use VI mode iterator.
1073         (*<plusminus_insn><mode>3): Use VI mode iterator.
1074         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
1075         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
1076         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
1077         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
1078         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
1079         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
1080         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
1081         Use VI2_AVX2 mode iterator.
1082         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
1083         Use VI2_AVX2 mode iterator.
1084         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
1085         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
1086         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
1087         Use VI4_AVX2 mode iterator.
1088         (ashr<mode>3): Use VI24_AVX2 mode iterator.
1089         (lshr<mode>3): Use VI248_AVX2 mode iterator.
1090         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
1091         Use VIMAX_AVX2 mode iterator.
1092         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
1093         Use VI mode iterator.
1094         (*andnot<mode>3): Update for AVX2.
1095         (*<any_logic:code><mode>3): Likewise.
1096         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
1097         Use VI1_AVX mode iterator.
1098         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
1099         Use VI2_AVX mode iterator.
1100         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
1101         Use VI1_AVX mode iterator.
1102         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
1103         Use VI8_AVX2 mode iterator.
1104         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
1105         Use VI1_AVX2 mode iterator.
1106         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
1107         Use VI124_AVX2 mode iterator.
1108         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
1109         Use SSESCALARMODE mode iterator.
1110         (abs<mode>2): Use VI124_AVX2 mode iterator.
1111         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
1112         Use VI8_AVX2 mode iterator.
1113         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
1114         Use VI1_AVX2 mode iterator.
1115         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
1116         Use VI1_AVX2 mode iterator.
1117         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
1118         Use VI2_AVX2 mode iterator.
1119         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
1120         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
1121         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
1122         avx_maskstore<ssemodesuffix><avxsizesuffix>.
1123         Use V48_AVX2 mode iterator.
1124         * doc/extend.texi: Document AVX2 built-in functions.
1125         * doc/invoke.texi: Document -mavx2.
1126
1127 2011-08-22  Matthias Klose <doko@debian.org>
1128
1129         Revert:
1130         2011-07-11  Arthur Loiret  <aloiret@debian.org>
1131                     Matthias Klose <doko@debian.org>
1132         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1133         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1134         convention.
1135         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1136
1137 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
1138
1139         PR bootstrap/50146
1140         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
1141         to #ifndef HONOR_REG_ALLOC_ORDER block.
1142
1143 2011-08-21  Richard Henderson  <rth@redhat.com>
1144
1145         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
1146         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
1147         * resource.c (next_insn_no_annul): Likewise.
1148         (mark_set_resources): Likewise.
1149         * reorg.c (delete_from_delay_slot): Likewise.
1150         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
1151         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
1152
1153 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
1154
1155         * config/i386/i386.md (any_div): Remove.
1156         (sgnprefix): Update for removal.
1157         (u): Ditto.
1158
1159 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
1160
1161         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
1162         for ira_reg_class_max_nregs.  Increase pressure by 1.
1163         (mark_pseudo_regno_subword_dead): Use allocno class
1164         for ira_reg_class_max_nregs.
1165
1166 2011-08-20  Richard Henderson  <rth@redhat.com>
1167
1168         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
1169         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
1170         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
1171         config/c6x/ltf.c: Adjust include path for soft-fp.
1172
1173 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1174
1175         PR other/46770
1176         * config.gcc (tm_file): Add initfini-array.h if
1177         .init_arrary/.fini_array are supported.
1178
1179         * crtstuff.c: Don't generate .ctors nor .dtors sections if
1180         USE_INITFINI_ARRAY is defined.
1181
1182         * output.h (default_elf_init_array_asm_out_constructor): New.
1183         (default_elf_fini_array_asm_out_destructor): Likewise.
1184         * varasm.c (elf_init_array_section): Likewise.
1185         (elf_fini_array_section): Likewise.
1186         (get_elf_initfini_array_priority_section): Likewise.
1187         (default_elf_init_array_asm_out_constructor): Likewise.
1188         (default_elf_fini_array_asm_out_destructor): Likewise.
1189
1190         * config/initfini-array.h: New.
1191
1192 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
1193
1194         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
1195         OK for ST_REGS and FP_REGS before taking those classes into account.
1196
1197 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
1198
1199         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
1200         before checking for annulled branches.
1201
1202 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
1203
1204         * config/i386/i386.c (ix86_binary_operator_ok): Use
1205         satisfies_constraint_L.
1206
1207 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
1208             Michael Matz  <matz@suse.de>
1209
1210         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
1211         trunc (a + copysign (nextafter (0.5, 0.0), a)).
1212
1213 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
1214
1215         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1216         * doc/tm.texi: Regenerate.
1217         * targhooks.c (default_preferred_output_reload_class): Don't use
1218         PREFERRED_OUTPUT_RELOAD_CLASS macro.
1219         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
1220
1221 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
1222
1223         PR tree-optimization/48739
1224         * tree-ssa.c: Include cfgloop.h.
1225         (execute_update_addresses_taken): When updating ssa, if in loop closed
1226         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
1227         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
1228
1229 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
1230
1231         PR rtl-optimization/49936
1232         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
1233         for calculation of max register move costs.
1234
1235 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1236
1237         * c-parser.c (c_parser_postfix_expression): Convert operands of
1238         __builtin_complex to their semantic types.
1239
1240 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
1241
1242         PR middle-end/49721
1243         * explow.c (convert_memory_address_addr_space): Also permute the
1244         conversion and addition of constant for zero-extend.
1245
1246 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1247
1248         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
1249         * doc/extend.texi (__builtin_complex): Document.
1250
1251 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1252
1253         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
1254         beyond conversions.
1255         (convert_mult_to_widen): Convert constant inputs to the right type.
1256         (convert_plusminus_to_widen): Don't automatically reject inputs that
1257         are not an SSA_NAME.
1258         Convert constant inputs to the right type.
1259
1260 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1261
1262         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
1263         to the correct type.
1264
1265 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1266
1267         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
1268         unsigned inputs of different modes.
1269         (convert_plusminus_to_widen): Likewise.
1270
1271 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1272
1273         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
1274         'type'.
1275         Use 'type' from caller, not inferred from 'rhs'.
1276         Don't reject non-conversion statements. Do return lhs in this case.
1277         (is_widening_mult_p): Add new argument 'type'.
1278         Use 'type' from caller, not inferred from 'stmt'.
1279         Pass type to is_widening_mult_rhs_p.
1280         (convert_mult_to_widen): Pass type to is_widening_mult_p.
1281         (convert_plusminus_to_widen): Likewise.
1282
1283 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1284
1285         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
1286         Ensure the the larger type is the first operand.
1287
1288 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1289
1290         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
1291         unsupported unsigned multiplies to signed.
1292         (convert_plusminus_to_widen): Likewise.
1293
1294 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1295
1296         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
1297         conversion statement separating multiply-and-accumulate.
1298
1299 2011-08-19  Richard Guenther  <rguenther@suse.de>
1300
1301         PR tree-optimization/50067
1302         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
1303         offset only if we accounted for it.
1304
1305 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1306
1307         * config/arm/arm.md (maddhidi4): Remove '*' from name.
1308         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
1309         * optabs.c (find_widening_optab_handler_and_mode): New function.
1310         (expand_widen_pattern_expr): Use find_widening_optab_handler.
1311         (expand_binop_directly): Likewise.
1312         (expand_binop): Likewise.
1313         * optabs.h (find_widening_optab_handler): New macro define.
1314         (find_widening_optab_handler_and_mode): New prototype.
1315         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
1316         type precision rules.
1317         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
1318         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
1319         (is_widening_mult_rhs_p): Allow widening by more than one mode.
1320         Explicitly disallow mis-matched input types.
1321         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
1322         input types to fit the new handler.
1323         (convert_plusminus_to_widen): Likewise.
1324
1325 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1326
1327         * expr.c (expand_expr_real_2): Use widening_optab_handler.
1328         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
1329         (gen_insn): $N now means $a must be wider than $b, not consecutive.
1330         * optabs.c (widened_mode): New function.
1331         (expand_widen_pattern_expr): Use widening_optab_handler.
1332         (expand_binop_directly): Likewise.
1333         (expand_binop): Likewise.
1334         * optabs.h (widening_optab_handlers): New struct.
1335         (optab_d): New member, 'widening'.
1336         (widening_optab_handler): New function.
1337         (set_widening_optab_handler): New function.
1338         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
1339         widening_optab_handler.
1340         (convert_plusminus_to_widen): Likewise.
1341
1342 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1343
1344         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
1345         pedantic.
1346         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
1347         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
1348
1349 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1350
1351         * opth-gen.awk: Do not declare target save/restore structures and
1352         functions if IN_RTS defined.
1353
1354 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1355
1356         PR target/49437
1357         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
1358         when stack was realigned in interrupt handler prologue.
1359
1360 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
1361
1362         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
1363         (quals_from_declspecs): Assert _Noreturn not present.
1364         (grokdeclarator): Handle _Noreturn.
1365         (build_null_declspecs): Initialize noreturn_p.
1366         (declspecs_add_scspec): Handle RID_NORETURN.
1367         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
1368         (c_parser_attributes): Handle RID_NORETURN.
1369         * c-tree.h (struct c_declspecs): Add noreturn_p.
1370         * ginclude/stdnoreturn.h: New.
1371         * Makefile.in (USER_H): Add stdnoreturn.h.
1372
1373 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
1374
1375         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
1376         (OPTION_MASK_ISA_AVX_UNSET): Update.
1377         (OPTION_MASK_ISA_AVX2_UNSET): New.
1378         (ix86_handle_option): Handle OPT_mavx2 case.
1379         * config/i386/cpuid.h (bit_AVX2): New.
1380         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1381         AVX2 feature.
1382         * config/i386/i386-c.c (ix86_target_macros_internal):
1383         Conditionally define __AVX2__.
1384         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
1385         Define "core-avx2" processor alias.  Handle avx2 option.
1386         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
1387         * config/i386/i386.h (TARGET_AVX2): New.
1388         * config/i386/i386.opt (mavx2): New.
1389         * doc/invoke.texi: Document -mavx2.
1390
1391 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
1392
1393         PR rtl-optimization/49890
1394         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
1395         subclasses of class which is superset of a pressure class.
1396
1397 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1398             Igor Zamyatin <igor.zamyatin@intel.com>
1399
1400         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
1401         with HOST_WIDE_INT for isa_flag.
1402         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
1403         isa variables.
1404
1405         * config/i386/i386.c (ix86_target_string): Replace int with
1406         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
1407         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
1408         (pta_flags): Removed.
1409         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
1410         (pta): Use HOST_WIDE_INT on flags.
1411         (builtin_isa): Use HOST_WIDE_INT on isa.
1412         (ix86_add_new_builtins): Likewise.
1413         (def_builtin): Use HOST_WIDE_INT on mask.
1414         (def_builtin_const): Likewise.
1415         (builtin_description): Likewise.
1416
1417         * config/i386/i386.opt (ix86_isa_flags): Replace int with
1418         HOST_WIDE_INT.
1419         (ix86_isa_flags_explicit): Likewise.
1420         (x_ix86_isa_flags_explicit): Likewise.
1421
1422 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
1423
1424         PR rtl-optimization/50107
1425         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
1426         (ira_hard_reg_in_set_p): New.
1427
1428         * ira-color.c (calculate_saved_nregs): New.
1429         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
1430         hard regs.
1431         (allocno_reload_assign, fast_allocation): Use
1432         ira_hard_reg_set_intersection_p instead of
1433         ira_hard_reg_not_in_set_p.
1434
1435         * ira.c (setup_reg_renumber): Use
1436         ira_hard_reg_set_intersection_p instead of
1437         ira_hard_reg_not_in_set_p.
1438         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
1439         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
1440
1441         * ira-costs.c (ira_tune_allocno_costs): Use
1442         ira_hard_reg_set_intersection_p instead of
1443         ira_hard_reg_not_in_set_p.
1444
1445 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1446             Igor Zamyatin <igor.zamyatin@intel.com>
1447
1448         * hwint.h (HOST_WIDE_INT_1): New.
1449
1450         * opt-functions.awk (switch_bit_fields): Initialize the
1451         host_wide_int field.
1452         (host_wide_int_var_name): New.
1453         (var_type_struct): Check and return HOST_WIDE_INT.
1454
1455         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
1456
1457         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
1458
1459         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
1460         check masks for HOST_WIDE_INT.
1461
1462         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
1463         (option_enabled): Likewise.
1464         (get_option_state): Likewise.
1465
1466         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
1467         to HOST_WIDE_INT.
1468
1469 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1470             Marc Glisse  <marc.glisse@normalesup.org>
1471
1472         PR libstdc++-v3/1773
1473         * target.def (decl_mangling_context): New C++ hook.
1474         * doc/tm.texi: Regenerate.
1475         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
1476         * config/sol2-protos.h: Group by source file.
1477         (solaris_cxx_decl_mangling_context): Declare.
1478         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
1479         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
1480         Use $<.
1481         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
1482         Add sol2-stubs.o to extra_objs.
1483
1484 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
1485
1486         PR target/50009
1487         * stor-layout.c (update_alignment_for_field): Don't ICE on
1488         packed flexible array members if ms_bitfield_layout_p.
1489
1490         PR target/50092
1491         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
1492         on the result before returning it.
1493
1494         PR debug/50017
1495         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
1496         is a debug stmt, use location of the first non-debug stmt after it.
1497
1498 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1499
1500         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
1501         (arm_size_rtx_costs): Likewise.
1502
1503 2011-08-18  Richard Guenther  <rguenther@suse.de>
1504
1505         * tree.h (tree_int_cst_msb): Remove.
1506         * tree.c (tree_int_cst_msb): Likewise.
1507         (tree_int_cst_sign_bit): Move from ...
1508         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
1509
1510 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1511
1512         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
1513         * doc/tm.texi: Regenerate.
1514         * target.def (rtx_costs): Add an opno parameter.
1515         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
1516         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
1517         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
1518         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
1519         * cse.c (COST_IN): Add an opno parameter.
1520         (notreg_cost): Likewise.  Update call to rtx_cost.
1521         (COST, fold_rtx): Update accordingly.
1522         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
1523         * expmed.c (emit_store_flag): Likewise.
1524         * optabs.c (avoid_expensive_constant): Add an opno parameter.
1525         Update call to rtx_cost.
1526         (expand_binop_directly, expand_binop): Likewise.
1527         (expand_twoval_binop, prepare_cmp_insn): Likewise.
1528         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
1529         (set_src_cost, get_full_set_src_cost): Update accordingly.
1530         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
1531         to target hook.
1532         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
1533         (default_adress_cost): Update calls to rtx_cost.
1534
1535         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
1536         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
1537         (arm_rtx_costs): Add an opno parameter.
1538         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
1539         adjust any recursive rtx-cost calls.
1540         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
1541         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
1542         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
1543         * config/cris/cris.c (cris_rtx_costs): Likewise.
1544         * config/frv/frv.c (frv_rtx_costs): Likewise.
1545         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
1546         * config/i386/i386.c (ix86_rtx_costs): Likewise.
1547         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
1548         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
1549         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
1550         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
1551         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
1552         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
1553         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
1554         * config/mep/mep.c (mep_rtx_cost): Likewise.
1555         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
1556         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
1557         (mips_zero_extend_cost): Add an opno parameter.
1558         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
1559         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
1560         to rtx_cost.
1561         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
1562         rtx-cost calls.
1563         * config/pa/pa.c (hppa_rtx_costs): Likewise.
1564         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
1565         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
1566         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
1567         (rs6000_debug_rtx_costs): Likewise.
1568         * config/s390/s390.c (s390_rtx_costs): Likewise.
1569         * config/score/score-protos.h (score_rtx_costs): Likewise.
1570         * config/score/score.c (score_rtx_costs): Likewise.
1571         * config/sh/sh.c (andcosts): Update call to rtx_cost.
1572         (sh_rtx_costs): Add an opno parameter.
1573         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
1574         * config/spu/spu.c (spu_rtx_costs): Likewise.
1575         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
1576         * config/v850/v850.c (v850_rtx_costs): Likewise.
1577         * config/vax/vax.c (vax_rtx_costs): Likewise.
1578         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
1579
1580 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1581
1582         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
1583         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
1584         rtx_cost.
1585         * calls.c (precompute_register_parameters): Likewise.
1586         * combine.c (expand_compound_operation, make_extraction): Likewise.
1587         (force_to_mode, distribute_and_simplify_rtx): Likewise.
1588         * dse.c (find_shift_sequence): Likewise.
1589         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
1590         * expr.c (compress_float_constant): Likewise.
1591         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
1592         * gcse.c (want_to_gcse_p): Likewise.
1593         * ifcvt.c (noce_try_sign_mask): Likewise.
1594         * loop-doloop.c (doloop_optimize): Likewise.
1595         * loop-invariant.c (create_new_invariant): Likewise.
1596         * optabs.c (avoid_expensive_constant): Likewise.
1597         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
1598         (try_replace_in_use, reload_cse_move2add): Likewise.
1599         * reload1.c (calculate_elim_costs_all_insns): Likewise.
1600         (note_reg_elim_costly): Likewise.
1601         * rtlanal.c (insn_rtx_cost): Likewise.
1602         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1603         * stmt.c (lshift_cheap_p): Likewise.
1604         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
1605         * config/avr/avr.c (final_prescan_insn): Likewise.
1606         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
1607         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
1608
1609 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1610
1611         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
1612         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
1613         * cfgloopanal.c (seq_cost): Likewise.
1614         * loop-invariant.c (create_new_invariant): Likewise.
1615         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
1616         (reload_cse_move2add): Use get_full_set_rtx_cost.
1617
1618 2011-08-18  Richard Guenther  <rguenther@suse.de>
1619
1620         * expr.c (get_inner_reference): Fix typo in last change.
1621
1622 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
1623             Joseph Myers  <joseph@codesourcery.com>
1624
1625         PR tree-optimization/49963
1626         * hwint.c (absu_hwi): Define.
1627         * hwint.h (absu_hwi): Declare.
1628         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
1629         of abs_hwi.
1630         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
1631         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
1632
1633 2011-08-18  Richard Guenther  <rguenther@suse.de>
1634
1635         * expr.c (get_inner_reference): Sign-extend the constant
1636         twos-complement offset before doing arbitrary precision
1637         arithmetic on it.
1638         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
1639         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
1640         to get_constraint_for_ptr_offset.
1641
1642 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1643
1644         PR target/50068
1645         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
1646
1647 2011-08-17  Richard Guenther  <rguenther@suse.de>
1648
1649         * tree.h (convert_to_ptrofftype_loc): New function.
1650         (convert_to_ptrofftype): Define.
1651         * builtins.c (expand_builtin_bzero): Use size_type_node.
1652         (fold_builtin_bzero): Likewise.
1653         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
1654         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
1655         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
1656         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
1657         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
1658         * fold-const.c (build_range_check): Negate using the original type.
1659         (fold_unary_loc): Use fold_build_pointer_plus_loc.
1660         * gimple-fold.c (gimple_adjust_this_by_delta): Use
1661         convert_to_ptrofftype.
1662         * gimplify.c (gimplify_self_mod_expr): Likewise.
1663         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
1664         (graphite_create_new_loop_guard): Likewise.
1665         * graphite-sese-to-poly.c (my_long_long): Remove.
1666         (scop_ivs_can_be_represented): Adjust.
1667         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
1668         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
1669         * tree-loop-distribution.c (build_size_arg_loc): Use
1670         size_type_node.
1671         (generate_memset_zero): Simplify.
1672         * tree-mudflap.c: Use fold_convert, not convert.
1673         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
1674         its own type.
1675         (determine_offset): Likewise for DR_STEP.
1676         (valid_initializer_p): Likewise.
1677         * tree-profile.c (prepare_instrumented_value): Convert the pointer
1678         to an integer type of same size.
1679         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
1680         to sizetype without need.
1681         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
1682         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
1683         * tree-ssa-loop-manip.c (create_iv): Likewise.
1684         (determine_exit_conditions): Adjust comment.
1685         * tree-ssa-pre.c (create_expression_by_pieces): Use
1686         convert_to_ptrofftype.
1687         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
1688         * varasm.c (array_size_for_constructor): Compute using double_ints.
1689
1690 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1691
1692         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
1693         when generating an integer result where possible.  Short-cut
1694         comparison against 0 also for QImode.
1695
1696 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1697
1698         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
1699         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
1700         prototype.
1701         * config/spu/spu.c (spu_legitimize_reload_address): New function.
1702         (spu_legitimate_address_p): Do not check displacement if the base
1703         is an eliminable stack register.
1704
1705 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
1706
1707         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
1708         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
1709         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
1710         m32c_preferred_output_reload_class): Remove.
1711         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
1712         Change rclass argument and return types to reg_class_t. Use
1713         reg_class_subset_p instead of class_sizes.
1714         (m32c_preferred_output_reload_class): Make static. Change rclass
1715         argument and return types to reg_class_t.
1716         (TARGET_PREFERRED_RELOAD_CLASS,
1717         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1718
1719 2011-08-16  Kai Tietz  <ktietz@redhat.com>
1720
1721         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
1722
1723 2011-08-16  Richard GUenther  <rguenther@suse.de>
1724
1725         PR tree-optimization/50082
1726         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
1727         warnings here, instead of ...
1728         (ssa_forward_propagate_and_combine): ... here.
1729         (forward_propagate_into_comparison_1): Adjust.
1730         (forward_propagate_into_comparison): Likewise.
1731         (forward_propagate_into_gimple_cond): Likewise.
1732         (forward_propagate_into_cond): Likewise.
1733
1734 2011-08-16  Andreas Schwab  <schwab@redhat.com>
1735
1736         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
1737         instead of ggc_alloc_zone_vec_rtvec_def.
1738
1739 2011-08-16  Richard Guenther  <rguenther@suse.de>
1740
1741         * tree.h (ptrofftype_p): New helper function.
1742         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
1743         offset verification.
1744         (verify_gimple_assign_binary): Likewise.
1745         * tree.c (build2_stat): Likewise.
1746         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
1747         (reset_evolution_in_loop): Likewise.
1748         * tree-chrec.h (build_polynomial_chrec): Likewise.
1749
1750 2011-08-16  Liang Wang  <lwang1@marvell.com>
1751
1752         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
1753         ggc_alloc_zone_vec_rtvec_def.
1754
1755 2011-08-16  Richard Guenther  <rguenther@suse.de>
1756
1757         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
1758         helper factored out from ...
1759         (extract_range_from_binary_expr_1): ... here.  Re-structure
1760         to not glob handling too different tree codes.
1761
1762 2011-08-15  Richard Henderson  <rth@redhat.com>
1763
1764         PR middle-end/50006
1765         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
1766         setting out to include allocate_stack named pattern as well.
1767         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
1768         * stmt.c (expand_stack_restore): Likewise.
1769
1770 2011-08-15  Richard Guenther  <rguenther@suse.de>
1771
1772         PR middle-end/50082
1773         * fold-const.c (maybe_canonicalize_comparison_1): Properly
1774         convert the modified operand to the other operand type.
1775         (fold_comparison): Call maybe_canonicalize_comparison_1 with
1776         useless conversions stripped from comparison operands.
1777
1778 2011-08-15  Richard Guenther  <rguenther@suse.de>
1779
1780         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
1781         (extract_range_from_unary_expr_1): Restructure.
1782
1783 2011-08-15  Richard Guenther  <rguenther@suse.de>
1784
1785         PR tree-optimization/50058
1786         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
1787         copy matching.
1788
1789 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1790
1791         PR target/50022
1792         * config/arm/arm.c (output_move_double): Add 2 parameters
1793         to count the number of insns emitted and whether to emit or not.
1794         Use the flag to decide when to emit and count number of instructions
1795         that will be emitted.
1796         Handle case where output_move_double might be called for calculating
1797         lengths with an invalid constant.
1798         (arm_count_output_move_double_insns): Define.
1799         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
1800         (output_move_double): Adjust prototype.
1801         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
1802         output_move_double.
1803         ("*movdi_vfp_cortexa8"): Likewise and add attribute
1804         for ce_count.
1805         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
1806         ("*movdf_soft_insn"): Likewise.
1807         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
1808         ("*cirrus_thumb2_movdi"): Likewise.
1809         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
1810         ("*cirrus_movdf_hard_insn"): Likewise.
1811         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
1812         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
1813         ("mov<mode>_internal VMMX"): Likewise.
1814         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
1815
1816 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
1817
1818         * config/i386/i386.c (ix86_expand_round_sse4): New function.
1819         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
1820         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
1821         for TARGET_ROUND.
1822
1823         (rint<mode>2): Simplify TARGET_ROUND check.
1824         (floor<mode>2): Ditto.
1825         (ceil<mode>2): Ditto.
1826         (btrunc<mode>2): Ditto.
1827
1828 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
1829
1830         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
1831         as mmix_preferred_output_reload_class.
1832
1833 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
1834
1835         * PR target/49903
1836         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
1837         (branch_unspec): New insn.
1838         (branch): Beauty farm.
1839         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
1840         to be IF_THEN_ELSE.
1841         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
1842         New static functions.
1843         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
1844         Use CONST_INT_P.  Beauty.
1845
1846 2011-08-12  Richard Henderson  <rth@redhat.com>
1847
1848         PR rtl-opt/49994
1849         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
1850         * sched-deps.c (init_deps): Clear it.
1851         (deps_analyze_insn): Consume it.
1852         (sched_analyze_insn): Fill it.
1853
1854 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1855
1856         PR target/48328
1857         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
1858         for tbh instructions.
1859
1860 2011-08-12  Diego Novillo  <dnovillo@google.com>
1861
1862         * data-streamer.h (streamer_write_zero): Rename from output_zero.
1863         (streamer_write_uhwi): Rename from lto_output_uleb128.
1864         (streamer_write_hwi): Rename from output_sleb128.
1865         (streamer_write_string): Rename from lto_output_string.
1866         (streamer_string_index): Rename from lto_string_index.
1867         (streamer_write_string_with_length): Rename from
1868         lto_output_string_with_length.
1869         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
1870         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
1871         (streamer_read_string): Rename from lto_input_string.
1872         (streamer_read_indexed_string): Rename from input_string_internal.
1873         (streamer_read_uhwi): Rename from lto_input_uleb128.
1874         (streamer_read_hwi): Rename from lto_input_sleb128.
1875         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
1876         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
1877         (streamer_write_enum): Rename from lto_output_enum.
1878         (streamer_read_enum): Rename from lto_input_enum.
1879         (streamer_write_record_start): Rename from output_record_start.
1880         (streamer_read_record_start): Rename from input_record_start.
1881         (streamer_write_bitpack): Rename from lto_output_bitpack.
1882         (streamer_read_bitpack): Rename from lto_input_bitpack.
1883         (streamer_write_char_stream): Rename from lto_output_1_stream.
1884         (streamer_read_uchar): Rename from lto_input_1_unsigned.
1885         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
1886         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
1887         (streamer_read_string_cst): Rename from input_string_cst.
1888         (streamer_read_chain): Rename from lto_input_chain.
1889         (streamer_alloc_tree): Rename from lto_materialize_tree.
1890         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
1891         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
1892         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
1893         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
1894         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
1895         (streamer_write_chain): Rename from lto_output_chain.
1896         (streamer_write_tree_header): Rename from lto_output_tree_header.
1897         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
1898         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
1899         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
1900         (streamer_write_builtin): Rename from lto_output_builtin_tree.
1901         (streamer_check_handled_ts_structures): Rename from
1902         check_handled_ts_structures.
1903         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
1904         (streamer_tree_cache_insert_at): Rename from
1905         lto_streamer_cache_insert_at.
1906         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
1907         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
1908         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
1909         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
1910         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
1911         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
1912         (write_identifier): Rename from output_identifier.
1913         (write_ts_common_tree_pointers): Rename from
1914         lto_output_ts_common_tree_pointers.
1915         (write_ts_vector_tree_pointers): Rename from
1916         lto_output_ts_vector_tree_pointers.
1917         (write_ts_complex_tree_pointers): Rename from
1918         lto_output_ts_complex_tree_pointers.
1919         (write_ts_decl_minimal_tree_pointers): Rename from
1920         lto_output_ts_decl_minimal_tree_pointers.
1921         (write_ts_decl_common_tree_pointers): Rename from
1922         lto_output_ts_decl_common_tree_pointers.
1923         (write_ts_decl_non_common_tree_pointers): Rename from
1924         lto_output_ts_decl_non_common_tree_pointers.
1925         (write_ts_decl_with_vis_tree_pointers): Rename from
1926         lto_output_ts_decl_with_vis_tree_pointers.
1927         (write_ts_field_decl_tree_pointers): Rename from
1928         lto_output_ts_field_decl_tree_pointers.
1929         (write_ts_function_decl_tree_pointers): Rename from
1930         lto_output_ts_function_decl_tree_pointers.
1931         (write_ts_type_common_tree_pointers): Rename from
1932         lto_output_ts_type_common_tree_pointers.
1933         (write_ts_type_non_common_tree_pointers): Rename from
1934         lto_output_ts_type_non_common_tree_pointers.
1935         (write_ts_list_tree_pointers): Rename from
1936         lto_output_ts_list_tree_pointers.
1937         (write_ts_vec_tree_pointers): Rename from
1938         lto_output_ts_vec_tree_pointers.
1939         (write_ts_exp_tree_pointers): Rename from
1940         lto_output_ts_exp_tree_pointers.
1941         (write_ts_block_tree_pointers): Rename from
1942         lto_output_ts_block_tree_pointers.
1943         (write_ts_binfo_tree_pointers): Rename from
1944         lto_output_ts_binfo_tree_pointers.
1945         (write_ts_constructor_tree_pointers): Rename from
1946         lto_output_ts_constructor_tree_pointers.
1947         (write_ts_target_option): Rename from lto_output_ts_target_option.
1948         (write_ts_translation_unit_decl_tree_pointers): Rename from
1949         lto_output_ts_translation_unit_decl_tree_pointers.
1950         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
1951         Rename from lto_streamer_cache_add_to_node_array.
1952         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
1953         (record_common_node): Rename from lto_record_common_node.
1954
1955         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
1956         declarations.
1957         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
1958         function.
1959         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
1960         unused function.
1961         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
1962         (ipa-reference.o): Likewise.
1963         * lto-section-out.c: Include data-streamer.h.
1964         * ipa-reference.c: Include data-streamer.h.
1965
1966 2011-08-12  Nick Clifton  <nickc@redhat.com>
1967
1968         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
1969         * doc/md.texi (cmpstrn): Note that the comparison stops if both
1970         fetched bytes are zero.
1971         (cmpstr): Likewise.
1972         (cmpmem): Note that the comparison does not stop if both of the
1973         fetched bytes are zero.
1974
1975 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
1976
1977         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
1978         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
1979         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
1980         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
1981         to integer_type_node.
1982         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
1983         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
1984         * builtins.c (expand_builtin_in): Ditto.
1985         (mathfn_built_in_1): Ditto.
1986         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
1987         BUILT_IN_IFLOOR.
1988         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
1989         BUILT_IN_IROUND.
1990         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
1991         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
1992         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
1993
1994 2011-08-12  Richard Guenther  <rguenther@suse.de>
1995
1996         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
1997
1998 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
1999
2000         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
2001
2002 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
2003
2004         * config/arm/arm.c (get_label_padding): New function.
2005         (create_fix_barrier, arm_reorg): Use it.
2006
2007 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
2008
2009         PR target/49781
2010         * config/i386/i386.md (*lea_5_zext): New.
2011         (*lea_6_zext): Ditto.
2012         * config/i386/predicates.md (const_32bit_mask): New predicate.
2013         (lea_address_operand): Reject AND.
2014         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
2015         const_32bit_mask immediate.
2016         (ix86_print_operand_address): Handle AND.
2017         (memory_address_length): Ditto.
2018
2019 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
2020             Brian Hackett  <bhackett1024@gmail.com>
2021
2022         * plugin.def: Add event for finish_decl.
2023         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
2024         * c-decl.c (finish_decl): Invoke callbacks on above event.
2025         * doc/plugins.texi: Document above event.
2026
2027 2011-08-11  Richard Guenther  <rguenther@suse.de>
2028
2029         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
2030         lookups, make looking through aggregate copies stronger.
2031
2032 2011-08-11  Richard Henderson  <rth@redhat.com>
2033
2034         PR bootstrap/50018
2035         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
2036
2037 2011-08-11  Richard Guenther  <rguenther@suse.de>
2038
2039         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
2040         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
2041         (vrp_visit_stmt): Likewise.
2042
2043 2011-08-11  Richard Guenther  <rguenther@suse.de>
2044
2045         PR middle-end/50040
2046         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
2047         load of the other piece with TREE_NO_WARNING.
2048         * tree-flow.h (warn_uninit): Adjust prototype.
2049         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
2050         the base variable and the expression that is used separately.
2051         Properly query all TREE_NO_WARNING flags.
2052         (struct walk_data): Remove.
2053         (warn_uninitialized_var): Likewise.
2054         (warn_uninitialized_vars): Do not walk gimple pieces but simply
2055         look at all SSA uses of the statement.  Handle unused memory
2056         separately.
2057         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
2058
2059 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
2060
2061         * config/rx/rx.md (movsicc): Allow register to register transfers.
2062         (*movsicc): Likewise.
2063         (*stcc): Restrict this pattern to EQ and NE compares.
2064         (*stcc_reg): New pattern.  Works for any comparison but only for
2065         register transfers.
2066
2067 2011-08-11   Diego Novillo  <dnovillo@google.com>
2068
2069         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
2070         Call stream_write_tree instead of output_record_start.
2071         (lto_output_ts_binfo_tree_pointers): Likewise.
2072
2073         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
2074         Convert it to a macro.
2075         (stream_read_tree): Likewise.
2076
2077         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
2078         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
2079
2080         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
2081         and tree_read_bitfields.
2082         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
2083         (lto_write_tree): Call it.
2084         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
2085         * streamer-hooks.h (struct streamer_hooks): Remove fields
2086         name, is_streamable and alloc_tree. Update all users.
2087         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
2088         (lto_materialize_tree): ... here.
2089         Handle CALL_EXPR codes.
2090         Remove call to lto_streamer_cache_append.
2091         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
2092         * tree-streamer.h (tree_read_bitfields): Declare.
2093
2094         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
2095         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
2096         * tree-streamer.h (stream_read_tree): New.  Replace all calls
2097         to lto_input_tree with it.
2098         (stream_write_tree): New.  Replace all calls to lto_output_tree,
2099         lto_output_tree_ref and lto_output_tree_or_ref with it.
2100         * lto-streamer-in.c (lto_read_tree): Inline code from
2101         lto_streamer_read_tree.
2102         (lto_input_tree): Move from tree-streamer-in.c.
2103         * lto-streamer-out.c (lto_output_tree_ref): Make static.
2104         Remove handling of NULL values for EXPR.
2105         Do not handle EXPRs that are not indexable.
2106         (lto_write_tree): Move from tree-streamer-out.c.
2107         Inline lto_streamer_write_tree.
2108         (lto_output_tree): Move from tree-streamer-out.c.
2109         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
2110         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
2111         (lto_preload_common_nodes): Likewise.
2112         Remove assertions and adjustments for nodes
2113         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
2114         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
2115         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
2116         * lto-streamer.h (lto_input_tree): Declare.
2117         (lto_output_tree_ref): Remove.
2118         * streamer-hooks.h (struct streamer_hooks): Remove fields
2119         preload_common_nodes, indexable_with_decls_p,
2120         pack_value_fields, unpack_value_fields and output_tree_header.
2121         Update all users.
2122         * tree-streamer-in.c (lto_materialize_tree): Make extern.
2123         (lto_input_tree_pointers): Likewise.
2124         (lto_read_tree): Move to lto-streamer-in.c.
2125         (lto_input_integer_cst): Make extern.
2126         (lto_get_pickled_tree): Likewise.
2127         (lto_get_builtin_tree): Likewise.
2128         (lto_input_tree): Move to lto-streamer-in.c.
2129         * tree-streamer-out.c (pack_value_fields): Make extern.
2130         (lto_output_tree_or_ref): Remove.  Replace all callers with
2131         calls to stream_write_tree.
2132         (lto_output_builtin_tree): Make extern.
2133         (lto_streamer_write_tree): Inline into lto_write_tree.
2134         (lto_output_tree_pointers): Make extern.
2135         (lto_output_tree_header): Likewise.
2136         (lto_output_integer_cst): Likewise.
2137         (lto_write_tree): Move to lto-streamer-out.c.
2138         (lto_output_tree): Likewise.
2139         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
2140         (preload_common_nodes): Likewise.
2141         (lto_streamer_cache_create): Call it.
2142         * tree-streamer.h: Include streamer-hooks.h.
2143         (stream_write_tree): New.
2144         (stream_read_tree): New.
2145         (lto_input_tree): Remove.
2146         (lto_materialize_tree): Declare.
2147         (lto_input_tree_pointers): Declare.
2148         (lto_get_pickled_tree): Declare.
2149         (lto_get_builtin_tree): Declare.
2150         (lto_input_integer_cst): Declare.
2151         (lto_output_tree_header): Declare.
2152         (pack_value_fields): Declare.
2153         (lto_output_tree_pointers): Declare.
2154         (lto_output_integer_cst): Declare.
2155         (lto_output_builtin_tree): Declare.
2156
2157 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2158
2159         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
2160         only if producer writes to the register given by regno.
2161
2162 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2163             Alexander Monakov  <amonakov@ispras.ru>
2164
2165         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
2166         (sched_get_condition_with_rev_uncached): ... this.  Factor out
2167         condition caching logic into ...
2168         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
2169         attempt to use cache for instructions with zero luid.
2170         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
2171         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
2172
2173 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2174
2175         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
2176         get_seqno_for_a_jump.  Update the caller.
2177         (get_seqno_by_succs): New.  Use it ...
2178         (get_seqno_for_a_jump): ... here to find a seqno if looking at
2179         predecessors was not sufficient.
2180         (get_seqno_by_preds): Include head in iteration range, exclude insn.
2181
2182 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2183
2184         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
2185
2186 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2187
2188         * sel-sched-ir.h (register_unavailable_p): Declare.
2189         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
2190         (set_unavailable_target_for_expr): ... here to properly test
2191         availability of a register.
2192         (speculate_expr): Ditto.
2193         * sel-sched.c (substitute_reg_in_expr): Ditto.
2194         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
2195
2196 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2197
2198         * sel-sched.c (verify_target_availability): Fix usage of
2199         hard_regno_nregs.
2200
2201 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2202
2203         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
2204         recognized by cannot_copy_insn_p hook and volatile instructions.
2205
2206 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2207
2208         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
2209
2210 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
2211
2212         * doc/md.texi (define_bypass): Say that the instruction names can
2213         be filename-style globs.
2214         * Makefile.in (FNMATCH_H): Define.
2215         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
2216         * genattrtab.c: Include fnmatch.h.
2217         (bypass_list): Change field name from "insn" to "pattern".
2218         (gen_bypass_1): Update accordingly.
2219         (process_bypasses): Use fnmatch to check for matches between
2220         insn reservations and define_bypasses.
2221         * genautomata.c: Include fnmatch.h.
2222         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
2223         and out_pattern respectively.
2224         (gen_bypass, insert_bypass): Update accordingly.
2225         (for_each_matching_insn, process_bypass_2, process_bypass_1)
2226         (process_bypass): New functions.
2227         (process_decls): Use process_bypass.  Update after field name changes.
2228
2229 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
2230
2231         PR target/49687
2232         * config/avr/avr.md (smulqi3_highpart): New insn.
2233         (umulqi3_highpart): New insn.
2234         (*subqi3.ashiftrt7): New insn.
2235         (smulhi3_highpart): New expander.
2236         (umulhi3_highpart): Nex expander.
2237         (*smulhi3_highpart_call): New insn.
2238         (*umulhi3_highpart_call): New insn.
2239         (extend_u): New code attribute.
2240         (extend_prefix): Rename code attribute to extend_su.
2241         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
2242         widening QI/HI multiply.
2243
2244 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
2245
2246         PR tree-optimization/50039
2247         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
2248         that DEF_STMT has a stmt_vec_info.
2249
2250 2011-08-10  Richard Guenther  <rguenther@suse.de>
2251
2252         * tree.h (can_trust_pointer_alignment): Remove.
2253         * builtins.c (can_trust_pointer_alignment): Remove.
2254
2255 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2256
2257         * c-typeck.c (scalar_to_vector): New function. Try scalar to
2258         vector conversion.
2259         (stv_conv): New enum for scalar_to_vector return type.
2260         (build_binary_op): Adjust.
2261         * doc/extend.texi: Description of scalar to vector expansion.
2262
2263 2011-08-10  Richard Guenther  <rguenther@suse.de>
2264
2265         * tree.h (get_pointer_alignment): Remove max-align argument.
2266         (get_object_alignment): Likewise.
2267         * builtins.c (get_object_alignment_1): Adjust.
2268         (get_object_alignment): Remove max-align argument.
2269         (get_pointer_alignment): Likewise.
2270         (expand_builtin_strlen): Adjust.
2271         (expand_builtin_memcpy): Likewise.
2272         (expand_builtin_mempcpy_args): Likewise.
2273         (expand_builtin_strncpy): Likewise.
2274         (expand_builtin_memset_args): Likewise.
2275         (expand_builtin_memcmp): Likewise.
2276         (expand_builtin_strcmp): Likewise.
2277         (expand_builtin_strncmp): Likewise.
2278         (get_builtin_sync_mem): Likewise.
2279         (fold_builtin_memset): Likewise.
2280         (fold_builtin_memory_op): Likewise.
2281         (expand_builtin_memory_chk): Likewise.
2282         * emit-rtl.c (get_mem_align_offset): Likewise.
2283         (set_mem_attributes_minus_bitpos): Likewise.
2284         * expr.c (expand_assignment): Likewise.
2285         (expand_expr_real_1): Likewise.
2286         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
2287         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
2288         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
2289         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2290         * value-prof.c (gimple_stringops_transform): Likewise.
2291
2292 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
2293
2294         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
2295         * doc/tm.texi: Regenerate.
2296
2297 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
2298
2299         PR target/29560
2300         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
2301         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
2302         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
2303         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
2304         shift target is unused.
2305
2306 2011-08-10  Richard Guenther  <rguenther@suse.de>
2307
2308         PR tree-optimization/49937
2309         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
2310         using get_object_alignment_1.
2311
2312 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
2313
2314         * config/i386/i386.c (ix86_emit_i387_round): New function.
2315         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
2316         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
2317         Use ix86_emit_i387_round to expand round function for i387 math.
2318         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
2319         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
2320
2321 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2322
2323         * config/sync.c: Move to ../libgcc.
2324         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
2325         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
2326         Remove.
2327
2328 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
2329
2330         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
2331         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
2332         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
2333         Change 'from' and 'to' arguments type to reg_class_t.
2334         (TARGET_REGISTER_MOVE_COST): Define.
2335
2336 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
2337
2338         PR target/50026
2339         Revert:
2340         PR rtl-optimization/49990
2341         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
2342         ignore classes which can not change mode.
2343         (find_costs_and_classes): Ditto.
2344
2345 2011-08-09  Richard Guenther  <rguenther@suse.de>
2346
2347         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
2348         information for ranges with only negative values.
2349         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
2350         BIT_AND_EXPR handling to handle ranges with negative values.
2351
2352 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
2353
2354         * config/i386/i386.c: Remove traling spaces.
2355         * config/i386/sse.md: Likewise.
2356         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
2357         (*fma_fmsub_<mode>): Likewise.
2358         (*fma_fnmadd_<mode>): Likewise.
2359         (*fma_fnmsub_<mode>): Likewise.
2360
2361 2011-08-09  Nick Clifton  <nickc@redhat.com>
2362
2363         * config/rx/rx.md: Disable extender peepholes at -O3.
2364
2365 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
2366
2367         PR target/49781
2368         * config/i386/i386.md (reload_noff_load): New.
2369         (reload_noff_store): Ditto.
2370         * config/i386/i386.c (ix86_secondary_reload): Use
2371         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
2372         double-word moves from/to non-offsetable addresses instead of
2373         generating XMM temporary.
2374
2375 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
2376
2377         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
2378
2379 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
2380
2381         PR tree-optimization/50014
2382         * tree-vect-loop.c (vectorizable_reduction): Get def type before
2383         calling vect_get_vec_def_for_stmt_copy ().
2384
2385 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
2386
2387         PR rtl-optimization/49990
2388         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
2389         ignore classes which can not change mode.
2390         (find_costs_and_classes): Ditto.
2391
2392 2011-08-08  Richard Henderson  <rth@redhat.com>
2393
2394         PR middle-end/49990
2395         * config/i386/i386.c (ix86_expand_prologue): Call
2396         for SEH target gen_prologue_use instead of gen_blockage
2397         at prologue's end.
2398
2399 2011-08-08  Martin Jambor  <mjambor@suse.cz>
2400
2401         PR middle-end/49923
2402         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
2403         memory alignment.
2404
2405 2011-08-08   Diego Novillo  <dnovillo@google.com>
2406
2407         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
2408         (DATA_STREAMER_H): New.
2409         (GIMPLE_STREAMER_H): New.
2410         (TREE_STREAMER_H): New.
2411         (STREAMER_HOOKS_H): New.
2412         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
2413         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
2414         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
2415         (data-streamer.o): New.
2416         (data-streamer-in.o): New.
2417         (data-streamer-out.o): New.
2418         (gimple-streamer-in.o): New.
2419         (gimple-streamer-out.o): New.
2420         (streamer-hooks.o): New.
2421         (tree-streamer.o): New.
2422         (tree-streamer-in.o): New.
2423         (tree-streamer-out.o): New.
2424         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
2425         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
2426         GIMPLE_STREAMER_H and TREE_STREAMER_H.
2427         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
2428         GIMPLE_STREAMER_H and TREE_STREAMER_H.
2429         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
2430         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
2431         (ipa-inline-analysis.o): Likewise.
2432         (ipa-pure-const.o): Likewise.
2433         * data-streamer-in.c: New.
2434         * data-streamer-out.c: New.
2435         * data-streamer.c: New.
2436         * data-streamer.h: New.
2437         * gimple-streamer-in.c: New.
2438         * gimple-streamer-out.c: New.
2439         * gimple-streamer.h: New.
2440         * ipa-inline-analysis.c: Include data-streamer.h.
2441         * ipa-prop.c: Include data-streamer.h.
2442         * ipa-pure-const.c: Include data-streamer.h.
2443         * lto-cgraph.c: Include data-streamer.h.
2444         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
2445         (lto_input_widest_uint_uleb128): Likewise.
2446         (lto_input_sleb128): Likewise.
2447         (bp_unpack_var_len_unsigned): Likewise.
2448         (bp_unpack_var_len_int): Likewise.
2449         * lto-section-out.c (lto_output_uleb128_stream): Move to
2450         data-streamer-out.c.
2451         (lto_output_widest_uint_uleb128_stream): Likewise.
2452         (lto_output_sleb128_stream): Likewise.
2453         (bp_pack_var_len_unsigned): Likewise.
2454         (bp_pack_var_len_int): Likewise.
2455         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
2456         (struct string_slot): Remove.  Update all users.
2457         (lto_tag_check_set): Make extern.
2458         (lto_tag_check_range): Move to lto-streamer.h.
2459         (lto_tag_check): Likewise.
2460         (hash_string_slot_node): Remove.  Update all users.
2461         (eq_string_slot_node): Remove.  Update all users.
2462         (string_for_index): Move to data-streamer-in.c
2463         (input_string_internal): Likewise.
2464         (input_string_cst): Move to tree-streamer-in.c.
2465         (input_identifier): Likewise.
2466         (lto_input_string): Move to data-streamer-in.c
2467         (input_record_start): Move to data-streamer.h
2468         (canon_file_name): Use new definition of struct string_slot
2469         from data-streamer.h.  Set S_SLOT.LEN.
2470         (lto_input_location): Make extern.
2471         (lto_input_chain): Move to tree-streamer-in.c.
2472         (lto_init_eh): Make extern.
2473         (input_phi): Move to gimple-streamer-in.c.
2474         (input_gimple_stmt): Likewise.
2475         (input_bb): Likewise.
2476         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
2477         (unpack_ts_real_cst_value_fields): Likewise.
2478         (unpack_ts_fixed_cst_value_fields): Likewise.
2479         (unpack_ts_decl_common_value_fields): Likewise.
2480         (unpack_ts_decl_wrtl_value_fields): Likewise.
2481         (unpack_ts_decl_with_vis_value_fields): Likewise.
2482         (unpack_ts_function_decl_value_fields): Likewise.
2483         (unpack_ts_type_common_value_fields): Likewise.
2484         (unpack_ts_block_value_fields): Likewise.
2485         (unpack_ts_translation_unit_decl_value_fields): Likewise.
2486         (unpack_value_fields): Likewise.
2487         (lto_materialize_tree): Likewise.
2488         (lto_input_ts_common_tree_pointers): Likewise.
2489         (lto_input_ts_vector_tree_pointers): Likewise.
2490         (lto_input_ts_complex_tree_pointers): Likewise.
2491         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
2492         (lto_input_ts_decl_common_tree_pointers): Likewise.
2493         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
2494         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
2495         (lto_input_ts_field_decl_tree_pointers): Likewise.
2496         (lto_input_ts_function_decl_tree_pointers): Likewise.
2497         (lto_input_ts_type_common_tree_pointers): Likewise.
2498         (lto_input_ts_type_non_common_tree_pointers): Likewise.
2499         (lto_input_ts_list_tree_pointers): Likewise.
2500         (lto_input_ts_vec_tree_pointers): Likewise.
2501         (lto_input_ts_exp_tree_pointers): Likewise.
2502         (lto_input_ts_block_tree_pointers): Likewise.
2503         (lto_input_ts_binfo_tree_pointers): Likewise.
2504         (lto_input_ts_constructor_tree_pointers): Likewise.
2505         (lto_input_ts_target_option): Likewise.
2506         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
2507         (lto_input_tree_pointers): Likewise.
2508         (lto_get_pickled_tree): Likewise.
2509         (lto_get_builtin_tree): Likewise.
2510         (lto_read_tree): Likewise.
2511         (lto_input_integer_cst): Likewise.
2512         (lto_input_tree): Likewise.
2513         * lto-streamer-out.c: Include data-streamer.h,
2514         gimple-streamer.h and streamer-hooks.h.
2515         (struct string_slot): Move to data-streamer.h.
2516         (hash_string_slot_node): Likewise.
2517         (eq_string_slot_node): Likewise.
2518         (lto_string_index): Move to data-streamer-out.c.
2519         (lto_output_string_with_length): Likewise.
2520         (lto_output_string): Likewise.
2521         (output_string_cst): Move to tree-streamer-out.c.
2522         (output_identifier): Likewise.
2523         (output_zero): Move to data-streamer-out.c
2524         (output_uleb128): Likewise.
2525         (output_sleb128): Likewise.
2526         (output_record_start): Move to data-streamer.h
2527         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
2528         (pack_ts_real_cst_value_fields): Likewise.
2529         (pack_ts_fixed_cst_value_fields): Likewise.
2530         (pack_ts_decl_common_value_fields): Likewise.
2531         (pack_ts_decl_wrtl_value_fields): Likewise.
2532         (pack_ts_decl_with_vis_value_fields): Likewise.
2533         (pack_ts_function_decl_value_fields): Likewise.
2534         (pack_ts_type_common_value_fields): Likewise.
2535         (pack_ts_block_value_fields): Likewise.
2536         (pack_ts_translation_unit_decl_value_fields): Likewise.
2537         (pack_value_fields): Likewise.
2538         (lto_output_chain): Likewise.
2539         (lto_output_ts_common_tree_pointers): Likewise.
2540         (lto_output_ts_vector_tree_pointers): Likewise.
2541         (lto_output_ts_complex_tree_pointers): Likewise.
2542         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
2543         (lto_output_ts_decl_common_tree_pointers): Likewise.
2544         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
2545         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
2546         (lto_output_ts_field_decl_tree_pointers): Likewise.
2547         (lto_output_ts_function_decl_tree_pointers): Likewise.
2548         (lto_output_ts_type_common_tree_pointers): Likewise.
2549         (lto_output_ts_type_non_common_tree_pointers): Likewise.
2550         (lto_output_ts_list_tree_pointers): Likewise.
2551         (lto_output_ts_vec_tree_pointers): Likewise.
2552         (lto_output_ts_exp_tree_pointers): Likewise.
2553         (lto_output_ts_block_tree_pointers): Likewise.
2554         (lto_output_ts_binfo_tree_pointers): Likewise.
2555         (lto_output_ts_constructor_tree_pointers): Likewise.
2556         (lto_output_ts_target_option): Likewise.
2557         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
2558         (lto_output_tree_pointers): Likewise.
2559         (lto_output_tree_header): Likewise.
2560         (lto_output_builtin_tree): Likewise.
2561         (lto_write_tree): Likewise.
2562         (lto_output_integer_cst): Likewise.
2563         (lto_output_tree): Likewise.
2564         (output_phi): Move to gimple-streamer-out.c.
2565         (output_gimple_stmt): Likewise.
2566         (output_bb): Likewise.
2567         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
2568         (streamer_hooks): Move to streamer-hooks.c.
2569         (check_handled_ts_structures): Move to tree-streamer.c
2570         (lto_streamer_cache_add_to_node_array): Likewise.
2571         (lto_streamer_cache_insert_1): Likewise.
2572         (lto_streamer_cache_insert): Likewise.
2573         (lto_streamer_cache_insert_at): Likewise.
2574         (lto_streamer_cache_append): Likewise.
2575         (lto_streamer_cache_lookup): Likewise.
2576         (lto_streamer_cache_get): Likewise.
2577         (lto_record_common_node): Likewise.
2578         (lto_preload_common_nodes): Likewise.
2579         (lto_streamer_cache_create): Likewise.
2580         (lto_streamer_cache_delete): Likewise.
2581         (streamer_hooks_init): Move to streamer-hooks.c.
2582         * lto-streamer.h: Include diagnostic.h
2583         (struct output_block, struct lto_input_block,
2584         struct data_in, struct bitpack_d): Remove forward declarations.
2585         (struct bitpack_d): Move to data-streamer.h.
2586         (struct lto_streamer_cache_d): Move to tree-streamer.h.
2587         (struct streamer_hooks): Move to streamer-hooks.h.
2588         (bp_pack_var_len_unsigned): Move to data-streamer.h.
2589         (bp_pack_var_len_int): Likewise.
2590         (bp_unpack_var_len_unsigned): Likewise.
2591         (bp_unpack_var_len_int): Likewise.
2592         (lto_input_location): Declare.
2593         (lto_tag_check_set): Declare.
2594         (lto_init_eh): Declare.
2595         (lto_output_tree_ref): Declare.
2596         (lto_output_location): Declare.
2597         (bitpack_create): Move to data-streamer.h.
2598         (bp_pack_value): Likewise.
2599         (lto_output_bitpack): Likewise.
2600         (lto_input_bitpack): Likewise.
2601         (bp_unpack_value): Likewise.
2602         (lto_output_1_stream): Likewise.
2603         (lto_input_1_unsigned): Likewise.
2604         (lto_output_int_in_range): Likewise.
2605         (lto_input_int_in_range): Likewise.
2606         (bp_pack_int_in_range): Likewise.
2607         (bp_unpack_int_in_range): Likewise.
2608         (lto_output_enum): Likewise.
2609         (lto_input_enum): Likewise.
2610         (bp_pack_enum): Likewise.
2611         (bp_unpack_enum): Likewise.
2612         * streamer-hooks.c: New.
2613         * streamer-hooks.h: New.
2614         * tree-streamer-in.c: New.
2615         * tree-streamer-out.c: New.
2616         * tree-streamer.c: New.
2617         * tree-streamer.h: New.
2618
2619 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2620
2621         * gthr-posix95.h: Remove.
2622         * gthr.h [_PTHREADS95]: Remove.
2623         * configure.ac (enable_threads): Remove posix95.
2624         * configure: Regenerate.
2625         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
2626
2627 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
2628
2629         PR target/49781
2630         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
2631         SImode addresses.
2632         (ix86_print_operand_address): Handle zero-extended addresses.
2633         (memory_address_length): Add length of addr32 prefix for
2634         zero-extended addresses.
2635         (ix86_secondary_reload): Handle moves to/from double-word general
2636         registers from/to zero-extended addresses.
2637         * config/i386/predicates.md (lea_address_operand): Reject
2638         zero-extended operands.
2639
2640 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
2641
2642         PR other/48007
2643         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
2644
2645         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
2646         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
2647
2648         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
2649         (_Unwind_Context_Reg_Val): Likewise.
2650         (_Unwind_Get_Unwind_Word): Likewise.
2651         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
2652         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
2653         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
2654         for EXTENDED_CONTEXT_BIT.
2655         (__frame_state_for): Likewise.
2656         (uw_init_context_1): Likewise.
2657         (_Unwind_GetGR): Updated.
2658         (_Unwind_SetGR): Likewise.
2659         (_Unwind_GetGRPtr): Likewise.
2660         (_Unwind_SetGRPtr): Likewise.
2661         (_Unwind_SetGRValue): Likewise.
2662         (_Unwind_GRByValue): Likewise.
2663         (uw_install_context_1): Likewise.
2664
2665         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
2666         ASSUME_EXTENDED_UNWIND_CONTEXT.
2667         * doc/tm.texi: Regenerated.
2668
2669 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2670
2671         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
2672
2673 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2674
2675         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
2676         Linux/GNU-specific.
2677         (DEC Alpha Options, -mtune): Likewise.
2678         (MIPS Options, -march): native is supported on IRIX.
2679
2680 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2681
2682         * config/sparc/driver-sparc.c: New file.
2683         * config/sparc/x-sparc: New file.
2684         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
2685         * config/sparc/sparc.opt (native): New value for enum processor_type.
2686         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
2687         * config/sparc/sparc.c (sparc_option_override): Abort if
2688         PROCESSOR_NATIVE gets here.
2689         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
2690         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
2691         DRIVER_SELF_SPECS): Define.
2692         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
2693         (SPARC Options, -mtune): Likewise.
2694         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
2695         Substitute result.
2696         * configure: Regenerate.
2697         * Makefile.in (EXTRA_GCC_LIBS): Set.
2698         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
2699         (cpp$(exeext)): Likewise.
2700
2701 2011-08-08  Richard Guenther  <rguenther@suse.de>
2702
2703         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
2704         split out from ...
2705         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
2706         by composition.
2707
2708 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
2709
2710         PR tree-optimization/50005
2711         * ipa-inline-analysis (remap_predicate): Add cast to
2712         silence signed/unsigned comparison warning.
2713
2714 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
2715
2716         * modulo-sched.c (get_sched_window): Use a table for the debug output.
2717         Print the current ii.
2718         (sms_schedule_by_order): Reduce whitespace in dump line.
2719
2720 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
2721
2722         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
2723         and one loop for successors.  Fix upper bound of memory range.
2724
2725 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
2726
2727         PR target/50001
2728         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
2729         (TARGET_INSTANTIATE_DECLS): New define.
2730
2731 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
2732             Mikael Morin   <mikael.morin@sfr.fr>
2733
2734         * Makefile.in (INCLUDES_FOR_TARGET): New.
2735         (LIBGCC2_CFLAGS): Use it.
2736         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
2737
2738 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
2739
2740         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
2741         frame->save_regs_using_mov calculation.
2742
2743 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
2744
2745         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
2746         * config/i386/sse.md (castmode): New mode attribute.
2747         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
2748         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
2749
2750 2011-08-05  Jan Hubicka  <jh@suse.cz>
2751
2752         PR middle-end/49494
2753         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
2754
2755 2011-08-05  Jan Hubicka  <jh@suse.cz>
2756
2757         PR middle-end/49500
2758         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
2759         handle aliases.
2760         (create_emultls_var):New function.
2761         (ipa_lower_emutls): Handle aliases correctly.
2762
2763 2011-08-05  Jan Hubicka  <jh@suse.cz>
2764
2765         PR middle-end/49735
2766         * ipa-inline.c (recursive_inlining): Look through aliases.
2767
2768 2011-08-05  Jason Merrill  <jason@redhat.com>
2769
2770         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
2771         declarations to beginning of function.
2772
2773 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
2774
2775         PR rtl-optimization/49900
2776         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
2777         ensure basic blocks stay in the same order.
2778
2779 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
2780
2781         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
2782         store_bit_field.
2783         (s390_expand_atomic): Same.
2784
2785 2011-08-05  Richard Henderson  <rth@redhat.com>
2786
2787         PR rtl-opt/49977
2788         * dwarf2cfi.c (scan_insn_after): Split out of ...
2789         (scan_trace): ... here.  Correctly place notes wrt sequences.
2790
2791 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
2792             Richard Henderson  <rth@redhat.com>
2793
2794         PR rtl-opt/49982
2795         * expr.c (fixup_args_size_notes): Look through no-op moves.
2796
2797 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
2798
2799         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
2800         of "m" for operand 0.  Add type and mode attribute.
2801         (*pushxf_nointeger"): Use "<" constraint for operand 0.
2802         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
2803         constraint instead of "o" for opreand 1.
2804         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
2805         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
2806         operand 0, alternative 4.
2807         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
2808
2809 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
2810
2811         * config/i386/predicates.md (lea_address_operand): Rename from
2812         no_seg_address_operand.
2813         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
2814         (*lea_1_zext): Ditto.
2815         (*lea_2): Ditto.
2816         (*lea_2_zext): Ditto.
2817
2818 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
2819
2820         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
2821         parts.base and parts.index.
2822         * config/i386/predicates.md (aligned_operand): Ditto.
2823         (cmpxchg8b_pic_memory_operand): Ditto.
2824
2825 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2826
2827         * config/soft-fp: Move to ../libgcc.
2828         * Makefile.in (SFP_MACHINE): Remove.
2829         (libgcc-support): Remove $(SFP_MACHINE) dependency.
2830         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
2831         * config/arm/t-arm-softfp: Move to
2832         ../libgcc/config/arm/t-softfp.
2833         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
2834         * config/c6x/t-c6x-softfp: Remove.
2835         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
2836         * config/i386/t-fprules-softfp: Move to
2837         ../libgcc/config/t-softfp-tf.
2838         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
2839         * config/ia64/t-fprules-softfp: Remove.
2840         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
2841         * config/lm32/t-fprules-softfp: Remove.
2842         * config/moxie/sfp-machine.h: Remove.
2843         * config/moxie/t-moxie-softfp: Remove.
2844         * config/rs6000/darwin-ldouble-format: Move to
2845         ../libgcc/config/rs6000/ibm-ldouble-format.
2846         * config/rs6000/darwin-ldouble.c: Move to
2847         ../libgcc/config/rs6000/ibm-ldouble.c
2848         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
2849         * config/rs6000/libgcc-ppc64.ver: Likewise.
2850         * config/rs6000/sfp-machine.h: Likewise.
2851         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
2852         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
2853         (LIB2FUNCS_EXTRA): Remove.
2854         (TARGET_LIBGCC2_CFLAGS): Remove.
2855         * config/rs6000/t-aix52: Likewise
2856         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
2857         $(srcdir)/config/rs6000/darwin-ldouble.c.
2858         (SHLIB_MAPFILES): Remove.
2859         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
2860         $(srcdir)/config/rs6000/darwin-ldouble.c.
2861         * config/rs6000/t-fprules-softfp: Move to
2862         ../libgcc/config/t-softfp-sfdf.
2863         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
2864         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
2865         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
2866         $(srcdir)/config/rs6000/darwin-ldouble.c.
2867         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
2868         * config/score/t-score-softfp: Remove.
2869         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
2870         soft-fp/t-softfp from tmake_file.
2871         (arm*-*-uclinux*): Likewise.
2872         (arm*-*-ecos-elf): Likewise.
2873         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
2874         (arm*-*-rtems*): Likewise.
2875         (arm*-*-elf): Likewise.
2876         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
2877         tmake_file.
2878         (moxie-*-uclinux*): Likewise.
2879         (moxie-*-rtems*): Likewise.
2880         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
2881         tmake_file.
2882         (lm32-*-rtems*): Likewise.
2883         (lm32-*-uclinux*): Likewise.
2884         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
2885         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
2886         (powerpc-*-linux*, powerpc64-*-linux*): Remove
2887         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
2888         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
2889         tmake_file.
2890         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
2891         tmake_file.
2892         (tic6x-*-uclinux): Likewise.
2893         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
2894         soft-fp/t-softfp from tmake_file.
2895         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
2896         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
2897         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
2898         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
2899         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
2900
2901 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2902
2903         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
2904         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
2905         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
2906         TPBIT, TPBIT_FUNCS.
2907         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
2908         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
2909         Remove.
2910         * config/arm/t-vxworks: Likewise.
2911         * config/arm/t-wince-pe: Likewise.
2912         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
2913         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2914         * config/bfin/t-bfin-elf: Likewise.
2915         * config/bfin/t-bfin-linux: Likewise.
2916         * config/bfin/t-bfin-uclinux: Likewise.
2917         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
2918         Remove.
2919         * config/fr30/t-fr30: Likewise.
2920         * config/frv/t-frv: Likewise.
2921         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
2922         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2923         * config/m32c/t-m32c: Likewise.
2924         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
2925         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2926         * config/mcore/t-mcore: Likewise.
2927         * config/mep/t-mep: Likewise.
2928         * config/microblaze/t-microblaze: Likewise.
2929         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
2930         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2931         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
2932         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2933         * config/mn10300/t-linux: Remove.
2934         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2935         * config/pdp11/t-pdp11: Likewise.
2936         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
2937         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
2938         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2939         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
2940         * config/rs6000/t-aix52: Likewise.
2941         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
2942         $(srcdir)/config/rs6000/ppc64-fp.c.
2943         * config/rs6000/t-fprules-fpbit: Remove.
2944         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
2945         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2946         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
2947         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2948         * config/sparc/t-elf: Likewise.
2949         * config/sparc/t-leon: Likewise.
2950         * config/sparc/t-leon3: Likewise.
2951         * config/spu/t-spu-elf: Likewise.
2952         (DPBIT_FUNCS): Remove.
2953         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2954         * config/v850/t-v850: Likewise.
2955         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
2956         (avr-*-*): Likewise.
2957         (h8300-*-rtems*): Set libgcc_tm_file.
2958         (h8300-*-elf*): Likewise.
2959         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
2960         tmake_file.
2961         (powerpc-*-eabisim*): Likewise.
2962         (powerpc-*-elf*): Likewise.
2963         (powerpc-*-eabialtivec*): Likewise.
2964         (powerpc-xilinx-eabi*): Likewise.
2965         (powerpc-*-eabi*): Likewise.
2966         (powerpc-*-rtems*): Likewise.
2967         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
2968         (powerpcle-*-elf*): Likewise.
2969         (powerpcle-*-eabisim*): Likewise.
2970         (powerpcle-*-eabi*): Likewise.
2971         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
2972         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
2973         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
2974         Remove.
2975
2976 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2977
2978         * Makefile.in (UNWIND_H): Remove.
2979         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
2980         ../libgcc/Makefile.in.
2981         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
2982         (LIBUNWINDDEP): Remove.
2983         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
2984         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
2985         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
2986         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
2987         Don't copy $(UNWIND_H).
2988         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
2989         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
2990         * aclocal.m4: Regenerate.
2991         * configure: Regenerate.
2992         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
2993         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
2994         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
2995         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
2996         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
2997         * config/arm/libunwind.S, config/arm/pr-support.c,
2998         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
2999         ../libgcc/config/arm.
3000         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
3001         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
3002         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
3003         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
3004         ($(T)frvend$(objext)): Likewise.
3005         * config/ia64/t-glibc (LIB2ADDEH): Remove.
3006         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
3007         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
3008         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
3009         ../libgcc/config/ia64.
3010         * config/ia64/t-hpux (LIB2ADDEH): Remove.
3011         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
3012         * config/ia64/t-vms (LIB2ADDEH): Remove.
3013         * config/ia64/vms.h (UNW_IVMS_MODE,
3014         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
3015         * config/picochip/t-picochip (LIB2ADDEH): Remove.
3016         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
3017         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
3018         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
3019         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
3020         $(srcdir)/../libgcc to refer to unwinder sources.
3021         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
3022         * config/t-darwin (LIB2ADDEH): Remove.
3023         * config/t-freebsd (LIB2ADDEH): Remove.
3024         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
3025         * config/t-libunwind-elf: Move to ../libgcc/config.
3026         * config/t-linux (LIB2ADDEH): Remove.
3027         * config/t-sol2 (LIB2ADDEH): Remove.
3028         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
3029         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
3030
3031 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
3032
3033         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
3034
3035         * doc/invoke.texi: Document core-avx-i.
3036
3037 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3038
3039         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
3040
3041 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
3042
3043         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
3044         result of multiple results reduction when extracting the final
3045         value using scalar code.
3046
3047 2011-08-05  Richard Guenther  <rguenther@suse.de>
3048
3049         PR tree-optimization/49984
3050         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
3051
3052 2011-08-05  Richard Guenther  <rguenther@suse.de>
3053
3054         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
3055         return true for constant integer ranges.
3056         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
3057         BIT_IOR_EXPR handling.
3058
3059 2011-08-04  Kai Tietz  <ktietz@redhat.com>
3060
3061         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
3062         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
3063
3064 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
3065
3066         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
3067         pattern def statement, and its access macro.
3068         (NUM_PATTERNS): Set to 5.
3069         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3070         pattern def statement.
3071         (vect_transform_loop): Likewise.
3072         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
3073         function vect_recog_over_widening_pattern ().
3074         (vect_operation_fits_smaller_type): New function.
3075         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
3076         Likewise.
3077         (vect_pattern_recog_1): Move the code that marks pattern
3078         statements to vect_mark_pattern_stmts (), and call it.  Update
3079         documentation.
3080         * tree-vect-stmts.c (vect_supportable_shift): New function.
3081         (vect_analyze_stmt): Handle pattern def statement.
3082         (new_stmt_vec_info): Initialize pattern def statement.
3083
3084 2011-08-04  Richard Henderson  <rth@redhat.com>
3085
3086         PR target/49964
3087         * config/i386/i386.c (ix86_expand_call): Don't create nested
3088         PARALLELs for TARGET_VZEROUPPER.
3089         (ix86_split_call_vzeroupper): Fix extraction of the original call.
3090         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
3091         recognize nested PARALLELs.
3092         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
3093         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
3094         *sibcall_value_pop_vzeroupper): Likewise.
3095
3096 2011-08-04  Richard Henderson  <rth@redhat.com>
3097
3098         PR middle-end/49968
3099         * calls.c (expand_call): Use fixup_args_size_notes for
3100         emit_stack_restore.
3101         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
3102         in non-standard modes.
3103
3104 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
3105
3106         * gcc.c (self_spec): New variable.
3107         (static_specs): Add self_spec.
3108         (main): Call do_self_spec on "self_spec" specs after reading
3109         user specs files.  Move compare_debug handling right after that.
3110
3111 2011-08-04  Richard Guenther  <rguenther@suse.de>
3112
3113         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
3114         (value_range_nonnegative_p): New function.
3115         (ssa_name_nonnegative_p): Use it.
3116         (value_range_constant_singleton): New function.
3117         (op_with_constant_singleton_value_range): Use it.
3118         (extract_range_from_binary_expr_1): New function, split out from ...
3119         (extract_range_from_binary_expr): ... this.  Remove fallback
3120         constant folding done here.
3121
3122 2011-08-04  Richard Guenther  <rguenther@suse.de>
3123
3124         PR tree-optimization/49806
3125         * tree-vrp.c (op_with_boolean_value_range_p): New function.
3126         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
3127         a new statement for a final conversion to bool.
3128
3129 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
3130
3131         * gengtype-state.c: Include "bconfig.h" if
3132         GENERATOR_FILE is defined, "config.h" otherwise.
3133         * gengtype.c: Likewise.
3134         * gengtype-lex.l: Likewise.
3135         * gengtype-parse.c: Likewise.
3136         * Makefile.in (gengtype-lex.o-warn): New variable.
3137         (plugin_resourcesdir): Likewise.
3138         (plugin_bindir): Likewise.
3139         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
3140         (MOSTLYCLEANFILES): Add gengtype$(exeext).
3141         (native): Depend on gengtype$(exeext) is $enable_plugin
3142         is set to "yes".
3143         (gtype.state): Depend on s-gtype. Use temporary file.
3144         (gengtype-lex.o): New rule.
3145         (gengtype-parse.o): Likewise.
3146         (gengtype-state.o): Likewise.
3147         (gengtype$(exeext)): Likewise.
3148         (install-gengtype): Likewise.
3149         (gengtype.o): Likewise.
3150         (build/gengtype.o): Depend on version.h.
3151         (build/gengtype-state): Depend on double-int.h, version.h,
3152         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
3153         (install-plugin): Depend on install-gengtype.
3154
3155 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
3156
3157         PR middle-end/49905
3158         * tree.h (init_attributes): New prototype.
3159         * attribs.c (init_attributes): No longer static.
3160
3161 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3162
3163         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
3164         maybe_suffix.
3165
3166 2011-08-03   David Li  <davidxl@google.com>
3167
3168         * tree-optimize.c (execute_fixup_cfg): Fix up entry
3169         outgoing edge counts after inlining.
3170
3171 2011-08-03   David Li  <davidxl@google.com>
3172
3173         * profile.c (compute_branch_probabilities): Compute
3174         function frequency after profile annotation.
3175
3176 2011-08-04  Alan Modra  <amodra@gmail.com>
3177
3178         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
3179         use_backchain_to_restore_sp initialisation.
3180         (rs6000_legitimate_offset_address_p): Simplify offset test.
3181
3182 2011-08-03  Richard Henderson  <rth@redhat.com>
3183
3184         * config/spu/spu.md: Use define_c_enum instead of define_constants.
3185         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
3186         (UNSPECV_NOP): New.
3187
3188 2011-08-03  Richard Henderson  <rth@redhat.com>
3189
3190         PR target/34888
3191         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
3192
3193 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
3194
3195         PR tree-optimization/49948
3196         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
3197
3198 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
3199
3200         * config/m32c/m32c.c (class_sizes): Remove.
3201         (reduce_class): Change arguments and return type to reg_class_t.
3202         Change type cc var to HARD_REG_SET. Change type best var to
3203         reg_class_t. Change type best_size var to unsigned int. Remove
3204         initialization class_sizes var. Use reg_class_size array instead
3205         of class_sizes. Use reg_class_contents array instead
3206         of class_contents.
3207
3208 2011-08-03  Richard Guenther  <rguenther@suse.de>
3209
3210         PR middle-end/49958
3211         * fold-const.c (fold_binary_loc): Only associate
3212         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
3213         overflow wraps.
3214
3215 2011-08-03  Alan Modra  <amodra@gmail.com>
3216
3217         PR rtl-optimization/49941
3218         * jump.c (mark_jump_label): Comment.
3219         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
3220         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
3221         (mark_used_flags): Don't mark RETURN.
3222
3223 2011-08-03  Richard Guenther  <rguenther@suse.de>
3224
3225         PR tree-optimization/49938
3226         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
3227         deal with a POLYNOMIAL_CHREC.
3228
3229 2011-08-03  Revital Eres  <revital.eres@linaro.org>
3230
3231         * modulo-sched.c (calculate_stage_count,
3232         calculate_must_precede_follow, get_sched_window,
3233         try_scheduling_node_in_cycle, remove_node_from_ps): Add
3234         declaration.
3235         (update_node_sched_params, set_must_precede_follow, optimize_sc):
3236         New functions.
3237         (reset_sched_times): Call update_node_sched_params.
3238         (sms_schedule): Call optimize_sc.
3239         (get_sched_window): Change function arguments.
3240         (sms_schedule_by_order): Update call to get_sched_window.
3241         Call set_must_precede_follow.
3242         (calculate_stage_count): Add function argument.
3243
3244 2011-08-02  Richard Henderson  <rth@redhat.com>
3245
3246         PR target/49864
3247         PR target/49879
3248         * reg-notes.def (REG_ARGS_SIZE): New.
3249         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
3250         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
3251         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
3252         different stack levels.
3253         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
3254         (maybe_move_args_size_note): New.
3255         (combine_stack_adjustments_for_block): Use it.
3256         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
3257         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
3258         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
3259         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
3260         (cur_cfa): New.
3261         (queued_args_size): Remove.
3262         (add_cfi_args_size): Assert size is non-negative.
3263         (stack_adjust_offset, dwarf2out_args_size): Remove.
3264         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
3265         (notice_args_size, notice_eh_throw): New.
3266         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
3267         (dwarf2out_frame_debug_adjust_cfa): Likewise.
3268         (dwarf2out_frame_debug_cfa_offset): Likewise.
3269         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
3270         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
3271         (change_cfi_row): Don't emit args_size.
3272         (maybe_record_trace_start_abnormal): Split out from ...
3273         (maybe_record_trace_start): Here.  Set args_size_undefined.
3274         (create_trace_edges): Update to match.
3275         (scan_trace): Handle REG_ARGS_SIZE.
3276         (connect_traces): Connect args_size between EH insns.
3277         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
3278         * explow.c (suppress_reg_args_size): New.
3279         (adjust_stack_1): Split out from ...
3280         (adjust_stack): ... here.
3281         (anti_adjust_stack): Use it.
3282         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
3283         * expr.c (mem_autoinc_base): New.
3284         (fixup_args_size_notes): New.
3285         (emit_single_push_insn_1): Rename from emit_single_push_insn.
3286         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
3287         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
3288         * reload1.c (reload_as_needed): Likewise.
3289         * rtl.h (fixup_args_size_notes): Declare.
3290
3291 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
3292
3293         PR bootstrap/49914
3294         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
3295         of abs.
3296         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3297         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
3298
3299 2011-08-02  Richard Henderson  <rth@redhat.com>
3300
3301         * config/h8300/h8300.c (push, pop): Return the insn.
3302         (h8300_swap_into_er6): Generate correct unwind info.
3303         (h8300_swap_out_of_er6): Likewise.
3304         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
3305         complex cfa expression.
3306         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
3307
3308 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
3309
3310         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3311
3312 2011-08-02  Richard Henderson  <rth@redhat.com>
3313
3314         PR target/49878
3315         * config/h8300/h8300.c (h8300_move_ok): New.
3316         * config/h8300/h8300-protos.h: Declare it.
3317         * config/h8300/h8300.md (P): New mode iterator.
3318         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
3319         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
3320         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
3321         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
3322         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
3323         and pushqi1_h8300hs_normal; use PRE_MODIFY and
3324         register_no_sp_elim_operand.
3325         (*pushhi1_h8300hs_<P>): Similarly.
3326         (pushqi1, pushhi1, pushhi1_h8300): Remove.
3327         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
3328
3329 2011-08-02  Richard Henderson  <rth@redhat.com>
3330
3331         PR target/49881
3332         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
3333
3334 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
3335
3336         * c-parser.c (enum c_parser_prec): New enum, moved from within
3337         c_parser_binary_expression.
3338         (c_parser_binary_expression): Add PREC argument.  Stop parsing
3339         if operator has lower or equal precedence than PREC.
3340         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
3341         callers.
3342         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
3343         Adjust c_finish_omp_atomic caller.
3344         (c_parser_omp_taskyield): New function.
3345         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
3346         (c_parser_omp_clause_name): Handle final and mergeable clauses.
3347         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
3348         functions.
3349         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
3350         and PRAGMA_OMP_CLAUSE_MERGEABLE.
3351         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
3352         (c_parser_omp_clause_reduction): Handle min and max.
3353         * c-typeck.c (c_finish_omp_clauses): Don't complain about
3354         const qualified predetermined vars in firstprivate clause.
3355         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3356         Handle MIN_EXPR and MAX_EXPR.
3357         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
3358         and OMP_CLAUSE_MERGEABLE.
3359         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
3360         and OMP_ATOMIC_CAPTURE_NEW.
3361         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
3362         OMP_CLAUSE_MERGEABLE.
3363         (omp_clause_code_name): Likewise.
3364         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3365         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
3366         and OMP_CLAUSE_MERGEABLE.
3367         (OMP_CLAUSE_FINAL_EXPR): Define.
3368         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
3369         OMP_CLAUSE_MERGEABLE.
3370         (expand_task_call): Likewise.
3371         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
3372         (expand_omp_atomic_fetch_op): Handle cases where old or new
3373         value is needed afterwards.
3374         (expand_omp_atomic): Call expand_omp_atomic_load resp.
3375         expand_omp_atomic_store.
3376         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
3377         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
3378         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
3379         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3380         * tree-nested.c (convert_nonlocal_omp_clauses,
3381         convert_local_omp_clauses): Likewise.
3382         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
3383         OMP_ATOMIC_CAPTURE_NEW): New.
3384         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
3385         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
3386         New inlines.
3387         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
3388         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
3389         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3390
3391 2011-08-02  Kai Tietz  <ktietz@redhat.com>
3392
3393         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
3394         boolean-type.
3395         (ssa_forward_propagate_and_combine): Interprete result of
3396         forward_propagate_comparison.
3397         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
3398         boolean-typed operands for comparisons.
3399
3400 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
3401
3402         * config/avr/libgcc.S: Gather related function in the
3403         same input section.
3404         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
3405         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
3406         references.
3407         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
3408         __udivmodsi4, __divmodsi4, __prologue_saves__,
3409         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
3410         __do_copy_data, __do_clear_bss, __do_global_ctors,
3411         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
3412
3413 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
3414
3415         PR target/47766
3416         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
3417         (stack_protect_test): The pattern compares ptr_mode value.
3418
3419 2011-08-02  Alan Modra  <amodra@gmail.com>
3420
3421         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
3422         note for save_LR_around_toc_setup sequence.
3423
3424 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3425
3426         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
3427
3428 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
3429             Joseph Myers  <joseph@codesourcery.com>
3430
3431         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
3432         * hwint.c: Include diagnostic-core.h.
3433         (abs_hwi): New.
3434         (gcd): Moved here...
3435         (pos_mul_hwi): New.
3436         (mul_hwi): New.
3437         (least_common_multiple): Moved here...
3438         * hwint.h (gcd): ... from here.
3439         (least_common_multiple): ... from here.
3440         (HOST_WIDE_INT_MIN): New.
3441         (HOST_WIDE_INT_MAX): New.
3442         (abs_hwi): Declared.
3443         (gcd): Declared.
3444         (pos_mul_hwi): Declared.
3445         (mul_hwi): Declared.
3446         (least_common_multiple): Declared.
3447         * omega.c (check_pos_mul): Removed.
3448         (check_mul): Removed.
3449         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
3450         mul_hwi instead of check_mul.
3451
3452 2011-08-01  Richard Henderson  <rth@redhat.com>
3453
3454         PR target/49881
3455         * config/avr/avr.h (PUSH_ROUNDING): New.
3456         * config/avr/avr.md (pushqi1): Rename from *pushqi.
3457         (*pushhi, *pushsi, *pushsf): Remove.
3458         (MPUSH): New mode iterator.
3459         (push<MPUSH>1): New expander.
3460
3461 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
3462
3463         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
3464         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
3465         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
3466         mmix_preferred_output_reload_class): Remove.
3467         * config/mmix/mmix.c (mmix_preferred_reload_class,
3468         mmix_preferred_output_reload_class): Make static. Change rclass
3469         argument and return type to reg_class_t.
3470         (TARGET_PREFERRED_RELOAD_CLASS,
3471         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3472
3473 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
3474
3475         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
3476         handling.
3477
3478 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3479
3480         PR target/47766
3481         * config/i386/i386.md (PTR): New.
3482         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
3483         (stack_protect_test): Likewise.
3484         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
3485         (stack_tls_protect_set_<mode>): Likewise.
3486         (stack_tls_protect_test_<mode>): Likewise.
3487
3488 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
3489
3490         PR target/49927
3491         * config/i386/i386.c (ix86_address_subreg_operand): New.
3492         (ix86_decompose_address): Use ix86_address_subreg_operand.
3493         (ix86_legitimate_address_p): Do not assert that subregs satisfy
3494         register_no_elim_operand in DImode.
3495
3496 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
3497
3498         PR tree-optimization/49926
3499         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
3500         in a chain doesn't have uses both inside and outside the loop.
3501
3502 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
3503
3504         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
3505         * config/avr/avr-devices.c (avr_mcu_types): Use it.
3506         * config/avr/avr-mcus.def (AVR_MCU): Use it.
3507         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
3508         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
3509         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
3510         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
3511         to detect if XJMP must not be skipped.
3512
3513 2011-08-02  Alan Modra  <amodra@gmail.com>
3514
3515         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
3516         Delete.
3517         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
3518         (rs6000_emit_prologue): Don't prematurely return when
3519         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
3520         save_toc_in_prologue case.
3521         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
3522         calls_alloca.
3523
3524 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
3525
3526         * config/avr/avr-devices.c: Delete SVN property svn:executable.
3527         * config/avr/predicates.md: Ditto.
3528         * config/avr/driver-avr.c: Ditto.
3529         * config/avr/genopt.sh: Set SVN property svn:executable to *.
3530
3531 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3532
3533         * calls.c (emit_library_call_value_1): Declare size only if
3534         BLOCK_REG_PADDING is defined.
3535
3536 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
3537
3538         PR target/49547
3539         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
3540         (x86_64-*-*): Likewise.
3541         * config/i386/i386.opt (mlzcnt): New.
3542         * config/i386/abmintrin.h: File removed.
3543         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
3544         * config/i386/lzcntintrin.h: ... here.  New file.
3545         (__lzcnt): Rename to ...
3546         (__lzcnt32): ... this.
3547         * config/i386/bmiintrin.h (head): Update copyright year.
3548         (__lzcnt_u16): Removed.
3549         (__lzcnt_u32): Likewise.
3550         (__lzcnt_u64): Likewise.
3551         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
3552         is defined, remove abmintrin.h.
3553         * config/i386/cpuid.h (bit_LZCNT): New.
3554         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3555         LZCNT feature.
3556         * config/i386/i386-c.c (ix86_target_macros_internal): Define
3557         __LZCNT__ if needed.
3558         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
3559         (ix86_option_override_internal): Handle LZCNT option.
3560         (ix86_valid_target_attribute_inner_p): Likewise.
3561         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
3562         * config/i386/i386.h (TARGET_LZCNT): New.
3563         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
3564         * config/i386/i386.md (clz<mode>2): Update insn constraint.
3565         (clz<mode>2_lzcnt): Likewise.
3566         * doc/invoke.texi: Mention -mlzcnt option.
3567         * doc/extend.texi: Likewise.
3568
3569 2011-08-01  Julian Brown  <julian@codesourcery.com>
3570
3571         * configure.ac (fixed-point): Add ARM support.
3572         * configure: Regenerate.
3573         * config/arm/arm.c (arm_fixed_mode_set): New struct.
3574         (arm_set_fixed_optab_libfunc): New.
3575         (arm_set_fixed_conv_libfunc): New.
3576         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
3577         ARM-specific names.
3578         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
3579         return values in SImode.
3580         (arm_return_in_msb): Return fixed-point types in the msb.
3581         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
3582         upwards.
3583         (arm_scalar_mode_supported_p): Support fixed-point modes.
3584         (arm_vector_mode_supported_p): Support vector fixed-point modes.
3585         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
3586         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
3587         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
3588         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
3589         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
3590         New mode iterators.
3591         (qaddsub_suf): New mode attribute.
3592         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
3593         vector modes.
3594         * config/arm/predicates.md (sat_shift_operator): New predicate.
3595         * config/arm/arm-fixed.md: New.
3596         * config/arm/arm.md: Include arm-fixed.md.
3597         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
3598
3599 2011-08-01  Julian Brown  <julian@codesourcery.com>
3600
3601         * calls.c (emit_library_call_value_1): Support padding for libcall
3602         arguments and return values.
3603         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
3604         downwards in big-endian mode.
3605
3606 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3607
3608         PR debug/49887
3609         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
3610         * config/sol2-protos.h: Likewise.
3611         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
3612         solaris_code_end.
3613         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
3614         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
3615         solaris_file_end.
3616         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
3617
3618 2011-08-01  Julian Brown  <julian@codesourcery.com>
3619
3620         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
3621
3622 2011-08-01  Julian Brown  <julian@codesourcery.com>
3623
3624         * final.c (output_addr_const): Print fixed-point constants as
3625         decimal not hex.
3626
3627 2011-08-01  Richard Guenther  <rguenther@suse.de>
3628
3629         * stor-layout.c (initialize_sizetypes): Properly sign-extend
3630         bitsiztype TYPE_MAX_VALUE.
3631
3632 2011-08-01  Julian Brown  <julian@codesourcery.com>
3633
3634         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
3635         comparison helpers.
3636
3637 2011-07-31  Richard Henderson  <rth@redhat.com>
3638
3639         * config/h8300/crti.asm: Add flags to .section directive.
3640         * config/h8300/crtn.asm: Likewise.
3641
3642 2011-07-31  Richard Henderson  <rth@redhat.com>
3643
3644         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
3645         * tree.c (build_common_tree_nodes): Likewise.
3646
3647 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
3648
3649         PR target/49880
3650         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
3651         (divsi3_i1): Likewise.
3652
3653 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3654
3655         PR tree-optimization/49749
3656         * tree-ssa-reassoc.c (get_rank): New forward declaration.
3657         (PHI_LOOP_BIAS): New macro.
3658         (phi_rank): New function.
3659         (loop_carried_phi): Likewise.
3660         (propagate_rank): Likewise.
3661         (get_rank): Add calls to phi_rank and propagate_rank.
3662
3663 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
3664
3665         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
3666         of TARGET_64BIT.
3667         (PTRDIFF_TYPE): Likewise.
3668
3669 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
3670
3671         PR target/49920
3672         * config/i386/i386.md (strset): Do not expand strset_singleop
3673         when %eax or $edi are fixed.
3674         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
3675         (*strsetsi_1): Ditto.
3676         (*strsethi_1): Ditto.
3677         (*strsetqi_1): Ditto.
3678         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
3679         (*rep_stossi): Ditto.
3680         (*rep_stosqi): Ditto.
3681         (*strlenqi_1): Ditto.
3682         (cmpstrnsi): Also fail when %ecx is fixed.
3683         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
3684         (*cmpstrnqi_1): Ditto.
3685         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
3686         (*strmovsi_1): Ditto.
3687         (*strmovhi_1): Ditto.
3688         (*strmovqi_1): Ditto.
3689         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
3690         (*rep_movsi): Ditto.
3691         (*rep_movqi): Ditto.
3692
3693 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
3694
3695         PR target/47908
3696         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
3697         Disable instruction scheduling for non-ColdFire targets.
3698         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3699
3700 2011-07-31  Revital Eres  <revital.eres@linaro.org>
3701
3702         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
3703         of anti-dep edge from a branch.
3704         (add_cross_iteration_register_deps): Create anti-dep edge from
3705         a branch.
3706
3707 2011-07-31  Revital Eres  <revital.eres@linaro.org>
3708
3709         * modulo-sched.c: Change comment.
3710         (reset_sched_times): Fix print message.
3711         (print_partial_schedule): Add print info.
3712
3713 2011-07-31  Tom de Vries  <tom@codesourcery.com>
3714
3715         PR middle-end/43513
3716         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
3717         get_object_alignment and TYPE_ALIGN.
3718
3719 2011-07-30  Tom de Vries  <tom@codesourcery.com>
3720
3721         PR middle-end/43513
3722         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
3723         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
3724
3725 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3726
3727         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
3728         <sys/sbd.h>.
3729         (cpu_types): New array.
3730         (cputype): New function.
3731         (host_detect_local_cpu): Only define buf, f if !__sgi__.
3732         Use scaninvent instead of /proc/cpuinfo if __sgi__.
3733         * config.host: Also use driver-native.o, mips/x-native on
3734         mips-sgi-irix*.
3735         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
3736         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
3737         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
3738
3739 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
3740
3741         PR middle-end/49897
3742         PR middle-end/49898
3743         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
3744         in nested parallel and outer is a gimple_reg, mark it as addressable
3745         and set its bit in task_shared_vars bitmap too.
3746
3747 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
3748
3749         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
3750
3751 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3752
3753         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
3754         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
3755         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
3756         AMASK_LOCKPFTCHOK): Define.
3757         (host_detect_local_cpu): Remove buf, f, cpu_names.
3758         Define cpu_types, implver, amask.
3759         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
3760         native CPU.
3761         * config.host: Also use driver-alpha.o, alpha/x-alpha on
3762         alpha*-dec-osf*.
3763         * config/alpha/osf5.h [__alpha__ || __alpha]
3764         (host_detect_local_cpu): Declare.
3765         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
3766         (DRIVER_SELF_SPECS): Define.
3767
3768 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
3769
3770         PR target/47715
3771         * config/i386/i386.md (*load_tp_x32): New.
3772         (*load_tp_x32_zext): Ditto.
3773         (*add_tp_x32): Ditto.
3774         (*add_tp_x32_zext): Ditto.
3775         (*load_tp_<mode>): Disable for TARGET_X32 targets.
3776         (*add_tp_<mode>): Ditto.
3777         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
3778         ptr_mode and convert to Pmode if needed.
3779
3780 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
3781
3782         PR target/49687
3783         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
3784         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
3785         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
3786         Add X to register footprint: Clobber r26/r27.
3787
3788 2011-07-29  Richard Guenther  <rguenther@suse.de>
3789
3790         * builtins.c (fold_builtin_signbit): Build the comparison
3791         with a proper type.
3792
3793 2011-07-29  Richard Guenther  <rguenther@suse.de>
3794
3795         PR tree-optimization/49893
3796         * tree-predcom.c (suitable_reference_p): Volatile references
3797         are not suitable.
3798
3799 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
3800
3801         PR target/49313
3802         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
3803         (__ctzsi2): Result for 0 may be undefined.
3804         (__ctzhi2): Result for 0 may be undefined.
3805         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
3806         (__popcountsi2): Ditto. And don't clobber r26.
3807         (__popcountdi2): Ditto. And don't clobber r27.
3808         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
3809         (parityhi2): New expand.
3810         (paritysi2): New expand.
3811         (popcounthi2): New expand.
3812         (popcountsi2): New expand.
3813         (clzhi2): New expand.
3814         (clzsi2): New expand.
3815         (ctzhi2): New expand.
3816         (ctzsi2): New expand.
3817         (ffshi2): New expand.
3818         (ffssi2): New expand.
3819         (copysignsf3): New insn.
3820         (bswapsi2): New expand.
3821         (*parityhi2.libgcc): New insn.
3822         (*parityqihi2.libgcc): New insn.
3823         (*paritysihi2.libgcc): New insn.
3824         (*popcounthi2.libgcc): New insn.
3825         (*popcountsi2.libgcc): New insn.
3826         (*popcountqi2.libgcc): New insn.
3827         (*popcountqihi2.libgcc): New insn-and-split.
3828         (*clzhi2.libgcc): New insn.
3829         (*clzsihi2.libgcc): New insn.
3830         (*ctzhi2.libgcc): New insn.
3831         (*ctzsihi2.libgcc): New insn.
3832         (*ffshi2.libgcc): New insn.
3833         (*ffssihi2.libgcc): New insn.
3834         (*bswapsi2.libgcc): New insn.
3835
3836 2011-07-29  Richard Guenther  <rguenther@suse.de>
3837
3838         * tree-vrp.c (get_value_range): Only set parameter default
3839         definitions to varying, leave others at undefined.
3840         (extract_range_from_binary_expr): Fix undefined handling.
3841         (vrp_visit_phi_node): Handle merged undefined state.
3842
3843 2011-07-29  Wei Guozhi  <carrot@google.com>
3844
3845         PR rtl-optimization/49799
3846         * combine.c (make_compound_operation): Check if the bit field is valid
3847         before change it to bit field extraction.
3848
3849 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
3850
3851         PR rtl-optimization/49891
3852         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
3853         newly created returnjumps.
3854
3855 2011-07-28  DJ Delorie  <dj@redhat.com>
3856
3857         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
3858         local frame in a naked function, and produce a suitable error for
3859         that specific case.
3860
3861         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
3862         registers to be reloaded in HI classes when the target is HI.
3863
3864 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
3865
3866         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
3867         bound_one, bound_two.
3868
3869 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
3870
3871         PR middle-end/48648
3872         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
3873         CLAST assignments.
3874         (translate_clast): Same.
3875         (translate_clast_assignment): New.
3876
3877 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
3878
3879         PR tree-optimization/49876
3880         * sese.c (rename_uses): Do not return false on gloog_error: set
3881         the new_expr to integer_zero_node and continue code generation.
3882         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
3883
3884 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
3885
3886         PR debug/49846
3887         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
3888         arguments also check if they aren't initialized with a MODE_INT
3889         mode of the same size.
3890
3891 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
3892
3893         * expr.c (get_bit_range): Handle *MEM_REF's.
3894
3895 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
3896
3897         * rtlanal.c (tablejump_p): False for returns.
3898         * reorg.c (first_active_target_insn): New static function.
3899         (find_end_label): Set JUMP_LABEL for a new returnjump.
3900         (optimize_skip, get_jump_flags, rare_destination,
3901         mostly_true_jump, get_branch_condition,
3902         steal_delay_list_from_target, own_thread_p,
3903         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
3904         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
3905         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
3906         * jump.c (delete_related_insns): Likewise.
3907         (jump_to_label_p): New function.
3908         (redirect_target): New static function.
3909         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
3910         (redirect_jump_1): Assert that the new label is nonnull.
3911         (redirect_jump): Likewise.
3912         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
3913         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
3914         exit block.
3915         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
3916         changed.  Ensure that the right label is passed to redirect_jump.
3917         * function.c (emit_return_into_block,
3918         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
3919         ret_rtx in their JUMP_LABEL.
3920         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
3921         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
3922         pass ret_rtx as label.
3923         * cfglayout.c (fixup_reorder_chain): Use
3924         force_nonfallthru_and_redirect rather than force_nonfallthru.
3925         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
3926         * rtl.h (ANY_RETURN_P): New macro.
3927         (jump_to_label_p): Declare.
3928         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
3929         JUMP_LABELs.
3930         (mark_target_live_regs): Likewise.
3931         * basic-block.h (force_nonfallthru_and_redirect): Declare.
3932         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
3933         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
3934         alpha_tablejump_best_label): Remove functions.
3935         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
3936         alpha_tablejump_best_label): Remove declarations.
3937         * config/sh/sh.c (barrier_align, split_branches): Adjust for
3938         ret_rtx in JUMP_LABELs.
3939         * config/arm/arm.c (is_jump_table): Likewise.
3940
3941 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
3942
3943         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
3944         special predicate.  Remove explicit mode checks.
3945
3946 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
3947
3948         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
3949         DW_AT_data_member_location containing just DW_OP_plus_uconst.
3950
3951         PR debug/49871
3952         * dwarf2out.c (size_of_die, value_format, output_die): Use
3953         DW_FORM_udata instead of DW_FORM_data[48] for
3954         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
3955
3956 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
3957
3958         * config/i386/i386.md (*tls_global_dynamic_64): Update
3959         length attribute.
3960
3961 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
3962
3963         PR target/47715
3964         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
3965         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
3966         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
3967         (tls_dynamic_gnu2_64): Ditto.
3968         (*tls_dynamic_gnu2_lea_64): Ditto.
3969         (*tls_dynamic_gnu2_call_64): Ditto.
3970         (*tls_dynamic_gnu2_combine_64): Ditto.
3971
3972 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
3973
3974         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
3975
3976 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
3977
3978         PR target/47364
3979         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
3980
3981 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3982
3983         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
3984         before the core constraints. Adjust attributes.
3985         ("*thumb2_movdf_vfp"): Likewise.
3986
3987 2011-07-28  Kai Tietz  <ktietz@redhat.com>
3988
3989         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
3990         (simplify_truth_ops_using_ranges): Likewise.
3991         (build_assert_expr_for): Likewise.
3992         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
3993         and handle BIT_NOT_EXPR for truth-operation.
3994
3995 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
3996
3997         PR target/49313
3998         Undo r176835 from trunk
3999         2011-07-27  Georg-Johann Lay
4000
4001 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
4002
4003         PR target/49687
4004         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
4005         Add _muluhisi3, _mulshisi3, _usmulhisi3.
4006         * config/avr/libgcc.S (__mulsi3): Rewrite.
4007         (__mulhisi3): Rewrite.
4008         (__umulhisi3): Rewrite.
4009         (__usmulhisi3): New.
4010         (__muluhisi3): New.
4011         (__mulshisi3): New.
4012         (__mulohisi3): New.
4013         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
4014         declare.
4015         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
4016         (pseudo_register_or_const_int_operand): New.
4017         (combine_pseudo_register_operand): New.
4018         (u16_operand): New.
4019         (s16_operand): New.
4020         (o16_operand): New.
4021         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
4022         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
4023         (any_extend, any_extend2): New code iterators.
4024         (extend_prefix): New code attribute.
4025         (mulsi3): Rewrite. Turn insn to expander.
4026         (mulhisi3): Ditto.
4027         (umulhisi3): Ditto.
4028         (usmulhisi3): New expander.
4029         (*mulsi3): New insn-and-split.
4030         (mulu<mode>si3): New insn-and-split.
4031         (muls<mode>si3): New insn-and-split.
4032         (mulohisi3): New insn-and-split.
4033         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
4034         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
4035         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
4036         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
4037         insn-and-split.
4038         (*mulsi3_call): Rewrite.
4039         (*mulhisi3_call): Rewrite.
4040         (*umulhisi3_call): Rewrite.
4041         (*usmulhisi3_call): New insn.
4042         (*muluhisi3_call): New insn.
4043         (*mulshisi3_call): New insn.
4044         (*mulohisi3_call): New insn.
4045         (extendqihi2): Use combine_pseudo_register_operand as predicate
4046         for operand 1.
4047         (extendqisi2): Ditto.
4048         (zero_extendqihi2): Ditto.
4049         (zero_extendqisi2): Ditto.
4050         (zero_extendhisi2): Ditto.
4051         (extendhisi2): Ditto. Don't early-clobber operand 0.
4052
4053 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
4054
4055         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
4056
4057 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
4058
4059         PR tree-optimization/49471
4060         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
4061         iv only when the largest type is unsigned.  Do not call
4062         lang_hooks.types.type_for_size.
4063
4064 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
4065
4066         PR middle-end/45450
4067         * graphite-poly.c (apply_poly_transforms): Disable legality check
4068         after an openscop read.
4069
4070 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
4071
4072         PR middle-end/47691
4073         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
4074         copy_bb_and_scalar_dependences.
4075         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
4076         (graphite_copy_stmts_from_block): Update call to rename_uses.
4077         (copy_bb_and_scalar_dependences): Update call to
4078         graphite_copy_stmts_from_block.
4079         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
4080
4081 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
4082
4083         PR target/49313
4084         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
4085         (__ctzsi2): Result for 0 may be undefined.
4086         (__ctzhi2): Result for 0 may be undefined.
4087         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
4088         (__popcountsi2): Ditto. And don't clobber r26.
4089         (__popcountdi2): Ditto. And don't clobber r27.
4090         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
4091         (parityhi2): New expand.
4092         (paritysi2): New expand.
4093         (popcounthi2): New expand.
4094         (popcountsi2): New expand.
4095         (clzhi2): New expand.
4096         (clzsi2): New expand.
4097         (ctzhi2): New expand.
4098         (ctzsi2): New expand.
4099         (ffshi2): New expand.
4100         (ffssi2): New expand.
4101         (copysignsf3): New insn.
4102         (bswapsi2): New expand.
4103         (*parityhi2.libgcc): New insn.
4104         (*parityqihi2.libgcc): New insn.
4105         (*paritysihi2.libgcc): New insn.
4106         (*popcounthi2.libgcc): New insn.
4107         (*popcountsi2.libgcc): New insn.
4108         (*popcountqi2.libgcc): New insn.
4109         (*popcountqihi2.libgcc): New insn-and-split.
4110         (*clzhi2.libgcc): New insn.
4111         (*clzsihi2.libgcc): New insn.
4112         (*ctzhi2.libgcc): New insn.
4113         (*ctzsihi2.libgcc): New insn.
4114         (*ffshi2.libgcc): New insn.
4115         (*ffssihi2.libgcc): New insn.
4116         (*bswapsi2.libgcc): New insn.
4117
4118 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
4119
4120         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
4121         the mode of symbolic_opreand RTXes.
4122
4123 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
4124
4125         * config/i386/predicates.md (x86_64_movabs_operand): Return false
4126         for pic_32bit_operand RTXes.
4127         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
4128         in DImode.
4129
4130 2011-07-27  Kai Tietz  <ktietz@redhat.com>
4131
4132         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
4133         for 32-bit, too.
4134         (ix86_handle_abi_attribute): Allow function attributes
4135         ms_abi/sysv_abi in 32-bit mode, too.
4136         * doc/extend.texi: Adjust attribute documentation.
4137
4138         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
4139         expression handling.
4140         (and_var_with_comparison_1): Likewise.
4141
4142 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
4143
4144         * params.h (ALLOW_STORE_DATA_RACES): New.
4145         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
4146         * Makefile.in (expr.o): Depend on PARAMS_H.
4147         * machmode.h (get_best_mode): Add argument.
4148         * fold-const.c (optimize_bit_field_compare): Add argument to
4149         get_best_mode.
4150         (fold_truthop): Same.
4151         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
4152         * expr.c (emit_group_store): Same.
4153         (copy_blkmode_from_reg): Same.
4154         (write_complex_part): Same.
4155         (optimize_bitfield_assignment_op): Add argument.
4156         Add argument to get_best_mode.
4157         (get_bit_range): New.
4158         (expand_assignment): Calculate maxbits and pass it down accordingly.
4159         (store_field): New argument.
4160         (expand_expr_real_2): New argument to store_field.  Include params.h.
4161         * expr.h (store_bit_field): New argument.
4162         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
4163         into account maxbits.
4164         * calls.c (store_unaligned_arguments_into_pseudos): New argument
4165         to store_bit_field.
4166         * expmed.c (store_bit_field_1): New argument.  Use it.
4167         (store_bit_field): Same.
4168         (store_fixed_bit_field): Same.
4169         (store_split_bit_field): Same.
4170         (extract_bit_field_1): Pass new argument to get_best_mode.
4171         (extract_bit_field): Same.
4172         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
4173         * doc/invoke.texi: Document parameter allow-store-data-races.
4174
4175 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
4176
4177         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
4178
4179 2011-07-27  Kai Tietz  <ktietz@redhat.com>
4180
4181         * tree-vrp.c (extract_range_from_binary_expr): Remove
4182         TRUTH-binary cases and add new bitwise-cases.
4183         (extract_range_from_assignment): Likewise.
4184         (register_edge_assert_for_1): Likeiwise.
4185         (register_edge_assert_for): Likewise.
4186         (simplify_truth_ops_using_ranges): Likewise.
4187         (simplify_stmt_using_ranges): Likewise.
4188
4189 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
4190
4191         PR target/47372
4192         * config/i386/i386.c (ix86_delegitimize_address): Call
4193         simplify_gen_subreg for PIC with mode of x only if modes of
4194         x and orig_x are different.
4195
4196 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
4197
4198         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
4199         to GC allocated copy of the string.
4200         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
4201         before .debug_line, not after it.
4202
4203 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4204
4205         PR middle-end/47046
4206         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
4207         evolution_function_is_affine_p on CHREC_RIGHT.
4208
4209 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4210
4211         * tree-data-ref.c (max_stmt_executions_tree): Do not call
4212         lang_hooks.types.type_for_size.
4213
4214 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4215
4216         PR middle-end/47653
4217         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
4218         loops using wrapping semantics.
4219
4220 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4221
4222         PR middle-end/48805
4223         * tree-scalar-evolution.c (instantiate_scev_r): Return
4224         chrec_dont_know for ADDR_EXPR.
4225
4226 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4227             H.J. Lu  <hongjiu.lu@intel.com>
4228
4229         PR target/47369
4230         PR target/49853
4231         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
4232         if legitimize_tls_address returned operand in wrong mode. Allow
4233         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
4234         if legitimize_pic_address returned operand in wrong mode.
4235
4236 2011-07-26  Martin Jambor  <mjambor@suse.cz>
4237
4238         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
4239         return false for invariants.
4240
4241 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4242
4243         * config/i386/i386.md (add->lea splitter): Implement using SWI
4244         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
4245         (add->lea zext splitter): Change operand 2 predicate to
4246         x86_64_nonmemory_operand.
4247
4248 2011-07-26  Richard Guenther  <rguenther@suse.de>
4249
4250         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
4251         frequency makes everything hot.
4252
4253 2011-07-26  Richard Guenther  <rguenther@suse.de>
4254
4255         PR tree-optimization/49840
4256         * tree-vrp.c (range_fits_type_p): Properly handle full
4257         double-int precision.
4258
4259 2011-07-26  Martin Jambor  <mjambor@suse.cz>
4260
4261         PR bootstrap/49786
4262         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
4263         counts.
4264         (update_specialized_profile): Likewise.
4265
4266 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4267             H.J. Lu  <hongjiu.lu@intel.com>
4268
4269         PR target/47381
4270         PR target/49832
4271         PR target/49833
4272         * config/i386/i386.md (i): Change SImode attribute to "e".
4273         (g): Change SImode attribute to "rme".
4274         (di): Change SImode attribute to "nF".
4275         (general_operand): Change SImode attribute to x86_64_general_operand.
4276         (general_szext_operand): Change SImode attribute to
4277         x86_64_szext_general_operand.
4278         (immediate_operand): Change SImode attribute to
4279         x86_64_immediate_operand.
4280         (nonmemory_operand): Change SImode attribute to
4281         x86_64_nonmemory_operand.
4282         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
4283         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
4284         (*lea_1): Use SWI48 mode iterator.
4285         (*lea_1_zext): New insn pattern.
4286         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
4287         (*bt<mode>): Ditto.
4288         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
4289         Update operand constraints.
4290         (addsi_1_zext): Ditto.
4291         (*add<mode>2): Ditto.
4292         (*addsi_3_zext): Ditto.
4293         (*subsi_1_zext): Ditto.
4294         (*subsi_2_zext): Ditto.
4295         (*subsi_3_zext): Ditto.
4296         (*addsi3_carry_zext): Ditto.
4297         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
4298         (*mulsi3_1_zext): Ditto.
4299         (*andsi_1): Ditto.
4300         (*andsi_1_zext): Ditto.
4301         (*andsi_2_zext): Ditto.
4302         (*<any_or:code>si_1_zext): Ditto.
4303         (*<any_or:code>si_2_zext): Ditto.
4304         (*test<mode>_1): Use <general_operand> predicate for operand 1.
4305         (*and<mode>_2): Ditto.
4306         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
4307         (add->lea splitter): Check operand modes in insn constraint.  Extend
4308         operands less than SImode wide to SImode.
4309         (add->lea zext splitter): Do not extend input operands to DImode.
4310         (*lea_general_1): Handle only QImode and HImode operands.
4311         (*lea_general_2): Ditto.
4312         (*lea_general_3): Ditto.
4313         (*lea_general_1_zext): Remove.
4314         (*lea_general_2_zext): Ditto.
4315         (*lea_general_3_zext): Ditto.
4316         (*lea_general_4): Check operand modes in insn constraint.  Extend
4317         operands less than SImode wide to SImode.
4318         (ashift->lea splitter): Ditto.
4319         * config/i386/i386.c (ix86_print_operand_address): Print address
4320         registers with 'q' modifier on 64bit targets.
4321         * config/i386/predicates.md (pic_32bit_opreand): Define as special
4322         predicate.  Reject non-SI and non-DI modes.
4323
4324 2011-07-25  Andrew Pinski  <apinski@cavium.com>
4325
4326         PR tree-opt/49671
4327         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
4328         TREE_THIS_NOTRAP into the inner most MEM_REF.
4329         Always copy TREE_THIS_VOLATILE.
4330         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
4331         arguments are not volatile references.
4332
4333 2011-07-25  Richard Henderson  <rth@redhat.com>
4334
4335         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
4336         * final.c (final_scan_insn): Don't test for it.
4337         (rest_of_clean_state): Likewise.
4338
4339 2011-07-25  Richard Henderson  <rth@redhat.com>
4340
4341         PR debug/49841
4342         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
4343         (emit_frame_save): Likewise.
4344         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
4345         insn onto a dummy blockage insn after the join label.
4346
4347 2011-07-25  Richard Henderson  <rth@redhat.com>
4348
4349         * dwarf2cfi.c (dw_trace_info): Add ID member.
4350         (get_trace_index): Remove.  Change users to use ID member.
4351         (before_next_cfi_note): New.
4352         (connect_traces): Remove unreachable traces before the main loop.
4353         Look across one trace and generate remember/restore_state if needed.
4354
4355 2011-07-25  Richard Henderson  <rth@redhat.com>
4356
4357         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
4358
4359 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
4360
4361         * genattr.c (write_upcase, gen_attr <enum definition writing>):
4362         Move to ...
4363         * genattr-common.c ... here.
4364         (main): Call gen_attr.
4365         * optc-gen.awk: Make generated program include insn-attr-common.h .
4366         * Makefile.in (oprions.o): Depend on insn-attr-common.h
4367
4368 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
4369
4370         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4371         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
4372         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
4373         m32c_print_operand, m32c_print_operand_address): Remove.
4374         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
4375         Change return type to bool. Change argument type to bool.
4376         (m32c_print_operand, m32c_print_operand_address): Make static.
4377         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
4378         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4379
4380 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4381
4382         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
4383         attributes): Document mmap.
4384
4385 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
4386
4387         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4388         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
4389         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
4390         mmix_print_operand, mmix_print_operand_address): Remove.
4391         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
4392         Change return type to bool. Change argument type to bool.
4393         (mmix_print_operand, mmix_print_operand_address): Make static.
4394         (mmix_intval, mmix_output_condition): Change 'x' argument type
4395         to const_rtx.
4396         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
4397         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4398
4399 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
4400
4401         PR target/39386
4402         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
4403         shift counter for x << x and x >> x shifts.
4404
4405 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4406
4407         PR target/47124
4408         * config.gcc: Reject *-*-solaris2 configuration.
4409
4410 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
4411
4412         PR tree-optimization/49809
4413         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
4414         gimple_get_lhs instead of gimple_assign_lhs.
4415
4416 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4417
4418         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
4419
4420 2011-07-25  Richard Guenther  <rguenther@suse.de>
4421
4422         PR tree-optimization/49822
4423         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
4424         more.  Make sure to preserve stmts with side-effects.  Properly
4425         handle virtual defs, follow a longer def chain.
4426
4427 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
4428
4429         PR plugins/45348
4430         PR plugins/48425
4431         PR plugins/46577
4432         * Makefile.in: Do not flatten c-family directory when installing
4433         plugin headers.
4434
4435 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
4436
4437         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
4438         original nodes if we are dealing with virtual clones.
4439
4440 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
4441
4442         * common/config/c6x/c6x-common.c: New file.
4443
4444 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
4445
4446         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
4447
4448 2011-07-25  Richard Guenther  <rguenther@suse.de>
4449
4450         PR tree-optimization/49715
4451         * tree-vrp.c: Include expr.h and optabs.h.
4452         (range_fits_type_): New function.
4453         (simplify_float_conversion_using_ranges): Likewise.
4454         (simplify_stmt_using_ranges): Call it.
4455         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
4456         * optabs.c (can_float_p): Export.
4457         * optabs.h (can_float_p): Declare.
4458
4459 2011-07-25  Richard Guenther  <rguenther@suse.de>
4460
4461         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
4462         (get_value_range): For out-of-range SSA names or names created
4463         after propagation return a read-only varying range.
4464         (dump_all_value_ranges): Adjust.
4465         (vrp_initialize): Likewise.
4466         (vrp_finalize): Likewise.
4467
4468 2011-07-24  Richard Henderson  <rth@redhat.com>
4469
4470         PR debug/49831
4471         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
4472         them entirely.
4473
4474 2011-07-24  Richard Henderson  <rth@redhat.com>
4475
4476         PR debug/49825
4477         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
4478         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
4479
4480 2011-07-24  Richard Henderson  <rth@redhat.com>
4481
4482         PR debug/49827
4483         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
4484
4485 2011-07-24  Richard Henderson  <rth@redhat.com>
4486
4487         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
4488         Zero args_size for abnormal edges.  Adjust all callers.
4489
4490 2011-07-24  Richard Henderson  <rth@redhat.com>
4491
4492         PR debug/49825
4493         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
4494
4495 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
4496
4497         PR bootstrap/49835
4498         * collect2.c (demangle_flag): Removed.
4499
4500 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
4501
4502         * configure.ac (demangler_in_ld): Default to yes.
4503         * configure: Regenerated.
4504         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
4505         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
4506         --no-demangle options straight through to ld.  When
4507         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
4508         way that has the intended effect on Windows.
4509
4510 2011-07-23  Richard Henderson  <rth@redhat.com>
4511
4512         * dwarf2cfi.c: Include basic-block.h.
4513         (dw_label_info): Remove.
4514         (trace_work_list, trace_index): New.
4515         (remember_row, emit_cfa_remember): Remove.
4516         (dw_trace_info_hash, dw_trace_info_eq): New.
4517         (get_trace_index, get_trace_info): New.
4518         (save_point_p): New.
4519         (free_cfi_row): Remove.
4520         (add_cfi): Do not emit DW_CFA_remember_state.
4521         (cfa_row_equal_p): New.
4522         (barrier_args_size): Remove.
4523         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
4524         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
4525         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
4526         (dwarf2out_cfi_begin_epilogue): Remove.
4527         (dwarf2out_frame_debug_restore_state): Remove.
4528         (connect_traces, create_pseudo_cfg): New.
4529         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
4530         * Makefile.in (dwarf2cfi.o): Update.
4531
4532 2011-07-23  Richard Henderson  <rth@redhat.com>
4533
4534         * dwarf2cfi.c (dw_trace_info): New.
4535         (dw_label_info): New.
4536         (cie_return_save): New.
4537         (cur_trace): New.
4538         (queued_args_size): Rename from args_size.  Update all users.
4539         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
4540         (def_cfa_1): Use cur_trace instead of cfa_*.
4541         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
4542         (clobbers_queued_reg_save, reg_saved_in): Likewise.
4543         (dwarf2out_frame_debug_expr): Likewise.
4544         (create_cie_data): Split out from ...
4545         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
4546
4547 2011-07-23  Richard Henderson  <rth@redhat.com>
4548
4549         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
4550         Update all users to match.
4551         (execute_dwarf2_frame): Free reg_saved_in_data.
4552
4553 2011-07-23  Richard Henderson  <rth@redhat.com>
4554
4555         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
4556         (queued_reg_saves): Don't GTY.  Change to a VEC.
4557         (queue_reg_save): Update to match.
4558         (dwarf2out_flush_queued_reg_saves): Likewise.
4559         (clobbers_queued_reg_save): Likewise.
4560         (reg_saved_in): Likewise.
4561         (execute_dwarf2_frame): Free queued_reg_saves.
4562
4563 2011-07-23  Richard Henderson  <rth@redhat.com>
4564
4565         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
4566
4567 2011-07-23  Richard Henderson  <rth@redhat.com>
4568
4569         * dwarf2cfi.c (add_cfi_args_size): Split out from...
4570         (dwarf2out_args_size): ... here.
4571         (add_cfi_restore): Split out from ...
4572         (dwarf2out_frame_debug_cfa_restore): ... here.
4573         (def_cfa_0): Split out from ...
4574         (def_cfa_1): ... here.
4575         (cfi_oprnd_equal_p, cfi_equal_p): New.
4576         (change_cfi_row): New.
4577         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
4578         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
4579         (output_cfis): Remove.
4580         * dwarf2out.c (output_fde): Simplify output_cfi loop.
4581         (dwarf2out_switch_text_section): Don't call output_cfis.
4582         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
4583         * dwarf2out.h: Update decls.
4584         (enum dw_val_class): Add dw_val_class_none.
4585
4586 2011-07-23  Richard Henderson  <rth@redhat.com>
4587
4588         * dwarf2cfi.c (update_row_reg_save): New.
4589         (dwarf2out_frame_debug_cfa_expression): Use it.
4590         (dwarf2out_frame_debug_cfa_restore): Likewise.
4591         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
4592
4593 2011-07-23  Richard Henderson  <rth@redhat.com>
4594
4595         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
4596
4597 2011-07-23  Richard Henderson  <rth@redhat.com>
4598
4599         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
4600         (cie_cfi_row): New.
4601         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
4602         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
4603         (cur_row, remember_row): New.
4604         (def_cfa_1): Use cur_row instead of the old_* variables.
4605         (dwarf2out_frame_debug_restore_state): Similarly.
4606         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
4607         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
4608         (dwarf2out_frame_debug_adjust_cfa): Likewise.
4609         (dwarf2out_frame_debug_cfa_offset): Likewise.
4610         (dwarf2out_frame_debug_expr): Likewise.
4611         (execute_dwarf2_frame): Set up cur_row.
4612         * dwarf2out.h (struct cfa_loc): Mark for GTY.
4613
4614 2011-07-23  Richard Henderson  <rth@redhat.com>
4615
4616         * basic-block.h (EDGE_PRESERVE): New.
4617         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
4618         * bb-reorder.c: Include except.h.
4619         (fix_up_crossing_landing_pad): New.
4620         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
4621         landing pads in the right partition.  Duplicate as necessary.
4622         (partition_hot_cold_basic_blocks): Fix up DF info after
4623         duplicating landing pads.
4624         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
4625         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
4626         is set properly.  Validate that EH edges are not CROSSING.
4627         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
4628         (dw2_build_landing_pads): ... here.
4629         (convert_to_eh_region_ranges): Remove code to fixup crossing
4630         landing pads.
4631         * except.h (expand_dw2_landing_pad_for_region): Declare.
4632         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
4633
4634 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
4635
4636         PR target/49816
4637         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
4638
4639 2011-07-22  Jason Merrill  <jason@redhat.com>
4640
4641         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
4642
4643 2011-07-22  Richard Henderson  <rth@redhat.com>
4644
4645         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
4646
4647 2011-07-22  Richard Henderson  <rth@redhat.com>
4648
4649         * jump.c (maybe_propagate_label_ref): Split out of...
4650         (mark_all_labels): ... here.  Do not attempt label_ref
4651         propagation while in cfglayout mode.
4652
4653 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
4654
4655         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
4656         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
4657         (dwarf_attr_name): Handle DW_AT_GNU_macros.
4658         (dwarf2out_define): If the vector is empty and
4659         lineno is 0, emit a dummy entry first.
4660         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
4661         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
4662         optimize_macinfo_range): New functions.
4663         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
4664         mergeable, optimize longer strings using
4665         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
4666         optimize longer sequences of define/undef ops from headers
4667         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
4668         emit a section headers.
4669         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
4670         and macinfo_section_label to DEBUG_MACRO_SECTION
4671         resp. DEBUG_MACRO_SECTION_LABEL.
4672         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
4673         instead of DW_AT_macro_info.
4674
4675         PR other/32998
4676         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
4677         options.
4678         * dwarf2out.c: Include opts.h.
4679         (dchar_p): New typedef.  Define heap VEC for it.
4680         (producer_string): New variable.
4681         (gen_producer_string): New function.
4682         (gen_compile_unit_die): Use it.
4683         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
4684         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
4685         * doc/invoke.texi: Document -grecord-gcc-switches and
4686         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
4687         to -frecord-gcc-switches description.
4688
4689 2011-07-22  Jason Merrill  <jason@redhat.com>
4690
4691         PR c++/30112
4692         * c-decl.c (c_linkage_bindings): Define.
4693
4694 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
4695
4696         PR debug/49815
4697         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
4698
4699 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
4700
4701         * config/i386/i386.c (ix86_option_override_internal): Disallow
4702         MS ABI in x32 mode.
4703         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
4704         only for TARGET_LP64.
4705         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
4706
4707 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
4708
4709         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
4710         avoid warnings when GCC is built with a C++ compiler.
4711
4712 2011-07-22  Martin Jambor  <mjambor@suse.cz>
4713
4714         PR lto/49796
4715         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
4716         if decl node is in another partition, call cgraph_get_node only once.
4717
4718 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
4719
4720         * config.gcc (x86_64-*-linux*): Set
4721         default_gnu_indirect_function to yes.
4722
4723 2011-07-22  Richard Guenther  <rguenther@suse.de>
4724
4725         PR tree-optimization/45819
4726         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
4727         preserve volatile and notrap flags.
4728
4729 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4730             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4731
4732         PR bootstrap/49794
4733         * configure.ac: Test AM_ICONV with CXX.
4734         * configure: Regenerate.
4735         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
4736
4737 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4738
4739         PR bootstrap/49797
4740         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
4741         (set_cloog_options): Use it.
4742
4743 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
4744
4745         PR c++/49756
4746         * gcc.c (main): Call stack_limit_increase (64MB).
4747         * toplev.c (toplev_main): Likewise.
4748
4749 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
4750
4751         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
4752         instead of force_reg.
4753
4754 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
4755
4756         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
4757         needed and use force_reg after convert.
4758         (ix86_expand_call): Likewise.
4759         (ix86_expand_special_args_builtin): Likewise.
4760         (ix86_expand_builtin): Likewise.
4761
4762 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4763
4764         PR middle-end/47654
4765         PR middle-end/49649
4766         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
4767         in parameter.  Initialize v1 and v2 based on the values returned
4768         by clast_name_to_lb_ub.
4769         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
4770         values.
4771         (type_for_clast_bin): Same.
4772         (type_for_clast_expr): Same.
4773         (type_for_clast_eq): Update calls to type_for_clast_expr.
4774         (type_for_clast_for): Same.
4775         (build_iv_mapping): Same.
4776         * graphite-ppl.h (value_min): New.
4777
4778 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4779
4780         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
4781         types whenever possible.
4782
4783 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4784
4785         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
4786         and ub fields.
4787         (new_clast_name_index): Add lb and ub parameters.
4788         (free_clast_name_index): New.
4789         (clast_name_to_lb_ub): New.
4790         (save_clast_name_index): Add lb and ub parameters.
4791         (compute_bounds_for_param): New.
4792         (type_for_level): Removed.
4793         (type_for_clast_for): Removed level parameter.  Do not call
4794         type_for_level.
4795         (graphite_create_new_loop): Store the lb and ub for the clast_name
4796         of the iterator of the loop that has been generated.
4797         (graphite_create_new_loop_guard): Remove parameter level.
4798         (create_params_index): Store the lb and ub of each parameter.
4799         (gloog): Use free_clast_name_index.  Pass to create_params_index
4800         the current scop.
4801
4802 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4803
4804         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
4805         (max_precision_type): Inline max_signed_precision_type.
4806         (type_for_clast_red): Use max_precision_type.
4807         (type_for_clast_bin): Same.
4808         (type_for_clast_for): Same.
4809
4810 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4811
4812         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
4813         type_for_interval.
4814         (gcc_type_for_value): Renamed type_for_value.
4815         (gcc_type_for_clast_term): Renamed type_for_clast_term.
4816         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
4817         (gcc_type_for_clast_red): Renamed type_for_clast_red.
4818         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
4819         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
4820         (graphite_translate_clast_equation): Update calls.
4821         (compute_type_for_level): Renamed type_for_level.
4822         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
4823         (build_iv_mapping): Update calls.
4824         (graphite_create_new_loop_guard): Same.
4825
4826 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4827
4828         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
4829         comment.
4830
4831 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4832
4833         * graphite-clast-to-gimple.c (struct ivs_params): New.
4834         (clast_name_to_gcc): Use ivs_params to pass around parameters.
4835         (clast_to_gcc_expression): Same.
4836         (clast_to_gcc_expression_red): Same.
4837         (gcc_type_for_clast_term): Same.
4838         (gcc_type_for_clast_expr): Same.
4839         (gcc_type_for_clast_red): Same.
4840         (gcc_type_for_clast_bin): Same.
4841         (gcc_type_for_clast_eq): Same.
4842         (graphite_translate_clast_equation): Same.
4843         (graphite_create_guard_cond_expr): Same.
4844         (graphite_create_new_guard): Same.
4845         (graphite_create_new_loop): Same.
4846         (build_iv_mapping): Same.
4847         (translate_clast_user): Same.
4848         (graphite_create_new_loop_guard): Same.
4849         (translate_clast): Same.
4850         (translate_clast_for_loop): Same.
4851         (translate_clast_for): Same.
4852         (translate_clast_guard): Same.
4853         (initialize_cloog_names): Fix typo.
4854         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
4855
4856 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4857
4858         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
4859         (new_clast_name_index): Add level parameter.
4860         (clast_name_to_level): New.
4861         (save_clast_name_index): Add level parameter.
4862         (newivs_to_depth_to_newiv): Removed.
4863         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
4864         (graphite_create_new_loop): Add level parameter.  Pass level to
4865         save_clast_name_index.
4866         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
4867         (create_params_index): Pass level to save_clast_name_index.
4868
4869 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4870
4871         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
4872         recompute type, lb, and ub.  Get them from...
4873         (graphite_create_new_loop_guard): ...here.  Pass in parameter
4874         pointers to type, lb, and ub.
4875         (translate_clast_for_loop): Update function calls.
4876         (translate_clast_for): Same.
4877
4878 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4879
4880         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
4881         psct_dynamic_dim.
4882         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
4883         (gcc_type_for_iv_of_clast_loop): Update use of level.
4884         (gloog): Start counting nesting level from 0.
4885         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
4886         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
4887         psct_dynamic_dim on level.
4888
4889 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
4890
4891         * config/i386/i386.c (ix86_legitimize_address): Convert to
4892         Pmode if needed.
4893
4894 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
4895
4896         * config/i386/i386.c (function_value_64): Always return pointers
4897         in Pmode.
4898         (ix86_promote_function_mode): New.
4899         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
4900
4901 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4902
4903         PR tree-optimization/49749
4904         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
4905         remove no-longer-used maxrank variable.
4906
4907 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
4908
4909         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
4910
4911 2011-07-21  Jason Merrill  <jason@redhat.com>
4912
4913         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
4914         * recog.h (struct insn_data_d): Check it instead of
4915         HAVE_DESIGNATED_INITIALIZERS.
4916         * genoutput.c (output_insn_data): Likewise.
4917
4918 2011-07-21  Richard Guenther  <rguenther@suse.de>
4919
4920         PR tree-optimization/49770
4921         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
4922         valueized any operand.  Renamed from ...
4923         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
4924         (valueize_shared_reference_ops_from_ref): Return whether we
4925         valueized any operand.
4926         (vn_reference_lookup): Only when we valueized any operand
4927         use the valueized reference for alias analysis.  Do not preserve
4928         the original reference tree in this case.
4929
4930 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
4931
4932         * config/i386/i386.c (ix86_decompose_address): Reject all but
4933         register operands and subregs of DImode hard registers in index.
4934
4935 2011-07-21  Kai Tietz  <ktietz@redhat.com>
4936
4937         * fold-const.c (fold_unary_loc): Preserve indirect
4938         comparison cast to none-boolean type.
4939         * tree-ssa.c (useless_type_conversion_p): Preserve cast
4940         from/to boolean-type.
4941         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
4942         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
4943         * tree-cfg.c (verify_gimple_comparison): Check result
4944         type of comparison expression.
4945         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
4946         of condition result and disallow type-cast sinking into comparison.
4947
4948 2011-07-21  Richard Guenther  <rguenther@suse.de>
4949
4950         * tree-ssa-forwprop.c (combine_conversions): Return whether
4951         we have to run cfg-cleanup.  Properly remove dead stmts.
4952         (ssa_forward_propagate_and_combine): Adjust.
4953
4954 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
4955
4956         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
4957
4958 2011-07-21  Kai Tietz  <ktietz@redhat.com>
4959
4960         * tree-ssa-propagate.c (substitute_and_fold): Use
4961         do_dce flag to deside, if BB's statements are scanned
4962         in last to first, or first to last order.
4963
4964 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
4965
4966         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
4967
4968 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
4969             Uros Bizjak  <ubizjak@gmail.com>
4970             Richard Henderson  <rth@redhat.com>
4971
4972         * config/i386/constraints.md (w): New.
4973
4974         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
4975         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
4976
4977         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
4978         instead of TARGET_64BIT.
4979
4980         * config/i386/i386.md (indirect_jump): Replace
4981         nonimmediate_operand with indirect_branch_operand.
4982         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
4983         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
4984         Convert operand 0 to Pmode for x32 if not PIC.
4985         (*tablejump_1): Replace nonimmediate_operand with
4986         indirect_branch_operand.  Replace constraint "m" with "w".
4987         (*call_vzeroupper): Replace constraint "m" with "w".
4988         (*call): Likewise.
4989         (*call_rex64_ms_sysv_vzeroupper): Likewise.
4990         (*call_rex64_ms_sysv): Likewise.
4991         (*call_value_vzeroupper): Likewise.
4992         (*call_value): Likewise.
4993         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
4994         (*call_value_rex64_ms_sysv): Likewise.
4995         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
4996
4997         * config/i386/predicates.md (indirect_branch_operand): New.
4998         (call_insn_operand): Support x32.
4999
5000 2011-07-20  Michael Eager  <eager@eagercon.com>
5001
5002         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
5003
5004 2011-07-20  Richard Henderson  <rth@redhat.com>
5005
5006         * cfg.c (dump_bb_info): Dump basic_block->flags.
5007         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
5008
5009 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
5010
5011         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5012         of DImode hard registers in index.
5013         (ix86_legitimate_address_p): Allow subregs of base and index to span
5014         more than a word.  Assert that subregs of base and index satisfy
5015         register_no_elim_operand predicates.  Reject addresses where
5016         base and index have different modes.
5017
5018 2011-07-20  Robert Millan  <rmh@gnu.org>
5019
5020         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
5021
5022 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5023
5024         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
5025         removing now-unnecessary assignment.
5026
5027 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5028
5029         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
5030         memory address space to the type's address space.
5031
5032 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
5033
5034         PR target/36467
5035         PR target/49687
5036         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
5037         and expand appropriately if there is a CONST_INT in operand2.
5038         (usmulqihi3): New insn.
5039         (*sumulqihi3): New insn.
5040         (*osmulqihi3): New insn.
5041         (*oumulqihi3): New insn.
5042         (*muluqihi3.uconst): New insn_and_split.
5043         (*muluqihi3.sconst): New insn_and_split.
5044         (*mulsqihi3.sconst): New insn_and_split.
5045         (*mulsqihi3.uconst): New insn_and_split.
5046         (*mulsqihi3.oconst): New insn_and_split.
5047         (*ashifthi3.signx.const): New insn_and_split.
5048         (*ashifthi3.signx.const7): New insn_and_split.
5049         (*ashifthi3.zerox.const): New insn_and_split.
5050         (mulsqihi3): New insn.
5051         (muluqihi3): New insn.
5052         (muloqihi3): New insn.
5053         * config/avr/predicates.md (const_2_to_7_operand): New.
5054         (const_2_to_6_operand): New.
5055         (u8_operand): New.
5056         (s8_operand): New.
5057         (o8_operand): New.
5058         (s9_operand): New.
5059         (register_or_s9_operand): New.
5060
5061 2011-07-20  Kai Tietz  <ktietz@redhat.com>
5062
5063         * builtins.c (fold_builtin_expect): See through the cast
5064         from truthvalue_type_node to long.
5065
5066 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
5067
5068         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
5069         where we can use them from the standard and altivec instruction
5070         sets, instead of always using the 3 operand VSX forms that require
5071         the destination to overlap one of the inputs.
5072         (vsx_fms*): Ditto.
5073         (vsx_fnma*): Ditto.
5074         (vsx_fnms*): Ditto.
5075
5076         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
5077         for DF types.
5078         (fmsdf4_fpr): Ditto.
5079         (nfmadf4_fpr): Ditto.
5080         (nfmsdf4_fpr): Ditto.
5081
5082 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
5083
5084         * genrecog.c (make_insn_sequence): Correct position numbering
5085         when filtering out match_scratch and match_dup.
5086
5087 2011-07-20  Richard Guenther  <rguenther@suse.de>
5088
5089         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
5090         against already removed statements.
5091         (forward_propagate_into_comparison): Remove dead defining stmts.
5092         (forward_propagate_into_gimple_cond): Likewise.
5093         (forward_propagate_into_cond): Simplify.
5094         (ssa_forward_propagate_and_combine): Handle changed cfg from
5095         forward_propagate_into_comparison.
5096         * tree-ssa-phiopt.c (conditional_replacement): Use proper
5097         locations for newly built statements.
5098
5099 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
5100
5101         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
5102
5103 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5104
5105         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
5106         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
5107
5108 2011-07-20  Richard Guenther  <rguenther@suse.de>
5109
5110         PR middle-end/18908
5111         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
5112         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
5113         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
5114
5115 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
5116
5117         * config/frv/frv.c (frv_register_move_cost): Define explicitly
5118         costs for subclasses of GR_REGS.
5119
5120 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
5121
5122         PR target/49780
5123         * config/i386/predicates.md (no_seg_addres_operand): No more special.
5124         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5125         of DImode hard registers in base.
5126         (ix86_legitimate_address_p): Allow SImode and DImode base and index
5127         registers.
5128
5129 2011-07-20  Richard Guenther  <rguenther@suse.de>
5130
5131         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
5132         (unify_nodes): Deal with that.
5133         (solve_graph): Likewise.
5134
5135 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
5136
5137         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
5138         canonicalize left operand from ZERO_EXTEND to AND.
5139
5140 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
5141
5142         * target.def (class_max_nregs): New hook.
5143         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
5144         * doc/tm.texi: Regenerate.
5145         * targhooks.c (default_class_max_nregs): New function.
5146         * targhooks.h (default_class_max_nregs): Declare.
5147         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
5148         x_ira_reg_class_min_nregs arrays to unsigned char.
5149         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
5150         hook instead of CLASS_MAX_NREGS macro.
5151         * reginfo.c (restore_register_info): Ditto.
5152         * ira-conflicts.c (process_regs_for_copy): Use
5153         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
5154         Change type rclass and aclass vars to reg_class_t.
5155         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
5156         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
5157         reg_class_t.
5158         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
5159         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
5160
5161         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
5162         * config/i386/i386.c (ix86_class_max_nregs): New function.
5163         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
5164         instead of CLASS_MAX_NREGS macro.
5165         (TARGET_CLASS_MAX_NREGS): Define.
5166         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
5167         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
5168         * config/avr/avr.c (class_max_nregs): Remove function.
5169         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
5170         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
5171         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
5172         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
5173         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
5174         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
5175         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
5176         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
5177         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
5178         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
5179         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
5180         * config/score/score.h (CLASS_MAX_NREGS): Remove.
5181         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
5182         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
5183         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
5184
5185 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
5186
5187         * cif-code.def (OVERWRITABLE): Fix typo and move around.
5188         (TARGET_OPTIMIZATION_MISMATCH): Delete.
5189         (EH_PERSONALITY): Fix typo.
5190         (NON_CALL_EXCEPTIONS): Fix message.
5191         (OPTIMIZATION_MISMATCH): Adjust message.
5192         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
5193
5194 2011-07-19  Ian Lance Taylor  <iant@google.com>
5195
5196         * doc/install.texi (Configuration): Document
5197         --enable-build-poststage1-with-cxx.
5198
5199 2011-07-19  Robert Millan  <rmh@gnu.org>
5200
5201         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
5202         (GLIBC_DYNAMIC_LINKER): Remove.
5203
5204         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
5205         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
5206         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
5207         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
5208         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
5209         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
5210
5211         * config/mips/linux.h: Remove everything except for ...
5212         (GLIBC_DYNAMIC_LINKER): ... this macro.
5213
5214         * config/mips/linux64.h: Remove everything except for ...
5215         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
5216         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
5217         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
5218         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
5219         (GNU_USER_LINK_EMULATIONN32): New macros.
5220
5221         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
5222         Use the new headers.
5223
5224 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5225
5226         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
5227         Add offset_known_p and size_known_p fields.
5228         (MEM_OFFSET_KNOWN_P): Update accordingly.
5229         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
5230         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
5231         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
5232         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
5233         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
5234         (init_emit_regs): Likewise.
5235
5236 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5237
5238         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
5239         (MEM_OFFSET): Change from returning an rtx to returning a
5240         HOST_WIDE_INT.
5241         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
5242         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
5243         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
5244         (clear_mem_offset): Declare.
5245         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
5246         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
5247         MEM_OFFSET to get a HOST_WIDE_INT offset.
5248         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
5249         (adjust_offset_for_component_ref): Take a bool "known_p"
5250         parameter and a HOST_WIDE_INT "offset" parameter.
5251         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
5252         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
5253         than an rtx.  Use clear_mem_offset to clear the offset.
5254         * cfgcleanup.c (merge_memattrs): Likewise.
5255         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
5256         * function.c (assign_parm_find_stack_rtl): Likewise.
5257         (assign_parm_setup_stack): Likewise.
5258         * print-rtl.c (print_rtx): Likewise.
5259         * reload.c (find_reloads_subreg_address): Likewise.
5260         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5261         * var-tracking.c (INT_MEM_OFFSET): Likewise.
5262         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
5263         (get_mem_align_offset): Likewise.
5264         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
5265         (clear_mem_offset): New function.
5266         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
5267         offset rather than an rtx.  Assume both the expressio and offset
5268         are available.
5269         (r10k_needs_protection_p_1): Update accordingly, checking the
5270         expression and offset availability here instead.
5271
5272 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5273
5274         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
5275         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
5276         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
5277         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
5278         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
5279         (clear_mem_size): Declare.
5280         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
5281         (clear_mem_size): New function.
5282         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
5283         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
5284         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
5285         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
5286         to clear the size.
5287         (nonoverlapping_memrefs_p): Likewise.
5288         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
5289         (expand_builtin_init_trampoline): Likewise.
5290         * calls.c (compute_argument_addresses): Likewise.
5291         * cfgcleanup.c (merge_memattrs): Likewise.
5292         * dce.c (find_call_stack_args): Likewise.
5293         * dse.c (record_store, scan_insn): Likewise.
5294         * dwarf2out.c (dw_sra_loc_expr): Likewise.
5295         * expr.c (emit_block_move_hints): Likewise.
5296         * function.c (assign_parm_find_stack_rtl): Likewise.
5297         * print-rtl.c (print_rtx): Likewise.
5298         * reload.c (find_reloads_subreg_address): Likewise.
5299         * rtlanal.c (may_trap_p_1): Likewise.
5300         * var-tracking.c (track_expr_p): Likewise.
5301         * varasm.c (assemble_trampoline_template): Likewise.
5302         * config/arm/arm.c (arm_print_operand): Likewise.
5303         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
5304         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
5305         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
5306         (expand_constant_setmem_prologue): Likewise.
5307         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
5308         * config/rs6000/rs6000.c (expand_block_move): Likewise.
5309         (adjacent_mem_locations): Likewise.
5310         * config/s390/s390.c (s390_expand_setmem): Likewise.
5311         (s390_expand_insv): Likewise.
5312         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
5313         (*extendqi<mode>2_short_displ): Likewise.
5314         * config/sh/sh.c (expand_block_move): Likewise.
5315         * config/sh/sh.md (extv, extzv): Likewise.
5316
5317 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5318
5319         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
5320         (mem_attrs_htab_eq): ...here.
5321         (find_mem_attrs): Replace with...
5322         (set_mem_attrs): ...this function.  Take a mem_attrs structure
5323         rather than individual fields.
5324         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
5325         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
5326         (set_mem_size, change_address, adjust_address_1, offset_address)
5327         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
5328         Update accordingly.
5329
5330 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5331
5332         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
5333         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
5334         Provide a dummy definition of MEM_ADDR_SPACE for generators.
5335         (target_rtl): Add x_mode_mem_attrs.
5336         (mode_mem_attrs): New macro.
5337         (get_mem_attrs): New function.
5338         * emit-rtl.c (get_mem_attrs): Rename to...
5339         (find_mem_attrs): ...this.
5340         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
5341         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
5342         (set_mem_size, change_address, adjust_address_1, offset_address)
5343         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
5344         Update accordingly.
5345         (init_emit_regs): Initialize mode_mem_attrs.
5346
5347 2011-07-19  Richard Guenther  <rguenther@suse.de>
5348
5349         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
5350         TRUTH_*_EXPR handling.
5351         * tree-ssa-operands.c (get_expr_operands): Likewise.
5352         * tree-ssa-pre.c (fully_constant_expression): Likewise.
5353         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
5354         Likewise.
5355         (is_and_or_or): Likewise.
5356         (is_norm_cond_subset_of): Likewise.
5357
5358 2011-07-19  Richard Guenther  <rguenther@suse.de>
5359
5360         * tree.h (fold_build_pointer_plus_loc): New helper function.
5361         (fold_build_pointer_plus_hwi_loc): Likewise.
5362         (fold_build_pointer_plus): Define.
5363         (fold_build_pointer_plus_hwi): Likewise.
5364         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
5365         (fold_builtin_memory_op): Likewise.
5366         (fold_builtin_stpcpy): Likewise.
5367         (fold_builtin_memchr): Likewise.
5368         (fold_builtin_strstr): Likewise.
5369         (fold_builtin_strchr): Likewise.
5370         (fold_builtin_strrchr): Likewise.
5371         (fold_builtin_strpbrk): Likewise.
5372         (fold_builtin_strcat): Likewise.
5373         (expand_builtin_memory_chk): Likewise.
5374         (fold_builtin_memory_chk): Likewise.
5375         * c-typeck.c (build_unary_op): Likewise.
5376         * cgraphunit.c (thunk_adjust): Likewise.
5377         * fold-const.c (build_range_check): Likewise.
5378         (fold_binary_loc): Likewise.
5379         * omp-low.c (extract_omp_for_data): Likewise.
5380         (expand_omp_for_generic): Likewise.
5381         (expand_omp_for_static_nochunk): Likewise.
5382         (expand_omp_for_static_chunk): Likewise.
5383         * tree-affine.c (add_elt_to_tree): Likewise.
5384         * tree-data-ref.c (split_constant_offset_1): Likewise.
5385         * tree-loop-distribution.c (generate_memset_zero): Likewise.
5386         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
5387         * tree-predcom.c (ref_at_iteration): Likewise.
5388         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
5389         (add_to_parts): Likewise.
5390         (create_mem_ref): Likewise.
5391         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
5392         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
5393         (number_of_iterations_le): Likewise.
5394         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
5395         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5396         (vect_create_addr_base_for_vector_ref): Likewise.
5397         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
5398         (vect_create_cond_for_alias_checks): Likewise.
5399         * tree-vrp.c (extract_range_from_assert): Likewise.
5400         * config/alpha/alpha.c (alpha_va_start): Likewise.
5401         (alpha_gimplify_va_arg_1): Likewise.
5402         * config/i386/i386.c (ix86_va_start): Likewise.
5403         (ix86_gimplify_va_arg): Likewise.
5404         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
5405         * config/mep/mep.c (mep_expand_va_start): Likewise.
5406         (mep_gimplify_va_arg_expr): Likewise.
5407         * config/mips/mips.c (mips_va_start): Likewise.
5408         (mips_gimplify_va_arg_expr): Likewise.
5409         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
5410         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
5411         (rs6000_gimplify_va_arg): Likewise.
5412         * config/s390/s390.c (s390_va_start): Likewise.
5413         (s390_gimplify_va_arg): Likewise.
5414         * config/sh/sh.c (sh_va_start): Likewise.
5415         (sh_gimplify_va_arg_expr): Likewise.
5416         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
5417         * config/spu/spu.c (spu_va_start): Likewise.
5418         (spu_gimplify_va_arg_expr): Likewise.
5419         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
5420         Likewise.
5421         (xstormy16_gimplify_va_arg_expr): Likewise.
5422         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
5423         (xtensa_gimplify_va_arg_expr): Likewise.
5424
5425 2011-07-19  Richard Guenther  <rguenther@suse.de>
5426
5427         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
5428         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
5429         handling.
5430
5431         PR middle-end/18908
5432         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
5433         result of BIT_*_EXPR to bitfield precision.
5434
5435 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
5436
5437         PR tree-optimization/49742
5438         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
5439         as a potential write.
5440
5441 2011-07-19  Richard Guenther  <rguenther@suse.de>
5442
5443         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
5444         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
5445         (forward_propagate_comparison): Simplify, remove obsolete code.
5446
5447 2011-07-19  Richard Guenther  <rguenther@suse.de>
5448
5449         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
5450         BIT_XOR_EXPR, same as the RTL expander does.
5451         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
5452         (verify_gimple_assign_unary): Likewise.
5453         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
5454         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
5455         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
5456
5457 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
5458
5459         PR tree-optimization/49768
5460         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
5461         if offset is smaller than bitoffset, but offset+size is bigger
5462         than bitoffset.
5463
5464 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
5465
5466         PR tree-optimization/49771
5467         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
5468         zero step, set segment length to the size of the data-ref's type.
5469
5470 2011-07-18  Martin Jambor  <mjambor@suse.cz>
5471
5472         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
5473         comments.
5474         (ipcp_values_pool): Declare.
5475         (ipcp_sources_pool): Likewise.
5476         (ipcp_lattice): Changed to forward declaration.
5477         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
5478         cannot_devirtualize.
5479         (ipa_node_params): New fields descriptors, lattices, known_vals,
5480         clone_for_all_contexts and node dead, removed fields params and
5481         count_scale.
5482         (ipa_set_param_count): Removed.
5483         (ipa_get_param_count): Made to work with descriptors vector.
5484         (ipa_get_param): Updated.
5485         (ipa_param_cannot_devirtualize_p): Removed.
5486         (ipa_param_types_vec_empty): Likewise.
5487         (ipa_set_param_used): New function.
5488         (ipa_get_param_used): Updated to use descriptors vector.
5489         (ipa_func_list): Removed.
5490         (ipa_init_func_list): Removed declaration.
5491         (ipa_push_func_to_list_1): Likewise.
5492         (ipa_pop_func_from_list): Likewise.
5493         (ipa_push_func_to_list): Removed.
5494         (ipa_lattice_from_jfunc): Remove declaration.
5495         (ipa_get_jf_pass_through_result): Declare.
5496         (ipa_get_jf_ancestor_result): Likewise.
5497         (ipa_value_from_jfunc): Likewise.
5498         (ipa_get_lattice): Update.
5499         (ipa_lat_is_single_const): New function.
5500         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
5501         (ipa_init_func_list): Likewise.
5502         (ipa_pop_func_from_list): Likewise.
5503         (ipa_get_param_decl_index): Fix coding style.
5504         (count_formal_params): Removed.
5505         (count_formal_params_1): Renamed to count_formal_params.
5506         (ipa_populate_param_decls): Update to use descriptors vector.
5507         (ipa_initialize_node_params): Likewise.
5508         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
5509         (ipa_analyze_params_uses): Likewise.
5510         (ipa_free_node_params_substructures): Likewise and free also lattices
5511         and known values.
5512         (duplicate_array): Removed.
5513         (ipa_edge_duplication_hook): Add the new edge to the list of edge
5514         clones.
5515         (ipa_node_duplication_hook): Update to use new lattices.
5516         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
5517         (ipa_free_all_structures_after_iinln): Likewise.
5518         (ipa_write_node_info): Update to use new lattices.
5519         (ipa_read_node_info): Likewise.
5520         (ipa_get_jf_pass_through_result): New function.
5521         (ipa_get_jf_ancestor_result): Likewise.
5522         (ipa_value_from_jfunc): Likewise.
5523         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
5524         * ipa-cp.c: Reimplemented.
5525         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
5526         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
5527         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
5528         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
5529         * doc/invoke.texi (devirt-type-list-size): Removed description.
5530         (ipa-cp-value-list-size): Added description.
5531
5532 2011-07-18  Richard Henderson  <rth@redhat.com>
5533
5534         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
5535         before calling create_basic_block.
5536
5537 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
5538
5539         PR middle-end/49675
5540         * tree.c (build_common_builtin_nodes): Register
5541         __builtin_return_address, __cyg_profile_func_enter
5542         and __cyg_profile_func_exit.
5543
5544 2011-07-18  Richard Henderson  <rth@redhat.com>
5545
5546         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
5547         (add_labels_and_missing_jumps): ... here.
5548         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
5549
5550 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
5551
5552         PR target/47744
5553         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5554         of DImode hard registers in PLUS address chains.
5555
5556 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5557
5558         PR bootstrap/49769
5559         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
5560         (alpha*-*-freebsd*): Likewise.
5561         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
5562         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
5563         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
5564         crtprec80.o, crtfastmath.o to extra_parts for all targets.
5565         (ia64*-*-elf*): Remove extra_parts.
5566         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
5567         (sparc64-*-linux*): Likewise.
5568         (sparc64-*-freebsd*): Likewise.
5569
5570         Revert:
5571         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
5572         (ia64*-*-linux*): Likewise.
5573         (mips64*-*-linux*): Likewise.
5574         (mips*-*-linux*): Likewise.
5575
5576 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
5577
5578         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
5579
5580 2011-07-18  Richard Guenther  <rguenther@suse.de>
5581
5582         * gimplify.c (gimplify_expr): Use input_location, not saved_location
5583         when building new trees.
5584
5585 2011-07-18  Richard Guenther  <rguenther@suse.de>
5586
5587         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
5588         expansion result to bitfield precision if required.
5589
5590 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5591
5592         * config.gcc (i[3456x]86-*-netware*): Remove.
5593
5594         * gthr-nks.h: Remove.
5595         * configure.ac (enable_threads): Remove nks.
5596         * configure: Regenerate.
5597
5598         * config/i386/i386.c (ix86_encode_section_info): Remove netware
5599         reference.
5600         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
5601         <netware.h> reference.
5602
5603         * config/i386/netware-libgcc.c,
5604         gcc/config/i386/netware-libgcc.def,
5605         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
5606         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
5607         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
5608         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
5609
5610         * doc/extend.texi (Function Attributes,
5611         callee_pop_aggregate_return): Remove i?86-netware reference.
5612         * doc/install.texi (Configuration, --enable-threads): Remove nks.
5613
5614 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5615
5616         PR target/49746
5617         Revert:
5618         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5619
5620         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
5621         patterns.
5622
5623 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
5624
5625         PR middle-end/49732
5626         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
5627
5628 2011-07-16  Matthias Klose  <doko@ubuntu.com>
5629
5630         * doc/install.texi: Document --enable-static-libjava.
5631
5632 2011-07-15  Richard Henderson  <rth@redhat.com>
5633
5634         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
5635         Replace all three arguments by returning a VEC of edges.
5636         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
5637         pointers and counts.
5638         (fix_edges_for_rarely_executed_code): Merge ...
5639         (rest_of_handle_partition_blocks): ... into...
5640         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
5641         any work was performed.
5642         (pass_partition_blocks): Clear todo_flags_finish.
5643
5644 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
5645             Jakub Jelinek  <jakub@redhat.com>
5646             Jonathan Wakely  <jwakely.gcc@gmail.com>
5647
5648         PR libstdc++/49745
5649         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
5650         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
5651
5652 2011-07-15  Jason Merrill  <jason@redhat.com>
5653
5654         PR testsuite/49741
5655         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
5656         rather than --tool_opts.
5657
5658 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
5659
5660         * doc/plugins.texi (Building GCC plugins): gengtype needs its
5661         corresponding gtype.state.
5662
5663 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5664
5665         PR target/49723
5666         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
5667
5668 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
5669
5670         PR target/48220
5671         * doc/md.texi (Standard Names): Document window_save.
5672         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
5673         expand_debug_expr and expand_debug_source_expr.  If the target has
5674         a window_save instruction, adjust the ENTRY_VALUE_EXP.
5675         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
5676         SSA_NAME_VAR is a parameter.
5677         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
5678         * var-tracking.c (parm_reg_t): New type and associated vector type.
5679         (windowed_parm_regs): New variable.
5680         (adjust_insn): If the target has a window_save instruction and this
5681         is the instruction, make its effect on parameter registers explicit.
5682         (next_non_note_insn_var_location): New function.
5683         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
5684         (vt_add_function_parameter): If the target has a window_save insn,
5685         adjust the incoming RTL and record that in windowed_parm_regs.
5686         (vt_finalize): Free windowed_parm_regs.
5687
5688 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
5689
5690         * doc/invoke.texi (C6X Options): New section.
5691         * doc/md.texi (TI C6X family): New section.
5692         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
5693         tic6x-*-uclinux.
5694         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
5695         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
5696         Provide C6X definitions.
5697         * config/c6x/c6x.md: New file.
5698         * config/c6x/constraints.md: New file.
5699         * config/c6x/predicates.md: New file.
5700         * config/c6x/c6x-sched.md.in: New file.
5701         * config/c6x/c6x-sched.md: New file.
5702         * config/c6x/gensched.sh: New file.
5703         * config/c6x/c6x-mult.md.in: New file.
5704         * config/c6x/genmult.sh: New file.
5705         * config/c6x/c6x-mult.md: New file.
5706         * config/c6x/sync.md: New file.
5707         * config/c6x/c6x-protos.h: New file.
5708         * config/c6x/sfp-machine.h: New file.
5709         * config/c6x/c6x.c: New file.
5710         * config/c6x/c6x.h: New file.
5711         * config/c6x/crti.s: New file.
5712         * config/c6x/crtn.s: New file.
5713         * config/c6x/lib1funcs.asm: New file.
5714         * config/c6x/c6x-modes.def: New file.
5715         * config/c6x/genopt.sh: New file.
5716         * config/c6x/c6x.opt: New file.
5717         * config/c6x/c6x-tables.opt: New file.
5718         * config/c6x/c6x-opts.h: New file.
5719         * config/c6x/c6x-isas.def: New file.
5720         * config/c6x/elf.h: New file.
5721         * config/c6x/elf-common.h: New file.
5722         * config/c6x/uclinux-elf.h: New file.
5723         * config/c6x/t-c6x: New file.
5724         * config/c6x/t-c6x-elf: New file.
5725         * config/c6x/t-c6x-uclinux: New file.
5726         * config/c6x/t-c6x-softfp: New file.
5727         * config/c6x/gtd.c: New file.
5728         * config/c6x/gtf.c: New file.
5729         * config/c6x/ltd.c: New file.
5730         * config/c6x/ltf.c: New file.
5731         * config/c6x/ged.c: New file.
5732         * config/c6x/gef.c: New file.
5733         * config/c6x/led.c: New file.
5734         * config/c6x/lef.c: New file.
5735         * config/c6x/eqd.c: New file.
5736         * config/c6x/eqf.c: New file.
5737         * config/c6x/libgcc-c6xeabi.ver: New file.
5738
5739         Revert
5740         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
5741         PR rtl-optimization/11320
5742         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
5743         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
5744         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
5745         current_sched_info->compute_jump_reg_dependencies. Record which
5746         registers are used and which registers are set by the jump.
5747         Clear deps->reg_conditional_sets after a barrier.
5748         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
5749         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
5750         (init_deps): Initialize reg_conditional_sets.
5751         (free_deps): Clear reg_conditional_sets.
5752         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
5753         Mark registers live on entry of the fallthrough block and conditionally
5754         set as set by the jump. Mark registers live on entry of non-fallthrough
5755         blocks as used by the jump.
5756         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
5757         Mark new parameters as unused.
5758
5759 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
5760
5761         PR tree-opt/49309
5762         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
5763         Use fold_build2_loc instead of build2.
5764         Use the correct type for the new tree.
5765
5766 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
5767
5768         PR rtl-optimization/11320
5769         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
5770         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
5771
5772 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
5773
5774         PR target/49487
5775         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
5776         of REG.
5777         (*rotw<mode>): Use const_int_operand for operand2.
5778         Use match_scatch for operand3.
5779         (*rotb<mode>): Ditto
5780         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
5781
5782 2011-07-14  Richard Guenther  <rguenther@suse.de>
5783
5784         PR tree-optimization/49651
5785         * tree-ssa-structalias.c (get_constraint_for_1): Properly
5786         handle dereferences with subvariables.
5787
5788 2011-07-14  Richard Guenther  <rguenther@suse.de>
5789
5790         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
5791         (fold_stmt_1): Do it here directly on gimple and as a first thing.
5792
5793 2011-07-14  Richard Guenther  <rguenther@suse.de>
5794
5795         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
5796         not bool_var when folding bool_var != 1 or bool_var == 0.
5797
5798 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
5799
5800         * haifa-sched.c (schedule_insns): Remove outdated comment.
5801         (schedule_block): When computing a known value for TODO_SPEC,
5802         just set it rather than using logical operations.
5803         (try_ready): Likewise.  Use a local variable rather than a
5804         pointer to TODO_SPEC.  Reorder an if statement to move the
5805         easy case to the then block.
5806         * sched-deps.c (dep_spec_p): New static function.
5807         (update_dep): Use it to decide whether to call
5808         change_spec_dep_to_hard.
5809         (get_back_and_forw_lists): Use it.
5810         (sd_resolve_dep): Likewise.
5811         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
5812         (haifa_note_mem_dep): Likewise.
5813         (check_dep): Likewise.
5814         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
5815         (sched_free_deps): Free in two passes.
5816
5817 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
5818
5819         PR middle-end/49736
5820         * expr.c (all_zeros_p): Undo bogus part of last change.
5821
5822 2011-07-14  Matthias Klose <doko@ubuntu.com>
5823
5824         * doc/extend.texi (optimize attribute): Fix typo.
5825
5826 2011-07-14  Richard Guenther  <rguenther@suse.de>
5827
5828         * gimplify.c (gimplify_expr): Only do required conversions.
5829
5830 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
5831
5832         PR target/43746
5833         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
5834         i.e. use default_elf_select_section.
5835         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
5836         (READONLY_DATA_SECTION_ASM_OP): Remove.
5837         (TARGET_ASM_NAMED_SECTION): Move from here...
5838         * config/avr/avr.c: ...to here.
5839         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
5840         (avr_asm_named_section): Make static.
5841
5842 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5843
5844         PR bootstrap/49739
5845         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
5846         and crtfastmath.o for Linux/x86.
5847
5848 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
5849
5850         * haifa-sched.c: Include "hashtab.h"
5851         (sched_no_dce): New global variable.
5852         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
5853         SHADOW_P): New macros.
5854         (last_clock_var, cycle_issued_insns): Move declarations.
5855         (must_backtrack): New static variable.
5856         (struct delay_pair): New structure.
5857         (delay_htab, delay_htab_i2): New static variables.
5858         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
5859         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
5860         functions.
5861         (dep_cost_1): If delay pairs exist, try to look up the insns and
5862         use the correct pair delay if we find them.
5863         (rank-for_schedule): Tweak priority for insns that must be scheduled
5864         soon to avoid backtracking.
5865         (queue_insn): Detect conditions which force backtracking.
5866         (ready_add): Likewise.
5867         (struct sched_block_state): Add member shadows_only_p.
5868         (struct haifa_save_data): New structure.
5869         (backtrack_queue): New static variable.
5870         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
5871         unschedule_insns_until, restore_last_backtrack_point,
5872         free_topmost_backtrack_point, free_backtrack_queue,
5873         estimate_insn_tick, estimate_shadow_tick): New functions.
5874         (prune_ready_list): New arg shadows_only_p.  All callers changed.
5875         If true, remove everything that isn't SHADOW_P.  Look up delay
5876         pairs and estimate ticks to avoid scheduling the first insn too early.
5877         (verify_shadows): New function.
5878         (schedule_block): Add machinery to enable backtracking.
5879         (sched_init): Take sched_no_dce into account when setting
5880         DF_LR_RUN_DCE.
5881         (free_delay_pairs): New function.
5882         (init_h_i_d): Initialize INSN_EXACT_TICK.
5883         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
5884         * sched-deps.c (sd_unresolve_dep): New function.
5885         * sched-int. (struct haifa_sched_info): New fields save_state
5886         and restore_state.
5887         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
5888         feeds_backtrack_insn and shadow_p.
5889         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
5890         (sched_no_dce): Declare variable.
5891         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
5892         sd_unresolve_dep): Declare functions.
5893         * modulo-sched.c (sms_sched_info): Clear the two new fields.
5894         * sched-rgn.c (rgn_const_sched_info): Likewise.
5895         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5896         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
5897         (ebb_sched_info): Add them for the two new fields.
5898         (add_deps_for_risky_insns): Call add_delay_dependencies.
5899
5900 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
5901
5902         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
5903         Rename -mr11.
5904         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
5905         (rs6000_call_indirect_aix): Ditto.
5906         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
5907         (call_indirect_aix<ptrsize>_internal): Ditto.
5908         (call_indirect_aix<ptrsize>_nor11): Ditto.
5909         (call_indirect_aix<ptrsize>_internal2): Ditto.
5910         (call_value_indirect_aix<ptrsize>): Ditto.
5911         (call_value_indirect_aix<ptrsize>_internal): Ditto.
5912         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
5913         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
5914         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
5915
5916 2011-07-13  Jason Merrill  <jason@redhat.com>
5917
5918         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
5919
5920 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5921
5922         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
5923         * config/spu/spu.md ("clrsb<mode>2"): New expander.
5924
5925 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
5926
5927         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
5928         * configure: Regenerate.
5929
5930 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5931
5932         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
5933         (asm_file_start): Remove.
5934         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
5935         free_bb_for_insn around code that modifies insns before
5936         restarting df analysis.
5937
5938 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5939
5940         PR target/49541
5941         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
5942         (LINK_SPEC): ... here.
5943
5944 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
5945
5946         * haifa-sched.c (struct sched_block_state): New.
5947         (schedule_block): Move some local variables into such a structure.
5948
5949 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5950
5951         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
5952         * config/i386/t-crtpc: Remove.
5953         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
5954         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
5955         tmake_file.
5956         (x86_64-*-darwin*): Likewise.
5957         (i[34567]86-*-linux*): Likewise.
5958         (x86_64-*-linux*): Likewise.
5959
5960         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
5961         Handle -mpc32, -mpc64, -mpc80.
5962
5963 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5964
5965         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
5966         * config/alpha/t-crtfm: Remove.
5967         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
5968         * config/i386/t-crtfm: Remove.
5969         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
5970         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
5971         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
5972         * config/sparc/t-crtfm: Remove.
5973
5974         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
5975         (alpha*-*-freebsd*): Likewise.
5976         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
5977         (x86_64-*-darwin*): Likewise.
5978         (i[34567]86-*-linux*): Likewise.
5979         (x86_64-*-linux*): Likewise.
5980         (x86_64-*-mingw*): Likewise.
5981         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
5982         (ia64*-*-freebsd*): Likewise.
5983         (ia64*-*-linux*): Likewise.
5984         (mips64*-*-linux*): Likewise.
5985         (mips*-*-linux*): Likewise.
5986         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
5987         (sparc64-*-linux*): Likewise.
5988         (sparc64-*-freebsd*): Likewise.
5989
5990 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5991
5992         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
5993         * config/darwin-crt3.c: Move to ../libgcc/config.
5994         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
5995         ($(T)crt3$(objext)): Remove.
5996         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
5997         ($(T)crt2$(objext)): Remove.
5998         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
5999         (powerpc64-*-darwin*): Likewise.
6000
6001 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
6002
6003         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
6004
6005         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
6006         (addsi_1_zext): This.
6007
6008 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
6009
6010         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
6011         * doc/tm.texi: Regenerate.
6012         * target.def (mergeable_rodata_prefix): New defhookpod.
6013         * varasm.c (mergeable_string_section, mergeable_constant_section):
6014         Use it. Allocate name with alloca.
6015
6016 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
6017
6018         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
6019
6020 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
6021
6022         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
6023         overlap check.
6024
6025 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
6026
6027         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
6028         (count_type_elements): Delete.
6029         (complete_ctor_at_level_p): Declare.
6030         * expr.c (flexible_array_member_p): New function, split out from...
6031         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
6032         parameter with for_ctor_p.  When for_ctor_p is true, return the
6033         number of elements that should appear in the top-level constructor,
6034         otherwise return an estimate of the number of scalars.
6035         (categorize_ctor_elements): Replace p_must_clear with p_complete.
6036         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
6037         (complete_ctor_at_level_p): New function, borrowing union logic
6038         from old categorize_ctor_elements_1.
6039         (mostly_zeros_p): Return true if the constructor is not complete.
6040         (all_zeros_p): Update call to categorize_ctor_elements.
6041         * gimplify.c (gimplify_init_constructor): Update call to
6042         categorize_ctor_elements.  Don't call count_type_elements.
6043         Unconditionally prevent clearing for variable-sized types,
6044         otherwise rely on categorize_ctor_elements to detect
6045         incomplete initializers.
6046
6047 2011-07-13  Richard Guenther  <rguenther@suse.de>
6048
6049         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
6050         the final type is integral.
6051
6052 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
6053
6054         * sched-int.h (struct _dep): Add member cost.
6055         (DEP_COST, UNKNOWN_DEP_COST): New macros.
6056         * sched-deps.c (init_dep_1): Initialize DEP_COST.
6057         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
6058         (sched_change_pattern): Reset it for dependent insns.
6059
6060 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6061
6062         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
6063         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
6064         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
6065         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
6066         (CRT0_S, MCRT0_S): Remove.
6067         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
6068         Remove.
6069         (s-crt0): Remove.
6070         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
6071
6072 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
6073
6074         * cse.c (insert_with_costs): Put semi-colon after empty loop body
6075         on the next line.
6076         * emit-rtl.c (push_to_sequence): Likewise.
6077         * haifa-sched.c (max_issue): Likewise.
6078         * matrix-reorg.c (add_allocation_site): Likewise.
6079         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
6080         * reload.c (alternative_allows_const_pool_ref): Likewise.
6081         * sched-rgn.c (rgn_add_block): Likewise.
6082         (rgn_fix_recovery_cfg): Likewise.
6083         * tree.c (attribute_list_contained): Likewise.
6084
6085 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
6086
6087         * config/i386/i386.c: Tidy processor feature bitmasks.
6088         (m_P4_NOCONA): New.
6089
6090 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
6091
6092         PR rtl-opt/49474
6093         * cprop.c (find_implicit_sets): Correct the condition.
6094
6095 2011-07-12  Richard Henderson  <rth@redhat.com>
6096
6097         PR target/49713
6098         * dwarf2out.h (dwarf_frame_regnum): Remove.
6099         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
6100         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
6101         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
6102         (execute_dwarf2_frame): Initialize them.
6103         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
6104         users of the macros with the variables.
6105         (expand_builtin_dwarf_sp_column): Revert last change.
6106         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
6107         result of DWARF_FRAME_REGNUM into a local variable.
6108
6109 2011-07-12  Richard Henderson  <rth@redhat.com>
6110
6111         PR target/49714
6112         * config/i386/i386.c (x86_output_mi_thunk): Use
6113         machopic_indirect_call_target instead of machopic_indirection_name
6114         directly.
6115
6116 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
6117             Eric Botcazou  <ebotcazou@adacore.com>
6118
6119         * prefix.h: Wrap up in extern "C" block.
6120
6121 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
6122
6123         AMD bdver2 Enablement
6124         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
6125         (case ${target}): Add bdver2.
6126         * config/i386/driver-i386.c (host_detect_local_cpu): Let
6127         -march=native recognize bdver2 processors.
6128         * config/i386/i386-c.c (ix86_target_macros_internal): Add
6129         bdver2 def_and_undef
6130         * config/i386/i386.c (struct processor_costs bdver2_cost): New
6131         bdver2 cost table.
6132         (m_BDVER2): New definition.
6133         (m_AMD_MULTIPLE): Includes m_BDVER2.
6134         (initial_ix86_tune_features): Add bdver2 tuning.
6135         (processor_target_table): Add bdver2 entry.
6136         (static const char *const cpu_names): Add bdver2 entry.
6137         (ix86_option_override_internal): Add bdver2 instruction sets.
6138         (ix86_issue_rate): Add bdver2.
6139         (ix86_adjust_cost): Add bdver2.
6140         (has_dispatch): Add bdver2.
6141         * config/i386/i386.h (TARGET_BDVER2): New definition.
6142         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
6143         (enum processor_type): Add PROCESSOR_BDVER2.
6144         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
6145         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
6146         description.
6147
6148 2011-07-12  Richard Henderson  <rth@redhat.com>
6149
6150         PR target/49714
6151         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
6152         destination address in memory on some paths.
6153
6154 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
6155
6156         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
6157         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
6158         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
6159         * function.c (locate_and_pad_parm): Take it into account.
6160         * target.def (function_arg_round_boundary): New hook.
6161         * targhooks.c (default_function_arg_round_boundary): New function.
6162         * targhooks.h (default_function_arg_round_boundary): Declare.
6163         * doc/tm.texi: Regenerate.
6164
6165 2011-07-12  Richard Guenther  <rguenther@suse.de>
6166
6167         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
6168         Do not perform no-op changes.
6169
6170 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
6171
6172         * config/arm/predicates.md (neon_struct_operand): Make a normal
6173         predicate.
6174         (neon_struct_or_register_operand): New predicate.
6175         * config/arm/neon.md (movmisalign<mode>): Replace predicates
6176         with neon_struct_or_register_operand.
6177         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
6178         neon_struct_operand instead of memory_operand.
6179
6180 2011-07-12  Martin Jambor  <mjambor@suse.cz>
6181
6182         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
6183         * cgraph.c (cgraph_get_node_or_alias): Removed.
6184         (change_decl_assembler_name): Changed all calls to
6185         cgraph_get_node_or_alias to a call to cgraph_get_node.
6186         (cgraph_make_decl_local): Likewise.
6187         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
6188         * varasm.c (default_binds_local_p_1): Likewise.
6189         (decl_binds_to_current_def_p): Likewise.
6190
6191 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
6192
6193         PR tree-optimization/49712
6194         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
6195
6196 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
6197
6198         * genautomata.c (add_arc): Return void.  All callers changed.
6199         (make_automaton): Remove dead code.
6200
6201 2011-07-11  Richard Henderson  <rth@redhat.com>
6202
6203         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
6204         (DW_FRAME_POINTER_REGNUM): New.
6205         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
6206         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
6207         (dwf_regno): New.
6208         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
6209         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
6210         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
6211         Use it.
6212         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
6213         * dwarf2out.h (dwarf_frame_regnum): New.
6214         (struct cfa_loc): Document the domain of the reg member.
6215
6216 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
6217
6218         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
6219         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
6220
6221 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
6222
6223         PR debug/49676
6224         * dwarf2out.c (int_shift_loc_descriptor): New function.
6225         (int_loc_descriptor): If shorter, emit i as
6226         (i >> shift), shift, DW_OP_shl for suitable shift value.
6227         Similarly, try to optimize large negative values using
6228         DW_OP_neg of a positive value if shorter.
6229         (size_of_int_shift_loc_descriptor): New function.
6230         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
6231         changes.
6232         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
6233         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
6234         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
6235         is shorter.
6236         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
6237         addend as added DW_OP_plus if it is shorter.
6238
6239 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6240
6241         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
6242         (DTORS_SECTION_ASM_OP): Define.
6243
6244 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6245
6246         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
6247         * config/t-dfprules: Move to ../libgcc/config.
6248         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6249         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6250         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
6251         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
6252         Likewise.
6253         (i[34567]86-*-cygwin*): Likewise.
6254         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
6255         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
6256         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
6257         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
6258         D64PBIT_FUNCS, D128PBIT_FUNCS.
6259
6260 2011-07-11  Richard Guenther  <rguenther@suse.de>
6261
6262         * tree-vrp.c (simplify_conversion_using_ranges): Manually
6263         translate the source value-range through the conversion chain.
6264
6265 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
6266
6267         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
6268
6269 2011-07-11  Arthur Loiret  <aloiret@debian.org>
6270
6271         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
6272         a bi-arch compiler defaulting to 31-bit. In this case:
6273         (tmake_file): Add s390/t-linux64.
6274         * doc/install.texi: Add s390-linux to the list of targets supporting
6275         --enable-targets=all.
6276
6277 2011-07-11  Arthur Loiret  <aloiret@debian.org>
6278             Matthias Klose <doko@debian.org>
6279
6280         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
6281         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
6282         (tm_file): Add mips/linux64.h.
6283         (tmake_file): Add mips/t-linux64.
6284         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
6285         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
6286         instead of hardcoded mabi=n32.
6287         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
6288         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
6289         convention.
6290
6291 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6292
6293         * passes.c (init_optimization_passes): Add invariant motion pass
6294         after induction variable optimization.
6295
6296 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
6297
6298         PR target/39633
6299         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
6300         offsets 1..5 set cc0 in a usable way.
6301
6302 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
6303
6304         * tree.h (call_expr_arg): Remove.
6305         (call_expr_argp): Likewise.
6306
6307 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
6308
6309         * config/sparc/sparc.md (save_register_window_1): Rename to...
6310         (window_save): ...this.
6311         * config/sparc/sparc.c (emit_save_register_window): Rename to...
6312         (emit_window_save): ...this.
6313         (sparc_expand_prologue): Adjust to above renaming.
6314
6315 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
6316
6317         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
6318         of movabs for x32.
6319
6320 2011-07-10  Richard Henderson  <rth@redhat.com>
6321
6322         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
6323         run final, instead of emitting text directly.
6324
6325 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
6326
6327         * config/i386/i386.c (ix86_option_override_internal): Turn on
6328         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
6329         small PIC models for TARGET_X32.
6330
6331 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
6332
6333         PR target/49684
6334         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
6335         $(LIBGCC2_CFLAGS).
6336
6337         PR bootstrap/49680
6338         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
6339         stray notes and debug insns by using prev_nonnote_nondebug_insn
6340         instead of PREV_INSN.
6341
6342 2011-07-09  Richard Henderson  <rth@redhat.com>
6343
6344         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
6345         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
6346         * dwarf2out.c: ... here.
6347         (output_all_cfis): Remove.
6348         (dwarf2out_switch_text_section): Use output_cfis directly.
6349         (size_of_locs): Export.
6350         (output_loc_sequence, output_loc_sequence_raw): Export.
6351         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
6352         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
6353         output_cfa_loc_raw): Move to ...
6354         * dwarfcfi.c: ... here.
6355         * dwarf2out.h: Update decls.
6356
6357 2011-07-09  Richard Henderson  <rth@redhat.com>
6358
6359         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
6360         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
6361         * dwarf2cfi.c: ... here.
6362         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
6363         (DWARF_ROUND, DWARF_CIE_ID): Remove.
6364         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
6365         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
6366         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
6367
6368 2011-07-09  Richard Henderson  <rth@redhat.com>
6369
6370         * dwarf2cfi.c (cie_return_save): New.
6371         (queue_reg_save): Use compare_reg_or_pc.
6372         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
6373         (dwarf2out_frame_debug_expr): Likewise.
6374         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
6375         (initial_return_save): Likewise.
6376         (execute_dwarf2_frame): Save and restore initial return save from
6377         the cie to the fde.
6378         * config/mips/mips.c (mips_frame_set): Remove special case for
6379         DWARF_FRAME_RETURN_COLUMN.
6380
6381 2011-07-09  Richard Henderson  <rth@redhat.com>
6382
6383         * dwarf2cfi.c (lookup_cfa): Remove.
6384         (execute_dwarf2_frame): Assert queues are empty on entry.
6385         Setup initial cfa directly, not via lookup_cfa.
6386         Don't clear args_size state here.
6387
6388 2011-07-09  Richard Henderson  <rth@redhat.com>
6389
6390         * dwarf2cfi.c (add_cfi_vec): New.
6391         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
6392         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
6393         (execute_dwarf2_frame): Set add_cfi_vec.
6394
6395 2011-07-09  Richard Henderson  <rth@redhat.com>
6396
6397         * defaults.h (ASM_COMMENT_START): Move here...
6398         * dwarf2asm.c: ... from here.
6399         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
6400         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
6401         * varasm.c: Likewise.
6402
6403 2011-07-09  Richard Henderson  <rth@redhat.com>
6404
6405         PR debug/49686
6406         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
6407         (create_cfi_notes): ... do it here instead.
6408
6409 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
6410
6411         PR debug/49676
6412         * dwarf2out.c (size_of_int_loc_descriptor): New function.
6413         (address_of_int_loc_descriptor): Use it.
6414         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
6415
6416 2011-07-09  Richard Henderson  <rth@redhat.com>
6417
6418         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
6419         (prologue, epilogue): New.
6420         (return, *rts): New.
6421         (blockage, setd, seti): New.
6422         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
6423         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
6424         (pdp11_saved_regno): New.
6425         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
6426         generate rtl instead of text.
6427         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
6428         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
6429         * config/pdp11/pdp11-protos.h: Update.
6430
6431 2011-07-09  Richard Henderson  <rth@redhat.com>
6432
6433         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
6434         try to insert an rtl prologue here.
6435         (rs6000_output_function_epilogue): Similarly.
6436         * config/rs6000/rs6000.md (prologue): Emit a barrier to
6437         satisfy !TARGET_SCHED_PROLOG.
6438         (epilogue, sibcall_epilogue): Likewise.
6439
6440 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
6441
6442         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
6443         (FP_REG_P): Delete.
6444         (IN_OR_GLOBAL_P): Likewise.
6445
6446 2011-07-08  Jason Merrill  <jason@redhat.com>
6447
6448         PR c++/45437
6449         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
6450         compound assignment.
6451
6452         * cgraph.c (cgraph_add_to_same_comdat_group): New.
6453         * cgraph.h: Declare it.
6454         * ipa.c (function_and_variable_visibility): Make sure thunks
6455         have the right visibility.
6456
6457 2011-07-08  Richard Henderson  <rth@redhat.com>
6458
6459         PR bootstrap/49680
6460         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
6461         any tablejump vector.
6462
6463         PR bootstrap/49680
6464         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
6465         end of the prologue.
6466
6467 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
6468
6469         PR target/49621
6470         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
6471         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
6472         * config/rs6000/vector.md (vector_select_<mode>,
6473         vector_select_<mode>_uns): Change second operand of NE to
6474         CONST0_RTX (<MODE>mode) instead of const0_rtx.
6475         * config/rs6000/altivec.md (*altivec_vsel<mode>,
6476         *altivec_vsel<mode>_uns): Expect second operand of NE to be
6477         zero_constant of the corresponding vector mode.
6478         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
6479         Likewise.
6480
6481 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
6482
6483         * graphite-dependences.c (build_alias_set_powerset): Remove
6484         continue from loop, add one more assert.
6485
6486 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
6487
6488         PR target/46779
6489         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
6490         In particular, allow 8-bit values in r28 and r29.
6491         (avr_hard_regno_scratch_ok): Disallow any register that might be
6492         part of the frame pointer.
6493         (avr_hard_regno_rename_ok): Same.
6494         (avr_legitimate_address_p): Don't allow SUBREGs.
6495
6496 2011-07-08  Julian Brown  <julian@codesourcery.com>
6497
6498         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
6499         big-endian mode.
6500         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
6501         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
6502         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
6503         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
6504         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
6505         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
6506         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
6507         registers in big-endian mode.
6508
6509 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
6510
6511         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
6512         in terms of another.
6513         (write_attr_value): Write a cast if necessary.
6514
6515         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
6516         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
6517         (REG_WORDS_BIG_ENDIAN): Document.
6518         * doc/tm.texi: Regenerate.
6519         * reload.c (operands_match_p): Take it into account.
6520         (reload_adjust_reg_for_mode): Likewise.
6521         * rtlanal.c (subreg_get_info): Likewise.
6522
6523 2011-07-08  Richard Guenther  <rguenther@suse.de>
6524
6525         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
6526         folding.
6527
6528 2011-07-08  Kai Tietz  <ktietz@redhat.com>
6529
6530         * fold-const.c (fold_truth_andor): Factored out truth_andor
6531         label from fold_binary as function.
6532         (fold_binary_loc): Replace truth_andor lable
6533         by function fold_truth_andor.
6534
6535 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
6536
6537         PR middle-end/49519
6538         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
6539         check if address is stored in register. If so - give up.
6540         (check_sibcall_argument_overlap_1): Do not perform check of
6541         overlapping when it is call to address.
6542
6543 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
6544
6545         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
6546         of magic '31'.
6547
6548 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
6549
6550         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
6551         GET_MODE_BITSIZE where appropriate.
6552         (widen_leading, expand_parity, expand_ctz, expand_ffs,
6553         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
6554         expand_float, expand_fix): Likewise.
6555         * expr.c (convert_move, convert_modes, expand_expr_real_2,
6556         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
6557         * stor-layout.c (get_mode_bounds): Likewise.
6558         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
6559         Likewise.
6560         * convert.c (convert_to_integer): Likewise.
6561         * expmed.c (expand_shift_1): Likewise.
6562
6563         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
6564         a bitsize.
6565
6566         * optabs.c (expand_binop): Tighten conditions for doubleword
6567         expansions.
6568         (widen_bswap): Assert that mode bitsize and precision are the same.
6569         * stor-layout.c (get_best_mode): Skip modes that have lower
6570         precision than bitsize.
6571         * recog.c (simplify_while_replacing): Assert that bitsize and
6572         precision are the same.
6573
6574 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6575
6576         * Makefile.in (LIBGCOV): Remove.
6577         (libgcc.mvars): Remove LIBGCOV.
6578         * libgov.c: Move to ../libgcc.
6579
6580 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6581
6582         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
6583
6584 2011-07-08  Martin Jambor  <mjambor@suse.cz>
6585
6586         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
6587         is too big for total scalarization.
6588
6589 2011-07-07  Richard Henderson  <rth@redhat.com>
6590
6591         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
6592         (DBX_DEBUGGING_INFO): Undef.
6593
6594 2011-07-07  Richard Henderson  <rth@redhat.com>
6595
6596         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
6597         Handle some opcodes specially for debugging.
6598         * print-rtl.c: Include dwarf2out.h
6599         (print_rtx): Handle NOTE_INSN_CFI.
6600         * Makefile.in (print-rtl.o): Update.
6601
6602 2011-07-07  Richard Henderson  <rth@redhat.com>
6603
6604         * tree-pass.h (pass_dwarf2_frame): Declare.
6605         * passes.c (init_optimization_passes): Add it.
6606         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
6607         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
6608         make static, do not call add_cfis_to_fde.
6609         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
6610         dwarf2out_frame_init): Merge into...
6611         (execute_dwarf2_frame): ... here.  New function.
6612         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
6613         saved_do_cfi_asm to a tri-state variable.
6614         (gate_dwarf2_frame, pass_dwarf2_frame): New.
6615         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
6616         if it has yet to be done.  Don't call dwarf2cfi_function_init.
6617         * dwarf2out.h, debug.h: Update decls.
6618         * final.c (final_start_function): Don't call
6619         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
6620         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
6621         * toplev.c (lang_dependent_init): Likewise.
6622
6623 2011-07-07  Richard Henderson  <rth@redhat.com>
6624
6625         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
6626         FDE_TABLE_INCREMENT): Replace with...
6627         (fde_vec): ... this, a new vector.
6628         (current_fde): Remove.  Replace all users with cfun->fde.
6629         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
6630         (size_of_aranges, dwarf2out_finish): Likewise.
6631         (dwarf2out_alloc_current_fde): Break out from ...
6632         (dwarf2out_begin_prologue): ... here.
6633         (dwarf2out_frame_init): Remove.
6634         * dwarf2cfi.c: Update all users of current_fde.
6635         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
6636         * dwarf2out.h: Update decls.
6637         (dw_fde_node): Add fde_index member.
6638         * function.h (struct function): Add fde member.
6639
6640 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6641             Richard Henderson  <rth@redhat.com>
6642
6643         * dwarf2cfi.c (add_cfi): Remove.
6644         (dwarf2out_cfi_label): Remove force argument.  Only generate the
6645         label name.
6646         (add_fde_cfi): Simplify the different code paths.
6647         (add_cie_cfi): New.
6648         (old_cfa, old_cfa_remember): New.
6649         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
6650         (last_reg_save_label): Remove.
6651         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
6652         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
6653         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
6654         dwarf2out_frame_debug_cfa_expression,
6655         dwarf2out_frame_debug_cfa_restore,
6656         dwarf2out_frame_debug_cfa_window_save,
6657         dwarf2out_frame_debug_expr): Remove label parameter.
6658         (cfi_label_required_p, add_cfis_to_fde): New.
6659         (dwarf2out_frame_debug_after_prologue): New.
6660         (dwarf2cfi_frame_init): Initialize old_cfa.
6661         (dwarf2out_frame_debug_restore_state): Likewise.
6662         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
6663         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
6664         * final.c (final_start_function): Call
6665         dwarf2out_frame_debug_after_prologue.
6666
6667 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6668             Richard Henderson  <rth@redhat.com>
6669
6670         * dwarf2cfi.c (cfi_insn): New.
6671         (dwarf2out_cfi_label): Don't emit cfi label here.
6672         (add_fde_cfi): Create a NOTE_INSN_CFI.
6673         (dwarf2out_frame_debug): Setup cfi_insn.
6674         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
6675         (dwarf2out_cfi_begin_epilogue): Make static.
6676         (dwarf2out_frame_debug_restore_state): Make static.
6677         * dwarf2out.c (output_cfi_directive): Make static.
6678         (dwarf2out_emit_cfi): New.
6679         * dwarf2out.h: Update.
6680         * final.c (final): Remove CFI notes.
6681         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
6682         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
6683         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
6684         * insn-notes.def (NOTE_INSN_CFI): New.
6685         (NOTE_INSN_CFI_LABEL): New.
6686         * rtl.h (union rtunion_def): Add rt_cfi member.
6687         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
6688
6689 2011-07-07  Richard Henderson  <rth@redhat.com>
6690
6691         * dwarf2cfi.c: New file.
6692         * Makefile.in (OBJS): Add it.
6693         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
6694         * gengtype.c (open_base_files): Include dwarf2out.h.
6695         * coretypes.h (enum var_init_status): Move from ...
6696         * rtl.h: ... here.
6697         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
6698         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
6699         expand_builtin_dwarf_sp_column, init_return_column_size,
6700         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
6701         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
6702         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
6703         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
6704         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
6705         compute_barrier_args_size, dwarf2out_args_size,
6706         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
6707         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
6708         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
6709         queue_reg_save, dwarf2out_flush_queued_reg_saves,
6710         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
6711         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
6712         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
6713         dwarf2out_frame_debug_cfa_expression,
6714         dwarf2out_frame_debug_cfa_restore,
6715         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
6716         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
6717         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
6718         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
6719         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
6720         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
6721         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
6722         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
6723         dw_loc_descr_node): Move to dwarf2out.h.
6724         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
6725         mem_loc_descriptor): Export.
6726         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
6727         (dwarf2out_frame_init): Extract CIE generation code to
6728         dwarf2cfi_frame_init.
6729
6730 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
6731
6732         PR target/49660
6733         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
6734         MASK_V8PLUS, remove commented out flag and reorder.
6735
6736 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
6737
6738         PR c/49644
6739         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
6740         one non-complex and one complex argument, call c_save_expr on both
6741         operands.
6742
6743 2011-07-07  Martin Jambor  <mjambor@suse.cz>
6744
6745         PR middle-end/49495
6746         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
6747         (verify_cgraph_node): Some functinality moved to
6748         verify_edge_corresponds_to_fndecl, call it.
6749
6750 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
6751
6752         * config.gcc (*local*): Remove.
6753         * doc/install-old.texi: Don't mention local configurations.
6754
6755 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
6756
6757         PR debug/49522
6758         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
6759         referencing debug insns that have been reset.
6760         (dead_debug_insert_before): Don't assert reg is non-NULL,
6761         instead return immediately if it is NULL.
6762
6763 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
6764
6765         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
6766
6767 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6768
6769         * hw-doloop.c: New file.
6770         * hw-doloop.h: New file.
6771         * Makefile.in (OBJS): Add hw-doloop.o.
6772         (hw-doloop.o): New rule.
6773         ($(obj_out_file)): Add hw-doloop.h dependency.
6774         * config/bfin/bfin.c: Include "hw-doloop.h".
6775         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
6776         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
6777         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
6778         type changed to hwloop_info.  Return bool, true if the loop was
6779         successfully optimized.  Remove code that was moved to
6780         hw-doloop.c, and adjust other parts.
6781         (hwloop_fail): New static function, containing parts that used
6782         to be in bfin_optimize_loop.
6783         (bfin_discover_loop, bfin_discover_loops, free_loops,
6784         bfin_reorder_loops): Remove.
6785         (hwloop_pattern_reg): New static function.
6786         (bfin_doloop_hooks): New variable.
6787         (bfin_reorg_loops): Remove most code, call reorg_loops.
6788         * config/bfin/bfin.md (doloop_end splitter): Also enable if
6789         loop counter is a memory_operand.
6790
6791 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
6792
6793         * config.gcc: Support --with-multilib-list for x86 Linux targets.
6794
6795         * configure.ac: Mention x86-64 for --with-multilib-list.
6796         * configure: Regenerated.
6797
6798         * config/i386/gnu-user64.h (SPEC_64): Support x32.
6799         (SPEC_32): Likewise.
6800         (ASM_SPEC): Likewise.
6801         (LINK_SPEC): Likewise.
6802         (TARGET_THREAD_SSP_OFFSET): Likewise.
6803         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
6804         (SPEC_X32): New.
6805
6806         * config/i386/i386.h (TARGET_X32): New.
6807         (TARGET_LP64): New.
6808         (LONG_TYPE_SIZE): Likewise.
6809         (POINTER_SIZE): Likewise.
6810         (POINTERS_EXTEND_UNSIGNED): Likewise.
6811         (OPT_ARCH64): Support x32.
6812         (OPT_ARCH32): Likewise.
6813
6814         * config/i386/i386.opt (mx32): New.
6815
6816         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
6817         (GLIBC_DYNAMIC_LINKERX32): Likewise.
6818         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
6819         (GLIBC_DYNAMIC_LINKERX32): Likewise.
6820
6821         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
6822         (BIONIC_DYNAMIC_LINKERX32): Likewise.
6823         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
6824
6825         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
6826
6827         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
6828
6829         * doc/invoke.texi: Document -mx32.
6830
6831 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
6832
6833         * doc/invoke.texi (mwords-little-endian): Deprecate.
6834         * config/arm/arm.opt (mwords-little-endian): Likewise.
6835         * config/arm/arm.c (arm_option_override): Warn about the deprecation
6836         of -mwords-little-endian.
6837
6838 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
6839
6840         * reload1.c (choose_reload_regs): Use mode sizes to check whether
6841         an old reload register completely defines the required value.
6842
6843 2011-07-07  Richard Guenther  <rguenther@suse.de>
6844
6845         * fold-const.c (fold_unary_loc): Do not strip sign-changes
6846         for NEGATE_EXPR.
6847
6848 2011-07-07  Richard Guenther  <rguenther@suse.de>
6849
6850         * tree-vrp.c (simplify_conversion_using_ranges): New function.
6851         (simplify_stmt_using_ranges): Call it.
6852
6853 2011-07-07  Kai Tietz  <ktietz@redhat.com>
6854
6855         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
6856         (lookup_logical_inverted_value): Likewise.
6857         (simplify_bitwise_binary_1): Likewise.
6858         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
6859
6860 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
6861
6862         * gcc.c (%[Spec]): Don't document.
6863         (struct spec_list): Update comment.
6864         (do_spec_1): Don't handle %[Spec].
6865         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
6866
6867 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
6868
6869         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
6870         default based on TARGET_ASM_NAMED_SECTION.
6871         * common/common-target.def (have_named_sections): Default to true.
6872         * common/config/default-common.c: Don't include tm.h.
6873         * common/config/picochip/picochip-common.c
6874         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
6875         * common/config/m32c/m32c-common.c: Remove.
6876         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
6877         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6878         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6879         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6880         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6881         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6882         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6883
6884 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
6885
6886         PR middle-end/49640
6887         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
6888         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
6889
6890 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6891
6892         PR libmudflap/49550
6893         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
6894
6895 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6896
6897         PR target/39150
6898         * configure.ac (gcc_cv_as_hidden): Also accept
6899         x86_64-*-solaris2.1[0-9]*.
6900         (gcc_cv_as_cfi_directive): Likewise.
6901         (gcc_cv_as_comdat_group_group): Likewise.
6902         (set_have_as_tls): Likewise.
6903         * configure: Regenerate.
6904         * config.gcc (i[34567]86-*-solaris2*): Also handle
6905         x86_64-*-solaris2.1[0-9]*.
6906         * config.host (i[34567]86-*-solaris2*): Likewise.
6907         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
6908         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
6909         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
6910         (TARGET_LD_EMULATION): Use it.
6911         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
6912         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
6913         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
6914         (ASM_CPU64_DEFAULT_SPEC): Define.
6915         (ASM_CPU_SPEC): Use %(asm_cpu_default).
6916         (ASM_SPEC): Redefine.
6917         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
6918         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
6919         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
6920         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
6921         configuration.
6922         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
6923
6924 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6925
6926         * config/sol2.h (ASM_SPEC): Split into ...
6927         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
6928         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
6929         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
6930         (ASM_SPEC): Use ASM_SPEC_BASE.
6931         * config/sparc/sol2.h (ASM_SPEC): Redefine.
6932
6933 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
6934
6935         * config/avr/avr.md (*reload_insi): Change predicate #1 to
6936         const_int_operand.  Ditto for peep2 producing this insn.
6937         Add argument to output_reload_insisf call.
6938         (*movsi,*movsf): Add argument to output_movsisf call.
6939         (*reload_insf): New insn and new peep2 to produce it.
6940         * config/avr/avr-protos.h (output_movsisf): Change prototype.
6941         (output_reload_insisf): Change prototype.
6942         * config/avr/avr.c (avr_asm_len): New function.
6943         (output_reload_insisf): Rewrite.
6944         (output_movsisf): Change prototype.  output_reload_insisf for
6945         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
6946         (adjust_insn_length): Add argument to output_movsisf and
6947         output_reload_insisf call.
6948
6949 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6950
6951         * emit-rtl.c (paradoxical_subreg_p): New function.
6952         * rtl.h (paradoxical_subreg_p): Declare.
6953         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
6954         apply_distributive_law, simplify_comparison, simplify_set): Use it.
6955         * cse.c (record_jump_cond, cse_insn): Likewise.
6956         * expr.c (force_operand): Likewise.
6957         * rtlanal.c (num_sign_bit_copies1): Likewise.
6958         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
6959         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
6960         (push_reload): Use precision to check for paradoxical subregs.
6961         * expmed.c (extract_bit_field_1): Likewise.
6962
6963         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
6964         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
6965         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
6966         simplify_set, simplify_logical, expand_compound_operation,
6967         make_extraction, force_to_mode, if_then_else_cond, extended_count,
6968         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
6969         record_value_for_reg): Likewise.
6970         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
6971         * simplify-rtx. c (simplify_unary_operation_1,
6972         simplify_binary_operation_1, simplify_const_relational_operation):
6973         Likewise.
6974
6975         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
6976         instead of GET_MODE_BITSIZE where appropriate.
6977         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
6978         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
6979         init_num_sign_bit_copies_in_rep): Likewise.
6980         * cse.c (fold_rtx, cse_insn): Likewise.
6981         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
6982         * simplify-rtx.c (simplify_unary_operation_1,
6983         simplify_const_unary_operation, simplify_binary_operation_1,
6984         simplify_const_binary_operation, simplify_ternary_operation,
6985         simplify_const_relational_operation, simplify_subreg): Likewise.
6986         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
6987         simplify_if_then_else, simplify_set, expand_compound_operation,
6988         expand_field_assignment, make_extraction, if_then_else_cond,
6989         make_compound_operation, force_to_mode, make_field_assignment,
6990         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
6991         extended_count, try_widen_shift_mode, simplify_shift_const_1,
6992         simplify_comparison, record_promoted_value, simplify_compare_const,
6993         record_dead_and_set_regs_1): Likewise.
6994
6995         Revert:
6996         * simplify-rtx.c (simplify_const_binary_operation): Use the
6997         shift_truncation_mask hook instead of performing modulo by width.
6998         Compare against mode precision, not bitsize.
6999         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
7000         Use shift_truncation_mask instead of constructing the value manually.
7001
7002 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
7003
7004         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
7005         declaration.
7006         (rs6000_save_toc_in_prologue_p): Ditto.
7007
7008         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
7009         up the static chain (r11) during indirect function calls.
7010         (-msave-toc-indirect): New undocumented debug switch.
7011
7012         * config/rs6000/rs6000.c (struct machine_function): Add
7013         save_toc_in_prologue field to note whether the prologue needs to
7014         save the TOC value in the reserved stack location.
7015         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
7016         to save the TOC in the prologue, do so.
7017         (rs6000_trampoline_init): Don't allow creating AIX style
7018         trampolines if -mno-r11 is in effect.
7019         (rs6000_call_indirect_aix): New function to create AIX style
7020         indirect calls, adding support for -mno-r11 to suppress loading
7021         the static chain, and saving the TOC in the prologue instead of
7022         the call body.
7023         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
7024         TOC in the prologue.
7025
7026         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
7027         register numbers.
7028         (TOC_REGNUM): Ditto.
7029         (STATIC_CHAIN_REGNUM): Ditto.
7030         (ARG_POINTER_REGNUM): Ditto.
7031         (SFP_REGNO): Delete, unused.
7032         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
7033         function descriptor offsets.
7034         (TOC_SAVE_OFFSET_64BIT): Ditto.
7035         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
7036         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
7037         (AIX_FUNC_DESC_SC_32BIT): Ditto.
7038         (AIX_FUNC_DESC_SC_64BIT): Ditto.
7039         (ptrload): New mode attribute for the appropriate load of a pointer.
7040         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
7041         (call_indirect_aix64): Ditto.
7042         (call_value_indirect_aix32): Ditto.
7043         (call_value_indirect_aix64): Ditto.
7044         (call_indirect_nonlocal_aix32_internal): Ditto.
7045         (call_indirect_nonlocal_aix32): Ditto.
7046         (call_indirect_nonlocal_aix64_internal): Ditto.
7047         (call_indirect_nonlocal_aix64): Ditto.
7048         (call): Rewrite AIX indirect function calls.  Add support for
7049         eliminating the static chain, and for moving the save of the TOC
7050         to the function prologue.
7051         (call_value): Ditto.
7052         (call_indirect_aix<ptrsize>): Ditto.
7053         (call_indirect_aix<ptrsize>_internal): Ditto.
7054         (call_indirect_aix<ptrsize>_internal2): Ditto.
7055         (call_indirect_aix<ptrsize>_nor11): Ditto.
7056         (call_value_indirect_aix<ptrsize>): Ditto.
7057         (call_value_indirect_aix<ptrsize>_internal): Ditto.
7058         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
7059         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
7060         (call_nonlocal_aix32): Relocate in the rs6000.md file.
7061         (call_nonlocal_aix64): Ditto.
7062
7063         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
7064         -mno-r11 documentation.
7065
7066 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
7067
7068         PR other/49658
7069         * doc/extend.texi (Compound Literals): Fix typo.
7070
7071 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
7072
7073         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
7074
7075 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
7076
7077         * configure.ac (plugin-version.h): Generate
7078         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
7079         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
7080         macros.
7081
7082         * configure: Regenerate.
7083
7084         * doc/plugins.texi (Building GCC plugins): Mention
7085         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
7086
7087 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7088
7089         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
7090         * combine.c (make_extraction, gen_lowpart_or_truncate,
7091         apply_distributive_law, simplify_comparison,
7092         reg_truncated_to_mode, record_truncated_value): Use it.
7093         * cse.c (notreg_cost): Likewise.
7094         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
7095         * expr.c (convert_move, convert_modes): Likewise.
7096         * optabs.c (expand_binop, expand_unop): Likewise.
7097         * postreload.c (move2add_last_label): Likewise.
7098         * regmove.c (optimize_reg_copy_3): Likewise.
7099         * rtlhooks.c (gen_lowpart_general): Likewise.
7100         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
7101
7102 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
7103
7104         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
7105
7106 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7107
7108         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
7109         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
7110         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
7111         (simplify_const_unary_operation, simplify_binary_operation_1,
7112         simplify_const_binary_operation, simplify_const_relational_operation):
7113         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
7114         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
7115         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
7116         simplify_shift_const_1, simplify_comparison): Likewise.
7117         * expr.c (convert_modes): Likewise.
7118         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
7119         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
7120         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
7121
7122         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
7123
7124 2011-07-06  Richard Guenther  <rguenther@suse.de>
7125
7126         PR tree-optimization/49645
7127         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
7128         register variables.
7129         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
7130         in type qualification here ...
7131         (copy_reference_ops_from_ref): ... not here.
7132         (vn_reference_lookup_3): ... or here.
7133         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
7134         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
7135
7136 2011-07-06  Ian Lance Taylor  <iant@google.com>
7137
7138         * doc/install.texi (Configuration): It's
7139         --enable-gnu-indirect-function, not --enable-indirect-function.
7140
7141 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7142
7143         * simplify-rtx.c (simplify_const_binary_operation): Use the
7144         shift_truncation_mask hook instead of performing modulo by width.
7145         Compare against mode precision, not bitsize.
7146         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
7147         Use shift_truncation_mask instead of constructing the value manually.
7148
7149 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7150
7151         PR middle-end/47383
7152         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
7153         address computation and convert to address_mode if needed.
7154
7155 2011-07-06  Richard Guenther  <rguenther@suse.de>
7156
7157         * tree.c (build_common_tree_nodes_2): Merge with
7158         build_common_tree_nodes.
7159         * tree.h (build_common_tree_nodes): Adjust prototype.
7160         (build_common_tree_nodes_2): Remove.
7161         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
7162         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
7163
7164 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
7165
7166         PR tree-optimization/49618
7167         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
7168         t recurse on the decl.
7169         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
7170         return true if expr isn't known to be defined in current
7171         TU or some other LTO partition.
7172
7173 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
7174
7175         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
7176         override CASE_VALUES_THRESHOLD.
7177
7178         * stmt.c (toplevel): Include params.h.
7179         (case_values_threshold): Use the --param case-values-threshold
7180         value if non-zero, otherwise use machine dependent value.
7181         (expand_case): Use case_values_threshold.
7182
7183         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
7184
7185         * doc/invoke.texi (--param case-values-threshold): Document.
7186
7187 2011-07-05  Richard Henderson  <rth@redhat.com>
7188
7189         * dwarf2out.c (dwarf2out_cfi_label): Make static.
7190         (dwarf2out_flush_queued_reg_saves): Make static.
7191         (dwarf2out_reg_save): Remove.
7192         (dwarf2out_return_save): Remove.
7193         (dwarf2out_return_reg): Remove.
7194         (dwarf2out_reg_save_reg): Remove.
7195         (dwarf2out_def_cfa): Merge into ...
7196         (dwarf2out_frame_init): ... here.
7197         * dwarf2out.h, tree.h: Remove declarations as necessary.
7198
7199 2011-07-05  Richard Henderson  <rth@redhat.com>
7200
7201         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
7202         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7203         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
7204         the alloc insn.
7205
7206         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
7207         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
7208         (process_epilogue): Don't call dwarf2out_def_cfa.
7209
7210         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
7211         indicate the return address save.
7212         (process_cfa_register): Likewise.
7213
7214         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
7215         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
7216
7217         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
7218         for ar.pfs save at alloc insn.
7219
7220 2011-07-05  Richard Henderson  <rth@redhat.com>
7221
7222         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
7223         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7224         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
7225         stack pointer save.
7226         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
7227         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
7228         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
7229         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
7230
7231 2011-07-05  Richard Henderson  <rth@redhat.com>
7232
7233         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
7234         VUNSPEC_* constants here instead of via define_constants.
7235         (VUNSPEC_PEM): New constant.
7236         (procedure_entry_mask): New insn.
7237         (prologue): New expander.
7238         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
7239         (vax_expand_prologue): Rename from vax_output_function_prologue;
7240         emit rtl instead of text.
7241         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7242         (print_operand): Add 'x' prefix.
7243
7244 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
7245
7246         PR middle-end/47715
7247         * calls.c (precompute_register_parameters): Promote the function
7248         argument before checking non-legitimate constant.
7249
7250 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7251
7252         PR tree-optimization/47654
7253         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
7254         (lst_do_strip_mine_loop): Return an int.
7255         (lst_do_strip_mine): Same.
7256         (scop_do_strip_mine): Same.
7257         (scop_do_block): Loop blocking should strip-mine at least two loops.
7258         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
7259         (scop_do_interchange): Same.
7260         * graphite-poly.h (scop_do_interchange): Update declaration.
7261         (scop_do_strip_mine): Same.
7262
7263 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7264
7265         * graphite-clast-to-gimple.c (precision_for_value): Removed.
7266         (precision_for_interval): Removed.
7267         (gcc_type_for_interval): Use mpz_sizeinbase.
7268
7269 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7270
7271         * graphite-ppl.h (value_max): Correct computation of max.
7272
7273 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7274
7275         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
7276
7277 2011-07-05  Richard Guenther  <rguenther@suse.de>
7278
7279         * c-decl.c (c_init_decl_processing): Defer building common
7280         tree nodes to c_common_nodes_and_builtins.
7281
7282 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
7283
7284         PR tree-optimization/49580
7285         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
7286         the loop's number of iterations.
7287         * tree-parloops.c (transform_to_exit_first_loop): Add the
7288         handling of the loop's number of iterations before the call
7289         to gimple_duplicate_sese_tail.
7290         Insert the stmt caclculating the new rhs of the loop's
7291         condition stmt to the preheader instead of iters_bb.
7292
7293 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
7294
7295         PR rtl-optimization/47449
7296         * fwprop.c (forward_propagate_subreg): Don't propagate hard
7297         register nor zero/sign extended hard register.
7298
7299 2011-07-05  Richard Guenther  <rguenther@suse.de>
7300
7301         PR tree-optimization/49518
7302         PR tree-optimization/49628
7303         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
7304         irrelevant and invariant data-references.
7305         (vect_analyze_data_ref_access): For invariant loads clear the
7306         group association.
7307
7308 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
7309
7310         PR rtl-optimization/49619
7311         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
7312         pass VOIDmode as op0_mode to recursive call, and return temp even
7313         when different from tor, just if it is not IOR of the original
7314         PLUS arguments.
7315
7316         PR rtl-optimization/49472
7317         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
7318         negating MULT, negate the second operand instead of first.
7319         (simplify_binary_operation_1) <case MULT>: If one operand is
7320         a NEG and the other is MULT, don't attempt to optimize by negation
7321         of the MULT operand if it only moves the NEG operation around.
7322
7323         PR debug/49602
7324         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
7325         get_current_def return value if it can't be trusted to be
7326         the current value of the variable in the current bb.
7327
7328 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
7329
7330         PR target/49600
7331         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
7332         general register to memory for !TARGET_INTER_UNIT_MOVES.
7333
7334 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
7335
7336         PR target/44643
7337         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
7338         instead of TREE_READONLY.
7339
7340 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
7341
7342         * doc/extend.texi (AVR Built-in Functions): Update documentation
7343         of __builtin_avr_fmul*.
7344         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
7345         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
7346         * config/avr/avr.md (fmul): Rename to fmul_insn.
7347         (fmuls): Rename to fmuls_insn.
7348         (fmulsu): Rename to fmulsu_insn.
7349         (fmul,fmuls,fmulsu): New expander.
7350         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
7351         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
7352         * config/avr/libgcc.S (__fmul): New function.
7353         (__fmuls): New function.
7354         (__fmulsu,__fmulsu_exit): New function.
7355
7356 2011-07-04  Richard Guenther  <rguenther@suse.de>
7357
7358         PR tree-optimization/49615
7359         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
7360         basic-block index check.
7361
7362 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
7363
7364         * longlong.h (count_leading_zeros, count_trailing_zeros,
7365         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
7366         resp. 64.
7367
7368 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
7369
7370         PR tree-optimization/49610
7371         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
7372         a basic block.
7373
7374 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
7375             Olivier Hainque  <hainque@adacore.com>
7376             Nicolas Setton  <setton@adacore.com>
7377
7378         * tree.h (TYPE_ARTIFICIAL): New flag.
7379         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
7380         the DIE of the type if it is artificial.
7381         (gen_array_type_die): Likewise.
7382         (gen_enumeration_type_die): Likewise.
7383         (gen_struct_or_union_type_die): Likewise.
7384         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
7385         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
7386
7387 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
7388
7389         * tree-object-size.c (pass_through_call): Handle
7390         BUILT_IN_ASSUME_ALIGNED.
7391
7392 2011-07-01  Martin Jambor  <mjambor@suse.cz>
7393
7394         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
7395
7396 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
7397
7398         PR middle-end/48016
7399         * explow.c (update_nonlocal_goto_save_area): Use proper mode
7400         for stack save area.
7401         * function.c (expand_function_start): Likewise.
7402
7403 2011-07-01  Richard Guenther  <rguenther@suse.de>
7404
7405         PR middle-end/49596
7406         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
7407         may have unknown refs.
7408
7409 2011-07-01  Kai Tietz  <ktietz@redhat.com>
7410
7411         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
7412
7413 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7414
7415         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
7416         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
7417         (Specific, mips-sgi-irix6): Likewise.
7418
7419 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7420
7421         PR libmudflap/49549
7422         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
7423
7424 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
7425
7426         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
7427         [idx]= and [idx1 ... idx2]= before initializers if needed for
7428         array initializers.
7429
7430 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
7431
7432         * config.gcc (score-*-elf): Remove score7.o.
7433         * config/score/t-score-elf: Likewise.
7434         * config/score/score.c: Merge score7 to score.c and
7435         remove forwarding functions.
7436         * config/score/score7.c: Deleted.
7437         * config/score/score7.h: Deleted.
7438
7439 2011-07-01  Richard Guenther  <rguenther@suse.de>
7440
7441         PR tree-optimization/49603
7442         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
7443
7444 2011-06-30  Martin Jambor  <mjambor@suse.cz>
7445
7446         * tree-sra.c (struct access): Rename total_scalarization to
7447         grp_total_scalarization
7448         (completely_scalarize_var): New function.
7449         (sort_and_splice_var_accesses): Set total_scalarization in the
7450         representative access.
7451         (analyze_access_subtree): Propagate total scalarization accross the
7452         tree, no holes in totally scalarized trees, simplify coverage
7453         computation.
7454         (analyze_all_variable_accesses): Call completely_scalarize_var instead
7455         of completely_scalarize_record.
7456
7457 2011-06-30  Richard Henderson  <rth@redhat.com>
7458
7459         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
7460         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
7461         * config/i386/i386.c: Don't include dwarf2out.h.
7462         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
7463         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
7464         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
7465         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
7466         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
7467
7468 2011-06-30  Richard Henderson  <rth@redhat.com>
7469
7470         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
7471         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
7472         * final.c (final_scan_insn): Look for it, and invoke
7473         dwarf2out_frame_debug before the insn if found.
7474
7475 2011-06-30  Richard Henderson  <rth@redhat.com>
7476
7477         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
7478         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
7479
7480 2011-06-30  Richard Henderson  <rth@redhat.com>
7481
7482         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
7483         Define a vector of this type.
7484         (regs_saved_in_regs): Use a VEC.
7485         (num_regs_saved_in_regs): Remove.
7486         (compare_reg_or_pc): New.
7487         (record_reg_saved_in_reg): Split out from...
7488         (dwarf2out_flush_queued_reg_saves): ... here.
7489         (clobbers_queued_reg_save): Update for VEC.
7490         (reg_saved_in): Likewise.
7491         (dwarf2out_frame_debug_init): Likewise.
7492         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
7493         (dwarf2out_frame_debug_cfa_register): Likewise.
7494
7495 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
7496
7497         PR tree-optimization/49572
7498         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
7499         type of the RHS instead of that of the LHS for the expression type.
7500
7501 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
7502
7503         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
7504         unconditionally.
7505
7506 2011-06-30  Richard Guenther  <rguenther@suse.de>
7507
7508         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
7509         * tree-ssa-structalias.c (create_variable_info_for): Do not
7510         add initial constraints for non-var-decls.  Properly handle
7511         globals in other ltrans partitions.
7512         (intra_create_variable_infos): Manually create constraints for
7513         the fake no-alias parameter.
7514         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
7515         and assert there are no clones.
7516
7517 2011-06-30  Richard Guenther  <rguenther@suse.de>
7518
7519         PR tree-optimization/46787
7520         * tree-data-ref.c (dr_address_invariant_p): Remove.
7521         (find_data_references_in_stmt): Invariant accesses are ok now.
7522         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
7523         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
7524         invariant loads.
7525
7526 2011-06-30  Martin Jambor  <mjambor@suse.cz>
7527
7528         PR tree-optimization/49094
7529         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
7530         (build_accesses_from_assign): Use it.
7531
7532 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
7533
7534         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
7535         handling of BUILT_IN_ASSUME_ALIGNED.
7536
7537         PR debug/49364
7538         * dwarf2out.c (output_abbrev_section): Don't return early
7539         if abbrev_die_table_in_use is 1.
7540         (dwarf2out_finish): Instead don't call output_abbrev_section
7541         nor emit abbrev_section_label in that case.
7542
7543 2011-06-30  Nick Clifton  <nickc@redhat.com>
7544
7545         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
7546         for the V850E.
7547
7548 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
7549
7550         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
7551         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
7552
7553 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
7554
7555         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
7556         both pattern and original statements if necessary.
7557         (vect_transform_loop): Likewise.
7558         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
7559         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
7560         Mark the pattern statement only if the original statement doesn't
7561         have its own uses.
7562         (process_use): Call vect_mark_relevant with additional parameter.
7563         (vect_mark_stmts_to_be_vectorized): Likewise.
7564         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
7565         (vect_analyze_stmt): Handle both pattern and original statements
7566         if necessary.
7567         (vect_transform_stmt): Don't store vectorized pattern statement
7568         in the original statement.
7569         (vect_is_simple_use_1): Use related pattern statement only if the
7570         original statement is irrelevant.
7571         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
7572
7573 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
7574
7575         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
7576         option.
7577         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
7578         entry.
7579         (TARGET_AVX128_OPTIMAL): New definition.
7580         * config/i386/i386.c (initial_ix86_tune_features): Initialize
7581         X86_TUNE_AVX128_OPTIMAL entry.
7582         (ix86_option_override_internal): Enable the generation
7583         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
7584         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
7585         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
7586
7587 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
7588
7589         PR tree-optimization/49539
7590         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
7591         names by means of stmt_references_abnormal_ssa_name.
7592         (associate_plusminus): Call can_propagate_from before propagating
7593         from definition statements.
7594         (ssa_forward_propagate_and_combine): Remove superfluous newline.
7595
7596 2011-06-29  Richard Guenther  <rguenther@suse.de>
7597
7598         * doc/invoke.texi: Document -scev dump modifier.
7599         * tree-pass.h (TDF_SCEV): New dump flag.
7600         * tree-dump.c (dump_option_value_in): Add scev.
7601         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
7602         * tree-scalar-evolution.c: Likewise.
7603
7604 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
7605
7606         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
7607         (cxa_type_match): Correct declaration.
7608         (__gnu_unwind_pr_common): Reconstruct additional indirection
7609         when __cxa_type_match returns succeeded_with_ptr_to_base.
7610
7611 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7612
7613         PR rtl-optimization/49114
7614         * reload.c (struct replacement): Remove SUBREG_LOC member.
7615         (push_reload): Do not set it.
7616         (push_replacement): Likewise.
7617         (subst_reload): Remove dead code.
7618         (copy_replacements): Remove assertion.
7619         (copy_replacements_1): Do not handle SUBREG_LOC.
7620         (move_replacements): Likewise.
7621         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
7622         Detect subregs via recursive descent instead of via SUBREG_LOC.
7623
7624 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
7625
7626         * config/avr/avr.c (avr_encode_section_info): Dispatch to
7627         default_encode_section_info.
7628
7629 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
7630
7631         PR tree-optimization/49545
7632         * builtins.c (get_object_alignment_1): Update function comment.
7633         Do not use DECL_ALIGN for functions, but test
7634         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
7635         * fold-const.c (get_pointer_modulus_and_residue): Don't check
7636         for functions here.
7637         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
7638
7639 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
7640
7641         PR debug/49567
7642         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
7643         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
7644
7645 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
7646
7647         PR target/34734
7648         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
7649         about uninitialized data attributed 'progmem' from here...
7650         (avr_encode_section_info): ...to this new function.
7651         (TARGET_ENCODE_SECTION_INFO): New define.
7652         (avr_section_type_flags): For data in ".progmem.data", remove
7653         section flag SECTION_WRITE.
7654
7655 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
7656
7657         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
7658         _xmulhisi3_exit.
7659         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
7660         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
7661         (__umulhisi3): Ditto.
7662         * config/avr/avr.md (mulhisi3): New insn expender.
7663         (umulhisi3): New insn expender.
7664         (*mulhisi3_call): New insn.
7665         (*umulhisi3_call): New insn.
7666
7667 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
7668
7669         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
7670
7671 2011-06-28  Richard Henderson  <rth@redhat.com>
7672
7673         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
7674         all code and arguments that handled pushes.  Update all callers.
7675
7676 2011-06-28  Richard Henderson  <rth@redhat.com>
7677
7678         * config/arm/arm.c (arm_output_function_prologue): Don't call
7679         thumb1_output_function_prologue.
7680         (arm_expand_prologue): Avoid dead store.
7681         (number_of_first_bit_set): Use ctz_hwi.
7682         (thumb1_emit_multi_reg_push): New.
7683         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
7684         to emit the entire prologue as rtl.
7685         (thumb1_output_interwork): Split out from
7686         thumb1_output_function_prologue.
7687         (thumb1_output_function_prologue): Remove.
7688         (arm_attr_length_push_multi): Handle thumb1.
7689         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
7690         (prologue_thumb1_interwork): New.
7691         (*push_multi): Allow thumb1; use push_mult_memory_operand.
7692         * config/arm/predicates.md (push_mult_memory_operand): New.
7693
7694 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
7695
7696         * config/sparc/sync.md (*stbar): Delete.
7697         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
7698
7699 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
7700
7701         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
7702
7703 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7704
7705         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
7706         (TARGET_64BIT_DEFAULT): Define.
7707         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
7708         of tm_file.
7709         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
7710
7711 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
7712
7713         * common.opt (in_lto_p): New Variable entry.
7714         * flags.h (in_lto_p): Move to common.opt.
7715         * gcc.c: Include params.h.
7716         (set_option_handlers): Also use common_handle_option and
7717         target_handle_option.
7718         (main): Call global_init_params, finish_params and init_options_struct.
7719         * opts.c (debug_type_names): Move from toplev.c.
7720         (print_filtered_help): Access quiet_flag through opts pointer.
7721         (common_handle_option): Return early in the driver for some options.
7722         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
7723         opts pointer.
7724         * toplev.c (in_lto_p): Move to common.opt.
7725         (debug_type_names): Move to opts.c.
7726         * Makefile.in (OBJS): Remove opts.o.
7727         (OBJS-libcommon-target): Add opts.o.
7728         (gcc.o): Update dependencies.
7729
7730 2011-06-28  Kai Tietz  <ktietz@redhat.com>
7731
7732         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
7733
7734 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7735
7736         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
7737         with '=' constraint modifier.
7738         (*divdf3_vfp): Likewise.
7739         ("*mulsf3_vfp"): Likewise.
7740         ("*muldf3_vfp"): Likewise.
7741         ("*mulsf3negsf_vfp"): Likewise.
7742         ("*muldf3negdf_vfp"): Likewise.
7743
7744 2011-06-28  Nick Clifton  <nickc@redhat.com>
7745
7746         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
7747         relaxation when performing an incremental link.
7748
7749 2011-06-28  Kai Tietz  <ktietz@redhat.com>
7750
7751         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
7752         within BB from last to first.
7753
7754 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
7755
7756         * genattr-common.c: New.  Based on genattr.c.
7757         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
7758         (MOSTLYCLEANFILES): Add insn-attr-common.h.
7759         (opts.o): Update dependencies.
7760         (.PRECIOUS): Add insn-attr-common.h.
7761         (simple_rtl_generated_h): Add insn-attr-common.h.
7762         (build/genattr-common.o): New.
7763         (genprogrtl): Add attr-common.
7764         * genattr.c (main): Include insn-attr-common.h.  Don't generate
7765         definitions of DELAY_SLOTS or INSN_SCHEDULING.
7766         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
7767
7768 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
7769
7770         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
7771         avr-*-* and avr-*-rtems* targets.
7772
7773         * config/avr/elf.h: New file.
7774         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
7775         (TARGET_ASM_SELECT_SECTION): Define.
7776         (INIT_SECTION_ASM_OP): Undefine.
7777         (FINI_SECTION_ASM_OP): Undefine.
7778         (READONLY_DATA_SECTION_ASM_OP): Undefine.
7779         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
7780         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
7781         * config/avr/avr.h:
7782         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
7783         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
7784         (MAX_OFILE_ALIGNMENT): Move to elf.h.
7785         (STRING_LIMIT): Move to elf.h.
7786         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
7787         (ASM_DECLARE_OBJECT_NAME): Remove.
7788         (ESCAPES): Remove.
7789         (ASM_OUTPUT_SKIP): Remove.
7790         (DWARF2_DEBUGGING_INFO): Remove.
7791         (OBJECT_FORMAT_ELF): Remove.
7792         (USER_LABEL_PREFIX): Remove.
7793         (ASM_OUTPUT_EXTERNAL): Remove.
7794         (ASM_OUTPUT_ASCII): Remove.
7795         (TYPE_ASM_OP): Remove.
7796         (SIZE_ASM_OP): Remove.
7797         (WEAK_ASM_OP): Remove.
7798         (STRING_ASM_OP): Remove.
7799         (SET_ASM_OP): Remove.
7800         (ASM_WEAKEN_LABEL): Remove.
7801         (TYPE_OPERAND_FMT): Remove.
7802         (ASM_DECLARE_FUNCTION_SIZE): Remove.
7803         (ASM_FINISH_DECLARE_OBJECT): Remove.
7804         (NO_DOLLAR_IN_LABEL): Remove.
7805         (ASM_GENERATE_INTERNAL_LABEL): Remove.
7806         (ASM_OUTPUT_CASE_LABEL): Remove.
7807         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
7808         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
7809         (gas_output_ascii): Remove.
7810         (gas_output_limited_string): Remove.
7811         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
7812         * config/avr/avr-protos.h
7813         (gas_output_ascii): Remove prototye.
7814         (gas_output_limited_string): Remove prototype.
7815
7816 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
7817
7818         PR target/48637
7819         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
7820         asm operands.
7821
7822 2011-06-27  Jan Hubicka  <jh@suse.cz>
7823
7824         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
7825         node instead of references in node.
7826
7827 2011-06-27  Richard Henderson  <rth@redhat.com>
7828
7829         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
7830         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
7831         inside ifdef.
7832
7833 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
7834
7835         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
7836
7837         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
7838         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
7839         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
7840         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
7841         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
7842         (evaluate_stmt, execute_fold_all_builtins): Handle
7843         BUILT_IN_ASSUME_ALIGNED.
7844         * tree-ssa-dce.c (propagate_necessity): Likewise.
7845         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
7846         call_may_clobber_ref_p_1): Likewise.
7847         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
7848         (expand_builtin_assume_aligned): New function.
7849         * doc/extend.texi (__builtin_assume_aligned): Document.
7850
7851         PR debug/49544
7852         * cselib.c (promote_debug_loc): If cselib_preserve_constants
7853         and l has two DEBUG_INSN owned locs instead of just one, adjust
7854         the second location's setting_insn too.
7855
7856 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7857
7858         PR libmudflap/38738
7859         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
7860
7861 2011-06-27  Nick Clifton  <nickc@redhat.com>
7862
7863         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
7864         bit position of highest bit set into a count of the high zero bits.
7865
7866 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
7867
7868         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
7869
7870 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
7871
7872         PR lto/48492
7873         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
7874         to a NULL parent.
7875
7876 2011-06-27  Richard Guenther  <rguenther@suse.de>
7877
7878         PR tree-optimization/49394
7879         * passes.c (execute_one_pass): Restore current_pass after
7880         applying IPA transforms.
7881
7882 2011-06-27  Kai Tietz  <ktietz@redhat.com>
7883
7884         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
7885         out of type precision after operation.
7886         (find_bswap): Take for limit value the integer auto-promotion
7887         into account.
7888
7889 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
7890
7891         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
7892         forward scan as well.
7893
7894 2011-06-27  Tristan Gingold  <gingold@adacore.com>
7895
7896         PR target/44241
7897         * config/vms/vms-protos.h: New file.
7898         * config/vms/vms-crtlmap.map: New file.
7899         * config/vms/vms.c: New file.
7900         * config/vms/make-crtlmap.awk: New file.
7901         * config/vms/vms-crtl.h: File removed.
7902         * config/vms/vms-crtl-64.h: File removed.
7903         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
7904         * config/alpha/vms64.h: Do not include vms-crtl-64.h
7905         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
7906         clear some builtins on VMS.  Calls vms_patch_builtins.
7907         (avms_asm_output_external): Remove.
7908         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
7909         (struct crtl_name_spec): Remove
7910         (DO_CTRL_NAMES): Remove.
7911         * config/ia64/vms.h (struct crtl_name_spec): Remove
7912         (DO_CTRL_NAMES): Remove.
7913         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
7914         clear some builtins on VMS.  Calls vms_patch_builtins.
7915         (ia64_asm_output_external): Remove DO_CRTL_NAME.
7916         * config/ia64/vms64.h: Do not include vms-crtl-64.h
7917         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
7918
7919 2011-06-27  Tristan Gingold  <gingold@adacore.com>
7920
7921         * config/alpha/alpha.c (alpha_end_function): Always generate .end
7922         directive on VMS.
7923
7924 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
7925
7926         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
7927         the function receives nonlocal gotos.
7928
7929 2011-06-27  Richard Guenther  <rguenther@suse.de>
7930
7931         PR tree-optimization/49536
7932         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
7933         For non-scalar inner types use a scalar type according to
7934         the scalar inner mode.
7935
7936 2011-06-27  Richard Guenther  <rguenther@suse.de>
7937
7938         PR tree-optimization/49365
7939         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
7940
7941 2011-06-27  Richard Guenther  <rguenther@suse.de>
7942
7943         PR tree-optimization/49169
7944         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
7945         the alignment of function decls.
7946
7947 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
7948
7949         PR target/47997
7950         * config/darwin.c (darwin_mergeable_string_section): Place string
7951         constants in '.cstring' rather than '.const' when CF/NSStrings are
7952         active.
7953
7954 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
7955
7956         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
7957         (emit_save_register_window): Likewise.
7958         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
7959         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
7960         Swap back %o7/%i7 in register naming.
7961
7962 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
7963
7964         PR driver/49371
7965         * config/darwin.c (darwin_override_options): Improve warning when
7966         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
7967         is given with fpie/fPIE.
7968         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
7969         * config/darwin9.h (PIE_SPEC): New.
7970
7971 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
7972
7973         * timevar.c (timevar_print): Increase width for display of timevar
7974         name.
7975
7976 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
7977
7978         PR c++/46400
7979         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
7980         instead of TYPE_CHAIN for chain_next for types.
7981
7982 2011-06-24  Richard Henderson  <rth@redhat.com>
7983
7984         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
7985         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
7986         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
7987         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
7988         (sparc_flat_expand_prologue): Emit individual instructions
7989         instead of one of the above.
7990
7991 2011-06-24  Easwaran Raman  <eraman@google.com>
7992
7993         PR rtl-optimization/49429
7994         PR target/49454
7995         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
7996         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
7997         used to copy y into x.
7998         * calls.c (initialize_argument_information): Mark
7999         an argument addressable if it is passed by invisible reference.
8000         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
8001         if it is passed by reference.
8002
8003 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8004
8005         PR rtl-optimization/49504
8006         * rtlanal.c (nonzero_bits1): Properly handle addition or
8007         subtraction of a pointer in Pmode if pointers extend unsigned.
8008         (num_sign_bit_copies1): Likewise.
8009
8010 2011-06-24  Martin Jambor  <mjambor@suse.cz>
8011
8012         PR tree-optimizations/49516
8013         * tree-sra.c (sra_modify_assign): Choose the safe path for
8014         aggregate copies if we also did scalar replacements.
8015
8016 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8017
8018         PR target/49335
8019         * config/arm/predicates.md (add_operator): New.
8020         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
8021
8022 2011-06-24  Andi Kleen  <ak@linux.intel.com>
8023
8024         * tree-sra.c (type_internals_preclude_sra_p): Add msg
8025         parameter. Split up ifs and report reason in *msg.
8026         (reject): Add.
8027         (find_var_candiate): Add msg variable.
8028         Split up ifs and report reason to reject.
8029         (find_param_candidates): Add msg variable.
8030         Pass msg to type_internals_preclude_sra_p.
8031
8032 2011-06-23  Jeff Law  <law@redhat.com>
8033
8034         PR middle-end/48770
8035         * reload.h (reload): Change to return a bool.
8036         * ira.c (ira): If requested by reload, run a fast DCE pass after
8037         reload has completed.  Fix comment typo.
8038         * reload1.c (need_dce): New file scoped static.
8039         (reload): Set reload_completed here.  Return whether or not a DCE
8040         pass after reload is needed.
8041         (delete_dead_insn): Set need_dce as needed.
8042
8043         PR middle-end/49465
8044         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
8045         to detect threading through joiner block.  If there was already
8046         an edge to the new target, then do not change the PHI nodes.
8047
8048 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
8049
8050         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
8051         get_pointer_alignment to see if base isn't sufficiently aligned.
8052
8053 2011-06-23  Jan Hubicka  <jh@suse.cz>
8054
8055         PR tree-optimize/49373
8056         * tree-pass.h (all_late_ipa_passes): Declare.
8057         * cgraphunit.c (init_lowered_empty_function): Fix properties.
8058         (cgraph_optimize): Execute late passes; remove unreachable funcions
8059         after materialization.
8060         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
8061         LTOing.
8062         * passes.c (all_late_ipa_passes): Declare.
8063         (dump_passes, register_pass): Handle late ipa passes.
8064         (init_optimization_passes): Move ipa_pta to late passes; schedule
8065         fixup_cfg at beggining of all_passes.
8066         (apply_ipa_transforms): New function.
8067         (execute_one_pass): When doing simple ipa pass, apply all transforms.
8068
8069 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
8070
8071         * params.c: Include common/common-target.h.  Don't include tm.h.
8072         (lang_independent_params): Move from toplev.c.
8073         (global_init_params): New.
8074         * params.h (global_init_params): Declare.
8075         * target.def (default_params): Move to common-target.def.
8076         * toplev.c (lang_independent_options): Remove.
8077         (lang_independent_params): Move to params.c.
8078         (general_init): Use global_init_params.
8079         * common/common-target.def (option_default_params): Move from
8080         target.def.
8081         * common/config/ia64/ia64-common.c: Include params.h.
8082         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8083         from ia64.c.
8084         * common/config/rs6000/rs6000-common.c: Include params.h.
8085         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8086         from rs6000.c.
8087         * common/config/sh/sh-common.c: Include params.h.
8088         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8089         from sh.c.
8090         * common/config/spu/spu-common.c: Include params.h.
8091         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8092         from spu.c.
8093         * config/ia64/ia64.c (ia64_option_default_params,
8094         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
8095         * config/rs6000/rs6000.c (rs6000_option_default_params,
8096         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
8097         * config/sh/sh.c (sh_option_default_params,
8098         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
8099         * config/spu/spu.c (spu_option_default_params,
8100         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
8101         * Makefile.in (OBJS): Remove params.o.
8102         (OBJS-libcommon-target): Add params.o.
8103         (params.o, $(common_out_object_file)): Update dependencies.
8104         * doc/tm.texi: Regenerate.
8105
8106 2011-06-23  Alan Modra  <amodra@gmail.com>
8107
8108         PR bootstrap/49383
8109         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
8110         invocation for 2011-06-09 changes.
8111
8112 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
8113
8114         PR libgomp/49490
8115         * omp-low.c (expand_omp_for_static_nochunk): Only
8116         use n ceil/ nthreads size for the first n % nthreads threads in the
8117         team instead of all threads except for the last few ones which
8118         get less work or none at all.
8119
8120         PR debug/49496
8121         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
8122         uses.
8123
8124 2011-06-22  Richard Guenther  <rguenther@suse.de>
8125
8126         PR tree-optimization/49493
8127         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
8128         Refer to the alias target of variables.
8129         (associate_varinfo_to_alias_1): Remove.
8130         (ipa_pta_execute): Do not associate aliases with anything.
8131         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
8132         (cgraph_function_node): Likewise.
8133         (cgraph_function_or_thunk_node): Likewise.
8134         (varpool_variable_node): Likewise.
8135
8136 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
8137
8138         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
8139         * config.gcc (arm*-*-linux*): Default to gnu tls.
8140         (arm*-*-*): Add --with-tls option.
8141         (all_defaults): Add 'tls'.
8142
8143 2011-06-22  Richard Henderson  <rth@redhat.com>
8144
8145         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
8146         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8147         (dwarf2out_frame_debug_cfa_window_save): Rename from
8148         dwarf2out_window_save; make static.
8149         * tree.h (dwarf2out_window_save): Don't declare.
8150
8151         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
8152         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8153         (emit_save_register_window): Rename from gen_save_register_window;
8154         emit the insn and add REG_CFA_* notes.
8155         (sparc_expand_prologue): Update to match.
8156         * config/sparc/sparc.md (save_register_window_1): Simplify from
8157         save_register_window<P:mode>.
8158
8159 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8160
8161         PR target/49497
8162         * config/i386/i386.md (*lea_general_2): Always allow SImode.
8163         (*lea_general_2_zext): Likewise.
8164         (imul to lea peepholes): Use const359_operand and check
8165         TARGET_PARTIAL_REG_STALL.
8166
8167         * config/i386/predicates.md (const359_operand): New.
8168
8169 2011-06-22  Michael Matz  <matz@suse.de>
8170
8171         * cgraphunit.c (assemble_thunk): Use correct return type.
8172
8173 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
8174             Dmitry Melnik  <dm@ispras.ru>
8175
8176         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
8177         (neon_output_shift_immediate): Ditto.
8178         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
8179         prototype.
8180         (neon_output_shift_immediate): Ditto.
8181         * config/arm/neon.md (vashl<mode>3): Modified constraint.
8182         (vashr<mode>3_imm): New insn pattern.
8183         (vlshr<mode>3_imm): Ditto.
8184         (vashr<mode>3): Modified constraint.
8185         (vlshr<mode>3): Ditto.
8186         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
8187         predicate.
8188         (imm_for_neon_rshift_operand): Ditto.
8189         (imm_lshift_or_reg_neon): Ditto.
8190         (imm_rshift_or_reg_neon): Ditto.
8191
8192         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
8193
8194 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
8195
8196         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
8197         builtin calls even if likelyvalue is not CONSTANT.
8198         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
8199         Return get_value_for_expr of first operand
8200         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
8201         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8202         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
8203         their non-checking counterparts.
8204         (call_may_clobber_ref_p_1): Likewise.
8205         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
8206         like their non-checking counterparts.
8207         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8208         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
8209         like their non-checking counterparts.
8210         (find_func_clobbers): Likewise.
8211         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
8212         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
8213
8214         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
8215         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
8216         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
8217         of base type reference as argument.
8218         (resolve_addr_in_expr): Likewise.  Fix keep computation.
8219         (convert_descriptor_to_signed): Renamed to...
8220         (convert_descriptor_to_mode): ... this.  For wider types convert to
8221         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
8222         (typed_binop): New function.
8223         (scompare_loc_descriptor, ucompare_loc_descriptor,
8224         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
8225         default to unsigned type instead of signed.
8226
8227         PR debug/47858
8228         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
8229         (gimple_build_debug_source_bind_stat): New prototype.
8230         (gimple_build_debug_source_bind): Define.
8231         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
8232         gimple_debug_source_bind_get_value,
8233         gimple_debug_source_bind_get_value_ptr,
8234         gimple_debug_source_bind_set_var,
8235         gimple_debug_source_bind_set_value): New inlines.
8236         * gimple.c (gimple_build_debug_source_bind_stat): New function.
8237         * gimple-pretty-print.c (dump_gimple_debug): Handle
8238         GIMPLE_DEBUG_SOURCE_BIND.
8239         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
8240         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8241         * tree-parloops.c (eliminate_local_variables,
8242         separate_decls_in_region): Likewise.
8243         (separate_decls_in_region_debug): Renamed from
8244         separate_decls_in_region_debug_bind.  Handle
8245         gimple_debug_source_bind_p.
8246         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
8247         prototypes.
8248         (DECL_HAS_DEBUG_ARGS_P): Define.
8249         (struct tree_function_decl): Add has_debug_args_flag field.
8250         * tree.c (debug_args_for_decl): New variable.
8251         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
8252         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
8253         (rewrite_debug_stmt_uses): New function.
8254         (rewrite_stmt): Use it to rewrite debug stmt uses.
8255         * rtl.def (DEBUG_PARAMETER_REF): New.
8256         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
8257         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
8258         DEBUG_PARAMETER_REF.
8259         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
8260         * print-rtl.c (print_rtx): Likewise.
8261         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
8262         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
8263         debug stmts in the first bb.
8264         * tree-inline.c (remap_ssa_name): If remapping default def
8265         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
8266         a source bind debug stmt.
8267         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
8268         (maybe_move_debug_stmts_to_successors): Likewise.
8269         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
8270         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
8271         debug args vector from old_decl to new_decl.
8272         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
8273         or modified parameters, add debug bind stmts before call
8274         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
8275         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
8276         on DECL_DEBUG_EXPRs from debug args vector.
8277         (expand_debug_source_expr): New function.
8278         (expand_debug_locations): Use it for source bind insns.
8279         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
8280         * var-tracking.c (prepare_call_arguments): Add debug args
8281         to call_arguments if any.
8282         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
8283         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
8284         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
8285         (get_ref_die_offset, parameter_ref_descriptor): New functions.
8286         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
8287         (gen_subprogram_die): Handle parameters identified by
8288         DEBUG_PARAMETER_REF.
8289
8290 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
8291
8292         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
8293         * doc/install.texi (Configuration): Document --with-tls.
8294         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
8295         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
8296         (arm_tls_descseq_addr): New.
8297         (legitimize_tls_address): Add tlsdesc support.
8298         (arm_cannot_copy_insn_p): Check for tlscall.
8299         (arm_emit_tls_decoration): Likewise.
8300         * config/arm/arm.h (TARGET_GNU2_TLS): New.
8301         (OPTION_DEFAULT_SPECS): Add with-tls support.
8302         * config/arm/arm.md (R1_REGNUM): Define.
8303         (tlscall): New.
8304         * config/arm/arm.opt (tls_type): New enumeration type and values.
8305         (mtls-dialect): New switch.
8306         * config/arm/arm-opts.h (enum tls_type): New.
8307
8308 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8309
8310         * attribs.c (register_attribute): Added assert to check that all
8311         attribute specs are registered with a name that is not empty and
8312         does not start with '_'.
8313         (decl_attributes): Avoid the lookup of the "naked" attribute spec
8314         if the function has no attributes.
8315         * tree.c (is_attribute_with_length_p): Removed.
8316         (is_attribute_p): Removed.
8317         (private_is_attribute_p): New.
8318         (private_lookup_attribute): New.
8319         (lookup_attribute): Removed.
8320         (lookup_ident_attribute): New.
8321         (remove_attribute): Require the first argument to be in the form
8322         'text', not '__text__'.  Updated asserts.
8323         (merge_attributes): Use lookup_ident_attributes instead of
8324         lookup_attribute.
8325         (merge_dllimport_decl_attributes): Use remove_attribute.
8326         (attribute_list_contained): Likewise.
8327         (attribute_list_equal): Immediately return 1 if the arguments are
8328         identical pointers.
8329         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
8330         'int'.  Require the first argument to be in the form 'text', not
8331         '__text__'.  Require the second argument to be an identifier.
8332         (lookup_attribute): Made inline.  Require the first argument to be
8333         in the form 'text', not '__text__'.
8334         (private_is_attribute_p, private_lookup_attribute): New.
8335         Updated comments.
8336
8337 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
8338
8339         * builtins.c: Add sync_ or SYNC__ to builtin names.
8340         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
8341         * omp-low.c: Add sync_ or SYNC__ to builtin names.
8342
8343 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
8344
8345         PR target/33049
8346         * config/avr/avr.md (extzv): New expander.
8347         (*extzv): New insn.
8348         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
8349         * config/avr/constraints.md (C04): New constraint.
8350         * doc/md.texi (Machine Constraints): Document it.
8351
8352 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
8353
8354         PR middle-end/49489
8355         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
8356         unsignedp argument instead of 1 for clrsb_optab.
8357         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
8358         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
8359         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
8360         * optabs.c (widen_leading): Call widen_operand and expand_unop
8361         with 0 as unsignedp argument instead of 1 for clrsb_optab.
8362         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
8363
8364 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
8365
8366         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
8367
8368 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
8369
8370         * gensupport.c (add_define_attr): New static function.
8371         (is_predicable): Allow multi-alternative lists for the "predicable"
8372         attribute.
8373         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
8374         (process_one_cond_exec): Call alter_attrs_for_insn.
8375         * doc/md.texi (Defining Attributes): Mention some standard names.
8376         (Conditional Execution): Update documentation for "predicable".
8377
8378         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
8379         __builtin_clrsbll): Document.
8380         * doc/rtl.texi (clrsb): New entry.
8381         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
8382         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
8383         (expand_unop): Handle clrsb_optab.
8384         (init_optabs): Initialize it.
8385         * optabs.h (enum optab_index): New entry OTI_clrsb.
8386         (clrsb_optab): Define.
8387         * genopinit.c (optabs): Add an entry for it.
8388         * builtins.c (expand_builtin): Handle clrsb builtin functions.
8389         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
8390         BUILT_IN_CLRSBLL): New.
8391         * rtl.def (CLRSB): New code.
8392         * dwarf2out.c (mem_loc_descriptor): Handle it.
8393         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
8394         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
8395         and popcount.
8396         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
8397         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
8398         (__ctzDI2): Move declaration.
8399         * config/bfin/bfin.md (clrsbsi2): New expander.
8400         (signbitssi2): Use the CLRSB rtx.
8401         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
8402         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
8403
8404 2011-06-21  Richard Guenther  <rguenther@suse.de>
8405
8406         * ipa-inline-transform.c (inline_transform): Fix previous change.
8407
8408 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
8409
8410         PR tree-optimization/49478
8411         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
8412         with constant operand.
8413
8414 2011-06-21  Richard Guenther  <rguenther@suse.de>
8415
8416         * ipa-inline-transform.c (inline_transform): Fix typo.
8417
8418 2011-06-21  Richard Guenther  <rguenther@suse.de>
8419
8420         PR tree-optimization/49483
8421         * tree-vect-stmts.c (vectorizable_assignment): Also handle
8422         VIEW_CONVERT_EXPR conversions.
8423
8424 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
8425
8426         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
8427         * config/avr/avr-tables.opt: New file (generated).
8428         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
8429         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
8430         avr-mcus.def.
8431         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
8432         (avr_option_override): Don't process -mmcu= argument here.  Set
8433         avr_current_device using avr_mcu_index.
8434         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
8435         * config/avr/avr.opt (mmcu=): Use Enum.
8436         * config/avr/t-avr (avr-devices.o): Update dependencies.
8437         ($(srcdir)/config/avr/avr-tables.opt): New.
8438         * target.def (help): Remove.
8439         * doc/tm.texi.in (TARGET_HELP): Remove.
8440         * doc/tm.texi: Regenerate.
8441         * opts.c: Don't include target.h.
8442         (common_handle_option): Don't call targetm.help.
8443         * system.h (TARGET_HELP): Poison.
8444         * Makefile.in (opts.o): Update dependencies.
8445
8446 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8447
8448         * config/usegld.h: New file.
8449         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
8450         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
8451         (LIB_SPEC): Likewise.  Search /lib.
8452         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
8453         (RDYNAMIC_SPEC): Handle GNU ld.
8454         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
8455         Define.
8456         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
8457         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
8458         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
8459         (STACK_CHECK_STATIC_BUILTIN): Define.
8460         * config/sol2.opt (compat-bsd): Remove.
8461         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
8462         * config/sol2-bi.h: New file.
8463         * config/sol2-gld.h: Remove.
8464         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
8465         (NO_DBX_BNSYM_ENSYM): Remove.
8466         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
8467         (STACK_CHECK_STATIC_BUILTIN): Remove.
8468         Test USE_GLD instead of TARGET_GNU_LD.
8469         * config/i386/sol2-10.h: Rename to ...
8470         * config/i386/sol2-bi.h .. this.
8471         (SUBTARGET_EXTRA_SPECS): Redefine.
8472         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
8473         (MULTILIB_DEFAULTS): Remove.
8474         (DEFAULT_ARCH32_P): Define.
8475         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
8476         (ARCH64_SUBDIR): Define.
8477         Test USE_GLD instead of TARGET_GNU_LD.
8478         (I386_EMULATION): Rename to ...
8479         (ARCH32_EMULATION): ... this.
8480         (X86_64_EMULATION): Rename to ...
8481         (ARCH64_EMULATION): ... this.
8482         (TARGET_LD_EMULATION): Remove.
8483         (LINK_ARCH_SPEC): Remove.
8484         * config/i386/sol2-gas.h: Remove.
8485         * config/i386/t-sol2-10: Rename to ...
8486         * config/i386/t-sol2-64: ... this.
8487         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
8488         (AS_SPARC64_FLAG): Define.
8489         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
8490         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
8491         depending on TARGET_CPU_DEFAULT.
8492         (CPP_CPU_SPEC): Redefine.
8493         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
8494         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
8495         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
8496         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
8497         ASM_ARCH_DEFAULT_SPEC): Redefine.
8498         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
8499         LINK_ARCH_DEFAULT_SPEC.
8500         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
8501         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
8502         (ARCH64_SUBDIR): Define.
8503         (LINK_ARCH64_SPEC): Redefine.
8504         (CC1_SPEC): Redefine.
8505         (OPTION_DEFAULT_SPECS): Redefine.
8506         (MULTILIB_DEFAULTS): Define.
8507         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
8508         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
8509         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
8510         (NO_DBX_BNSYM_ENSYM): Remove.
8511         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
8512         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
8513         (TARGET_ASM_NAMED_SECTION): Likewise.
8514         (STACK_CHECK_STATIC_BUILTIN): Remove.
8515         * config/sparc/sol2-bi.h: Remove.
8516         * config/sparc/sol2-gas-bi.h: Remove.
8517         * config/sparc/sol2-gas.h: Remove.
8518         * config/sparc/sol2-gld-bi.h: Remove.
8519         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
8520         common parts ...
8521         (*-*-solaris2*): ... here.
8522
8523 2011-06-21  Christian Bruel  <christian.bruel@st.com>
8524
8525         PR other/43564
8526         * ipa-inline.c (can_inline_edge_p): Check
8527         !DECL_DISREGARD_INLINE_LIMITS.
8528
8529 2011-06-21  Christian Bruel  <christian.bruel@st.com>
8530
8531         PR middle-end/49139
8532         * cgraphunit.c (process_function_and_variable_attributes): warn when
8533         always_inline functions that are not inline.
8534         * ipa-inline-transform.c (inline_transform): Always call
8535         optimize_inline.
8536         * tree-inline.c (tree_inlinable_function_p): Use error instead
8537         of sorry.
8538         (expand_call_inline): Likewise.
8539
8540 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
8541
8542         * Makefile.in (dg_target_exps): Set.
8543         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
8544         instead of 7, try to divide it more evenly.
8545
8546 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
8547
8548         PR target/49089
8549         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
8550         (avx256_split_unaligned_store): New definition.
8551         (ix86_option_override_internal): Enable avx256 unaligned load/store
8552         splitting only when avx256_split_unaligned_load/store is set.
8553
8554 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
8555
8556         * regrename.c (scan_rtx_reg): Handle the case where we write to an
8557         open chain in a smaller mode without failing the entire block.
8558
8559 2011-06-21  Alan Modra  <amodra@gmail.com>
8560
8561         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
8562         CONST high part large-toc address.
8563         (rs6000_tls_referenced_p): Make static.
8564         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
8565
8566 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8567
8568         PR target/49385
8569         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
8570         one of the operands is a register.
8571
8572 2011-06-20  Kai Tietz  <ktietz@redhat.com>
8573
8574         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
8575         operations in combination with binary and.
8576
8577 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
8578
8579         * regrename.c (do_replace): Don't update notes.
8580
8581 2011-06-20  Alan Modra  <amodra@gmail.com>
8582
8583         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
8584         of toc-relative address in CONST.
8585         (rs6000_delegitimize_address): Recognize changed address.
8586         (rs6000_legitimize_reload_address): Likewise.
8587         (rs6000_emit_move): Don't force these constants to memory.
8588         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
8589         toc-relative address in CONST.
8590         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
8591         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
8592
8593 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8594
8595         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
8596         (count_trailing_zeros): Likewise.
8597
8598 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8599
8600         PR other/49325
8601         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
8602         .init_array can be used with .ctors on targets.
8603         * configure: Regenerated.
8604
8605 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
8606
8607         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
8608         if the element type is volatile.
8609
8610 2011-06-18  Jan Hubicka  <jh@suse.cz>
8611
8612         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
8613         extra name aliases.
8614         (lto_symtab_resolve_can_prevail_p): Likewise.
8615         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
8616         * cgraphbuild.c (record_reference): Remove extra body alias code.
8617         (mark_load): Likewise.
8618         (mark_store): Likewise.
8619         * cgraph.h (varpool_node): Remove extra_name filed;
8620         add alias_of and extraname_alias.
8621         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
8622         (varpool_alias_aliased_node): New inline function.
8623         (varpool_variable_node): New function.
8624         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
8625         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
8626         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
8627         (input_varpool_node): Likewise.
8628         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
8629         (varpool_externally_visible_p): Remove extra body alias code.
8630         (function_and_variable_visibility): Likewise.
8631         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
8632         (ipa_pta_execute): Use it.
8633         * varpool.c (varpool_remove_node): Remove extra name alias code.
8634         (varpool_mark_needed_node): Likewise.
8635         (varpool_analyze_pending_decls): Analyze aliases.
8636         (assemble_aliases): New functoin.
8637         (varpool_assemble_decl): Use it.
8638         (varpool_create_variable_alias): New function.
8639         (varpool_extra_name_alias): Rewrite.
8640         (varpool_for_node_and_aliases): New function.
8641
8642 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
8643
8644         PR target/49411
8645         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
8646         last_arg_constant and last argument doesn't match its predicate,
8647         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
8648         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
8649         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
8650         spelling of error message.
8651         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
8652         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
8653         const_0_to_255_operand instead of const_int_operand.
8654
8655         Revert:
8656         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
8657
8658         * config/i386/sse.md (blendbits): Remove mode attribute.
8659         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
8660         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
8661         Check integer value of operand 3 in insn constraint.
8662
8663 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
8664
8665         PR rtl-optimization/48542
8666         * reload.c (find_equiv_reg): Stop looking when finding a
8667         setjmp-type call.
8668         * reload1.c (reload_as_needed): Invalidate all reload
8669         registers when crossing a setjmp-type call.
8670
8671 2011-06-16  Jeff Law  <law@redhat.com>
8672
8673         * tree-ssa-threadupdate.c (struct redirection_data): New field
8674         intermediate_edge.
8675         (THREAD_TARGET2): Define.
8676         (redirection_data_eq): Also check that the intermediate edge is equal.
8677         (lookup_redirection_data): Drop useless argument.  Extract the
8678         outgoing_edge and intermediate edge from E.  Callers updated.
8679         (copy_phi_args, update_destination_phis): New functions.
8680         (fix_duplicate_block_edges): Likewise.
8681         (create_edge_and_update_destination_phis): Duplicate all the edges
8682         hung off e->aux.  Use copy_phi_args.
8683         (create_duplicates): Use fix_duplicate_block_edges.
8684         (fixup_template_block): Likewise.
8685         (redirect_edges): If necessary, redirect the joiner block's incoming
8686         edge to the duplicate of the joiner block.
8687         (thread_block): Don't muck up loops when threading through a joiner
8688         block.
8689         (thread_through_loop_header): Handle threading through a joiner block.
8690         (mark_threaded_blocks, register_jump_thread): Likewise.
8691         * tree-flow.h (register_jump_thread): Add new argument.  Callers
8692         updated.
8693         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
8694         (thread_across_edge): Handle threading through a joiner block.
8695
8696 2011-06-16  Martin Jambor  <mjambor@suse.cz>
8697
8698         PR tree-optimization/49343
8699         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
8700         calculate offset, provide 2nd operand for the new COMPONENT_REF.
8701
8702 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
8703
8704         * config/darwin-protos.h (machopic_select_rtx_section): Move to
8705         inside RTX_CODE ifdef.
8706
8707 2011-06-16  Tom de Vries  <tom@codesourcery.com>
8708
8709         PR target/45098
8710         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
8711         Disallow NULL pointer for pointer arithmetic.
8712
8713 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8714
8715         PR target/49398
8716         Revert.
8717         2011-06-10  Wei Guozhi  <carrot@google.com>
8718
8719         PR target/45335
8720         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
8721         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
8722         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
8723         related peephole2.
8724         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
8725         related peephole2.
8726         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
8727         (arm_legitimate_ldrd_p): New prototype.
8728         (arm_output_ldrd): New prototype.
8729         * config/arm/arm.c (arm_check_ldrd_operands): New function.
8730         (arm_legitimate_ldrd_p): New function.
8731         (arm_output_ldrd): New function.
8732
8733 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
8734
8735         PR middle-end/46500
8736         * doc/tm.texi.in: Update Copyright date.
8737         * doc/tm.texi: Regenerate.
8738         * targhooks.c (default_setup_incoming_varargs): Replace
8739         CUMULATIVE_ARGS* argument type with cumulative_args_t.
8740         (default_pretend_outgoing_varargs_named): Likewise.
8741         (hook_pass_by_reference_must_pass_in_stack): Likewise.
8742         (hook_callee_copies_named): Likewise.
8743         (default_function_arg_advance): Likewise.
8744         (default_function_arg): Likewise.
8745         (default_function_incoming_arg): Likewise.
8746         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
8747         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
8748         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
8749         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
8750         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
8751         * targhooks.h (default_setup_incoming_varargs): Likewise.
8752         (default_pretend_outgoing_varargs_named): Likewise.
8753         (hook_pass_by_reference_must_pass_in_stack): Likewise.
8754         (hook_callee_copies_named): Likewise.
8755         (default_function_arg_advance): Likewise.
8756         (default_function_arg): Likewise.
8757         (default_function_incoming_arg): Likewise.
8758         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
8759         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
8760         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
8761         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
8762         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
8763         * target.def (pass_by_reference): Likewise.
8764         (setup_incoming_varargs, strict_argument_naming): Likewise.
8765         (pretend_outgoing_varargs_named, callee_copies): Likewise.
8766         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
8767         (function_incoming_arg): Likewise.
8768         * target.h: Don't include "tm.h" .
8769         (cumulative_args_t): New typedef.
8770         [GCC_TM_H] (get_cumulative_args): New static inline function.
8771         [GCC_TM_H] (pack_cumulative_args): Likewise.
8772         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
8773         argument type with cumulative_args_t.
8774         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
8775         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
8776         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
8777         (frv_arg_partial_bytes, frv_function_arg): Likewise.
8778         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
8779         (frv_function_arg_1): Likewise.
8780         * config/s390/s390.c (s390_pass_by_reference): Likewise.
8781         (s390_function_arg_advance, s390_function_arg): Likewise.
8782         * config/m32c/m32c.c (m32c_function_arg): Likewise.
8783         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
8784         (m32c_strict_argument_naming): Likewise.
8785         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
8786         (spu_function_arg_advance): Likewise.
8787         (spu_setup_incoming_varargs): Likewise.  Make static.
8788         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
8789         Remove prototype.
8790         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
8791         CUMULATIVE_ARGS* argument type with cumulative_args_t.
8792         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
8793         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
8794         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
8795         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
8796         (mep_pass_by_reference, mep_function_arg): Likewise.
8797         (mep_function_arg_advance): Likewise.
8798         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
8799         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
8800         (m32r_function_arg, m32r_function_arg_advance): Likewise.
8801         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
8802         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
8803         (ix86_function_arg, ix86_pass_by_reference): Likewise.
8804         (ix86_setup_incoming_varargs): Likewise.
8805         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
8806         (sh_strict_argument_naming): Likewise.
8807         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
8808         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
8809         (sh_function_arg_advance, sh_function_arg): Likewise.
8810         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
8811         (pdp11_function_arg_advance): Likewise.
8812         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
8813         Likewise.
8814         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
8815         * config/avr/avr.c (avr_function_arg): Likewise.
8816         (avr_function_arg_advance): Likewise.
8817         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
8818         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
8819         (xtensa_function_arg_1): Likewise.
8820         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
8821         Likewise.
8822         (xstormy16_function_arg): Likewise.
8823         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
8824         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
8825         (fr30_function_arg_advance): Likewise.
8826         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
8827         (lm32_function_arg, lm32_function_arg_advance): Likewise.
8828         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
8829         (moxie_function_arg, moxie_function_arg_advance): Likewise.
8830         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
8831         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
8832         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
8833         (cris_function_arg, cris_function_incoming_arg): Likewise.
8834         (cris_function_arg_advance, cris_function_arg_1): Likewise.
8835         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
8836         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
8837         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
8838         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
8839         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
8840         (mn10300_arg_partial_bytes): Likewise.
8841         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
8842         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
8843         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
8844         (ia64_function_arg_1): Likewise.
8845         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
8846         (m68k_function_arg): Likewise.
8847         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
8848         (rs6000_function_arg, setup_incoming_varargs): Likewise.
8849         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
8850         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
8851         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
8852         (picochip_arg_advance): Likewise.
8853         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
8854         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
8855         (mcore_function_arg_advance): Likewise.
8856         * config/score/score.c (score_pass_by_reference): Likewise.
8857         (score_function_arg_advance): Likewise.
8858         (score_arg_partial_bytes): Likewise.  Make static.
8859         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
8860         * config/arm/arm.c (arm_arg_partial_bytes): Replace
8861         CUMULATIVE_ARGS* argument type with cumulative_args_t.
8862         (arm_function_arg, arm_function_arg_advance): Likewise.
8863         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
8864         * config/pa/pa.c (pa_pass_by_reference): Likewise.
8865         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
8866         (pa_function_arg): Likewise.
8867         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
8868         (mips_function_arg, mips_function_arg_advance): Likewise.
8869         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
8870         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
8871         * config/vax/vax.c (vax_function_arg): Likewise.
8872         (vax_function_arg_advance): Likewise.
8873         * config/h8300/h8300.c (h8300_function_arg): Likewise.
8874         (h8300_function_arg_advance): Likewise.
8875         * config/v850/v850.c (v850_pass_by_reference): Likewise.
8876         (v850_strict_argument_naming, v850_function_arg): Likewise.
8877         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
8878         (v850_setup_incoming_varargs): Likewise.
8879         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
8880         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
8881         (mmix_function_arg, mmix_pass_by_reference): Likewise.
8882         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
8883         with const void *.
8884         * config/bfin/bfin.c (setup_incoming_varargs): Replace
8885         CUMULATIVE_ARGS* argument type with cumulative_args_t.
8886         (bfin_function_arg_advance, bfin_function_arg): Likewise.
8887         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
8888         * calls.c (emit_call_1): Change type of args_so_far to
8889         cumulative_args_t.  Changed all callers.
8890         (initialize_argument_information): Likewise.
8891         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
8892         * dse.c (get_call_args): Likewise.
8893         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
8894         * function.c (pass_by_reference, reference_callee_copied): Likewise.
8895         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
8896         New member args_so_far_v.  Changed all users.
8897         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
8898         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
8899         * config/mips/mips.c (mips_output_args_xfer): Likewise.
8900         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
8901         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
8902         * config/microblaze/microblaze.c (microblaze_expand_prologue):
8903         Likewise.
8904         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
8905         m32r_pass_by_reference.
8906
8907 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
8908
8909         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
8910         argument to be a VEC of statements.
8911         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
8912         assert that pattern statements have to have their vector type set.
8913         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
8914         Change the first argument to be a VEC of statements.  Update
8915         documentation.
8916         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
8917         (vect_handle_widen_mult_by_const): New function.
8918         (vect_recog_widen_mult_pattern):  Change the first argument to be a
8919         VEC of statements.  Update documentation.  Check that the constant is
8920         INTEGER_CST.  Support multiplication by a constant that fits an
8921         intermediate type - call vect_handle_widen_mult_by_const.
8922         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
8923         call.  Handle additional pattern statements if necessary.
8924
8925 2011-06-16  Nick Clifton  <nickc@redhat.com>
8926
8927         PR target/49427
8928         * config.gcc: Set cpu_type to v850 for any V850 architecture.
8929         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
8930         md_file, extra_modes, out_file and extra_options are these are all
8931         deduced from cpu_type.
8932
8933 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
8934
8935         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
8936         truncation mask to 63.
8937
8938 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
8939
8940         PR target/49313
8941         PR target/29524
8942         * longlong.h: Add AVR support:
8943         (count_leading_zeros): New macro.
8944         (count_trailing_zeros): New macro.
8945         (COUNT_LEADING_ZEROS_0): New macro.
8946         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
8947         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
8948         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
8949         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
8950         (LIB2FUNCS_EXCLUDE): Add _clz.
8951         * config/avr/libgcc.S (XCALL): Move up in file.
8952         (XJMP): New C Macro.
8953         (DEFUN): New asm macro.
8954         (ENDF): New asm macro.
8955         (__ffssi2): New function.
8956         (__ffshi2): New function.
8957         (__loop_ffsqi2): New function.
8958         (__ctzsi2): New function.
8959         (__ctzhi2): New function.
8960         (__clzdi2): New function.
8961         (__clzsi2): New function.
8962         (__clzhi2): New function.
8963         (__paritydi2): New function.
8964         (__paritysi2): New function.
8965         (__parityhi2): New function.
8966         (__parityqi2): New function.
8967         (__popcounthi2): New function.
8968         (__popcountsi2): New function.
8969         (__popcountdi2): New function.
8970         (__popcountqi2): New function.
8971         (__bswapsi2): New function.
8972         (__bswapdi2): New function.
8973         (__ashldi3): New function.
8974         (__ashrdi3): New function.
8975         (__lshrdi3): New function.
8976         Fix suspicous lines.
8977
8978 2011-06-16  Richard Guenther  <rguenther@suse.de>
8979
8980         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
8981         the same as x != 0.
8982         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
8983         to (bool) X & 1.
8984         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
8985         equality compares against zero for the lower bit.
8986
8987 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
8988
8989         PR tree-optimization/49419
8990         * tree-vrp.c (execute_vrp): Call init_range_assertions
8991         before estimate_numbers_of_iterations, call
8992         free_number_of_iterations_estimates before calling
8993         remove_range_assertions.
8994
8995 2011-06-16  Revital Eres  <revital.eres@linaro.org>
8996
8997         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
8998         (struct partial_schedule): Add rows_length field.
8999         (verify_partial_schedule): Check rows_length.
9000         (ps_insert_empty_row): Handle rows_length.
9001         (create_partial_schedule): Likewise.
9002         (free_partial_schedule): Likewise.
9003         (reset_partial_schedule): Likewise.
9004         (create_ps_insn): Remove rest_count argument.
9005         (remove_node_from_ps): Update rows_length.
9006         (add_node_to_ps): Update rows_length and call create_ps_insn
9007         without passing row_rest_count.
9008         (rotate_partial_schedule): Update rows_length.
9009
9010 2011-06-16  Revital Eres  <revital.eres@linaro.org>
9011
9012         * ddg.c (add_intra_loop_mem_dep): New function.
9013         (build_intra_loop_deps): Call it.
9014
9015 2011-06-13  Jeff Law  <law@redhat.com>
9016
9017         * df-problems.c (df_lr_local_compute): Manually CSE
9018         PIC_OFFSET_TABLE_REGNUM.
9019         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
9020         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
9021
9022 2011-06-13  Jan Hubicka  <jh@suse.cz>
9023
9024         * cgraphunit.c (handle_alias_pairs): New function.
9025         (cgraph_finalize_compilation_unit): Use it.
9026         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
9027         as externally visible.
9028
9029 2011-06-15  Richard Guenther  <rguenther@suse.de>
9030
9031         * expr.c (expand_expr_real_2): Reduce all integral types to
9032         bitfield precision.
9033         (expand_expr_real_1): Likewise.
9034
9035 2011-06-15  Martin Jambor  <mjambor@suse.cz>
9036
9037         PR tree-optimization/48613
9038         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
9039         ipa_node_params_vector is NULL.
9040
9041 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
9042
9043         PR debug/49382
9044         * dwarf2out.c (dw_loc_list_node): Add force field.
9045         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
9046         location in the list, even if it is modified before first real insn.
9047         (output_loc_list): Emit empty ranges with force flag set.
9048         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
9049
9050 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
9051
9052         PR target/49349
9053         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
9054         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
9055         above a fence.  Update comments.
9056         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
9057         placed just above it.  Do not allow NULL place_to_insert.
9058
9059 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
9060
9061         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
9062         (slpeel_tree_peel_loop_to_edge): Don't call
9063         remove_dead_stmts_from_loop.
9064         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
9065         remove irrelevant pattern statements.  For irrelevant statements
9066         check if it is the last statement of a detected pattern, use
9067         corresponding pattern statement instead.
9068         (destroy_loop_vec_info): No need to remove pattern statements,
9069         only free stmt_vec_info.
9070         (vect_transform_loop): For irrelevant statements check if it is
9071         the last statement of a detected pattern, use corresponding
9072         pattern statement instead.
9073         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
9074         pattern statements.  Set basic block for the new statement.
9075         (vect_pattern_recog): Update documentation.
9076         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
9077         operands of pattern statements.
9078         (vectorizable_call): Fix printing.  In case of a pattern statement
9079         use the lhs of the original statement when creating a dummy
9080         statement to replace the original call.
9081         (vect_analyze_stmt): For irrelevant statements check if it is
9082         the last statement of a detected pattern, use corresponding
9083         pattern statement instead.
9084         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
9085         statements use gsi of the original statement.
9086
9087 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
9088
9089         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
9090         common/common-target-def.h.
9091         * target.def (default_target_flags, handle_option,
9092         supports_split_stack, optimization_table, init_struct,
9093         except_unwind_info, unwind_tables_default, have_named_sections):
9094         Move to common/common-target.def.
9095         * target.h (enum opt_levels, struct default_options): Move to
9096         common/common-target.h.
9097         * targhooks.c (default_except_unwind_info,
9098         dwarf2_except_unwind_info, sjlj_except_unwind_info,
9099         default_target_handle_option, empty_optimization_table): Move to
9100         common/common-targhooks.c.
9101         * targhooks.h (default_except_unwind_info,
9102         dwarf2_except_unwind_info, sjlj_except_unwind_info,
9103         default_target_handle_option, empty_optimization_table): Move to
9104         common/common-targhooks.h.
9105         * common/common-target-def.h: Include common/common-targhooks.h.
9106         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
9107         defined.
9108         * common/common-target.def (handle_option, option_init_struct,
9109         option_optimization_table, default_target_flags,
9110         except_unwind_info, supports_split_stack, unwind_tables_default,
9111         have_named_sections): Move from target.def.
9112         (HOOK_PREFIX): Undefine at end of file.
9113         * common/common-target.h: Include input.h.
9114         (enum opt_levels, struct default_options): Move from target.h.
9115         * common/common-targhooks.c, common/common-targhooks.h: New.
9116         * config.gcc (target_has_targetm_common): Default to yes.
9117         (moxie*): Set target_has_targetm_common=no.
9118         (hppa*-*-*): Don't set target_has_targetm_common=yes.
9119         * doc/tm.texi: Regenerate.
9120         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
9121         (C_TARGET_DEF_H): Add common/common-targhooks.h.
9122         (GCC_OBJS): Remove vec.o.
9123         (OBJS): Remove hooks.o and vec.o.
9124         (OBJS-libcommon-target): Add vec.o, hooks.o and
9125         common/common-targhooks.o.
9126         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
9127         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
9128         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
9129         cfglayout.o, $(out_object_file), $(common_out_object_file)):
9130         Update dependencies.
9131         (common/common-targhooks.o): New.
9132         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
9133         * common/config/pa/pa-common.c: Include more headers.  Take
9134         copyright dates from pa.c.
9135         (pa_option_optimization_table, pa_handle_option,
9136         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
9137         TARGET_HANDLE_OPTION): Move from pa.c.
9138         * common/config/alpha/alpha-common.c,
9139         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
9140         common/config/bfin/bfin-common.c,
9141         common/config/cris/cris-common.c,
9142         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
9143         common/config/h8300/h8300-common.c,
9144         common/config/i386/i386-common.c,
9145         common/config/ia64/ia64-common.c,
9146         common/config/iq2000/iq2000-common.c,
9147         common/config/lm32/lm32-common.c,
9148         common/config/m32c/m32c-common.c,
9149         common/config/m32r/m32r-common.c,
9150         common/config/m68k/m68k-common.c,
9151         common/config/mcore/mcore-common.c,
9152         common/config/mep/mep-common.c,
9153         common/config/microblaze/microblaze-common.c,
9154         common/config/mips/mips-common.c,
9155         common/config/mmix/mmix-common.c,
9156         common/config/mn10300/mn10300-common.c,
9157         common/config/pdp11/pdp11-common.c,
9158         common/config/picochip/picochip-common.c,
9159         common/config/rs6000/rs6000-common.c,
9160         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
9161         common/config/score/score-common.c, common/config/sh/sh-common.c,
9162         common/config/sparc/sparc-common.c,
9163         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
9164         common/config/vax/vax-common.c,
9165         common/config/xstormy16/xstormy16-common.c,
9166         common/config/xtensa/xtensa-common.c: New.
9167         * config/alpha/alpha.c: Include common/common-target.h.
9168         (alpha_option_optimization_table, alpha_handle_option,
9169         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9170         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
9171         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
9172         * config/arm/arm.c (arm_option_optimization_table,
9173         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9174         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
9175         arm-common.c.
9176         * config/avr/avr.c (avr_option_optimization_table,
9177         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
9178         to avr-common.c.
9179         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
9180         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
9181         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
9182         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
9183         * config/cris/cris.c (cris_option_optimization_table,
9184         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9185         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
9186         cris-common.c.
9187         * config/fr30/fr30.c (fr30_option_optimization_table,
9188         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
9189         to fr30-common.c.
9190         * config/frv/frv.c (frv_option_optimization_table,
9191         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
9192         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
9193         * config/h8300/h8300.c (h8300_option_optimization_table,
9194         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9195         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
9196         * config/i386/i386-protos.h (ix86_handle_option): Declare.
9197         * config/i386/i386.c: Include common/common-target.h.
9198         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
9199         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
9200         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
9201         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
9202         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
9203         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
9204         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
9205         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
9206         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
9207         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
9208         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
9209         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
9210         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
9211         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
9212         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
9213         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
9214         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
9215         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
9216         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
9217         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
9218         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
9219         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
9220         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
9221         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
9222         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
9223         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
9224         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
9225         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
9226         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
9227         ix86_option_optimization_table, ix86_option_init_struct,
9228         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
9229         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9230         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
9231         i386-common.c.
9232         * config/i386/t-i386 (i386.o): Update dependencies.
9233         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
9234         * config/ia64/ia64.c (ia64_option_optimization_table,
9235         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
9236         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9237         ia64_handle_option): Move to ia64-common.c.
9238         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
9239         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
9240         * config/lm32/lm32.c (lm32_option_optimization_table,
9241         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
9242         to lm32-common.c.
9243         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
9244         m32c-common.c.
9245         * config/m32r/m32r.c (m32r_option_optimization_table,
9246         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9247         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
9248         m32r_handle_option): Move to m32r-common.c.
9249         (m32r_memory_move_cost): Remove comment referring to
9250         TARGET_HANDLE_OPTION.
9251         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
9252         Move to m68k-common.c.
9253         * config/mcore/mcore.c (mcore_option_optimization_table,
9254         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9255         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
9256         * config/mep/mep.c (mep_option_optimization_table,
9257         mep_handle_option, TARGET_HANDLE_OPTION,
9258         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
9259         Move to mep-common.c.
9260         * config/microblaze/microblaze.c
9261         (microblaze_option_optimization_table,
9262         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9263         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
9264         * config/mips/mips.c (mips_handle_option,
9265         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
9266         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
9267         mips-common.c.
9268         * config/mmix/mmix.c (mmix_option_optimization_table,
9269         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
9270         Move to mmix-common.c.
9271         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
9272         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
9273         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9274         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
9275         * config/pa/pa.c: Include common/common-target.h.
9276         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
9277         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9278         pa_handle_option): Move to pa-common.c.
9279         (pa_option_override): Use targetm_common.except_unwind_info.
9280         (pa_asm_output_mi_thunk, pa_function_section): Use
9281         targetm_common.have_named_sections.
9282         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
9283         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9284         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
9285         pdp11_handle_option, pdp11_option_init_struct): Move to
9286         pdp11-common.c.
9287         * config/picochip/picochip.c (picochip_option_optimization_table,
9288         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
9289         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
9290         * config/rs6000/rs6000.c: Include common/common-target.h.
9291         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
9292         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
9293         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
9294         rs6000_handle_option): Move to rs6000-common.c.
9295         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9296         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
9297         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9298         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
9299         * config/s390/s390.c (processor_flags_table,
9300         s390_option_optimization_table, s390_option_init_struct,
9301         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
9302         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9303         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
9304         * config/s390/s390.h (processor_flags_table): Declare.
9305         * config/score/score.c (score_option_optimization_table,
9306         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9307         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
9308         score_handle_option): Move to score-common.c.
9309         * config/sh/sh.c (sh_option_optimization_table,
9310         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
9311         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9312         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
9313         * config/sparc/sparc.c: Include common/common-target.h.
9314         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
9315         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
9316         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
9317         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
9318         spu_option_init_struct): Move to spu-common.c.
9319         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
9320         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
9321         * config/v850/v850.c (small_memory_physical_max,
9322         v850_handle_memory_optionn v850_handle_option,
9323         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
9324         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
9325         v850-common.c.
9326         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
9327         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
9328         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
9329         Move to xtensa-common.c.
9330         * cfglayout.c: Include common/common-target.h.
9331         (fixup_reorder_chain): Use targetm_common.have_named_sections.
9332         * cfgrtl.c: Include common/common-target.h.
9333         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
9334         targetm_common.have_named_sections.
9335         * dbxout.c: Include common/common-target.h.
9336         (dbxout_function_end): Use targetm_common.have_named_sections.
9337         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
9338         targetm_common.except_unwind_info.
9339         * dwarf2out.c: Include common/common-target.h.
9340         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
9341         dwarf2out_begin_prologue, dwarf2out_frame_init,
9342         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
9343         targetm_common.except_unwind_info.
9344         * except.c: Include common/common-target.h.
9345         (init_eh, finish_eh_generation,
9346         output_one_function_exception_table): Use
9347         targetm_common.except_unwind_info.
9348         (switch_to_exception_section): Use targetm_common.have_named_sections.
9349         * explow.c: Include common/common-target.h.
9350         * expr.c: Include common/common-target.h.
9351         (build_personality_function): Use targetm_common.except_unwind_info.
9352         * function.c: Include common/common-target.h.
9353         (expand_function_end): Use targetm_common.except_unwind_info.
9354         * haifa-sched.c: Include common/common-target.h.
9355         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
9356         * lto-opts.c: Include common/common-target.h instead of target.h.
9357         (lto_reissue_options): Use targetm_common.handle_option.
9358         * opts.c: Include common/common-target.h.
9359         (target_handle_option): Use targetm_common.handle_option.
9360         (init_options_struct): Update comment referring to
9361         targetm.target_option.optimization.  Use
9362         targetm_common.default_target_flags,
9363         targetm_common.unwind_tables_default and
9364         targetm_common.option_init_struct.
9365         (default_options_optimization): Use
9366         targetm_common.option_optimization_table.
9367         (finish_options): Use targetm_common.except_unwind_info,
9368         targetm_common.unwind_tables_default,
9369         targetm_common.have_named_sections and
9370         targetm_common.supports_split_stack.
9371         * toplev.c: Include common/common-target.h.
9372         (process_options): Use targetm_common.have_named_sections.
9373         * tree-tailcall.c: Include common/common-target.h.
9374         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
9375         * tree.c: Include common/common-target.h.
9376         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
9377         * varasm.c: Include common/common-target.h.
9378         (resolve_unique_section, hot_function_section,
9379         default_function_section): Use targetm_common.have_named_sections.
9380
9381 2011-06-14  Easwaran Raman  <eraman@google.com>
9382
9383         PR rtl-optimization/44194
9384         * dse.c: Include tree-flow.h
9385         (insn_info): Add new field non_frame_wild_read.
9386         (group_info): Add new fields escaped_n and escaped_p.
9387         (kill_on_calls): New variable.
9388         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
9389         (dse_step0): Initialize kill_on_calls.
9390         (can_escape): New function.
9391         (set_usage_bits): Add additional parameter; record information
9392         about escaped locations.
9393         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
9394         (dse_step2_nospill): Set kill_on_calls based on
9395         group->escaped_n and group->escaped_n.
9396         (add_wild_read): Refactor into...
9397         (reset_active_stores): ... New function, and
9398         (free_read_records): ... New function.
9399         (add_non_frame_wild_read): New function.
9400         (scan_insn): Call add_non_frame_wild_read on non-const calls.
9401         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
9402         (dse_step5_nospill): Call scan_reads_nospill for instructions
9403         marked as non_frame_wild_read.
9404         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
9405
9406 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
9407
9408         * common/common-target-def.h, common/common-target.def,
9409         common/common-target.h, common/config/default-common.c,
9410         common/config/pa/pa-common.c: New files.
9411         * Makefile.in (common_out_file, common_out_object_file,
9412         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
9413         (OBJS-libcommon-target): Include $(common_out_object_file).
9414         (prefix.o): Update dependencies.
9415         ($(common_out_object_file), common/common-target-hooks-def.h,
9416         s-common-target-hooks-def-h): New.
9417         (s-tm-texi): Also check timestamp on common-target.def.
9418         (build/genhooks.o): Update dependencies.
9419         * config.gcc (common_out_file, target_has_targetm_common): Define.
9420         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
9421         TARGET_ALWAYS_STRIP_DOTDOT.
9422         * configure.ac (common_out_object_file): Define.
9423         (common_out_file, common_out_object_file): Substitute.
9424         (common): Create directory.
9425         * configure: Regenerate.
9426         * doc/tm.texi.in (targetm_common): Document.
9427         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
9428         * doc/tm.texi: Regenerate.
9429         * genhooks.c (hook_array): Also include common/common-target.def.
9430         * prefix.c (tm.h): Don't include.
9431         (common/common-target.h): Include.
9432         (ALWAYS_STRIP_DOTDOT): Don't define.
9433         (update_path): Use targetm_common.always_strip_dotdot instead of
9434         ALWAYS_STRIP_DOTDOT.
9435         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
9436
9437 2011-06-14  David Li  <davidxl@google.com>
9438
9439         * passes.c (execute_function_todo): Remove TODO_dump_func.
9440         (execute_one_pass): Remove TODO_dump_func.
9441         (execute_function_dump): New function.
9442         * tree-vrp.c: Remove TODO_dump_func.
9443         * regrename.c: Remove TODO_dump_func.
9444         * fwprop.c: Remove TODO_dump_func.
9445         * tree-into-ssa.c: Remove TODO_dump_func.
9446         * tree-complex.c: Remove TODO_dump_func.
9447         * tracer.c: Remove TODO_dump_func.
9448         * tree-loop-distribution.c: Remove TODO_dump_func.
9449         * postreload-gcse.c: Remove TODO_dump_func.
9450         * postreload.c: Remove TODO_dump_func.
9451         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
9452         * tree-tailcall.c: Remove TODO_dump_func.
9453         * ipa-cp.c: Remove TODO_dump_func.
9454         * final.c: Remove TODO_dump_func.
9455         * tree-emutls.c: Remove TODO_dump_func.
9456         * omp-low.c: Remove TODO_dump_func.
9457         * tree-ssa-dse.c: Remove TODO_dump_func.
9458         * tree-ssa-uncprop.c: Remove TODO_dump_func.
9459         * auto-inc-dec.c: Remove TODO_dump_func.
9460         * reorg.c: Remove TODO_dump_func.
9461         * tree-ssa-copyrename.c: Remove TODO_dump_func.
9462         * tree-ssa-ccp.c: Remove TODO_dump_func.
9463         * compare-elim.c: Remove TODO_dump_func.
9464         * mode-switching.c: Remove TODO_dump_func.
9465         * modulo-sched.c: Remove TODO_dump_func.
9466         * tree-call-cdce.c: Remove TODO_dump_func.
9467         * cse.c: Remove TODO_dump_func.
9468         * web.c: Remove TODO_dump_func.
9469         * tree-stdarg.c: Remove TODO_dump_func.
9470         * lto-streamer-out.c: Remove TODO_dump_func.
9471         * tree-ssa-math-opts.c: Remove TODO_dump_func.
9472         * tree-ssa-dom.c: Remove TODO_dump_func.
9473         * tree-nrv.c: Remove TODO_dump_func.
9474         * loop-init.c: Remove TODO_dump_func.
9475         * gimple-low.c: Remove TODO_dump_func.
9476         * ipa-inline.c: Remove TODO_dump_func.
9477         * tree-ssa-sink.c: Remove TODO_dump_func.
9478         * jump.c: Remove TODO_dump_func.
9479         * ifcvt.c: Remove TODO_dump_func.
9480         * tree-ssa-loop.c: Remove TODO_dump_func.
9481         * recog.c: Remove TODO_dump_func.
9482         * dse.c: Remove TODO_dump_func.
9483         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
9484         * matrix-reorg.c: Remove TODO_dump_func.
9485         * tree-eh.c: Remove TODO_dump_func.
9486         * regmove.c: Remove TODO_dump_func.
9487         * function.c: Remove TODO_dump_func.
9488         * tree-vectorizer.c: Remove TODO_dump_func.
9489         * ipa-split.c: Remove TODO_dump_func.
9490         * gcse.c: Remove TODO_dump_func.
9491         * tree-if-conv.c: Remove TODO_dump_func.
9492         * init-regs.c: Remove TODO_dump_func.
9493         * tree-ssa-phiopt.c: Remove TODO_dump_func.
9494         * implicit-zee.c: Remove TODO_dump_func.
9495         * lower-subreg.c: Remove TODO_dump_func.
9496         * bt-load.c: Remove TODO_dump_func.
9497         * tree-dfa.c: Remove TODO_dump_func.
9498         * except.c: Remove TODO_dump_func.
9499         * emit-rtl.c: Remove TODO_dump_func.
9500         * store-motion.c: Remove TODO_dump_func.
9501         * cfgexpand.c: Remove TODO_dump_func.
9502         * tree-cfgcleanup.c: Remove TODO_dump_func.
9503         * cfgcleanup.c: Remove TODO_dump_func.
9504         * tree-ssa-pre.c: Remove TODO_dump_func.
9505         * tree-sra.c: Remove TODO_dump_func.
9506         * tree-mudflap.c: Remove TODO_dump_func.
9507         * tree-ssa-copy.c: Remove TODO_dump_func.
9508         * cfglayout.c: Remove TODO_dump_func.
9509         * tree-ssa-forwprop.c: Remove TODO_dump_func.
9510         * tree-ssa-dce.c: Remove TODO_dump_func.
9511         * ira.c: Remove TODO_dump_func.
9512         * tree-ssa.c: Remove TODO_dump_func.
9513         * integrate.c: Remove TODO_dump_func.
9514         * tree-optimize.c: Remove TODO_dump_func.
9515         * tree-ssa-phiprop.c: Remove TODO_dump_func.
9516         * tree-object-size.c: Remove TODO_dump_func.
9517         * combine.c: Remove TODO_dump_func.
9518         * bb-reorder.c: Remove TODO_dump_func.
9519         * cprop.c: Remove TODO_dump_func.
9520         * var-tracking.c: Remove TODO_dump_func.
9521         * tree-profile.c: Remove TODO_dump_func.
9522         * tree-vect-generic.c: Remove TODO_dump_func.
9523         * reg-stack.c: Remove TODO_dump_func.
9524         * sched-rgn.c: Remove TODO_dump_func.
9525         * tree-ssa-structalias.c: Remove TODO_dump_func.
9526         * tree-switch-conversion.c: Remove TODO_dump_func.
9527         * tree-cfg.c: Remove TODO_dump_func.
9528         * tree-ssa-reassoc.c: Remove TODO_dump_func.
9529         * combine-stack-adj.c: Remove TODO_dump_func.
9530         * dce.c: Remove TODO_dump_func.
9531         * tree-ssanames.c: Remove TODO_dump_func.
9532         * regcprop.c: Remove TODO_dump_func.
9533
9534 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
9535
9536         PR middle-end/47364
9537         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
9538         and properly handle result not in Pmode.
9539
9540 2011-06-14  Robert Millan  <rmh@gnu.org>
9541
9542         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
9543         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
9544         `config/linux.h'.
9545
9546         * config/i386/kfreebsd-gnu64.h: New file.
9547         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
9548         with `i386/kfreebsd-gnu64.h'.
9549
9550         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
9551         (GNU_USER_LINK_EMULATION64): New macros.
9552         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
9553         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
9554         of hardcoding `elf_i386' and `elf_x86_64'.
9555
9556 2011-06-14  Nick Clifton  <nickc@redhat.com>
9557
9558         PR target/49403
9559         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
9560
9561         PR target/49402
9562         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
9563
9564 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
9565
9566         PR fortran/49103
9567         * tree.h (DECL_NONSHAREABLE): Define.
9568         (struct tree_decl_common): Change decl_common_unused to
9569         decl_nonshareable_flag.
9570         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
9571         Ignore vars with DECL_NONSHAREABLE bit set.
9572         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
9573         on stores to automatic aggregate vars.
9574
9575         PR rtl-optimization/49390
9576         Revert:
9577         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
9578
9579         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
9580         MEM_ALIAS_SET.
9581
9582 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
9583             Tom de Vries  <tom@codesourcery.com>
9584
9585         PR target/45098
9586         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
9587         Document changed semantics.
9588         (max_stmt_executions, max_stmt_executions_int): Declare.
9589         * tree-data-ref.c (estimated_loop_iterations)
9590         (estimated_loop_iterations_int): Move functions...
9591         * tree-ssa-loop-niter.c (estimated_loop_iterations)
9592         (estimated_loop_iterations_int): here.
9593         (record_estimate): Change nb_iterations_upper_bound and
9594         nb_iterations_estimate semantics.
9595         (max_stmt_executions, max_stmt_executions_int): New function.
9596         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
9597         (max_stmt_executions_tree): this.
9598         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
9599         estimated_loop_iterations_tree.
9600         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
9601         max_stmt_executions_int instead of estimated_loop_iterations_int.
9602         * predict.c (predict_loops): Idem.
9603         * tree-parloops.c (parallelize_loops): Idem.
9604         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
9605         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
9606         (init_omega_for_ddr_1): Idem.
9607         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
9608         (loop_prefetch_arrays): Idem
9609         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
9610         max_stmt_executions instead of estimated_loop_iterations.
9611         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
9612         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
9613         instead of nb_iterations_upper_bound.
9614
9615 2011-06-13  Jan Hubicka  <jh@suse.cz>
9616
9617         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
9618
9619 2011-06-14  Richard Henderson  <rth@redhat.com>
9620
9621         PR debug/48459
9622         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
9623         (based_loc_descr): Assert it's true.
9624         (compute_frame_pointer_to_fb_displacement): Set it, rather than
9625         aborting immediately.
9626
9627 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
9628             Mingfeng Wu  <mingfeng@faraday-tech.com>
9629
9630         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
9631
9632 2011-06-13  Jan Hubicka  <jh@suse.cz>
9633
9634         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
9635
9636 2011-06-13  Jan Hubicka  <jh@suse.cz>
9637
9638         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
9639         similarly to DECL_COMDAT.
9640         * cgraphunit.c (cgraph_analyze_function): Likewise.
9641         * ipa.c (function_and_variable_visibility): Likewise.
9642
9643 2011-06-13  Jan Hubicka  <jh@suse.cz>
9644
9645         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
9646         BINFO_VIRTUALS when streaming for ltrans unit.
9647
9648 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
9649
9650         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
9651         (movdi_internal64): Same.
9652
9653 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
9654
9655         PR target/44618
9656         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
9657         a set of similar patterns, where the MATCH_OPERAND for the function
9658         argument is replaced with individual references to hardware registers.
9659         (save_fpregs_<mode>): Ditto
9660         (restore_gpregs_<mode>): Ditto
9661         (return_and_restore_gpregs_<mode>): Ditto
9662         (return_and_restore_fpregs_<mode>): Ditto
9663         (return_and_restore_fpregs_aix_<mode>): Ditto
9664
9665 2011-06-13  Jan Hubicka  <jh@suse.cz>
9666
9667         * ipa-utils.c (postorder_stack): New structure.
9668         (ipa_reverse_postorder): Handle aliases.
9669
9670 2011-06-13  Jan Hubicka  <jh@suse.cz>
9671
9672         * ipa-inline.c (reset_edge_caches): Walk aliases.
9673         (update_caller_keys): Do not test inlinability of aliases.
9674         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
9675         (do_estimate_growth): Fix typo.
9676
9677 2011-06-13  Jan Hubicka  <jh@suse.cz>
9678
9679         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
9680         (can_remove_node_now_p): ... here; handle same comdat groups.
9681         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
9682         (inline_call): Update use of can_remove_node_now_p.
9683
9684 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
9685
9686         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
9687         condition to disallow non-identical memory locations.
9688         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
9689         preference to bit manipulation instructions.
9690
9691 2011-06-13  Jan Hubicka  <jh@suse.cz>
9692
9693         * cgraph.c (cgraph_for_node_thunks_and_aliases,
9694         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
9695         (nonremovable_p): New function.
9696         (cgraph_can_remove_if_no_direct_calls_p): New function.
9697         (used_from_object_file_p): New functoin.
9698         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
9699         references from aliases.
9700         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
9701         * ipa-inline.c (check_caller_edge): New function.
9702         (want_inline_function_called_once_p): Use it; accept aliases called
9703         once, too.
9704         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
9705
9706 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9707
9708         PR target/48454
9709         * config/arm/neon.md (vec_pack_trunc): Set the lengths
9710         correctly for the case with Quad vectors.
9711
9712 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
9713            Ira Rosen  <ira.rosen@linaro.org>
9714
9715         PR tree-optimization/49352
9716         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
9717         all, make sure loop_use_stmt after the loop is a def stmt of a used
9718         SSA_NAME that is the only one defined inside of the loop.  Don't
9719         check for COND_EXPR and GIMPLE_BINARY_RHS.
9720         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
9721         check_reduction is true.
9722
9723 2011-06-11  Jan Hubicka  <jh@suse.cz>
9724
9725         PR middle-end/49373
9726         * ipa.c (cgraph_externally_visible_p): Check resolution info.
9727
9728 2011-06-11  Jan Hubicka  <jh@suse.cz>
9729
9730         PR middle-end/48836
9731         * ipa-inline-transform.c: Include tree-pass.h
9732         (inline_transform): Set TODO_update_ssa_only_virtuals.
9733         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
9734
9735 2011-06-11  Jan Hubicka  <jh@suse.cz>
9736
9737         PR middle-end/49378
9738         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
9739         aliases and thunks.
9740
9741 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
9742
9743         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
9744         Take number of iterations to peel into account for equally frequent
9745         misalignment values.
9746
9747 2011-06-11  Jan Hubicka  <jh@suse.cz>
9748
9749         * lto-streamer-out.c (produce_symtab): Stream out the newly
9750         represented aliases.
9751
9752 2011-06-11  Jan Hubicka  <jh@suse.cz>
9753
9754         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
9755         varying args.
9756         (ipa_update_after_lto_read): Likewise.
9757         (ipa_write_node_info): Do not sream call_with_var_arguments.
9758         (ipa_read_node_info): Likewise.
9759
9760 2011-06-11  Jan Hubicka  <jh@suse.cz>
9761
9762         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
9763
9764 2011-06-11  Jan Hubicka  <jh@suse.cz>
9765
9766         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
9767         (lto_symtab_resolve_can_prevail_p): Likewise.
9768         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
9769         * cgraph.c (same_body_aliases_done): New global var.
9770         (cgraph_same_body_alias_1): Rename to ...
9771         (cgraph_create_function_alias): ... this one; reorg to new
9772         representation.
9773         (cgraph_same_body_alias): Use cgraph_create_function_alias;
9774         record references when asked to.
9775         (cgraph_add_thunk): Fix formating.
9776         (cgraph_get_node): Kill same body alias code.
9777         (cgraph_node_for_asm): Likewise.
9778         (cgraph_remove_same_body_alias): Remove.
9779         (cgraph_remove_node): Kill same body alias code.
9780         (cgraph_mark_address_taken_node): Mark also the aliased function
9781         as having address taken.
9782         (dump_cgraph_node): Dump same body aliases.
9783         (cgraph_for_node_thunks_and_aliases): Update for new alias
9784         representation.
9785         (cgraph_for_node_and_aliases): Likewise.
9786         * cgraph.h (same_body): Kll pointer.
9787         (same_body_alias): Update comment.
9788         (same_body_aliases_done): Declare.
9789         (cgraph_remove_same_body_alias): Remove declaration.
9790         (cgraph_create_function_alias): Declare.
9791         (cgraph_process_same_body_aliases): Declare.
9792         (cgraph_function_with_gimple_body_p): Check for alias.
9793         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
9794         (cgraph_alias_aliased_node): New function.
9795         (cgraph_function_node): Update for new aliases.
9796         (cgraph_function_or_thunk_node): Likewise.
9797         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
9798         (inline_call): Remove dead aliases.
9799         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
9800         name hack for same body aliases.
9801         (clone_of_p): Look through aliases.
9802         (verify_cgraph_node): Verify aliases.
9803         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
9804         (cgraph_process_same_body_aliases): New function.
9805         (process_function_and_variable_attributes): Disable weakref warning on
9806         alias.
9807         (cgraph_analyze_functions): Handle aliases.
9808         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
9809         (assemble_thunks): Rename to ...
9810         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
9811         (cgraph_expand_function): Remove alias output code.
9812         (cgraph_output_in_order): Skip aliases.
9813         (cgraph_preserve_function_body_p): Aliases don't need preserving.
9814         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
9815         (ipa_record_reference): Do not assert on alias references.
9816         (ipa_ref_has_aliases_p): New function.
9817         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
9818         (ipa_ref_has_aliases_p): Declare.
9819         * lto-cgraph.c (lto_output_node): Handle aliases.
9820         (input_node): Likewise.
9821         * lto-streamer-out.c (lto_output): Skip aliases.
9822         (produce_symtab): Kill same_body_alias code.
9823         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
9824         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
9825         * ipa-inline.c (update_caller_keys): Walk aliases.
9826         (inline_small_functions): Fix thinko in previous patch.
9827         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
9828         (function_and_variable_visibility): Do not walk same body aliases.
9829         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
9830         (ipa_pta_execute): Use it.
9831
9832 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
9833
9834         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
9835         (*vec_dupv2df): Rename from vec_dupv2df.
9836         (vec_dupv2df): New expander.
9837
9838 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
9839
9840         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
9841
9842 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
9843
9844         * config/i386/i386.md: Use default value in "isa" attribute.
9845         * config/i386/sse.md: Ditto.
9846         * config/i386/mmx.md: Ditto.
9847
9848 2011-06-10  Wei Guozhi  <carrot@google.com>
9849
9850         PR target/45335
9851         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
9852         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
9853         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
9854         related peephole2.
9855         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
9856         related peephole2.
9857         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
9858         (arm_legitimate_ldrd_p): New prototype.
9859         (arm_output_ldrd): New prototype.
9860         * config/arm/arm.c (arm_check_ldrd_operands): New function.
9861         (arm_legitimate_ldrd_p): New function.
9862         (arm_output_ldrd): New function.
9863
9864 2011-06-10  David Li  <davidxl@google.com>
9865
9866         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
9867         * passes.c (passr_eq): New function.
9868         (create_pass_tab): New function.
9869         (pass_traverse): New function.
9870         (dump_one_pass): New function.
9871         (dump_pass_list): New function.
9872         (dump_passes): New function.
9873
9874 2011-06-10  Jan Hubicka  <jh@suse.cz>
9875
9876         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
9877         setting the nothrow flag.
9878         * ipa-reference.c (propagate): Skip aliases.
9879         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
9880         (propagate_nothrow): Skip aliases; do not update cgraph.
9881         (local_pure_const): Do not update cgraph.
9882         * tree-profile.c (tree_profiling): Do fixup_cfg.
9883
9884 2011-06-10  Jan Hubicka  <jh@suse.cz>
9885
9886         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
9887         (cgraph_local_node_p): ... here; handle aliases.
9888         (has_addr_references_p): Break out from ...;
9889         (cgraph_remove_unreachable_nodes) ... here.
9890
9891 2011-06-10  Jan Hubicka  <jh@suse.cz>
9892
9893         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9894         * common.opt (flag_inline_functions_called_once): Do not
9895         initialize to 1.
9896
9897 2011-06-10  Jan Hubicka  <jh@suse.cz>
9898
9899         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9900         (ipcp_initialize_node_lattices): Do not deal with aliases;
9901         Do not try to propagate through thunks.
9902         (ipcp_change_tops_to_bottom): Do not deal with aliases.
9903
9904 2011-06-10  Jan Hubicka  <jh@suse.cz>
9905
9906         * ipa-prop.c (ipa_write_node_info): Stream jump functions
9907         for indirect calls.
9908         (ipa_read_node_info): Likewise.
9909
9910 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9911
9912         PR lto/49302
9913         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
9914         (build_and_insert_call): Likewise.
9915         (build_and_insert_ref): New.
9916         (gimple_expand_builtin_pow): Minor cleanup.
9917         (gimple_expand_builtin_cabs): New.
9918         (execute_cse_sincos): Add case for BUILT_IN_CABS.
9919
9920 2011-06-10  Jan Hubicka  <jh@suse.cz>
9921
9922         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
9923         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
9924         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
9925         (ipcp_propagate_stage): Skip aliases when propagating.
9926         (ipcp_need_redirect_p): Skip aliases.
9927         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
9928         collect_callers_of_node.
9929         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
9930         for aliases.
9931         (ipa_compute_jump_functions): Look through aliases.
9932
9933 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9934
9935         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
9936
9937 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
9938
9939         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
9940         Adjust comments.
9941         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
9942
9943 2011-06-10  Jan Hubicka  <jh@suse.cz>
9944
9945         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
9946         Update call of gimple_get_virt_method_for_binfo.
9947         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
9948         refuse_thunks parameter.
9949         (gimple_fold_call): Update.
9950         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
9951
9952 2011-06-10  Jan Hubicka  <jh@suse.cz>
9953
9954         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
9955         (not_all_callers_have_enough_arguments_p): ... this one; turn into
9956         worker for cgraph_for_node_and_aliases.
9957         (convert_callers_for_node): Break out from ...
9958         (convert_callers): ... here.
9959         (modify_function): Use collect_callers_of_node.
9960         (ipa_early_sra): Use cgraph_for_node_and_aliases.
9961
9962 2011-06-10  Richard Guenther  <rguenther@suse.de>
9963
9964         PR tree-optimization/49361
9965         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
9966         when not already in gimple form.
9967
9968 2011-06-10  Richard Guenther  <rguenther@suse.de>
9969
9970         PR bootstrap/49344
9971         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
9972         FOR_EACH_PHI_OR_STMT_USE.
9973
9974 2011-06-10  Jan Hubicka  <jh@suse.cz>
9975
9976         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
9977         (clone_inlined_nodes): ... here.
9978         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
9979         to real destination prior inlining.
9980         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
9981         can_early_inline_edge_p, want_early_inline_function_p,
9982         want_early_inline_function_p, want_inline_small_function_p,
9983         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
9984         edge_badness, update_all_callee_keys, lookup_recursive_calls,
9985         add_new_edges_to_heap, inline_small_functions, flatten_function,
9986         inline_always_inline_functions, early_inline_small_functions): Use
9987         cgraph_function_or_thunk_node.
9988         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
9989         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
9990         (do_estimate_edge_growth_1): Break out from ...
9991         (do_estimate_growth) ... here; walk aliases.
9992         (inline_generate_summary): Skip aliases.
9993
9994 2011-06-10  Richard Guenther  <rguenther@suse.de>
9995
9996         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
9997         forward when combining, visit inserted stmts when a stmt was changed.
9998
9999 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
10000
10001         * tree.h (error_operand_p): Add.
10002         * dbxout.c (dbxout_type_fields): Use the latter.
10003         * c-decl.c (add_stmt): Likewise.
10004         * gimplify.c (omp_add_variable, omp_notice_variable,
10005         gimplify_scan_omp_clauses): Likewise.
10006
10007 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
10008
10009         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
10010         when a value is actually passed in regs.
10011
10012 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
10013             Laurent Rougé  <laurent.rouge@menta.fr>
10014
10015         * doc/invoke.texi (SPARC options): Add -mflat.
10016         * config/sparc/sparc.opt: Likewise.
10017         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
10018         (sparc_flat_expand_prologue): Declare.
10019         (sparc_flat_expand_epilogue): Likewise.
10020         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
10021         (CPP_ENDIAN_SPEC): Replace with...
10022         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
10023         (CPP_SPEC): Adjust to above change.
10024         (EXTRA_SPECS): Likewise.
10025         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
10026         (INCOMING_REGNO): Likewise.
10027         (OUTGOING_REGNO): Likewise.
10028         (LOCAL_REGNO): Likewise.
10029         (SETUP_FRAME_ADDRESSES): Likewise.
10030         (FIXED_REGISTERS): Set 0 for %fp.
10031         (CALL_USED_REGISTERS): Likewise.
10032         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
10033         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
10034         (RETURN_ADDR_REGNUM): Define.
10035         (RETURN_ADDR_RTX): Use it.
10036         (INCOMING_RETURN_ADDR_REGNUM): Define.
10037         (INCOMING_RETURN_ADDR_RTX): Use it.
10038         (DWARF_FRAME_RETURN_COLUMN): Likewise.
10039         (EH_RETURN_REGNUM): Define.
10040         (EH_RETURN_STACKADJ_RTX): Use it.
10041         (EH_RETURN_HANDLER_RTX): Delete.
10042         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
10043         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
10044         Delete.
10045         (struct machine_function): Add frame_size, apparent_frame_size,
10046         frame_base_reg, frame_base_offset, n_global_fp_regs and
10047         save_local_in_regs_p fields.
10048         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
10049         sparc_frame_base_offset, sparc_n_global_fp_regs,
10050         sparc_save_local_in_regs_p): New macros.
10051         (sparc_option_override): Error out if -fcall-saved-REG is specified
10052         for Out registers.
10053         (eligible_for_restore_insn): Fix formatting.
10054         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
10055         (eligible_for_sibcall_delay): Likewise.
10056         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
10057         (sparc_legitimate_address_p): Adjust to above change.
10058         (save_global_or_fp_reg_p): New predicate.
10059         (return_addr_reg_needed_p): Likewise.
10060         (save_local_or_in_reg_p): Likewise.
10061         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
10062         (SORR_SAVE, SORR_RESTORE): Delete.
10063         (sorr_pred_t): New typedef.
10064         (sorr_act_t): New enum.
10065         (save_or_restore_regs): Rename to...
10066         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
10067         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
10068         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
10069         mechanism.  Add CFI information for double-word saves in 32-bit mode.
10070         (emit_adjust_base_to_offset): New function extracted from...
10071         (emit_save_or_restore_regs): ...this.  Rename the rest to...
10072         (emit_save_or_restore_regs_global_fp_regs): ...this.
10073         (emit_save_or_restore_regs_local_in_regs): New function.
10074         (gen_create_flat_frame_[123]): New functions.
10075         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
10076         (sparc_flat_expand_prologue): New function.
10077         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
10078         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
10079         (sparc_flat_expand_epilogue): New function.
10080         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
10081         (output_return): Likewise.
10082         (output_sibcall): Likewise.
10083         (sparc_output_mi_thunk): Likewise.
10084         (sparc_frame_pointer_required): Likewise.
10085         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
10086         function optimization.
10087         * config/sparc/sparc.md (flat): New attribute.
10088         (prologue): Add TARGET_FLAT handling.
10089         (save_register_window): Disable if TARGET_FLAT.
10090         (create_flat_frame_[123]): New patterns.
10091         (epilogue): Add TARGET_FLAT handling.
10092         (sibcall_epilogue): Likewise.
10093         (eh_return): New expander.
10094         (eh_return_internal): New insn and splitter.
10095         (return_internal): Add TARGET_FLAT handling.
10096         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
10097         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
10098         (nonlocal_goto): Add TARGET_FLAT handling.
10099         * config/sparc/t-elf: Add -mflat multilib.
10100         * config/sparc/t-leon: Likewise.
10101
10102 2011-06-10  Jan Hubicka  <jh@suse.cz>
10103
10104         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
10105         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
10106         (self_recursive_p): Use cgraph_function_node.
10107         (propagate_pure_const): Likewise.
10108         (propagate_nothrow): Likewise.
10109         * ipa-reference.c (ipa_reference_get_not_read_global): Use
10110         cgraph_function_node.
10111         (propagate_bits): Likewise.
10112         (propagate): Likewise.
10113
10114 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10115             Richard Earnshaw  <rearnsha@arm.com>
10116
10117         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
10118         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
10119         (*thumb2_movdi_vfp): Delete.
10120         (*arm_movdi_vfp_cortexa8): Delete.
10121         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
10122         (*movdi_vfp_cortexa8): Likewise.
10123
10124 2011-06-10  Richard Guenther  <rguenther@suse.de>
10125
10126         * stor-layout.c (initialize_sizetypes): Give names to all
10127         sizetype kinds.
10128
10129 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
10130
10131         PR tree-optimization/49318
10132         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
10133         irrelevant pattern statements.
10134
10135 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10136
10137         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
10138
10139         PR bootstrap/49354
10140         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
10141         to last assignment.
10142
10143 2011-06-09  Jan Hubicka  <jh@suse.cz>
10144
10145         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
10146         do not recompute reachable flag.
10147         (cgraph_finalize_function, cgraph_analyze_functions): Set
10148         redefined_extern_inline here.
10149
10150 2011-06-09  Jan Hubicka  <jh@suse.cz>
10151
10152         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
10153         (cgraph_only_called_directly_p): ... this one; bring offline.
10154         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
10155         varpool_used_from_object_file_p): Drop names from the declaratoin.
10156         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
10157         collect_callers_of_node): New.
10158         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
10159         (cgraph_edge_recursive_p): Use cgraph_function_node.
10160         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
10161         (cgraph_node_cannot_be_local_p_1): Break out from ...
10162         (cgraph_node_can_be_local_p): ... here; walk aliases.
10163         (cgraph_for_node_thunks_and_aliases): New function.
10164         (cgraph_for_node_and_aliases): New function.
10165         (cgraph_make_node_local_1): Break out from ...
10166         (cgraph_make_node_local) ... here; use
10167         cgraph_for_node_thunks_and_aliases.
10168         (cgraph_set_nothrow_flag_1): Break out from ...
10169         (cgraph_set_nothrow_flag) ... here;
10170         use cgraph_for_node_thunks_and_aliases.
10171         (cgraph_set_const_flag_1): Break out from ...
10172         (cgraph_set_const_flag) ... here;
10173         use cgraph_for_node_thunks_and_aliases.
10174         (cgraph_set_pure_flag_1): Break out from ...
10175         (cgraph_set_pure_flag) ... here;
10176         use cgraph_for_node_thunks_and_aliases.
10177         (cgraph_propagate_frequency_1): Break out from ...
10178         (cgraph_propagate_frequency) ... here; use
10179         cgraph_for_node_thunks_and_aliases.
10180         (cgraph_used_from_object_file_p): Do not care about aliases.
10181         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
10182         New functions.
10183         (collect_callers_of_node_1, collect_callers_of_node): New functions.
10184
10185 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10186
10187         PR rtl-optimization/49154
10188         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
10189         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
10190         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
10191         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
10192         * config/cris/cris.h (cris_register_move_cost): Remove
10193         !TARGET_V32 code.  Tweak comments.
10194
10195 2011-06-09  Jan Hubicka  <jh@suse.cz>
10196
10197         * cgraphbuild.c (record_eh_tables): Mark personality function as having
10198         address taken.
10199
10200 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10201
10202         PR rtl-optimization/49154
10203         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
10204         is a matching slot in the hashtable, assign it to classes_ptr.
10205
10206         PR rtl-optimization/49154
10207         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
10208         register classes.
10209         * doc/tm.texi: Regenerate.
10210
10211 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
10212
10213         PR target/49307
10214         * config/sh/sh.md (UNSPEC_CHKADD): New.
10215         (chk_guard_add): New define_insn_and_split.
10216         (symGOT_load): Use chk_guard_add instead of blockage.
10217
10218 2011-06-09  Kai Tietz  <ktietz@redhat.com>
10219
10220         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
10221
10222 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
10223
10224         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
10225
10226 2011-06-09  Wei Guozhi  <carrot@google.com>
10227
10228         PR target/46975
10229         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
10230         (peephole2 for conditional move): Generate 16 bit instructions.
10231
10232 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
10233
10234         * config/i386/i386.md (*movdi_internal_rex64): Merge
10235         alternatives 6 and 8.
10236
10237 2011-06-09  David Li  <davidxl@google.com>
10238
10239         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
10240         * passes.c (passr_eq): New function.
10241         (create_pass_tab): New function.
10242         (pass_traverse): New function.
10243         (dump_one_pass): New function.
10244         (dump_pass_list): New function.
10245         (dump_passes): New function.
10246
10247 2011-06-09  David Li  <davidxl@google.com>
10248
10249         * tree-complex.c (tree_lower_complex): Gate cleanup.
10250         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
10251         (execute_optimize_stdarg): Ditto.
10252         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
10253         (execute_cleanup_eh_1): Ditto.
10254         (execute_cleanup_eh): Ditto.
10255         * gcse.c (gate_rtl_pre): Ditto.
10256         (execute_rtl_pre): Ditto.
10257         * except.c (finish_eh_generation): Ditto.
10258         (convert_to_eh_region_ranges): Ditto.
10259         * cprop.c (one_cprop_pass): Ditto.
10260
10261 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
10262
10263         PR target/48673
10264         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
10265         in all basic blocks.
10266
10267 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10268
10269         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
10270         (HAVE_ENABLE_EXECUTE_STACK): Define.
10271         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
10272         (HAVE_ENABLE_EXECUTE_STACK): Define.
10273         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
10274         (HAVE_ENABLE_EXECUTE_STACK): Define.
10275         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
10276         (ENABLE_EXECUTE_STACK): Remove.
10277         (HAVE_ENABLE_EXECUTE_STACK): Define.
10278         [IN_LIBGCC2]: Don't include <windows.h>.
10279         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
10280         (HAVE_ENABLE_EXECUTE_STACK): Define.
10281         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
10282         (HAVE_ENABLE_EXECUTE_STACK): Define.
10283         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
10284         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
10285         (HAVE_ENABLE_EXECUTE_STACK): Define.
10286         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
10287         (HAVE_ENABLE_EXECUTE_STACK): Define.
10288         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
10289         (HAVE_ENABLE_EXECUTE_STACK): Define.
10290         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
10291         (HAVE_ENABLE_EXECUTE_STACK): Define.
10292         * config/alpha/alpha.c (alpha_trampoline_init): Test
10293         HAVE_ENABLE_EXECUTE_STACK.
10294         * config/i386/i386.c (ix86_trampoline_init): Likewise.
10295         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10296         (sparc64_initialize_trampoline): Likewise.
10297         * libgcc2.c [L_enable_execute_stack]: Remove.
10298         * system.h (ENABLE_EXECUTE_STACK): Poison.
10299         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
10300         * doc/tm.texi: Regenerate.
10301         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
10302
10303 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
10304
10305         PR middle-end/49308
10306         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
10307         variable.  After resetting and rescanning insn continue with previous
10308         statement.
10309
10310 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10311
10312         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
10313         (gcc_cv_ld_hidden): Likewise.
10314         * configure: Regenerate.
10315         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
10316         (ix86_stack_protect_fail): Mark unused.
10317         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
10318         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
10319         [TARGET_MACHO]: Don't define.
10320         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
10321         (TARGET_STACK_PROTECT_FAIL): Likewise.
10322         (rs6000_stack_protect_fail): Mark unused.
10323         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
10324         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
10325
10326 2011-06-08  Andi Kleen  <ak@linux.intel.com>
10327
10328         * varasm.c (get_section): Print location of other conflict
10329         for section conflicts.
10330
10331 2011-06-08  Andi Kleen  <ak@linux.intel.com>
10332
10333         * config/i386/driver-i386.c (host_detect_local_cpu):
10334         Add model 0x2d Intel CPU.
10335
10336 2011-06-08  Andi Kleen  <ak@linux.intel.com>
10337
10338         * reginfo.c (global_regs_decl): Add.
10339         (globalize_reg): Add decl parameter. Compute location.  Pass location
10340         to warnings and add inform. Store decl in global_regs_decl.
10341         * rtl.h (globalize_reg): Update prototype.
10342         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
10343
10344 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
10345
10346         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
10347
10348 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
10349
10350         PR target/49305
10351         * config/sh/predicates.md (general_movsrc_operand): Check
10352         mode for memory with indexed address for QI and HImode.
10353         (general_movdst_operand): Likewise.
10354
10355 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
10356
10357         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
10358
10359 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
10360
10361         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
10362         (num_ssa_operands): Likewise.
10363         (op_iter_init_phiuse): Forward-declare.
10364         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
10365
10366 2011-06-08  Nick Clifton  <nickc@redhat.com>
10367
10368         * doc/invoke.texi (ARM Options): Update description of
10369         -mthumb-interwork.
10370
10371 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
10372
10373         * config/i386/driver-i386.c (host_detect_local_cpu): Support
10374         unknown Intel family 0x6 CPUs.
10375
10376 2011-06-08  Martin Jambor  <mjambor@suse.cz>
10377
10378         * tree-sra.c (mark_rw_status): Removed.
10379         (analyze_access_subtree): New parameter parent instead of
10380         mark_read and mark_write, propagate from that.
10381
10382 2011-06-08  Julian Brown  <julian@codesourcery.com>
10383
10384         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
10385         for double-precision helper functions in hard-float mode if only
10386         single-precision arithmetic is supported in hardware.
10387
10388 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
10389
10390         PR rtl-optimization/49303
10391         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
10392         code_motion_path_driver returned 0 or 1.
10393         (sel_region_finish): Clear h_d_i_d.
10394
10395 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
10396
10397         * config/sh/sh.c (prepare_move_operands): Set pic register
10398         appropriately for global and local dynamic tls models even
10399         if flag_pic is unset.
10400
10401 2011-06-07  Jason Merrill  <jason@redhat.com>
10402
10403         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
10404
10405 2011-06-07  Xinliang David Li  <davidxl@google.com>
10406         * passes.c (enable_disable_pass): Handle assembler name.
10407         (is_pass_explicitly_enabled_or_disabled): Ditto.
10408
10409 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10410
10411         PR tree-optimization/48497
10412         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
10413
10414 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10415
10416         PR tree-optimization/46728
10417         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
10418         to use gimple_val_nonnegative_real_p.
10419         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
10420         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
10421
10422 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
10423
10424         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
10425
10426 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
10427
10428         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
10429         constant vectors.
10430
10431 2011-06-07  Richard Guenther  <rguenther@suse.de>
10432
10433         * stor-layout.c (initialize_sizetypes): Initialize all
10434         sizetypes based on target definitions.
10435         (set_sizetype): Remove.
10436         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
10437         * tree.h (set_sizetype): Remove.
10438
10439 2011-06-07  Nick Clifton  <nickc@redhat.com>
10440
10441         * config.gcc: Unify V850 architecture options and add support for
10442         newer V850 architectures.
10443         * config/v850/t-v850e: Delete.
10444
10445 2011-06-07  Richard Guenther  <rguenther@suse.de>
10446
10447         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
10448         Call set_sizetype from here.
10449
10450 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
10451
10452         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
10453         (*maddhisi4tb, *maddhisi4tt): New define_insns.
10454
10455 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
10456             Andrew Stubbs  <ams@codesourcery.com>
10457
10458         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
10459         multiplies.
10460         * doc/md.texi (Canonicalization of Instructions): Document widening
10461         multiply canonicalization.
10462
10463 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
10464
10465         PR gcov-profile/49299
10466         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
10467
10468 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
10469
10470         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
10471         a pointer.
10472         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
10473         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
10474         vect_recog_pow_pattern): Likewise.
10475         (vect_pattern_recog_1): Remove declaration.
10476         (widened_name_p): Remove declaration.  Add new argument to specify
10477         whether to check that both types are either signed or unsigned.
10478         (vect_recog_widen_mult_pattern): Update documentation.  Handle
10479         unsigned patterns and multiplication by constants.
10480         (vect_pattern_recog_1): Update vect_recog_func references.  Use
10481         statement information from the statement returned from pattern
10482         detection functions.
10483         (vect_pattern_recog): Update vect_recog_func reference.
10484         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
10485         multiplication by a constant use the type of the other operand.
10486
10487 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
10488
10489         PR rtl-optimization/49145
10490         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
10491
10492 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
10493
10494         PR debug/49262
10495         * dwarf2out.c (native_encode_initializer): Decrement count in each
10496         iteration.
10497
10498         PR debug/49294
10499         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
10500         non-MODE_INT modes.
10501
10502         PR c++/49264
10503         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
10504         if stmt folded into nothing.
10505         * tree-inline.c (fold_marked_statements): If a builtin at the end of
10506         a bb folded into nothing, just update cgraph edges and move to next bb.
10507         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
10508         to be NULL.  Don't compute count and frequency if new_call is NULL.
10509
10510 2011-06-04  Diego Novillo  <dnovillo@google.com>
10511
10512         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
10513         (cgraph.o): Likewise.
10514         (cgraphunit.o): Likewise.
10515         * cgraphunit.c: Include lto-streamer.h
10516         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
10517         if LTO is enabled.
10518         * lto-streamer-in.c (unpack_value_fields): Call
10519         streamer_hooks.unpack_value_fields if set.
10520         (lto_materialize_tree): For unhandled nodes, first try to
10521         call lto_streamer_hooks.alloc_tree, if it exists.
10522         (lto_input_ts_decl_common_tree_pointers): Move reading of
10523         DECL_INITIAL to lto_streamer_read_tree.
10524         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
10525         (lto_streamer_read_tree): New.
10526         (lto_reader_init): Rename from lto_init_reader.
10527         Move initialization code to lto/lto.c.
10528         * lto-streamer-out.c (pack_value_fields): Call
10529         streamer_hooks.pack_value_fields if set.
10530         (lto_output_tree_ref): For tree nodes that are not normally indexable,
10531         call streamer_hooks.indexable_with_decls_p before giving up.
10532         (lto_output_ts_decl_common_tree_pointers): Move handling
10533         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
10534         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
10535         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
10536         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
10537         (lto_streamer_write_tree): New.
10538         (lto_output): Call lto_streamer_init directly.
10539         (lto_writer_init): Remove.
10540         * lto-streamer.c (streamer_hooks): New.
10541         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
10542         instead of lto_preload_common_nodes.
10543         (lto_is_streamable): Move from lto-streamer.h
10544         (lto_streamer_hooks_init): New.
10545         (streamer_hooks): New.
10546         (streamer_hooks_init): New.
10547         * lto-streamer.h (struct output_block): Forward declare.
10548         (struct lto_input_block): Likewise.
10549         (struct data_in): Likewise.
10550         (struct bitpack_d): Likewise.
10551         (struct streamer_hooks): Declare.
10552         (streamer_hooks): Declare.
10553         (lto_streamer_hooks_init): Declare.
10554         (lto_streamer_write_tree): Declare.
10555         (lto_streamer_read_tree): Declare.
10556         (streamer_hooks_init): Declare.
10557         (lto_is_streamable): Move to lto-streamer.c
10558
10559 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10560
10561         * longlong.h (smul_ppmm): The resulting register pair contains the
10562         higher order word first.
10563
10564 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10565
10566         PR tree-optimization/46728
10567         * builtins.c (powi_table): Remove.
10568         (powi_lookup_cost): Remove.
10569         (powi_cost): Remove.
10570         (expand_powi_1): Remove.
10571         (expand_powi): Remove.
10572         (expand_builtin_pow_root): Remove.
10573         (expand_builtin_pow): Remove.
10574         (expand_builtin_powi): Eliminate handling of constant exponent.
10575         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
10576
10577 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10578
10579         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
10580
10581 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10582
10583         * dce.c (reset_unmarked_insns_debug_uses): New.
10584         (delete_unmarked_insns): Skip debug insns.
10585         (prescan_insns_for_dce): Likewise.
10586         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
10587         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
10588         active reg can be found.
10589         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
10590         (convert_regs_1): Use it.
10591
10592 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10593
10594         * tree-pretty-print.c (dump_function_header): Add flags.
10595         Don't dump decl_uid with nouid.
10596         * tree-pretty-print.h (dump_function_header): Adjust.
10597         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
10598         * passes.c (pass_init_dump_file): Pass dump_flags on.
10599         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
10600
10601 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10602
10603         PR bootstrap/49270
10604         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
10605
10606 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
10607
10608         PR tree-optimization/49243
10609         * calls.c (setjmp_call_p): Also check if fndecl has the
10610         returns_twice attribute.
10611
10612 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10613
10614         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
10615         -ffast-math etc.
10616
10617 2011-06-06  Richard Henderson  <rth@redhat.com>
10618             Georg-Johann Lay  <avr@gjlay.de>
10619
10620         PR target/42210
10621         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
10622         New predicates.
10623         * config/avr/avr.md ("insv"): New insn expander.
10624         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
10625         "*insv.not.io", "*insv.reg"): New insns.
10626
10627 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
10628
10629         PR target/49285
10630         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
10631         to nonimmediate_operand from memory_operand for the operand that is to
10632         be forced to memory by the expander.  Lose the constraints.
10633
10634 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
10635
10636         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
10637         EH return when delayed branches are disabled.
10638
10639 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
10640
10641         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
10642         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
10643         calculation.
10644         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
10645         Simplify MODE_V1DF and MODE_V2SF handling.
10646         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
10647         Simplify MODE_SF handling.
10648
10649 2011-06-04  Jan Hubicka  <jh@suse.cz>
10650
10651         PR tree-optimization/48893
10652         PR tree-optimization/49091
10653         PR tree-optimization/49179
10654         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
10655         Bounds check.
10656
10657 2011-06-04  Jan Hubicka  <jh@suse.cz>
10658
10659         PR lto/48954
10660         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
10661         bitmaps.
10662
10663 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
10664
10665         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
10666
10667 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
10668
10669         PR target/49281
10670         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
10671         to be strictly smaller than 1 << shiftcount.
10672
10673 2011-06-04  Jan Hubicka  <jh@suse.cz>
10674
10675         PR tree-optimize/48929
10676         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
10677         of empty predicate.
10678
10679 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
10680
10681         PR debug/48333
10682         * calls.c (emit_call_1): Prefer the __builtin declaration of
10683         builtin functions.
10684
10685 2011-06-03   Diego Novillo  <dnovillo@google.com>
10686
10687         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
10688         (lto_input_tree_pointers): Likewise.
10689         * lto-streamer-out.c (pack_value_fields): Likewise.
10690         (lto_output_tree_pointers): Likewise.
10691         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
10692         and OPTIMIZATION_NODE.
10693
10694 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10695
10696         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
10697         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
10698         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
10699         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
10700         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
10701         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
10702         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
10703         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
10704         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
10705         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
10706         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
10707         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
10708         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
10709         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
10710         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
10711         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
10712         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
10713         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
10714         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
10715         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
10716         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
10717         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
10718         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
10719         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
10720         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
10721         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
10722         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
10723         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
10724         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
10725         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
10726         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
10727         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
10728         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
10729         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
10730         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
10731         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
10732         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
10733         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
10734         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
10735         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
10736         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
10737         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
10738         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
10739         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
10740         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
10741         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
10742         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
10743         * system.h (MD_UNWIND_SUPPORT): Poison.
10744         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
10745         * doc/tm.texi: Regenerate.
10746         * unwind-dw2.c: Include md-unwind-support.h instead of
10747         MD_UNWIND_SUPPORT.
10748         * config/ia64/unwind-ia64.c: Likewise.
10749         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
10750
10751 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
10752
10753         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
10754
10755 2011-06-03  Richard Henderson  <rth@redhat.com>
10756             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10757
10758         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
10759         (sigill_hdlr): Correct insn, insn size.
10760         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
10761
10762 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10763
10764         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
10765         t-slibgcc-dummy.
10766         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
10767         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
10768         * config/mips/t-iris: Remove.
10769         * config/mips/t-irix6: New file.
10770         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
10771
10772 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10773
10774         * Makefile.in (LIB2ADDEHDEP): Remove.
10775         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
10776         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
10777         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
10778         * config/t-darwin (LIB2ADDEHDEP): Remove.
10779         * config/t-freebsd (LIB2ADDEHDEP): Remove.
10780         * config/t-linux (LIB2ADDEHDEP): Remove.
10781
10782 2011-06-03  Diego Novillo  <dnovillo@google.com>
10783
10784         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
10785         (lto_register_var_decl_in_symtab): Likewise.
10786         (lto_register_function_decl_in_symtab): Likewise.
10787         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
10788         logic to uniquify_nodes.
10789
10790 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10791
10792         * config/alpha/t-osf5: Remove.
10793         * config/alpha/t-osf-pthread: Remove.
10794         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
10795         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
10796
10797 2011-06-03  Julian Brown  <julian@codesourcery.com>
10798
10799         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
10800         (strongarm1110): Use strongarm tuning.
10801         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
10802         * config/arm/arm.c (arm_strongarm_tune): New.
10803         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
10804         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
10805         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
10806         setting, using previous defaults or 1 for Cortex-A5.
10807         (arm_option_override): Set max_insns_skipped from current tuning.
10808
10809 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
10810
10811         * doc/install.texi (Options specification): Document --with-specs.
10812
10813 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10814
10815         * config/arm/neon.md (orndi3_neon): Actually split it.
10816
10817 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
10818
10819         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
10820         * var-tracking.c (reverse_op): Limite recurse depth to 5.
10821
10822 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
10823
10824         PR debug/47590
10825         * target.def (delay_sched2, delay_vartrack): New.
10826         * doc/tm.texi.in: Update.
10827         * doc/tm.texi: Rebuild.
10828         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
10829         * var-tracking.c (gate_handle_var_tracking): Likewise.
10830         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
10831         (bfin_flag_var_tracking): Drop.
10832         (output_file_start): Don't save and override flag_var_tracking.
10833         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
10834         (bfin_reorg): Test original variables.
10835         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
10836         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
10837         (ia64_flag_var_tracking): Drop.
10838         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
10839         (ia64_file_start): Don't save and override flag_var_tracking.
10840         (ia64_override_options_after_change): Ditto
10841         flag_schedule_insns_after_reload.
10842         (ia64_reorg): Test original variables.
10843         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
10844         (picochip_flag_var_tracking): Drop.
10845         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
10846         (picochip_option_override): Don't save and override
10847         flag_schedule_insns_after_reload.
10848         (picochip_asm_file_start): Ditto flag_var_tracking.
10849         (picochip_reorg): Test original variables.
10850         * config/spu/spu.c (spu_flag_var_tracking): Drop.
10851         (TARGET_DELAY_VARTRACK): Define.
10852         (spu_var_tracking): New.
10853         (spu_machine_dependent_reorg): Call it.
10854         (asm_file_start): Don't save and override flag_var_tracking.
10855
10856 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
10857
10858         PR target/49163
10859         * config/sh/predicates.md (general_movsrc_operand): Return 0
10860         for memory and memory subreg of which address is an invalid
10861         indexed address for QI and HImode.
10862         (general_movdst_operand): Likewise.
10863
10864 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
10865
10866         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
10867         edges only, when there is a non-local label in the function.
10868         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
10869
10870 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
10871
10872         * config/i386/constraints.md (Y3): New register constraint.
10873         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
10874         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
10875         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
10876         *sse2_interleave_lowv2df.
10877
10878 2011-06-02  Julian Brown  <julian@codesourcery.com>
10879
10880         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
10881         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
10882         (arm_cortex_a5_tune): New.
10883
10884 2011-06-02  Julian Brown  <julian@codesourcery.com>
10885
10886         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
10887         * config/arm/arm.c (arm_default_branch_cost): New.
10888         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
10889         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
10890         (arm_fa726_tune): Set branch_cost field using
10891         arm_default_branch_cost.
10892         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
10893         current_tune structure.
10894         * dojump.c (tm_p.h): Include file.
10895
10896 2011-06-02  Julian Brown  <julian@codesourcery.com>
10897
10898         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
10899         tuning.
10900         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
10901         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
10902         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
10903         field.
10904         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
10905         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
10906         (arm_fa726te_tune): Add prefer_constant_pool setting.
10907         (arm_v6t2_tune, arm_cortex_tune): New.
10908         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
10909         prefer_constant_pool setting.
10910
10911 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
10912
10913         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
10914         switch statement.
10915         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
10916         (*movdf_internal) <case 6,7,8>: Ditto.
10917
10918         * config/i386/constraints.md (Y4): New register constraint.
10919         * config/i386/sse.md (vec_set<mode>_0): Merge with
10920         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
10921         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
10922         *vec_extractv2di_1_sse.
10923         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
10924         and *vec_concatv2di_rex64_sse.
10925
10926 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
10927
10928         PR target/48807
10929         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
10930         of cgraph_local_info for null before attempting to use it.
10931
10932 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
10933
10934         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
10935         (current_function_dynamic_alloc_count): Delete.
10936         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
10937         (expand_builtin_nonlocal_goto): Remove obsolete comment.
10938         (expand_builtin_update_setjmp_buf): Remove dead code.
10939         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
10940         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
10941         support.
10942         * function.c (instantiate_virtual_regs): Likewise.
10943         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
10944         for a block with a single abnormal incoming edge.
10945         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
10946         (SETJMP_VIA_SAVE_AREA): Delete.
10947         * config/sparc/sparc-protos.h (load_got_register): Declare.
10948         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
10949         (load_got_register): Make global.
10950         (sparc_frame_pointer_required): Add 'static'.
10951         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
10952         (sparc_builtin_setjmp_frame_value): New function.
10953         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
10954         (save_stack_nonlocal): New expander.
10955         (restore_stack_nonlocal): Likewise.
10956         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
10957         (nonlocal_goto_internal): New insn.
10958         (goto_handler_and_restore): Delete.
10959         (builtin_setjmp_setup): Likewise.
10960         (do_builtin_setjmp_setup): Likewise.
10961         (setjmp): Likewise.
10962         (builtin_setjmp_receiver): New expander.
10963
10964 2011-06-01  David Li  <davidxl@google.com>
10965
10966         PR middle-end/49261
10967         * tree-pretty-print.c (dump_function_header): Format cleanup.
10968
10969 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
10970
10971         PR target/49238
10972         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
10973         needed when original operands are used for msw_skip comparison.
10974
10975 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
10976
10977         PR debug/49250
10978         * var-tracking.c (add_uses, add_stores): Don't call
10979         cselib_subst_to_values on ENTRY_VALUE.
10980
10981 2011-06-01  Diego Novillo  <dnovillo@google.com>
10982
10983         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
10984         output_record_start with LTO_null instead of output_zero.
10985         (lto_output_ts_binfo_tree_pointers): Likewise.
10986         (lto_output_tree): Likewise.
10987         (output_eh_try_list): Likewise.
10988         (output_eh_region): Likewise.
10989         (output_eh_lp): Likewise.
10990         (output_eh_regions): Likewise.
10991         (output_bb): Likewise.
10992         (output_function): Likewise.
10993         (output_unreferenced_globals): Likewise.
10994         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
10995         instead of NUM_TREE_CODES.
10996         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
10997         (lto_output_int_in_range): Change << to >> when shifting VAL.
10998
10999 2011-06-01  Diego Novillo  <dnovillo@google.com>
11000
11001         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
11002         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
11003
11004 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11005
11006         PR target/45074
11007         * optabs.h (valid_multiword_target_p): Declare.
11008         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
11009         doing multi-word operations.
11010         * optabs.c (expand_binop): Likewise.
11011         (expand_doubleword_bswap): Likewise.
11012         (expand_absneg_bit): Likewise.
11013         (expand_unop): Likewise.
11014         (expand_copysign_bit): Likewise.
11015         (multiword_target_p): New function.
11016
11017 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11018
11019         PR rtl-optimization/48830
11020         PR rtl-optimization/48808
11021         PR rtl-optimization/48792
11022         * reload.c (push_reload): Check contains_reg_of_mode.
11023         * reload1.c (strip_paradoxical_subreg): New function.
11024         (gen_reload_chain_without_interm_reg_p): Use it to handle
11025         paradoxical subregs.
11026         (emit_output_reload_insns, gen_reload): Likewise.
11027
11028 2011-06-01  David Li  <davidxl@google.com>
11029
11030         * predict.c : Change pass name
11031         * ipa.c: Ditto.
11032         * dce.c: Ditto.
11033         * tree-profile.c: Ditto.
11034         * except.c: Ditto.
11035
11036 2011-06-01  David Li  <davidxl@google.com>
11037
11038         * tree-pretty-print.c (dump_function_header): New function.
11039         * final.c (rest_of_clean_state): Use header dumper.
11040         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
11041         * passes.c (pass_init_dump_file): Use header dumper.
11042
11043 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
11044
11045         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
11046         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
11047         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
11048         New functions.
11049         (mem_loc_descriptor): Use them.
11050
11051         * var-tracking.c (create_entry_value): New function.
11052         (vt_add_function_parameter): Use it.
11053
11054 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11055
11056         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
11057         Include <signal.h>, <ucontext.h>.
11058         (sigill_caught): Define.
11059         (sigill_hdlr): New function.
11060         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
11061         insns can be executed.
11062         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
11063         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
11064
11065 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11066
11067         * config/t-slibgcc-darwin: Move to ...
11068         * config/t-slibgcc-dummy: ... this.  Clarify comments.
11069         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
11070         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
11071         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
11072         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
11073         Remove i386/t-crtstuff from tmake_file.
11074         (i[34567]86-*-solaris2*): Remove t-svr4,
11075         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
11076         t-slibgcc-dummy.
11077         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
11078         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
11079         sparc/t-crtfm from tmake_file.
11080         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
11081         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
11082         Remove extra_parts.
11083         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
11084         * config/i386/t-nwld (SHLIB_LINK): Remove.
11085         * config/i386/t-rtems-i386: Rename to ...
11086         * config/i386/t-rtems: ... this.
11087         ($(T)crti.o, $(T)crtn.o): Remove.
11088         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
11089         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
11090         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
11091         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
11092         EXTRA_MULTILIB_PARTS): Remove.
11093         * config/sparc/t-sol2-64: Likewise.
11094         * config/sparc/t-sol2: Remove.
11095         * config/sparc/t-crtin: Remove.
11096         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
11097         * config/i386/gmon-sol2.c: Remove.
11098         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
11099         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
11100         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
11101         * config/i386/sol2-gc1.asm: Remove.
11102         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
11103         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
11104         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
11105         * config/t-slibgcc-sld: Remove.
11106
11107 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
11108
11109         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
11110         base_type_for_mode with op_mode instead of mode.
11111
11112 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
11113
11114         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
11115         Cortex-A15.
11116         * config/arm/arm-tune.md: Regenerate.
11117         * config/arm/arm-tables.opt: Regenerate.
11118         * config/arm/arm.c (FL_DIV): Rename...
11119         (FL_THUMB_DIV): ... to this.
11120         (FL_ARM_DIV): Define.
11121         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
11122         (arm_arch_hwdiv): Remove.
11123         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
11124         (arm_issue_rate): Add cortexr5.
11125         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
11126         __ARM_ARCH_EXT_IDIV__.
11127         (TARGET_IDIV): Define.
11128         (arm_arch_hwdiv): Remove.
11129         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
11130         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
11131         (divsi3, udivsi3): New patterns.
11132         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
11133         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
11134
11135 2011-06-01  Martin Jambor  <mjambor@suse.cz>
11136
11137         * ipa-utils.c (ipa_dfs_info): New field scc_no.
11138         * ipa-utils.c (searchc): Set scc_no.
11139
11140 2011-06-01  Martin Jambor  <mjambor@suse.cz>
11141
11142         * ipa-utils.c (searchc_env): New field allow_overwritable.
11143         (searchc): do not ignore edges to overwritable nodes if indicated
11144         by env->allow_overwritable.
11145         (ipa_reduced_postorder): Set env.allow_overwritable.
11146
11147 2011-06-01  Richard Guenther  <rguenther@suse.de>
11148
11149         * tree.c (free_lang_data): Do not reset boolean_type_node nor
11150         char_type_node.
11151         * lto-streamer.c (lto_record_common_node): Take node pointer,
11152         do not register types.
11153         (lto_preload_common_nodes): Explicitly skip preloading nodes
11154         that differ between frontends.
11155
11156 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
11157
11158         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
11159         NON_FLOAT_REGS.
11160
11161 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
11162
11163         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
11164         parameter value for dump. Dump cost on outermost call only.
11165         (rs6000_memory_move_cost): Dump cost on outermost call only.
11166
11167 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
11168
11169         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
11170         DW_OP_GNU_convert ops.
11171
11172         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
11173         cselib_preserve_constants.
11174         (cselib_lookup_1): If cselib_preserve_constants,
11175         a new VALUE is being created for REG and there is a VALUE for the
11176         same register in wider mode, add another loc with lowpart SUBREG of
11177         the wider VALUE.
11178         (cselib_subst_to_values): Handle ENTRY_VALUE.
11179         * var-tracking.c  (replace_expr_with_values): Return NULL for
11180         ENTRY_VALUE too.
11181         * dwarf2out.c (convert_descriptor_to_signed): New function.
11182         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
11183         instead of two shifts.
11184         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
11185         the right mode if needed.
11186         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
11187         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
11188         convert_descriptor_to_signed.
11189         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
11190         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
11191
11192         PR target/48688
11193         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
11194
11195 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11196
11197         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
11198         of X87MODEI12 and SWI48x instead of SSEMODEI24.
11199         (SWI248x): New mode iterator, rename from X87MODEI.
11200         (X87MODEI): Remove mode iterator.
11201         (X87MODEI12): Ditto.
11202         (SSEMODEI24): Ditto.
11203
11204 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11205
11206         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
11207         * doc/invoke.texi: Document max-vartrack-expr-depth.
11208         * var-tracking.c (EXPR_DEPTH): New.
11209         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
11210
11211 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11212
11213         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
11214         * config/i386/sse.md: Add n to negated FMA pattern names.
11215
11216 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11217
11218         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
11219
11220 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11221
11222         * gengtype-state.c (read_state_params_structs): Initialize previous.
11223
11224 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11225
11226         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
11227         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
11228
11229 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11230
11231         * config/i386/i386.md (*movtf_internal): Avoid allocating general
11232         registers.  Penalize F*r->o alternative to prevent partial memory
11233         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
11234         CONST_DOUBLE immediates when optimizing function for size.  Do not move
11235         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
11236         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
11237         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
11238         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
11239         alternatives.
11240         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
11241
11242         (fp_register_operand splitters): Use fp_register_operand
11243         constraint.  Do not use FP_REG_P in insn condition.
11244         (any_fp_register_operand splitters): Use any_fp_register_operand
11245         constraint.  Do not use ANY_FP_REG_P in insn condition.
11246
11247 2011-05-31  Jan Hubicka  <jh@suse.cz>
11248
11249         * cgraph.h (cgraph_inline_failed_t): Give enum a name
11250         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
11251         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
11252         (lto_output_edge): Use output_enum and var_len_unsigned.
11253         (lto_output_varpool_node): Likewise.
11254         (input_overwrite_node): Do not take resolution parameter;
11255         extract it from a bitpack.
11256         (input_node): Do not read resolution; use input_enum and
11257         var_len_unsigned.
11258         (input_varpool_node): Likewise.
11259         (input_edge): Likewise.
11260         (input_cgraph_1): Likewise.
11261
11262 2011-05-31  Richard Guenther  <rguenther@suse.de>
11263
11264         * gimple.c (gimple_register_canonical_type): Do not register
11265         any types via gimple_register_type.
11266
11267 2011-05-31  Jan Hubicka  <jh@suse.cz>
11268
11269         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
11270         of thunks.
11271
11272 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
11273
11274         PR rtl-optimization/49235
11275         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
11276         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
11277
11278 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
11279
11280         PR tree-optimization/49093
11281         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
11282         data references.
11283
11284 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
11285
11286         PR debug/49047
11287         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
11288         for concrete functions containing the code of cloned functions.
11289
11290 2011-05-31  Richard Guenther  <rguenther@suse.de>
11291
11292         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
11293         to ...
11294         (forward_propagate_into_comparison_1): ... this.
11295         (forward_propagate_comparison): Rename to ...
11296         (forward_propagate_into_comparison): ... this.  Split out
11297         real forward propagation code to ...
11298         (forward_propagate_comparison): ... this.
11299         (forward_propagate_into_gimple_cond): Remove looping.
11300         (forward_propagate_into_cond): Likewise.
11301         (simplify_not_neg_expr): Return whether we have done something.
11302         (simplify_gimple_switch): Likewise.
11303         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
11304         (ssa_forward_propagate_and_combine): ... this.  Re-structure
11305         to do a forward forward-propagation walk on BBs and a backward
11306         stmt combining walk on BBs.  Consistently re-scan changed statements.
11307         (pass_forwprop): Adjust.
11308
11309 2011-05-30  Ian Lance Taylor  <iant@google.com>
11310
11311         * godump.c (go_format_type): Correct length of name added to
11312         obstack for anonymous field.
11313
11314 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
11315
11316         PR target/49186
11317         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
11318         part of the second operand is 0.
11319
11320 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
11321
11322         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
11323         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
11324         to memory for !TARGET_MEMORY_MISMATCH_STALL.
11325         (*movdf_internal_rex64): Do not penalize F->r alternative.
11326         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
11327         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
11328         when optimizing function for size.  Do not move CONST_DOUBLEs
11329         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
11330         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
11331         SUBREGs.  Do not check for MEM_P operands in the insn condition,
11332         check for ANY_FP_REGNO_P instead.
11333         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
11334         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
11335         function for speed.
11336         * config/i386/i386.c (ix86_option_override_internal): Do not
11337         set TARGET_INTEGER_DFMODE_MOVES here.
11338
11339 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
11340
11341         PR target/49168
11342         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
11343
11344 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
11345
11346         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
11347         DW_TAG_rvalue_reference_type even for
11348         -gdwarf-4 -fno-debug-types-section.
11349
11350 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11351
11352         PR tree-optimization/46728
11353         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
11354         (build_and_insert_binop): New.
11355         (gimple_expand_builtin_pow): Reorder args for
11356         build_and_insert_call; use build_and_insert_binop; add more
11357         optimizations for fractional exponents.
11358
11359 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
11360
11361         PR bootstrap/49190
11362
11363         Revert:
11364         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11365
11366         * tree.h (struct tree_identifier): Inherit from tree_typed, not
11367         tree_common.
11368         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
11369         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
11370         TS_BASE instead of TS_COMMON.
11371         * varasm.c (assemble_name): Remove assert.
11372
11373 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
11374
11375         * config.gcc: Keep obselete list sorted.
11376
11377 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
11378             Eric Botcazou  <ebotcazou@adacore.com>
11379
11380         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
11381         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
11382         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
11383         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
11384         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
11385
11386 2011-05-30  Richard Guenther  <rguenther@suse.de>
11387
11388         * gimple.c (gimple_types_compatible_p_1): Compare record
11389         and union type members properly.
11390
11391 2011-05-30  Richard Guenther  <rguenther@suse.de>
11392
11393         PR tree-optimization/49210
11394         * ipa-split.c (split_function): Care for the case where the call
11395         result is not trivially convertible to the result holding variable.
11396
11397 2011-05-30  Richard Guenther  <rguenther@suse.de>
11398
11399         PR tree-optimization/49218
11400         * tree-vrp.c (adjust_range_with_scev): Properly check whether
11401         overflow occured.
11402
11403 2011-05-30  Richard Guenther  <rguenther@suse.de>
11404
11405         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
11406         New function split out from ...
11407         (forward_propagate_into_gimple_cond): ... here.  Adjust.
11408         (forward_propagate_into_cond): Likewise.
11409         (forward_propagate_comparison): Also propagate into
11410         comparisons on assignment RHS.  Change return value to
11411         behave similar to forward_propagate_into_cond.
11412         (tree_ssa_forward_propagate_single_use_vars): Handle
11413         strict-overflow warnings properly for forward_propagate_comparison.
11414
11415 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11416
11417         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
11418         from plugin linker.
11419         * configure: Regenerate.
11420
11421 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
11422
11423         PR tree-optimization/49199
11424         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
11425         non-reduction operands are either defined in the loop or by induction.
11426
11427 2011-05-29  Xinliang David Li  <davidxl@google.com>
11428
11429         * opts-global.c (handle_common_deferred_options): Handle new options.
11430         * passes.c (register_one_dump_file): Call register_pass_name.
11431         (execute_one_pass): Check explicit enable/disable flag.
11432         (passr_hash): New function.
11433         (passr_eq): Ditto.
11434         (register_pass_name): Ditto.
11435         (get_pass_by_name): Ditto.
11436         (pass_hash): Ditto.
11437         (pass_eq): Ditto.
11438         (enable_pass): Ditto.
11439         (disable_pass): Ditto.
11440         (is_pass_explicitly_enabled_or_disabled): Ditto.
11441
11442 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
11443
11444         * config/i386/i386.md (*movoi_internal_avx): Use
11445         standard_sse_constant_opcode for alternative 0.
11446         (*movti_internal_sse): Ditto.
11447         (*movti_internal_rex64): Use standard_sse_constant_opcode for
11448         alternative 2.
11449         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
11450         sselog1 type moves.
11451         (*movsi_internal): Ditto.
11452         (*movdi_internal): Ditto.  Add ssecvt type moves.
11453
11454 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
11455
11456         PR target/48830
11457         * rtlanal.c (simplify_subreg_regno): Adjust comment.
11458
11459 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
11460
11461         PR rtl-optimization/49095
11462         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
11463         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
11464
11465 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
11466
11467         PR target/43995
11468         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
11469         recurse_p argument.  Only follow register copies if it is set,
11470         and prevent mips_find_pic_call_symbol from recursing.
11471         (mips_find_pic_call_symbol): Add a recurse_p argument.
11472         Pass it to mips_pic_call_symbol_from_set.
11473         (mips_annotate_pic_calls): Update accordingly.
11474
11475 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
11476
11477         * emit-rtl.c (try_split): Use a loop to search for
11478         NOTE_INSN_CALL_ARG_LOCATIONs.
11479
11480 2011-05-29  Richard Guenther  <rguenther@suse.de>
11481
11482         PR tree-optimization/49217
11483         * ipa-pure-const.c (propagate_pure_const): Fix typos.
11484
11485 2011-05-28  Jan Hubicka  <jh@suse.cz>
11486
11487         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
11488         length.
11489         (string_slot_free): Remove
11490         (create_output_block): Initialize obstack.
11491         (destroy_output_block): Free obstack.
11492         (lto_string_index): Add PERSISTENT parameter; do not duplicate
11493         the string unless it needs to be added into the hash.
11494         (lto_output_string_with_length): Add persistent attribute;
11495         handle NULL strings.
11496         (lto_output_string): Add PERSISTENT parameter.
11497         (output_string_cst, output_identifier): Simplify.
11498         (lto_output_location_bitpack): Update.
11499         (lto_output_builtin_tree): Update.
11500         * lto-streamer.h (struct output_block): Add obstack.
11501         (lto_output_string, lto_output_string_with_length): Remove
11502         declarations; functions are static now.
11503
11504 2011-05-28  Jan Hubicka  <jh@suse.cz>
11505
11506         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
11507         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
11508         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
11509         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
11510         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
11511         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
11512         unpack_ts_decl_with_vis_value_fields,
11513         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
11514         lto_get_builtin_tree): Use enum and variable length i/o.
11515         * basic-block.h (profile_status_d): Add PROFILE_LAST.
11516         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
11517         New functions.
11518         (bp_pack_enum, bp_unpack_enum): New macros.
11519
11520 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
11521
11522         * genrecog.c: Remove redundant forward declarations.
11523
11524 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
11525
11526         * config.gcc: Deprecate mips*-*-openbsd*.
11527
11528 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
11529
11530         PR bootstrap/49195
11531         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
11532         for match_op_dup.
11533
11534 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
11535
11536         PR middle-end/48981
11537         * gengtype.c (vec_prefix_type): New function.
11538         (note_def_vec): Use vec_prefix_type and change the length
11539         attribute to be based on the prefix.
11540         * vec.c: Include coretypes.h before vec.h.
11541         (struct vec_prefix): Remove.
11542         (vec_gc_p_reserve): Change the offsetof to sizeof.
11543         (vec_gc_p_reserve_exact): Likewise.
11544         (vec_heap_p_reserve): Likewise.
11545         (vec_heap_p_reserve_exact): Likewise.
11546         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
11547         (vec_stack_p_reserve): Change the offsetof to sizeof.
11548         (vec_stack_p_reserve_exact): Likewise.
11549         * vec.h (struct vec_prefix): New struct definition.
11550         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
11551         (VEC_T_GTY(T,B)): Likewise.
11552         (DEF_VEC_FUNC_P(T)): Use prefix field.
11553         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
11554         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
11555
11556 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11557
11558         PR tree-optimization/46728
11559         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
11560         (powi_as_mults): Add gimple_set_location.
11561         (build_and_insert_call): New.
11562         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
11563         0.5, 0.25, 0.75, 1./3., or 1./6.
11564
11565 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
11566
11567         * doc/contrib.texi: Update copyright years.
11568         (Contributors): Add Zdenek Sojka.
11569
11570 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
11571
11572         * c-decl.c (c_push_function_context): Copy the current statement
11573         list stack.
11574         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
11575         (finish_struct): Call building_stmt_list_p instead of checking
11576         cur_stmt_list.
11577         * c-parser.c (c_parser_postfix_expression): Likewise.
11578         * c-typeck.c (c_end_compound_stmt): Likewise.
11579         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
11580         * tree-iterator.c (stmt_list_cache): Change to a VEC.
11581         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
11582         (free_stmt_list): Likewise.
11583         * tree.h (struct tree_statement_list): Include typed_tree instead
11584         of tree_common.
11585         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
11586         as TS_TYPED instead of TS_COMMON.
11587
11588 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11589             Uros Bizjak  <ubizjak@gmail.com>
11590
11591         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
11592         (HAVE_AS_IX86_TLSGDPTL): Define.
11593         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
11594         (HAVE_AS_IX86_TLSLDMPLT): Define.
11595         * configure: Regenerate.
11596         * config.in: Regenerate.
11597         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
11598         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
11599         TARGET_SUN_TLS, use @tlsgdplt or @plt.
11600         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
11601         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
11602         @tlsldmplt or @plt.
11603         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
11604
11605 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
11606
11607         * sched-int.h (struct _haifa_deps_insn_data): New members cond
11608         and reverse_cond.
11609         (INSN_COND, INSN_REVERSE_COND): New macros.
11610         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
11611         once.
11612         (sched_get_condition_with_rev): Cache the results, and look them up
11613         if possible.
11614         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
11615         are clobbered by the current insn.
11616         * target.def (exposed_pipline): New sched data hook.
11617         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
11618         * doc/tm.texi: Regenerate.
11619
11620 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11621
11622         PR tree-optimization/49170
11623         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
11624         sincos or cexp.
11625
11626 2011-05-27  Richard Guenther  <rguenther@suse.de>
11627
11628         PR middle-end/49189
11629         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
11630         of comparisons.
11631
11632 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
11633
11634         * haifa-sched.c (sched_scan_info): Remove.
11635         (schedule_block): Call sched_extend_luids rather than sched_init_luids
11636         with NULL args.
11637         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
11638         Remove functions.
11639         (sched_scan): Remove.
11640         (sched_extend_luids): Renamed from luids_extend_insn and no longer
11641         static.  All callers changed.
11642         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
11643         static.  All callers changed.
11644         (sched_init_luids): Remove all arguments except the first.  All
11645         callers changed.  Don't use sched_scan.
11646         (haifa_init_h_i_d): Likewise.
11647         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
11648         manually rather than using sched_init_luids.  Likewise with
11649         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
11650         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
11651         rather than sched_init_luids with NULL args.
11652         * sel-sched-ir.c (new_insns): Remove variable.
11653         (sched_scan): New static function, previously in haifa-sched.c.  Remove
11654         all arguments but the first two; all callers changed.
11655         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
11656         rather than sched_init_luids.
11657         (sel_init_bbs): Remove second argument.  All callers changed.
11658         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
11659         with NULL arguments.
11660         (create_insn_rtx_from_pattern): Likewise.
11661         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
11662         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
11663         (sched_init_insn_luid, sched_extend_luids): Declare.
11664         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
11665         declarations.
11666
11667 2011-05-27  Richard Guenther  <rguenther@suse.de>
11668
11669         PR middle-end/49177
11670         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
11671         A CMP B ? (T) true : (T) false for non-integral types T again.
11672
11673 2011-05-27  Jan Hubicka  <jh@suse.cz>
11674
11675         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
11676         so 0 means NULL string.
11677         (lto_output_string_with_length): ... here.
11678         (lto_output_string, output_string_cst, output_identifier): Update
11679         handling of NULL strings.
11680         (lto_output_location_bitpack): New function.
11681         (lto_output_location): Use it.
11682         (lto_output_tree_ref): Use output_record_start.
11683         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
11684         len values.
11685         * lto-streamer-in.c (string_for_index): Break out from ...; offset
11686         values by 1.
11687         (input_string_internal): ... here;
11688         (input_string_cst, input_identifier, lto_input_string): Update handling
11689         of NULL strings.
11690         (lto_input_location_bitpack): New function
11691         (lto_input_location): Use it.
11692         (unpack_ts_type_common_value_fields): Pack align & alias in var len
11693         values.
11694         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
11695         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
11696         (bp_pack_value): Sanity check the value range.
11697         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
11698         New functions.
11699         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
11700         New functions.
11701
11702 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
11703
11704         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
11705         call_arg_location instructions down the floor.
11706
11707 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
11708
11709         PR rtl-optimization/49154
11710         * ira.c (setup_pressure_classes): Process class without sublcasses
11711         as a candidate for pressure classes.
11712
11713 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
11714
11715         PR rtl-optimization/48575
11716         * genrecog.c (position_type): New enum.
11717         (position): New structure.
11718         (decision): Use position structure instead of a string.
11719         (root_pos, peep2_insn_pos_list): New variables.
11720         (next_position, compare_positions): New functions.
11721         (new_decision): Use position structures instead of strings.
11722         (maybe_both_true): Likewise.
11723         (change_state): Likewise.
11724         (write_tree): Likewise.
11725         (make_insn_sequence): Likewise.
11726
11727 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11728
11729         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
11730         TS_BASE instead of TS_COMMON.
11731         (find_decls_types_r): Check for TS_TYPED structure before looking at
11732         TREE_TYPE.
11733         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
11734         Add chain field.
11735         (BLOCK_CHAIN): Use new chain field.
11736
11737 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
11738
11739         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
11740         moves expensive on Power7 also.
11741
11742 2011-05-26  Richard Guenther  <rguenther@suse.de>
11743
11744         * fold-const.c (fold_unary_loc): Remove bogus code.
11745
11746 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11747
11748         * tree.h (struct tree_identifier): Inherit from tree_typed, not
11749         tree_common.
11750         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
11751         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
11752         TS_BASE instead of TS_COMMON.
11753         * varasm.c (assemble_name): Remove assert.
11754
11755 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
11756
11757         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
11758         substituted first.
11759         * libgcc-std.ver: Delete file.
11760
11761 2011-05-26  Richard Guenther  <rguenther@suse.de>
11762
11763         PR tree-optimization/48702
11764         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
11765         only when we know the base address is within bounds.
11766         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
11767         assume the base address of TARGET_MEM_REFs is in bounds.
11768
11769 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11770
11771         PR target/49099
11772         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
11773         declaration in TARGET_SOLARIS.
11774
11775 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
11776
11777         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
11778         The instruction is then expanded explicitly.
11779         (supported_compare): Callable instruction.
11780         (compare): Likewise.
11781
11782 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
11783
11784         PR c++/49165
11785         * gimplify.c (shortcut_cond_r): Don't special case
11786         COND_EXPRs if they have void type on one of their arms.
11787
11788 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
11789
11790         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
11791         to reduce duplication, and to achieve a slightly more logical order
11792         of operations.
11793
11794 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
11795
11796         PR tree-optimization/49161
11797         * tree-vrp.c (struct case_info): New type.
11798         (compare_case_labels): Sort case_info structs instead of
11799         trees, and not primarily by CASE_LABEL uids but by
11800         label_for_block indexes.
11801         (find_switch_asserts): Put case labels into struct case_info
11802         array instead of TREE_VEC, adjust sorting, compare label_for_block
11803         values instead of CASE_LABELs.
11804
11805 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11806
11807         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
11808         ("orndi3_neon"): Likewise.
11809         ("bic<mode>3_neon"): Likewise.
11810
11811 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
11812
11813         PR tree-optimization/49038
11814         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
11815         Ensure at least one epilogue iteration if required by data
11816         accesses with gaps.
11817         * tree-vectorizer.h (struct _loop_vec_info): Add new field
11818         to mark loops that require peeling for gaps.
11819         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
11820         (vect_get_known_peeling_cost): Take peeling for gaps into
11821         account.
11822         (vect_transform_loop): Generate epilogue if required by data
11823         access with gaps.
11824         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
11825         loop as requiring an epilogue if there are gaps in the end of
11826         the strided group.
11827
11828 2011-05-25  Ian Lance Taylor  <iant@google.com>
11829
11830         * godump.c (go_format_type): Output the first field with a usable
11831         Go type, if any.
11832
11833 2011-05-25  Ian Lance Taylor  <iant@google.com>
11834
11835         * godump.c (go_format_type): Check for invalid type names, pointer
11836         target types, and struct field types.
11837
11838 2011-05-25  Jason Merrill  <jason@redhat.com>
11839
11840         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
11841
11842 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
11843
11844         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
11845
11846 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11847
11848         * config/i386/i386.md (*movqi_extv_1)): Put back
11849         "register_operand" check in "type" calculation.
11850         (*movqi_extzv_2): Likewise.
11851
11852 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11853
11854         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
11855
11856 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
11857
11858         PR bootstrap/49160
11859         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
11860         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
11861         __divxc3, __divtc3): Wrap definitions in #ifndef.
11862
11863 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11864
11865         PR target/49142
11866         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
11867         "register_operand" check and replace q_regs_operand with
11868         QIreg_operand in "type" calculation.
11869         (*movqi_extv_1): Likewise.
11870         (*movqi_extzv_2_rex64): Likewise.
11871         (*movqi_extzv_2): Likewise.
11872
11873         * config/i386/predicates.md (QIreg_operand): New.
11874
11875 2011-05-25  Richard Guenther  <rguenther@suse.de>
11876
11877         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
11878         type-based offset disambiguation, streamline MEM_REF and
11879         TARGET_MEM_REF handling.
11880
11881 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11882
11883         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
11884         (bdesc_special_args): Add pause intrinsic.
11885
11886         * config/i386/i386.md (UNSPEC_PAUSE): New.
11887         (pause): Likewise.
11888         (*pause): Likewise.
11889         * config/i386/ia32intrin.h (__pause): Likewise.
11890
11891         * doc/extend.texi (X86 Built-in Functions): Add documentation for
11892         pause intrinsic.
11893
11894 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11895
11896         PR tree-optimization/46728
11897         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
11898         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
11899
11900 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
11901
11902         * tree.h (struct tree_exp): Inherit from struct tree_typed.
11903         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
11904         instead of TS_COMMON.
11905
11906 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
11907
11908         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
11909         LIBGCC2_GNU_PREFIX is defined.
11910         (__N): New macro.
11911         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
11912         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
11913         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
11914         __clz_tab): Define using __N.
11915         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
11916         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
11917         * target.def (libfunc_gnu_prefix): New hook.
11918         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
11919         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
11920         * doc/tm.texi: Regenerate.
11921         * system.h (LIBGCC2_GNU_PREFIX): Poison.
11922         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
11923         account.
11924         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
11925         (init_optabs): Likewise for the bswap libfuncs.
11926         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
11927         and divide.
11928         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
11929         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
11930         * libgcc-std.ver: Remove.
11931         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
11932         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
11933         libgcc-std.ver.
11934         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
11935         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
11936         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
11937         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
11938         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
11939         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
11940         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
11941         * config/fixed-bit.h (FIXED_OP): Define differently depending on
11942         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
11943         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
11944
11945 2011-05-25  Jan Hubicka  <jh@suse.cz>
11946
11947         * lto-streamer-out.c (output_record_start): Use lto_output_enum
11948         (lto_output_tree): Use output_record_start.
11949         * lto-streamer-in.c (input_record_start): Use lto_input_enum
11950         (lto_get_pickled_tree): Use input_record_start.
11951         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
11952         (lto_value_range_error): New function.
11953         * lto-streamer.h (lto_value_range_error): Declare.
11954         (lto_output_int_in_range, lto_input_int_in_range): New functions.
11955         (lto_output_enum, lto_input_enum): New macros.
11956
11957 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
11958
11959         * common.opt (flag_stack_usage_info): New variable.
11960         (-Wstack-usage): New option.
11961         * doc/invoke.texi (Warning options): Document -Wstack-usage.
11962         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
11963         <OPT_fstack_usage>: Likewise.
11964         * toplev.c (output_stack_usage): Handle -Wstack-usage.
11965         * calls.c (expand_call): Test flag_stack_usage_info variable instead
11966         of flag_stack_usage.
11967         (emit_library_call_value_1): Likewise.
11968         * explow.c (allocate_dynamic_stack_space): Likewise.
11969         * function.c (instantiate_virtual_regs ): Likewise.
11970         (prepare_function_start): Likewise.
11971         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
11972         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
11973         * config/arm/arm.c (arm_expand_prologue): Likewise.
11974         (thumb1_expand_prologue): Likewise.
11975         * config/avr/avr.c (expand_prologue): Likewise.
11976         * config/i386/i386.c (ix86_expand_prologue): Likewise.
11977         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
11978         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
11979         * config/mips/mips.c (mips_expand_prologue): Likewise.
11980         * config/pa/pa.c (hppa_expand_prologue): Likewise.
11981         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
11982         * config/s390/s390.c (s390_emit_prologue): Likewise.
11983         * config/sh/sh.c (sh_expand_prologue): Likewise.
11984         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
11985         * config/spu/spu.c (spu_expand_prologue): Likewise.
11986
11987 2011-05-25  Richard Guenther  <rguenther@suse.de>
11988
11989         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
11990         (gimple_canonical_types_compatible_p): Likewise.
11991
11992 2011-05-25  Jan Hubicka  <jh@suse.cz>
11993
11994         PR middle-end/49062
11995         * ipa.c (function_and_variable_visibility): Only add to same
11996         comdat group list if DECL_ONE_ONLY.
11997
11998 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
11999
12000         PR rtl-optimization/49014
12001         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
12002
12003 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
12004
12005         PR target/49128
12006         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
12007
12008 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
12009
12010         PR rtl-optimization/48757
12011         * ira-build.c (loop_with_eh_edge_p): Rename to
12012         loop_with_complex_edge_p, check edges on complexity, make function
12013         conditional.
12014         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
12015         conditional.
12016
12017 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
12018
12019         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
12020         force flag_ira_share_save_slots to 0.
12021
12022 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
12023
12024         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
12025         (vt_initialize): Set PROLOGUE_BB unconditionally.
12026         Add block comment about CFA_BASE_RTX machinery.
12027         Reset FP_CFA_OFFSET to -1 on all invalid paths.
12028         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
12029
12030 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
12031
12032         PR objc/48187
12033         * c-parser.c (c_parser_objc_class_instance_variables): More robust
12034         parsing of syntax error in ObjC instance variable lists.  In
12035         particular, avoid an infinite loop if there is a stray ']'.
12036         Updated error message.
12037
12038 2011-05-24  Ian Lance Taylor  <iant@google.com>
12039
12040         * godump.c (go_define): Don't accept a string immediately after
12041         another operand.
12042
12043 2011-05-24  Ian Lance Taylor  <iant@google.com>
12044
12045         * godump.c (struct godump_container): Add invalid_hash field.
12046         (go_format_type): Return false if type is found in invalid_hash.
12047         (go_output_typedef): Add invalid type to invalid_hash.
12048         (go_finish): Create and delete invalid_hash.
12049
12050 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12051
12052         PR tree-optimization/46728
12053         * tree-ssa-math-opts.c (powi_table): New.
12054         (powi_lookup_cost): New.
12055         (powi_cost): New.
12056         (powi_as_mults_1): New.
12057         (powi_as_mults): New.
12058         (gimple_expand_builtin_powi): New.
12059         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
12060         (gate_cse_sincos): Remove sincos/cexp restriction.
12061
12062 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12063
12064         PR target/3746
12065         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
12066         mips-tdump native.
12067         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
12068         * mips-tdump.c: Likewise.
12069
12070 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12071
12072         PR target/49128
12073         * config/i386/driver-i386.c (host_detect_local_cpu): Always
12074         add -mno-XXX.  Handle FMA.
12075
12076 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
12077
12078         PR rtl-optimization/48633
12079         * ira-build.c (loop_with_eh_edge_p): New function.
12080         (mark_loops_for_removal): Use it.
12081
12082 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
12083
12084         PR rtl-optimization/48971
12085         * ira.c (setup_pressure_classes): Don't check register move cost
12086         for classes with one registers.  Don't add pressure class if there
12087         is a pressure class with the same available hard registers.
12088         Check contains_reg_of_mode.  Fix a typo in collecting
12089         temp_hard_regset.  Ignore hard registers not belonging to a class.
12090
12091 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
12092
12093         PR target/49133
12094         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
12095
12096 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
12097             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12098
12099         PR gcov-profile/48845
12100         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
12101
12102 2011-05-24  Richard Guenther  <rguenther@suse.de>
12103
12104         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
12105         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
12106         (gimple_types_compatible_p_1): Adjust.
12107         (iterative_hash_canonical_type): Do not bother about complete vs.
12108         incomplete types.
12109         (gimple_canonical_types_compatible_p): Likewise.
12110
12111 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12112
12113         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
12114
12115 2011-05-24  Richard Guenther  <rguenther@suse.de>
12116
12117         PR bootstrap/49078
12118         * gimple.c (gimple_register_canonical_type): Revert
12119         previous change.
12120         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
12121         does not for a tree for the case where it matters.  Cache
12122         pointer-type alias-sets.
12123
12124 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
12125
12126         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
12127         (OBJS): Remove options.o, opts-common.o and prefix.o.
12128         (OBJS-libcommon-target): New.
12129         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
12130         (BACKEND): Include libcommon-target.a.
12131         (MOSTLYCLEANFILES): Include libcommon-target.a.
12132         (libcommon-target.a): New.
12133         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
12134         prefix.o.
12135
12136 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
12137
12138         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
12139         parts of output shared with the driver.
12140         * optc-gen.awk: Don't generate parts of output not shared with the
12141         driver.
12142         * opth-gen.awk: Remove GCC_DRIVER conditionals.
12143         * doc/options.texi (SourcerInclude): Mention options-save.c.
12144         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
12145         (OBJS): Add options-save.o.
12146         (options-save.c, options-save.o): New.
12147         (options.o): Update dependencies.
12148         (gcc-options.o): Remove.
12149         (mostlyclean): Remove options-save.c.
12150
12151 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12152
12153         PR debug/49032
12154         * dbxout.c: Include cgraph.h.
12155         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
12156         and without value expr, return NULL if no varpool node exists for
12157         it or if it is not needed.
12158         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
12159
12160         PR c/49120
12161         * c-decl.c (start_decl): Convert expr to void_type_node.
12162
12163 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
12164
12165         PR rtl-optimization/48826
12166         * emit-rtl.c (try_split): When splitting a call that is followed
12167         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
12168
12169 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12170
12171         * cfgexpand.c (expand_debug_expr): For unused non-addressable
12172         parameters passed in memory prefer using DECL_INCOMING_RTL over
12173         the pseudos it will be copied into.
12174
12175 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
12176
12177         PR target/47315
12178         * config/i386/i386.c (ix86_option_override_internal): Save the
12179         initial options after checking vzeroupper.
12180
12181 2011-05-23  David Li  <davidxl@google.com>
12182
12183         PR tree-optimization/48988
12184         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
12185         Initialize has_valid_pred for each pred chain.
12186
12187 2011-05-23  Richard Guenther  <rguenther@suse.de>
12188
12189         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
12190         (iterative_hash_gimple_type): Always hash type names.
12191
12192 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
12193
12194         * c-typeck.c (build_function_call_vec): Tweak call to
12195         check_function_arguments.
12196
12197 2011-05-23  Richard Guenther  <rguenther@suse.de>
12198
12199         PR tree-optimization/49115
12200         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
12201         is not necessarily carried out, do not claim it kills the ref.
12202         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
12203
12204 2011-05-23  Richard Guenther  <rguenther@suse.de>
12205
12206         PR middle-end/15419
12207         * builtins.c (fold_builtin_memory_op): Be less restrictive about
12208         what pointer types we accept for folding.
12209
12210 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12211
12212         * gthr-gnat.c: Remove.
12213         * gthr-gnat.h: Remove.
12214         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
12215         * config/t-freebsd (LIB2ADDEH): Likewise.
12216         * config/t-linux (LIB2ADDEH): Likewise.
12217         * config/t-sol2 (LIB2ADDEH): Likewise.
12218         * config/ia64/t-vms (LIB2ADDEH): Likewise.
12219         * configure.ac (target_thread_file): Remove gnat handling.
12220         * configure: Regenerate.
12221         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
12222
12223 2011-05-23  Tristan Gingold  <gingold@adacore.com>
12224             Eric Botcazou  <ebotcazou@adacore.com>
12225
12226         * gcov.c (create_file_names): If no object directory is specified,
12227         keep the directory of the file.
12228
12229 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12230
12231         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
12232         * configure: Regenerate.
12233
12234 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12235
12236         PR middle-end/48973
12237         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
12238         failed and the comparison has a single bit signed type, use
12239         constm1_rtx instead of const1_rtx for true value.
12240         (do_store_flag): If ops->type is single bit signed type, disable
12241         signel bit test optimization and pass -1 instead of 1 as last
12242         parameter to emit_store_flag_force.
12243
12244 2011-05-23  Tom de Vries  <tom@codesourcery.com>
12245
12246         PR target/45098
12247         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
12248         function.
12249         (infer_loop_bounds_from_undefined): Use new function.
12250
12251 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
12252
12253         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
12254         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
12255         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
12256         and -O0 otherwise.
12257         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
12258
12259 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12260
12261         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
12262         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
12263         returns true.
12264
12265 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
12266
12267         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
12268
12269 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12270
12271         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
12272         UNSPEC_MOVE_PIC pattern.
12273
12274 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12275
12276         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
12277         (sparc-*-rtems*): Likewise.
12278         (sparc64-*-elf*): Likewise.
12279         (sparc64-*-rtems*): Likewise.
12280         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
12281         * config/sparc/t-crtin: New file.
12282         * config/sparc/t-sol2 (crti.o): Delete rule.
12283         (crtn.o): Likewise.
12284         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
12285         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
12286         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
12287         (ENDFILE_SPEC): Add crtn.o.
12288
12289 2011-05-22  Tom de Vries  <tom@codesourcery.com>
12290
12291         PR middle-end/48689
12292         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
12293         CODE_CONTAINS_STRUCT (TS_COMMON).
12294
12295 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
12296
12297         PR middle-end/49029
12298         * expmed.c (extract_fixed_bit_field): Test whether target can be used
12299         only after deciding which mode to use.
12300
12301 2011-05-22  Tom de Vries  <tom@codesourcery.com>
12302
12303         PR target/45098
12304         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
12305         for call to get_shiftadd_cost.
12306
12307 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
12308
12309         PR target/49104
12310         * config/i386/cpuid.h (bit_MMXEXT): New define.
12311
12312 2011-05-22  Nick Clifton  <nickc@redhat.com>
12313
12314         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
12315         initialisation of non-existant args[2] element.  Use args[] array
12316         not arg[] array to pass arguments to build_function_type_list.
12317
12318 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
12319
12320         PR tree-optimization/49087
12321         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
12322
12323 2011-05-21  Jason Merrill  <jason@redhat.com>
12324
12325         PR c++/49092
12326         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
12327         static storage duration.
12328
12329 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
12330
12331         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
12332         frame pointer.
12333
12334 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
12335
12336         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
12337         false if there are call-saved registers here...
12338         (sparc_can_use_return_insn_p): ...but here instead.
12339         (save_or_restore_regs): Fix thinko.
12340         (sparc_expand_prologue): Use current_function_is_leaf.
12341         (sparc_frame_pointer_required): Likewise.
12342
12343 2011-05-21  Nick Clifton  <nickc@redhat.com>
12344
12345         PR target/49098
12346         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
12347
12348 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
12349
12350         * gengtype.c (walk_type): Implemented "atomic" GTY option.
12351         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
12352
12353 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
12354
12355         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
12356         * optc-gen.awk: Move common code to opt-read.awk.
12357         * opth-gen.awk: Likewise.
12358         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
12359
12360 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
12361
12362         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
12363
12364 2011-05-20  Tom de Vries  <tom@codesourcery.com>
12365
12366         PR target/45098
12367         * tree-ssa-loop-ivopts.c: Include expmed.h.
12368         (get_shiftadd_cost): New function.
12369         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
12370
12371 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
12372
12373         PR bootstrap/49086
12374         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
12375         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
12376
12377 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
12378
12379         * Makefile.in: Update comment referring to $(OBJS-common).
12380
12381 2011-05-20  Ian Lance Taylor  <iant@google.com>
12382
12383         * godump.c (go_output_typedef): Put enum constants in the macro
12384         hash table to avoid duplicate Go const definitions.
12385
12386 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
12387
12388         * Makefile.in (LIBDEPS): Add libcommon.a.
12389         (LIBS): Likewise.
12390         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
12391         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
12392         pretty-print.o and version.o.
12393         (OBJS-libcommon): New.
12394         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
12395         (BACKEND): Add libcommon.a.
12396         (MOSTLYCLEANFILES): Likewise.
12397         (libcommon.a): New.
12398         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
12399         (cpp$(exeext)): Likewise.
12400         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
12401         pretty-print.o and input.o.
12402         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
12403         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
12404         (errors.o): Remove.
12405         (mips-tfile): Don't explicitly use version.o.
12406         (mips-tdump): Likewise.
12407         (gcov.o): Depend on $(DIAGNOSTIC_H).
12408         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
12409         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
12410         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
12411         * gcov-dump.c: Include intl.h and diagnostic.h.
12412         (main): Initialize diagnostics.
12413         * gcov.c: Include diagnostic.h.
12414         (fnotice): Remove.
12415         (main): Initialize diagnostics.
12416         * lto-wrapper.c: Include diagnostic.h.
12417         (main): Initialize diagnostics.
12418
12419 2011-05-20  Michael Matz  <matz@suse.de>
12420
12421         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
12422
12423 2011-05-20  Michael Matz  <matz@suse.de>
12424             Richard Guenther  <rguenther@suse.de>
12425
12426         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
12427         use lto_streamer_cache_append directly instead of returning a VEC.
12428         (preload_common_node): Remove.
12429         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
12430         track seen nodes.
12431         (lto_streamer_cache_create): Call lto_preload_common_nodes.
12432
12433 2011-05-20  Richard Guenther  <rguenther@suse.de>
12434
12435         PR tree-optimization/49079
12436         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
12437         MEM_REFs correctly for the trailing array access detection.
12438         Special case constants the same way as decls for overall size
12439         constraining.
12440
12441 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
12442
12443         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
12444         argument expansion.
12445
12446 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
12447
12448         PR tree-optimization/49073
12449         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
12450         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
12451         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
12452
12453 2011-05-20  Richard Guenther  <rguenther@suse.de>
12454
12455         PR middle-end/48849
12456         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
12457         of pointer types the same way the middle-end does.
12458
12459 2011-05-20  Richard Guenther  <rguenther@suse.de>
12460
12461         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
12462         or pointer-to chains.  Delay all fixup to uniquify_nodes.
12463
12464 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
12465
12466         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
12467         (fma4_fmaddsub): Likewise
12468
12469 2011-05-19  Jan Hubicka  <jh@suse.cz>
12470
12471         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
12472         (GIMPLE_TYPE_PAIR_SIZE): New macro.
12473         (type_pair_cache): New static var.
12474         (lookup_type_pair): Use fixed sized custom hash; make inline.
12475         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
12476         calls of lookup_type_pair.
12477         (print_gimple_types_stats): Remove cache stats.
12478         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
12479         and gtc_ob.
12480
12481 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
12482
12483         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
12484         when TARGET_RDRND is active.
12485         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
12486         Generate dummy SImode target register when target is NULL.
12487
12488 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
12489
12490         * config/arm/arm-fpus.def: New.
12491         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
12492         arm-fpus.def.
12493         * config/arm/arm-tables.opt: Regenerate.
12494         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
12495         (arm_option_override): Don't decode FPU name to string here.
12496         * config/arm/arm.opt (mfpu=): Use Enum.
12497         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
12498         Update dependencies.
12499
12500 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
12501
12502         * collect2.c: Include diagnostic.h.
12503         (fatal_perror, fatal, error, fancy_abort): Remove.
12504         (main): Set progname.  Call xmalloc_set_program_name and
12505         diagnostic_initialize.
12506         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
12507         scan_libraries, resolve_lib_name): Call fatal_error instead of
12508         fatal and fatal_perror.
12509         * collect2.h (error, fatal, fatal_perror): Don't declare.
12510         * tlink.c: Include diagnostic-core.h.
12511         (recompile_files): Call fatal_error instead of fatal_perror.
12512         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
12513         pretty-print.o and input.o.
12514         (collect2.o, tlink.o): Update dependencies.
12515
12516 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12517
12518         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
12519
12520 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12521
12522         PR target/40483
12523         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
12524         COMDAT group syntax, both SPARC and x86 variants.
12525         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
12526         * configure: Regenerate.
12527         * config/sol2.h (TARGET_SOLARIS): Define.
12528         (PUSHSECTION_FORMAT): Remove.
12529         (SECTION_NAME_FORMAT): Define.
12530         * config/sol2.c: Include hashtab.h.
12531         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
12532         expansion, using SECTION_NAME_FORMAT.
12533         (solaris_comdat_htab): New variable.
12534         (struct comdat_entry): Define.
12535         (comdat_hash): New function.
12536         (comdat_eq): New function.
12537         (solaris_elf_asm_comdat_section): New function.
12538         (solaris_define_comdat_signature): New function.
12539         (solaris_code_end): New function.
12540         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
12541         (solaris_code_end): Declare.
12542         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
12543         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
12544         solaris_code_end.
12545         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
12546         Remove ATTRIBUTE_UNUSED.
12547         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
12548         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
12549         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
12550         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
12551         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
12552         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
12553         (PUSHSECTION_FORMAT): Remove.
12554         (SECTION_NAME_FORMAT): Redefine.
12555
12556 2011-05-19  Kai Tietz  <ktietz@redhat.com>
12557
12558         * tree-cfg.c (verify_gimple_assign_binary): Barf on
12559         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
12560         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
12561
12562 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
12563             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12564
12565         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
12566
12567 2011-05-19  Richard Guenther  <rguenther@suse.de>
12568
12569         PR middle-end/48985
12570         * tree-object-size.c (addr_object_size): If the pointed-to
12571         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
12572
12573 2011-05-19  Richard Guenther  <rguenther@suse.de>
12574
12575         * gimple.c (gimple_types_compatible_p_1): Compare names of
12576         the types themselves.
12577         (iterative_hash_gimple_type): And hash them that way.
12578         (gimple_register_type_1): If we register a main variant properly
12579         initialize the leader to ourselves.
12580
12581 2011-05-19  Tom de Vries  <tom@codesourcery.com>
12582
12583         PR target/45098
12584         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
12585         get_loop_invariant_expr_id.
12586         (get_loop_invariant_expr_id): Use get_expr_id.
12587         (parm_decl_cost): New function.
12588         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
12589         Improve bound cost estimation.  Use different inv_expr_id for elim and
12590         express cases.
12591
12592 2011-05-19  Tom de Vries  <tom@codesourcery.com>
12593
12594         PR target/45098
12595         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
12596         cost_base.cost == 0.
12597
12598 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
12599
12600         PR target/49002
12601         * config/i386/sse.md
12602         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
12603         load cast.
12604
12605 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
12606
12607         PR tree-optimization/49039
12608         * tree-vrp.c (extract_range_from_binary_expr): For
12609         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
12610         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
12611
12612 2011-05-18  Tom de Vries  <tom@codesourcery.com>
12613
12614         PR target/45098
12615         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
12616
12617 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
12618
12619         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
12620         (*tls_global_dynamic_64): Ditto.
12621         (*tls_local_dynamic_base_32_gnu): Ditto.
12622         (*tls_local_dynamic_base_64): Ditto.
12623         (tls_initial_exec_64_sun): Ditto.
12624
12625 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
12626
12627         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
12628         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
12629         bf592-none.
12630         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
12631         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
12632         * config/bfin/bfin.c (bfin_cpus): Add bf592.
12633         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
12634         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
12635         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
12636         * config/bfin/elf.h (LIB_SPEC): Add bf592.
12637
12638 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
12639
12640         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
12641         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
12642         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
12643         target_thread_pointer, arm_structure_size_boundary, struct
12644         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
12645         struct abi_name, arm_all_abis): Remove.
12646         (arm_option_override) Don't process most enumerated option values here.
12647         Don't process target_fpe_name here.  Work with integer not string for
12648         structure size boundary; use separate diagnostics for each case.
12649         * config/arm/arm.h (enum float_abi_type, enum
12650         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
12651         to arm-opts.h.
12652         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
12653         arm_structure_size_boundary): Remove.
12654         * config/arm/arm.opt (mabi=): Use Enum and Init.
12655         (arm_abi_type): New Enum and EnumValue entries.
12656         (mfloat-abi=): Use Enum and Init.
12657         (float_abi_type): New Enum and EnumValue entries.
12658         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
12659         (mfp16-format=): Use Enum and Init.
12660         (arm_fp16_format_type): New Enum and EnumValue entries.
12661         (mstructure-size-boundary=): Use UInteger and Init.
12662         (mtp=): Use Enum and Init.
12663         (arm_tp_type): New Enum and EnumValue entries.
12664
12665 2011-05-18  Richard Guenther  <rguenther@suse.de>
12666
12667         PR tree-optimization/49018
12668         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
12669         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
12670         gimple_has_side_effects.
12671
12672 2011-05-18  Richard Guenther  <rguenther@suse.de>
12673
12674         * gimple.c (gimple_register_type_1): New function, split out from ...
12675         (gimple_register_type): ... here.  Avoid infinite recursion.
12676
12677 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
12678
12679         PR tree-optimization/41881
12680         * tree-vectorizer.h (struct _loop_vec_info): Add new field
12681         reduction_chains along with a macro for its access.
12682         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
12683         (destroy_loop_vec_info): Free reduction chains.
12684         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
12685         (vect_is_slp_reduction): New function.
12686         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
12687         (vect_create_epilog_for_reduction): Support SLP reduction chains.
12688         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
12689         definition types for reduction chains.
12690         (vect_supported_load_permutation_p): Don't allow permutations for
12691         reduction chains.
12692         (vect_analyze_slp_instance): Support reduction chains.
12693         (vect_analyze_slp): Try to build SLP instance from reduction chains.
12694         (vect_get_constant_vectors):  Handle reduction chains.
12695         (vect_schedule_slp_instance): Mark the first statement of the
12696         reduction chain as reduction.
12697
12698 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
12699
12700         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
12701         names for group elements access.
12702         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
12703         reduction chains as well.  Remove data reference and interleaving
12704         related words from the fields names.
12705         * tree-vect-loop.c (vect_transform_loop): Use new names for group
12706         elements access.
12707         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
12708         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
12709         vect_update_interleaving_chain, vect_same_range_drs,
12710         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
12711         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
12712         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
12713         vect_analyze_group_access, vect_analyze_data_ref_access,
12714         vect_create_data_ref_ptr, vect_transform_strided_load,
12715         vect_record_strided_load_vectors): Likewise.
12716         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
12717         vect_model_load_cost, vectorizable_store, vectorizable_load,
12718         vect_remove_stores, new_stmt_vec_info): Likewise.
12719         * tree-vect-slp.c (vect_build_slp_tree,
12720         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
12721
12722 2011-05-18  Richard Guenther  <rguenther@suse.de>
12723
12724         PR middle-end/48989
12725         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
12726         operand verification.
12727         (verify_gimple_assign_binary): Likewise.
12728         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
12729         to non-1-precision BOOLEAN_TYPEs.
12730
12731 2011-05-18  Tom de Vries  <tom@codesourcery.com>
12732
12733         PR target/45098
12734         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
12735
12736 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
12737
12738         PR tree-optimization/49000
12739         * tree-ssa.c (execute_update_addresses_taken): Call
12740         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
12741         be rewritten and decl has been marked for renaming, reset
12742         the debug stmt.
12743
12744 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
12745
12746         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
12747         enum_opts_set when testing if attributes have set -mfpmath=.
12748
12749 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
12750
12751         * config/mips/mips.c (mips_handle_option): Remove unused variable.
12752
12753 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
12754
12755         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
12756         info->entry with 0
12757         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
12758         id.transform_lang_insert_block with NULL.
12759
12760 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
12761
12762         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
12763         (output_fp_compare): Change args 3 and 4 to bool.
12764         (ix86_expand_call): Change arg 6 to bool.
12765         (ix86_attr_length_immediate_default): Change arg 2 to bool.
12766         (ix86_attr_length_vex_default): Change arg 3 to bool.
12767         * config/i386/i386.md: Update all uses.
12768         * config/i386/i386.c: Ditto.
12769         (ix86_flags_dependent): Change return type to bool.
12770
12771 2011-05-17  Richard Guenther  <rguenther@suse.de>
12772
12773         * gimple.c (type_hash_pair_compare): Fix comparison.
12774
12775 2011-05-17  Richard Guenther  <rguenther@suse.de>
12776
12777         * gimple.c (iterative_hash_gimple_type): Simplify singleton
12778         case some more, fix final hash value of the non-singleton case.
12779
12780 2011-05-17  Richard Guenther  <rguenther@suse.de>
12781
12782         PR bootstrap/49013
12783         Revert
12784         2011-05-16  Richard Guenther  <rguenther@suse.de>
12785
12786         * gimple.c (gimple_types_compatible_p_1): Use names of the
12787         type itself, not its main variant.
12788         (iterative_hash_gimple_type): Likewise.
12789
12790 2011-05-17  Richard Guenther  <rguenther@suse.de>
12791
12792         * gimple.c (gimple_register_canonical_type): Use the main-variant
12793         leader for computing the canonical type.
12794
12795 2011-05-17  Nick Clifton  <nickc@redhat.com>
12796
12797         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
12798         moves.
12799
12800         * config/rx/rx.md: Add peephole to remove redundant extensions
12801         after loads.
12802         (bitset_in_memory): Use rx_restricted_mem_operand.
12803         (bitinvert_in_memory): Likewise.
12804         (bitclr_in_memory): Likewise.
12805
12806 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
12807             Nick Clifton  <nickc@redhat.com>
12808
12809         * config/rx/rx.md: Add peepholes to match a register move followed
12810         by a comparison of the moved register.  Replace these with an
12811         addition of zero that does both actions in one instruction.
12812
12813 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
12814
12815         PR target/48986
12816         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
12817         predicate to allow CONST_INT.
12818         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
12819
12820 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
12821
12822         * opts-common.c (opt_enum_arg_to_value): New.
12823         * opts.h (opt_enum_arg_to_value): Declare.
12824         * config/i386/i386.opt (fpmath): Remove.
12825         (mfpmath=): Use Enum, Init and Save.
12826         (fpmath_unit): New Enum and EnumValue entries.
12827         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
12828         name for function fpmath state.
12829         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
12830         * config/i386/i386.c: Include diagnostic.h.
12831         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
12832         (ix86_target_string): Take enum fpmath_unit value instead of string.
12833         (ix86_debug_options): Update call to ix86_target_string.
12834         (ix86_option_override_internal): Don't process fpmath strings here.
12835         (x86_function_specific_save, ix86_function_specific_restore):
12836         Don't handle fpmath state specially.
12837         (ix86_function_specific_print): Pass fpmath state to
12838         ix86_target_string instead of printing in this function.
12839         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
12840         Handle enum attributes.
12841         (IX86_ATTR_ENUM, ix86_opt_enum): New.
12842         (ix86_valid_target_attribute_tree): Update option_strings
12843         handling.  Handle fpmath as enum option.
12844         (ix86_can_inline_p): Update field names for function fpmath state.
12845         (ix86_expand_builtin): Update call to ix86_target_string.
12846         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
12847         (ix86_fpmath): Remove.
12848         * config/i386/t-i386 (i386.o): Update dependencies.
12849
12850 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
12851
12852         PR preprocessor/48677
12853         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
12854         from decoded_options[0], not from itself.
12855
12856 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
12857
12858         * config/i386/constraints.md (z): New constraint.
12859         * config/i386/i386.c (c): New mode attribute.
12860         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
12861         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
12862         constraint for operand 0.
12863         (*call_vzeroupper): Ditto.
12864         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
12865         (*call_rex64_ms_sysv_vzeroupper): Ditto.
12866         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
12867         Use "lzm" constraint for operand 0.
12868         (*call_pop_vzeroupper): Ditto.
12869         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
12870         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
12871         constraint for operand 0.
12872         (*sibcall_vzeroupper): Ditto.
12873         (*sibcall_rex64_ms_sysv): Ditto.
12874         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
12875         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
12876         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
12877         (*sibcall_pop_vzeroupper): Ditto.
12878         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
12879         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
12880         mode iterator.  Use "<c>zm" constraint for operand 1.
12881         (*call_value_vzeroupper): Ditto.
12882         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
12883         for operand 1.
12884         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
12885         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
12886         *call_value_pop_1.  Use "lzm" constraint for operand 1.
12887         (*call_value_pop_vzeroupper): Ditto.
12888         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
12889         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
12890         mode iterator.  Use "Uz" constraint for operand 1.
12891         (*sibcall_value_vzeroupper): Ditto.
12892         (*sibcall_value_rex64_ms_sysv): Ditto.
12893         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
12894         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
12895         constraint for operand 1.
12896         (*sibcall_value_pop_vzeroupper): Ditto.
12897         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
12898         and "z" constraint for operand 2.
12899         (*tls_global_dynamic_32_gnu): Ditto.
12900         (*tls_local_dynamic_base_32_gnu): Ditto.
12901         (*tls_local_dynamic_base_64): Ditto.
12902         (*tls_local_dynamic_32_once): Ditto.
12903         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
12904         Update all callers.
12905         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
12906
12907 2011-05-16  Richard Guenther  <rguenther@suse.de>
12908
12909         * gimple.c (gimple_types_compatible_p_1): Use names of the
12910         type itself, not its main variant.
12911         (iterative_hash_gimple_type): Likewise.
12912
12913 2011-05-16  Richard Guenther  <rguenther@suse.de>
12914
12915         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
12916         always visit pointer target and function result and argument types.
12917
12918 2011-05-16  Jason Merrill  <jason@redhat.com>
12919
12920         PR c++/48999
12921         * tree-inline.c (copy_statement_list): Put back recursion.
12922
12923 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
12924
12925         PR target/27663
12926         PR target/41076
12927         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
12928         * config/avr/avr.md ("*ior<mode>qi.byte0",
12929         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
12930
12931 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
12932
12933         PR target/45099
12934         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
12935         register is needed for a function argument.
12936
12937 2011-05-16  Richard Guenther  <rguenther@suse.de>
12938
12939         * gimple.c (struct type_hash_pair): New type.
12940         (type_hash_pair_compare): New function.
12941         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
12942
12943 2011-05-16  Revital Eres  <revital.eres@linaro.org>
12944
12945         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
12946
12947 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
12948
12949         * config/i386/i386.md (floating point move splitters): Fix
12950         usage of standard_80387_constant_p.
12951         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
12952
12953 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
12954
12955         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
12956
12957 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
12958
12959         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
12960         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
12961         (tree_ssa_lim_finalize): Likewise.
12962
12963 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
12964
12965         * config/i386/constraint.md (Yd, Yx): New register constraints.
12966         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
12967         Yd conditional register constraint.
12968         (*movtf_internal): Use standard_sse_constant_opcode.
12969         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
12970         Yx conditional register constraint.
12971         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
12972         Yd conditional register constraint.  Use standard_sse_constant_p to
12973         check for valid SSE constants and call standard_sse_constant_opcode to
12974         output SSE insn.
12975         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
12976         constants and call standard_sse_constant_opcode to output SSE insn.
12977         * config/i386/i386.c (ix86_option_ovverride_internal): Set
12978         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
12979         optimize_size is set.
12980         (standard_sse_constant_opcode): Output conditional AVX insn templates.
12981
12982 2011-05-14  Tobias Burnus  <burnus@net-b.de>
12983
12984         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
12985
12986 2011-05-13  Martin Jambor  <mjambor@suse.cz>
12987
12988         * ipa-prop.c (ipa_cst_from_jfunc): New function.
12989         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
12990         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
12991         (evaluate_conditions_for_ipcp_clone): Removed.
12992         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
12993         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
12994         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
12995
12996 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
12997
12998         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
12999         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
13000         lieu of MAY_HAVE_DEBUG_STMTS.
13001         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
13002         debug statements if !MAY_HAVE_DEBUG_STMTS.
13003
13004 2011-05-13  Martin Thuresson  <martint@google.com>
13005
13006         PR gcov-profile/47793
13007         * libgcov.c (gcov_exit): Support relative profile paths.
13008         * doc/invoke.texi (-fprofile-dir): Update for above change.
13009
13010 2011-05-13  Richard Guenther  <rguenther@suse.de>
13011
13012         * gimple.c (gimple_canonical_types_compatible_p): Do not use
13013         type-pair caching, do not compare hashes.
13014
13015 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
13016
13017         PR middle-end/48965
13018         * tree-cfg.c (edge_to_cases_cleanup): Return true.
13019         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
13020
13021 2011-05-13  Kai Tietz  <ktietz@redhat.com>
13022
13023         * gimplify.c (gimplify_expr): Make sure operand is boolified.
13024         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
13025         compatible type for TRUTH_NOT_EXPR.
13026
13027 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
13028
13029         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
13030         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
13031         can_create_pseudo_p ().
13032
13033 2011-05-13  Richard Guenther  <rguenther@suse.de>
13034
13035         PR lto/48978
13036         * gimple.c (iterative_hash_gimple_type): Revert change in
13037         pointer target and function result and argument hashing.
13038
13039 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
13040
13041         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
13042         (*movxf_internal_nointeger): Ditto.
13043         (*movdf_internal_rex64): Ditto.
13044         (*movdf_internal): Ditto.
13045         (*movdf_internal_nointeger): Ditto.
13046         (*movsf_internal): Ditto.
13047         (sincos splitters): Use can_create_pseudo ().
13048
13049 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
13050
13051         * config/i386/i386-opts.h: New.
13052         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
13053         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
13054         ix86_section_threshold): Remove.
13055         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
13056         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
13057         OPT_mbranch_cost_.
13058         (ix86_option_override_internal): Don't decode strings for options
13059         other than -march=, -mtune= and -mfpmath=.  Don't allow for
13060         __attribute__ uses in remaining diagnostics for options with
13061         string arguments.  Don't check for integer arguments being negative.
13062         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
13063         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
13064         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
13065         ix86_branch_cost, ix86_section_threshold): Remove.
13066         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
13067         HeaderInclude.
13068         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
13069         but not Var.
13070         (masm=): Use Enum and Init.
13071         (asm_dialect): New Enum and EnumValue entries.
13072         (mbranch-cost=): Use UInteger.
13073         (mlarge-data-threshold=): Use UInteger and Init.
13074         (mcmodel=): Use Enum and Init.
13075         (cmodel): New Enum and EnumValue entries.
13076         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
13077         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
13078         mregparm=): Use UInteger.
13079         (mstringop-strategy=): Use Enum and Init.
13080         (stringop_alg): New Enum and EnumValue entries.
13081         (mtls-dialect=): Use Enum and Init.
13082         (tls_dialect): New Enum and EnumValue entries.
13083         (mabi=): Use Enum and Init.
13084         (calling_abi): New Enum and EnumValue entries.
13085         (mveclibabi=): Use Enum and Init.
13086         (ix86_veclibabi): New Enum and EnumValue entries.
13087
13088 2011-05-13  Nick Clifton  <nickc@redhat.com>
13089
13090         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
13091         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
13092
13093 2011-05-13  Kai Tietz  <ktietz@redhat.com>
13094
13095         PR middle-end/48984
13096         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
13097         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
13098         (gimple_boolify): Check for cast for boolean_type_node instead for
13099         BOOLEAN_TYPE.
13100
13101 2011-05-13  Richard Guenther  <rguenther@suse.de>
13102
13103         PR tree-optimization/48172
13104         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
13105         multiplying by number of iterations for equal step.
13106         (vect_create_cond_for_alias_checks): Likewise.
13107
13108 2011-05-13  Andreas Schwab  <schwab@redhat.com>
13109
13110         * configure.ac: Use AS_HELP_STRING throughout.
13111         * configure: Regenerate.
13112
13113 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
13114
13115         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
13116         (ix86_emit_restore_regs_using_mov): Likewise.
13117         (ix86_emit_restore_sse_regs_using_mov): Likewise.
13118
13119 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
13120
13121         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
13122         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
13123         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
13124         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
13125         RTX_OK_FOR_OLO10_P): ...here.
13126         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
13127         SYMBOLIC_CONST.
13128
13129 2011-05-12  Kai Tietz  <ktietz@redhat.com>
13130
13131         * gimplify.c (gimple_boolify): Re-boolify expression
13132         arguments even if expression type is of kind BOOLEAN_TYPE.
13133         (gimplify_boolean_expr): Removed.
13134         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
13135         and XOR. Additional take care that we keep expression's type.
13136         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
13137         of TRUTH_AND|OR|XOR_EXPR.
13138
13139 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
13140
13141         PR tree-optimization/48975
13142         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
13143         on all bbs here and free and clear ifc_bbs at the end.
13144
13145 2011-05-12  Richard Guenther  <rguenther@suse.de>
13146
13147         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
13148         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
13149         until after simple checks.
13150         (gimple_types_compatible_p): Likewise.
13151         (iterative_hash_gimple_type): Always hash pointer targets
13152         and function return and argument types.
13153         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
13154         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
13155         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
13156         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
13157         completely in the simple compare section.
13158         (gimple_register_canonical_type): Query the cache again after
13159         registering.
13160
13161 2011-05-12  Richard Guenther  <rguenther@suse.de>
13162
13163         PR tree-optimization/48172
13164         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
13165         the number of iterations from the segment size calculation.
13166         (vect_create_cond_for_alias_checks): Adjust.
13167
13168 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
13169
13170         PR debug/48967
13171         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
13172         if validate_subreg fails.
13173
13174 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
13175
13176         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
13177         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
13178         early.
13179
13180 2011-05-12  DJ Delorie  <dj@redhat.com>
13181
13182         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
13183         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
13184         created builtin into rx_builtins array.
13185         (rx_builtin_decl): New function.
13186         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
13187
13188 2011-05-12  DJ Delorie  <dj@redhat.com>
13189             Nick Clifton  <nickc@redhat.com>
13190
13191         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
13192         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
13193         (rx_is_legitimate_address): Add pre-decrement and post-increment
13194         addressing in HImode and QImode.  Fix test for out of range
13195         REG+INT addressing.
13196         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
13197         (rx_align_for_label): Test label before extracting its usage count.
13198         (rx_adjust_insn_lengths): Fix selection of insn codes.
13199         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
13200
13201 2011-05-11  Jason Merrill  <jason@redhat.com>
13202
13203         * tree.c (type_hash_canon): Use struct tree_type_non_common.
13204
13205 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
13206
13207         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
13208         reindent the subsequent block.
13209
13210 2011-05-11  Satoru Takabayashi  <satorux@google.com>
13211             Paul Pluzhnikov  <ppluzhnikov@google.com>
13212
13213         * doc/install.texi (Configuration): Document --with-linker-hash-style.
13214         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
13215         * config.in: Add LINKER_HASH_STYLE.
13216         * configure.ac: Add --with-linker-hash-style.
13217         * configure: Regenerate.
13218
13219 2011-05-11  Richard Guenther  <rguenther@suse.de>
13220
13221         PR middle-end/48964
13222         * gimple.c (iterative_hash_canonical_type): Fix typo.
13223
13224 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
13225
13226         * config/i386/i386.c (legitimize_tls_address)
13227         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
13228         expanders directly for TARGET_GNU2_TLS.  Determine pic and
13229         __tls_get_addr symbol reference here.  Update call to
13230         gen_tls_global_dynamic_{32,64} for added arguments.
13231         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
13232         expanders directly for TARGET_GNU2_TLS.  Determine
13233         __tls_get_addr symbol reference here.  Update call to
13234         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
13235         unique UNSPEC REG_EQUIV to libcall block.
13236         (ix86_tls_get_addr): Declare static.
13237         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
13238         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
13239         Do not determine pic and __tls_get_addr symbol reference here. Do not
13240         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
13241         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
13242         (tls_global_dynamic_64): Add operand 2.  Do not determine
13243         __tls_get_addr symbol reference here.  Do not call
13244         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
13245         (tls_local_dynamic_base64): Ditto for operand 1.
13246
13247 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
13248
13249         * function.c (expand_function_start): Initialize stack_check_probe_note
13250         only if the generic stack checking mechanism is used.
13251
13252 2011-05-11  Richard Guenther  <rguenther@suse.de>
13253
13254         PR tree-optimization/15256
13255         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
13256         (A & B) | C, combine (A op CST1) op CST2.
13257         (tree_ssa_forward_propagate_single_use_vars): Only bother to
13258         visit assigns that have uses.
13259
13260 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
13261
13262         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
13263         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
13264         (unpack_ts_type_common_value_fields): ...this.  Update comment.
13265         (unpack_value_fields): Adjust for renaming.
13266         (lto_input_ts_type_tree_pointers): Split into...
13267         (lto_input_ts_type_common_tree_pointer): ...this and...
13268         (lto_input_ts_type_non_common_tree_pointers): ...this.
13269         (lto_input_tree_pointers): Adjust for above split.
13270         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
13271         (pack_ts_type_common_value_fields): ...this.  Update comment.
13272         (lto_output_ts_type_tree_pointers): Split into...
13273         (lto_output_ts_type_common_tree_pointers): ...this and...
13274         (lto_output_ts_type_non_common_tree_pointers): ...this.
13275         (lto_output_tree_pointers): Adjust for above split.
13276         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
13277         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
13278         * stor-layout.c (vector_type_mode): Adjust location of mode field.
13279         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
13280         Define.
13281         (struct tree_type): Split into...
13282         (struct tree_type_common: ...this and...
13283         (struct tree_type_with_lang_specific): ...this and...
13284         (struct tree_type_non_common): ...this.  Adjust accessor macros
13285         accordingly.
13286         (TYPE_VALUES_RAW): Define.
13287         (union tree_node): Update for above changes.
13288         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
13289         TS_TYPE_NON_COMMON.
13290         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
13291         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
13292         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
13293         * treestructu.def (TS_TYPE): Remove.
13294         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
13295         Define.
13296
13297 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
13298
13299         PR debug/48159
13300         * tree-ssa.c (reset_debug_uses): New function.
13301         * tree-flow.h (reset_debug_uses): New prototype.
13302         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
13303         * tree-loop-distribution.c (generate_loops_for_partition): Call
13304         reset_debug_uses on the stmts that will be removed.  Keep around
13305         all debug stmts, don't count them as bits in partition bitmap.
13306         (generate_builtin): Don't count debug stmts or labels as bits in
13307         partition bitmap.
13308
13309 2011-05-11  Richard Guenther  <rguenther@suse.de>
13310
13311         * gimple.c (gimple_type_hash_1): Merge with ...
13312         (gimple_type_hash): ... this.
13313         (gtc_visit): Remove mode parameter and simplify accordingly.
13314         (gimple_types_compatible_p_1): Likewise.
13315         (gimple_types_compatible_p): Likewise.
13316         (iterative_hash_gimple_type): Likewise.
13317         (visit): Likewise.
13318         (gimple_type_eq): Adjust.
13319
13320 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13321
13322         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
13323         enters the branch create an anti edge in the opposite direction
13324         to prevent the creation of reg-moves.
13325         * modulo-sched.c: Adjust comment to reflect the fact we are
13326         scheduling closing branch.
13327         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
13328         (stage_count): New field in struct partial_schedule.
13329         (calculate_stage_count): New function.
13330         (normalize_sched_times): Rename to reset_sched_times and handle
13331         incrementing the sched time of the nodes by a constant value
13332         passed as parameter.
13333         (duplicate_insns_of_cycles): Skip closing branch.
13334         (sms_schedule_by_order): Schedule closing branch.
13335         (ps_insn_find_column): Handle closing branch.
13336         (sms_schedule): Call reset_sched_times and adjust the code to
13337         support scheduling of the closing branch.
13338         (ps_insert_empty_row): Update calls to normalize_sched_times
13339         and rotate_partial_schedule functions.
13340
13341 2011-05-11  Richard Guenther  <rguenther@suse.de>
13342
13343         PR middle-end/48953
13344         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
13345
13346 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
13347
13348         * opts.c (finish_options): Move warning settings from process_options.
13349         * toplev.c (process_options): Move warning settings to finish_options.
13350
13351 2011-05-11  Richard Guenther  <rguenther@suse.de>
13352
13353         PR tree-optimization/18041
13354         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
13355         (simplify_bitwise_binary): ... this.  Handle operand conversions
13356         by applying them to the result instead.
13357         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
13358
13359 2011-05-11  Richard Guenther  <rguenther@suse.de>
13360
13361         * gimple.c (gimple_canonical_types_compatible_p): Split out
13362         from gimple_types_compatible_p and friends.  Do not recurse
13363         to pointed-to types.
13364         (gimple_canonical_type_eq): Use it.
13365         (iterative_hash_canonical_type): Split out from
13366         iterative_hash_gimple_type and friends.  Do not recurse
13367         to pointed-to types.
13368         (gimple_canonical_type_hash): Use it, allocate the hash here.
13369
13370 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13371
13372         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
13373         recognizing doloop.
13374
13375 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13376
13377         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
13378         instead of PREV_INSN.
13379
13380 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13381
13382         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
13383         * loop-doloop.c (doloop_condition_get): Likewise.
13384         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
13385         (doloop_end): New.
13386         * config/arm/arm.md (*addsi3_compare0): Remove "*".
13387
13388 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
13389
13390         * tree.def (CASE_LABEL_EXPR): Add an operand.
13391         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
13392
13393 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13394
13395         * c-decl.c (c_override_global_bindings_to_false): Remove.
13396         (global_bindings_p): Don't check
13397         c_override_global_bindings_to_false.
13398         * c-tree.h (c_override_global_bindings_to_false): Remove.
13399         * c-typeck.c (composite_type): Don't set
13400         c_override_global_bindings_to_false.
13401
13402 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
13403
13404         PR target/48857, 48495
13405         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
13406         (VSX_MODE): Ditto.
13407         (VSX_MOVE_MODE): Ditto.
13408         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
13409         VSX vector types.  Add V2DImode.
13410         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
13411         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
13412         (MODES_TIEABLE_P): Ditto.
13413
13414         * config/rs6000/rs6000.c (rs6000_emit_move): Use
13415         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
13416         VSX_VECTOR_MODE.
13417         (init_cumulative_args): Ditto.
13418         (rs6000_function_arg_boundary): Ditto.
13419         (rs6000_function_arg_advance_1): Ditto.
13420         (rs6000_function_arg): Ditto.
13421         (rs6000_function_ok_for_sibcall): Ditto.
13422         (emit_frame_save): Ditto.
13423         (rs6000_function_value): Ditto.
13424         (rs6000_libcall_value): Ditto.
13425
13426 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13427
13428         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
13429         i386/darwin-lib.h to $libgcc_tm_file.
13430         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
13431
13432 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13433
13434         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
13435
13436 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13437
13438         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
13439         * config/rs6000/rs6000-tables.opt: New file (generated).
13440         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
13441         rs6000/rs6000-tables.opt to extra_options.
13442         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
13443         * config/rs6000/rs6000.c (rs6000_select): Remove.
13444         (processor_target_table): Move contents to rs6000-cpus.def.
13445         (darwin_rs6000_override_options): Check
13446         global_options_set.x_rs6000_cpu_index instead of
13447         rs6000_select[1].string.
13448         (rs6000_option_override_internal): Likewise.
13449         (rs6000_handle_option): Don't assert that global structures are in
13450         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
13451         (rs6000_default_cpu): New variable.
13452         (rs6000_file_start): Set it instead of local default_cpu.  Check
13453         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
13454         global_options_set.x_rs6000_tune_index instead of rs6000_select.
13455         (rs6000_darwin_file_start): Check rs6000_default_cpu and
13456         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
13457         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
13458         rs6000_select): Remove.
13459         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
13460         Remove.
13461         (mcpu=, mtune=): Use Var, Init, Enum and Save.
13462         * config/rs6000/t-rs6000
13463         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
13464         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
13465         global_options_set.x_rs6000_cpu_index instead of
13466         rs6000_select[1].string.
13467         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
13468         global_options_set.x_rs6000_cpu_index instead of
13469         rs6000_select[1].string.
13470
13471 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13472
13473         * config.gcc (libgcc_tm_file): Define instead of including files
13474         from ../../libgcc/config/ in tm_file.
13475         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
13476         * configure: Regenerate.
13477         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
13478         libgcc_tm.h, cs-libgcc_tm.h): New.
13479         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
13480         (clean): Remove libgcc_tm.h.
13481         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
13482         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
13483         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
13484
13485 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
13486
13487         PR target/48896
13488         * config/avr/avr.c (avr_ret_register): Return unsigned int
13489         instead of int.
13490         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
13491         it to avr_libcall_value.
13492         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
13493         expand_expr.
13494         (avr_expand_binop_builtin): Ditto.
13495         (avr_expand_unop_builtin): Ditto.
13496
13497 2011-05-10  DJ Delorie  <dj@redhat.com>
13498
13499         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
13500         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
13501         * config/rx/rx.c (rx_align_for_label): Add label and
13502         uses_threshold parameters.  Do not align when the label is not
13503         used enough.
13504         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
13505
13506 2011-05-10  Richard Guenther  <rguenther@suse.de>
13507
13508         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
13509         a series of conversions and apply foldings similar to what
13510         fold-const does.
13511         (tree_ssa_forward_propagate_single_use_vars): Call it.
13512
13513 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
13514
13515         PR tree-optimization/48611
13516         PR tree-optimization/48794
13517         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
13518         referenced from RESX or EH_DISPATCH arguments.
13519
13520         PR debug/48928
13521         * dfp.c (decimal_to_decnumber): Handle conversion from
13522         dconst{1,2,m1,half}.
13523
13524 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13525
13526         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
13527         for !flag_prefer_avx128.
13528         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
13529
13530 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
13531
13532         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
13533         (fold_ternary_loc): Use expr_location_or.
13534
13535 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
13536
13537         PR debug/48853
13538         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
13539         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
13540         Pmode and mem_mode is not VOIDmode.
13541
13542 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
13543
13544         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
13545         TYPE_QUAL_RESTRICT): Convert to enum.
13546
13547 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13548
13549         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
13550         (const_pow2_1_to_8_operand): Ditto.
13551         (const_pow2_1_to_128_operand): Ditto.
13552         (const_pow2_1_to_32768_operand): Ditto.
13553         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
13554         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
13555         in insn constraint to check integer value of operand 3.
13556         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
13557
13558         (PINSR_MODE): New mode iterator.
13559         (sse2p4_1): New mode attribute.
13560         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
13561         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
13562         iterator.  Use const_int_operand instead of
13563         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
13564         exact_log2 in insn constraint to check integer value of operand 3.
13565
13566 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13567
13568         * config/i386/sse.md (blendbits): Remove mode attribute.
13569         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
13570         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
13571         Check integer value of operand 3 in insn constraint.
13572
13573 2011-05-09  Richard Guenther  <rguenther@suse.de>
13574
13575         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
13576         for diagnostics.
13577         (lto_symtab_merge): Likewise.  Do not register types here.
13578         (lto_symtab_merge_decls_2): Likewise.
13579         (lto_symtab_merge_decls_1): Likewise.
13580         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
13581         * gimple.c (enum gtc_mode): Declare.
13582         (gimple_types_compatible_p): Make static.
13583
13584 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13585
13586         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
13587         temporary register to match Pmode.
13588
13589 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13590
13591         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
13592         and *vec_concatv4si_1_avx.
13593
13594 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13595
13596         PR rtl-optimization/48927
13597         * ira-conflicts.c (commutative_constraint_p): Use
13598         recog_data.alternative_enabled_p to disable alternatives where
13599         "enabled" attribute is false.
13600         (get_dup_num): Ditto.
13601         * ira-lives.c (single_reg_class): Ditto.
13602         (ira_implicitly_set_insn_hard_regs): Ditto.
13603
13604 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
13605
13606         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
13607         (dataflow_set_preserve_mem_locs): Likewise.
13608
13609 2011-05-09  Philipp Thomas  <pth@suse.de>
13610
13611         * config/mep/mep.c (mep_validate_vliw): Syntax description
13612         should not be translated.
13613
13614 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
13615
13616         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
13617         * config/mips/mips-tables.opt: New file (generated).
13618         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
13619         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
13620         MIPS_ARCH_OPTION_NATIVE): Define.
13621         * config/mips/mips.c (mips_cpu_info_table): Move contents to
13622         mips-cpus.def.
13623         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
13624         mips_parse_cpu): Remove.
13625         (mips_cpu_info_from_opt, mips_default_arch): New.
13626         (mips_handle_option): Don't assert that global structures are in
13627         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
13628         (mips_option_override): Use new variables and functions to set
13629         state of these options.  Use strcmp to check for individual CPU names.
13630         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
13631         definition.
13632         * config/mips/mips.opt (march=): Use ToLower and Enum.
13633         (mips): Use ToLower, Enum and Var.
13634         (mtune=): Use ToLower and Enum.
13635         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
13636
13637 2011-05-08  Jan Hubicka  <jh@suse.cz>
13638
13639         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
13640         Arrange type pairs to be UID ordered.
13641         (gimple_lookup_type_leader): Make inline.
13642
13643 2011-05-09  Nick Clifton  <nickc@redhat.com>
13644
13645         PR target/48899
13646         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
13647         PROCESSOR_DEFAULT.
13648
13649         PR target/48897
13650         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
13651         variable 's'.
13652
13653 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
13654
13655         * combine.c (simplify_comparison): Abstract out parts into...
13656         (simplify_compare_const): ... new function.
13657         (try_combine): Generalize parallel arithmetic/compare combining
13658         to call simplify_compare_const() and CANONICALIZE_COMPARE().
13659
13660 2011-05-08  Jan Hubicka  <jh@suse.cz>
13661
13662         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
13663         (cgraph_create_virtual_clone): Call hooks once virtual clone
13664         is finished.
13665         * cgraph.h (cgraph_clone_node): Update prototype.
13666         * ipa-cp.c (ipcp_estimate_growth): Use
13667         estimate_ipcp_clone_size_and_time.
13668         * ipa-inline-transform.c (clone_inlined_nodes): Update.
13669         * lto-cgraph.c (input_node): Update.
13670         * ipa-inline.c (recursive_inlining): Update.
13671         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
13672         (evaluate_conditions_for_known_args): Break out from ...
13673         (evaluate_conditions_for_edge): ... here.
13674         (evaluate_conditions_for_ipcp_clone): New function.
13675         (inline_node_duplication_hook): Update clone summary based
13676         on parameter map.
13677         (estimate_callee_size_and_time): Rename to ...
13678         (estimate_node_size_and_time): take NODE instead of EDGE;
13679         take POSSIBLE_TRUTHS as argument.
13680         (estimate_callee_size_and_time): Update.
13681         (estimate_ipcp_clone_size_and_time): New function.
13682         (do_estimate_edge_time): Update.
13683
13684 2011-05-08  Richard Guenther  <rguenther@suse.de>
13685
13686         PR middle-end/48908
13687         PR middle-end/48905
13688         * expmed.c (expand_shift_1): Compute adjusted constant shift
13689         amount manually.
13690
13691 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
13692
13693         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
13694
13695 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
13696
13697         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
13698
13699 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
13700
13701         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
13702
13703 2011-05-07  Jan Hubicka  <jh@suse.cz>
13704
13705         * ipa-inline-transform.c (inline_call): Account when program size
13706         decreases.
13707         * ipa-inline.c (relative_time_benefit): New function.
13708         (edge_badness): Reorganize to be power 2 based; fix thinko when
13709         computing badness for negative growth; update comments to match
13710         reality; better dumps.
13711
13712 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
13713
13714         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
13715         type to bool and adjust comment.
13716         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
13717         (fold_mathfn_compare): Remove calls to global_bindings_p.
13718         (fold_inf_compare): Likewise.
13719         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
13720         * c-tree.h (global_bindings_p): Adjust prototype.
13721         * c-decl.c (global_bindings_p): Return bool and simplify.
13722
13723 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
13724
13725         PR tree-optimization/48837
13726         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
13727         when accumulator transformation is performed.
13728
13729 2011-05-06  Jan Hubicka  <jh@suse.cz>
13730
13731         * i386.h (ix86_tune_indices): Add
13732         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
13733         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
13734         * i386.c (initial_ix86_tune_features): Add
13735         X86_SOFTARE_PREFETCHING_BENEFICIAL.
13736         (software_prefetching_beneficial_p): Remove predicate.
13737         (ix86_option_override_internal): Use new macro.
13738
13739 2011-05-06  Jan Hubicka  <jh@suse.cz>
13740
13741         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
13742
13743 2011-05-06  Jan Hubicka  <jh@suse.cz>
13744
13745         * cgraph.c (cgraph_add_thunk): Create real function node instead
13746         of alias node; finalize it and mark needed/reachale; arrange visibility
13747         to be right and add it into the corresponding same comdat group list.
13748         (dump_cgraph_node): Dump thunks.
13749         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
13750         cgraph_function_with_gimple_body_p,
13751         cgraph_first_function_with_gimple_body,
13752         cgraph_next_function_with_gimple_body): New functions.
13753         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
13754         New macros.
13755         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
13756         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
13757         * cgraphunit.c (cgraph_finalize_function): Only look into possible
13758         devirtualization when optimizing.
13759         (verify_cgraph_node): Verify thunks.
13760         (cgraph_analyze_function): Analyze thunks.
13761         (cgraph_mark_functions_to_output): Output thunks only in combination
13762         with function they are assigned to.
13763         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
13764         alias into normal node.
13765         (assemble_thunks): New functoin.
13766         (cgraph_expand_function): Use it.
13767         * lto-cgraph.c (lto_output_node): Stream thunks.
13768         (input_overwrite_node): Stream in thunks.
13769         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
13770         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
13771         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
13772         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
13773         (inline_analyze_function): Do not care about thunk jump functions.
13774         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
13775         * ipa-prop.c (ipa_prop_write_jump_functions): Use
13776         cgraph_function_with_gimple_body_p.
13777         * passes.c (do_per_function_toporder): Use
13778         cgraph_function_with_gimple_body_p.
13779         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
13780         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
13781         (function_called_by_processed_nodes_p): Likewise.
13782
13783 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
13784
13785         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
13786         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
13787         entries.
13788         (mabi=): Replace with separate entries for mabi=altivec,
13789         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
13790         mabi=ieeelongdouble and mabi=ibmlongdouble.
13791         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
13792         check for -mabi=spe without SPE ABI support here.
13793         (rs6000_handle_option): Replace OPT_mabi_ handling with
13794         OPT_mabi_altivec and OPT_mabi_spe handling.
13795
13796 2011-05-06  Cary Coutant  <ccoutant@google.com>
13797
13798         * dwarf2out.c (contains_subprogram_definition): New function.
13799         (should_move_die_to_comdat): Call it.
13800
13801 2011-05-06  Jeff Law  <law@redhat.com>
13802
13803         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
13804         remove_ctrl_stmt_and_useless_edges.
13805         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
13806         (fixup_template_block, thread_single_edge): Likewise.
13807         (mark_threaded_blocks): Use THREAD_TARGET.
13808
13809 2011-05-06  Alan Modra  <amodra@gmail.com>
13810
13811         PR target/48900
13812         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
13813         const0_rtx as the arg to the dummy __tls_get_addr libcall.
13814
13815 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
13816
13817         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
13818         constraint modifier to "r".
13819
13820 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
13821
13822         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
13823         fall through for OPT_mcmodel_.
13824
13825 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13826
13827         * config/s390/s390.c (s390_asm_trampoline_template): Comment
13828         instruction sizes.
13829         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
13830
13831 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13832
13833         PR target/47930
13834         * config/arm/arm.opt (marm): Document it.
13835         (mthumb): Reject negative variant.
13836
13837 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
13838
13839         PR target/48898
13840         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
13841         Fix typo in "ccvt" variable name.
13842
13843 2011-05-06  Tristan Gingold  <gingold@adacore.com>
13844
13845         PR target/48895
13846         * config/vms/vms-ar.c (main): Remove cwd variable.
13847
13848 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
13849
13850         PR debug/48902
13851         * var-tracking.c (prepare_call_arguments): Move else before #endif.
13852
13853 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
13854
13855         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
13856         * gimplify.c (gimplify_switch_expr): Likewise.
13857         * omp-low.c (expand_omp_sections): Likewise.
13858         * tree-eh.c (lower_try_finally_switch): Likewise.
13859         (lower_eh_dispatch): Likewise.
13860         * tree.h (build_case_label): Declare.
13861         * tree.c (build_case_label): Define.
13862
13863 2011-05-05  Jason Merrill  <jason@redhat.com>
13864
13865         PR c++/40975
13866         * tree-inline.c (copy_tree_r): Use copy_statement_list.
13867         (copy_statement_list): Don't recurse.
13868         * stor-layout.c (copy_self_referential_tree_r): Don't allow
13869         STATEMENT_LIST.
13870
13871 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
13872
13873         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
13874         through from -mfpu= handling.
13875         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
13876
13877 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
13878
13879         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
13880         POST_MODIFY.
13881
13882 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
13883
13884         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
13885         for 11.31.
13886         (hppa[12]*-*-hpux11*): Ditto.
13887         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
13888         * config/ia64/hpux-unix2003.h: New.
13889         * config/pa/pa-hpux1131.opt: New.
13890         * config/pa/pa-hpux1131.h: New.
13891         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
13892         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
13893         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
13894
13895 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
13896
13897         PR debug/48853
13898         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
13899         instead of mode as 3rd argument to recursive call.
13900         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
13901         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
13902         VOIDmode.
13903         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
13904         don't give up if mode is Pmode and mem_mode is not VOIDmode.
13905         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
13906         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
13907
13908 2011-05-05  Julian Brown  <julian@codesourcery.com>
13909
13910         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
13911         parenthesis in D-register case.
13912
13913 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
13914
13915         * opt-functions.awk (var_type_struct): Handle Enum options.
13916         * optc-gen.awk: Don't check range of variables of character type.
13917         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
13918         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
13919         rs6000_sdata_name, rs6000_explicit_options): Remove.
13920         (rs6000_option_override_internal): Check for -malign-power here.
13921         Use global_options_set instead of rs6000_explicit_options.
13922         (rs6000_parse_fpu_option): Remove.
13923         (rs6000_handle_option): Access variables via opts and opts_set
13924         pointers.  Use error_at and warning_at.  Add fall-through
13925         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
13926         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
13927         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
13928         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
13929         here.  Don't use rs6000_parse_fpu_option.
13930         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
13931         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
13932         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
13933         (mrecip=): Use Var.
13934         (mspe): Use Var and Save.
13935         (mtraceback=): Use Enum and Var.
13936         (rs6000_traceback_type): New Enum and EnumValue entries.
13937         (mfloat-gprs=): Use Enum, Var and Save.
13938         (rs6000_float_gprs): New Enum and EnumValue entries.
13939         (mlong-double-): use Var and Save.
13940         (msched-costly-dep=, minsert-sched-nops=): Use Var.
13941         (malign-): Use Enum and Var.
13942         (rs6000_alignment_flags): New Enum and EnumValue entries.
13943         (mfpu=): Use Enum.
13944         (fpu_type_t): New Enum and EnumValue entries.
13945         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13946         global_options_set instead of rs6000_explicit_options.
13947         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13948         global_options_set instead of rs6000_explicit_options.
13949         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13950         global_options_set instead of rs6000_explicit_options.
13951         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13952         global_options_set instead of rs6000_explicit_options.
13953         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
13954         global_options_set instead of rs6000_explicit_options.
13955         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13956         global_options_set instead of rs6000_explicit_options.
13957         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
13958         definition.
13959         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13960         global_options_set instead of rs6000_explicit_options.
13961         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
13962         (rs6000_cmodel): New Enum and EnumValue entries.
13963         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13964         global_options_set instead of rs6000_explicit_options.
13965         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
13966         (mtls-size=): Use Enum and Var.
13967         (rs6000_tls_size): New Enum and EnumValue entries.
13968
13969 2011-05-05  Michael Matz  <matz@suse.de>
13970
13971         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
13972         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
13973         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
13974         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
13975         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
13976         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
13977         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
13978         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
13979         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
13980         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
13981         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
13982         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
13983         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
13984         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
13985         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
13986         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
13987
13988 2011-05-05  Richard Guenther  <rguenther@suse.de>
13989
13990         * expmed.c (expand_variable_shift): Rename to ...
13991         (expand_shift_1): ... this.  Take an expanded shift amount.
13992         For rotates recurse directly not building trees for the shift amount.
13993         (expand_variable_shift): Wrap around expand_shift_1.
13994         (expand_shift): Adjust.
13995
13996 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
13997
13998         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
13999
14000 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
14001
14002         * tree.h (get_pending_sizes): Remove prototype.
14003         (put_pending_size): Likewise.
14004         (put_pending_sizes): Likewise.
14005         * stor-layout.c (pending_sizes): Delete.
14006         (get_pending_sizes): Likewise.
14007         (put_pending_size): Likewise.
14008         (put_pending_sizes): Likewise.
14009         (variable_size): Do not call put_pending_size and tidy up.
14010         * function.h (struct function): Remove dont_save_pending_sizes_p.
14011         * lto-streamer-in.c (input_function): Do not stream it.
14012         * lto-streamer-out.c (output_function): Likewise.
14013         * tree-inline.c (initialize_cfun): Do not copy it.
14014         * c-decl.c (store_parm_decls): Do not set it.
14015         * omp-low.c (create_task_copyfn): Likewise.
14016         * tree-optimize.c (tree_rest_of_compilation): Likewise.
14017
14018 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
14019
14020         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
14021         conditions.
14022         (*movdf_internal): Ditto.
14023         (*movdf_internal_nointeger): Ditto.
14024         (*movsf_internal): Ditto.
14025
14026 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14027
14028         * c-decl.c (finish_decl): Don't call get_pending_sizes.
14029         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
14030         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
14031         (c_variable_size): Remove.
14032         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
14033         call put_pending_sizes.
14034         (get_parm_info): Add parameter expr.  Use it to set
14035         arg_info->pending_sizes.
14036         (store_parm_decls): Use arg_info->pending_sizes instead or calling
14037         get_pending_sizes.
14038         * c-parser.c (c_parser_parms_declarator): Update call to
14039         c_parser_parms_list_declarator.
14040         (c_parser_parms_list_declarator): Take parameter expr.  Update
14041         call to push_parm_decl.  Update recursive call.  Don't call
14042         get_pending_sizes.  Update calls to get_parm_info.
14043         (c_parser_objc_method_definition): Update calls to
14044         c_parser_objc_method_decl and objc_start_method_definition.
14045         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
14046         (c_parser_objc_method_decl): Add parameter expr.  Update call to
14047         grokparm.
14048         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
14049         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
14050         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
14051
14052 2011-05-05  Michael Hope  <michael.hope@linaro.org>
14053
14054         PR pch/45979
14055         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
14056         __ARM_EABI__ hosts.
14057
14058 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14059
14060         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
14061         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
14062         (spu_output_mi_thunk): New function.
14063
14064 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14065
14066         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
14067         targetm.asm_out.print_operand.
14068         * config/sol2.c: Include target.h.
14069
14070 2011-05-04  Jan Hubicka  <jh@suse.cz>
14071
14072         * ipa-inline.c (reset_edge_caches): New function.
14073         (update_caller_keys): Add check_inlinablity_for; do not
14074         reset edge caches; remove now unnecesary loop.
14075         (update_callee_keys): Add comments; reset node_growth_cache of callee.
14076         (update_all_callee_keys): Likewise.
14077         (inline_small_functions): Sanity check cache; update code
14078         recomputing it.
14079
14080 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
14081
14082         PR rtl-optimization/47612
14083         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
14084         as the last insn of the sequence to be moved.
14085
14086 2011-05-04  Tobias Burnus  <burnus@net-b.de>
14087
14088         PR fortran/48864
14089         * doc/invoke.texi (Ofast): Document that it
14090         enables Fortran's -fno-protect-parens.
14091
14092 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
14093
14094         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
14095
14096 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
14097
14098         * stor-layout.c (variable_size): Do not issue errors.
14099
14100 2011-05-04  Richard Guenther  <rguenther@suse.de>
14101
14102         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
14103         for array-ref indices.
14104         (tree_coverage_counter_addr): Likewise.
14105         (build_fn_info_type): Use size_int for index types.
14106         (build_gcov_info): Likewise.
14107
14108 2011-05-04  Richard Guenther  <rguenther@suse.de>
14109
14110         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
14111         to build_int_cst.
14112         * c-typeck.c (really_start_incremental_init): Use bitsize_int
14113         for constructor indices.
14114         (push_init_level): Likewise.
14115
14116 2011-05-04  Richard Guenther  <rguenther@suse.de>
14117
14118         * explow.c (promote_mode): Move variable declarations before code.
14119
14120 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
14121
14122         * tree.h (build_function_type_array): Declare.
14123         (build_varargs_function_type_array): Declare.
14124         (build_function_type_vec, build_varargs_function_type_vec): Define.
14125         * tree.c (build_function_type_array_1): New function.
14126         (build_function_type_array): New function.
14127         (build_varargs_function_type_array): New function.
14128
14129 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
14130
14131         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
14132         before setting STMT_VINFO_TYPE.
14133
14134 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14135
14136         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
14137         instead of spu_pass_by_reference.
14138
14139 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14140
14141         * calls.c (emit_library_call_value_1): Invoke
14142         promote_function_mode hook on libcall arguments.
14143         * explow.c (promote_function_mode, promote_mode): Handle TYPE
14144         argument being NULL.
14145         * targhooks.c (default_promote_function_mode): Lisewise.
14146         * config/s390/s390.c (s390_promote_function_mode): Likewise.
14147         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
14148
14149         * doc/tm.texi: Document that TYPE argument might be NULL.
14150
14151 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14152
14153         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
14154
14155 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14156
14157         From Bernd Schmidt
14158         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
14159
14160 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14161
14162         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
14163         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
14164         Move ...
14165         * mips-tfile.c: ... here.
14166         Don't include coretypes.h, tm.h, filenames.h.
14167         (saber_stop): Remove definition and all calls.
14168         [__SABER__]: Remove.
14169         (__LINE__): Remove default.
14170         (Size_t, Ptrdiff_t): Remove definitions.
14171         Replace by size_t, ptrdiff_t.
14172         [!MIPS_DEBUGGING_INFO]: Remove.
14173         (SHASH_SIZE, THASH_SIZE): Remove defaults.
14174         (progname): Add const.
14175         (STATIC): Remove.
14176         Replace all uses by static.
14177         (ALIGN_SYMTABLE_OFFSET): Remove default.
14178         * mips-tdump.c: Don't include coretypes.h, tm.h.
14179         Remove !MIPS_IS_STAB guard.
14180         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
14181         $(TM_H), filenames.h dependencies.
14182         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
14183
14184 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14185
14186         From Jie Zhang
14187         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
14188         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
14189
14190 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14191
14192         From Bernd Schmidt
14193         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
14194         account and save/restore RETS.
14195         (PROFILE_BEFORE_PROLOGUE): Define.
14196         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
14197         the push insn to use predecrement.
14198
14199 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14200
14201         From Jie Zhang
14202         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
14203
14204 2011-05-04  Nick Clifton  <nickc@redhat.com>
14205
14206         * config/mn10300/mn10300.c: Include cfgloop.h.
14207         (DUMP): New macro.
14208         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
14209         Lcc or a FLcc insn into the instruction stream.
14210         (mn10300_block_contains_call): New function.  Returns true if the
14211         given basic block contains a CALL insn.
14212         (mn10300_loop_contains_call_insn): New function.  Returns true if
14213         the given loop contains a CALL insn.
14214         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
14215         to use the SETLB and Lcc or FLcc insns.
14216         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
14217         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
14218         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
14219         disable the SETLB optimization.
14220         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
14221         __SETLB__ or __NO_SETLB__.
14222         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
14223         (movsf_internal): Handle MDR register.
14224         (cmpsi): Make visible.
14225         (setlb): New pattern.
14226         (Lcc): New pattern.
14227         (FLcc): New pattern.
14228
14229 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
14230
14231         PR target/48860
14232         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
14233         for reg<->xmm moves.
14234         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
14235         (vec_concatv2di_rex64_sse): Ditto.
14236         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
14237         (*vec_extractv2di_1_rex64): Ditto.
14238
14239         Revert:
14240         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
14241
14242         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
14243         reg<->xmm moves.
14244         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
14245
14246 2011-05-04  Richard Guenther  <rguenther@suse.de>
14247
14248         * tree.h (int_const_binop): Remove notrunc argument.
14249         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
14250         create integer constants that are properly truncated.
14251         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
14252         (const_binop): Remove zero notrunc argument to int_const_binop.
14253         (size_binop_loc): Likewise.
14254         (fold_div_compare): Likewise.
14255         (maybe_canonicalize_comparison_1): Likewise.
14256         (fold_comparison): Likewise.
14257         (fold_binary_loc): Likewise.
14258         (multiple_of_p): Likewise.
14259         * expr.c (store_constructor): Likewise.
14260         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
14261         (maybe_fold_stmt_addition): Likewise.
14262         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
14263         * stor-layout.c (layout_type): Likewise.
14264         * tree-data-ref.c (tree_fold_divides_p): Likewise.
14265         * tree-sra.c (build_ref_for_offset): Likewise.
14266         (build_user_friendly_ref_for_offset): Likewise.
14267         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
14268         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
14269         * tree-ssa-loop-niter.c (inverse): Likewise.
14270         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
14271         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
14272         * tree-switch-conversion.c (check_range): Likewise.
14273         (build_constructors): Likewise.
14274         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
14275         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
14276         (extract_range_from_assert): Likewise.
14277         (vrp_int_const_binop): Likewise.
14278         (extract_range_from_binary_expr): Likewise.
14279         (extract_range_from_unary_expr): Likewise.
14280         (check_array_ref): Likewise.
14281         (find_case_label_range): Likewise.
14282         (simplify_div_or_mod_using_ranges): Likewise.
14283         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
14284         comparing case labels for merging.
14285
14286 2011-05-03  Mark Wielaard  <mjw@redhat.com>
14287
14288         * dwarf2out.c (debug_str_hash_forced): Removed.
14289         (gen_label_for_indirect_string): Removed.
14290         (get_debug_string_label): Removed.
14291         (AT_string_form): Generate label directly.
14292         (output_indirect_string): Test indirect_string_node for
14293         DW_FORM_strp instead of checking label and refcount.
14294         (prune_indirect_string): Removed.
14295         (prune_unused_types): Don't check debug_str_hash_forced or
14296         call prune_indirect_string.
14297
14298 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
14299
14300         PR other/48093
14301         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
14302
14303 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
14304
14305         PR debug/47994
14306         PR debug/47919
14307         * combine.c (try_combine): Skip debug insns at m_split tests.
14308
14309 2011-04-26  Mark Wielaard  <mjw@redhat.com>
14310
14311         PR42288
14312         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
14313         when info_section_emitted.
14314
14315 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
14316
14317         * config/mips/mips-opts.h: New.
14318         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
14319         to mips-opts.h.
14320         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
14321         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
14322         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
14323         via opts pointer.
14324         * config/mips/mips.h (enum mips_code_readable_setting): Move to
14325         mips-opts.h.
14326         (mips_abi, mips_code_readable): Don't declare.
14327         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
14328         (mabi=): Use Enum and Var.
14329         (mips_abi): New Enum and EnumValue entries.
14330         (mcode-readable=): Use Enum and Var.
14331         (mips_code_readable_setting): New Enum and EnumValue entries.
14332         (mr10k-cache-barrier=): Use Enum and Var.
14333         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
14334
14335 2011-05-03  Jan Hubicka  <jh@suse.cz>
14336
14337         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
14338         replace hash by pointer map.
14339         (cgraph_node_set_element_def, cgraph_node_set_element,
14340         const_cgraph_node_set_element, varpool_node_set_element_def,
14341         varpool_node_set_element, const_varpool_node_set_element): Remove.
14342         (free_cgraph_node_set, free_varpool_node_set): New function.
14343         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
14344         * tree-emutls.c: Free varpool node set.
14345         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
14346         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
14347         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
14348         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
14349         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
14350         Move here from ipa.c; implement using pointer_map
14351         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
14352         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
14353         debug_cgraph_node_set, varpool_node_set_new,
14354         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
14355         dump_varpool_node_set, debug_varpool_node_set):
14356         Move to ipa-uitls.c.
14357         * passes.c (ipa_write_summaries): Update.
14358
14359 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14360
14361         From Mike Frysinger:
14362         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
14363         bf542/bf544/bf547/bf548/bf549.
14364
14365 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
14366
14367         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
14368
14369 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14370
14371         From Bernd Schmidt:
14372         * config/bfin/bfin.md (MOVCC): New mode_macro.
14373         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
14374         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
14375         comments from generated assembly.
14376
14377 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14378
14379         From Bernd Schmidt
14380         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
14381         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
14382         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
14383         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
14384         * config/bfin/lib1funcs.asm (___muldi3): New function.
14385
14386 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14387
14388         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
14389         build_function_type_list instead of build_function_type.
14390         Rearrange initialization of `args' to do so.
14391
14392 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14393
14394         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
14395         instead of build_function_type.
14396
14397 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14398
14399         * config/rs6000/rs6000.c (spe_init_builtins): Call
14400         build_function_type_list instead of build_function_type.
14401         (paired_init_builtins, altivec_init_builtins): Likewise.
14402         (builtin_function_type): Likewise.
14403
14404 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14405
14406         * config/sh/sh.c (sh_media_init_builtins): Call
14407         build_function_type_list instead of build_function_type.
14408
14409 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14410
14411         * config/sparc/sparc.c (sparc_file_end): Call
14412         build_function_type_list instead of build_function_type.
14413
14414 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14415
14416         * config/alpha/alpha.c (alpha_init_builtins): Call
14417         build_function_type_list instead of build_function_type.
14418
14419 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14420
14421         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
14422         build_function_type_list instead of build_function_type.
14423
14424 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14425
14426         * config/iq2000/i2000.c (iq2000_init_builtins): Call
14427         build_function_type_list instead of build_function_type.
14428         Delete `endlink' variable.
14429
14430 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14431
14432         * config/avr/avr.c (avr_init_builtins): Call
14433         build_function_type_list instead of build_function_type.
14434
14435 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14436
14437         * config/picochip/picochip.c (picochip_init_builtins): Call
14438         build_function_type_list instead of build_function_type.
14439         Delete `endlink' variable.
14440
14441 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14442
14443         * config/bfin/bfin.c (bfin_init_builtins): Call
14444         build_function_type_list instead of build_function_type.
14445
14446 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14447
14448         From Bernd Schmidt
14449         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
14450         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
14451
14452 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14453
14454         From Jie Zhang:
14455         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
14456         libbffastfp overrides libgcc when -mfast-fp.
14457
14458 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14459
14460         Originally from Bernd Schmidt
14461         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
14462         * config/bfin/bfin.c (override_options): Test it and error if
14463         TARGET_FDPIC.
14464
14465 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14466
14467         Originally From Bernd Schmidt
14468         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
14469         FD-PIC.
14470
14471 2011-05-03  Jeff Law  <law@redhat.com>
14472
14473         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
14474         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
14475         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
14476         than accessing AUX field directly.  Free the AUX field before
14477         clearing it.
14478         (thread_block, thread_through_loop_header): Likewise.
14479         (thread_single_edge, mark_threaded_blocks): Likewise.
14480         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
14481         (register_jump_thread): Do not attempt to thread to a NULL edge.
14482
14483 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
14484
14485         * function.c (init_function_start): Call decide_function_section.
14486         * varasm.c (decide_function_section): New function.
14487         (assemble_start_function): When not using
14488         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
14489         or first_function_block_is_cold.
14490         * rtl.h (decide_function_section): Declare.
14491
14492 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
14493             Jakub Jelinek  <jakub@redhat.com>
14494
14495         PR target/48774
14496         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
14497         only succeed if req_mode is the same as set_mode.
14498
14499 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
14500
14501         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
14502         * genemit.c (gen_exp): Handle RETURN.
14503         * emit-rtl.c (verify_rtx_sharing): Likewise.
14504         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
14505         * rtl.c (copy_rtx): RETURN is shared.
14506         * rtl.h (enum global_rtl_index): Add GR_RETURN.
14507         (ret_rtx): New.
14508         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
14509         * config/s390/s390.c (s390_emit_epilogue): Likewise.
14510         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
14511         * config/cris/cris.c (cris_expand_return): Likewise.
14512         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
14513         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
14514         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
14515         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
14516         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
14517         Likewise.
14518         * config/v850/v850.c (expand_epilogue): Likewise.
14519         * config/bfin/bfin.c (bfin_expand_call): Likewise.
14520         * config/arm/arm.md (epilogue): Likewise.
14521         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
14522         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
14523         variable to ret_reg.
14524
14525 2011-05-03  Richard Guenther  <rguenther@suse.de>
14526
14527         PR lto/48846
14528         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
14529         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
14530         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
14531
14532 2011-05-03  Richard Guenther  <rguenther@suse.de>
14533
14534         * c-decl.c (grokdeclarator): Instead of looking at
14535         TREE_OVERFLOW check if the constant fits in the index type.
14536
14537 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
14538
14539         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
14540         (vec_store_lanes<mode><mode>): Likewise.
14541
14542 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
14543
14544         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
14545         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
14546         convert_optab_index values.
14547         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
14548         * genopinit.c (optabs): Initialize the new optabs.
14549         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
14550         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
14551         (expand_STORE_LANES): New functions.
14552         * tree.h (build_array_type_nelts): Declare.
14553         * tree.c (build_array_type_nelts): New function.
14554         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
14555         (vect_model_load_cost): Likewise.
14556         (vect_store_lanes_supported, vect_load_lanes_supported)
14557         (vect_record_strided_load_vectors): Declare.
14558         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
14559         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
14560         (vect_transform_strided_load): Split out statement recording into...
14561         (vect_record_strided_load_vectors): ...this new function.
14562         * tree-vect-stmts.c (create_vector_array, read_vector_array)
14563         (write_vector_array, create_array_ref): New functions.
14564         (vect_model_store_cost): Add store_lanes_p argument.
14565         (vect_model_load_cost): Add load_lanes_p argument.
14566         (vectorizable_store): Try to use store-lanes functions for
14567         interleaved stores.
14568         (vectorizable_load): Likewise load-lanes and loads.
14569         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
14570         to vect_model_store_cost.
14571         (vect_build_slp_tree): Likewise vect_model_load_cost.
14572
14573 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
14574
14575         * hooks.h (hook_bool_mode_uhwi_false): Declare.
14576         * hooks.c (hook_bool_mode_uhwi_false): New function.
14577         * target.def (array_mode_supported_p): New hook.
14578         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
14579         * doc/tm.texi: Regenerate.
14580         * stor-layout.c (mode_for_array): New function.
14581         (layout_type): Use it.
14582         * config/arm/arm.c (arm_array_mode_supported_p): New function.
14583         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
14584
14585 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
14586
14587         PR target/48723
14588         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
14589         for -fstack-check if the size to allocate is negative.
14590
14591 2011-05-02  Lawrence Crowl  <crowl@google.com>
14592
14593         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
14594         (timevar_cond_start): New for starting a timer only when it is not
14595         already running.
14596         (timevar_cond_stop): New for stopping a timer when it was not already
14597         running.
14598
14599         * timevar.c (timevar_stop): Enable start/stop timers to start again.
14600         (timevar_cond_start): New as above.
14601         (timevar_cond_stop): New as above.
14602
14603         * timevar.def: Add start/stop timers for compiler phases,
14604         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
14605         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
14606         and TV_PHASE_FINALIZE.
14607         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
14608         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
14609         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
14610         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
14611         Make unused TV_OVERLOAD into a start/stop timer.
14612
14613         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
14614         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
14615         to indicate that they are start/stop timers.
14616
14617         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
14618         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
14619         Move initialization to do_compile.
14620         (do_compile): Add initialization from above.
14621         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
14622
14623         * c-decl.c (c_write_global_declarations): Add start/stop of
14624         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
14625
14626         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
14627         or TV_PARSE_INLINE, as appropriate.
14628         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
14629         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
14630
14631 2011-05-02  Jason Merrill  <jason@redhat.com>
14632
14633         PR c++/40975
14634         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
14635
14636 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
14637
14638         PR c/35445
14639         * c-decl.c (finish_decl): Only create a composite if the types are
14640         compatible.
14641
14642 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
14643
14644         * config/fr30/fr30-protos.h (Mmode): Don't define.
14645         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
14646         definition where used.
14647         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
14648         define.  Expand definitions where used.
14649         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
14650         Expand definitions where used.
14651         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
14652         rx_function_arg, rx_function_arg_advance,
14653         rx_function_arg_boundary): Expand definitions of those macros.
14654         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
14655         definition where used.
14656
14657 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
14658
14659         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
14660         reg<->xmm moves.
14661         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
14662         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
14663         with *movv2sf_internal_rex64_avx.
14664         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
14665         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
14666         Use %v prefix in insn mnemonic to handle TARGET_AVX.
14667         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
14668         "vex" in "prefix" attribute calculation.
14669         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
14670
14671 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
14672
14673         PR target/47951
14674         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
14675         inputs match the output.
14676
14677 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
14678
14679         PR target/47955
14680         * config/m68k/m68k.c (m68k_expand_prologue): Set
14681         current_function_static_stack_size.
14682
14683 2011-05-02   Jan Hubicka  <jh@suse.cz>
14684
14685         * lto-streamer.c (lto_streamer_cache_insert_1,
14686         lto_streamer_cache_lookup, lto_streamer_cache_create,
14687         lto_streamer_cache_delete): Use pointer map instead of hashtable.
14688         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
14689
14690 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
14691
14692         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
14693         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
14694         config/m68k/t-opts: New files.
14695         * config/m68k/m68k-tables.opt: New file (generated).
14696         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
14697         extra_options and m68k/t-opts to tmake_file.
14698         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
14699         (all_isas): Initialize using m68k-isas.def.
14700         (all_microarchs): Initialize using m68k-microarchs.def.
14701         (m68k_find_selection): Remove.
14702         (m68k_handle_option): Don't assert that global structures are in
14703         use.  Use error_at.  Access variables via opts pointer.  Don't
14704         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
14705         directly for -m68020-40 and -m68020-60.
14706         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
14707         m68k_tune_entry here.
14708         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
14709         to m68k-opts.h.
14710         (m68k_library_id_string): Remove declaration.
14711         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
14712         (m68k_library_id_string): New Variable.
14713         (march=, mcpu=, mtune=): Use Enum and Var.
14714
14715 2011-05-02  Richard Guenther  <rguenther@suse.de>
14716
14717         * varasm.c (output_constructor_regular_field): Compute zero-based
14718         index with double-ints.  Make sure to ICE instead of producing
14719         wrong code.
14720         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
14721         in asserts.  Properly use a signed type.
14722
14723 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
14724
14725         * config/i386/sse.md (V): New mode iterator.
14726         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
14727         TARGET_SSE2.
14728         (V_256): Rename from AVX256MODE.
14729         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
14730         condition to all users.
14731         (VF1): Ditto.
14732         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
14733         condition to all users.
14734         (VF_128): Make V4SF mode unconditional.
14735         (VF_256): Rename from AVX256MODEF2P.
14736         (VI4F_128): Rename from SSEMODE4S.
14737         (VI8F_128): Rename from SSEMODE2D.
14738         (VI4F_256): Rename from AVX256MODE8P.
14739         (VI8F_256): Rename from AVX256MODE4P.
14740         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
14741         (ssescalarmodesuffix): Remove SF and DF modes.
14742         (SSEMODE124): Remove.
14743         (SSEMODE1248): Ditto.
14744         (SSEMODEF2P): Ditto.
14745         (AVXMODEF2P): Ditto.
14746         (AVXMODEFDP): Ditto.
14747         (AVXMODEFSP): Ditto.
14748         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
14749         unconditional.
14750         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
14751         unconditional.
14752         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
14753         xop_pcmov_<mode>256.  Use V mode iterator.
14754
14755         Adjust RTX patterns globally for renamed mode attributes.
14756
14757 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14758
14759         * haifa-sched.c (sched_emit_insn): Emit insn before first
14760         non-scheduled insn.  Inform back-end about new insn.  Add
14761         new insn to scheduled_insns list.
14762
14763 2011-05-02  Richard Guenther  <rguenther@suse.de>
14764
14765         PR tree-optimization/48822
14766         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
14767         (process_scc): Indicate which iteration we start.
14768
14769 2011-05-02  Jan Hubicka  <jh@suse.cz>
14770
14771         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
14772         (lto_section_overrun): New.
14773         * lto-section-out.c (append_block): Rename to ...
14774         (lto_append_block): ... this one; export.
14775         (lto_output_1_stream): Move lto lto-streamer.h
14776         (lto_output_data_stream): Update.
14777         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
14778         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
14779         functions.
14780
14781 2011-05-02  Richard Guenther  <rguenther@suse.de>
14782
14783         * tree.c (tree_code_counts): New global array.
14784         (record_node_allocation_statistics): Count individual tree codes.
14785         (dump_tree_statistics): Dump individual code stats.
14786
14787 2011-05-01  Jan Hubicka  <jh@suse.cz>
14788
14789         * ipa-inline.c (caller_growth_limits): Fix thinko when
14790         looking for largest stack frame.
14791         * ipa-inline.h (dump_inline_summary): Declare.
14792         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
14793         on stack usage.
14794         (dump_inline_summary): Export.
14795         (debug_inline_summary): Declare as DEBUG_FUNCTION.
14796
14797 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
14798
14799         * reginfo.c (memory_move_cost): Change rclass argument type form
14800         'enum reg_class' to reg_class_t.
14801         * reload.h (memory_move_cost): Update prototype.
14802         * postreload.c reload_cse_simplify_set): Change type dclass var to
14803         reg_class_t.
14804         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
14805         Update prototype.
14806         (ira_allocate_and_set_costs): Change aclass argument type form
14807         'enum reg_class' to reg_class_t.
14808         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
14809         Change aclass argument type to reg_class_t.
14810         (update_conflict_hard_reg_costs): Change type aclass and pref vars
14811         to reg_class_t.
14812         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
14813         memory_move_cost call.
14814
14815         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
14816         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
14817         Change type tmp var to reg_class_t.
14818
14819 2011-04-30  Jan Hubicka  <jh@suse.cz>
14820
14821         * ipa-inline.c (can_inline_edge_p): Disregard limits when
14822         inlining into function with flatten attribute.
14823         (want_inline_small_function_p): Be more realistic about inlining
14824         cold calls where callee size grows.
14825
14826 2011-04-30  Jan Hubicka  <jh@suse.cz>
14827
14828         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
14829         flags.
14830
14831 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
14832
14833         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
14834         PRINT_OPERAND_PUNCT_VALID_P): Remove.
14835         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
14836         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
14837         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14838         (print_operand): Rename to...
14839         (sparc_print_operand): ...this. Make static. Adjust
14840         sparc_print_operand function call.
14841         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
14842         functions.
14843
14844 2011-04-30  Jan Hubicka  <jh@suse.cz>
14845
14846         PR middle-end/48752
14847         * ipa-inline.c (early_inliner): Disable when doing late
14848         addition of function.
14849
14850 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
14851
14852         * dwarf2out.c (get_address_mode): New inline.
14853         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
14854         if not dwarf_strict emit
14855         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
14856         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
14857         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
14858         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
14859         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
14860         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
14861         mem_loc_descriptor callers.
14862         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14863         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
14864         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
14865         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
14866         (base_types): New variable.
14867         (get_base_type_offset, calc_base_type_die_sizes,
14868         base_type_for_mode, mark_base_types, base_type_cmp,
14869         move_marked_base_types): New functions.
14870         (calc_die_sizes): Assert that die_offset is 0 or equal to
14871         next_die_offset.
14872         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
14873         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
14874         callers.  If not dwarf_strict, call mem_loc_descriptor even for
14875         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
14876         (gen_subprogram_die): Don't give up on call site parameters
14877         with non-integral or large integral modes.  Adjust
14878         mem_loc_descriptor callers.
14879         (prune_unused_types): Call prune_unused_types_mark on base_types
14880         vector entries.
14881         (resolve_addr): Call mark_base_types.
14882         (dwarf2out_finish): Call move_marked_base_types.
14883
14884         PR tree-optimization/48809
14885         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
14886         type.
14887         (gen_inbound_check): Don't compute index_expr - range_min in utype
14888         again, instead reuse SSA_NAME initialized in build_arrays.
14889         Remove two useless gsi_for_stmt calls.
14890
14891 2011-04-29  Jeff Law  <law@redhat.com>
14892
14893         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
14894
14895 2011-04-29  Martin Jambor  <mjambor@suse.cz>
14896
14897         * cgraph.h (cgraph_postorder): Remove declaration.
14898         * ipa-utils.h (ipa_free_postorder_info): Declare.
14899         (ipa_reverse_postorder): Likewise.
14900         * cgraphunit.c: Include ipa-utils.h.
14901         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
14902         * ipa-inline.c: Include ipa-utils.h.
14903         (ipa_inline): Update call to ipa_reverse_postorder.
14904         * ipa-pure-const.c (propagate_pure_const): Update call to
14905         ipa_reduced_postorder and ipa_print_order.  Call
14906         ipa_free_postorder_info to clean up.
14907         (propagate_nothrow): Likewise.
14908         * ipa-reference.c (propagate): Removed a useless call to
14909         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
14910         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
14911         * ipa.c: Include ipa-utils.h.
14912         (ipa_profile): Update call to ipa_reverse_postorder.
14913         (cgraph_postorder): Moved to...
14914         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
14915         (ipa_utils_print_order): Renamed to ipa_print_order.
14916         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
14917         comments.
14918         (ipa_free_postorder_info): New function.
14919         * passes.c: Include ipa-utils.h.
14920         (do_per_function_toporder): Update call to ipa_reverse_postorder.
14921         (ipa_write_summaries): Likewise.
14922         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
14923         (cgraphunit.o): Likewise.
14924         (ipa.o): Likewise.
14925         (ipa-inline.o): Likewise.
14926
14927 2011-04-29  Jan Hubicka  <jh@suse.cz>
14928
14929         * gcc.dg/tree-ssa/inline-10.c: New testcase.
14930         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
14931         * ipa-inline.h (clause_t): Turn into unsigned int.
14932         * ipa-inline-analysis.c (add_clause): Do more simplification.
14933         (and_predicates): Shortcut more cases.
14934         (predicates_equal_p): Move forward; check that clauses are properly
14935         ordered.
14936         (or_predicates): Shortcut more cases.
14937         (edge_execution_predicate): Rewrite as...
14938         (set_cond_stmt_execution_predicate): ... this function; handle
14939         __builtin_constant_p.
14940         (set_switch_stmt_execution_predicate): New .
14941         (compute_bb_predicates): New.
14942         (will_be_nonconstant_predicate): Update TODO.
14943         (estimate_function_body_sizes): Use compute_bb_predicates
14944         and free them later, always try to estimate if stmt is constant.
14945         (estimate_time_after_inlining, estimate_size_after_inlining):
14946         Gracefully handle optimized out edges.
14947         (read_predicate): Fix off by one error.
14948
14949 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
14950
14951         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
14952
14953 2011-04-27  Xinliang David Li  <davidxl@google.com>
14954
14955         * tree-profile.c (init_ic_make_global_vars): Set
14956         tls attribute on ic vars.
14957         * coverage.c (coverage_end_function): Initialize
14958         function_list with zero.
14959
14960 2011-04-29  Richard Guenther  <rguenther@suse.de>
14961
14962         * builtins.c (fold_builtin_classify_type): Use integer_type_node
14963         for the type of the result.
14964         (fold_builtin_isascii): Likewise.
14965         (fold_builtin_toascii): Use integer_type_node where appropriate.
14966         (fold_builtin_logb): Likewise.
14967         (fold_builtin_frexp): Likewise.
14968         (fold_builtin_strstr): Likewise.
14969         (fold_builtin_strpbrk): Likewise.
14970         (fold_builtin_fputs): Likewise.
14971         (fold_builtin_sprintf): Likewise.
14972         (fold_builtin_snprintf): Likewise.
14973         (fold_builtin_printf): Likewise.
14974         (do_mpfr_remquo): Use a proper type for the assigned constant.
14975         (do_mpfr_lgamma_r): Likewise.
14976         * dwarf2out.c (resolve_one_addr): Use size_int.
14977         * except.c (init_eh): Likewise.
14978         (assign_filter_values): Use integer_type_node for filter values.
14979         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
14980         indices.
14981         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
14982         for EH region numbers.
14983         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
14984         for the shift amount.
14985
14986 2011-04-29  Richard Guenther  <rguenther@suse.de>
14987
14988         * expr.h (expand_shift): Rename to ...
14989         (expand_variable_shift): ... this.
14990         (expand_shift): Take a constant shift amount.
14991         * expmed.c (expand_shift): Rename to ...
14992         (expand_variable_shift): ... this.
14993         (expand_shift): New wrapper around expand_variable_shift.
14994         * expr.c (convert_move, emit_group_load_1, emit_group_store,
14995         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
14996         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
14997         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
14998         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
14999         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
15000         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
15001         emit_store_flag_1, emit_store_flag): Likewise.
15002         * builtins.c (expand_builtin_signbit): Likewise.
15003         * calls.c (load_register_parameters): Likewise.
15004         * function.c (assign_parm_setup_block): Likewise.
15005         * lower-subreg.c (resolve_shift_zext): Likewise.
15006         * optabs.c (widen_bswap, expand_abs_nojump,
15007         expand_one_cmpl_abs_nojump, expand_float): Likewise.
15008         * spu/spu.c (spu_expand_extv): Likewise.
15009         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
15010
15011 2011-04-29  Richard Guenther  <rguenther@suse.de>
15012
15013         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
15014         for the remapped region number.
15015         * predict.c (build_predict_expr): Use integer_type_node for the
15016         predict kind.
15017         * fold-const.c (fold_binary_loc): Use integer_type_node for
15018         the shift amount.  Use a proper type for the PLUS_EXPR operand.
15019
15020 2011-04-29  Michael Matz  <matz@suse.de>
15021
15022         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
15023         other trees that just builtins.
15024         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
15025
15026 2011-04-29  Richard Guenther  <rguenther@suse.de>
15027
15028         * tree-nested.c (get_trampoline_type): Use size_int.
15029         (get_nl_goto_field): Likewise.
15030         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
15031         for all indexes.
15032         (lower_eh_constructs_2): Likewise.
15033         (lower_resx): Likewise.
15034         (lower_eh_dispatch): Likewise.
15035         * tree-mudflap.c (mf_build_string): Use size_int.
15036         (mudflap_register_call): Use integer_type_node for the flag.
15037         (mudflap_enqueue_constant): Use size_int.
15038         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
15039         instead of rebuilding it.
15040
15041 2011-04-29  Richard Guenther  <rguenther@suse.de>
15042
15043         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
15044         Handle OBJ_TYPE_REF.
15045         (find_func_aliases_for_call): Use it more consistently.
15046
15047 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
15048
15049         * haifa-sched.c (last_nondebug_scheduled_insn): New.
15050         (rank_for_schedule): Use it.
15051         (schedule_block): Set it.
15052
15053 2011-04-28  David Li  <davidxl@google.com>
15054
15055         * tree.c (crc32_string): Use crc32_byte.
15056         (crc32_byte): New function.
15057         * tree.h (crc32_byte): New function.
15058         * gcov.c (read_graph_file): Handle new cfg_cksum.
15059         (read_count_file): Ditto.
15060         * profile.c (instrument_values): Ditto.
15061         (get_exec_counts): Ditto.
15062         (read_profile_edge_counts): Ditto.
15063         (compute_branch_probabilities): Ditto.
15064         (compute_value_histograms): Ditto.
15065         (branch_prob): Ditto.
15066         (end_branch_prob): Ditto.
15067         * coverage.c (read_counts_file): Ditto.
15068         (get_coverage_counts): Ditto.
15069         (tree_coverage_counter_addr): Ditto.
15070         (coverage_checksum_string): Ditto.
15071         (coverage_begin_output): Ditto.
15072         (coverage_end_function): Ditto.
15073         (build_fn_info_type): Ditto.
15074         (build_fn_info_value): Ditto.
15075         * libgcov.c (gcov_exit): Ditto.
15076         * gcov-dump.c (tag_function): Ditto.
15077         (compute_checksum): Remove.
15078
15079 2011-04-29  Alan Modra  <amodra@gmail.com>
15080
15081         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15082         unspec plus offset.  Tidy macho code.
15083
15084 2011-04-29  Martin Jambor  <mjambor@suse.cz>
15085
15086         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
15087         node instead of a decl.  Update all callers.
15088         * cgraph.h: Update declaration.
15089
15090 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
15091
15092         PR tree-optimization/48765
15093         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
15094         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
15095         to indicate if loop aware SLP is being used.  Scan the statements
15096         and update the vectorization factor according to the type of
15097         vectorization before statement analysis.
15098         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
15099         pass it to vect_analyze_loop_operations.
15100         (vectorizable_reduction): Set number of copies to 1 in case of pure
15101         SLP statement.
15102         * tree-vect-stmts.c (vectorizable_conversion,
15103         vectorizable_assignment, vectorizable_shift,
15104         vectorizable_operation, vectorizable_type_demotion,
15105         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
15106         Likewise.
15107         (vectorizable_condition): Move the check that it is not SLP
15108         vectorization before the number of copies check.
15109         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
15110         to vectorize the loop using SLP.
15111
15112 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
15113
15114         PR middle-end/48597
15115         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
15116         inline asm.
15117
15118 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
15119
15120         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
15121         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
15122         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15123         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15124         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
15125         linux*.h headers.
15126         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
15127         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15128         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15129         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15130         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15131         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
15132         REG_NAME.
15133         * config/i386/linux.h (REG_NAME): Don't define.
15134         * config/i386/linux64.h (REG_NAME): Don't define.
15135         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
15136         Undefine before defining.
15137
15138 2011-04-28  Jan Hubicka  <jh@suse.cz>
15139
15140         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
15141         nonconstant_names array.
15142         (estimate_function_body_sizes): Build nonconstant_names array; handle
15143         BUILT_IN_CONSTANT_P.
15144
15145 2011-04-28  Richard Guenther  <rguenther@suse.de>
15146
15147         PR bootstrap/48804
15148         Revert
15149         2011-04-28  Richard Guenther  <rguenther@suse.de>
15150
15151         * tree-ssa-structalias.c (solve_constraints): Build succ graph
15152         as late as possible.
15153
15154 2011-04-28  Richard Guenther  <rguenther@suse.de>
15155
15156         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
15157         (debug_constraint): Do it here.
15158         (dump_constraints): And here.
15159         (rewrite_constraints): And here.
15160         (dump_constraint_edge): Remove.
15161         (dump_constraint_graph): Rewrite to produce DOT output.
15162         (solve_constraints): Build succ graph as late as possible.
15163         Dump constraint graphs before and after solving.
15164
15165 2011-04-28  Richard Guenther  <rguenther@suse.de>
15166
15167         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15168         New function split out from ...
15169         (find_func_aliases): ... here.  Call it.
15170         (find_func_aliases_for_call): Likewise.
15171
15172 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15173
15174         * internal-fn.h (internal_fn_name_array): Declare.
15175         (internal_fn_flags_array): Likewise.
15176
15177 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
15178
15179         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
15180         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
15181         Move from sse.md.
15182         (ssemodefsuffix): Remove.
15183         (ssevecmodesuffix): New mode attribute.
15184         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
15185         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
15186         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
15187         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
15188         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
15189         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
15190         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
15191         ssemodesuffix mode attribute.
15192         (float splitters): Use ssevecmodesuffix mode attribute.
15193         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
15194         (sseinsmode): Rename from avxvecmode.
15195         (avxsizesuffix): Rename from avxmodesuffix.
15196         (sseintvecmode): Rename from avxpermvecmode.
15197         (ssedoublevecmode): Rename from ssedoublesizemode.
15198         (ssehalfvecmode): Rename from avxhalfvecmode.
15199         (ssescalarmode): Rename from avxscalarmode.
15200         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
15201         templates for ssemodesuffix mode attribute.
15202         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
15203         mode attribute.
15204
15205         Adjust RTX patterns globally for renamed mode attributes.
15206
15207 2011-04-27  Jan Hubcika  <jh@suse.cz>
15208
15209         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
15210         * ipa-inline-analysis.c: Include alloc-pool.h.
15211         (edge_predicate_pool): New.
15212         (trye_predicate_p): New function
15213         (false_predicate_p): New function.
15214         (add_clause): Sanity check that false clauses are "optimized";
15215         never add clauses to predicate that is already known to be false.
15216         (and_predicate): Use flase_predicate_p.
15217         (evaulate_predicate): Rename to ...
15218         (evaluate_predicate): ... this one; update all callers; assert
15219         that false is not listed among possible truths.
15220         (dump_predicate): Use true_predicate_p.
15221         (account_size_time): Use false_predicate_p.
15222         (evaulate_conditions_for_edge): Rename to ...
15223         (evaluate_conditions_for_edge) ... this one.
15224         (edge_set_predicate): New function.
15225         (inline_edge_duplication_hook): Duplicate edge predicates.
15226         (inline_edge_removal_hook): Free edge predicates.
15227         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
15228         (dump_inline_summary): Update.
15229         (estimate_function_body_sizes): Set edge predicates.
15230         (estimate_calls_size_and_time): Handle predicates.
15231         (estimate_callee_size_and_time): Update.
15232         (remap_predicate): Add toplev_predicate; update comment.
15233         (remap_edge_predicates): New function.
15234         (inline_merge_summary): Compute toplev predicate; update.
15235         (read_predicate): New function.
15236         (read_inline_edge_summary): Use it.
15237         (inline_read_section): Likewise.
15238         (write_predicate): New function.
15239         (write_inline_edge_summary): Use it.
15240         (inline_write_summary): Likewise.
15241         (inline_free_summary): Free alloc pool and edge summary vec.
15242
15243 2011-04-27  Richard Guenther  <rguenther@suse.de>
15244
15245         * tree-ssa-structalias.c (changed_count): Remove.
15246         (changed): Use a bitmap.
15247         (unify_nodes): Adjust.
15248         (do_sd_constraint): Likewise.
15249         (do_ds_constraint): Likewise.
15250         (do_complex_constraint): Likewise.
15251         (solve_graph): Likewise.
15252
15253 2011-04-27  Jan Hubicka  <jh@suse.cz>
15254
15255         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
15256
15257 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
15258
15259         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
15260         (avx_vperm2f128_*_operand): Ditto.
15261         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
15262         Use avx_vpermilp_parallel in insn condition.
15263         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
15264         Use avx_vperm2f128_parallel in insn condition.
15265
15266 2011-04-27  Richard Guenther  <rguenther@suse.de>
15267
15268         * Makefile.in (tree-ssa-structalias.o): Remove
15269         gt-tree-ssa-structalias.h dependency.
15270         (GTFILES): Remove tree-ssa-structalias.c.
15271         * tree.c (allocate_decl_uid): New function.
15272         (make_node_stat): Use it.
15273         (copy_node_stat): Likewise.
15274         * tree.h (allocate_decl_uid): Declare.
15275         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
15276         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
15277         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
15278         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
15279         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
15280         (struct heapvar_map): Likewise.
15281         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
15282         heapvar_insert): Likewise.
15283         (make_heapvar_for): Rename to ...
15284         (make_heapvar): ... this.  Simplify.
15285         (fake_var_decl_obstack): New global var.
15286         (build_fake_var_decl): New function.
15287         (make_constraint_from_heapvar): Adjust.
15288         (handle_lhs_call): Likewise.
15289         (create_function_info_for): Likewise.
15290         (intra_create_variable_infos): Likewise.
15291         (init_alias_vars): Allocate fake_var_decl_obstack.
15292         (init_alias_heapvars, delete_alias_heapvars): Remove.
15293         (compute_points_to_sets): Do not call init_alias_heapvars.
15294         (ipa_pta_execute): Likewise.
15295         (delete_points_to_sets): Free fake_var_decl_obstack.
15296
15297 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15298
15299         * config/spu/divmovti4.c (union qword_UTItype): New data type.
15300         (si_from_UTItype, si_to_UTItype): New functions.
15301         (__udivmodti4): Use them to implement type-punning.
15302         * config/spu/multi3.c (union qword_TItype): New data type.
15303         (si_from_TItype, si_to_TItype): New functions.
15304         (__multi3): Use them to implement type-punning.
15305
15306 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15307
15308         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
15309
15310 2011-04-27  Jan Hubicka  <jh@suse.cz>
15311
15312         * ipa-prop.c (function_insertion_hook_holder): New holder.
15313         (ipa_add_new_function): New function.
15314         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
15315         Register/deregister holder.
15316
15317 2011-04-27  Richard Guenther  <rguenther@suse.de>
15318
15319         PR tree-optimization/48772
15320         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
15321
15322 2011-04-27  Richard Guenther  <rguenther@suse.de>
15323
15324         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
15325         TARGET_MEM_REF handling.
15326
15327 2011-04-27  Nick Clifton  <nickc@redhat.com>
15328
15329         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
15330         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
15331         (REG_CLASS_NAMES): Likewise.
15332         (REG_CLASS_CONTENTS): Likewise.
15333         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
15334         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
15335         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
15336         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
15337         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
15338         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
15339         duplicate register classes.
15340         (frv_class_likely_spilled_p): Likewise.
15341         (frv_register_move_cost): Likewise.
15342
15343         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
15344         end of the regno_reg_class array.
15345
15346 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
15347
15348         PR c/48742
15349         * c-typeck.c (build_binary_op): Don't wrap arguments if
15350         int_operands is true.
15351
15352 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
15353
15354         PR target/48767
15355         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
15356         targetm.calls.must_pass_in_stack for void type.
15357
15358 2011-04-26  Jan Hubicka  <jh@suse.cz>
15359
15360         * cgraphbuild.c (build_cgraph_edges): Update call
15361         of cgraph_create_edge and cgraph_create_indirect_edge.
15362         * cgraph.c (cgraph_create_edge_including_clones,
15363         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
15364         cgraph_update_edges_for_call_stmt_node): Do not take nest
15365         argument; do not initialize call_stmt_size/time.
15366         (dump_cgraph_node): Do not dump nest.
15367         (cgraph_clone_edge): Do not take loop_nest argument;
15368         do not propagate it; do not clone call_stmt_size/time.
15369         (cgraph_clone_node): Likewise.
15370         (cgraph_create_virtual_clone): Update.
15371         * cgraph.h (struct cgraph_edge): Remove
15372         call_stmt_size/call_stmt_time/loop_nest.
15373         (cgraph_create_edge, cgraph_create_indirect_edge,
15374         cgraph_create_edge_including_clones, cgraph_clone_node): Update
15375         prototype.
15376         * tree-emutls.c (gen_emutls_addr): Update.
15377         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
15378         loop_nest; handle indirect calls, too.
15379         (clone_inlined_nodes): Do not care about updating inline summaries.
15380         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
15381         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
15382         stream call_stmt_size/call_stmt_time/loop_nest.
15383         * ipa-inline.c (edge_badness): Update.
15384         (ipa_inline): dump summaries after inlining.
15385         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
15386         New.
15387         (inline_edge_summary): New function.
15388         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
15389         (inline_edge_removal_hook): Handle edge summaries.
15390         (inline_edge_duplication_hook): New hook.
15391         (inline_summary_alloc): Alloc hooks.
15392         (initialize_growth_caches): Do not register removal hooks.
15393         (free_growth_caches); Do not free removal hook.
15394         (dump_inline_edge_summary): New function.
15395         (dump_inline_summary): Use it.
15396         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
15397         (inline_update_callee_summaries): New function.
15398         (inline_merge_summary): Use it.
15399         (do_estimate_edge_time, do_estimate_edge_growth): Update.
15400         (read_inline_edge_summary): New function.
15401         (inline_read_section): Use it.
15402         (write_inline_edge_summary): New function.
15403         (inline_write_summary): Use it.
15404         (inline_free_summary): Free edge new holders.
15405         * tree-inline.c (copy_bb): Update.
15406
15407 2011-04-26  Jason Merrill  <jason@redhat.com>
15408
15409         * tree-eh.c (lower_try_finally_switch): Create the label along with
15410         the CASE_LABEL_EXPR.
15411
15412 2011-04-26  David S. Miller  <davem@davemloft.net>
15413             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15414
15415         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
15416         * configure: Regenerate.
15417
15418 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
15419
15420         PR target/48258
15421         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
15422         reduction.
15423         (VEC_reduc): New code iterator and splitters for vector reduction.
15424         (VEC_reduc_name): Ditto.
15425         (VEC_reduc_rtx): Ditto.
15426         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
15427         (reduc_<VEC_reduc_name>_v4sf): Ditto.
15428
15429         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15430         support for extracting SF on VSX.
15431
15432         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
15433         generating xscvspdp.
15434         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
15435         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
15436         double add, minimum, maximum vector reduction.
15437         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
15438         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
15439         optimize double vector reduction.
15440         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
15441
15442 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
15443
15444         * config/fr30/fr30.h (inhibit_libc): Don't define.
15445         * config/m32r/m32r-protos.h: Correct comment.
15446         * config/v850/v850.h (GHS_default_section_names,
15447         GHS_current_section_names): Use tree, not union tree_node *.
15448
15449 2011-04-26  Xinliang David Li  <davidxl@google.com>
15450
15451         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
15452         * c-family/c-opts.c (c_common_handle_option): Set
15453         warn_maybe_uninitialized.
15454         * opts.c (common_handle_option): Ditto.
15455         * common.opt:  New option.
15456         * tree-ssa.c (warn_uninit): Add one more parameter.
15457         (warn_uninitialized_var): Pass warning code.
15458         * tree-flow.h: Interface change.
15459
15460 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15461
15462         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
15463         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
15464         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
15465
15466 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15467
15468         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
15469         * config/mips/mips.opt (mmips-tfile): Remove.
15470
15471         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
15472         mips-tdump reference to ...
15473         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
15474         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
15475         reference by Tru64 UNIX.
15476
15477 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
15478
15479         PR debug/48768
15480         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
15481         is error_mark_node, set value to NULL.
15482
15483         PR tree-optimization/48734
15484         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
15485         if return value from maybe_fold_*_comparsions isn't something
15486         the code is prepared to handle.
15487
15488 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
15489
15490         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
15491         mode check.
15492         (ext_QIreg_nomode_operands): Remove.
15493         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
15494         (*andsi_1): Ditto.
15495         (*andhi_1): Ditto.
15496
15497 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
15498
15499         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
15500
15501 2011-04-26  Richard Guenther  <rguenther@suse.de>
15502
15503         * c-typeck.c (build_unary_op): Do not expand array-refs via
15504         pointer arithmetic.  Only adjust qualifiers for function types.
15505
15506 2011-04-26  Richard Guenther  <rguenther@suse.de>
15507
15508         PR middle-end/48694
15509         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
15510         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
15511         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
15512         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
15513
15514 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
15515
15516         * doc/extend.texi: Document __underlying_type.
15517
15518 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
15519
15520         * config/rs6000/titan.md (automata_option "progress"): Remove.
15521
15522 2011-04-25  Jeff Law  <law@redhat.com>
15523
15524         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
15525
15526 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
15527
15528         * system.h (ENUM_BITFIELD): Remove.
15529
15530 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
15531             Eric Botcazou  <ebotcazou@adacore.com>
15532
15533         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
15534         for STORE_FLAG_VALUE==-1 case.
15535
15536 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
15537
15538         PR target/43804
15539         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
15540         LEGITIMATE_PIC_OPERAND_P.
15541
15542 2011-04-24  Jan Hubicka  <jh@suse.cz>
15543
15544         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
15545         WPA hack.
15546         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
15547         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
15548         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
15549         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
15550         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
15551         Sanity check predicate length.
15552         (remap_predicate): Likewise; sanity check jump functions.
15553         (inline_read_section, inline_write_summary): Sanity check
15554         predicate length.
15555
15556 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
15557
15558         PR other/48748
15559         * doc/extend.texi (Type Traits): Document __is_standard_layout,
15560         __is_literal_type, and __is_trivial; update throughout about
15561         possibly cv-qualified void types.
15562
15563 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
15564
15565         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
15566         testsuite and make it version agnostic.
15567
15568 2011-04-22  Jan Hubicka  <jh@suse.cz>
15569
15570         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
15571
15572 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
15573
15574         PR c/48685
15575         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
15576         to VOID_TYPE even around MODIFY_EXPR.
15577
15578 2011-04-22  Mike Stump  <mikestump@comcast.net>
15579
15580         * gensupport.c (read_md_rtx): Fix typo in comment.
15581         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
15582         comment.
15583
15584 2011-04-22  Jan Hubicka  <jh@suse.cz>
15585
15586         * gengtype.c (open_base_files): Add ipa-inline.h include.
15587         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
15588         ipa-prop.c; update all uses.
15589         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
15590         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
15591         merge summary of inlined function into former caller.
15592         * ipa-inline.c (max_benefit): Remove.
15593         (edge_badness): Compensate for removal of benefits.
15594         (update_caller_keys): Use
15595         reset_node_growth_cache/reset_edge_growth_cache.
15596         (update_callee_keys): Likewise.
15597         (update_all_callee_keys): Likewise.
15598         (inline_small_functions): Do not collect max_benefit; do not reset
15599         estimated_growth; call free_growth_caches and initialize_growth_caches.
15600         * ipa-inline.h (struct condition, type clause_t, struct predicate,
15601         struct size_time_entry): New structures.
15602         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
15603         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
15604         and estimated_growth.
15605         (edge_growth_cache_entry): New structure.
15606         (node_growth_cache, edge_growth_cache): New global vars.
15607         (estimate_growth): Turn into inline.
15608         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
15609         initialize_growth_caches, free_growth_caches): Declare.
15610         (estimate_edge_growth): Rewrite.
15611         (estimate_edge_time): Implement as inline cache lookup.
15612         (reset_node_growth_cache, reset_edge_growth_cache): New inline
15613         functions.
15614         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
15615         (NUM_CONDITIONS): New constant.
15616         (predicate_conditions): New enum.
15617         (IS_NOT_CONSTANT): New constant.
15618         (edge_removal_hook_holder): New var.
15619         (node_growth_cache, edge_growth_cache): New global vars.
15620         (true_predicate, single_cond_predicate, false_predicate,
15621         not_inlined_predicate, add_condition, add_clause, and_predicates,
15622         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
15623         dump_clause, dump_predicate, account_size_time,
15624         evaulate_conditions_for_edge): New functions.
15625         (inline_summary_alloc): Move to heap.
15626         (inline_node_removal_hook): Clear condition and entry vectors.
15627         (inline_edge_removal_hook): New function.
15628         (initialize_growth_caches, free_growth_caches): New function.
15629         (dump_inline_summary): Update.
15630         (edge_execution_predicate): New function.
15631         (will_be_nonconstant_predicate): New function.
15632         (estimate_function_body_sizes): Compute BB and constantness predicates.
15633         (compute_inline_parameters): Do not clear estimated_growth.
15634         (estimate_edge_size_and_time): New function.
15635         (estimate_calls_size_and_time): New function.
15636         (estimate_callee_size_and_time): New function.
15637         (remap_predicate): New function.
15638         (inline_merge_summary): New function.
15639         (do_estimate_edge_time): New function based on...
15640         (estimate_edge_time): ... this one.
15641         (do_estimate_edge_growth): New function.
15642         (do_estimate_growth): New function based on....
15643         (estimate_growth): ... this one.
15644         (inline_analyze_function): Analyze after deciding on jump functions.
15645         (inline_read_section): New function.
15646         (inline_read_summary): Use it.
15647         (inline_write_summary): Write all the new data.
15648         * ipa-prop.c (ipa_get_param_decl_index): Export.
15649         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
15650         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
15651         Declare.
15652         (ipa_get_lattice): Move here from ipa-cp.c
15653         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
15654         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
15655         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
15656         cgraph_edge_inlinable_p): Remove.
15657         * cgraphunit.c: Include ipainline.h
15658         (cgraph_process_new_functions): Update call of
15659         compute_inline_parameters.
15660
15661 2011-04-22  Richard Guenther  <rguenther@suse.de>
15662
15663         * tree.c (build_int_cst): Properly create canonicalized integer
15664         constants.
15665         (build_int_cst_type): Remove scary comments.
15666
15667 2011-04-22  Xinliang David Li  <davidxl@google.com>
15668
15669         * toplev.c (process_options): Enable -Werror=coverage-mismatch
15670         by default when -Wno-error is not specified.
15671         * opts-global.c (decode_options): Remove call to
15672         control_warning_options.
15673
15674 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
15675
15676         PR tree-optimization/48717
15677         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
15678         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
15679
15680 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
15681
15682         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
15683         definition where used.
15684
15685 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
15686
15687         PR c/48716
15688         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
15689         TREE_STATIC variables declared inside of some OpenMP construct.
15690
15691 2011-04-22  Martin Jambor  <mjambor@suse.cz>
15692
15693         PR middle-end/48585
15694         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
15695
15696 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
15697
15698         PR c/36750
15699         * c-typeck.c (pop_init_level): Do not warn about initializing
15700         with ` = {0}'.
15701
15702 2011-04-22  Alan Modra  <amodra@gmail.com>
15703
15704         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
15705         when returning call_cookie.
15706         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
15707         pointers, to functions with no more vector args than the current
15708         function, and some non-local calls for ABI_V4.
15709         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
15710         sibcall_nonlocal_aix64): Combine to ..
15711         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
15712         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
15713         (sibcall_value_nonlocal_aix<mode>): ..likewise.
15714         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
15715         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
15716         operand.
15717         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
15718         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
15719         sibcall_value_symbolic_64): Delete.
15720
15721 2011-04-21  Xinliang David Li  <davidxl@google.com>
15722
15723         * cgraph.h: Remove pid.
15724         * cgraph.c: Remove pid.
15725         * value-prof.c (init_node_map): New function.
15726         (del_node_map): New function.
15727         (find_func_by_funcdef_no): New function.
15728         (gimple_ic_transform): Call new function.
15729         * cgraphunit.c (cgraph_finalize_function): Remove pid.
15730         * function.c (get_last_funcdef_no): New function.
15731         * function.h (get_last_funcdef_no): New function.
15732         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
15733         to libgcov function.
15734         (tree-profiling): Call node map init and delete function.
15735
15736 2011-04-21  Ian Lance Taylor  <iant@google.com>
15737
15738         * godump.c (go_format_type): Use exported Go name for anonymous
15739         field name.
15740
15741 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
15742
15743         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
15744         Call builtin_function_type_list instead of builtin_function_type.
15745         (UNARY, BINARY, TRINARY, QUAD): Likewise.
15746
15747 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
15748
15749         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
15750         build_function_type_list instead of build_function_type.
15751         Delete variable `endlink'.
15752
15753 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
15754
15755         * config/s390/s390.c (s390_init_builtins): Call
15756         build_function_type_list instead of build_function_type.
15757
15758 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
15759
15760         * config/ia64/ia64.c (ia64_init_builtins): Call
15761         build_function_type_list instead of builtin_function_type.
15762
15763 2011-04-21  Easwaran Raman  <eraman@google.com>
15764
15765         * cfgexpand.c (stack_var): Remove OFFSET...
15766         (add_stack_var): ...and its reference here...
15767         (expand_stack_vars): ...and here.
15768         (stack_var_cmp): Sort by descending order of size.
15769         (partition_stack_vars): Change heuristic.
15770         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
15771         (dump_stack_var_partition): Add newline after each partition.
15772
15773 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
15774             Jeff Law  <law@redhat.com>
15775
15776         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
15777         * gengtype.c (matching_file_name_substitute): Likewise.
15778
15779 2011-04-21  Richard Guenther  <rguenther@suse.de>
15780
15781         PR lto/48703
15782         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
15783
15784 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
15785
15786         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
15787
15788 2011-04-21  Richard Guenther  <rguenther@suse.de>
15789
15790         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
15791         file name.
15792
15793 2011-04-21  Richard Guenther  <rguenther@suse.de>
15794
15795         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
15796         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
15797         Use DECL_P, not SSA_VAR_P.
15798         (ptr_derefs_may_alias_p): Likewise.
15799         (ptr_deref_may_alias_ref_p_1): Likewise.
15800         (decl_refs_may_alias_p): Likewise.
15801         (refs_may_alias_p_1): Likewise.
15802         (ref_maybe_used_by_call_p_1): Likewise.
15803         (call_may_clobber_ref_p_1): Likewise.
15804         (indirect_ref_may_alias_decl_p): Assume indirect refrences
15805         are either MEM_REF or TARGET_MEM_REF.
15806         (indirect_refs_may_alias_p): Likewise.
15807         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
15808         for MEM_EXPR of indirect calls.
15809
15810 2011-04-21  Tristan Gingold  <gingold@adacore.com>
15811
15812         * vmsdbgout.c (write_srccorr): Compute file length from the string.
15813         (dst_file_info_struct): Remove flen field.
15814         (lookup_filename): Remove code that set flen field.
15815
15816 2011-04-21  Tristan Gingold  <gingold@adacore.com>
15817
15818         * config/ia64/ia64.c (ia64_start_function): Add a guard.
15819
15820 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
15821
15822         PR target/48708
15823         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
15824         vec_extract and vec_concat for non-SSE4_1 targets.
15825
15826 2011-04-21  Richard Guenther  <rguenther@suse.de>
15827
15828         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
15829         return statements.
15830
15831 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
15832
15833         * config/i386/cygming.h (union tree_node, TREE): Don't define or
15834         undefine.
15835         (FILE): Don't undefine.
15836
15837 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
15838
15839         * config/alpha/alpha.c (struct machine_function): Use rtx, not
15840         struct rtx_def *.
15841         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
15842         struct rtx_def *.
15843         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
15844         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
15845         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
15846         rtx_def *.
15847         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
15848         definitions where used.
15849         * config/microblaze/microblaze.h (struct microblaze_args): Use
15850         rtx, not struct rtx_def *.
15851         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
15852         rtx_def *.
15853         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
15854         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
15855         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
15856         not struct rtx_def *.
15857         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
15858         struct rtx_def *.
15859         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
15860         rtx_def *.
15861         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
15862
15863 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
15864
15865         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
15866         operand_equal_p to compare DR_BASE_ADDRESSes.
15867         (vect_check_interleaving): Likewise.
15868
15869 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
15870
15871         PR target/46329
15872         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
15873         for all Neon struct constants.
15874
15875 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
15876
15877         * target.def (legitimate_constant_p): New hook.
15878         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
15879         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
15880         * doc/tm.texi: Regenerate.
15881         * hooks.h (hook_bool_mode_rtx_true): Declare.
15882         * hooks.c (hook_bool_mode_rtx_true): Define.
15883         * system.h (LEGITIMATE_CONSTANT_P): Poison.
15884         * calls.c (precompute_register_parameters): Replace uses of
15885         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
15886         (emit_library_call_value_1): Likewise.
15887         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
15888         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
15889         * ira-costs.c (scan_one_insn): Likewise.
15890         * recog.c (general_operand, immediate_operand): Likewise.
15891         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
15892         * reload1.c (init_eliminable_invariants): Likewise.
15893
15894         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
15895         mode argument.
15896         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
15897         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
15898         argument.
15899         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15900         * config/alpha/predicates.md (input_operand): Update call to
15901         alpha_legitimate_constant_p.
15902
15903         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
15904         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
15905         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
15906         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15907         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
15908         (arm_legitimate_constant_p): New functions.
15909         (arm_cannot_force_const_mem): Make static.
15910
15911         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
15912
15913         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
15914         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
15915         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
15916         instead of bfin_legitimate_constant_p.
15917         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
15918         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15919
15920         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
15921
15922         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
15923
15924         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
15925         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
15926         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15927         (frv_legitimate_constant_p): Make static.  Add a mode argument.
15928
15929         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
15930         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
15931         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
15932
15933         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
15934         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
15935         * config/i386/i386.c (legitimate_constant_p): Rename to...
15936         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
15937         argument.
15938         (ix86_cannot_force_const_mem): Update accordingly.
15939         (ix86_legitimate_address_p): Likewise.
15940         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15941         * config/i386/i386.md: Update commentary.
15942
15943         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
15944         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
15945         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15946         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
15947
15948         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
15949
15950         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
15951         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
15952         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15953         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
15954
15955         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
15956         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
15957         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
15958
15959         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
15960         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15961         (m32r_legitimate_constant_p): New function.
15962
15963         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
15964         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
15965         LEGITIMATE_CONSTANT_P.
15966         (LEGITIMATE_CONSTANT_P): Delete.
15967         * config/m68k/m68k.c (m68k_expand_prologue): Call
15968         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
15969         (m68k_legitimate_constant_p): New function.
15970         * config/m68k/m68k.md: Update comments.
15971
15972         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
15973         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15974         (mcore_legitimate_constant_p): New function.
15975
15976         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
15977         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
15978         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
15979         Add a mode argument.
15980         (mep_legitimate_address): Update accordingly.
15981         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15982
15983         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
15984         Delete.
15985         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
15986         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
15987         static.  Check OP's mode for VOIDmode.
15988         (microblaze_legitimate_constant_p): New function.
15989         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15990
15991         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
15992         * config/mips/mips.c (mips_legitimate_constant_p): New function.
15993         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
15994         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15995         * config/mips/predicates.md: Update comments.
15996
15997         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
15998         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
15999         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16000         (mmix_legitimate_constant_p): Make static, return a bool, and take
16001         a mode argument.
16002         (mmix_print_operand_address): Update accordingly.
16003
16004         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
16005         Delete.
16006         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
16007         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
16008         static.  Add a mode argument.
16009         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16010
16011         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
16012
16013         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
16014         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16015         (pa_legitimate_constant_p): New function.
16016
16017         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
16018
16019         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
16020         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16021         (pdp11_legitimate_constant_p): New function.
16022
16023         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
16024         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16025         (rs6000_legitimate_constant_p): New function.
16026
16027         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
16028         (rx_legitimate_constant_p): ...this.
16029         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
16030         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
16031         (rx_legitimate_constant_p): ...this.
16032         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16033         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
16034
16035         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
16036         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
16037         * config/s390/s390.c (legitimate_constant_p): Rename to...
16038         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
16039         and add a mode argument.
16040         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16041
16042         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
16043
16044         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
16045         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16046         (sh_legitimate_constant_p): New function.
16047
16048         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
16049         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
16050         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16051         (legitimate_constant_p): Rename to...
16052         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
16053         argument.
16054         (constant_address_p): Update accordingly.
16055
16056         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
16057         argument and return a bool.
16058         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
16059         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16060         (spu_legitimate_constant_p): Add a mode argument and return a bool.
16061         (spu_rtx_costs): Update accordingly.
16062         * config/spu/predicates.md (vec_imm_operand): Likewise.
16063
16064         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
16065
16066         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
16067         * config/v850/v850.c (v850_legitimate_constant_p): New function.
16068         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16069
16070         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
16071         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
16072         * config/vax/vax.c (legitimate_constant_p): Likewise.
16073
16074         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
16075         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16076         (xtensa_legitimate_constant_p): New function.
16077
16078 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16079
16080         * target.def (cannot_force_const_mem): Add a mode argument.
16081         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
16082         * doc/tm.texi: Regenerate.
16083         * hooks.h (hook_bool_mode_rtx_false): Declare.
16084         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
16085         (hook_bool_mode_const_rtx_true): Likewise.
16086         (hook_bool_mode_rtx_false): New function.
16087         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
16088         to be non-VOID.  Update call to cannot_force_const_mem.
16089         (find_reloads): Update accordingly.
16090         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
16091         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
16092         argument.
16093         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
16094         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
16095         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
16096         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
16097         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
16098         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
16099         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
16100         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
16101         (m68k_cannot_force_const_mem): ...this new function.
16102         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
16103         argument.
16104         (mips_const_insns, mips_legitimize_const_move): Update calls.
16105         (mips_secondary_reload_class): Likewise.
16106         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
16107         (pa_cannot_force_const_mem): ...this new function.
16108         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
16109         (rs6000_cannot_force_const_mem): ...this new function.
16110         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
16111         argument.
16112         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
16113         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
16114         to...
16115         (xtensa_cannot_force_const_mem): ...this new function.
16116
16117 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
16118
16119         * config/mips/mips.c (mips16_build_function_stub): Call
16120         build_function_type_list instead of build_function_type.
16121         (mips16_build_call_stub): Likewise.
16122
16123 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
16124
16125         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
16126         instead of build_function_type.
16127
16128 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
16129
16130         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
16131         instead of build_function_type.
16132
16133 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
16134
16135         PR target/48678
16136         * config/i386/i386.md (insv): Change operand 0 constraint to
16137         "register_operand".  Change operand 1 and 2 constraint to
16138         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
16139         * config/i386/sse.md (sse4_1_pinsrb): Export.
16140         (sse2_pinsrw): Ditto.
16141         (sse4_1_pinsrd): Ditto.
16142         (sse4_1_pinsrq): Ditto.
16143         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
16144         * config/i386/i386.c (ix86_expand_pinsr): New.
16145
16146 2011-04-20  Easwaran Raman  <eraman@google.com>
16147
16148         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
16149         containing union type only with -fstrict-aliasing.
16150
16151 2011-04-20  Jim Meyering  <meyering@redhat.com>
16152
16153         Remove useless if-before-free tests.
16154         * calls.c (expand_call, save_area): Likewise.
16155         * cfgcleanup.c (try_forward_edges): Likewise.
16156         * collect2.c (collect_execute): Likewise.
16157         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
16158         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
16159         * coverage.c (coverage_checksum_string): Likewise.
16160         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
16161         * cselib.c (cselib_init): Likewise.
16162         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
16163         (df_set_clean_cfg): Likewise.
16164         * function.c (free_after_compilation): Likewise.
16165         * gcc.c (do_spec_1, main): Likewise.
16166         * gcov.c (create_file_names): Likewise.
16167         * gensupport.c (identify_predicable_attribute): Likewise.
16168         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
16169         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
16170         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
16171         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
16172         * ipa-pure-const.c (local_pure_const): Likewise.
16173         * ipa-reference.c (propagate): Likewise.
16174         * ira-costs.c (free_ira_costs): Likewise.
16175         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
16176         * matrix-reorg.c (mat_free): Likewise.
16177         * prefix.c (get_key_value): Likewise.
16178         * profile.c (compute_value_histograms): Likewise.
16179         * reload1.c (free_reg_equiv): Likewise.
16180         * sched-deps.c (free_deps): Likewise.
16181         * sel-sched-ir.c (fence_clear): Likewise.
16182         * sese.c (set_rename, if_region_set_false_region): Likewise.
16183         * tree-data-ref.c (free_rdg): Likewise.
16184         * tree-eh.c (lower_try_finally): Likewise.
16185         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
16186         * tree-ssa-live.c (delete_var_map): Likewise.
16187         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
16188         * tree-ssa-pre.c (phi_trans_add): Likewise.
16189
16190 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
16191
16192         PR tree-optimization/48611
16193         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
16194         beyond ERT_MUST_NOT_THROW region.
16195
16196 2011-04-20  Catherine Moore  <clm@codesourcery.com>
16197
16198         * config/mips/mips.opt (mfix-24k): New.
16199         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
16200         * config/mips/mips.md (length): Increase by 4 for stores if
16201         fixing 24K errata.
16202         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
16203         all noreorder if fixing 24K errata.
16204         * doc/invoke.texi: Document mfix-24k.
16205
16206 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
16207
16208         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
16209         quad-word modes, reduce to 9-bit index range when above 1016 limit.
16210
16211 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
16212
16213         * config/arm/arm.c (arm_gen_constant): Move movw support ....
16214         (const_ok_for_op): ... to here.
16215
16216 2011-04-20  Kai Tietz  <ktietz@redhat.com>
16217
16218         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
16219         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
16220
16221 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
16222
16223         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
16224
16225 2011-04-20  Richard Guenther  <rguenther@suse.de>
16226
16227         PR tree-optimization/47892
16228         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
16229         are if-convertible.
16230
16231 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
16232
16233         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
16234
16235 2011-04-20  Tristan Gingold  <gingold@adacore.com>
16236
16237         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
16238
16239 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
16240
16241         PR target/18145
16242
16243         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
16244         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
16245         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
16246         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
16247         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
16248
16249         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
16250         New prototype.
16251
16252         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
16253         (avr_asm_named_section, avr_asm_output_aligned_common,
16254         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
16255         New functions to update...
16256         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
16257         (avr_asm_init_sections): Overwrite section callbacks for
16258         data_section, bss_section.
16259         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
16260         from here to...
16261         (avr_file_end): ...here.
16262
16263 2011-04-20  Richard Guenther  <rguenther@suse.de>
16264
16265         PR middle-end/48695
16266         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
16267         objects and types here.  Adjust for their offset before comparing.
16268
16269 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
16270
16271         * tree-vect-stmts.c (vectorizable_store): Only chain one related
16272         statement per copy.
16273
16274 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
16275
16276         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
16277         (GIMPLE_H): Include $(INTERNAL_FN_H).
16278         (OBJS-common): Add internal-fn.o.
16279         (internal-fn.o): New rule.
16280         * internal-fn.def: New file.
16281         * internal-fn.h: Likewise.
16282         * internal-fn.c: Likewise.
16283         * gimple.h: Include internal-fn.h.
16284         (GF_CALL_INTERNAL): New gf_mask.
16285         (gimple_statement_call): Put fntype into a union with a new
16286         internal_fn field.
16287         (gimple_build_call_internal): Declare.
16288         (gimple_build_call_internal_vec): Likewise.
16289         (gimple_call_same_target_p): Likewise.
16290         (gimple_call_internal_p): New function.
16291         (gimple_call_internal_fn): Likewise.
16292         (gimple_call_fntype): Return null for internal calls.
16293         (gimple_call_set_fntype): Assert that the function is not internal.
16294         (gimple_call_set_fn): Likewise.
16295         (gimple_call_set_fndecl): Likewise.
16296         (gimple_call_set_internal_fn): New function.
16297         (gimple_call_addr_fndecl): Handle null functions.
16298         (gimple_call_return_type): Likewise null types.
16299         * gimple.c (gimple_build_call_internal_1): New function.
16300         (gimple_build_call_internal): Likewise.
16301         (gimple_build_call_internal_vec): Likewise.
16302         (gimple_call_same_target_p): Likewise.
16303         (gimple_call_flags): Handle calls to internal functions.
16304         (gimple_call_fnspec): New function.
16305         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
16306         (gimple_has_side_effects): Handle null functions.
16307         (gimple_rhs_has_side_effects): Likewise.
16308         (gimple_call_copy_skip_args): Handle calls to internal functions.
16309         * cfgexpand.c (expand_call_stmt): Likewise.
16310         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
16311         * gimple-fold.c (gimple_fold_call): Handle null functions.
16312         (gimple_fold_stmt_to_constant_1): Don't fold
16313         calls to internal functions.
16314         * gimple-low.c (gimple_check_call_args): Handle calls to internal
16315         functions.
16316         * gimple-pretty-print.c (dump_gimple_call): Likewise.
16317         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
16318         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
16319         (do_warn_unused_result): Likewise.
16320         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
16321         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
16322         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
16323         the target of a call.
16324         (initialize_hash_element): Update accordingly.
16325         (hashable_expr_equal_p): Use gimple_call_same_target_p.
16326         (iterative_hash_hashable_expr): Handle calls to internal functions.
16327         (print_expr_hash_elt): Likewise.
16328         * tree-ssa-pre.c (can_value_number_call): Likewise.
16329         (eliminate): Handle null functions.
16330         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
16331         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
16332         (find_func_aliases): Likewise.
16333         * value-prof.c (gimple_ic_transform): Likewise.
16334         (gimple_indirect_call_to_profile): Likewise.
16335         * lto-streamer-in.c (input_gimple_stmt): Likewise.
16336         * lto-streamer-out.c (output_gimple_stmt): Likewise.
16337
16338 2011-04-19  Jan Hubicka  <jh@suse.cz>
16339
16340         * ipa-inline-transform.c (save_inline_function_body): Add comments.
16341         * ipa-inline.c (inline_small_functions): Compute summaries first,
16342         populate heap later.
16343
16344 2011-04-19  Jan Hubicka  <jh@suse.cz>
16345
16346         * cgraph.h (save_inline_function_body): Remove.
16347         * ipa-inline-transform.c: New file, broke out of...
16348         * ipa-inline.c: ... this one; Update toplevel comment.
16349         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
16350         make global.
16351         (update_noncloned_frequencies): Move to ipa-inline-transform.c
16352         (cgraph_mark_inline_edge): Rename to inline_call; move to
16353         ipa-inline-transform.c.
16354         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
16355         move to ipa-inline-transform.c
16356         (recursive_inlining, inline_small_functions, flatten_function,
16357         ipa_inline, inline_always_inline_functions,
16358         early_inline_small_functions): Update.
16359         (inline_transform): Move to ipa-inline-transform.c.
16360         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
16361         Declare.
16362         * Makefile.in (ipa-inline-transform.o): New file.
16363         * cgraphunit.c (save_inline_function_body): Move to
16364         ipa-inline-transform.c
16365
16366 2011-04-19  DJ Delorie  <dj@redhat.com>
16367
16368         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
16369         registers if we already know there aren't any.
16370         (m32c_emit_epilogue): Don't emit a barrier here.
16371         (m32c_emit_eh_epilogue): Likewise.
16372         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
16373         operands at expand time.
16374         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
16375         int" wchar type.
16376         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
16377         duplicates.  Provide aliases instead.
16378         * config/m32c/prologue.md (eh_return): Emit a barrier here.
16379         (eh_epilogue): Add a "(return)" here as a hint to other parts of
16380         the compiler.
16381
16382 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
16383
16384         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
16385         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
16386         (general_or_i64_p, sparc_register_move_cost): New function.
16387
16388 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16389
16390         * doc/install.texi (Configuration, --enable-threads): Remove mach.
16391         Add lynx, mipssde.  Sort table.
16392
16393 2011-04-19  Xinliang David Li  <davidxl@google.com>
16394
16395         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
16396         not negative.
16397
16398 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
16399
16400         PR target/48678
16401         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
16402         is a SUBREG with non-MODE_INT mode inside of it.
16403
16404 2011-04-19  Martin Jambor  <mjambor@suse.cz>
16405
16406         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
16407         also according to actual contants.
16408         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
16409         (gimple_fold_call): Use it.
16410         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
16411
16412 2011-04-19  Martin Jambor  <mjambor@suse.cz>
16413
16414         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
16415         non-pointer assignments.
16416
16417 2011-04-19  Martin Jambor  <mjambor@suse.cz>
16418
16419         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
16420         account anc_offset and otr_type from the indirect edge info.
16421         * ipa-prop.c (get_ancestor_addr_info): New function.
16422         (compute_complex_ancestor_jump_func): Assignment analysis moved to
16423         get_ancestor_addr_info, call it.
16424         (ipa_note_param_call): Do not initialize information about polymorphic
16425         calls, return the indirect call graph edge.  Remove the last
16426         parameter, adjust all callers.
16427         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
16428         parameters.  Initialize polymorphic information in the indirect edge.
16429
16430 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
16431
16432         PR lto/48148
16433         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
16434         the types if they have different enumeration identifiers.
16435
16436 2011-04-19  Jan Hubicka  <jh@suse.cz>
16437
16438         * cgraph.h (cgraph_optimize_for_size_p): Declare.
16439         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
16440         * predict.c (cgraph_optimize_for_size_p): Break out from ...
16441         (optimize_function_for_size_p) ... here.
16442
16443 2011-04-19  Richard Guenther  <rguenther@suse.de>
16444
16445         PR lto/48207
16446         * tree.c (free_lang_data): Do not reset the decl-assembler-name
16447         langhook.
16448
16449 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
16450
16451         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
16452         if DECL_NO_INLINE_WARNING_P is set on the function.
16453
16454 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
16455
16456         PR fortran/47976
16457         * reload1.c (inc_for_reload): Return void. All callers changed.
16458         (emit_input_reload_insns): Don't try to delete previous output
16459         reloads to a register, or record spill_reg_store for autoincs.
16460
16461 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
16462
16463         * gengtype.h: Updated copyright year.
16464         (struct input_file_st): Add inpisplugin field.
16465         (type_fileloc): New function.
16466         * gengtype.c
16467         (write_typed_struct_alloc_def): Add gcc_assert.
16468         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
16469         (write_typed_alloc_defns): Don't output for plugin files.
16470         (input_file_by_name): Clear inpisplugin field.
16471         (main): Set inpisplugin field for plugin files.
16472
16473 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
16474
16475         * gengtype-state.c (string_eq): New.
16476         (read_state): Use string_eq instead of strcmp when creating the
16477         state_ident_tab.
16478
16479 2011-04-19  Wei Guozhi  <carrot@google.com>
16480
16481         PR target/47855
16482         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
16483         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
16484         linkage.
16485         * config/arm/constraints.md (Uu): New constraint.
16486         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
16487
16488 2011-04-19  Tristan Gingold  <gingold@adacore.com>
16489
16490         * config.gcc (-*-*-*vms): Added.
16491         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
16492         definitions moved.
16493         * config/vms/vms-ld.c: New file.
16494         * config/vms/vms-ar.c: New file.
16495         * config/vms/t-vmsnative: New file.
16496
16497 2011-04-18  Xinliang David Li  <davidxl@google.com>
16498
16499         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
16500
16501 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
16502
16503         PR middle-end/48661
16504         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
16505         if TREE_TYPE (v) is non-NULL.
16506
16507         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
16508         gimple_get_virt_mehtod_for_binfo.
16509         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
16510         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
16511         callers.
16512         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16513
16514 2011-04-18  Michael Matz  <matz@suse.de>
16515             Steve Ellcey  <sje@cup.hp.com>
16516
16517         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
16518         use its mode as source mode if it isn't VOIDmode.
16519
16520 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
16521
16522         * doc/passes.texi: Fill crossref nodes.
16523
16524 2011-04-18  Jim Meyering  <meyering@redhat.com>
16525
16526         Fix doubled-word typos in comments and strings
16527         * config/alpha/vms-unwind.h: s/for for/for/
16528         * config/arm/unwind-arm.h: Likewise.
16529         * config/microblaze/microblaze.c: Likewise.
16530         * config/sh/constraints.md: s/in in/in/
16531         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
16532
16533 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
16534
16535         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
16536         (AVX_FLOAT_MODE_P): Ditto.
16537         (AVX128_VEC_FLOAT_MODE_P): Ditto.
16538         (AVX256_VEC_FLOAT_MODE_P): Ditto.
16539         (AVX_VEC_FLOAT_MODE_P): Ditto.
16540         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
16541         (UNSPEC_MASKSTORE): Ditto.
16542         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
16543         Merge from <sse>_movmsk<ssemodesuffix> and
16544         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
16545         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
16546         iterator.
16547         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
16548         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
16549         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
16550
16551 2011-04-18  Jan Hubicka  <jh@suse.cz>
16552
16553         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
16554
16555         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
16556         (want_inline_function_called_once_p): Break out the logic from
16557         ipa_inline.
16558         (edge_badness): Ensure that profile is not misupdated.
16559         (lookup_recursive_calls): Prioritize by call frequencies.
16560         (inline_small_functions): Move program size estimates here;
16561         actually process whole queue even when unit growth has been
16562         met. (to properly compute inline_failed reasons and for the
16563         case unit size decrease.) Revisit comments on recursive inlining.
16564         (ipa_inline): Remove unit summary code; first inline hot calls
16565         of functions called once, cold calls next.
16566         (order, nnodes): Remove unused variables.
16567         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
16568         (GTFILES): Remove ipa-inline.c
16569         * sel-sched.c (fill_insns): Silence uninitialized var warning.
16570
16571 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
16572
16573         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
16574
16575 2011-04-18  Jie Zhang  <jie@codesourcery.com>
16576             Richard Earnshaw  <rearnsha@arm.com>
16577
16578         * arm.c (neon_builtin_type_bits): Remove.
16579         (typedef enum neon_builtin_mode): New.
16580         (T_MAX): Don't define.
16581         (typedef enum neon_builtin_datum): Remove bits, codes[],
16582         num_vars and base_fcode.  Add mode, code and fcode.
16583         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
16584         VAR10): Change accordingly.
16585         (neon_builtin_data[]): Change accordingly
16586         (arm_init_neon_builtins): Change accordingly.
16587         (neon_builtin_compare): Remove.
16588         (locate_neon_builtin_icode): Remove.
16589         (arm_expand_neon_builtin): Change accordingly.
16590
16591         * arm.h (enum arm_builtins): Move to ...
16592         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
16593
16594         * arm.c (arm_builtin_decl): Declare.
16595         (TARGET_BUILTIN_DECL): Define.
16596         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
16597         (arm_builtin_decls[]): New.
16598         (arm_init_neon_builtins): Store builtin declarations in
16599         arm_builtin_decls[].
16600         (arm_init_tls_builtins): Likewise.
16601         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
16602         (arm_builtin_decl): New.
16603
16604 2011-04-18  Richard Guenther  <rguenther@suse.de>
16605
16606         * tree.c (upper_bound_in_type): Build properly canonicalized
16607         INTEGER_CSTs.
16608         (lower_bound_in_type): Likewise.
16609
16610 2011-04-18  Richard Guenther  <rguenther@suse.de>
16611
16612         * gimple.h (gimple_call_addr_fndecl): New function.
16613         (gimple_call_fndecl): Use it.
16614         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
16615         for direct calls.
16616         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
16617         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
16618
16619 2011-04-18  Richard Guenther  <rguenther@suse.de>
16620
16621         PR middle-end/48650
16622         * tree.c (build_string): STRING_CST is now derived from tree_typed.
16623
16624 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
16625
16626         PR lto/48492
16627         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
16628         DECL_IN_CONSTANT_POOL without RTL.
16629
16630 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
16631             Ira Rosen  <ira.rosen@linaro.org>
16632
16633         PR target/48252
16634         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
16635         to match neon_vzip/vuzp/vtrn_internal.
16636         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
16637         outputs explicitly dependent on both inputs.
16638         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
16639
16640 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
16641
16642         PR tree-optimization/48616
16643         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
16644         whether the shift is by scalar or vector based on whether all SLP
16645         scalar stmts have the same rhs.
16646
16647 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
16648
16649         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
16650         memory operands.
16651
16652 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
16653
16654         PR target/43700
16655         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
16656         registers.
16657
16658 2011-04-17  Jan Hubicka  <jh@suse.cz>
16659
16660         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
16661         * cgrpahunit.c (cgraph_finalize_function): Do not set
16662         finalized_by_frontend.
16663         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
16664         finalized_by_frontend.
16665
16666 2011-04-17  Jan Hubicka  <jh@suse.cz>
16667
16668         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
16669         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
16670         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
16671         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
16672         method.
16673         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
16674         gimple-fold.c
16675         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
16676
16677 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
16678
16679         PR lto/48538
16680         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
16681         is non-null before accessing it.
16682         (input_cgraph): Remove trailing spaces.
16683
16684 2011-04-17  Revital Eres  <revital.eres@linaro.org>
16685
16686         * params.def (sms-min-sc): New param flag.
16687         * modulo-sched.c (sms_schedule): Use it.
16688         * doc/invoke.texi (sms-min-sc): Document it.
16689
16690 2011-04-17  Jan Hubicka  <jh@suse.cz>
16691
16692         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
16693         present, also set gimple_call_set_cannot_inline.
16694         * ipa-inline.c: Update toplevel comment.
16695         (MAX_TIME): Remove.
16696         (cgraph_clone_inlined_nodes): Fix linebreaks.
16697         (cgraph_check_inline_limits): Restructure to ...
16698         (caller_growth_limits): ... this one; be more tolerant
16699         on growth in nested inline chains; add explanatory comment;
16700         fix stack accounting thinko introduced by previous patch.
16701         (cgraph_default_inline_p): Remove.
16702         (report_inline_failed_reason): New function.
16703         (can_inline_edge_p): New function.
16704         (can_early_inline_edge_p): New function.
16705         (leaf_node_p): Move upwards in file.
16706         (want_early_inline_function_p): New function.
16707         (want_inline_small_function_p): New function.
16708         (want_inline_self_recursive_call_p): New function.
16709         (cgraph_edge_badness): Rename to ...
16710         (edge_badness) ... this one; fix linebreaks.
16711         (update_edge_key): Update call of edge_baddness; add
16712         detailed dump about queue updates.
16713         (update_caller_keys): Use can_inline_edge_p and
16714         want_inline_small_function_p.
16715         (cgraph_decide_recursive_inlining): Rename to...
16716         (recursive_inlining): Use can_inline_edge_p and
16717         want_inline_self_recursive_call_p; simplify and remove no longer
16718         valid FIXME.
16719         (cgraph_set_inline_failed): Remove.
16720         (add_new_edges_to_heap): Use can_inline_edge_p and
16721         want_inline_small_function_p.
16722         (cgraph_decide_inlining_of_small_functions): Rename to ...
16723         (inline_small_functions): ... this one; cleanup; use
16724         can/want predicates; cleanup debug ouput; work edges till fibheap
16725         is exhausted and do not stop once unit growth is reached; remove
16726         later loop processing remaining edges.
16727         (cgraph_flatten): Rename to ...
16728         (flatten_function): ... this one; use can_inline_edge_p
16729         and can_early_inline_edge_p predicates.
16730         (cgraph_decide_inlining): Rename to ...
16731         (ipa_inline): ... this one; remove unreachable nodes before
16732         inlining functions called once; simplify the pass.
16733         (cgraph_perform_always_inlining): Rename to ...
16734         (inline_always_inline_functions): ... this one; use
16735         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
16736         (cgraph_decide_inlining_incrementally): Rename to ...
16737         (early_inline_small_functions): ... this one; simplify
16738         using new predicates; cleanup; make dumps prettier.
16739         (cgraph_early_inlining): Rename to ...
16740         (early_inliner): newer inline regular functions into always-inlines;
16741         fix updating of call stmt summaries.
16742         (pass_early_inline): Update for new names.
16743         (inline_transform): Fix formating.
16744         (gate_cgraph_decide_inlining): Rename to ...
16745         (pass_ipa_inline): ... this one.
16746         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
16747         * ipa-inline-analysis.c (dump_inline_summary): Update.
16748         (compute_inline_parameters): Do not compute disregard_inline_limits;
16749         look for mismatching arguments.
16750         (estimate_growth): Fix handlig of non-trivial self recursion.
16751         (inline_read_summary): Do not read info->disregard_inline_limits.
16752         (inline_write_summary): Do not write info->disregard_inline_limits.
16753         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
16754         and move all checks into can_inline_edge_p predicate; re-enable code
16755         comparing optimization levels.
16756         (expand_call_inline): Do not test inline_forbidden_into_p.
16757         * Makefile.in (ipa-inline.o): Update arguments.
16758
16759 2011-04-17  Revital Eres  <revital.eres@linaro.org>
16760
16761         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
16762
16763 2011-04-17  Revital Eres  <revital.eres@linaro.org>
16764
16765         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
16766
16767 2011-04-17  Michael Matz  <matz@suse.de>
16768
16769         PR tree-optimization/48622
16770         PR lto/48645
16771         * ipa-inline-analysis.c (inline_read_summary): Read size/time
16772         in same order as they're written.
16773
16774 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16775
16776         * config/pa/predicates.md: Reorganize and simplify predicates.
16777         Eliminate duplicate code checks.
16778         (arith_operand): Rename to arith14_operand
16779         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
16780         * config/pa/pa.md: Use renamed operands.
16781         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
16782         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
16783         arith11_operand, adddi3_operand, indexed_memory_operand,
16784         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
16785         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
16786         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
16787         move_dest_operand, move_src_operand, prefetch_cc_operand,
16788         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
16789         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
16790         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
16791         div_operand, int5_operand, movb_comparison_operator,
16792         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
16793         arith_double_operand, ireg_operand, lhs_lshift_operand,
16794         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
16795         integer_store_memory_operand): Likewise.
16796         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
16797         (integer_store_memory_operand, read_only_operand,
16798         function_label_operand, borx_reg_operand,
16799         non_hard_reg_operand): Likewise.
16800         (eq_neq_comparison_operator): Delete unused operator.
16801         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
16802         function_label_operand.
16803         (emit_move_sequence): Likewise.
16804
16805 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
16806
16807         * config/i386/sse.md (sseunpackmode): New mode attribute.
16808         (ssepackmode): Ditto.
16809         (vec_pack_trunc_<mode>): Macroize expander from
16810         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
16811         (vec_unpacks_lo_<mode>): Macroize expander from
16812         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16813         (vec_unpacks_hi_<mode>): Macroize expander from
16814         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16815         (vec_unpacku_lo_<mode>): Macroize expander from
16816         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16817         (vec_unpacku_hi_<mode>): Macroize expander from
16818         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16819         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
16820         ix86_expand_sse4_unpack.
16821         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
16822
16823 2011-04-16  Jan Hubicka  <jh@suse.cz>
16824
16825         * cgraphbuild.c: Include ipa-inline.h.
16826         (reset_inline_failed): Use initialize_inline_failed.
16827         * cgraph.c: Include ipa-inline.h.
16828         (cgraph_create_node_1): Do not initialize estimated_growth.
16829         (initialize_inline_failed): More to ipa-inline-analysis.c
16830         (dump_cgraph_node): Do not dump inline flags.
16831         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
16832         and disregard_inline_limits flags.
16833         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
16834         time, size, estimated_growth.
16835         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
16836         Update.
16837         * cgraphunit.c (cgraph_decide_is_function_needed): Use
16838         DECL_DISREGARD_INLINE_LIMITS.
16839         (cgraph_analyze_function): Do not initialize
16840         node->local.disregard_inline_limits.
16841         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
16842         inlinable, versionable and disregard_inline_limits.
16843         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
16844         cgraph_check_inline_limits, cgraph_default_inline_p,
16845         cgraph_edge_badness, update_caller_keys, update_callee_keys,
16846         add_new_edges_to_heap): Update.
16847         (cgraph_decide_inlining_of_small_function): Update; set
16848         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
16849         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
16850         cgraph_decide_inlining_incrementally): Update.
16851         * ipa-inline.h (inline_summary): Add inlinable, versionable,
16852         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
16853         time, size and estimated_growth parameters.
16854         (estimate_edge_growth): Update.
16855         (initialize_inline_failed): Declare.
16856         * ipa-split.c: Include ipa-inline.h
16857         (execute_split_functions): Update.
16858         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
16859         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
16860         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
16861         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
16862         estimated_growth to INT_MIN.
16863         (inline_node_duplication_hook): Likewise.
16864         (dump_inline_summary): Dump new fields.
16865         (compute_inline_parameters): Update.
16866         (estimate_edge_time, estimate_time_after_inlining,
16867         estimate_size_after_inlining, estimate_growth, inline_read_summary,
16868         inline_write_summary):
16869         (initialize_inline_failed): Move here from cgraph.c.
16870         * tree-sra.c: Include ipa-inline.h.
16871         (ipa_sra_preliminary_function_checks): Update.
16872         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
16873         ipa-inline.h.
16874
16875 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
16876
16877         * config/i386/sse.md (V16): New mode iterator.
16878         (VI1, VI8): Ditto.
16879         (AVXMODEQI, AVXMODEDI): Remove.
16880         (sse2, sse3): New mode attribute.
16881         (mov<mode>): Use V16 mode iterator.
16882         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
16883         (push<mode>1): Use V16 mode iterator.
16884         (movmisalign<mode>): Ditto.
16885         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
16886         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
16887         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
16888         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
16889         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
16890         avx_movdqu<avxmodesuffix>.
16891         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
16892         *avx_movdqu<avxmodesuffix>.
16893         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
16894         avx_lddqu<avxmodesuffix>.
16895         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
16896         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
16897         avx_movnt<AVXMODEDI:mode>.
16898         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
16899         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
16900
16901 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
16902
16903         PR target/48629
16904         * haifa-sched.c (prune_ready_list, schedule_block): Use
16905         sched_pressure_p rather than flag_sched_pressure.
16906
16907 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
16908
16909         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
16910         cgraph_get_node instead of cgraph_get_create_node.
16911
16912 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
16913
16914         * cfgexpand.c (expand_debug_expr): Use
16915         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
16916
16917 2011-04-15  Michael Matz  <matz@suse.de>
16918
16919         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
16920         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
16921         * function.c (gimplify_parameters): Ditto.
16922         * gimplify.c (gimplify_vla_decl): Ditto.
16923
16924         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
16925         (gimple_call_set_alloca_for_var): New inline function.
16926         (gimple_call_alloca_for_var_p): Ditto.
16927         * gimple.c (gimple_build_call_from_tree): Remember
16928         CALL_ALLOCA_FOR_VAR_P state.
16929         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
16930
16931         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
16932         calls if they were for VLA objects.
16933
16934 2011-04-15  Martin Jambor  <mjambor@suse.cz>
16935
16936         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
16937         of ADR_EXPRs.
16938
16939 2011-04-15  Martin Jambor  <mjambor@suse.cz>
16940
16941         PR middle-end/48601
16942         * tree-emutls.c (lower_emutls_function_body): Call
16943         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
16944         result is non-NULL.
16945
16946 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
16947
16948         * c-decl.c (detect_field_duplicates): Call
16949         objc_detect_field_duplicates instead of objc_get_interface_ivars.
16950
16951 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
16952
16953         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
16954         * gimple.c (gimple_asm_clobbers_memory_p): Define.
16955         * ipa-pure-const.c (check_stmt): Call it.
16956         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
16957
16958 2011-04-15  Richard Guenther  <rguenther@suse.de>
16959
16960         PR tree-optimization/48290
16961         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
16962         Properly decide inhibiting propagation based on the valueized
16963         operand.  Do loop-closed SSA form preserving here ...
16964         (init_copy_prop): ... not here.
16965
16966 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
16967
16968         PR target/48612
16969         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
16970         (*ieee_smax<mode>3): Likewise.
16971
16972 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16973
16974         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
16975         Replace match_operand with match_dup for the third operand in
16976         these expanders.
16977
16978 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
16979
16980         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
16981         to track processing of conditionals.  Update all callers.
16982         (try_combine, simplify_if_then_else): Update.
16983
16984 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
16985
16986         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
16987         -fsched-pressure.
16988
16989 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
16990
16991         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
16992         instead of match_operand for operand 3.
16993
16994 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
16995
16996         * recog.h (insn_operand_data): Add an "allows_mem" field.
16997         * genoutput.c (output_operand_data): Initialize it.
16998         * optabs.c (maybe_legitimize_operand_same_code): New function.
16999         (maybe_legitimize_operand): Use it when matching the original
17000         op->value.
17001
17002 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
17003
17004         * gimplify.c: Fix issues in comments throughout.
17005         (voidify_wrapper_expr): Fix long line.
17006         (build_stack_save_restore): Likewise.
17007         (gimplify_loop_expr): Likewise.
17008         (gimplify_compound_lval): Likewise.
17009         (gimplify_init_ctor_eval): Likewise.
17010         (gimplify_modify_expr_rhs): Likewise.
17011         (omp_notice_threadprivate_variable): Likewise.
17012
17013 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
17014
17015         * cfgexpand.c (expand_call_stmt): Convert the function type to the
17016         original one if this is not a builtin function.
17017
17018 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
17019
17020         PR target/48605
17021         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
17022         offset it as needed based on top 2 bits in operands[3], change
17023         MEM mode to SFmode and mask those 2 bits away from operands[3].
17024
17025 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
17026
17027         * c-parser.c (c_parser_objc_protocol_definition): Updated for
17028         change from objc_declare_protocols() to objc_declare_protocol().
17029
17030 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
17031
17032         * config/i386/sse.md (sse4_1): New mode attribute.
17033         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
17034         avx_blend<ssemodesuffix><avxmodesuffix> and
17035         sse4_1_blend<ssemodesuffix> using VF mode iterator.
17036         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
17037         avx_blendv<ssemodesuffix><avxmodesuffix> and
17038         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
17039         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
17040         avx_dp<ssemodesuffix><avxmodesuffix> and
17041         sse4_1_dp<ssemodesuffix> using VF mode iterator.
17042         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
17043         (sse4_1_packusdw): Merge with *avx_packusdw.
17044         (sse4_1_pblendvb): Merge with *avx_pblendvb.
17045         (sse4_1_pblendw): Merge with *avx_pblendw.
17046         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
17047         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
17048         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
17049         VF mode iterator.
17050         (sse4_1_round<ssescalarmodesuffix>): Merge with
17051         *avx_round<ssescalarmodesuffix>.
17052         (aesenc): Merge with *avx_aesenc.
17053         (aesenclast): Merge with *avx_aesenclast.
17054         (aesdec): Merge with *avx_aesdec.
17055         (aesdeclast): Merge with *avx_aesdeclast.
17056         (pclmulqdq): Merge with *pclmulqdq.
17057         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
17058         New predicate.
17059         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
17060
17061 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
17062
17063         PR middle-end/48608
17064         * cfgexpand.c (get_decl_align_unit): Renamed to ...
17065         (align_local_variable): This.  Update DECL_ALIGN.
17066         (add_stack_var): Updated.
17067         (expand_one_stack_var): Likewise.
17068
17069 2011-04-14  Richard Guenther  <rguenther@suse.de>
17070
17071         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
17072         Remove.
17073         (dse_initialize_block_local_data, dse_leave_block,
17074         record_voperand_set, get_stmt_uid): Likewise.
17075         (dse_possible_dead_store_p): Allow any kind of killing stmt.
17076         (dse_optimize_stmt): Remove voperand set handling code.
17077         Simplify and improve to handle any kind of killing stmt.
17078         (dse_record_phi): Remove.
17079         (dse_enter_block): Simplify.
17080         (tree_ssa_dse): Likewise.
17081         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
17082
17083 2011-04-14  Jan Hubicka  <jh@suse.cz>
17084
17085         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
17086         * cgraph.h (struct inline_summary): Move to ipa-inline.h
17087         (cgraph_local_info): Remove inline_summary.
17088         * ipa-cp.c: Include ipa-inline.h.
17089         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
17090         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
17091         accesor.
17092         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
17093         (input_overwrite_node): Do not set inline summary.
17094         (input_node): Do not stream inline summary.
17095         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
17096         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
17097         growth; we do not have inline parameters computed for that anyway.
17098         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
17099         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
17100         (inline_summary_t): New type and VECtor.
17101         (debug_inline_summary, dump_inline_summaries): Declare.
17102         (inline_summary): Use VOCtor.
17103         (estimate_edge_growth): Kill hack computing call stmt size directly.
17104         * lto-section-in.c (lto_section_name): Add inline section.
17105         * ipa-inline-analysis.c: Include lto-streamer.h
17106         (node_removal_hook_holder, node_duplication_hook_holder): New holders
17107         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
17108         (inline_summary_vec): Define.
17109         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
17110         dump_inline_summaries): New functions.
17111         (estimate_function_body_sizes): Properly compute size/time of outgoing
17112         calls.
17113         (compute_inline_parameters): Alloc inline_summary; do not compute
17114         size/time of incomming calls.
17115         (estimate_edge_time): Avoid missing time summary hack.
17116         (inline_read_summary): Read inline summary info.
17117         (inline_write_summary): Write inline summary info.
17118         (inline_free_summary): Free all hooks and inline summary vector.
17119         * lto-streamer.h: Add LTO_section_inline_summary section.
17120         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
17121         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
17122
17123 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17124
17125         * tree-vectorizer.h (vect_strided_store_supported): Add a
17126         HOST_WIDE_INT argument.
17127         (vect_strided_load_supported): Likewise.
17128         (vect_permute_store_chain): Return void.
17129         (vect_transform_strided_load): Likewise.
17130         (vect_permute_load_chain): Delete.
17131         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
17132         count argument.  Check that the count is a power of two.
17133         (vect_strided_load_supported): Likewise.
17134         (vect_permute_store_chain): Return void.  Update after above changes.
17135         Assert that the access is supported.
17136         (vect_permute_load_chain): Likewise.
17137         (vect_transform_strided_load): Return void.
17138         * tree-vect-stmts.c (vectorizable_store): Update calls after
17139         above interface changes.
17140         (vectorizable_load): Likewise.
17141         (vect_analyze_stmt): Don't check for strided powers of two here.
17142
17143 2011-04-14  Richard Guenther  <rguenther@suse.de>
17144
17145         PR tree-optimization/48590
17146         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17147         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
17148         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
17149         BUILT_IN_STACK_SAVE.
17150         * tree-ssa-dce.c (propagate_necessity): Handle
17151         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
17152
17153 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
17154
17155         * c-parser.c (c_parser_objc_class_declaration): Updated call to
17156         objc_declare_class.
17157
17158 2011-04-14  Richard Guenther  <rguenther@suse.de>
17159
17160         * tree.h (get_object_alignment_1): Declare.
17161         * builtins.c (get_object_alignment_1): Split out worker from ...
17162         (get_object_alignment): ... here.
17163         * fold-const.c (get_pointer_modulus_and_residue): Use
17164         get_object_alignment_1.
17165
17166 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17167
17168         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
17169         type parameter.
17170         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
17171         parameter.  Generalise code to handle arrays as well as vectors.
17172         (vect_setup_realignment): Update accordingly.
17173         * tree-vect-stmts.c (vectorizable_store): Likewise.
17174         (vectorizable_load): Likewise.
17175
17176 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17177
17178         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
17179         within the per-copy loop.
17180
17181 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17182
17183         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
17184         in the dump file.
17185
17186 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17187
17188         * doc/options.texi (Negative): Explicitly mention that the
17189         Negative chain must be circular.
17190
17191 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
17192
17193         * function.h (block_chainon): Declare.
17194         * function.c (block_chainon): Define.
17195
17196 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
17197             Eric Weddington  <eric.weddington@atmel.com>
17198             Georg-Johann Lay  <avr@gjlay.de>
17199
17200         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
17201         New Includes
17202         (avr_init_builtins, avr_expand_builtin,
17203         avr_expand_delay_cycles, avr_expand_unop_builtin,
17204         avr_expand_binop_builtin ): New functions.
17205         (avr_builtin_id): New enum
17206         (struct avr_builtin_description): New struct
17207         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
17208         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
17209
17210         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
17211         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
17212         UNSPECV_DELAY_CYCLES): new enumeration values
17213         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
17214         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
17215         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
17216         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
17217         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
17218         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
17219         "fmulsu"): New insns
17220
17221         * config/avr/avr-c.c: fix line endings
17222         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
17223         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
17224         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
17225         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
17226         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
17227
17228         * doc/extend.texi (AVR Built-in Functions): New node
17229         (Target Builtins): Add documentation of AVR
17230         built-in functions.
17231
17232 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
17233
17234         PR target/44643
17235         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
17236         alone. Error if non-const data has attribute progmem.
17237
17238 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17239
17240         * tree.h (struct tree_constructor): Include tree_typed instead of
17241         tree_common.
17242         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
17243         TS_TYPED instead of TS_COMMON.
17244
17245 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
17246
17247         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
17248         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
17249         (sse2_psadbw): Merge with *avx_psadbw.
17250         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
17251         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
17252         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
17253         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
17254         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
17255         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
17256         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
17257         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
17258         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
17259         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
17260         (ssse3_palignrti): Merge with *avx_palignrti.
17261
17262 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17263
17264         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
17265         * tree-ssanames.c (fini_ssanames): VEC_free it.
17266         (make_ssa_name_fn): Update for VECness of free_ssanames.
17267         (release_ssa_name, release_dead_ssa_names): Likewise.
17268         * tree.h (struct tree_ssa_name): Include tree_typed instead of
17269         tree_common.
17270         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
17271         TS_TYPED instead of TS_COMMON.
17272
17273 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17274
17275         * postreload-gcse.c (gcse_after_reload_main): Add calls to
17276         statistics_counter_event.
17277         * tree-ssa-copyrename.c (stats): Define.
17278         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
17279         statistics_counter_event.
17280         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
17281         (bswap_stats, widen_mul_stats): Define.
17282         (insert_reciprocals): Increment rdivs_inserted.
17283         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
17284         rfuncs_inserted.  Add calls to statistics_counter_event.
17285         (execute_cse_sincos_1): Increment inserted.
17286         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
17287         statistics_counter_event.
17288         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
17289         of bswap_stats.  Add calls to statistics_counter_event.
17290         (convert_mult_to_widen): Increment widen_mults_inserted.
17291         (convert_plusminus_to_widen): Increment maccs_inserted.
17292         (convert_mult_to_fma): Increment fmas_inserted.
17293         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
17294         calls to statistics_counter_event.
17295
17296 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
17297
17298         PR rtl-optimization/48455
17299         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
17300         `temp_costs->mem_cost'.
17301
17302 2011-04-13  Jan Hubicka  <jh@suse.cz>
17303
17304         * ipa-inline.h: New file.
17305         * ipa-inline-analysis.c: New file. Broken out of ...
17306         * ipa-inline.c: ... this file; update toplevel comment;
17307         include ipa-inline.h
17308         (inline_summary): Move to ipa-inline.h
17309         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
17310         ipa-inline-analysis.c.
17311         (cgraph_estimate_time_after_inlining): Rename to
17312         estiamte_time_after_inlining; move to ipa-inline-analysis.c
17313         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
17314         to estimate_edge_growth.
17315         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
17316         rename to estimate_size_after_inlining.
17317         (cgraph_mark_inline_edge): Update for new naming convention.
17318         (cgraph_check_inline_limits): Likewise.
17319         (cgraph_edge_badness): Likewise.
17320         (cgraph_decide_recursive_inlining): Likewise.
17321         (cgraph_decide_inlining_of_small_functions): Likewise.
17322         (cgraph_decide_inlining_incrementally): Likewise.
17323         (cgraph_estimate_growth): Rename to estimate_growth; move to
17324         ipa-inline-analysis.c.
17325         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
17326         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
17327         (compute_inline_parameters): Likewise.
17328         (compute_inline_parameters_for_current): Likewise.
17329         (pass_inline_parameters): Likewise.
17330         (inline_indirect_intraprocedural_analysis): Likewise.
17331         (analyze_function): Rename to inline_analyze_function; likewise.
17332         (add_new_function): Move to ipa-inline-analysis.c.
17333         (inline_generate_summary): Likewise.
17334         (inline_read_summary): Likewise.
17335         (inline_write_summary): Likewise.
17336         * Makefile.in (ipa-inline-analysis.c): New file.
17337
17338 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17339
17340         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
17341         * configure: Regenerate.
17342
17343 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17344
17345         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
17346         instead of tree_common.
17347         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
17348         Likewise.
17349         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
17350         TS_TYPED rather than TS_COMMON.
17351         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
17352
17353 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
17354
17355         PR target/45263
17356         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
17357         r20 around calls of __tablejump_elpm__
17358
17359 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
17360
17361         PR middle-end/48591
17362         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
17363         NULL.
17364         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
17365
17366 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
17367
17368         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
17369         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
17370         (cfi_vec): New typedef.
17371         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
17372         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
17373         (cie_cfi_vec): New static variable.
17374         (cie_cfi_head): Delete.
17375         (add_cfi): Accept a cfi_vec * as first argument. All callers and
17376         declaration changed. Use vector rather than list operations.
17377         (new_cfi): Don't initialize the dw_cfi_next field.
17378         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
17379         rather than list operations.
17380         (lookup_cfa): Use vector rather than list operations.
17381         (output_cfis): New argument upto. Accept a cfi_vec rather than
17382         a dw_cfi_ref list head as argument. All callers changed.
17383         Iterate over the vector using upto as a maximum index.
17384         (output_all_cfis): New static function.
17385         (output_fde): Use vector rather than list operations. Use the
17386         new upto argument for output_cfis rather than manipulating a
17387         list.
17388         (dwarf2out_begin_prologue): Change initializations to match
17389         new struct members.
17390         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
17391         from the vector length rather than searching for the end of a list.
17392         Use output_all_cfis.
17393         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
17394
17395 2011-04-13  Nick Clifton  <nickc@redhat.com>
17396
17397         * config/rx/rx.md (movmemsi): Do not use this pattern when
17398         volatile pointers are involved.
17399
17400 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
17401
17402         * config/i386/sse.md (pinsrbits): Remove.
17403         (sse2_packsswb): Merge with *avx_packsswb.
17404         (sse2_packssdw): Merge with *avx_packssdw.
17405         (sse2_packuswb): Merge with *avx_packuswb.
17406         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
17407         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
17408         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
17409         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
17410         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
17411         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
17412         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
17413         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
17414         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
17415         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
17416         (sse2_loadld): Merge with *avx_loadld.
17417         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
17418         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
17419         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
17420         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
17421         (vec_concatv2di): Merge with *vec_concatv2di_avx.
17422
17423 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
17424
17425         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
17426         calling TREE_CHAIN.
17427         * print-tree.c (print_node): Likewise.
17428         * tree-inline.c (copy_tree_r): Likewise.
17429         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
17430         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
17431         instead of TS_COMMON.
17432         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
17433         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
17434         (copy_node_stat): Zero TREE_CHAIN only if necessary.
17435         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
17436         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
17437         ...and these...
17438         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
17439         * tree.h: ...here.
17440         (TREE_CHAIN): Check for a TS_COMMON structure.
17441         (TREE_TYPE): Check for a TS_TYPED structure.
17442
17443 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
17444
17445         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
17446         cgraph_get_create_node instead of cgraph_node.
17447
17448 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
17449
17450         * c-parser.c (c_parser_initelt): Updated call to
17451         objc_build_message_expr.
17452         (c_parser_postfix_expression): Likewise.
17453
17454 2011-04-12  Kai Tietz  <ktietz@redhat.com>
17455
17456         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
17457         MASK_MS_BITFIELD_LAYOUT bit.
17458
17459 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
17460
17461         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
17462         assert it is always true.
17463         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
17464         moves.
17465
17466 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
17467
17468         * c-parser.c (c_lex_one_token): Rewritten conditional used when
17469         compiling Objective-C to be more efficient.
17470
17471 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
17472
17473         * opts-common.c (decode_cmdline_options_to_array): Remove variable
17474         argv_copied.
17475
17476 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17477
17478         * recog.h, genoutput.c, optabs.c: Revert last patch.
17479
17480 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17481
17482         PR target/48090
17483         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
17484
17485 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17486
17487         * recog.h (insn_operand_data): Add an "allows_mem" field.
17488         * genoutput.c (output_operand_data): Initialize it.
17489         * optabs.c (maybe_legitimize_operand_same_code): New function.
17490         (maybe_legitimize_operand): Use it when matching the original
17491         op->value.
17492
17493 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17494
17495         * genpreds.c (process_define_predicate): Move most processing
17496         to gensupport.c.  Continue to validate the expression.
17497         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
17498         (process_define_predicate): Move processing to gensupport.c.
17499         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
17500         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
17501         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
17502         argument.
17503         (valid_predicate_name_p): New function, split out from old
17504         genpreds.c:process_define_predicate.
17505         (process_define_predicate): New function, combining code from
17506         old genpreds.c and genrecog.c functions.
17507         (process_rtx): Call it for DEFINE_PREDICATE and
17508         DEFINE_SPECIAL_PREDICATE.
17509
17510 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17511
17512         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
17513         size of a '%A' memory reference.
17514         (T_DREG, T_QREG): New neon_builtin_type_bits.
17515         (arm_init_neon_builtins): Assert that the load and store operands
17516         are neon_struct_operands.
17517         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
17518         (NEON_ARG_MEMORY): New builtin_arg.
17519         (neon_dereference_pointer): New function.
17520         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
17521         Handle NEON_ARG_MEMORY.
17522         (arm_expand_neon_builtin): Update after above interface changes.
17523         Use NEON_ARG_MEMORY for loads and stores.
17524         * config/arm/predicates.md (neon_struct_operand): New predicate.
17525         * config/arm/iterators.md (V_two_elem): Tweak formatting.
17526         (V_three_elem): Use BLKmode for accesses that have no associated mode.
17527         (V_four_elem): Tweak formatting.
17528         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
17529         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
17530         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
17531         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
17532         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
17533         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
17534         (neon_vst4<mode>): Replace pointer operand with a memory operand.
17535         Use %A in the output template.
17536         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
17537         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
17538         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
17539         the width of the memory access.  Remove post-increment.
17540         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
17541
17542 2011-04-12  Nick Clifton  <nickc@redhat.com>
17543
17544         * config/v850/v850.c (expand_prologue): Do not use the CALLT
17545         instruction for interrupt handlers if the target is the basic V850
17546         architecture.
17547         (expand_epilogue): Likewise.
17548
17549 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
17550
17551         PR rtl-optimization/48549
17552         * combine.c (propagate_for_debug): Also stop after BB_END of
17553         this_basic_block.  Process LAST and just stop processing after it.
17554         (combine_instructions): If last_combined_insn has been deleted,
17555         set last_combined_insn to its PREV_INSN.
17556
17557 2011-04-12  Richard Guenther  <rguenther@suse.de>
17558
17559         PR tree-optimization/46076
17560         * gimple.h (struct gimple_statement_call): Add fntype field.
17561         (gimple_call_fntype): Adjust.
17562         (gimple_call_set_fntype): New function.
17563         * gimple.c (gimple_build_call_1): Set the call function type.
17564         * gimplify.c (gimplify_call_expr): Preserve the function
17565         type the frontend used for the call.
17566         (gimplify_modify_expr): Likewise.
17567         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
17568         function type.
17569         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
17570         function type.
17571         * tree-ssa.c (useless_type_conversion_p): Function pointer
17572         conversions are useless.
17573
17574 2011-04-12  Martin Jambor  <mjambor@suse.cz>
17575
17576         * cgraph.h (cgraph_node): Remove function declaration.
17577         (cgraph_create_node): Declare.
17578         (cgraph_get_create_node): Likewise.
17579         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
17580         Updated all callers.
17581         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
17582         the decl does not already exist.  Call cgraph_get_create_node instead
17583         of cgraph_node.
17584         (cgraph_get_create_node): New function.
17585         (cgraph_same_body_alias): Update comment.
17586         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
17587         assert it does not return NULL.
17588         (cgraph_update_edges_for_call_stmt): Likewise.
17589         (cgraph_clone_edge): Likewise.
17590         (cgraph_create_virtual_clone): Likewise.
17591         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
17592         instead of cgraph_node.
17593         (cgraph_add_new_function): Call cgraph_create_node or
17594         cgraph_get_create_node instead of cgraph_node.
17595         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
17596         instead of cgraph_node.
17597         (record_eh_tables): Likewise.
17598         (mark_address): Likewise.
17599         (mark_load): Likewise.
17600         (build_cgraph_edges): Call cgraph_get_create_node instead
17601         of cgraph_node.
17602         (rebuild_cgraph_edges): Likewise.
17603         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
17604         instead of cgraph_node.
17605         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
17606         cgraph_node.
17607         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
17608         cgraph_create_node instead of cgraph_node.
17609         * c-decl.c (finish_function): Call cgraph_get_create_node instead
17610         of cgraph_node.
17611         * lto-cgraph.c (input_node): Likewise.
17612         * lto-streamer-in.c (input_function): Likewise.
17613         * varasm.c (mark_decl_referenced): Likewise.
17614         (assemble_alias): Likewise.
17615
17616 2011-04-12  Martin Jambor  <mjambor@suse.cz>
17617
17618         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
17619         instead of cgraph_node and assert it does not return NULL.
17620         * lto-streamer-in.c (lto_read_body): Likewise.
17621         * omp-low.c (new_omp_context): Likewise.
17622         (create_task_copyfn): Likewise.
17623         * tree-emutls.c (lower_emutls_function_body): Likewise.
17624         * matrix-reorg.c (transform_allocation_sites): Likewise.
17625
17626 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
17627
17628         PR c/48552
17629         * c-typeck.c (build_asm_expr): Error out on attempts to use
17630         void type outputs or inputs for constraints that allow reg or
17631         don't allow memory.
17632
17633 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
17634             Richard Earnshaw  <rearnsha@arm.com>
17635
17636         PR target/48250
17637         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
17638         to use sign-magnitude offsets. Reject unsupported unaligned
17639         cases. Add detailed description in comments.
17640         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
17641         condition from TARGET_32BIT to TARGET_ARM.
17642
17643 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
17644
17645         * tree.h (struct typed_tree): New.
17646         (struct tree_common): Include it instead of tree_base.
17647         (TREE_TYPE): Update for new location of type field.
17648         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
17649         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
17650         (union tree_node): Add typed field.
17651         * treestruct.def (TS_TYPED): New.
17652         * lto-streamer.c (check_handled_ts_structures): Handle it.
17653         * tree.c (MARK_TS_TYPED): New macro.
17654         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
17655
17656 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
17657
17658         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
17659         (force_nonfallthru): Do not alter the loop nest if no basic block
17660         was created.
17661
17662 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
17663
17664         * config/i386/sse.md (VI): New mode iterator.
17665         (SSEMODEI): Remove.
17666         (AVX256MODEI): Ditto.
17667         (AVXMODEF4P): Ditto.
17668         (avxvecpsmode): Ditto.
17669         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
17670         (sse2_andnot<mode>3): New expander.
17671         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
17672         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
17673         (<any_logic:code><mode>3): Use VI mode iterator.
17674         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
17675         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
17676         (*andnottf3): Handle AVX three-operand constraints.
17677         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
17678
17679 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
17680             Robert Millan  <rmh@gnu.org>
17681
17682         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
17683         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
17684         GNU_USER_DYNAMIC_LINKER64): Define.
17685         (REG_NAME): Don't undefine.
17686         (MD_UNWIND_SUPPORT): Undefine.
17687         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
17688         (REG_NAME): Don't undefine.
17689         (MD_UNWIND_SUPPORT): Undefine.
17690         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
17691
17692 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
17693
17694         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
17695         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
17696
17697 2011-04-11  Xinliang David Li  <davidxl@google.com>
17698
17699         * value-profile.c (check_ic_target): New function.
17700         (gimple_ic_transform): Sanity check indirect call target.
17701         * gimple-low.c (gimple_check_call_args): Interface change.
17702         (gimple_check_call_matching_types): New function.
17703         * tree-inline.c (tree_can_inline_p): Call new function.
17704
17705 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
17706
17707         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
17708         tree-pretty-print.h & realmpfr.h.
17709
17710 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
17711
17712         PR middle-end/48464
17713         * ira.c (setup_pressure_classes): Fix typo in loop condition.
17714         (setup_allocno_and_important_classes): Ditto.
17715
17716 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
17717
17718         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
17719         GNU_USER_DYNAMIC_LINKER.
17720         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
17721         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17722         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
17723         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17724         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
17725         GNU_USER_TARGET_OS_CPP_BUILTINS.
17726         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
17727         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17728         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
17729         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17730         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
17731         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17732         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
17733         GNU_USER_TARGET_OS_CPP_BUILTINS.
17734         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17735         GNU_USER_DYNAMIC_LINKER.
17736         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17737         GNU_USER_TARGET_OS_CPP_BUILTINS.
17738         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
17739         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17740         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
17741         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17742         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
17743         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
17744         GNU_USER_DYNAMIC_LINKER64): Remove.
17745         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
17746         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17747         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17748         GNU_USER_DYNAMIC_LINKER.
17749         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17750         GNU_USER_TARGET_OS_CPP_BUILTINS.
17751         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17752         GNU_USER_TARGET_OS_CPP_BUILTINS.
17753         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
17754         to GNU_USER_TARGET_OS_CPP_BUILTINS.
17755         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17756         GNU_USER_TARGET_OS_CPP_BUILTINS.
17757         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
17758         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
17759         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
17760         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
17761         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17762         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17763         GNU_USER_DYNAMIC_LINKER.
17764         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
17765         GNU_USER_TARGET_OS_CPP_BUILTINS.
17766         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
17767         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17768         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17769         GNU_USER_DYNAMIC_LINKER.
17770         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
17771         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17772         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
17773         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17774         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17775         GNU_USER_DYNAMIC_LINKER.
17776         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
17777         GNU_USER_DYNAMIC_LINKERN32.
17778         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
17779         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
17780         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
17781         GNU_USER_DYNAMIC_LINKER32.
17782         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
17783         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17784         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17785         GNU_USER_DYNAMIC_LINKER.
17786         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
17787         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17788         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
17789         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17790         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17791         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
17792         GNU_USER_DYNAMIC_LINKER32.
17793         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
17794         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
17795         GNU_USER_DYNAMIC_LINKER.
17796         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
17797         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17798         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
17799         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
17800         GNU_USER_DYNAMIC_LINKER64.
17801         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
17802         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17803         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17804         GNU_USER_DYNAMIC_LINKER.
17805         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
17806         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17807         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17808         GNU_USER_DYNAMIC_LINKER.
17809         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
17810         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17811         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
17812         GNU_USER_DYNAMIC_LINKER32.
17813         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
17814         GNU_USER_DYNAMIC_LINKER64.
17815         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
17816         GNU_USER_DYNAMIC_LINKER64.
17817         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
17818         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17819         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
17820         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17821         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17822
17823 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
17824
17825         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
17826         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
17827         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
17828         GNU_USER_DYNAMIC_LINKER.
17829         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
17830         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
17831         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
17832         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
17833         GNU_USER_DYNAMIC_LINKER64.
17834         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
17835         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
17836         GNU_USER_LINK_EMULATION.
17837         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
17838         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
17839         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
17840         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
17841         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
17842         CPP_SPEC, CC1_SPEC): Remove.
17843         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
17844         (GNU_USER_DYNAMIC_LINKER): Define.
17845         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
17846         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
17847         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
17848         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
17849         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
17850         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
17851         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
17852         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
17853         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
17854         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
17855         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
17856         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
17857         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
17858         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
17859         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
17860         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
17861         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17862         GNU_USER_DYNAMIC_LINKER.
17863         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17864         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
17865         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17866         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
17867         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17868         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
17869         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
17870         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
17871         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
17872         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
17873
17874 2011-04-11  Kai Tietz  <ktietz@redhat.com>
17875
17876         PR target/9601
17877         PR target/11772
17878         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
17879         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
17880         comment.
17881         (ix86_is_msabi_thiscall): Removed.
17882         (ix86_is_type_thiscall): Likewise.
17883         (ix86_get_callcvt): New function.
17884         (ix86_comp_type_attributes): Simplify check.
17885         (ix86_function_regparm): Use ix86_get_callcvt for calling
17886         convention attribute checks.
17887         (ix86_return_pops_args): Likewise.
17888         (ix86_static_chain): Likewise.
17889         (x86_this_parameter): Likewise.
17890         (x86_output_mi_thunk): Likewise.
17891         (ix86_function_type_abi): Optimize check for types without attributes.
17892         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
17893         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
17894         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
17895         by flag-values.
17896         (IX86_BASE_CALLCVT): Helper macro.
17897         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
17898         Use ix86_get_callcvt for calling convention attribute checks and avoid
17899         symbol-decoration for stdcall in TARGET_RTD case.
17900         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
17901         Likewise.
17902         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
17903         for declaration.
17904
17905 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
17906
17907         * config/i386/sse.md (VI_128): New mode iterator.
17908         (VI12_128): Rename from SSEMODE12.
17909         (VI14_128): Rename from SSEMODE14.
17910         (VI124_128): New mode iterator.
17911         (VI24_128): Rename from SSEMODE248.
17912         (VI248_128): Rename from SSEMODE248.
17913         (SSEMODE124C8): Remove.
17914         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
17915         (*sse2_<plusminus_insn><mode>3): Merge with
17916         *avx_<plusminus_insn><mode>3.
17917         (*mulv8hi3): Merge with *avx_mulv8hi3.
17918         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
17919         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
17920         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
17921         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
17922         (ashr<mode>3): Merge with *avx_ashr<mode>3.
17923         (lshr<mode>3): Merge with *avx_lshr<mode>3.
17924         (ashl<mode>3): Merge with *avx_ashl<mode>3.
17925         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
17926         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
17927         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17928         (*<smaxmin:code>v8hi3): Ditto.
17929         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
17930         (*<smaxmin:code>v16qi3): Ditto.
17931         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
17932         (*sse2_eq<mode>3): Ditto.
17933         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
17934         (*sse2_gt<mode>3): Ditto.
17935         (vcondv2di): Split out of vcond<mode>.
17936         (vconduv2di): Split out of vcondu<mode>.
17937
17938 2011-04-11  Richard Guenther  <rguenther@suse.de>
17939
17940         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
17941         before calling tree_low_cst.
17942
17943 2011-04-11  Richard Guenther  <rguenther@suse.de>
17944
17945         * stor-layout.c (layout_type): Compute all array index size operations
17946         in the original type.
17947         (initialize_sizetypes): Add comment.
17948         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
17949
17950 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
17951
17952         * common.opt (Tbss=, Tdata=, Ttext=): New options.
17953
17954 2011-04-11  Martin Jambor  <mjambor@suse.cz>
17955
17956         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
17957         of cgraph_node, handle NULL return value.
17958         (cgraph_global_info): Likewise.
17959         (cgraph_rtl_info): Likewise.
17960         * tree-inline.c (estimate_num_insns): Likewise.
17961         * gimplify.c (unshare_body): Likewise.
17962         (unvisit_body): Likewise.
17963         (gimplify_body): Likewise.
17964         * predict.c (optimize_function_for_size_p): Likewise.
17965         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
17966         (call_may_clobber_ref_p_1): Likewise.
17967         * varasm.c (function_section_1): Likewise.
17968         (assemble_start_function): Likewise.
17969
17970 2011-04-11  Martin Jambor  <mjambor@suse.cz>
17971
17972         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
17973         of cgraph_node.
17974         * final.c (rest_of_clean_state): Likewise.
17975         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
17976         * passes.c (pass_init_dump_file): Likewise.
17977         (execute_all_ipa_transforms): Likewise.
17978         (function_called_by_processed_nodes_p): Likewise.
17979         * predict.c (maybe_hot_frequency_p): Likewise.
17980         (probably_never_executed_bb_p): Likewise.
17981         (compute_function_frequency): Likewise.
17982         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
17983         (unnest_nesting_tree_1): Likewise.
17984         (lower_nested_functions): Likewise.
17985         * tree-optimize.c (execute_fixup_cfg): Likewise.
17986         (tree_rest_of_compilation): Likewise.
17987         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
17988         * tree-sra.c (ipa_early_sra): Likewise.
17989         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
17990         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
17991         * ipa.c (record_cdtor_fn): Likewise.
17992         * ipa-inline.c (cgraph_early_inlining): Likewise.
17993         (compute_inline_parameters_for_current): Likewise.
17994         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
17995         * ipa-pure-const.c (local_pure_const): Likewise.
17996         * ipa-split.c (split_function): Likewise.
17997         (execute_split_functions): Likewise.
17998         * cgraphbuild.c (build_cgraph_edges): Likewise.
17999         (rebuild_cgraph_edges): Likewise.
18000         (cgraph_rebuild_references): Likewise.
18001         (remove_cgraph_callee_edges): Likewise.
18002         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
18003         (verify_cgraph_node): Likewise.
18004         (cgraph_analyze_functions): Likewise.
18005         (cgraph_preserve_function_body_p): Likewise.
18006         (save_inline_function_body): Likewise.
18007         (save_inline_function_body): Likewise.
18008         * tree-inline.c (copy_bb): Likewise.
18009         (optimize_inline_calls): Likewise.
18010
18011 2011-04-11  Martin Jambor  <mjambor@suse.cz>
18012
18013         PR tree-optimization/48195
18014         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
18015         ipa_check_create_edge_args.
18016         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
18017         ipa_check_create_edge_args.
18018         * ipa-inline.c (inline_generate_summary): Do not call
18019         ipa_check_create_node_params and ipa_check_create_edge_args.
18020         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
18021         ipa_check_create_edge_args.
18022
18023 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
18024
18025         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
18026         instead of loop.
18027         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
18028         * function.c (record_hard_reg_sets): Likewise.
18029         * ira.c (compute_regs_asm_clobbered): Likewise.
18030         * sched-deps.c (sched_analyze_1): Likewise.
18031         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
18032
18033 2011-04-09  Xinliang David Li  <davidxl@google.com>
18034
18035         PR tree-optimization/PR48484
18036         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
18037         has_valid_pred lazily
18038
18039 2011-04-09  Duncan Sands  <baldrick@free.fr>
18040
18041         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
18042
18043 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
18044
18045         * combine.c (combine_validate_cost): Adjust comments.  Set registered
18046         cost of I0 to zero at the end, if any.
18047
18048 2011-04-08  Xinliang David Li  <davidxl@google.com>
18049
18050         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
18051         to insane profile data.
18052
18053 2011-04-08  Xinliang David Li  <davidxl@google.com>
18054
18055         * ipa-cp.c (ipcp_update_profiling): Correct
18056          negative scale factor due to insane profile data.
18057
18058 2011-04-08  Xinliang David Li  <davidxl@google.com>
18059
18060         * final.c (dump_basic_block_info): New function.
18061         (final): Dump basic block.
18062         (final_scan_insn): Remove old dump.
18063
18064 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
18065
18066         PR target/47829
18067         * config.gcc (i386-*-freebsd): Disable unwind table generation for
18068         crtbegin/crtend.
18069
18070 2011-04-08  Michael Matz  <matz@suse.de>
18071
18072         PR middle-end/48389
18073         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
18074         functions.
18075         (rebuild_jump_labels): Call rebuild_jump_labels_1.
18076         * rtl.h (rebuild_jump_labels_chain): Declare.
18077         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
18078         insns inserted on edges.
18079
18080 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
18081
18082         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
18083         * config/arm/arm-arches.def: New.
18084         * config/arm/arm-opts.h: New.
18085         * config/arm/genopt.sh: New.
18086         * config/arm/arm-tables.opt: New (generated).
18087         * config/arm/arm.c (arm_handle_option, arm_target_help,
18088         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
18089         (all_architectures): Get most table contents from arm-arches.def.
18090         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
18091         arm_selected_tune here.
18092         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
18093         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
18094         (march=, mcpu=, mtune=): Use Enum and Var.
18095         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
18096         (arm.o): Update dependencies.
18097
18098 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
18099
18100         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
18101         of header_file.
18102         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
18103         (write_typed_alloc_defns): Likewise.
18104         (main): Calls write_typed_alloc_defns with output_header.
18105
18106 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
18107
18108         PR inline-asm/48435
18109         * ira-color.c (setup_profitable_hard_regs): Add comments.
18110         Don't take prohibited hard regs into account.
18111         (setup_conflict_profitable_regs): Rename to
18112         get_conflict_profitable_regs.
18113         (check_hard_reg_p): Check prohibited hard regs.
18114
18115 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
18116
18117         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
18118         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
18119         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
18120
18121 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18122
18123         PR target/48366
18124         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
18125         move from floating point to shift amount register.
18126         (emit_move_sequence): Remove secondary reload support for floating
18127         point to shift amount amount register copies.
18128         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
18129         amount register copies.
18130         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
18131         register, return false if mode isn't a scalar integer mode.
18132         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
18133
18134 2011-04-08  Richard Guenther  <rguenther@suse.de>
18135
18136         * gimple.c (gimple_call_flags): Remove kludge.
18137
18138 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18139
18140         * sel-sched.c (sel_region_init): Move call to
18141         sel_setup_region_sched_flags after setup_current_loop_nest.
18142
18143 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
18144
18145         PR rtl-optimization/48272
18146         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
18147         init_insn_reg_pressure_info.  Adjust a caller.
18148         * sched-int.h (init_insn_reg_pressure_info): Declare.
18149         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
18150         when sched-pressure is enabled.
18151
18152 2011-04-08  Richard Guenther  <rguenther@suse.de>
18153
18154         * gimple.c (gimple_set_modified): Do not queue calls to
18155         MODIFIED_NORETURN_CALLS here ...
18156         * tree-ssa-operands.c (update_stmt_operands): ... but here.
18157
18158 2011-04-08  Richard Guenther  <rguenther@suse.de>
18159
18160         PR lto/48467
18161         * toplev.c (lang_dependent_init): Do not open asm_out_file
18162         in WPA mode, nor perform debug machinery initialization.
18163         (finalize): Do not unlink asm_out_file in WPA mode.
18164
18165 2011-04-08  Richard Guenther  <rguenther@suse.de>
18166
18167         * gimple.h (gimple_call_fntype): New function.
18168         (gimple_call_return_type): Use it.
18169         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
18170         * gimple-low.c (gimple_check_call_args): Likewise.
18171         * gimple.c (gimple_call_flags): Likewise.
18172         (gimple_call_arg_flags): Likewise.
18173         (gimple_call_return_flags): Likewise.
18174         * tree-cfg.c (verify_gimple_call): Likewise.
18175         (do_warn_unused_result): Likewise.
18176         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
18177         * value-prof.c (gimple_ic_transform): Fix fndecl check.
18178
18179 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
18180
18181         PR rtl-optimization/48235
18182         * sel-sched.c (code_motion_process_successors): Recompute the last
18183         insn in basic block if control flow changed.
18184         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
18185         Update condition for ilist_remove.
18186
18187 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18188
18189         PR rtl-optimization/48302
18190         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
18191         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
18192         it to record added preheader blocks.
18193         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
18194         on to sel_add_loop_preheaders.
18195         (sel_region_init): Move call to setup_current_loop_nest after
18196         sel_init_bbs.
18197
18198 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18199
18200         PR target/48273
18201         * cfgloop.h (loop_has_exit_edges): New helper.
18202         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
18203         non-clonable.
18204         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
18205         that have no exit edges.
18206
18207 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18208
18209         PR rtl-optimization/48442
18210         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
18211         all callers.  Adjust assert.
18212
18213 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
18214
18215         PR tree-optimization/48377
18216         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
18217         is_packed to true even for types with smaller TYPE_ALIGN than
18218         TYPE_SIZE.
18219
18220 2011-04-08  Richard Guenther  <rguenther@suse.de>
18221
18222         PR bootstrap/48513
18223         * doc/tm.texi: Re-generate.
18224
18225 2011-04-08  Wei Guozhi  <carrot@google.com>
18226
18227         PR target/47855
18228         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
18229         * config/arm/arm.c (arm_attr_length_push_multi): New function.
18230         * config/arm/arm.md (*push_multi): Change the length computation to
18231         call a C function.
18232
18233 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
18234
18235         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
18236         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
18237         * doc/tm.texi: Regenerate.
18238         * system.h (ASM_OUTPUT_BSS): Poison.
18239         * varasm.c (asm_output_bss): Remove function.
18240         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
18241
18242         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
18243         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
18244         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
18245         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18246         Likewise.
18247         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18248         Likewise.
18249         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18250         Likewise.
18251         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
18252
18253 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
18254
18255         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
18256         EnumValue lines.
18257
18258 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
18259
18260         * config/m68k/m68k.c (m68k_handle_option): Don't handle
18261         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
18262         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
18263         OPT_mcpu32.
18264         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
18265         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
18266         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
18267         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
18268         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
18269         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
18270         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
18271         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
18272         options.  Don't map other m68k options manually.  Don't handle
18273         old-style options as canonical.
18274         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
18275         * doc/install.texi (m68k-*-*): Document binutils version requirement.
18276
18277 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
18278
18279         * basic-block.h (force_nonfallthru): Move to...
18280         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
18281         (force_nonfallthru): ...here.
18282         * cfghooks.c (force_nonfallthru): New function.
18283         * cfgrtl.c (force_nonfallthru): Rename into...
18284         (rtl_force_nonfallthru): ...this.
18285         (commit_one_edge_insertion): Do not set AUX field.
18286         (commit_edge_insertions): Do not discover new basic blocks.
18287         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
18288         (cfg_layout_rtl_cfg_hooks): Likewise.
18289         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
18290         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
18291         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
18292
18293 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
18294
18295         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18296         Remove macros.
18297
18298 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
18299
18300         * config/i386/sse.md: Update copyright year.
18301         (avxcvtvecmode): Remove.
18302         (sse_movhlps): Merge with *avx_movhlps.
18303         (sse_movlhps): Merge with *avx_movlhps.
18304         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
18305         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
18306         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
18307         (sse_loadhps): Merge with *avx_loadhps.
18308         (sse_storelps): Merge with *avx_storelps.
18309         (sse_loadlps): Merge with *avx_loadlps.
18310         (sse_movss): Merge with *avx_movss.
18311         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
18312         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
18313         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
18314         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
18315         (vec_set<mode>_0): Ditto.
18316         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
18317         (sse4_1_insertps): Merge with *avx_insertps.
18318         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
18319         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
18320         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
18321         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
18322         (sse2_storehpd): Merge with *avx_storehpd.
18323         (sse2_loadhpd): Merge with *avx_loadhpd.
18324         (sse2_loadlpd): Merge with *avx_loadlpd.
18325         (sse2_movsd): Merge with *avx_movsd.
18326         (*vec_concatv2df): Merge with *vec_concatv2df.
18327
18328 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
18329
18330         PR debug/48343
18331         * combine.c (combine_instructions): Add last_combined_insn,
18332         update it if insn is after it, pass it to all try_combine calls.
18333         (try_combine): Add last_combined_insn parameter, pass it instead of
18334         i3 to propagate_for_debug.
18335
18336 2011-04-07  Nick Clifton  <nickc@redhat.com>
18337
18338         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
18339         to handle MDR <-> data register transfers.
18340         (movhi_internal): Likewise.
18341
18342 2011-04-07  Alan Modra  <amodra@gmail.com>
18343
18344         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
18345         previous stack info.
18346
18347 2011-04-07  Tom de Vries  <tom@codesourcery.com>
18348
18349         PR target/43920
18350         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
18351         flow_find_cross_jump.  Swap variables to implement backward replacement.
18352         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
18353
18354 2011-04-07  Tom de Vries  <tom@codesourcery.com>
18355
18356         PR target/43920
18357         * cfgcleanup.c (walk_to_nondebug_insn): New function.
18358         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
18359         and bb2.
18360         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
18361         src1 or src2.  Redirect edges to the last basic block.  Update
18362         frequency and count on multiple basic blocks in case of fallthru.
18363
18364 2011-04-07  Tom de Vries  <tom@codesourcery.com>
18365
18366         PR target/43920
18367         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
18368         function.
18369         (old_insns_match_p): Change return type.  Replace return false/true
18370         with return dir_none/dir_both.  Use can_replace_by.
18371         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
18372         direction from dir_p.  Register replacement direction in dir, last_dir
18373         and afterlast_dir.  Handle new return type of old_insns_match_p using
18374         merge_dir.  Return replacement direction in dir_p.
18375         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
18376         return type of old_insns_match_p.
18377         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
18378         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
18379         flow_find_cross_jump.
18380         * basic-block.h (enum replace_direction): New type.
18381         (flow_find_cross_jump): Add parameter to declaration.
18382
18383 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
18384
18385         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
18386         (AVXMODEDCVTPS2DQ): Ditto.
18387         (VEC_FLOAT_MODE): Ditto.
18388         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
18389         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
18390         (<any_logic:code><mode>3): Use VF mode iterator.
18391         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
18392         Use VF mode iterator.
18393         (copysign<mode>3): Use VF mode iterator.
18394         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
18395         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
18396         (*<any_logic:code><MODEF:mode>3): Merge with
18397         *avx_<any_logic:code><MODEF:mode>3.
18398         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
18399         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
18400         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
18401         (avx_cvtdq2ps<avxmodesuffix>): Remove.
18402         (sse2_cvtdq2ps): Use %v modifier.
18403         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
18404         (avx_cvtps2dq<avxmodesuffix>): Remove.
18405         (sse2_cvtps2dq): Use %v modifier.
18406         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
18407         (avx_cvttps2dq<avxmodesuffix>): Remove.
18408         (sse2_cvttps2dq): Use %v modifier.
18409         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
18410         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
18411         (sse2_cvtsd2siq): Fix insn template.
18412         (sse2_cvtsd2siq_2): Ditto.
18413         (sse2_cvttsd2siq): Ditto.
18414         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
18415         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
18416
18417 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
18418
18419         * gcov-io.c: Use GCC Runtime Library Exception.
18420
18421 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
18422
18423         PR debug/48466
18424         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
18425         as base_reg whatever register reg has been eliminated to, instead
18426         of hardcoding STACK_POINTER_REGNUM.
18427
18428 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
18429
18430         * doc/tm.texi.in: Document C target hooks as separate from general
18431         target hooks.
18432         * doc/tm.texi: Regenerate.
18433         * genhooks.c (struct hook_desc): Add docname field.
18434         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
18435         docname field.
18436         (hook_array): Include c-target.def.
18437         (emit_documentation): Use docname field in output.
18438         (emit_init_macros): Take docname argument.  Only emit definitions
18439         for hooks matching docname.
18440         (main): Expect additional arguments in all cases.  Pass argument
18441         to emit_init_macros.
18442         * target.def: Move initial macro definitions and comments to
18443         target-hooks-macros.h.
18444         (gcc_targetcm): Move to c-family/c-target.def.
18445         * target.h (targetcm): Move declaration to c-family/c-target.h.
18446         * targhooks.c (default_handle_c_option): Move to
18447         c-family/c-opts.c.
18448         * targhooks.h (default_handle_c_option): Move declaration to
18449         c-family/c-common.h.
18450         * target-hooks-macros.h: New file.
18451         * config.gcc (target_has_targetcm): Define and use to add to
18452         c_target_objs and cxx_target_objs.
18453         * config/default-c.c: New file.
18454         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
18455         of target.h and target-def.h.
18456         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
18457         (darwin_objc_construct_string, darwin_cfstring_ref_p,
18458         darwin_check_cfstring_format_arg): Make static.
18459         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
18460         TARGET_STRING_OBJECT_REF_TYPE_P,
18461         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
18462         * config/darwin-protos.h (darwin_objc_construct_string,
18463         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
18464         declare.
18465         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
18466         TARGET_STRING_OBJECT_REF_TYPE_P,
18467         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
18468         * config/t-darwin (darwin-c.o): Update dependencies.
18469         * system.h (TARGET_HAS_TARGETCM): Poison.
18470         * Makefile.in (TARGET_H): Update.
18471         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
18472         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
18473         (default-c.o): New target.
18474         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
18475         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
18476         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
18477         c-target.def.
18478         (build/genhooks.o): Update dependencies.
18479
18480 2011-04-06  Richard Guenther  <rguenther@suse.de>
18481
18482         * ipa-inline.c (enum inlining_mode): Remove.
18483         (cgraph_flatten): Use some other token.
18484         (cgraph_edge_early_inlinable_p): New function, split out from ...
18485         (cgraph_perform_always_inlining): New function, split out from ...
18486         (cgraph_decide_inlining_incrementally): ... here.
18487         (cgraph_mark_inline_edge): Adjust.
18488         (cgraph_early_inlining): Re-structure.
18489         (pass_early_inline): Require SSA form.
18490
18491 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
18492             Julian Brown  <julian@codesourcery.com>
18493             Mark Shinwell  <shinwell@codesourcery.com>
18494
18495         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
18496         LO_REGS only for Thumb-1.
18497         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
18498         be used in short instructions when optimising for size on Thumb-2.
18499
18500 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
18501
18502         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
18503         associated with user returns to be preserved.
18504
18505 2011-04-06  Tristan Gingold  <gingold@adacore.com>
18506
18507         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
18508         symbol_queue_size, DBXOUT_DECR_NESTING,
18509         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
18510         if XCOFF_DEBUGGING_INFO.
18511
18512 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
18513
18514         * config/i386/i386.md (attribute isa): New.
18515         (attribute enabled): New.
18516         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
18517         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
18518         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
18519         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
18520         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
18521         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18522         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
18523         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
18524
18525         * config/i386/sse.md (VF): New mode iterator.
18526         (VF1): Ditto.
18527         (VF2): Ditto.
18528         (VF_128): Ditto.
18529         (SSEMODEF4): Remove.
18530         (attribute sse): Handle V8SF and V4DF modes.
18531         (<absneg:code><mode>2): Use VF mode iterator.
18532         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
18533         mode iterator.
18534         (<plusminus_insn><mode>3): Use VF mode iterator.
18535         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
18536         Use VF mode iterator.
18537         (<sse>_vm<plusminus_insn><mode>3): Merge with
18538         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
18539         (mul<mode>3): Use VF mode iterator.
18540         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
18541         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
18542         mode iterator.
18543         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
18544         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
18545         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
18546         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
18547         mode iterator.
18548         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
18549         Use VF1 mode iterator.
18550         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
18551         (sqrt<VF2:mode>2): New expander.
18552         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
18553         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
18554         and sqrtv2df2.  Use VF mode iterator.
18555         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
18556         mode iterator.
18557         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
18558         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
18559         Use VF1 mode iterator.
18560         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
18561         (<smaxmin:code><mode>3): Use VF mode iterator.
18562         (*<smaxmin:code><mode>3_finite): Merge with
18563         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
18564         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18565         (<sse>_vm<smaxmin:code><mode>2): Merge with
18566         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
18567         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
18568         mode iterator.
18569         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
18570         mode iterator.
18571         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
18572         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
18573         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
18574         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
18575         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
18576         VF mode iterator.
18577         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
18578         Use VF_128 mode iterator.
18579         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
18580         mode iterator.
18581         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
18582         VF_128 mode iterator.
18583         (vcond<mode>): Use VF mode iterator.
18584         * config/i386/predicates.md (sse_comparison_operator): Merge with
18585         avx_comparison_float_operator.  Do not declare as special_predicate.
18586         * config/i386/i386.c (struct builtin_description): Update for renamed
18587         compare patterns.
18588         (ix86_expand_args_builtin): Ditto.
18589         (ix86_expand_sse_compare_mask): Ditto.
18590
18591 2011-04-06  Richard Guenther  <rguenther@suse.de>
18592
18593         * tree-inline.c (estimate_num_insns): For calls simply account
18594         for all passed arguments and a used return value.
18595
18596 2011-04-06  Richard Guenther  <rguenther@suse.de>
18597
18598         PR tree-optimization/47663
18599         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
18600         call_stmt_time fields.
18601         (cgraph_edge_inlinable_p): Declare.
18602         (cgraph_edge_recursive_p): New inline function.
18603         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
18604         (cgraph_clone_edge): Copy it.
18605         * ipa-inline.c (cgraph_estimate_edge_time): New function.
18606         Account for call stmt time.
18607         (cgraph_estimate_time_after_inlining): Take edge argument.
18608         (cgraph_estimate_edge_growth): Account call stmt size.
18609         (cgraph_estimate_size_after_inlining): Take edge argument.
18610         (cgraph_mark_inline_edge): Adjust.
18611         (cgraph_check_inline_limits): Likewise.
18612         (cgraph_recursive_inlining_p): Remove.
18613         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
18614         (cgraph_decide_recursive_inlining): Take edge argument and
18615         adjust.
18616         (cgraph_decide_inlining_of_small_functions): Do not avoid
18617         diags for recursive inlining here.
18618         (cgraph_flatten): Adjust.
18619         (cgraph_decide_inlining_incrementally): Likewise.
18620         (estimate_function_body_sizes): Remove call cost handling.
18621         (compute_inline_parameters): Initialize caller edge call costs.
18622         (cgraph_estimate_edge_growth): New function.
18623         (cgraph_estimate_growth): Use it.
18624         (cgraph_edge_badness): Likewise.
18625         (cgraph_check_inline_limits): Take an edge argument.
18626         (cgraph_decide_inlining_of_small_functions): Adjust.
18627         (cgraph_decide_inlining): Likewise.
18628         * tree-inline.c (estimate_num_insns): Only account for call
18629         return value if it is used.
18630         (expand_call_inline): Avoid diagnostics on recursive inline
18631         functions here.
18632         * lto-cgraph.c (lto_output_edge): Output edge call costs.
18633         (input_edge): Input edge call costs.
18634
18635 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18636
18637         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
18638
18639 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
18640
18641         * doc/invoke.texi (Spec Files): Fix typo.
18642
18643 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
18644
18645         * profile.c (branch_prob): Move declaration of local variable.  Remove
18646         obsolete ??? comment.  Expand the location explicitly instead of using
18647         the LOCATION_FILE and LOCATION_LINE macros.
18648
18649 2011-04-06  Wei Guozhi  <carrot@google.com>
18650
18651         PR target/47855
18652         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
18653         (arm_cond_branch): Likewise.
18654         (arm_cond_branch_reversed): Likewise.
18655         (arm_jump): Likewise.
18656         (push_multi): Likewise.
18657         * config/arm/constraints.md (Py): New constraint.
18658
18659 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18660
18661         PR bootstrap/48471
18662         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
18663         Move these...
18664         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
18665         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
18666         #ifdef DBX_DEBUGGING_INFO.
18667
18668 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
18669
18670         PR bootstrap/48403
18671         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
18672         if old and new states differ.
18673
18674 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
18675
18676         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
18677         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
18678         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
18679         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
18680         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
18681         mcfv4e): Use Alias.
18682         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
18683         ColdFire options to -mcpu= options.
18684
18685 2011-04-05  Jeff Law  <law@redhat.com>
18686
18687         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
18688         check if BB is a successor of LOOP->header and return
18689         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
18690
18691 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
18692
18693         * cprop.c (struct reg_use): Remove.
18694         (reg_use_table): Make an array of RTX.
18695         (find_used_regs, constprop_register, local_cprop_pass,
18696         bypass_block): Simplify users of reg_use_table.
18697         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
18698         on one of the uses found by find_used_regs.
18699
18700 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18701
18702         PR bootstrap/48469
18703         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
18704         declaration.
18705
18706 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18707
18708         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
18709         as an rtx.
18710         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
18711
18712 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
18713
18714         PR middle-end/48441
18715         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
18716
18717 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18718
18719         * combine.c: Include obstack.h.
18720         (struct insn_link): Define.
18721         (uid_log_links): Adjust type.
18722         (FOR_EACH_LOG_LINK): New macro.
18723         (insn_link_obstack): Declare.
18724         (alloc_insn_link): Define.
18725         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
18726         type of link variables.
18727         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
18728         (try_combine, record_promoted_values, distribute_notes): Likewise.
18729         (distribute_links): Likewise.  Tweak prototype.
18730         (clear_log_links): Delete.
18731         (adjust_for_new_dest): Call alloc_insn_link.
18732         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
18733
18734 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18735
18736         * gcse.c (modify_mem_list): Convert to an array of VECs.
18737         (canon_modify_mem_list, compute_transp): Tweak formatting.
18738         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
18739         (load_killed_in_block_p): Likewise.
18740         (record_last_mem_set_info): Likewise.
18741         (clear_modify_mem_tables): Likewise.
18742
18743 2011-04-05  Tom de Vries  <tom@codesourcery.com>
18744
18745         PR middle-end/48461
18746         * function.c (emit_use_return_register_into_block): Only define if
18747         HAVE_return.
18748
18749 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
18750
18751         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
18752
18753 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
18754
18755         * config/rx/rx-opts.h: New.
18756         * config/rx/rx.c (rx_cpu_type): Remove.
18757         (rx_handle_option): Don't assert that global structures are in
18758         use.  Access variables via opts pointer.  Defer most handling of
18759         OPT_mint_register_.  Use error_at.
18760         (rx_option_override): Handle deferred OPT_mint_register_ here.
18761         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
18762         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
18763         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
18764         (rx_cpu_types): New Enum and EnumValue entries.
18765         (mint-register=): Use Defer and use Var accordingly.
18766
18767 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18768
18769         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
18770         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
18771         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
18772         Move these...
18773         (debug_free_queue, debug_nesting, symbol_queue_index):
18774         ...and these...
18775         * dbxout.c: ...to here.  Make static.
18776
18777 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18778
18779         * gcse.c (modify_pair): Define.  Define a VEC of it.
18780         (canon_modify_mem_list): Convert to an array of VECs.
18781         (free_insn_expr_list_list): Delete.
18782         (clear_modify_mem_tables): Call VEC_free instead.
18783         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
18784         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
18785         (canon_list_insert, compute_transp): Likewise.
18786
18787 2011-04-05  Tom de Vries  <tom@codesourcery.com>
18788
18789         PR target/43920
18790         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
18791         for size.
18792
18793 2011-04-05  Tom de Vries  <tom@codesourcery.com>
18794
18795         PR target/43920
18796         * function.c (emit_use_return_register_into_block): New function.
18797         (thread_prologue_and_epilogue_insns): Use
18798         emit_use_return_register_into_block.
18799
18800 2011-04-05  Tom de Vries  <tom@codesourcery.com>
18801
18802         PR target/43920
18803         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
18804         insn.
18805
18806 2011-04-05  Tom de Vries  <tom@codesourcery.com>
18807
18808         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
18809
18810 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
18811
18812         * config/arm/arm.md (define_constants for unspec): Replace with
18813         define_c_enum.
18814         (define_constants for unspecv): Replace with define_c_enum.
18815         * config/arm/neon.md (define_constants for unspec): Replace with
18816         define_c_enum.
18817
18818 2011-04-04  Richard Henderson  <rth@redhat.com>
18819
18820         PR bootstrap/48400
18821         * dwarf2out.c (output_line_info): Always emit line info from
18822         at least one section.
18823         (dwarf2out_init): Create text_section_line_info here ...
18824         (set_cur_line_info_table): ... not here.
18825
18826 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
18827
18828         PR target/48380
18829         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
18830         not called.
18831
18832         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
18833
18834 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
18835
18836         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
18837         (expr_equiv_p): Remove.
18838         (insert_set_in_table): Look at <dest, src> pair instead of expr.
18839         (hash_scan_set): Update call to insert_set_in_table.
18840         (dump_hash_table): Dump <dest, src> pair.
18841         (lookup_set): Simplify.  Lookup <dest, src> pair.
18842         (compute_transp): Remove, fold heavily simplified code into...
18843         (compute_local_properties): ...here.  Expect COMP and TRANSP
18844         unconditionally.
18845         (find_avail_set): Take set directly from struct expr.
18846         (find_bypass-set): Likewise.
18847         (bypass_block): Likewise.
18848         (cprop_insn): Likewise.  Remove redundant INSN_P test.
18849
18850         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
18851         checks on form of COND from find_implicit_sets to here.
18852         (find_implicit_sets): Cleanup control flow. Split critical edges
18853         if it exposes implicit sets.  Allocate/resize implicit_sets as
18854         necessary.
18855         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
18856         changed something.  Run df_analyze after find_implicit_sets if any
18857         edges were split.  Do not allocate implicit_sets here.
18858
18859         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
18860         (gcse_obstack): Renamed to cprop_obstack.
18861         (GNEW, GNEWVEC, GNEWVAR): Remove.
18862         (gmalloc): Remove.
18863         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
18864         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
18865         (gcse_alloc): Likewise, and rename to cprop_alloc.
18866         (alloc_gcse_men, free_gcse_mem): Remove.
18867         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
18868         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
18869         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
18870
18871         * cprop.c (oprs_not_set_p): Remove.
18872         (mark_set, mark_clobber): Remove.
18873         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
18874         (reg_not_set_p): New function.
18875         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
18876         (cprop_insn): Likewise.
18877         (cprop_jump): Use FOR_EACH_EDGE.
18878
18879 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
18880
18881         PR bootstrap/48403
18882         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
18883         (rank_for_schedule): Use scheduled_insns vector instead of
18884         last_scheduled_insn.
18885         (ok_for_early_queue_removal): Likewise.
18886         (queue_to_ready): Search forward in nonscheduled_insns_begin if
18887         we have a dbg_cnt.
18888         (choose_ready): Likewise.
18889         (commit_schedule): Use VEC_iterate.
18890         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
18891         a dbg_cnt, use it and ensure the first insn is in the ready list.
18892         (haifa_sched_init): Allocate scheduled_insns.
18893         (sched_extend_ready_list): Don't allocate it; reserve space.
18894         (haifa_sched_finish): Free it.
18895
18896 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
18897
18898         * optc-gen.awk: Always remove type from Variable entry before
18899         recording in var_seen.
18900
18901 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
18902
18903         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
18904         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
18905         call to tidy_fallthru_edges.
18906
18907 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
18908
18909         * doc/options.texi (ToLower): Document.
18910         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
18911         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
18912         * opts.h (cl_option): Add cl_tolower field.
18913         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
18914         arguments with lowercase strings.
18915         * config/rx/rx.opt (mcpu=): Add ToLower.
18916         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
18917         argument.
18918
18919 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
18920
18921         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
18922
18923 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
18924
18925         * config/vax/vax.c: Include reload.h.
18926
18927 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
18928
18929         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
18930         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
18931         (sparc_preferred_reload_class): New function.
18932
18933 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
18934
18935         PR debug/48401
18936         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
18937         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
18938
18939 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
18940
18941         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
18942         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
18943
18944 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
18945
18946         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
18947         (ASM_OUTPUT_ALIGNED_BSS): Define.
18948
18949 2011-04-03  Michael Matz  <matz@suse.de>
18950
18951         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
18952         and next_slot members.
18953         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
18954         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
18955         (lto_streamer_cache_append): Declare.
18956         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
18957         unsigned index, remove offset parameter, ensure that we append
18958         or update existing entries.
18959         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
18960         parameter, update next_slot for append.
18961         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
18962         parameter.
18963         (lto_streamer_cache_insert_at): Likewise.
18964         (lto_streamer_cache_append): New function.
18965         (lto_streamer_cache_lookup): Use unsigned index.
18966         (lto_streamer_cache_get): Likewise.
18967         (lto_record_common_node): Don't test tree_node_can_be_shared.
18968         (preload_common_node): Adjust call to lto_streamer_cache_insert.
18969         (lto_streamer_cache_delete): Don't free offsets member.
18970         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
18971         (lto_output_string_with_length): Use lto_output_data_stream.
18972         (lto_output_tree_header): Remove ix parameter, don't write it.
18973         (lto_output_builtin_tree): Likewise.
18974         (lto_write_tree): Adjust callers to above, don't track and write
18975         offset, write unsigned index.
18976         (output_unreferenced_globals): Don't emit all global vars.
18977         (write_global_references): Use unsigned indices.
18978         (lto_output_decl_state_refs): Likewise.
18979         (write_symbol): Likewise.
18980         * lto-streamer-in.c (lto_input_chain): Move earlier.
18981         (input_function): Use unsigned index.
18982         (input_alias_pairs): Don't read and then ignore all global vars.
18983         (lto_materialize_tree): Remove ix_p parameter, don't read index,
18984         don't pass it back, use lto_streamer_cache_append.
18985         (lto_register_var_decl_in_symtab): Use unsigned index.
18986         (lto_register_function_decl_in_symtab): Likewise.
18987         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
18988         index.
18989         (lto_get_builtin_tree): Don't read index, use
18990         lto_streamer_cache_append.
18991         (lto_read_tree): Adjust call to lto_materialize_tree.
18992
18993         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
18994         don't use function calls in arguments to MIN.
18995
18996         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
18997         twice.
18998
18999         * gimple.c (gimple_type_leader_entry): Mark deletable.
19000
19001 2011-04-03  Alan Modra  <amodra@gmail.com>
19002
19003         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
19004
19005 2011-04-03  Michael Matz  <matz@suse.de>
19006
19007         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
19008         an integer.
19009         * tree.h (tree_decl_non_common.vindex): Adjust comment.
19010
19011 2011-04-03  Michael Matz  <matz@suse.de>
19012
19013         * cgraphbuild.c (record_reference): Canonicalize constructor values.
19014         * gimple-fold.c (canonicalize_constructor_val): Accept being called
19015         without function context.
19016         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
19017         current_function_decl and cfun.
19018
19019 2011-04-03  Michael Matz  <matz@suse.de>
19020
19021         * tree.c (decl_init_priority_insert): Don't create entry for
19022         default priority.
19023         (decl_fini_priority_insert): Ditto.
19024         (fields_compatible_p, find_compatible_field): Remove.
19025         * tree.h (fields_compatible_p, find_compatible_field): Remove.
19026         * gimple.c (gimple_compare_field_offset): Adjust block comment.
19027
19028 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
19029
19030         * combine.c (try_combine): Remove useless local variable.
19031
19032 2011-04-03  Richard Guenther  <rguenther@suse.de>
19033             Ira Rosen  <ira.rosen@linaro.org>
19034
19035         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
19036         non-variable offsets and compare the remaining bases of the two
19037         accesses instead of looking for exact same data-ref.
19038
19039 2011-04-02  Kai Tietz  <ktietz@redhat.com>
19040
19041         PR target/48416
19042         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
19043
19044         * i386.c (ix86_is_msabi_thiscall): New helper function.
19045         (ix86_is_type_thiscall): New helper function.
19046         (ix86_comp_type_attributes): Handle thiscall for method-functions
19047         special.
19048         (init_cumulative_args): Likewise.
19049         (find_drap_reg): Likewise.
19050         (ix86_static_chain): Likewise.
19051         (x86_this_parameter): Likewise.
19052         (x86_output_mi_thunk): Likewise.
19053
19054 2011-04-01  Olivier Hainque  <hainque@adacore.com>
19055             Nicolas Setton  <setton@adacore.com>
19056             Eric Botcazou  <ebotcazou@adacore.com>
19057
19058         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
19059         (add_gnat_descriptive_type_attribute): New function.
19060         (gen_array_type_die): Call it.
19061         (gen_enumeration_type_die): Likewise.
19062         (gen_struct_or_union_type_die): Likewise.
19063         (modified_type_die): Likewise.
19064         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
19065         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
19066         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
19067
19068 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
19069
19070         PR bootstrap/48148
19071         * dwarf2out.c (resolve_addr): Don't call force_decl_die
19072         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
19073
19074         Revert:
19075         2011-03-17  Richard Guenther  <rguenther@suse.de>
19076
19077         PR bootstrap/48148
19078         * lto-cgraph.c (input_overwrite_node): Clear the abstract
19079         origin for decls in other ltrans units.
19080         (input_varpool_node): Likewise.
19081
19082 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
19083
19084         PR middle-end/48335
19085         * expr.c (expand_assignment): Handle all possibilities
19086         if TO_RTX is CONCAT.
19087         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19088         (store_split_bit_field): If SUBREG_REG (op0) or
19089         op0 itself has smaller mode than word, return it
19090         for offset 0 and const0_rtx for out-of-bounds stores.
19091         If word is const0_rtx, skip it.
19092
19093 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
19094
19095         * config/h8300/h8300.c (print_operand_address): Rename to...
19096         (h8300_print_operand_address): ...this. Make static. Adjust comments.
19097         Call h8300_print_operand and h8300_print_operand_address instead of
19098         print_operand and print_operand_address. Declare.
19099         (print_operand): Renake to...
19100         (h8300_print_operand): ...this. Make static. Adjust comments.
19101         Call h8300_print_operand instead of print_operand. Declare.
19102         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
19103         (h8300_register_move_cost): Likewise.
19104         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
19105         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
19106         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
19107         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
19108         * config/h8300/h8300-protos.h (print_operand): Delete.
19109         (print_operand_address): Delete.
19110
19111 2011-04-01  Richard Henderson  <rth@redhat.com>
19112
19113         PR 48400
19114         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
19115         in strict mode before dwarf4.  Re-order tests to early out
19116         before switching sections.
19117
19118 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
19119
19120         * config/h8300/constraints.md: New file.
19121         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
19122         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
19123         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
19124         * config/h8300/predicates.md (bit_operand): Likewise.
19125         (incdec_operand): Use satisfies_constraint_M and
19126         satisfies_constraint_O.  Don't use C code block.
19127         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
19128         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
19129         (compute_mov_length): Use satisfies_constraint_G.
19130         (fix_bit_operand): Use satisfies_constraint_U.
19131         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
19132         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
19133         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
19134         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
19135         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
19136         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
19137         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19138         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
19139         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
19140         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
19141         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
19142         (EXTRA_MEMORY_CONSTRAINT): Delete.
19143
19144 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
19145             Michael Meissner  <meissner@linux.vnet.ibm.com>
19146
19147         PR target/48262
19148         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
19149         operands, as per the specifications.
19150
19151         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
19152         (vec_extract_evenv4sf): Ditto.
19153         (vec_extract_evenv8hi): Ditto.
19154         (vec_extract_evenv16qi): Ditto.
19155         (vec_extract_oddv4si): Ditto.
19156
19157 2011-03-31  Mark Wielaard  <mjw@redhat.com>
19158
19159         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
19160         high_pc attribute if the CU has no associated code. Only output
19161         DW_AT_entry_pc for CU if not generating strict dwarf and
19162         dwarf_version < 4.
19163
19164 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
19165
19166         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
19167         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
19168         out of ...
19169         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
19170         * final.c (final_start_function): Call the new function rather
19171         than using a NULL argument for dwarf2out_frame_debug.
19172
19173         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
19174         that contains the prologue.
19175
19176         * haifa-sched.c (queue_insn): New arg REASON.  All callers
19177         changed.  Print it in debugging output.
19178
19179         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
19180
19181         * sched-ebb.c (begin_schedule_ready): Remove second argument.
19182         Split most of the code into...
19183         (begin_move_insn): ... here.  New function.
19184         (ebb_sched_info): Add a pointer to it.
19185         * haifa-sched.c (scheduled_insns): New static variable.
19186         (sched_extend_ready_list): Allocate it.
19187         (schedule_block): Use it to record the order of scheduled insns.
19188         Perform RTL changes to move insns only after all scheduling
19189         decisions have been made.
19190         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
19191         begin_move_insn field.
19192         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
19193         * sched-int.h (struct haifa_sched_info): Remove second argument
19194         from begin_schedule_ready hook.  Add new member begin_move_insn.
19195         * sched-rgn.c (begin_schedule_ready): Remove second argument.
19196         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
19197
19198         * haifa-sched.c (prune_ready_list): New function, broken out of
19199         schedule_block.
19200         (schedule_block): Use it.
19201
19202 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19203
19204         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
19205
19206 2011-04-01  Kai Tietz  <ktietz@redhat.com>
19207
19208         * config.gcc (*-*-mingw*): Allow as option the
19209         posix threading model.
19210         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
19211         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
19212         definition.
19213         (CPP_SPEC): Add pthread/no-pthread handling.
19214         (LIB_SPEC): Likewise.
19215         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
19216         (LIB_SPEC): Likewise.
19217         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
19218         flag to pass -pthread option for shared libgcc build.
19219         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
19220         for shared libgcc build.
19221         * config/i386/t-mingw-pthread: New file.
19222         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
19223         New define to enable use of library pthread by default.
19224         * config/i386/mingw.opt (pthread): New driver option.
19225         (no-pthread): New driver option.
19226         * config/i386/cygming.opt: Make sure trailing empty line is retained.
19227         * config/i386/mingw-w64.opt: Likewise.
19228
19229 2011-04-01  Gary Funck  <gary@intrepid.com>
19230
19231         * c-decl.c (grokdeclarator): Fix formatting.
19232
19233 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19234
19235         * expr.c (emit_block_move_via_movmem): Use n_generator_args
19236         instead of n_operands.
19237         (set_storage_via_setmem): Likewise.
19238         * optabs.c (maybe_gen_insn): Likewise.
19239         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
19240         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
19241         (mips_expand_builtin_direct): Likewise.
19242         * config/spu/spu.c (expand_builtin_args): Likewise.
19243
19244 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19245
19246         * recog.h (insn_data_d): Add n_generator_args.
19247         * genoutput.c (data): Likewise.
19248         (output_insn_data): Print it.
19249         (max_opno, num_dups): Delete.
19250         (scan_operands): Just fill in "d->operand[...]".
19251         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
19252
19253 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19254
19255         * gensupport.h (pattern_stats): New structure.
19256         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
19257         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
19258         (max_operand_1, max_operand_vec): Delete.
19259         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
19260
19261 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
19262
19263         * emit-rtl.c (emit_pattern_after_setloc): New function.
19264         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
19265         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
19266         (emit_pattern_after): New function.
19267         (emit_insn_after, emit_jump_insn_after): Call it.
19268         (emit_call_insn_after, emit_debug_insn_after): Likewise.
19269         (emit_pattern_before_setloc): New function.
19270         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
19271         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
19272         Likewise.
19273         (emit_pattern_before): New function.
19274         (emit_insn_before, emit_jump_insn_before): Call it.
19275         (emit_call_insn_before, emit_debug_insn_before): Likewise.
19276
19277 2011-03-31  Richard Henderson  <rth@redhat.com>
19278
19279         * dwarf2out.c (dw_separate_line_info_ref): Remove.
19280         (dw_separate_line_info_entry): Remove.
19281         (enum dw_line_info_opcode): New.
19282         (dw_line_info_entry): Use it.
19283         (dw_line_info_table, dw_line_info_table_p): New.
19284         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
19285         (line_info_table, line_info_label_num): Remove.
19286         (line_info_table_in_use): Remove.
19287         (separate_line_info_table): Remove.
19288         (separate_line_info_table_allocated): Remove.
19289         (separate_line_info_table_in_use): Remove.
19290         (LINE_INFO_TABLE_INCREMENT): Remove.
19291         (line_info_label_num): New.
19292         (cur_line_info_table): New.
19293         (text_section_line_info, cold_text_section_line_info): New.
19294         (separate_line_info): New.
19295         (SEPARATE_LINE_CODE_LABEL): Remove.
19296         (print_dwarf_line_table): Remove.
19297         (debug_dwarf): Don't dump it.
19298         (output_one_line_info_table): New.
19299         (output_line_info): Use it.
19300         (new_line_info_table): New.
19301         (set_cur_line_info_table): New.
19302         (dwarf2out_switch_text_section): Use it.
19303         (dwarf2out_begin_function): Likewise.
19304         (push_dw_line_info_entry): New.
19305         (dwarf2out_source_line): Rewrite for new line info tables.
19306         (dwarf2out_init): Remove dead initailizations.
19307
19308 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
19309
19310         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
19311         various flags.
19312         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
19313         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
19314         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
19315         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
19316         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
19317         * opt-functions.awk (flag_init, switch_bit_fields): New.
19318         (switch_flags): Don't handle flags moved to bit-fields.  Don't
19319         generate CL_MISSING_OK or CL_SAVE.
19320         * optc-gen.awk: Update to generate bit-field output as well as
19321         flags field.
19322         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
19323         bit-field instead of CL_REJECT_DRIVER flag.
19324         * opts-common.c (generate_canonical_option,
19325         decode_cmdline_option): Use bit-fields instead of CL_* flags.
19326         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
19327         instead of CL_REJECT_NEGATIVE flag.
19328         * toplev.c (print_switch_values): Use cl_report bit-field instead
19329         of CL_REPORT flag.
19330
19331 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
19332
19333         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
19334         a zero minimum index only if it is redundant.
19335
19336 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
19337
19338         PR rtl-optimization/48381
19339         * ira-color.c (assign_hard_reg): Use hard reg set intersection
19340         instead of ira_class_hard_reg_index for calculating conflicting
19341         hard registers.
19342
19343 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
19344
19345         * cprop.c: Clean up hash table building.
19346         (reg_avail_info): Remove.
19347         (oprs_available_p): Remove.
19348         (record_last_reg_set_info): Remove.
19349         (record_last_set_info): Remove.
19350         (reg_available_p): New function.
19351         (gcse_constant_p): Do not treat unfolded conditions as constants.
19352         (make_set_regs_unavailable): New function.
19353         (hash_scan_set): Simplify with new reg_available_p.
19354         (compute_hash_table_work): Traverse insns stream only once.
19355         Do not compute reg_avail_info. Traverse insns in reverse order.
19356         Record implicit sets after recording explicit sets from the block.
19357
19358 2011-03-31  Michael Matz  <matz@suse.de>
19359
19360         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
19361
19362 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
19363
19364         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
19365         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
19366         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19367         (h8300_mode_dependent_address_p): New function.
19368         (h8300_get_index): Make static.
19369
19370 2011-03-31  Jeff Law  <law@redhat.com>
19371
19372         * reload1.c (elimination_effects): Fix typo in recent change.
19373
19374         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
19375         typo potentially leading to null pointer dereference.
19376
19377         * caller-save.c (new_saved_hard_reg): Eliminate return value.
19378         (setup_save_areas): Corresponding changes to avoid useless
19379         assignments.
19380
19381         * jump.c (reversed_comparison_code_parts): Avoid successive return
19382         statements when REVERSE_CONDITION is defined.
19383
19384         * expr.c (expand_assignment): Avoid useless assignments.
19385         (expand_expr_real_1): Likewise.
19386         (expand_expr_real_2): Avoid useless statements.
19387
19388         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
19389
19390         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
19391
19392         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
19393         statements.
19394
19395         * stmt.c (expand_expr_stmt): Avoid useless assignment.
19396
19397 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
19398
19399         PR target/47109
19400         * doc/tm.texi.in (TARGET_VERSION): Remove.
19401         * doc/tm.texi: Regenerate.
19402         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
19403         * collect2.c (main): Don't use TARGET_VERSION.
19404         * mips-tdump.c (main): Don't use TARGET_VERSION.
19405         * mips-tfile.c (main): Don't use TARGET_VERSION.
19406         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
19407         * config/rs6000/vxworksae.h: Remove.
19408         * config/alpha/alpha.h (TARGET_VERSION): Remove.
19409         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
19410         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
19411         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
19412         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
19413         * config/arm/arm.h (TARGET_VERSION): Remove.
19414         * config/arm/coff.h (TARGET_VERSION): Remove.
19415         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
19416         * config/arm/elf.h (TARGET_VERSION): Remove.
19417         * config/arm/freebsd.h (TARGET_VERSION): Remove.
19418         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
19419         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
19420         * config/arm/pe.h (TARGET_VERSION): Remove.
19421         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
19422         * config/arm/semi.h (TARGET_VERSION): Remove.
19423         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
19424         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
19425         * config/arm/vxworks.h (TARGET_VERSION): Remove.
19426         * config/avr/avr.h (TARGET_VERSION): Remove.
19427         * config/bfin/bfin.h (TARGET_VERSION): Remove.
19428         * config/fr30/fr30.h (TARGET_VERSION): Remove.
19429         * config/frv/frv.h (TARGET_VERSION): Remove.
19430         * config/h8300/h8300.h (TARGET_VERSION): Remove.
19431         * config/i386/cygwin.h (TARGET_VERSION): Remove.
19432         * config/i386/darwin.h (TARGET_VERSION): Remove.
19433         * config/i386/darwin64.h (TARGET_VERSION): Remove.
19434         * config/i386/djgpp.h (TARGET_VERSION): Remove.
19435         * config/i386/freebsd.h (TARGET_VERSION): Remove.
19436         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
19437         * config/i386/gnu.h (TARGET_VERSION): Remove.
19438         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
19439         * config/i386/i386elf.h (TARGET_VERSION): Remove.
19440         * config/i386/linux.h (TARGET_VERSION): Remove.
19441         * config/i386/linux64.h (TARGET_VERSION): Remove.
19442         * config/i386/lynx.h (TARGET_VERSION): Remove.
19443         * config/i386/mingw32.h (TARGET_VERSION): Remove.
19444         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
19445         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
19446         * config/i386/netware.h (TARGET_VERSION): Remove.
19447         * config/i386/nto.h (TARGET_VERSION): Remove.
19448         * config/i386/openbsd.h (TARGET_VERSION): Remove.
19449         * config/i386/vxworks.h (TARGET_VERSION): Remove.
19450         * config/ia64/elf.h (TARGET_VERSION): Remove.
19451         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
19452         * config/ia64/hpux.h (TARGET_VERSION): Remove.
19453         * config/ia64/linux.h (TARGET_VERSION): Remove.
19454         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
19455         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
19456         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
19457         * config/lm32/lm32.h (TARGET_VERSION): Remove.
19458         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
19459         * config/m32c/m32c.h (TARGET_VERSION): Remove.
19460         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
19461         * config/m32r/m32r.h (TARGET_VERSION): Remove.
19462         * config/m68k/linux.h (TARGET_VERSION): Remove.
19463         * config/m68k/m68k.h (TARGET_VERSION): Remove.
19464         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
19465         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
19466         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
19467         * config/mep/mep.h (TARGET_VERSION): Remove.
19468         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
19469         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
19470         * config/mips/iris6.h (MACHINE_TYPE): Remove.
19471         * config/mips/linux.h (TARGET_VERSION): Remove.
19472         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
19473         * config/mips/vxworks.h (TARGET_VERSION): Remove.
19474         * config/mmix/mmix.h (TARGET_VERSION): Remove.
19475         * config/mn10300/linux.h (TARGET_VERSION): Remove.
19476         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
19477         * config/pa/pa.h (TARGET_VERSION): Remove.
19478         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
19479         * config/picochip/picochip.h (TARGET_VERSION): Remove.
19480         * config/rs6000/aix.h (TARGET_VERSION): Remove.
19481         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
19482         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
19483         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
19484         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
19485         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
19486         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
19487         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
19488         * config/rs6000/linux.h (TARGET_VERSION): Remove.
19489         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
19490         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
19491         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
19492         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
19493         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
19494         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
19495         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
19496         * config/s390/linux.h (TARGET_VERSION): Remove.
19497         * config/s390/s390.h (TARGET_VERSION): Remove.
19498         * config/s390/tpf.h (TARGET_VERSION): Remove.
19499         * config/score/score.h (TARGET_VERSION): Remove.
19500         * config/sh/linux.h (TARGET_VERSION): Remove.
19501         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
19502         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
19503         * config/sh/sh.h (TARGET_VERSION): Remove.
19504         * config/sh/sh64.h (TARGET_VERSION): Remove.
19505         * config/sh/superh.h (TARGET_VERSION): Remove.
19506         * config/sh/vxworks.h (TARGET_VERSION): Remove.
19507         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
19508         * config/sparc/linux.h (TARGET_VERSION): Remove.
19509         * config/sparc/linux64.h (TARGET_VERSION): Remove.
19510         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
19511         TARGET_NAME32, TARGET_NAME): Remove.
19512         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
19513         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
19514         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
19515         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
19516         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
19517         * config/spu/spu.h (TARGET_VERSION): Remove.
19518         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
19519         * config/v850/v850.h (TARGET_VERSION): Remove.
19520         * config/vax/linux.h (TARGET_VERSION): Remove.
19521         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
19522         * config/xtensa/elf.h (TARGET_VERSION): Remove.
19523         * config/xtensa/linux.h (TARGET_VERSION): Remove.
19524
19525 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
19526
19527         PR target/48142
19528         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
19529         frame-related from frame-unrelated adjustments to the stack pointer.
19530
19531 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
19532
19533         * common.opt (fdebug-types-section): Move earlier.
19534         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
19535
19536 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
19537
19538         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
19539         var.
19540
19541 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
19542
19543         * tree.h (CASE_CHAIN): Define.
19544         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
19545         (gimple_redirect_edge_and_branch): Likewise.
19546
19547 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
19548
19549         PR middle-end/48367
19550         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
19551         calculation.
19552
19553 2011-03-30  Jeff Law  <law@redhat.com>
19554
19555         * PR bootstrap/48371
19556         * reload1.c (reload): Fix botch in last change.
19557
19558         * reload.h (struct reload): Fix typo introduced in last change.
19559
19560 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
19561
19562         * config/arm/arm.opt (mhard-float, msoft-float): Mark
19563         Undocumented.  Remove help text.
19564         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
19565         -mhard-float.
19566
19567 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
19568
19569         * doc/options.texi (NegativeAlias): Document.
19570         (Alias): Mention NegativeAlias.
19571         * opt-functions.awk: Handle NegativeAlias.
19572         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
19573         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
19574         * opts.h (CL_NEGATIVE_ALIAS): Define.
19575         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
19576         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
19577         OPT_mspe_.
19578         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
19579         Alias entries.
19580         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
19581         mno-spe and mno-isel instead of mspe=no and -misel=no.
19582
19583 2011-03-29  Mark Wielaard  <mjw@redhat.com>
19584
19585         * common.opt (fdebug-types-section): New flag.
19586         * doc/invoke.texi: Document new -fno-debug-types-section flag.
19587         * dwarf2out.c (use_debug_types): New define.
19588         (struct die_struct): Mark die_id with GTY desc use_debug_types.
19589         (print_die): Guard output of type unit signatures using
19590         use_debug_types.
19591         (build_abbrev_table): Replace assert of dwarf_version >= 4
19592         with assert on use_debug_types.
19593         (size_of_die): Likewise.
19594         (unmark_dies): Likewise.
19595         (value_format): Decide AT_ref_external form on use_debug_types.
19596         (output_die): Replace dwarf_version version check guard with
19597         use_debug_types where appropriate.
19598         (modified_type_die): Likewise.
19599         (gen_reference_type_die): Likewise.
19600         (dwarf2out_start_source_file): Likewise.
19601         (dwarf2out_end_source_file): Likewise.
19602         (prune_unused_types_walk_attribs): Likewise.
19603         (dwarf2out_finish): Likewise.
19604
19605 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
19606
19607         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
19608
19609 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
19610
19611         PR rtl-optimization/48332
19612         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
19613         mode of input operand N and modeN to its actual mode.
19614
19615 2011-03-30  Jeff Law  <law@redhat.com>
19616
19617         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
19618         define accessor macro.
19619         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
19620         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
19621         (reg_equiv_init): Likewise.
19622         (reg_equivs_size): New variable.
19623         (reg_equiv_init_size): Remove.
19624         (allocate_initial_values): Move prototype to here from....
19625         * integrate.h (allocate_initial_values): Remove prototype.
19626         * integrate.c: Include reload.h.
19627         (allocate_initial_values): Corresponding changes.
19628         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
19629         (fix_reg_equiv_init, no_equiv): Corresponding changes.
19630         (update_equiv_regs): Corresponding changes.
19631         (ira): Corresponding changes.
19632         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
19633         (push_secondary_reload): Corresponding changes.
19634         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
19635         (make_memloc, find_reloads_address): Corresponding changes.
19636         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
19637         (find_reloads_address_1): Corresponding changes.
19638         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
19639         (refers_to_regno_for_reload_p): Corresponding changes.
19640         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
19641         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
19642         * reload1.c: Include ggc.h.
19643         (grow_reg_equivs): New function.
19644         (replace_pseudos_in, reload): Corresponding changes.
19645         (calculate_needs_all_insns, alter_regs): Corresponding changes.
19646         (eliminate_regs_1, elimination_effects): Corresponding changes.
19647         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
19648         (delete_output_reload): Likewise.
19649         * caller-save.c (mark_referenced_regs): Corresponding changes.
19650         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
19651         * frv/predicates.md (frv_load_operand): Corresponding changes.
19652         * microblaze/microblaze.c (double_memory_operand): Corresponding
19653         changes.
19654         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
19655         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
19656         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
19657         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
19658         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
19659         changes.
19660         * pa/pa.c (emit_move_sequence): Corresponding changes.
19661         * vax/vax.c (nonindexed_address_p): Corresponding changes.
19662
19663 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
19664
19665         PR target/47551
19666         * config/arm/arm.c (coproc_secondary_reload_class): Handle
19667         structure modes.  Don't check neon_vector_mem_operand for
19668         vector or structure modes.
19669
19670 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
19671             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19672
19673         PR target/43590
19674         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
19675         operand 1 and reshuffle the operands to match.
19676         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
19677
19678 2011-03-30  Christian Schüler  <cschueler@gmx.de>
19679
19680         PR driver/48208
19681         * config/c.opt (F): Added 'Driver' to -F option.
19682
19683         PR driver/48260
19684         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
19685           handler function.
19686         * config/darwin.opt: Added '-arch' option.
19687
19688 2011-03-30  Nick Clifton  <nickc@redhat.com>
19689
19690         * config/rx/rx.md: Add peepholes and patterns to combine
19691         extending loads and simple arithmetic instructions.
19692         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
19693         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
19694         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
19695         modes to use pre-decrement and post-increment addressing.
19696         (rx_is_restricted_memory_address): Add range checking of REG+INT
19697         addresses.
19698         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
19699         (rx_memory_move_cost): Adjust cost of stores.
19700         (rx_adjust_insn_length): New function.
19701
19702 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
19703
19704         PR c/48305
19705         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
19706         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
19707         matching arg00/arg01 types.
19708
19709 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
19710
19711         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
19712         last_location to UNKNOWN_LOCATION.
19713
19714 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
19715
19716         PR target/48349
19717         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
19718         FLOAT_SSE_REGS.
19719
19720 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
19721             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19722
19723         PR bootstrap/48337
19724         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
19725         Init(PROCESSOR_V7).
19726         (sparc_cpu): Likewise.
19727         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
19728         PROCESSOR_V7.
19729
19730 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
19731
19732         PR target/48336
19733         PR middle-end/48342
19734         PR rtl-optimization/48345
19735         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
19736         hard regs for given mode from profitable regs when doing secondary
19737         allocation.
19738
19739 2011-03-29  Jeff Law  <law@redhat.com>
19740
19741         PR bootstrap/48327
19742         * tree-ssa-threadupdate.c (struct redirection_data): Remove
19743         do_not_duplicate field.
19744         (lookup_redirection_data): Corresponding changes.
19745         (create_duplicates): Always create a template block.
19746         (redirect_edges): Remove code which reused the original block
19747         when it was going to become unreachable code.
19748         (thread_block): Don't set do_not_duplicate field.
19749
19750 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
19751
19752         * lto-opts.c (register_user_option_p, lto_register_user_option):
19753         Make type argument unsigned.
19754         * lto-streamer.h (lto_register_user_option): Make type argument
19755         unsigned.
19756         * opth-gen.awk: Make CL_* macros unsigned.
19757         * opts-common.c (find_opt): Make lang_mask argument unsigned.
19758         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
19759         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
19760         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
19761         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
19762         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
19763         (find_opt): Make lang_mask argument unsigned.
19764
19765 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
19766
19767         PR rtl-optimization/48331
19768         PR rtl-optimization/48334
19769         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
19770         for any used algorithm.
19771
19772 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
19773
19774         * ira-conflicts.c (build_object_conflicts): Add unused attribute
19775         to parent_max.
19776
19777 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
19778
19779         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
19780         (alpha_option_override): Don't set alpha_sr_alias_set.
19781         (emit_frame_store_1): Use gen_frame_mem rather than calling
19782         set_mem_alias_set.
19783         (alpha_expand_epilogue): Ditto.
19784
19785 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
19786
19787         PR tree-optimization/48290
19788         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
19789         vectorization, check that relevant phis in the basic block after
19790         the inner loop are really inner loop's exit phis.
19791
19792 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
19793
19794         PR debug/48190
19795         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
19796         (cached_dw_loc_list_def): New structure.
19797         (cached_dw_loc_list): New typedef.
19798         (cached_dw_loc_list_table): New variable.
19799         (cached_dw_loc_list_table_hash): New function.
19800         (cached_dw_loc_list_table_eq): Likewise.
19801         (add_location_or_const_value_attribute): Take a bool cache_p.
19802         Cache the list when the parameter is true.
19803         (gen_formal_parameter_die): Update caller.
19804         (gen_variable_die): Likewise.
19805         (dwarf2out_finish): Likewise.
19806         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
19807         while generating debug info for the decl.
19808         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
19809         (dwarf2out_init): Initialize cached_dw_loc_list_table.
19810         (resolve_addr): Cache the result of resolving a chain of
19811         location lists.
19812
19813 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
19814
19815         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
19816         conflict object hard regset nodes have intersecting hard reg sets.
19817
19818         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
19819         after regstat_init_n_sets_and_refs.
19820
19821         * ira.c: Add more comments at the top.
19822         (setup_stack_reg_pressure_class, setup_pressure_classes):
19823         Add comments how we compute the register pressure classes.
19824         (setup_allocno_and_important_classes): Add more comments.
19825         (setup_class_translate_array, reorder_important_classes)
19826         (setup_reg_class_relations): Add comments.
19827
19828         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
19829         start of the file.
19830
19831         * ira-color.c: Add 2011 to the Copyright line.
19832         (assign_hard_reg):  Add more comments.
19833         (improve_allocation): Ditto.
19834
19835         * ira-costs.c: Add 2011 to the Copyright line.
19836         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
19837         comments.
19838         (setup_regno_cost_classes_by_mode): Ditto.
19839
19840         Initial patches from ira-improv branch:
19841
19842         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
19843
19844         * ira-build.c (ira_create_object): Remove initialization of
19845         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
19846         (ira_create_allocno): Remove initialization of
19847         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
19848         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
19849         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
19850         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
19851         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
19852         Initialize ALLOCNO_ADD_DATA.
19853         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
19854         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
19855         ALLOCNO_REG.
19856         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
19857         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
19858
19859         * ira.c (ira_reallocate): Remove.
19860         (setup_pressure_classes): Call
19861         ira_init_register_move_cost_if_necessary.  Use
19862         ira_register_move_cost instead of ira_get_register_move_cost.
19863         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
19864         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
19865
19866         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
19867         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
19868         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
19869         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
19870         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
19871         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
19872         Fix formatting.
19873         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
19874         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
19875         (struct allocno_color_data): New.
19876         (allocno_color_data_t): New typedef.
19877         (allocno_color_data): New definition.
19878         (ALLOCNO_COLOR_DATA): New macro.
19879         (struct object_color_data): New.
19880         (object_color_data_t): New typedef.
19881         (object_color_data): New definition.
19882         (OBJECT_COLOR_DATA): New macro.
19883         (update_copy_costs, calculate_allocno_spill_cost): Call
19884         ira_init_register_move_cost_if_necessary.  Use
19885         ira_register_move_cost instead of ira_get_register_move_cost.
19886         (move_spill_restore, update_curr_costs): Ditto.
19887         (allocno_spill_priority): Make it inline.
19888         (color_pass): Allocate and free allocno_color_dat and object_color_data.
19889         (struct coalesce_data, coalesce_data_t): New.
19890         (allocno_coalesce_data): New definition.
19891         (ALLOCNO_COALESCE_DATA): New macro.
19892         (merge_allocnos, coalesced_allocno_conflict_p): Use
19893         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
19894         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
19895         (coalesce_allocnos): Ditto.
19896         (setup_coalesced_allocno_costs_and_nums): Ditto.
19897         (collect_spilled_coalesced_allocnos): Ditto.
19898         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
19899         (setup_slot_coalesced_allocno_live_ranges): Ditto.
19900         (coalesce_spill_slots): Ditto.
19901         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
19902         free allocno_coalesce_data.
19903
19904         * ira-conflicts.c: Fix formatting.
19905         (process_regs_for_copy): Call
19906         ira_init_register_move_cost_if_necessary.  Use
19907         ira_register_move_cost instead of ira_get_register_move_cost.
19908         (build_object_conflicts): Optimize.
19909
19910         * ira-costs.c (record_reg_classes): Optimize.  Call
19911         ira_init_register_move_cost_if_necessary.  Use
19912         ira_register_move_cost, ira_may_move_in_cost, and
19913         ira_may_move_out_cost instead of ira_get_register_move_cost and
19914         ira_get_may_move_cost.
19915         (record_address_regs): Ditto.
19916         (scan_one_insn): Optimize.
19917         (find_costs_and_classes): Optimize.
19918         (process_bb_node_for_hard_reg_moves): Call
19919         ira_init_register_move_cost_if_necessary.  Use
19920         ira_register_move_cost instead of ira_get_register_move_cost.
19921
19922         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
19923         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
19924         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
19925         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
19926         definitions.
19927         (ira_initiate_emit_data, ira_finish_emit_data)
19928         (create_new_allocno): New functions.
19929         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
19930         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
19931         Use ira_register_move_cost instead of ira_get_register_move_cost.
19932
19933         * ira-int.h: Fix some comments.
19934         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
19935         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
19936         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
19937         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
19938         add_data.
19939         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
19940         bitfield after mode.  Make hard_regno a short int.  Make
19941         hard_regno short.  Remove first_coalesced_allocno and
19942         next_coalesced_allocno.  Move mem_optimized_dest_p,
19943         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
19944         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
19945         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
19946         temp, colorable_p.  Add new member add_data.
19947         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
19948         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
19949         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
19950         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
19951         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
19952         (ALLOCNO_ADD_DATA): New macro.
19953         (ira_emit_data_t): New typedef.
19954         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
19955         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
19956         from struct ira_allocno.
19957         (ALLOCNO_EMIT_DATA): New macro.
19958         (ira_allocno_emit_data, allocno_emit_reg): New.
19959         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
19960         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
19961         (OBJECT_ADD_DATA): New macro.
19962         (ira_reallocate): Remove.
19963         (ira_initiate_emit_data, ira_finish_emit_data): New.
19964         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
19965         (ira_init_register_move_cost_if_necessary): New.
19966         (ira_object_conflict_iter_next): Merge into
19967         ira_object_conflict_iter_cond.
19968         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
19969
19970         * ira-live.c (process_single_reg_class_operands): Call
19971         ira_init_register_move_cost_if_necessary.  Use
19972         ira_register_move_cost instead of ira_get_register_move_cost.
19973
19974         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
19975
19976         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
19977
19978         * ira-costs.c: Fix formatting.
19979         (cost_classes, cost_classes_num): Remove.
19980         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
19981         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
19982         (cost_classes_del, cost_classes_htab): New.
19983         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
19984         (initiate_regno_cost_classes, setup_cost_classes): New.
19985         (setup_regno_cost_classes_by_aclass): New.
19986         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
19987         (record_reg_classes): Use regno_cost_classes instead of
19988         cost_classes.  Move checking opposite operand up.
19989         (record_address_regs): Use regno_cost_classes
19990         instead of cost_classes.
19991         (scan_one_insn): Ditto.  Use always general register.
19992         (print_allocno_costs): Use regno_cost_classes instead of
19993         cost_classes.
19994         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
19995         (find_costs_and_classes): Set up cost classes for each registers.
19996         Use also their mode for this.  Use regno_cost_classes instead of
19997         cost_classes.
19998         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
19999         cost_classes.
20000         (free_ira_costs, ira_init_costs): Don't use cost_classes.
20001         (ira_costs, ira_set_pseudo_classes): Call
20002         initiate_regno_cost_classes and finish_regno_cost_classes.
20003
20004         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
20005
20006         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
20007
20008         * target.def (ira_cover_classes): Remove.
20009
20010         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
20011
20012         * doc/tm.texi.in: Ditto.
20013
20014         * ira-conflicts.c: Remove mentioning cover classes from the file.
20015         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
20016         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
20017
20018         * targhooks.c (default_ira_cover_classes): Remove.
20019
20020         * targhooks.h (default_ira_cover_classes): Ditto.
20021
20022         * haifa-sched.c: Remove mentioning cover classes from the file.
20023         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
20024         ira_pressure_classes and ira_pressure_classes_num instead of
20025         ira_reg_class_cover_size and ira_reg_class_cover.  Use
20026         sched_regno_pressure_class instead of sched_regno_cover_class.
20027         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
20028         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20029
20030         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
20031         classes from the file.
20032         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
20033         (struct object_hard_regs, struct object_hard_regs_node): New.
20034         (struct ira_object): New members profitable_hard_regs,
20035         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
20036         (struct ira_allocno): Rename cover_class to aclass.  Rename
20037         cover_class_cost and updated_cover_class_cost to class_cost and
20038         updated_class_cost.  Remove splay_removed_p and
20039         left_conflict_size.  Add new members colorable_p.
20040         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
20041         (ALLOCNO_COLORABLE_P): New macro.
20042         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
20043         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
20044         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
20045         (OBJECT_...): Rename parameter C to O.
20046         (OBJECT_PROFITABLE_HARD_REGS): New macro.
20047         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
20048         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
20049         (struct target_ira_int): New members x_ira_max_memory_move_cost,
20050         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
20051         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
20052         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
20053         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
20054         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
20055         x_ira_reg_class_subunion.
20056         (ira_max_memory_move_cost, ira_max_register_move_cost)
20057         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
20058         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
20059         (ira_important_class_nums, ira_reg_class_superunion): New macros.
20060         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
20061         (ira_reg_class_union): Rename to ira_reg_class_subunion.
20062         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
20063         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
20064         (ira_tune_allocno_costs_and_cover_classes): Rename to
20065         ira_tune_allocno_costs.
20066         (ira_debug_hard_regs_forest): New.
20067         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
20068         (ira_object_conflict_iter_next): Fix comments.
20069         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
20070         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
20071         cover_class to aclass.
20072         (ira_allocate_and_accumulate_costs): Ditto.
20073         (ira_allocate_and_set_or_copy_costs): Ditto.
20074
20075         * opts.c (decode_options): Remove ira_cover_class check.
20076
20077         * ira-color.c: Remove mentioning cover classes from the file.  Use
20078         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
20079         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
20080         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
20081         (splay-tree.h): Remove include.
20082         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
20083         before copy_freq_compare_func.
20084         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
20085         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
20086         New definitions.
20087         (hard_regs_roots, hard_regs_node_vec): Ditto.
20088         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
20089         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
20090         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
20091         (create_new_object_hard_regs_node): Ditto.
20092         (add_new_object_hard_regs_node_to_forest): Ditto.
20093         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
20094         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
20095         Ditto.
20096         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
20097         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
20098         (remove_unused_object_hard_regs_nodes): Ditto.
20099         (enumerate_object_hard_regs_nodes): Ditto.
20100         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
20101         (object_hard_regs_subnode_t): Ditto.
20102         (struct object_hard_regs_subnode): Ditto.
20103         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
20104         (setup_object_hard_regs_subnode_index): Ditto.
20105         (get_object_hard_regs_subnodes_num): Ditto.
20106         (form_object_hard_regs_nodes_forest): Ditto.
20107         (finish_object_hard_regs_nodes_tree): Ditto.
20108         (finish_object_hard_regs_nodes_forest): Ditto.
20109         (allocnos_have_intersected_live_ranges_p): Rename to
20110         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
20111         (pseudos_have_intersected_live_ranges_p): Rename to
20112         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
20113         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
20114         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
20115         (update_copy_costs): Remove assert.  Skip cost update if the hard
20116         reg does not belong the class.
20117         (assign_hard_reg): Process only profitable hard regs.
20118         (uncolorable_allocnos_num): Make it scalar.
20119         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
20120         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
20121         and ira_reg_class_max_nregs.
20122         (bucket_allocno_compare_func): Check frequency first.
20123         (sort_bucket): Add compare function as a parameter.
20124         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
20125         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
20126         (push_allocno_to_stack): Rewrite for checking new allocno
20127         colorability.
20128         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
20129         (push_only_colorable): Pass new parameter to sort_bucket.
20130         (push_allocno_to_spill): Remove.
20131         (allocno_spill_priority_compare): Make it inline and rewrite.
20132         (splay_tree_allocate, splay_tree_free): Remove.
20133         (allocno_spill_sort_compare): New function.
20134         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
20135         build and use splay tree.  Choose first allocno in uncolorable
20136         allocno bucket to spill.  Remove setting spill cost.
20137         (all_conflicting_hard_regs): Remove.
20138         (setup_allocno_available_regs_num): Check only profitable hard
20139         regs.  Print info about hard regs nodes.
20140         (setup_allocno_left_conflicts_size): Remove.
20141         (put_allocno_into_bucket): Don't call
20142         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
20143         (improve_allocation): New.
20144         (color_allocnos): Call setup_profitable_hard_regs,
20145         form_object_hard_regs_nodes_forest, improve_allocation,
20146         finish_object_hard_regs_nodes_forest.  Setup spill cost.
20147         (print_loop_title): Use pressure classes.
20148         (color_allocnso): Ditto.
20149         (do_coloring): Remove allocation and freeing splay_tree_node_pool
20150         and allocnos_for_spilling.
20151         (ira_sort_regnos_for_alter_reg): Don't setup members
20152         {first,next}_coalesced_allocno.
20153         (color): Remove allocating and freeing removed_splay_allocno_vec.
20154         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
20155         prohibited_class_mode_regs.
20156
20157         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
20158         formatting.
20159         (update_allocno_pressure_excess_length): Use pressure classes.
20160         (inc_register_pressure, dec_register_pressure): Check for pressure
20161         class.
20162         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
20163         pressure class.  Use ira_reg_class_nregs instead of
20164         ira_reg_class_max_nregs.
20165         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
20166         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
20167         (single_reg_class): Use ira_reg_class_nregs instead of
20168         ira_reg_class_max_nregs.
20169         (process_bb_node_lives): Use pressure classes.
20170
20171         * ira-emit.c: Remove mentioning cover classes from the file.  Use
20172         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
20173         (change_loop): Use pressure classes.
20174         (modify_move_list): Call ira_set_allocno_class instead of
20175         ira_set_allocno_cover_class.
20176
20177         * ira-build.c: Remove mentioning cover classes from the file.  Use
20178         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
20179         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
20180         ALLOCNO_UPDATED_CLASS_COST instead of
20181         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
20182         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
20183         (ira_create_allocno): Remove initialization of
20184         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
20185         ALLOCNO_COLORABLE_P.
20186         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
20187         Update conflict regs for the objects.
20188         (create_cap_allocno): Remove assert.  Don't propagate
20189         ALLOCNO_AVAILABLE_REGS_NUM.
20190         (ira_free_allocno_costs): New function.
20191         (finish_allocno): Change a part of code into call of
20192         ira_free_allocno_costs.
20193         (low_pressure_loop_node_p): Use pressure classes.
20194         (object_range_compare_func): Don't compare classes.
20195         (setup_min_max_conflict_allocno_ids): Ditto.
20196
20197         * loop-invariant.c: Remove mentioning cover classes from the file.
20198         Use ira_pressure_classes and ira_pressure_classes_num instead of
20199         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
20200         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
20201         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20202         Use reg_allocno_class instead of reg_cover_class.
20203         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
20204         STACK_REG_COVER_CLASS.
20205         (get_regno_cover_class): Rename to get_regno_pressure_class.
20206         (move_loop_invariants): Initialize and finalize regstat.
20207
20208         * ira.c: Remove mentioning cover classes from the file.  Add
20209         comments about coloring without cover classes.  Use ALLOCNO_CLASS
20210         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
20211         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
20212         setup_class_subset_and_memory_move_costs.
20213         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
20214         (setup_cover_and_important_classes): Rename to
20215         setup_allocno_and_important_classes.
20216         (setup_class_translate_array): New.
20217         (setup_class_translate): Call it for allocno and pressure classes.
20218         (cover_class_order): Rename to allocno_class_order.
20219         (comp_reg_classes_func): Use ira_allocno_class_translate instead
20220         of ira_class_translate.
20221         (reorder_important_classes): Set up ira_important_class_nums.
20222         (setup_reg_class_relations): Set up ira_reg_class_superunion.
20223         (print_class_cover): Rename to print_classes.  Add parameter.
20224         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
20225         Print pressure classes too.
20226         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
20227         setup_reg_subclasses.
20228         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
20229         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
20230         (setup_prohibited_class_mode_regs): Use
20231         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
20232         (clarify_prohibited_class_mode_regs): New function.
20233         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
20234         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
20235         (ira_init_once): Initialize them.
20236         (free_register_move_costs): Process them.
20237         (ira_init): Move calls of find_reg_classes and
20238         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
20239         Call clarify_prohibited_class_mode_regs.
20240         (ira_no_alloc_reg): Remove.
20241         (too_high_register_pressure_p): Use pressure classes.
20242
20243         * sched-deps.c: Remove mentioning cover classes from the file.
20244         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
20245         ira_pressure_classes and ira_pressure_classes_num instead of
20246         ira_reg_class_cover_size and ira_reg_class_cover.
20247         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
20248         sched_regno_pressure_class instead of sched_regno_cover_class.
20249         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
20250         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20251
20252         * ira.h: Add 2010 to Copyright.
20253         (ira_no_alloc_reg): Remove external.
20254         (struct target_ira): Rename x_ira_hard_regno_cover_class,
20255         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
20256         x_ira_class_translate to x_ira_hard_regno_allocno_class,
20257         x_ira_allocno_classes_num, x_ira_allocno_classes, and
20258         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
20259         x_ira_pressure_classes, x_ira_pressure_class_translate, and
20260         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
20261         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
20262         x_ira_no_alloc_regs.
20263         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
20264         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
20265         ira_allocno_classes_num and ira_allocno_classes.
20266         (ira_class_translate): Rename to ira_allocno_class_translate.
20267         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
20268         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
20269         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
20270         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
20271         (ira_no_alloc_regs): New.
20272
20273         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
20274         classes from the file.  Use ALLOCNO_CLASS instead of
20275         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
20276         ALLOCNO_COVER_CLASS_COST.
20277         (regno_cover_class): Rename to regno_aclass.
20278         (record_reg_classes): Use ira_reg_class_subunion instead of
20279         ira_reg_class_union.
20280         (record_address_regs): Check overflow.
20281         (scan_one_insn): Ditto.
20282         (print_allocno_costs): Print total mem cost fore regional allocation.
20283         (print_pseudo_costs): Use REG_N_REFS.
20284         (find_costs_and_classes): Use classes intersected with them on the
20285         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
20286         ira_reg_class_union.  Use ira_allocno_class_translate and
20287         regno_aclass instead of ira_class_translate and regno_cover_class.
20288         Modify code for finding regno_aclass.  Setup preferred classes for
20289         the next pass.
20290         (setup_allocno_cover_class_and_costs): Rename to
20291         setup_allocno_class_and_costs.  Use regno_aclass instead of
20292         regno_cover_class.  Use ira_set_allocno_class instead of
20293         ira_set_allocno_cover_class.
20294         (init_costs, finish_costs): Use regno_aclass instead of
20295         regno_cover_class.
20296         (ira_costs): Use setup_allocno_class_and_costs instead of
20297         setup_allocno_cover_class_and_costs.
20298         (ira_tune_allocno_costs_and_cover_classes): Rename to
20299         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
20300         by processing objects.  Use ira_reg_class_max_nregs instead of
20301         ira_reg_class_nregs.
20302
20303         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
20304
20305         * sched-int.h: Remove mentioning cover classes from the file.
20306         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
20307
20308         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
20309         classes from the file.
20310         (struct reg_pref): Rename coverclass into allocnoclass.
20311         (reg_cover_class): Rename to reg_allocno_class.
20312
20313         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
20314
20315         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
20316
20317         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
20318
20319         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
20320
20321         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
20322
20323         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
20324
20325         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
20326
20327         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
20328
20329         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
20330
20331         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
20332
20333         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
20334         (i386_ira_cover_classes): Ditto.
20335
20336         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
20337
20338         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
20339
20340         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
20341
20342         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
20343
20344         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
20345
20346         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
20347
20348         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
20349         (mips_ira_cover_classes): Ditto.
20350
20351         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
20352
20353         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
20354
20355         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
20356
20357         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
20358
20359         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
20360
20361         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
20362         (IRA_COVER_CLASSES_VSX): Ditto.
20363
20364         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
20365         (rs6000_ira_cover_classes): Ditto.
20366
20367         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
20368
20369         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
20370
20371         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
20372
20373         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
20374
20375         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
20376
20377         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
20378
20379         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
20380
20381         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
20382
20383         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
20384
20385         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
20386
20387 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
20388
20389         PR debug/48253
20390         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
20391         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
20392         dw_fde_unlikely_section_end_label, cold_in_std_section,
20393         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
20394         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
20395         fields.
20396         (output_fde): Use dw_fde_second_{begin,end} if second is
20397         true, otherwise dw_fde_{begin,end}.
20398         (output_call_frame_info): Test dw_fde_second_begin != NULL
20399         instead of dw_fde_switched_sections.
20400         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
20401         fields, initialize new fields.  Initialize in_std_section
20402         unconditionally from the first partition.
20403         (dwarf2out_end_epilogue): Don't override dw_fde_end when
20404         dw_fde_second_begin is non-NULL.
20405         (dwarf2out_switch_text_section): Stop initializing removed
20406         dw_fde_struct fields, initialize new fields, initialize
20407         also dw_fde_end here.  Set dw_fde_switch_cfi even when
20408         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
20409         (struct var_loc_list_def): Add last_before_switch field.
20410         (arange_table, arange_table_allocated, arange_table_in_use,
20411         ARANGE_TABLE_INCREMENT, add_arange): Removed.
20412         (size_of_aranges): Count !in_std_section and !second_in_std_section
20413         hunks in fdes, instead of looking at arange_table_in_use.
20414         (output_aranges): Add aranges_length argument, don't call
20415         size_of_aranges here.  Instead of using aranges_table*
20416         emit ranges for fdes when !in_std_section resp.
20417         !second_in_std_section.
20418         (dw_loc_list): Break ranges crossing section switch.
20419         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
20420         use dw_fde_second_end instead of dw_fde_end as end of last range.
20421         (gen_subprogram_die): Don't call add_arange.  Use
20422         dw_fde_{begin,end} for first partition and if switched
20423         section dw_fde_second_{begin,end} for the second.
20424         (var_location_switch_text_section_1,
20425         var_location_switch_text_section): New functions.
20426         (dwarf2out_begin_function): Initialize cold_text_section even
20427         when function_section () isn't text_section.
20428         (prune_unused_types): Don't walk arange_table.
20429         (dwarf2out_finish): Don't needlessly test
20430         flag_reorder_blocks_and_partition when testing cold_text_section_used.
20431         If info_section_emitted, call size_of_aranges and if it indicates
20432         non-empty .debug_aranges, call output_aranges with the computed
20433         size.  Stop using removed dw_fde_struct fields, use
20434         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
20435         for second.
20436
20437         PR debug/48203
20438         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
20439         create ENTRY_VALUE if incoming or address of incoming's MEM
20440         is a hard REG.
20441         * dwarf2out.c (mem_loc_descriptor): Don't emit
20442         DW_OP_GNU_entry_value of DW_OP_fbreg.
20443         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
20444         on ENTRY_VALUE is able to find the canonical parameter VALUE.
20445         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
20446         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
20447         ENTRY_VALUE_EXPs.
20448         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
20449         is a REG_P or MEM_P with REG_P address, compute hash directly
20450         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
20451         (preserve_only_constants): Don't clear VALUES forwaring
20452         ENTRY_VALUE to some other VALUE.
20453
20454 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
20455
20456         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
20457         instead of GEN_INT.
20458
20459 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
20460
20461         * cfgexpand.c (expand_gimple_cond): Always set the source location and
20462         block before expanding the statement.
20463         (expand_gimple_stmt_1): Likewise.  Set them here...
20464         (expand_gimple_stmt): ...and not here.  Tidy.
20465         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
20466         unknown.
20467
20468 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
20469
20470         * Makefile.in: New rule for cprop.o.
20471         * gcse.c: Move constant/copy propagation to cprop.c.
20472         (compute_local_properties): Only handle expression tables.
20473         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
20474         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
20475         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
20476         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
20477         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
20478         compute_cprop_data, find_used_regs, try_replace_reg,
20479         find_avail_set, cprop_jump, constprop_register, cprop_insn,
20480         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
20481         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
20482         find_bypass_set, reg_killed_on_edge, bypass_block,
20483         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
20484         execute_rtl_cprop, pass_rtl_cprop): Move to...
20485         * cprop.c: ...here.  New file, constant/copy propagation for RTL
20486         moved from gcse.c to here with minor cleanups in duplicated code.
20487
20488 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
20489
20490         * config/i386/i386.c (flag_opts): Fix a typo in
20491         -mavx256-split-unaligned-store.
20492
20493 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
20494
20495         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
20496         LIBCALL_VALUE): Remove macros.
20497         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20498         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20499         (h8300_function_value, h8300_libcall_value,
20500         h8300_function_value_regno_p): New functions.
20501
20502 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
20503
20504         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
20505
20506 2011-03-28  Jeff Law  <law@redhat.com>
20507
20508         * tree-ssa-threadupdate.c (redirect_edges): Call
20509         create_edge_and_update_destination_phis as needed.
20510         (create_edge_and_update_destination_phis): Accept new BB argument.
20511         All callers updated.
20512         (thread_block): Do not update the profile when threading around
20513         intermediate blocks.
20514         (thread_single_edge): Likewise.
20515         (determine_bb_domination_status): If BB is not a successor of the
20516         loop header, return NONDOMINATING.
20517         (register_jump_thread): Note when we register a jump thread around
20518         an intermediate block.
20519         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
20520         (thread_across_edge): Use it.
20521
20522 2011-03-28  Tristan Gingold  <gingold@adacore.com>
20523
20524         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
20525         when for_return is 2.
20526
20527 2011-03-28  Jeff Law  <law@redhat.com>
20528
20529         * var-tracking.c (canonicalize_values_mark): Delete unused
20530         lhs assignment.
20531         (canonicalize_values_star, set_variable_part): Likewise.
20532         (clobber_variable_part, delete_variable_part): Likewise.
20533
20534 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
20535
20536         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
20537
20538 2011-03-28  Martin Jambor  <mjambor@suse.cz>
20539
20540         * tree-inline.c (expand_call_inline): Do not check that destination
20541         node is analyzed.
20542         (optimize_inline_calls): Assert that destination node is analyzed.
20543         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
20544         not call tree_lowering_passes.
20545         * cgraph.h (cgraph_analyze_function): Declare.
20546         * cgraphunit.c (cgraph_analyze_function): Make public.
20547
20548 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
20549
20550         * config/sparc/sparc-opts.h: New.
20551         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
20552         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
20553         (sparc_option_override): Store processor_type enumeration rather
20554         than string in cpu_default.  Remove name and enumeration from
20555         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
20556         without using sparc_select.  Use target_flags_explicit instead of
20557         fpu_option_set.
20558         * config/sparc/sparc.h (enum processor_type): Move to
20559         sparc-opts.h.
20560         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
20561         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
20562         HeaderInclude entry.
20563         (mcpu=, mtune=): Use Var and Enum.
20564         (sparc_processor_type): New Enum and EnumValue entries.
20565
20566 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20567             Iain Sandoe  <iains@gcc.gnu.org>
20568
20569         PR target/48245
20570         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
20571
20572 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
20573
20574         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
20575         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
20576         Insert new statements at it in lieu of STMT.
20577         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
20578         * tree-vect-stmts.c (vectorizable_store): Likewise.
20579         (vectorizable_load): Likewise.
20580
20581 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
20582
20583         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
20584         (divtf3): Ditto.
20585         (multf3): Ditto.
20586         (subtf3): Ditto.
20587
20588 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20589
20590         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
20591         unaligned 256bit load/store.
20592         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
20593         (*avx_movdqu<avxmodesuffix>): Likewise.
20594
20595 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20596
20597         PR target/48288
20598         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
20599         * config/pa/pa.md (iordi3): Use new predicate in expander.
20600         (iorsi3): Likewise.
20601
20602 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
20603
20604         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
20605         FUNCTION_VALUE_REGNO_P): Remove macros.
20606         * config/mips/mips-protos.h (mips_function_value): Remove.
20607         * config/mips/mips.c (mips_function_value): Rename to...
20608         (mips_function_value_1): ... this. Make static.  Handle receiving
20609         the function type in 'fn_decl_or_type' argument.
20610         (mips_function_value, mips_libcall_value,
20611         mips_function_value_regno_p): New function.
20612         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20613         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20614
20615 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20616
20617         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
20618         and -mavx256-split-unaligned-store.
20619         (ix86_option_override_internal): Split 32-byte AVX unaligned
20620         load/store by default.
20621         (ix86_avx256_split_vector_move_misalign): New.
20622         (ix86_expand_vector_move_misalign): Use it.
20623
20624         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
20625         -mavx256-split-unaligned-store.
20626
20627         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
20628         256bit load/store.  Generate unaligned store on misaligned memory
20629         operand.
20630         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
20631         256bit load/store.
20632         (*avx_movdqu<avxmodesuffix>): Likewise.
20633
20634         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
20635         -mavx256-split-unaligned-store.
20636
20637 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
20638
20639         PR target/38598
20640         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
20641         Update commentary.
20642
20643 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
20644
20645         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
20646         opno arguments with an expand_operand.  Use create_input_operand.
20647         (mips_prepare_builtin_target): Delete.
20648         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
20649         functions.
20650         (mips_expand_builtin_direct): Use create_output_operand and
20651         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
20652         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
20653         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
20654
20655 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
20656
20657         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
20658         function.
20659         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
20660
20661 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
20662
20663         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
20664         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
20665         basic blocks and call commit_edge_insertions directly.
20666         (fixup_abnormal_edges): Move from here to...
20667         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
20668         on the edges and return whether some have actually been inserted.
20669         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
20670         compensation code.
20671
20672 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
20673
20674         PR rtl-optimization/48144
20675         * sel-sched-ir.c (merge_history_vect): Factor out from ...
20676         (merge_expr_data): ... here.
20677         (av_set_intersect): Rename to av_set_code_motion_filter.
20678         Update all callers.  Call merge_history_vect when an expression
20679         is found in both sets.
20680         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
20681
20682 2011-03-26  Alan Modra  <amodra@gmail.com>
20683
20684         * config/rs6000/predicates.md (word_offset_memref_op): Handle
20685         cmodel medium addresses.
20686         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
20687         64-bit gpr loads and stores.
20688         (rs6000_secondary_reload_ppc64): New function.
20689         * config/rs6000/rs6000-protos.h: Declare it.
20690         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
20691
20692 2011-03-26  Alan Modra  <amodra@gmail.com>
20693
20694         PR target/47487
20695         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
20696         GNU Go in traceback table.
20697
20698 2011-03-25  Richard Henderson  <rth@redhat.com>
20699
20700         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
20701         if there are exactly 6 operands.
20702         (set_storage_via_setmem): Similarly.
20703
20704 2011-03-25  Kai Tietz  <ktietz@redhat.com>
20705
20706         * collect2.c (write_c_file_stat): Handle backslash
20707         as right-hand directory separator.
20708         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
20709         checking just for slash.
20710         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
20711         instead of checking for trailing slash.
20712         * gcc.c (record_temp_file): Use filename_cmp instead
20713         of strcmp.
20714         (do_spec_1): Likewise.
20715         (replace_outfile_spec_function): Likewise.
20716         (is_directory): Use filename_ncmp instead of strncmp.
20717         (print_multilib_info): Likewise.
20718         * gcov.c (find_source): Use filename_cmp instead
20719         instead of strcmp.
20720         (make_gcov_file_name): Fix order of slash/backslash
20721         checks.
20722         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
20723         (add_standard_paths): Likewise.
20724         * mips-tfile.c (saber_stop): Handle backslash.
20725         * prefix.c (update_path): Use filename_ncmp instead of
20726         strncmp.
20727         * profile.c (output_location): Use filename_cmp instead
20728         of strcmp.
20729         * read-md.c (handle_toplevel_file): Handle backslash.
20730         * tlink.c (frob_extension):  Likewise.
20731         * tree-cfg.c (same_line_p): Use filename_cmp instead of
20732         strcmp.
20733         * tree-dump.c (dequeue_and_dump): Handle backslash.
20734         * tree.c (get_file_function_name): Likewise.
20735         * gengtype.c (read_input_list): Likewise.
20736         (get_file_realbasename): Likewise.
20737         (get_output_file_with_visibility): Use filename_cmp
20738         instead of strcmp.
20739
20740 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
20741
20742         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
20743         case to VFPv1.
20744
20745 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
20746
20747         * fold-const.c (expr_location_or): New function.
20748         (fold_truth_not_expr): Call it.
20749
20750 2011-03-25  Jeff Law  <law@redhat.com>
20751
20752         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
20753         va_end.
20754         * c-family/c-common.c (def_fn_type): Likewise.
20755         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
20756         * emit-rtl.c (gen_rtvec): Likewise.
20757         * lto/lto-lang.c (def_fn_type): Likewise.
20758
20759 2011-03-25  Richard Guenther  <rguenther@suse.de>
20760
20761         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
20762         also generate copies.
20763         (fini_copy_prop): Handle constant values properly.
20764
20765 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
20766
20767         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
20768         mode size instead of bitsize with DWARF2_ADDR_SIZE.
20769         (hash_loc_operands, compare_loc_operands): Handle
20770         DW_OP_GNU_entry_value.
20771
20772 2011-03-25  Kai Tietz  <ktietz@redhat.com>
20773
20774         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
20775         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
20776         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
20777         comment and use macro TARGET_64BIT_MS_ABI instead.
20778         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
20779         and change default behavior for 32-bit MS_ABI.
20780         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
20781         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
20782         32-bit, too.
20783         (ix86_cfun_abi): Likewise.
20784         (ix86_maybe_switch_abi): Adjust comment.
20785         (init_cumulative_args): Check for bit-ness in MS_ABI case.
20786         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
20787         instead of checking for SYSV_ABI.
20788         (ix86_nsaved_sseregs): Likewise.
20789         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
20790         to 16 bytes.
20791         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
20792         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
20793         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
20794         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
20795         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
20796
20797 2011-03-25  Richard Guenther  <rguenther@suse.de>
20798
20799         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
20800         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
20801         (verify_gimple): Remove.
20802         * tree-cfg.c (verify_gimple_call): Merge verification
20803         from verify_stmts.
20804         (verify_gimple_phi): Merge verification from verify_stmts.
20805         (verify_gimple_label): New function.
20806         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
20807         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
20808         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
20809         (verify_stmts): Rename to verify_gimple_in_cfg.
20810         (verify_gimple_in_cfg): New function.
20811         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
20812         * tree-ssa.c (verify_ssa): Likewise.
20813         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
20814
20815 2011-03-25  Richard Guenther  <rguenther@suse.de>
20816
20817         * passes.c (init_optimization_passes): Add FRE pass after
20818         early SRA.
20819
20820 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
20821             Andrew Stubbs  <ams@codesourcery.com>
20822
20823         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
20824         for Cortex-A8.
20825         (arm_movdi_vfp_cortexa8): New pattern.
20826         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
20827         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
20828         instructions when tuning for Cortex-A8.  Set attribute "arch".
20829         * config/arm/arm.md: Move include arm-tune.md up a bit.
20830         (define_attr "arch"): Add "onlya8" and "nota8" values.
20831         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
20832
20833 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
20834
20835         PR bootstrap/48282
20836         Revert:
20837         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
20838
20839         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
20840         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
20841         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
20842         * passes.c (init_optimization_passes): Move
20843         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
20844
20845 2011-03-25  Kai Tietz  <ktietz@redhat.com>
20846
20847         * c-typeck.c (comptypes_internal): Replace target
20848         hook call of comp_type_attributes by version in tree.c file.
20849         * gimple.c (gimple_types_compatible_p_1): Likewise.
20850         * tree-ssa.c (useless_type_conversion_p): Likewise.
20851         * tree.c (build_type_attribute_qual_variant): Likewise.
20852         (attribute_value_equal): New static helper function.
20853         (comp_type_attributes): New function.
20854         (merge_attributes): Use attribute_value_equal for comparison.
20855         (attribute_list_contained): Likewise.
20856         * tree.h (comp_type_attributes): New prototype.
20857
20858 2011-03-25  Richard Guenther  <rguenther@suse.de>
20859
20860         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
20861         of complex types at -O0.
20862         (verify_gimple_assign_binary): Likewise.
20863         (verify_gimple_assign_ternary): Likewise.
20864
20865 2011-03-24  Mark Wielaard  <mjw@redhat.com>
20866
20867         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
20868         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
20869
20870 2011-03-24  Mark Wielaard  <mjw@redhat.com>
20871
20872         PR debug/48041
20873         * dwarf2out.c (output_abbrev_section): Only write table when
20874         abbrev_die_table_in_use > 1.
20875
20876 2011-02-24  Richard Henderson  <rth@redhat.com>
20877
20878         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
20879         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
20880         (alpha_expand_unaligned_load_words): Use extql.
20881         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
20882         (emit_insxl): Handle all modes for consistency.
20883
20884 2011-02-24  Richard Henderson  <rth@redhat.com>
20885
20886         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
20887         (alpha_expand_unaligned_load): Likewise.
20888         (alpha_expand_unaligned_store): Likewise.
20889         (alpha_expand_unaligned_load_words): Likewise.
20890         (alpha_expand_unaligned_store_words): Likewise.
20891         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
20892         (alpha_split_lock_test_and_set_12): Likewise.
20893         (print_operand, alpha_fold_builtin_extxx): Likewise.
20894         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
20895         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
20896         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
20897         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
20898         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
20899         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
20900         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
20901         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
20902         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
20903         (extwl, extll, extql): Similarly.
20904         (inswh, inslh, insqh): Similarly.
20905         (mskbl, mskwl, mskll, mskql): Similarly.
20906         (mskwh, msklh, mskqh): Similarly.
20907
20908 2011-02-24  Richard Henderson  <rth@redhat.com>
20909
20910         * config/alpha/alpha.md (attribute isa): Add er, ner.
20911         (attribute enabled): Handle them.
20912         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
20913
20914 2011-02-24  Richard Henderson  <rth@redhat.com>
20915
20916         * config/alpha/alpha.md (attribute isa): Add vms.
20917         (attribute enabled): Handle it.
20918         (*movsf): Merge *movsf_{nofix,fix,nofp}.
20919         (*movdf): Merge *movdf_{nofix,fix,nofp}.
20920         (*movtf): Rename from *movtf_internal for consistency.
20921         (*movsi): Merge with *movsi_nt_vms.
20922         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
20923         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
20924         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
20925         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
20926
20927 2011-02-24  Richard Henderson  <rth@redhat.com>
20928
20929         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
20930         (extendqisi2, extendhisi2): Likewise.
20931         (extendqidi2): Simplify BWX/non-BWX expansions.
20932         (extendhidi2): Similarly.
20933
20934 2011-02-24  Richard Henderson  <rth@redhat.com>
20935
20936         * config/alpha/alpha.md (attribute isa): New.
20937         (attribute enabled): New.
20938         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
20939         (zero_extendqisi2, zero_extendqidi2): Similarly.
20940         (zero_extendhisi2, zero_extendhidi2): Similarly.
20941         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
20942
20943 2011-02-24  Richard Henderson  <rth@redhat.com>
20944
20945         * config/alpha/predicates.md (input_operand): Revert last change;
20946         update comment to mention 32-bit VMS rather than Windows.
20947
20948 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
20949
20950         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
20951         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
20952         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
20953         * passes.c (init_optimization_passes): Move
20954         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
20955
20956 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
20957
20958         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
20959
20960 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
20961
20962         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
20963         correctly.
20964
20965 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
20966
20967         PR debug/48204
20968         * simplify-rtx.c (simplify_const_unary_operation): Call
20969         real_convert when changing mode class with FLOAT_EXTEND.
20970
20971 2011-03-24  Nick Clifton  <nickc@redhat.com>
20972
20973         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
20974         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
20975         * config/rx/rx.c (rx_option_override): Set align_jumps,
20976         align_loops and align_labels if not set by the user.
20977         (rx_align_for_label): New function.
20978         (rx_max_skip_for_label): New function.
20979         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
20980         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
20981         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
20982         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
20983         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
20984
20985 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
20986
20987         PR rtl-optimization/48263
20988         * optabs.c (expand_binop_directly): Reinstate convert_modes code
20989         and original commutative_p handling.  Use maybe_gen_insn.
20990
20991 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20992
20993         * reload.c (find_reloads_subreg_address): Add address_reloaded
20994         parameter and return true there if the full address has been
20995         reloaded.
20996         (find_reloads_toplev): Pass address_reloaded flag.
20997         (find_reloads_address_1): Don't use address_reloaded parameter.
20998
20999 2011-03-24  Jeff Law  <law@redhat.com>
21000
21001         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
21002         unused variable "ann".
21003         (remove_unused_locals): Likewise.
21004
21005         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
21006         statement.
21007
21008         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
21009         after it is freed.
21010
21011 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21012
21013         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
21014         for invalid symbolic addresses.
21015         (s390_secondary_reload): Don't use s390_check_symref_alignment for
21016         larl operands.
21017
21018 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
21019
21020         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
21021         the argument in calls to fold_truth_not_expr.
21022
21023 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21024
21025         * tree.c (record_node_allocation_statistics): New function.
21026         (make_node_stat, copy_node_stat, build_string): Call it.
21027         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
21028         (build1_stat, build_omp_clause): Likewise.
21029
21030 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
21031
21032         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
21033         last commit.
21034
21035 2011-03-24  Richard Guenther  <rguenther@suse.de>
21036
21037         PR tree-optimization/48271
21038         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
21039         blocks that still exist.
21040
21041 2011-03-24  Richard Guenther  <rguenther@suse.de>
21042
21043         PR tree-optimization/48270
21044         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
21045         not free datarefs before ddrs.
21046
21047 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
21048
21049         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
21050         from the address built for a reference with variable offset.
21051
21052 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
21053
21054         PR target/48237
21055         * config/i386/i386.md (*movdf_internal_rex64): Do not split
21056         alternatives that can be handled with movq or movabsq insn.
21057         (*movdf_internal): Disable for !TARGET_64BIT.
21058         (*movdf_internal_nointeger): Ditto.
21059         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
21060
21061 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21062
21063         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
21064         (FUNCTION_ARG_ADVANCE): Likewise.
21065         * tm.texi.in: Change references to them to hook references.
21066         * tm.texi: Regenerate.
21067         * targhooks.c (default_function_arg): Eliminate check for target macro.
21068         (default_function_incoming_arg): Likewise.
21069         (default_function_arg_advance): Likewise.
21070         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
21071         (function_arg_advance): Likewise.
21072         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
21073
21074 2011-03-24  Richard Guenther  <rguenther@suse.de>
21075
21076         PR middle-end/48269
21077         * tree-object-size.c (addr_object_size): Do not double-account
21078         for MEM_REF offsets.
21079
21080 2011-03-24  Diego Novillo  <dnovillo@google.com>
21081
21082         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
21083         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
21084         (lto_input_data_block): Move from lto-opts.c.  Make extern.
21085         Update all users.
21086         (lto_input_string): Rename from input_string.  Make extern.
21087         Update all users.
21088         * lto-streamer-out.c (lto_output_string_with_length): Rename from
21089         output_string_with_length.
21090         Output 0 to indicate a non-NULL string.  Update all callers to
21091         not emit 0.
21092         (lto_output_string): Rename from output_string.  Make extern.
21093         Update all users.
21094         (lto_output_decl_state_streams): Make extern.
21095         (lto_output_decl_state_refs): Make extern.
21096         * lto-streamer.h (lto_input_string): Declare.
21097         (lto_input_data_block): Declare.
21098         (lto_output_string): Declare.
21099         (lto_output_string_with_length): Declare.
21100         (lto_output_decl_state_streams): Declare.
21101         (lto_output_decl_state_refs): Declare.
21102
21103 2011-03-24  Richard Guenther  <rguenther@suse.de>
21104
21105         PR tree-optimization/46562
21106         * tree.c (build_invariant_address): New function.
21107         * tree.h (build_invariant_address): Declare.
21108         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
21109         a renamed function moved ...
21110         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
21111         Take valueization callback parameter.
21112         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
21113         * gimple-fold.h: New file.
21114         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
21115         (ccp_fold, fold_const_aggregate_ref,
21116         fold_ctor_reference, fold_nonarray_ctor_reference,
21117         fold_array_ctor_reference, fold_string_cst_ctor_reference,
21118         get_base_constructor): Move ...
21119         * gimple-fold.c: ... here.
21120         (gimple_fold_stmt_to_constant_1): New function
21121         split out from ccp_fold.  Take a valueization callback parameter.
21122         Valueize all operands.
21123         (gimple_fold_stmt_to_constant): New wrapper function.
21124         (fold_const_aggregate_ref_1): New function split out from
21125         fold_const_aggregate_ref.  Take a valueization callback parameter.
21126         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
21127         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
21128         invariant POINTER_PLUS_EXPRs to invariant form.
21129         (vn_valueize): New function.
21130         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
21131         * tree-vrp.c (vrp_valueize): New function.
21132         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
21133         to fold statements to constants.
21134         * tree-ssa-pre.c (eliminate): Properly guard propagation of
21135         function declarations.
21136         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
21137         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
21138
21139 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
21140
21141         * config/h8300/predicates.md (jump_address_operand): Fix register
21142         mode check.
21143
21144 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
21145
21146         * doc/invoke.texi (max-stores-to-sink): Document.
21147         * params.h (MAX_STORES_TO_SINK): Define.
21148         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
21149         if either vectorization or if-conversion is disabled.
21150         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
21151         tree-vect-data-refs.c vect_equal_offsets.
21152         (dr_equal_offsets_p): New function.
21153         (find_data_references_in_bb): Remove static.
21154         * tree-data-ref.h (find_data_references_in_bb): Declare.
21155         (dr_equal_offsets_p): Likewise.
21156         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
21157         (vect_drs_dependent_in_basic_block): Update calls to
21158         vect_equal_offsets.
21159         (vect_check_interleaving): Likewise.
21160         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
21161         (cond_if_else_store_replacement): Rename to...
21162         (cond_if_else_store_replacement_1): ... this.  Change arguments and
21163         documentation.
21164         (cond_if_else_store_replacement): New function.
21165         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
21166         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
21167
21168 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
21169
21170         PR target/46934
21171         * config/arm/arm.md (casesi): Use the gen_int_mode() function
21172         to subtract lower bound instead of GEN_INT().
21173
21174 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
21175
21176         PR other/48179
21177         PR other/48221
21178         PR other/48234
21179         * doc/extend.texi (Alignment): Move section to match order in TOC.
21180         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
21181         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
21182
21183 2011-03-23  Jeff Law  <law@redhat.com>
21184
21185         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
21186         before removing the edge.
21187
21188         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
21189         it may have been freed by redirect_branch_edge or
21190         redirect_edge_succ_nodup.
21191
21192 2011-03-23  Richard Guenther  <rguenther@suse.de>
21193
21194         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
21195         (check_va_list_escapes): Likewise.
21196         (check_all_va_list_escapes): Likewise.
21197
21198 2011-03-23  Richard Guenther  <rguenther@suse.de>
21199
21200         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
21201         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
21202         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
21203         (alias.o): Likewise.
21204         (ipa-type-escape.o): Remove.
21205         (ipa-struct-reorg.o): Likewise.
21206         (GTFILES): Remove ipa-struct-reorg.c.
21207         * alias.c: Do not include ipa-type-escape.h.
21208         * tree-ssa-alias.c: Likewise.
21209         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
21210         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
21211         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
21212         and ipa-type-escape passes.
21213         * tree-pass.h (pass_ipa_type_escape): Remove.
21214         (pass_ipa_struct_reorg): Likewise.
21215         * ipa-struct-reorg.h: Remove.
21216         * ipa-struct-reorg.c: Likewise.
21217         * ipa-type-escape.h: Likewise.
21218         * ipa-type-escape.c: Likewise.
21219         * doc/invoke.texi (-fipa-struct-reorg): Remove.
21220         (--param struct-reorg-cold-struct-ratio): Likewise.
21221         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
21222         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
21223         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
21224
21225 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21226
21227         * config/s390/2084.md: Enable all insn reservations also for z9_ec
21228         cpu attribute value.
21229         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
21230         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
21231         * config/s390/s390.c (processor_flags_table): New constant array.
21232         (s390_handle_arch_option): Remove.
21233         (s390_handle_option): Remove s390_handle_arch_option invocations
21234         and OPT_mwarn_framesize_ handling.
21235         (s390_option_override): Remove s390_handle_arch_option invocation.
21236         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
21237         warnings.
21238         * config/s390/s390.md (cpu attribute): Add z9_ec value.
21239         * config/s390/s390.opt (s390_tune, s390_arch)
21240         (march=): Replace s390_arch_option enum and values with
21241         processor_type.  Set variable name to s390_arch.  Set
21242         initialization value.
21243         (mtune=): Replace s390_arch_option with processor_type.  Set
21244         variable name to s390_tune.  Set initialization value.
21245
21246 2011-03-23  Julian Brown  <julian@codesourcery.com>
21247
21248         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
21249         accesses which are not naturally aligned.
21250
21251 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
21252
21253         PR target/47553
21254         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
21255
21256 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
21257
21258         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
21259         parameter from "int" to "enum insn_code".
21260         (expand_operand_type): New enum.
21261         (expand_operand): New structure.
21262         (create_expand_operand): New function.
21263         (create_fixed_operand, create_output_operand): Likewise
21264         (create_input_operand, create_convert_operand_to): Likewise.
21265         (create_convert_operand_from, create_address_operand): Likewise.
21266         (create_integer_operand): Likewise.
21267         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
21268         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
21269         (expand_insn, expand_jump_insn): Likewise.
21270         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
21271         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
21272         (expand_movstr, expand_builtin___clear_cache): Likewise.
21273         (expand_builtin_lock_release): Likewise.
21274         * explow.c (allocate_dynamic_stack_space): Likewise.
21275         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
21276         and use the default handling in that case.
21277         * expmed.c (check_predicate_volatile_ok): Delete.
21278         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
21279         (emit_cstore): Likewise.
21280         * expr.c (emit_block_move_via_movmem): Likewise.
21281         (set_storage_via_setmem, expand_assignment): Likewise.
21282         (emit_storent_insn, try_casesi): Likewise.
21283         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
21284         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
21285         (expand_vec_shift_expr, expand_binop_directly): Likewise.
21286         (expand_twoval_unop, expand_twoval_binop): Likewise.
21287         (expand_unop_direct, emit_indirect_jump): Likewise.
21288         (emit_conditional_move, vector_compare_rtx): Likewise.
21289         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
21290         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
21291         (expand_sync_lock_test_and_set): Likewise.
21292         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
21293         (emit_unop_insn): Likewise.
21294         (expand_copysign_absneg): Change icode to an insn_code.
21295         (create_convert_operand_from_type): New function.
21296         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
21297         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
21298         (expand_insn, expand_jump_insn): Likewise.
21299         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
21300         than const_int_operand for operand 2.
21301
21302 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21303
21304         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
21305         if possible.
21306
21307 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21308
21309         * emit-rtl.c (emit_pattern_before_noloc): New function.
21310         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
21311         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
21312         (emit_pattern_after_noloc): New function.
21313         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
21314         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
21315
21316 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21317
21318         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
21319         (__ffsDI2): Likewise.
21320
21321 2011-03-22  Richard Henderson  <rth@redhat.com>
21322
21323         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
21324         of !TARGET_ABI_OPEN_VMS.
21325         (alpha_trampoline_init, alpha_start_function): Likewise.
21326         (alpha_expand_epilogue, alpha_file_start): Likewise.
21327         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
21328         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
21329         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
21330         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
21331         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
21332
21333 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21334
21335         * config/s390/s390-opts.h: New.
21336         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
21337         s390_arch_flags, s390_warn_framesize, s390_stack_size,
21338         s390_stack_guard): Remove.
21339         (s390_handle_arch_option): Return void.  Take enum
21340         s390_arch_option value instead of string and searching array.
21341         (s390_handle_option): Don't assert that global structures are in
21342         use.  Access variables via opts pointer.  Use error_at.  Don't use
21343         sscanf for -mstack-guard= or -mstack-size=.  Update call to
21344         s390_handle_arch_option.
21345         (s390_option_override): Update call to s390_handle_arch_option.
21346         (s390_emit_prologue): Use %d format for s390_stack_size in
21347         diagnostic.  Use %wd for HOST_WIDE_INT.
21348         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
21349         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
21350         * config/s390/s390.opt (config/s390/s390-opts.h): New
21351         HeaderInclude entry.
21352         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
21353         s390_arch_flags, s390_warn_framesize): New Variable entries.
21354         (s390_arch_option): New Enum and EnumValue entries.
21355         (march=): Use Enum instead of Var.
21356         (mstack-guard=, mstack-size=): Use UInteger and Var.
21357         (mtune=): Use Enum.
21358
21359 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21360
21361         * config/score/score.c (score_handle_option): Don't assert that
21362         global structures are in use.  Access target_flags via opts
21363         pointer.  Use value of -march= option to determine target_flags
21364         settings.
21365         * config/score/score.opt (march=): Use Enum.
21366         (score_arch): New Enum and EnumValue entries.
21367
21368 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21369
21370         * config/mep/mep.c (option_mtiny_specified): Remove.
21371         (mep_option_override): Move register handling for -mivc2 from
21372         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
21373         instead of option_mtiny_specified.
21374         (mep_handle_option): Access target_flags via opts pointer.  Don't
21375         assert that global structures are in use.  Defer part of -mivc2
21376         handling and move it to mep_option_override.
21377         * config/mep/mep.opt (IVC2): New Mask entry.
21378         (mivc2): Use Var and Defer instead of Mask.
21379
21380 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21381
21382         * config/v850/v850-opts.h: New.
21383         * config/v850/v850.c (small_memory): Replace with
21384         small_memory_physical_max array.  Make that array static const.
21385         (v850_handle_memory_option): Take integer value of argument.  Take
21386         gcc_options pointer, option text and location.  Return void.
21387         Update for changes to small memory structures.
21388         (v850_handle_option): Access target_flags via opts pointer.  Don't
21389         assert that global structures are in use.  Update calls to
21390         v850_handle_memory_option.
21391         (v850_encode_data_area): Update references to small memory settings.
21392         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
21393         (enum small_memory_type): Move to v850-opts.h.
21394         * config/v850/v850.opt (config/v850/v850-opts.h): New
21395         HeaderInclude entry.
21396         (small_memory_max): New Variable entry.
21397         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
21398         (mtda, mzda): Likewise.
21399
21400 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21401
21402         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
21403         pointer.  Don't assert that global structures are in use.
21404
21405 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21406
21407         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
21408         via opts pointer.  Don't assert that global structures are in use.
21409
21410 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21411
21412         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
21413         (munix=93): Use Var.
21414         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
21415         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
21416         * config/pa/pa-opts.h: New.
21417         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
21418         (pa_handle_option): Don't assert that global structures are in
21419         use.  Access target_flags via opts pointer.  Don't handle
21420         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
21421         OPT_munix_98 here.
21422         (pa_option_override): Handle deferred OPT_mfixed_range_.
21423
21424 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21425
21426         * config/mn10300/mn10300-opts.h: New.
21427         * config/mn10300/mn10300.c (mn10300_processor,
21428         mn10300_tune_string): Remove.
21429         (mn10300_handle_option): Don't assert that global structures are
21430         in use.  Access mn10300_processor via opts pointer.  Don't handle
21431         OPT_mtune_ here.
21432         * config/mn10300/mn10300.h (enum processor_type): Move to
21433         mn10300-opts.h.
21434         (mn10300_processor): Remove.
21435         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
21436         HeaderInclude entry.
21437         (mn10300_processor): New Variable entry.
21438         (mtune=): Use Var.
21439
21440 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21441
21442         * config/microblaze/microblaze.c: Don't include opts.h.
21443         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
21444         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
21445         (mno-clearbss): Use Var and Warn.
21446
21447 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21448
21449         * config/m32r/m32r-opts.h: New.
21450         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
21451         (m32r_handle_option): Don't assert that global structures are in
21452         use.  Access target_flags and m32r_cache_flush_func via opts
21453         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
21454         OPT_mno_flush_trap here.
21455         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
21456         include of m32r-opts.h.
21457         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
21458         HeaderInclude entry.
21459         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
21460         (mmodel=): Use Enum and Var.
21461         (m32r_model): New Enum and EnumValue entries.
21462         (mno-flush-trap): Use Var.
21463         (msdata=): Use Enum and Var.
21464         (m32r_sdata): New Enum and EnumValue entries.
21465
21466 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21467
21468         * config/m32c/m32c.c: Don't include opts.h.
21469         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
21470         m32c_handle_option): Remove.
21471         (m32c_option_override): Check global_options_set.x_target_memregs
21472         instead of target_memregs_set.
21473         * config/m32c/m32c.h (target_memregs): Remove.
21474         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
21475         variable.
21476
21477 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21478
21479         * config/iq2000/iq2000-opts.h: New.
21480         * config/iq2000/iq2000.c: Don't include opts.h.
21481         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
21482         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
21483         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
21484         HeaderInclude entry.
21485         (iq2000_tune): New Variable entry.
21486         (march=): Add comment.  Use Enum.
21487         (iq2000_arch): New Enum and EnumValue entries.
21488         (mcpu=): Use Enum and Var.
21489         (iq2000_tune): New Enum and EnumValue entries.
21490
21491 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21492
21493         * config/ia64/ia64-opts.h: New.
21494         * config/ia64/ia64.c (ia64_tune): Remove.
21495         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
21496         here.  Use error_at.
21497         (ia64_option_override): Handle deferred OPT_mfixed_range_.
21498         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
21499         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
21500         HeaderInclude entry.
21501         (ia64_tune): New Variable entry.
21502         (mfixed-range=): Use Defer and Var.
21503         (mtune=): Use Enum and Var.
21504         (ia64_tune): New Enum and EnumValue entries.
21505
21506 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21507
21508         * config/frv/frv-opts.h: New.
21509         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
21510         frv-opts.h.
21511         (frv_cpu_type): Remove.
21512         * config/frv/frv.c: Don't include opts.h.
21513         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
21514         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
21515         (frv_cpu_type): New Variable entry.
21516         (frv_cpu): New Enum and EnumValue entries.
21517
21518 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21519
21520         * config/cris/cris.c (cris_handle_option): Access target_flags via
21521         opts pointer.  Don't assert that global structures are in use.
21522         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
21523         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
21524
21525 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21526
21527         * config/bfin/bfin-opts.h: New.
21528         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
21529         bfin_si_revision, bfin_workarounds): Remove.
21530         (bfin_cpus): Make static const.
21531         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
21532         not bfin_lib_id_given.
21533         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
21534         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
21535         pointer. Use error_at.  Don't assert that global structures are in use.
21536         * config/bfin/bfin.h: Include bfin-opts.h.
21537         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
21538         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
21539         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
21540         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
21541         entries.
21542
21543 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21544
21545         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
21546         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
21547         or -msoft-float here.
21548         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
21549         -msoft-float and -mhard-float.
21550         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
21551         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
21552         msoft-float.
21553         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
21554         -msoft-float.
21555         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
21556         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
21557         not mhard-float.
21558         (LIBGCC_SPEC): Don't handle -msoft-float.
21559         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
21560         -mhard-float.
21561         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
21562         msoft-float.
21563         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
21564         -mfloat-abi=*, not -msoft-float and -mhard-float.
21565         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
21566         -msoft-float.
21567         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
21568         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
21569         mhard-float and msoft-float.
21570         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
21571         mfloat-abi=soft in comments, not mhard-float and msoft-float.
21572         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
21573         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
21574         mhard-float.
21575         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
21576         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
21577         msoft-float.
21578         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
21579         not mhard-float.
21580         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
21581         not msoft-float.
21582
21583 2011-03-22  Richard Henderson  <rth@redhat.com>
21584
21585         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
21586         TARGET_ABI_WINDOWS_NT.
21587         (alpha_output_function_end_prologue): Likewise.
21588         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
21589         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
21590         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
21591         (trap, *movsi_nt_vms): Likewise.
21592         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
21593         (*tablejump_osf_nt_internal): Remove.
21594         * config/alpha/predicates.md (input_operand): Only test Pmode.
21595
21596 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21597
21598         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
21599         via opts pointer.  Use error_at.  Don't assert that global
21600         structures are in use.
21601
21602 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21603
21604         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
21605         (ix86_handle_option): Access ix86_isa_flags and
21606         ix86_isa_flags_explicit via opts pointer.  Don't assert that
21607         global structures are in use.
21608         (ix86_function_specific_save, ix86_function_specific_restore):
21609         Update ix86_isa_flags_explicit field name.
21610         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
21611         (ix86_isa_flags_explicit): Rename TargetSave entry to
21612         x_ix86_isa_flags_explicit.
21613
21614 2011-03-22  Richard Henderson  <rth@redhat.com>
21615
21616         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
21617         (alpha_option_override, direct_return): Likewise.
21618         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
21619         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
21620         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
21621         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
21622         (alpha_expand_epilogue, alpha_end_function): Likewise.
21623         (alpha_init_libfuncs): Likewise.
21624         (struct machine_function): Remove unicosmk members.
21625         (print_operand) ['t']: Remove.
21626         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
21627         unicosmk_output_module_name, unicosmk_output_common,
21628         current_section_align, unicosmk_output_text_section_asm_op,
21629         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
21630         unicosmk_section_type_flags, unicosmk_unique_section,
21631         unicosmk_asm_named_section, unicosmk_insert_attributes,
21632         unicosmk_output_align, unicosmk_defer_case_vector,
21633         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
21634         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
21635         unicosmk_output_ssib, unicosmk_add_call_info_word,
21636         unicosmk_extern_head, unicosmk_output_default_externs,
21637         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
21638         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
21639         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
21640         * config/alpha/alpha-protos.h: Update.
21641         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
21642         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
21643         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
21644         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
21645         (*mulsi_se, mulvsi3): Likewise.
21646         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
21647         (*divmodsi_internal, call, call_value, realign): Likewise.
21648         (moddi3, umoddi3): Likewise; remove duplicate expander.
21649         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
21650         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
21651         (*movdi_nofix): Remove r/U alternative.
21652         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
21653         * config/alpha/constraints.md ("U"): Remove.
21654         * config/alpha/predicates.md (call_operand"): Don't test
21655         TARGET_ABI_UNICOSMK.
21656
21657 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21658
21659         * target.def (handle_option): Take gcc_options and
21660         cl_decoded_option pointers and location_t.
21661         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
21662         * doc/tm.texi: Regenerate.
21663         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
21664         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
21665         * lto-opts.c (lto_reissue_options): Generate option structure for
21666         targetm.handle_option call.
21667         * opts.c (target_handle_option): Update call to
21668         targetm.handle_option.  Remove assertions about values now passed
21669         down to hook.
21670         * targhooks.c (default_target_handle_option): New.
21671         * targhooks.h (default_target_handle_option): Declare.
21672         * config/alpha/alpha.c: Include opts.h.
21673         (alpha_handle_option): Update to new hook interface.
21674         * config/arm/arm.c: Include opts.h.
21675         (arm_handle_option): Update to new hook interface.
21676         * config/arm/t-arm (arm.o): Update dependencies.
21677         * config/bfin/bfin.c: Include opts.h.
21678         (bfin_handle_option): Update to new hook interface.
21679         * config/cris/cris.c: Include opts.h.
21680         (cris_handle_option): Update to new hook interface.
21681         * config/frv/frv.c: Include opts.h.
21682         (frv_handle_option): Update to new hook interface.
21683         * config/i386/i386.c: Include opts.h.
21684         (ix86_handle_option): Update to new hook interface.
21685         (ix86_valid_target_attribute_inner_p): Generate option structure
21686         for call to ix86_handle_option.
21687         * config/i386/t-i386 (i386.o): Update dependencies.
21688         * config/ia64/ia64.c: Include opts.h.
21689         (ia64_handle_option): Update to new hook interface.
21690         * config/ia64/t-ia64 (ia64.o): Update dependencies.
21691         * config/iq2000/iq2000.c: Include opts.h.
21692         (iq2000_handle_option): Update to new hook interface.
21693         * config/m32c/m32c.c: Include opts.h.
21694         (m32c_handle_option): Update to new hook interface.
21695         * config/m32r/m32r.c: Include opts.h.
21696         (m32r_handle_option): Update to new hook interface.
21697         * config/m68k/m68k.c: Include opts.h.
21698         (m68k_handle_option): Update to new hook interface.
21699         * config/mep/mep.c: Include opts.h.
21700         (mep_handle_option): Update to new hook interface.
21701         * config/microblaze/microblaze.c: Include opts.h.
21702         (microblaze_handle_option): Update to new hook interface.
21703         * config/mips/mips.c: Include opts.h.
21704         (mips_handle_option): Update to new hook interface.
21705         * config/mn10300/mn10300.c: Include opts.h.
21706         (mn10300_handle_option): Update to new hook interface.
21707         * config/pa/pa.c: Include opts.h.
21708         (pa_handle_option): Update to new hook interface.
21709         * config/pdp11/pdp11.c: Include opts.h.
21710         (pdp11_handle_option): Update to new hook interface.
21711         * config/rs6000/rs6000.c: Include opts.h.
21712         (rs6000_handle_option): Update to new hook interface.
21713         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
21714         * config/rx/rx.c: Include opts.h.
21715         (rx_handle_option): Update to new hook interface.
21716         * config/s390/s390.c: Include opts.h.
21717         (s390_handle_option): Update to new hook interface.
21718         * config/score/score.c: Include opts.h.
21719         (score_handle_option): Update to new hook interface.
21720         * config/sh/sh.c: Include opts.h.
21721         (sh_handle_option): Update to new hook interface.
21722         * config/sparc/sparc.c: Include opts.h.
21723         (sparc_handle_option): Update to new hook interface.
21724         * config/v850/v850.c: Include opts.h.
21725         (v850_handle_option): Update to new hook interface.
21726
21727 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21728
21729         * gcc.c (driver_unknown_option_callback): Only permit and save
21730         unknown -Wno- options.
21731         (driver_wrong_lang_callback): Save options directly instead of via
21732         driver_unknown_option_callback.
21733
21734 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
21735
21736         * combine.c (simplify_set): Try harder to find the best CC mode when
21737         simplifying a nested COMPARE on the RHS.
21738
21739 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21740
21741         * config/alpha/gnu.h: Remove.
21742         * config/arc: Remove directory.
21743         * config/arm/netbsd.h: Remove.
21744         * config/arm/t-pe: Remove.
21745         * config/crx: Remove directory.
21746         * config/i386/netbsd.h: Remove.
21747         * config/m68hc11: Remove directory.
21748         * config/m68k/uclinux-oldabi.h: Remove.
21749         * config/mcore/mcore-pe.h: Remove.
21750         * config/mcore/t-mcore-pe: Remove.
21751         * config/netbsd-aout.h: Remove.
21752         * config/rs6000/gnu.h: Remove.
21753         * config/sh/sh-symbian.h: Remove.
21754         * config/sh/symbian-base.c: Remove.
21755         * config/sh/symbian-c.c: Remove.
21756         * config/sh/symbian-cxx.c: Remove.
21757         * config/sh/symbian-post.h: Remove.
21758         * config/sh/symbian-pre.h: Remove.
21759         * config/sh/t-symbian: Remove.
21760         * config/svr3.h: Remove.
21761         * config/vax/netbsd.h: Remove.
21762         * config.build: Don't handle i[34567]86-*-pe.
21763         * config.gcc: Remove handling of deprecations for most deprecated
21764         targets.
21765         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
21766         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
21767         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
21768         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
21769         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
21770         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
21771         Remove cases.
21772         * config.host: Don't handle i[34567]86-*-pe.
21773         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
21774         (ASM_SPEC32): Don't handle -mcall-gnu.
21775         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
21776         -mcall-gnu.
21777         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
21778         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
21779         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
21780         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
21781         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
21782         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
21783         conditional on SYMBIAN.
21784         * configure.ac: Don't handle powerpc*-*-gnu*.
21785         * configure: Regenerate.
21786         * doc/extend.texi (interrupt attribute): Don't mention CRX.
21787         * doc/install-old.texi (m6811, m6812): Don't mention.
21788         * doc/install.texi (arc-*-elf*): Don't document multilib option.
21789         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
21790         (m68k-uclinuxoldabi): Don't mention.
21791         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
21792         Remove.
21793         (-mcall-gnu): Remove.
21794         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
21795         families): Remove constraint documentation.
21796
21797 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
21798
21799         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
21800         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
21801         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
21802
21803 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
21804
21805         PR target/48226
21806         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
21807         vector when peeking at the next token for vector, don't expand the
21808         keywords.
21809
21810 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
21811
21812         * config/avr/avr-protos.h (expand_epilogue): Change prototype
21813         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
21814         * config/avr/avr.c (init_cumulative_args)
21815         (avr_function_arg_advance): Use it.
21816         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
21817         sibcall epilogues.
21818         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
21819         (avr_function_ok_for_sibcall): ...this new function.
21820         (avr_lookup_function_attribute1): New static Function.
21821         (avr_naked_function_p, interrupt_function_p)
21822         (signal_function_p, avr_OS_task_function_p)
21823         (avr_OS_main_function_p): Use it.
21824         * config/avr/avr.md ("sibcall", "sibcall_value")
21825         ("sibcall_epilogue"): New expander.
21826         ("*call_insn", "*call_value_insn"): New insn.
21827         ("call_insn", "call_value_insn"): Remove
21828         ("call", "call_value", "epilogue"): Change expander to handle
21829         sibling calls.
21830
21831 2011-03-21  Nick Clifton  <nickc@redhat.com>
21832
21833         * doc/invoke.texi (Overall Options): Move closing brace to end of
21834         options list.
21835         (Optimization Options): Add missing @gol.
21836         (Directory Options): Likewise.
21837         (i386 and x86-64 Options): Likewise.
21838         (RS6000 and PowerPC Options): Likewise.
21839         (i386 and x86-64 Windows Options): Likewise.
21840         (V850 Options): Add text missing from descriptions.
21841
21842 2011-03-22  Richard Henderson  <rth@redhat.com>
21843
21844         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
21845         (avr_incoming_return_addr_rtx): New.
21846         (emit_push_byte): New.
21847         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
21848         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
21849         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
21850         (emit_pop_byte): New.
21851         (expand_epilogue): Use it.  Pop frame pointer by bytes.
21852         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
21853         (INCOMING_RETURN_ADDR_RTX): New.
21854         (INCOMING_FRAME_SP_OFFSET): New.
21855         (ARG_POINTER_CFA_OFFSET): New.
21856         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
21857         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
21858         (pophi): Remove.
21859
21860         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
21861
21862 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21863
21864         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
21865         (FUNCTION_ARG_ADVANCE): Likewise.
21866         * tm.texi.in: Change references to them to hook references.
21867         * tm.texi: Regenerate.
21868         * targhooks.c (default_function_arg): Eliminate check for target
21869         macro.
21870         (default_function_incoming_arg): Likewise.
21871         (default_function_arg_advance): Likewise.
21872         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
21873         (function_arg_advance): Likewise.
21874         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
21875
21876 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21877
21878         * tree.c (build_call_1): New function.
21879         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
21880
21881 2011-03-22  Richard Guenther  <rguenther@suse.de>
21882
21883         PR tree-optimization/48228
21884         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
21885         for single-arg PHIs.
21886
21887 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
21888
21889         PR rtl-optimization/48143
21890         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
21891         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
21892         sse2_cvtps2pd): Likewise.
21893
21894 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21895
21896         * recog.c (canonicalize_change_group): Use validate_unshare_change.
21897
21898 2011-03-22  Richard Guenther  <rguenther@suse.de>
21899
21900         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
21901         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
21902         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
21903         and REALIGN_LOAD_EXPR.
21904         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
21905         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
21906         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
21907         DOT_PROD_EXPR case ...
21908         (expand_expr_real_2): ... here.
21909         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
21910         and REALIGN_LOAD_EXPR.
21911         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
21912         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
21913         (vect_create_epilog_for_reduction): Likewise.
21914         (vectorizable_reduction): Likewise.
21915         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
21916         * tree-vect-stmts.c (vectorizable_load): Likewise.
21917
21918 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
21919
21920         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
21921
21922 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21923
21924         * config/s390/s390.c (s390_delegitimize_address): Fix offset
21925         handling for PLTOFF/GOTOFF.
21926
21927 2011-03-22  Nick Clifton  <nickc@redhat.com>
21928
21929         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
21930         trailing backslash from the end of the macro definition.
21931
21932 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21933
21934         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
21935         and PLT unspecs.
21936
21937 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
21938
21939         * expr.h (prepare_operand): Move to...
21940         * optabs.h (prepare_operand): ...here and change the insn code
21941         parameter from "int" to "enum insn_code".
21942         (insn_operand_matches): Declare.
21943         * expr.c (init_expr_target): Use insn_operand_matches.
21944         (compress_float_constant): Likewise.
21945         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
21946         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
21947         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
21948         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
21949         Likewise.
21950         (gen_cond_trap): Likewise.
21951         (prepare_operand): Likewise.  Change icode to an insn_code.
21952         (insn_operand_matches): New function.
21953         * reload.c (find_reloads_address_1): Use insn_operand_matches.
21954         * reload1.c (gen_reload): Likewise.
21955         * targhooks.c (default_secondary_reload): Likewise.
21956
21957 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
21958
21959         * config/alpha/alpha.md (unspec): New define_c_enum.
21960         (unspecv): Ditto.
21961
21962 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
21963
21964         PR debug/48214
21965         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
21966         between a call and its CALL_ARG_LOCATION note.
21967
21968 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
21969
21970         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
21971
21972 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
21973
21974         PR c/42544
21975         PR c/48197
21976         * c-common.c (shorten_compare): If primopN is first sign-extended
21977         to opN and then zero-extended to result type, set primopN to opN.
21978
21979 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
21980
21981         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
21982         for barrier handlers.
21983
21984 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
21985
21986         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
21987         UNSPEC constants to be in the unspec enumeration, and redefine
21988         all UNSPECV constants to be in the unspecv enumeration, so that
21989         dumps print which unspec/unspec_volatile this is.
21990         * config/rs6000/vector.md (UNSPEC_*): Ditto.
21991         * config/rs6000/paired.md (UNSPEC_*): Ditto.
21992         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
21993         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
21994         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
21995
21996         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
21997         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
21998         UNSPECV_LWSYNC, since these are used as unspec_volatile.
21999         * config/rs6000/sync.md (isync, lwsync): Ditto.
22000
22001 2011-03-21  Richard Guenther  <rguenther@suse.de>
22002
22003         * params.def (lto-min-partition): Fix typo.
22004
22005 2011-03-21  Richard Guenther  <rguenther@suse.de>
22006
22007         PR c/47939
22008         * c-decl.c (grokdeclarator): Drop to the main variant only
22009         for array types.  Drop flag_gen_aux_info check.
22010
22011 2011-03-21  Richard Guenther  <rguenther@suse.de>
22012
22013         PR translation/47911
22014         * params.def (lto-partitions): Fix typo.
22015         (lto-min-partition): Fix wording.
22016
22017 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
22018
22019         * config/rs6000/t-freebsd: Remove duplication from file.
22020
22021 2011-03-21  Richard Guenther  <rguenther@suse.de>
22022
22023         PR middle-end/47661
22024         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
22025
22026 2011-03-21  Richard Guenther  <rguenther@suse.de>
22027
22028         PR lto/48210
22029         * params.def (lto-partitions): Require at least 1 partition.
22030
22031 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22032
22033         * gthr-solaris.h: Remove.
22034         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
22035         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
22036         (LIB_SPEC): Likewise.
22037         * config/sol2.opt (threads): Remove.
22038         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
22039         (sparc*-*-solaris2*): Likewise.
22040         * configure.ac (enable_threads): Enable solaris support.
22041         * configure: Regenerate.
22042         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
22043         * doc/install.texi (Configuration, --enable-threads=lib): Remove
22044         solaris.
22045
22046 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22047
22048         * config.gcc: Obsolete *-*-solaris2.8*.
22049         * doc/install.texi (Specific, *-*-solaris2*): Document it.
22050
22051 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22052
22053         PR bootstrap/48135
22054         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
22055         reference.  Solaris 8 perl works.
22056
22057 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22058
22059         PR bootstrap/48135
22060         * doc/install.texi (Prerequisites): Move jar etc. up.
22061         Explain support library version requirements.
22062
22063 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22064
22065         PR bootstrap/48135
22066         * doc/install.texi (Prerequisites): Move Perl to build
22067         requirements.  Always necessary on Solaris 2 with Sun ld.
22068
22069 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22070
22071         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
22072         binutils 2.21.
22073         (Specific, i?86-*-solaris2.[89]): Likewise.
22074         (Specific, i?86-*-solaris2.10): Likewise.
22075         (Specific, mips-sgi-irix6): Likewise.
22076         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
22077         Update for binutils 2.21.
22078
22079 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22080
22081         * configure.ac (gcc_cv_lto_plugin): Fix typo.
22082         Allow -fuse-linker-plugin for non-default plugin linker.
22083         * configure: Regenerate.
22084
22085 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
22086
22087         PR bootstrap/48167
22088         * gengtype.c (files_rules): Added rule for cp/parser.h.
22089
22090 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
22091
22092         PR target/48213
22093         * config/s390/s390.c (s390_delegitimize_address): Don't call
22094         lowpart_subreg if orig_x has BLKmode.
22095
22096 2011-03-21  Kai Tietz  <ktietz@redhat.com>
22097
22098         PR target/12171
22099         * doc/plugins.texi: Adjust documentation for plugin register_callback.
22100         * tree.h (attribute_spec): Add new member affects_type_identity.
22101         * attribs.c (empty_attribute_table): Adjust attribute_spec
22102         initializers.
22103         * config/alpha/alpha.c: Likewise.
22104         * config/arc/arc.c: Likewise.
22105         * config/arm/arm.c: Likewise.
22106         * config/avr/avr.c: Likewise.
22107         * config/bfin/bfin.c: Likewise.
22108         * config/crx/crx.c: Likewise.
22109         * config/darwin.h: Likewise.
22110         * config/h8300/h8300.c: Likewise.
22111         * config/i386/cygming.h: Likewise.
22112         * config/i386/i386.c: Likewise.
22113         * config/ia64/ia64.c: Likewise.
22114         * config/m32c/m32c.c: Likewise.
22115         * config/m32r/m32r.c: Likewise.
22116         * config/m68hc11/m68hc11.c: Likewise.
22117         * config/m68k/m68k.c: Likewise.
22118         * config/mcore/mcore.c: Likewise.
22119         * config/mep/mep.c: Likewise.
22120         * config/microblaze/microblaze.c: Likewise.
22121         * config/mips/mips.c: Likewise.
22122         * config/rs6000/rs6000.c: Likewise.
22123         * config/rx/rx.c: Likewise.
22124         * config/sh/sh.c: Likewise.
22125         * config/sol2.h: Likewise.
22126         * config/sparc/sparc.c: Likewise.
22127         * config/spu/spu.c: Likewise.
22128         * config/stormy16/stormy16.c: Likewise.
22129         * config/v850/v850.c: Likewise.
22130
22131 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
22132
22133         * simplify-rtx.c (simplify_binary_operation_1): Handle
22134         (xor (and A B) C) case when B and C are both constants.
22135
22136 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
22137
22138         * tree-dfa.c (add_referenced_var): Fix typo in comment.
22139
22140 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
22141
22142         PR bootstrap/48168
22143         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
22144
22145 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
22146
22147         PR rtl-optimization/48156
22148         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
22149         assume df and df_lr are not NULL.
22150
22151 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22152
22153         PR debug/48023
22154         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
22155         between a call and its CALL_ARG_LOCATION note.
22156
22157 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
22158
22159         PR debug/48178
22160         * config/sh/sh.c (find_barrier): Don't emit a constant pool
22161         between a call and its corresponding CALL_ARG_LOCATION note.
22162
22163 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
22164
22165         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
22166         instead of loop. Use HARD_REGISTER_NUM_P predicate.
22167         * haifa-sched.c (setup_ref_regs): Ditto.
22168         * caller-save.c (add_used_regs_1): Ditto.
22169         * dse.c (look_for_hardregs): Ditto.
22170         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
22171         * sched-rgn.c (check_live_1): Ditto.
22172
22173 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
22174
22175         * c-decl.c (diagnose_mismatched_decls): Give an error for
22176         redefining a typedef with variably modified type.
22177
22178 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
22179
22180         * c-decl.c (grokfield): Don't allow typedefs for structures or
22181         unions with no tag by default.
22182         * doc/extend.texi (Unnamed Fields): Update.
22183
22184 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
22185
22186         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
22187         Rewrite using indirect functions.
22188         (lwp_slwpcb): Ditto.
22189         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
22190         (avx_vinsertf128<mode>): Ditto.
22191
22192 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22193
22194         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
22195         unspecs.
22196
22197 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22198
22199         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
22200         splitting between a call and its corresponding CALL_ARG_LOCATION note.
22201
22202 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
22203
22204         PR rtl-optimization/48170
22205         * gcse.c (hoist_code): Remove bogus asserts.
22206
22207 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
22208
22209         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
22210         computation for prologue/epilogue.
22211
22212 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22213
22214         * Makefile.in (check-consistency): Remove.
22215
22216 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
22217
22218         PR debug/48176
22219         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
22220         arange_table_in_use is 0, but either text_section_used or
22221         cold_text_section_used is true.  Don't call it if
22222         !info_section_emitted.
22223
22224 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
22225
22226         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
22227         FUNCTION_VALUE_REGNO_P): Remove.
22228         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
22229         Remove.
22230         * config/avr/avr.c (avr_ret_register): Make static inline.
22231         (avr_function_value_regno_p): New function.
22232         (avr_libcall_value): Make static. Add 'func' argument.
22233         (avr_function_value): Make static. Rename 'func' argument to
22234         'fn_decl_or_type', forward it to avr_libcall_value. Call
22235         avr_ret_register function instead of RET_REGISTER macro.
22236         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22237
22238 2011-03-18  Jason Merrill  <jason@redhat.com>
22239
22240         PR c++/23372
22241         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
22242
22243 2011-03-18  Richard Guenther  <rguenther@suse.de>
22244
22245         * doc/install.texi (--enable-gold): Remove.
22246         (--with-plugin-ld): Document.
22247         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
22248
22249 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
22250
22251         PR middle-end/47790
22252         * expr.c (optimize_bitfield_assignment_op): Revamp to work
22253         again after expansion changes.
22254
22255 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
22256
22257         * combine.c (try_combine): Do simplification only call of
22258         subst() on i2 even when i1 is present. Update comments.
22259
22260 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
22261
22262         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
22263         and UNSPEC_PCREL_SYMOFF.
22264
22265 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22266
22267         * config/s390/s390.md: Use define_c_enum for the unspec constant
22268         definitions.
22269
22270 2011-03-18  Richard Henderson  <rth@redhat.com>
22271             Jakub Jelinek  <jakub@redhat.com>
22272
22273         PR bootstrap/48161
22274         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
22275         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
22276
22277 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
22278
22279         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22280         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
22281         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
22282         Change return type to bool.
22283         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22284
22285 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
22286
22287         PR debug/48163
22288         * var-tracking.c (prepare_call_arguments): If CALL target
22289         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
22290         pc instead of looking it up using cselib_lookup and use
22291         Pmode for it if x has VOIDmode.
22292         * dwarf2out.c (gen_subprogram_die): If also both first and
22293         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
22294
22295         PR debug/48163
22296         * function.c (assign_parms): For data.passed_pointer parms
22297         use MEM of data.entry_parm instead of data.entry_parm itself
22298         as DECL_INCOMING_RTL.
22299         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
22300         also when passed and declared mode is the same, DECL_RTL
22301         is a MEM with pseudo as address and DECL_INCOMING_RTL is
22302         a MEM too.
22303
22304 2011-03-16  Jeff Law  <law@redhat.com>
22305
22306         PR rtl-optimization/37273
22307         * ira-costs.c (scan_one_insn): Detect constants living in memory and
22308         handle them like argument loads from stack slots.  Do not double
22309         count memory for memory constants and argument loads from stack slots.
22310
22311 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
22312
22313         PR debug/48160
22314         * var-tracking.c (prepare_call_arguments): Check SUBREG.
22315
22316 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
22317
22318         PR target/48171
22319         * config/i386/i386.opt: Add Save to -mavx and -mfma.
22320
22321 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
22322
22323         PR bootstrap/48153
22324         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
22325         if dwarf_strict.
22326         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
22327         Clear call_arg_locations and call_arg_loc_last always.
22328
22329         PR middle-end/48152
22330         * var-tracking.c (prepare_call_arguments): If argument needs to be
22331         passed by reference, adjust argtype and mode.
22332
22333 2011-03-17  Richard Guenther  <rguenther@suse.de>
22334
22335         PR middle-end/48134
22336         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
22337         a value make sure to fold the statement.
22338
22339 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
22340
22341         PR target/43872
22342         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
22343         return condition with !cfun->calls_alloca.
22344
22345 2011-03-17  Richard Guenther  <rguenther@suse.de>
22346
22347         PR bootstrap/48148
22348         * lto-cgraph.c (input_overwrite_node): Clear the abstract
22349         origin for decls in other ltrans units.
22350         (input_varpool_node): Likewise.
22351
22352 2011-03-17  Richard Guenther  <rguenther@suse.de>
22353
22354         PR middle-end/48165
22355         * tree-object-size.c (compute_object_offset): Properly return
22356         the offset operand of MEM_REFs as sizetype.
22357
22358 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
22359
22360         PR rtl-optimization/48141
22361         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
22362         * dse.c: Include params.h.
22363         (active_local_stores_len): New variable.
22364         (add_wild_read, dse_step1): Clear it when setting active_local_stores
22365         to NULL.
22366         (record_store, check_mem_read_rtx): Decrease it when removing
22367         from the chain.
22368         (scan_insn): Likewise.  Increase it when adding to chain, if it
22369         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
22370         set active_local_stores to NULL before the addition.
22371         * Makefile.in (dse.o): Depend on $(PARAMS_H).
22372
22373         PR rtl-optimization/48141
22374         * dse.c (record_store): If no positions are needed in an insn
22375         that cannot be deleted, at least unchain it from active_local_stores.
22376
22377 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
22378
22379         PR debug/47510
22380         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
22381         (lookup_type_die_strip_naming_typedef): ... here.
22382         (get_context_die): Use it.
22383         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
22384         the anonymous struct named by the naming typedef.
22385
22386 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22387
22388         PR target/48154
22389         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
22390         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
22391
22392 2011-03-16  Jeff Law  <law@redhat.com>
22393
22394         * tree-vrp.c (identify_jump_threads): Slightly simplify type
22395         check for operands of conditional.  Allow type to be a pointer.
22396
22397 2011-03-16  Richard Guenther  <rguenther@suse.de>
22398
22399         PR tree-optimization/48149
22400         * fold-const.c (fold_binary_loc): Fold
22401         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
22402
22403 2011-03-16  Richard Guenther  <rguenther@suse.de>
22404
22405         PR tree-optimization/26134
22406         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
22407         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
22408         (non_rewritable_mem_ref_base): Handle complex type component
22409         accesses, constrain offsets for vector and complex extracts
22410         more properly.
22411
22412 2011-03-16  Richard Guenther  <rguenther@suse.de>
22413
22414         PR tree-optimization/48146
22415         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
22416         operands avoiding the need for renaming.
22417
22418 2011-03-16  Richard Guenther  <rguenther@suse.de>
22419
22420         * gimple-fold.c (maybe_fold_reference): Open-code relevant
22421         constant folding.  Move MEM_REF canonicalization first.
22422         Rely on fold_const_aggregate_ref for initializer folding.
22423         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
22424
22425 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
22426
22427         PR middle-end/48136
22428         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22429         arg0/arg1 or their arguments are always fold converted to matching
22430         types.
22431
22432         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
22433         to nargs.
22434
22435 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22436
22437         PR lto/46944
22438         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
22439         Handle in-tree gold.
22440         (ld_vers): Extract binutils version for gold.
22441         (gcc_cv_ld_hidden): Handle gold here.
22442         (gcc_cv_lto_plugin): Determine level of linker plugin support.
22443         * configure: Regenerate.
22444         * config.in: Regenerate.
22445         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
22446         -fuse-linker-plugin otherwise.
22447         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
22448         (LINK_COMMAND_SPEC): Use it.
22449         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
22450
22451 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
22452
22453         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
22454         * calls.c: Remove debug.h include.
22455         (emit_call_1): Don't call virtual_call_token debug hook.
22456         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
22457         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
22458         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
22459         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
22460         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
22461         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
22462         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
22463         dwarf2out_virtual_call): Remove.
22464         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
22465         copy_call_info and virtual_call hooks.
22466         (dwarf2out_init): Don't initialize vcall_insn_table,
22467         debug_dcall_section and debug_vcall_section.
22468         (prune_unused_types): Don't mark nodes from dcall_table.
22469         (dwarf2out_finish): Don't output dcall or vcall tables.
22470         * final.c (final_scan_insn): Don't call direct_call or
22471         virtual_call debug hooks.
22472         * debug.h (struct gcc_debug_hooks): Remove direct_call,
22473         virtual_call_token, copy_call_info and virtual_call hooks.
22474         (debug_nothing_uid): Remove prototype.
22475         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
22476         copy_call_info and virtual_call hooks.
22477         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
22478         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
22479         * debug.c (do_nothing_debug_hooks): Likewise.
22480         (debug_nothing_uid): Remove.
22481         * doc/invoke.texi (-fenable-icf-debug): Remove.
22482         * common.opt (-fenable-icf-debug): Likewise.
22483
22484         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
22485         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
22486         call's MEM.  Handle functions returning aggregate through a hidden
22487         first pointer.  For virtual calls add clobbered pc to call arguments
22488         chain.
22489         * dwarf2out.c (gen_subprogram_die): Emit
22490         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
22491         can't be emitted.
22492
22493         PR debug/45882
22494         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
22495         * rtl.h (ENTRY_VALUE_EXP): Define.
22496         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
22497         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
22498         * print-rtl.c (print_rtx): Likewise.
22499         * gengtype.c (adjust_field_rtx_def): Likewise.
22500         * var-tracking.c (vt_add_function_parameter): Adjust
22501         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
22502         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
22503         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
22504         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
22505         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
22506
22507         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
22508         Call var_location debug hook even on CALL_INSNs.
22509         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
22510         * rtl.def (ENTRY_VALUE): New.
22511         * dwarf2out.c: Include cfglayout.h.
22512         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
22513         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
22514         (struct call_arg_loc_node): New type.
22515         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
22516         tail_call_site_count): New variables.
22517         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
22518         DW_TAG_GNU_call_site_parameter.
22519         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
22520         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
22521         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
22522         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
22523         and DW_AT_GNU_all_source_call_sites.
22524         (mem_loc_descriptor): Handle ENTRY_VALUE.
22525         (add_src_coords_attributes): Don't add enything if
22526         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
22527         (dwarf2out_abstract_function): Save and clear call_arg_location,
22528         call_site_count and tail_call_site_count around dwarf2out_decl call.
22529         (gen_call_site_die): New function.
22530         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
22531         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
22532         (dwarf2out_function_decl): Clear call_arg_locations,
22533         call_arg_loc_last, set call_site_count and tail_call_site_count
22534         to -1 and free block_map.
22535         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
22536         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
22537         followed by any real instructions.
22538         (dwarf2out_begin_function): Set call_site_count and
22539         tail_call_site_count to 0.
22540         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
22541         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
22542         attempt to force a DIE for it and worst case remove the attribute.
22543         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
22544         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
22545         the decl itself.
22546         * var-tracking.c: Include tm_p.h.
22547         (vt_stack_adjustments): For calls call note_register_arguments.
22548         (argument_reg_set): New variable.
22549         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
22550         ensure the VALUE is resolved.
22551         (call_arguments): New variable.
22552         (prepare_call_arguments): New function.
22553         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
22554         (struct expand_loc_callback_data): Add ignore_cur_loc field.
22555         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
22556         always use the best expression.
22557         (vt_expand_loc): Add ignore_cur_loc argument.
22558         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
22559         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
22560         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
22561         note for all calls.
22562         (vt_add_function_parameter): Use cselib_lookup_from_insn.
22563         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
22564         argument.  Don't call cselib_preserve_only_values and
22565         cselib_reset_table.
22566         (note_register_arguments): New function.
22567         (vt_initialize): Compute argument_reg_set.  Call
22568         vt_add_function_parameters before processing basic blocks instead of
22569         afterwards.  For calls call prepare_call_arguments before calling
22570         cselib_process_insn.
22571         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
22572         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
22573         (var-tracking.o): Depend on $(TM_P_H).
22574         * cfglayout.h (insn_scope): New prototype.
22575         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
22576         * cfglayout.c (insn_scope): No longer static.
22577         * insn-notes.def (CALL_ARG_LOCATION): New.
22578         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
22579         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
22580         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
22581         nothing for DECL_EXTERNAL BLOCK_VARS.
22582
22583 2011-03-16  Alan Modra  <amodra@gmail.com>
22584
22585         PR target/45844
22586         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
22587         create invalid offset address for vsx splat insn.
22588         * config/rs6000/predicates.md (splat_input_operand): New.
22589         * config/rs6000/vsx.md (vsx_splat_*): Use it.
22590
22591 2011-03-15  Xinliang David Li  <davidxl@google.com>
22592
22593         PR c/47837
22594         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
22595         (normalize_preds): New function.
22596         (is_use_properly_guarded): Normalize def predicates.
22597
22598 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22599
22600         PR target/46788
22601         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
22602         in the output template.
22603
22604 2011-03-15  Richard Guenther  <rguenther@suse.de>
22605
22606         PR middle-end/47650
22607         * tree-pretty-print.c (dump_function_declaration): Properly
22608         dump unprototyped and varargs function types.
22609
22610 2011-03-15  Richard Guenther  <rguenther@suse.de>
22611
22612         PR tree-optimization/13954
22613         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
22614         and friends.
22615
22616 2011-03-15  Richard Guenther  <rguenther@suse.de>
22617
22618         PR tree-optimization/48037
22619         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
22620         selects into BIT_FIELD_REFs.
22621         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
22622         vector select.
22623
22624 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
22625
22626         PR tree-optimization/48129
22627         * builtins.c (fold_builtin_snprintf): Convert to type of
22628         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
22629         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
22630
22631 2011-03-15  Richard Guenther  <rguenther@suse.de>
22632
22633         PR tree-optimization/41490
22634         * tree-ssa-dce.c (propagate_necessity): Handle returns without
22635         value but with VUSE.
22636         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
22637         return statements.
22638         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
22639         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
22640         * tree-tailcall.c (find_tail_calls): Ignore returns.
22641
22642 2011-03-15  Richard Guenther  <rguenther@suse.de>
22643
22644         PR middle-end/48031
22645         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
22646         or variable-indexed array accesses when in gimple form.
22647
22648 2011-03-15  Richard Guenther  <rguenther@suse.de>
22649
22650         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
22651
22652 2011-03-15  Alan Modra  <amodra@gmail.com>
22653
22654         PR target/48032
22655         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
22656         presume symbol_refs without a symbol_ref_decl are suitably
22657         aligned, nor other trees we may see here.  Handle anchor symbols.
22658         (legitimate_constant_pool_address_p): Comment.  Add mode param.
22659         Check cmodel=medium addresses.  Adjust all calls.
22660         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
22661         creating cmodel=medium optimized access to locals.
22662         * config/rs6000/constraints.md (R): Pass QImode to
22663         legitimate_constant_pool_address_p.
22664         * config/rs6000/predicates.md (input_operand): Pass mode to
22665         legitimate_constant_pool_address_p.
22666         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
22667         Update prototype.
22668
22669 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
22670
22671         PR target/48053
22672         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
22673         64-bit constants being loaded into registers other than GPRs such
22674         as loading 0 into a VSX register.
22675
22676 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22677
22678         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
22679
22680 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
22681
22682         PR middle-end/47917
22683         * builtins.c (fold_builtin_snprintf): New function.
22684         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
22685         (fold_builtin_4): Likewise.
22686
22687         PR middle-end/38878
22688         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
22689         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
22690         and C - X == X also strip nops from +/-/p+ operand.
22691         When optimizing -X == C, fold C to arg0's type.
22692
22693         PR debug/47946
22694         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
22695         emit it as add_AT_int instead of add_AT_unsigned.
22696
22697 2011-03-14  Tom Tromey  <tromey@redhat.com>
22698
22699         * unwind-dw2.c: Include sys/sdt.h if it exists.
22700         (_Unwind_DebugHook): Use STAP_PROBE2.
22701         * config.in, configure: Rebuild.
22702         * configure.ac: Check for sys/sdt.h.
22703
22704 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
22705
22706         * config/i386/i386.md (ROUND_FLOOR): New constant.
22707         (ROUND_CEIL): Ditto.
22708         (ROUND_TRUNC): Ditto.
22709         (ROUND_MXCSR): Ditto.
22710         (ROUND_NO_EXC): Ditto.
22711         (rint<mode>2): Use new defines instead of numerical constants.
22712         (floor<mode>2): Ditto.
22713         (ceil<mode>2): Ditto.
22714         (btrunc<mode>2): Ditto.
22715         * config/i386/i386-builtin-types.def: Define ROUND function type
22716         aliases.
22717         * config/i386/i386.c (enum ix86_builtins): Add
22718         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
22719         (struct builtin_description): Add
22720         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
22721         (ix86_expand_sse_round): New static function.
22722         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
22723         function types.
22724         (ix86_builtin_vectorized_function): Handle
22725         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
22726
22727 2011-03-14  Tom Tromey  <tromey@redhat.com>
22728
22729         * c-parser.c (c_parser_asm_string_literal): Clear
22730         warn_overlength_strings.
22731
22732 2011-03-14  Tom Tromey  <tromey@redhat.com>
22733
22734         * c-parser.c (disable_extension_diagnostics): Save
22735         warn_overlength_strings.
22736         (restore_extension_diagnostics): Restore warn_overlength_strings.
22737
22738 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
22739
22740         * BASE-VER: Change to 4.7.0.
22741
22742 2011-03-14  Richard Guenther  <rguenther@suse.de>
22743
22744         PR middle-end/48098
22745         * tree.c (build_vector_from_val): Adjust assert to requirements
22746         and reality.
22747
22748 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
22749
22750         PR bootstrap/48102
22751         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
22752
22753 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
22754
22755         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
22756         terms of target_flags_explicit. Adjust copyright year.
22757
22758         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
22759         * config/rs6000/t-freebsd: New file. Add override for
22760         LIB2FUNCS_EXTRA.
22761
22762 2011-03-13  Chris Demetriou  <cgd@google.com>
22763
22764         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
22765         (-fno-diagnostics-show-option): this, to reflect current default.
22766         (-Werror=): Update text about -fno-diagnostics-show-option.
22767
22768 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
22769
22770         PR target/48053
22771         * config/rs6000/predicates.md (easy_vector_constant_add_self,
22772         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
22773         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
22774         mode is not V2DImode or V2DFmode.
22775         (vspltis_constant): Do not handle V2DImode and V2DFmode.
22776         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
22777         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
22778         registers to 0.
22779         (movdi_internal64): Likewise.
22780
22781 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
22782
22783         PR tree-optimization/47127
22784         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
22785         parameter.
22786         (set_cloog_options): Same.
22787         (scop_to_clast): Same.
22788         (print_clast_stmt): Do not call cloog_state_malloc and
22789         cloog_state_free.
22790         (print_generated_program): Same.
22791         (gloog): Same.
22792         * graphite-clast-to-gimple.h (cloog_state): Declared.
22793         (scop_to_clast): Adjust declaration.
22794         * graphite.c (cloog_state): Defined here.
22795         (graphite_initialize): Call cloog_state_malloc.
22796         (graphite_finalize): Call cloog_state_free.
22797
22798 2011-03-11  Jason Merrill  <jason@redhat.com>
22799
22800         * attribs.c (lookup_attribute_spec): Take const_tree.
22801         * tree.h: Adjust.
22802
22803 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
22804
22805         * config/sparc/sparc.c (sparc_option_override): Use
22806         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
22807
22808 2011-03-11  Richard Guenther  <rguenther@suse.de>
22809
22810         PR tree-optimization/48067
22811         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
22812         multiplication result will be only used once on the target
22813         stmt.
22814
22815 2011-03-11  Richard Guenther  <rguenther@suse.de>
22816
22817         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
22818
22819 2011-03-11  Richard Guenther  <rguenther@suse.de>
22820
22821         PR lto/48073
22822         * tree.c (find_decls_types_r): Do not walk types only reachable
22823         from IDENTIFIER_NODEs.
22824
22825 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
22826
22827         PR middle-end/48044
22828         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
22829         all vnode->force_output nodes as needed.
22830
22831 2011-03-11  Jason Merrill  <jason@redhat.com>
22832
22833         PR c++/48069
22834         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
22835         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
22836
22837 2011-03-11  Martin Jambor  <mjambor@suse.cz>
22838
22839         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
22840         cgraph_node.
22841
22842 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
22843
22844         PR tree-optimization/48063
22845         * ipa-inline.c (cgraph_decide_inlining): Don't try to
22846         inline functions called once if !tree_can_inline_p (node->callers).
22847
22848 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
22849
22850         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
22851         extra_objs.
22852         * config/score/score3.c: Delete.
22853         * config/score/score3.h: Delete.
22854         * config/score/mul-div.S: Delete.
22855         * config/score/sfp-machine.h: Add new file.
22856         * config/score/constraints.md: Add new file.
22857         * config/score/t-score-softfp: Add new file.
22858         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
22859         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
22860         (score7_extra_constraint): Delete.
22861         (score7_option_override): Remove unused code.
22862         * config/score/score.c: Remove score3 and score5 define and code.
22863         * config/score/score.h: Remove score3 and score5 define and code.
22864         * config/score/score.md: Remove score3 template and unusual insn.
22865         * config/score/score.opt: Remove score3 and score5 options.
22866
22867 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22868
22869         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
22870         when _HPUX_SOURCE is defined.
22871         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
22872
22873 2011-03-10  Jason Merrill  <jason@redhat.com>
22874
22875         PR c++/48029
22876         * stor-layout.c (layout_type): Don't set structural equality
22877         on arrays of incomplete type.
22878         * tree.c (type_hash_eq): Handle comparing them properly.
22879
22880 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
22881
22882         PR debug/48043
22883         * config/s390/s390.c (s390_delegitimize_address): Make sure the
22884         result mode matches original rtl mode.
22885
22886 2011-03-10  Nick Clifton  <nickc@redhat.com>
22887
22888         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
22889         (andsi3, andsi3_flags): Fix timings for three operand alternative.
22890
22891 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
22892
22893         PR rtl-optimization/47866
22894         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
22895         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
22896         if target wasn't scalar.
22897         * function.c (assign_stack_temp_for_type): Assert that neither
22898         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
22899         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
22900         macro.
22901         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
22902
22903 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22904
22905         * config/s390/s390-protos.h (s390_label_align): New prototype.
22906         * config/s390/s390.c (s390_label_align): New function.
22907         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
22908
22909 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
22910
22911         PR target/47755
22912         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
22913         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
22914         (output_vec_const_move): Ditto.
22915
22916 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
22917
22918         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
22919         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
22920         * config/mips/mips.c (mips_preferred_reload_class): Make static.
22921         Change 'rclass' argument and result type to reg_class_t.
22922         (TARGET_PREFERRED_RELOAD_CLASS): Define.
22923
22924 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
22925
22926         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
22927         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
22928         (TARGET_MEMORY_MOVE_COST): Define.
22929         (avr_register_move_cost, avr_memory_move_cost): New Functions.
22930
22931 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
22932
22933         PR debug/47881
22934         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
22935         removed anything.
22936
22937         PR tree-optimization/48022
22938         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
22939         for EQ/NE_EXPR.
22940
22941 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
22942
22943         PR debug/47991
22944         * var-tracking.c (find_use_val): Return NULL for
22945         cui->sets && cui->store_p BLKmode MEMs.
22946
22947 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
22948
22949         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
22950         Remove.
22951         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
22952         xstormy16_print_operand_address): Remove.
22953         * config/stormy16/stormy16.c (xstormy16_print_operand,
22954         xstormy16_print_operand_address): Make static.
22955         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22956
22957 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
22958
22959         PR target/47862
22960         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
22961         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
22962         before definition.
22963
22964 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
22965
22966         PR bootstrap/48000
22967         * cfgloopmanip.c (fix_bb_placements): Return immediately
22968         if FROM is BASE_LOOP's header.
22969
22970 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
22971
22972         * gimplify.c (gimplify_function_tree): Fix building calls
22973         to __builtin_return_address.
22974
22975 2011-03-07  Alan Modra  <amodra@gmail.com>
22976
22977         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
22978         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
22979         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
22980         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
22981         return_mode args.
22982         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
22983         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
22984         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
22985         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
22986         * config/rs6000/rs6000.c
22987         (rs6000_elf_end_indicate_exec_stack): Rename to..
22988         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
22989         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
22990         (rs6000_file_start): ..here.
22991         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
22992         file scope variables.
22993         (call_ABI_of_interest): New function.
22994         (init_cumulative_args): Set above vars when function return value
22995         is a float, vector, or small struct.
22996         (rs6000_function_arg_advance_1): Likewise for function args.
22997         (rs6000_va_start): Set rs6000_passes_float if variable arg function
22998         references float args.
22999
23000 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
23001
23002         * doc/cfg.texi: Remove "See" before @ref.
23003         * doc/invoke.texi: Likewise.
23004
23005 2011-03-05  Jason Merrill  <jason@redhat.com>
23006
23007         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
23008
23009 2011-03-05  Anthony Green  <green@moxielogic.com>
23010
23011         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
23012
23013 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
23014
23015         PR rtl-optimization/47899
23016         * cfgloopmanip.c (fix_bb_placements): Fix first argument
23017         to flow_loop_nested_p when moving the loop upward.
23018
23019 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
23020
23021         PR target/47719
23022         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
23023
23024 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
23025
23026         PR tree-optimization/47967
23027         * ipa-cp.c (build_const_val): Return NULL instead of creating
23028         VIEW_CONVERT_EXPR for mismatching sizes.
23029         (ipcp_create_replace_map): Return NULL if build_const_val failed.
23030         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
23031         give up on versioning.
23032
23033 2011-03-05  Alan Modra  <amodra@gmail.com>
23034
23035         PR target/47986
23036         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
23037         full cmodel medium/large lo_sum + high addresses.
23038
23039 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23040
23041         * config/s390/s390.c (s390_decompose_address): Reject non-literal
23042         pool references in UNSPEC_LTREL_OFFSET.
23043
23044 2011-03-04  Jan Hubicka  <jh@suse.cz>
23045
23046         PR lto/47497
23047         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
23048         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
23049         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
23050         Add node pointers.
23051         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
23052         cgraph_add_thunk): Add node pointers.
23053         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
23054         associated to right node.
23055         (input_node): Update use of cgraph_same_body_alias
23056         and cgraph_add_thunk.
23057
23058 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
23059
23060         * config/i386/i386.opt (mprefer-avx128): New flag.
23061         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
23062         modes when the flag -mprefer-avx128 is on.
23063
23064 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
23065
23066         * dwarf2out.c (compare_loc_operands): Fix address handling.
23067
23068 2011-03-04  Alan Modra  <amodra@gmail.com>
23069
23070         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
23071
23072 2011-03-04  Richard Guenther  <rguenther@suse.de>
23073
23074         PR middle-end/47968
23075         * expmed.c (extract_bit_field_1): Prefer vector modes that
23076         vec_extract patterns can handle.
23077
23078 2011-03-04  Richard Guenther  <rguenther@suse.de>
23079
23080         PR middle-end/47975
23081         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
23082
23083 2011-03-04  Richard Henderson  <rth@redhat.com>
23084
23085         * explow.c (emit_stack_save): Remove 'after' parameter.
23086         (emit_stack_restore): Likewise.
23087         * expr.h: Update to match.
23088         * builtins.c, calls.c, stmt.c: Likewise.
23089         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
23090         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
23091         * function.c (expand_function_end): Insert the emit_stack_save
23092         sequence before parm_birth_insn instead of after.
23093
23094 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
23095
23096         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
23097         (ssse3_pmaddubsw128): Ditto.
23098         (ssse3_pmaddubsw): Ditto.
23099
23100 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
23101
23102         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
23103
23104 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
23105
23106         PR c/47963
23107         * gimplify.c (omp_add_variable): Only call omp_notice_variable
23108         on TYPE_SIZE_UNIT if it is a DECL.
23109
23110         PR debug/47283
23111         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
23112         first operand is not is_gimple_mem_ref_addr, try to fold it.
23113         If the operand still isn't is_gimple_mem_ref_addr, clear
23114         MEM_EXPR on op0.
23115
23116 2011-03-03  Richard Guenther  <rguenther@suse.de>
23117
23118         PR middle-end/47283
23119         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
23120         match comment.
23121         (refs_may_alias_p_1): For release branches return true if
23122         we are confused by our input.
23123
23124 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23125
23126         * config/s390/s390.c (s390_function_value): Rename to ...
23127         (s390_function_and_libcall_value): ... this.
23128         (s390_function_value): New function.
23129         (s390_libcall_value): New function.
23130         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
23131         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
23132         target macro definitions.
23133         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
23134
23135 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
23136
23137         * config/i386/freebsd64.h (CC1_SPEC): Define.
23138         * config/i386/linux64.h (CC1_SPEC): Define.
23139         * config/i386/x86-64.h (CC1_SPEC): Don't define.
23140
23141 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
23142
23143         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
23144         Remove.
23145         * config/stormy16/stormy16.c: Include reload.h.
23146         (xstormy16_memory_move_cost): New function.
23147         (TARGET_MEMORY_MOVE_COST): Define.
23148
23149 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
23150
23151         PR rtl-optimization/47925
23152         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
23153         with side effects.  Remove the more-specific check for volatile asms.
23154
23155 2011-03-02  Alan Modra  <amodra@gmail.com>
23156
23157         PR target/47935
23158         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
23159         toc relative addresses for valid offsets.
23160
23161 2011-03-01  Richard Guenther  <rguenther@suse.de>
23162
23163         PR tree-optimization/47890
23164         * tree-vect-loop.c (get_initial_def_for_induction): Set
23165         related stmt properly.
23166
23167 2011-03-01  Richard Guenther  <rguenther@suse.de>
23168
23169         PR lto/47924
23170         * lto-streamer.c (lto_record_common_node): Also register
23171         the canonical type.
23172
23173 2011-03-01  Richard Guenther  <rguenther@suse.de>
23174
23175         PR lto/46911
23176         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
23177         Do not stream DECL_ABSTRACT_ORIGIN.
23178         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
23179         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
23180         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23181         Do not stream DECL_ABSTRACT_ORIGIN.
23182         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
23183         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
23184
23185 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
23186
23187         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
23188         FUNCTION_VALUE_REGNO_P): Remove.
23189         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
23190         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
23191         Add 'outgoing' argument.
23192         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
23193         function.
23194         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23195         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23196
23197 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
23198
23199         PR debug/28047
23200         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
23201         (lookup_filename): Likewise.
23202         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
23203
23204 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
23205             Jakub Jelinek  <jakub@redhat.com>
23206
23207         PR middle-end/47893
23208         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
23209         (assign_stack_local_1): Change last argument type to int.
23210         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
23211         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
23212         don't record padding space into frame_space_list nor use those areas.
23213         (assign_stack_local): Adjust caller.
23214         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
23215         of assign_stack_local, pass 0 as last argument.
23216         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
23217         callers.
23218
23219 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
23220
23221         PR debug/47283
23222         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
23223         Use target address_mode and pointer_mode hooks instead of hardcoded
23224         Pmode and ptr_mode.  Handle some simple cases of extending if
23225         POINTERS_EXTEND_UNSIGNED < 0.
23226         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
23227         Call convert_debug_memory_address.
23228         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
23229         convert_debug_memory_address.
23230
23231         PR middle-end/46790
23232         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
23233         * configure: Regenerated.
23234         * config.in: Regenerated.
23235         * varasm.c (default_function_section): Return NULL
23236         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
23237
23238 2011-02-28  Martin Jambor  <mjambor@suse.cz>
23239
23240         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
23241         the description to match the printed values.
23242
23243 2011-02-28  Richard Guenther  <rguenther@suse.de>
23244
23245         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
23246         of the copied scope tree.
23247
23248 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23249
23250         * doc/extend.texi (Function Attributes): Avoid deeply (and
23251         wrongly) nested tables.
23252
23253 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
23254
23255         PR middle-end/47903
23256         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
23257         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
23258         r isn't op0 nor op1.
23259
23260 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
23261
23262         * config/avr/avr.md: Remove magic comment for emacs.
23263
23264 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
23265
23266         PR target/45261
23267         * config/avr/avr.c (avr_option_override): Use error on bad options.
23268         (avr_help): New function.
23269         (TARGET_HELP): Define.
23270
23271 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
23272
23273         PR target/42240
23274         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
23275         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
23276
23277 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
23278
23279         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
23280         (ARM Options): Ditto.
23281         (i386 and x86-64 Options): Ditto.
23282         (RX Options): Ditto.
23283         (SPARC Options): Ditto.
23284
23285 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
23286
23287         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
23288         FreeBSD 6 and later.  Generally use cpu generic.
23289
23290 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
23291
23292         * doc/cpp.texi: Update copyright years.
23293
23294 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
23295
23296         PR target/46898
23297         * config/lm32/lm32.md (ashrsi3): Added needed variable.
23298
23299 2011-02-25  Jon Beniston  <jon@beniston.com>
23300
23301         PR target/46898
23302         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
23303         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
23304         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
23305         (lm32_block_move_inline): Add type cast to remove warning.
23306         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
23307         (gen_int_relational): Move declarations to start of function.
23308
23309 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
23310
23311         PR tree-optimization/45470
23312         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
23313         can throw internally only.
23314         * tree-vect-stmts.c (vectorizable_call): Likewise.
23315
23316 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
23317
23318         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
23319         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
23320         * config/stormy16/stormy16-protos.h
23321         (xstormy16_preferred_reload_class): Remove.
23322         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
23323         static. Change 'rclass' argument and return type to reg_class_t.
23324         (TARGET_PREFERRED_RELOAD_CLASS,
23325         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
23326
23327 2011-02-24  Richard Guenther  <rguenther@suse.de>
23328
23329         * lto-streamer-in.c (input_bb): Do not find referenced vars
23330         in debug statements.
23331
23332 2011-02-23  Jason Merrill  <jason@redhat.com>
23333
23334         * common.opt (fabi-version): Document v5 and v6.
23335
23336 2011-02-23  Richard Guenther  <rguenther@suse.de>
23337
23338         PR tree-optimization/47849
23339         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
23340
23341 2011-02-23  Jie Zhang  <jie@codesourcery.com>
23342
23343         * opts-common.c (decode_cmdline_option): Print empty string
23344         argument as "" in decoded->orig_option_with_args_text.
23345         * gcc.c (execute): Print empty string argument as ""
23346         in the verbose output.
23347         (do_spec_1): Keep empty string argument.
23348
23349 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
23350
23351         * config.gcc: Declare score-* and crx-* obsolete.
23352
23353 2011-02-23  Jie Zhang  <jie@codesourcery.com>
23354
23355         PR rtl-optimization/47763
23356         * web.c (web_main): Ignore naked clobber when replacing register.
23357
23358 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
23359
23360         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
23361         Remove.
23362
23363 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
23364
23365         PR doc/47848
23366         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
23367
23368 2011-02-22  Mike Stump  <mikestump@comcast.net>
23369
23370         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
23371         assembler.
23372         * configure: Regenerate.
23373
23374 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
23375
23376         PR rtl-optimization/46002
23377         * ira-color.c (update_copy_costs): Change class intersection
23378         test to reg_class_contents[] test of 'hard_regno'.
23379
23380 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
23381
23382         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
23383         than Driver option.
23384         * config/hpux11.opt (mt): Likewise.
23385         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
23386         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
23387         * config/vax/elf.opt (mno-asm-pic): Likewise.
23388         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
23389
23390 2011-02-21  Mike Stump  <mikestump@comcast.net>
23391
23392         PR target/47822
23393         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
23394         tree so we can get save the type.
23395         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
23396         for CFString instead of trying to use past the end of the builtins.
23397         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
23398         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
23399         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
23400         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
23401         Rename to darwin_builtin_cfstring.
23402         (darwin_init_cfstring_builtins): Return the built type.
23403
23404 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
23405
23406         PR target/47840
23407         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
23408         (_mm256_insert_epi64): Use _mm_insert_epi64.
23409
23410 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
23411
23412         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23413         * config/stormy16/stormy16-protos.h
23414         (xstormy16_mode_dependent_address_p): Remove.
23415         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
23416         Make static. Change return type to bool. Change argument type to
23417         const_rtx. Remove dead code.
23418         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23419
23420 2011-02-21  Richard Guenther  <rguenther@suse.de>
23421
23422         PR lto/47820
23423         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
23424         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
23425         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
23426         TUs context.
23427         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23428         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
23429
23430 2011-02-20  Richard Guenther  <rguenther@suse.de>
23431
23432         PR lto/47822
23433         * tree.c (free_lang_data_in_decl): Clean builtins from
23434         the TU decl BLOCK_VARS.
23435
23436 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
23437
23438         PR debug/47620
23439         PR debug/47630
23440         * haifa-sched.c (fix_tick_ready): Skip tick computation
23441         for debug insns.
23442
23443 2011-02-19  Richard Guenther  <rguenther@suse.de>
23444
23445         PR lto/47647
23446         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
23447         Remove lazy BLOCK_VARS streaming.
23448         (lto_input_ts_block_tree_pointers): Likewise.
23449         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
23450
23451 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
23452
23453         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
23454
23455 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
23456
23457         * config/i386/biarch32.h, config/i386/mach.h,
23458         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
23459
23460 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
23461
23462         PR target/47800
23463         * config/i386/i386.md (peephole2 for shift and plus): Use
23464         operands[1] original mode in the first insn.
23465
23466 2011-02-18  Mike Stump  <mikestump@comcast.net>
23467
23468         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
23469
23470 2011-02-18  Jan Hubicka  <jh@suse.cz>
23471
23472         PR middle-end/47788
23473         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
23474         to zero when the function is not inlinable at all.
23475
23476 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23477
23478         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
23479         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
23480         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
23481         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
23482         * config/pa/t-pa64: Likewise.
23483         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
23484
23485 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
23486
23487         PR driver/47787
23488         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
23489
23490 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23491
23492         PR target/47792
23493         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
23494
23495 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
23496
23497         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
23498         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
23499         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
23500         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23501         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
23502         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
23503         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
23504         m32r_load_postinc_p, m32r_store_preinc_predec_p,
23505         m32r_legitimate_address_p): New functions.
23506         * config/m32r/constraints.md (constraint "S"): Don't use
23507         STORE_PREINC_PREDEC_P.
23508         (constraint "U"): Don't use LOAD_POSTINC_P.
23509
23510 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
23511
23512         PR rtl-optimization/46178
23513         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
23514         compute ira_hard_regno_cover_class[].
23515
23516 2011-02-18  Richard Guenther  <rguenther@suse.de>
23517
23518         PR lto/47798
23519         * lto-streamer.h (lto_global_var_decls): Declare.
23520         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
23521         statics for global var processing.
23522
23523 2011-02-18  Richard Guenther  <rguenther@suse.de>
23524
23525         PR tree-optimization/47737
23526         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
23527         edge dominance check.
23528
23529 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
23530
23531         PR debug/47780
23532         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
23533         avoid invalid rtx sharing.
23534
23535 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
23536
23537         * doc/cpp.texi (Obsolete Features): Add background on the
23538         origin of assertions.
23539
23540 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
23541
23542         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23543         objc_abi == 2.
23544         * config/darwin.c (output_objc_section_asm_op): Added support for
23545         ABI v1 and v2.
23546         (is_objc_metadata): New.
23547         (darwin_objc2_section): New.
23548         (darwin_objc1_section): New.
23549         (machopic_select_section): Added support for ABI v1 and v2.
23550         (darwin_emit_objc_zeroed): New.
23551         (darwin_output_aligned_bss): Detect objc metadata and treat it
23552         appropriately.
23553         (darwin_asm_output_aligned_decl_common): Same.
23554         (darwin_asm_output_aligned_decl_local): Same.
23555         * config/darwin-sections.def: Updated for ABI v1 and v2.
23556         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
23557         compiling Objective-C code for the NeXT runtime, default to using
23558         ABI version 0 for 32-bit, and version 2 for 64-bit.
23559
23560 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23561
23562         * common.opt (optimize_fast): New Variable.
23563         * opts.c (default_options_optimization): Use opts->x_optimize_fast
23564         instead of local variable ofast.
23565
23566 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
23567
23568         * doc/invoke.texi (fobjc-abi-version): Documented.
23569         (fobjc-nilcheck): Documented.
23570         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
23571         version.
23572
23573 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23574
23575         PR driver/47390
23576         * common.opt (export-dynamic): New Driver option.
23577         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
23578
23579 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23580
23581         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
23582
23583 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
23584             Jan Hubicka  <jh@suse.cz>
23585
23586         PR debug/47106
23587         PR debug/47402
23588         * cfgexpand.c (account_used_vars_for_block): Remove.
23589         (estimated_stack_frame_size): Use referenced vars.
23590         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
23591         that were referenced in the original function.  Test src_fn
23592         rather than cfun.  Drop redundant get_var_ann.
23593         (setup_one_parameter): Drop redundant get_var_ann.
23594         (declare_return_variable): Likewise.
23595         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
23596         (copy_arguments_for_versioning): Drop redundant get_var_ann.
23597         * ipa-inline.c (compute_inline_parameters): Do not compute
23598         disregard_inline_limits here.
23599         (compute_inlinable_for_current, pass_inlinable): New.
23600         (pass_inline_parameters): Require PROP_referenced_vars.
23601         * cgraphunit.c (cgraph_process_new_functions): Don't run
23602         compute_inline_parameters explicitly unless function is in SSA form.
23603         (cgraph_analyze_function): Set .disregard_inline_limits.
23604         * tree-sra.c (convert_callers): Compute inliner parameters
23605         only for functions already in SSA form.
23606
23607 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23608
23609         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
23610         -mlittle-endian-data.
23611
23612 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23613
23614         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
23615         -mno-fpu, not -fpu and -no-fpu.
23616         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
23617         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
23618
23619 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
23620
23621         PR target/43653
23622         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
23623         input reload with PLUS RTX.
23624
23625 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23626
23627         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
23628         of InverseVar(MDMX).
23629
23630 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23631
23632         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
23633         --m4-340.
23634
23635 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23636
23637         * config/mn10300/mn10300.opt (mno-crt0): New.
23638
23639 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23640
23641         * config/m68k/uclinux.opt (static-libc): New Driver option.
23642
23643 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23644
23645         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
23646
23647 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23648
23649         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
23650         %{muser-extend-enabled}.
23651
23652 2011-02-16  Richard Guenther  <rguenther@suse.de>
23653
23654         PR tree-optimization/47738
23655         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
23656         the TODO from tree_predictive_commoning.
23657
23658 2011-02-15  Jeff Law  <law@redhat.com>
23659
23660         Revert
23661         2011-01-25  Jeff Law  <law@redhat.com>
23662
23663         PR rtl-optimization/37273
23664         * ira-costs.c (scan_one_insn): Detect constants living in memory and
23665         handle them like argument loads from stack slots.  Do not double
23666         count memory for memory constants and argument loads from stack slots.
23667
23668 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
23669
23670         PR target/47755
23671         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
23672         mode for vector constants.  Remove code that checks for TImode.
23673
23674 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
23675
23676         PR debug/47106
23677         PR debug/47402
23678         * cgraph.h (compute_inline_parameters): Return void.
23679         * ipa-inline.c (compute_inline_parameters): Adjust.
23680
23681 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
23682
23683         PR debug/47106
23684         PR debug/47402
23685         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
23686         rather than decl.
23687         * cfgexpand.c (estimated_stack_frame_size): Likewise.
23688         * ipa-inline.c (compute_inline_parameters): Adjust.
23689
23690 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
23691
23692         PR debug/47106
23693         PR debug/47402
23694         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
23695         Adjust all users.  Pass FN to...
23696         * tree-flow-inline.h (first_referenced_var): ... this.  Add
23697         fn argument.
23698         * ipa-struct-reorg.c: Adjust.
23699         * tree-dfa.c: Adjust.
23700         * tree-into-ssa.c: Adjust.
23701         * tree-sra.c: Adjust.
23702         * tree-ssa-alias.c: Adjust.
23703         * tree-ssa-live.c: Adjust.
23704         * tree-ssa.c: Adjust.
23705         * tree-ssanames.c: Adjust.
23706         * tree-tailcall.c: Adjust.
23707
23708 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
23709
23710         PR debug/47106
23711         PR debug/47402
23712         * tree-flow.h (referenced_var_lookup): Add fn parameter.
23713         Adjust all callers.
23714         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
23715         * tree-flow-inline.h: Adjust.
23716         * gimple-pretty-print.c: Adjust.
23717         * tree-into-ssa.c: Adjust.
23718         * tree-ssa.c: Adjust.
23719         * cfgexpand.c: Adjust.
23720
23721 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
23722
23723         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
23724         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23725         (EXTRA_CONSTRAINT): Delete.
23726         * config/iq2000/constraints.md: New file.
23727         * config/iq2000/iq2000.md: Include it.
23728         (define_insn ""): Delete.
23729         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
23730         unsupported constraint letters from patterns.
23731         (call_value, call_value_internal1): Likewise.
23732         (call_value_multiple_internal1): Likewise.
23733
23734 2011-02-15  Nick Clifton  <nickc@redhat.com>
23735
23736         * config/mn10300/mn10300.c: Include tm-constrs.h.
23737         (struct liw_data): New data structure describing an LIW candidate
23738         instruction.
23739         (extract_bundle): Use struct liw_data.  Allow small integer
23740         operands for some instructions.
23741         (check_liw_constraints): Use struct liw_data.  Remove swapped
23742         parameter.  Add comments describing the checks.  Fix bug when
23743         assigning the source of liw1 to the source of liw2.
23744         (liw_candidate): Delete.  Code moved into extract_bundle.
23745         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
23746         before swapping.
23747         * config/mn10300/predicates.md (liw_operand): New predicate.
23748         Allows registers and small integer constants.
23749         * config/mn10300/constraints.md (O): New constraint.  Accetps
23750         integers in the range -8 to +7 inclusive.
23751         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
23752         for moving a small integer into a register.  Give this alternative
23753         LIW attributes.
23754         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
23755         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
23756         using the J,K,L and M constraints,
23757         (liw): Remove SI mode on second operands to allow for HI and QI
23758         mode values.
23759         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
23760         instruction.
23761
23762 2011-02-15  Richard Guenther  <rguenther@suse.de>
23763
23764         PR tree-optimization/47743
23765         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
23766         for a non-type-compatible VN lookup bail out.
23767
23768 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
23769
23770         * config/fr30/constraints.md: New file.
23771         * config/fr30/fr30.md: Include it.
23772         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
23773         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23774         (EXTRA_CONSTRAINT): Delete.
23775
23776 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
23777
23778         * config/frv/constraints.md: New file.
23779         * config/frv/predicates.md: Include it.
23780         * config/frv/frv.c (reg_class_from_letter): Delete.
23781         (frv_option_override): Don't initialize it.
23782         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
23783         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
23784         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
23785         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
23786         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
23787         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23788         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
23789         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
23790         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
23791         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
23792         (REG_CLASS_FROM_CONSTRAINT): Delete.
23793
23794 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
23795
23796         PR middle-end/47581
23797         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
23798         if frame size is 0 in a leaf function.
23799
23800 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23801
23802         PR pch/14940
23803         * config/alpha/host-osf.c: New file.
23804         * config/alpha/x-osf: New file.
23805         * config.host (alpha*-dec-osf*): Use it.
23806
23807 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
23808
23809         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23810         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
23811         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
23812         (rx_mode_dependent_address_p): ...this. Make static. Change argument
23813         type to const_rtx.
23814         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23815
23816 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
23817
23818         * config/stormy16/constraints.md: New file.
23819         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
23820         Use satisfies_constraint_Q and satisfies_constraint_R.
23821         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
23822         Delete.
23823         (xstormy16_legitiamte_address_p): Declare.
23824         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
23825         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23826         (EXTRA_CONSTRAINT): Delete.
23827         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
23828         Un-staticize.
23829         (xstormy16_extra_constraint_p): Delete.
23830
23831 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
23832
23833         PR tree-optimization/46494
23834         * loop-unroll.c (split_edge_and_insert): Adjust comment.
23835         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
23836         (pass_rtl_loop_done): Add TODO_verify_flow.
23837         * fwprop.c (pass_rtl_fwprop): Likewise.
23838         * modulo-sched.c (pass_sms): Likewise.
23839         * tree-ssa-dom.c (pass_dominator): Likewise.
23840         * tree-ssa-loop-ch.c (pass_ch): Likewise.
23841         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
23842         (pass_tree_loop_done): Likewise.
23843         * tree-ssa-pre.c (execute_pre): Likewise.
23844         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
23845         * tree-ssa-sink.c (pass_sink_code): Likewise.
23846         * tree-vrp.c (pass_vrp): Likewise.
23847
23848 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
23849
23850         * config/v850/constraints.md: New file.
23851         * config/v850/v850.md: Include it.
23852         * config/v850/predicates.md (reg_or_0_operand): Use
23853         satisfies_constraint_G.
23854         (special_symbolref_operand): Use satisfies_constraint_K.
23855         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
23856         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
23857         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
23858         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
23859         (EXTRA_CONSTRAINT): Delete.
23860         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
23861         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
23862         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
23863
23864 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
23865
23866         PR target/47696
23867         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
23868         description.
23869
23870 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
23871
23872         * config/mcore/constraints.md: New file.
23873         * config/mcore/mcore.md: Include it.
23874         * config/mcore/mcore.c (reg_class_from_letter): Delete.
23875         * config/mcore/mcore.h (reg_class_from_letter): Delete.
23876         (REG_CLASS_FROM_LETTER): Delete.
23877         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
23878         insn_const_int_ok_for_constraint.
23879         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
23880         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
23881         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23882         (EXTRA_CONSTRAINT): Delete.
23883
23884 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23885
23886         PR ada/41929
23887         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
23888         (IS_SIGHANDLER): Define.
23889         (sparc64_is_sighandler): New function, split off from
23890         sparc64_fallback_frame_state.
23891         (sparc_is_sighandler): New function, split off from
23892         sparc_fallback_frame_state.
23893         (sparc64_fallback_frame_state): Merge with ...
23894         (sparc_fallback_frame_state): ... this into ...
23895         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
23896         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
23897         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
23898         stack instead of hardcoded offsets.
23899
23900 2011-02-14  Andriy Gapon  <avg@freebsd.org>
23901
23902         PR target/45808
23903         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
23904
23905 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23906
23907         * configure: Regenerate.
23908
23909 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
23910
23911         PR driver/45731
23912         * gcc.c (asm_options): Correct spec matching --target-help.
23913
23914 2011-02-12  Martin Jambor  <mjambor@suse.cz>
23915
23916         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
23917         to gimple call error.
23918
23919 2011-02-12  Mike Stump  <mikestump@comcast.net>
23920
23921         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
23922         comments in backslash regions.
23923
23924 2011-02-12  Mike Stump  <mikestump@comcast.net>
23925             Jakub Jelinek  <jakub@redhat.com>
23926             Iain Sandoe  <iains@gcc.gnu.org>
23927
23928         PR target/47324
23929         * dwarf2out.c (output_cfa_loc): When required, apply the
23930         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
23931         (output_loc_sequence): Likewise.
23932         (output_loc_operands_raw): Likewise.
23933         (output_loc_sequence_raw): Likewise.
23934         (output_cfa_loc): Likewise.
23935         (output_loc_list): Suppress register number adjustment when
23936         calling output_loc_sequence()
23937         (output_die): Likewise.
23938
23939 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
23940
23941         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
23942         Remove macros.
23943         * config/xtensa/xtensa.c (xtensa_register_move_cost,
23944         xtensa_memory_move_cost): New functions.
23945         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
23946
23947 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
23948
23949         PR lto/47225
23950         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
23951         in the current directory.
23952         * configure: Rebuilt.
23953
23954 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
23955
23956         * config/darwin.c (darwin_override_options): Add a hunk missed
23957         from the commit of r168571.  Trim comment line lengths and
23958         correct indents of the preceding block.
23959
23960 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
23961
23962         * gcc.c (driver_handle_option): Concatenate the argument to -F with
23963         the switch.
23964
23965 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
23966
23967         * common.opt (nostartfiles): New Driver option.
23968
23969 2011-02-11  Xinliang David Li  <davidxl@google.com>
23970
23971         PR tree-optimization/47707
23972         * tree-chrec.c (convert_affine_scev): Keep type precision.
23973
23974 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
23975
23976         PR tree-optimization/47420
23977         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
23978
23979 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
23980
23981         PR rtl-optimization/47614
23982         * rtl.h (check_for_inc_dec): Declare.
23983         * dse.c (check_for_inc_dec): Externalize...
23984         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
23985         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
23986
23987 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
23988
23989         PR driver/47678
23990         * gcc.c (main): Do not compile inputs if there were errors in
23991         option handling.
23992         * opts-common.c (read_cmdline_option): Check for wrong language
23993         after other error checks.
23994
23995 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
23996
23997         * cgraph.c: Fix comment typos.
23998         * cgraph.h: Likewise.
23999         * cgraphunit.c: Likewise.
24000         * ipa-cp.c: Likewise.
24001         * ipa-inline.c: Likewise.
24002         * ipa-prop.c: Likewise.
24003         * ipa-pure-const.c: Likewise.
24004         * ipa-ref.c: Likewise.
24005         * ipa-reference.c: Likewise.
24006
24007 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
24008
24009         PR debug/47684
24010         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
24011
24012 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24013
24014         PR testsuite/47400
24015         * doc/sourcebuild.texi (Require Support): Document
24016         dg-require-ascii-locale.
24017
24018 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
24019
24020         * doc/lto.texi (Write summary): Fix missing parentheses.
24021
24022 2011-02-10  DJ Delorie  <dj@redhat.com>
24023
24024         * config/m32c/m32c.c (m32c_option_override): Disable
24025         -fcombine-stack-adjustments until flag value tracking and compare
24026         optimization can be rewritten.
24027
24028 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
24029
24030         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
24031         PROCESSOR_POWER7.
24032         (PROCESSOR_DEFAULT64): Likewise.
24033
24034 2011-02-10  Richard Henderson  <rth@redhat.com>
24035
24036         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
24037         change from 2011-02-03.
24038         * config/rx/rx.c (flags_from_code): Likewise.
24039         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
24040         is valid, n/pz otherwise.
24041         (rx_select_cc_mode): Return CCmode if Y is not zero.
24042
24043 2011-02-10  Richard Guenther  <rguenther@suse.de>
24044
24045         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
24046
24047 2011-02-10  Richard Guenther  <rguenther@suse.de>
24048
24049         PR tree-optimization/47677
24050         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
24051
24052 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
24053
24054         PR target/47665
24055         * combine.c (make_compound_operation): Only change shifts into
24056         multiplication for SCALAR_INT_MODE_P.
24057
24058 2011-02-10  Jie Zhang  <jie@codesourcery.com>
24059
24060         PR testsuite/47622
24061         Revert
24062         2011-02-05  Jie Zhang  <jie@codesourcery.com>
24063         PR debug/42631
24064         * web.c (entry_register): Don't clobber the number of the
24065         first uninitialized reference in used[].
24066
24067 2011-02-09  Richard Guenther  <rguenther@suse.de>
24068
24069         PR tree-optimization/47664
24070         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
24071         all edges again.
24072
24073 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
24074
24075         PR target/46481
24076         PR target/47032
24077         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
24078         PROCESSOR_POWER7.
24079         (PROCESSOR_DEFAULT64): Same.
24080         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
24081
24082 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24083
24084         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
24085
24086 2011-02-09  Martin Jambor  <mjambor@suse.cz>
24087
24088         PR middle-end/45505
24089         * tree-sra.c (struct access): New flags grp_scalar_read and
24090         grp_scalar_write.  Changed description of assignment read and write
24091         flags.
24092         (dump_access): Dump new flags, reorder all of them.
24093         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
24094         to detect multiple scalar reads.
24095         (analyze_access_subtree): Use the new scalar read write flags instead
24096         of the old flags.  Adjusted comments.
24097
24098 2011-02-08  DJ Delorie  <dj@redhat.com>
24099
24100         PR target/47548
24101         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
24102         patterns.
24103
24104 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24105
24106         * config/m68k/uclinux.opt: New.
24107         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
24108
24109 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24110
24111         * config/cris/elf.opt (sim): New Driver option.
24112
24113 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24114
24115         * config/xtensa/elf.opt: New.
24116         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
24117
24118 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24119
24120         * config/vax/elf.opt: New.
24121         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
24122
24123 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24124
24125         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
24126
24127 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24128
24129         * config/gnu-user.opt: New.
24130         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
24131         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
24132         *-*-uclinux*): Use gnu-user.opt.
24133
24134 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
24135
24136         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
24137         * config/i386/gnu.h (CPP_SPEC): Likewise.
24138
24139 2011-02-08  Ian Lance Taylor  <iant@google.com>
24140
24141         * common.opt (fcx-limited-range): Add SetByCombined flag.
24142         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
24143         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
24144         (fassociative-math, freciprocal-math): Likewise.
24145         (funsafe-math-optimizations): Likewise.
24146         * opth-gen.awk: Handle SetByCombined.
24147         * optc-gen.awk: Likewise.
24148         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
24149         (set_unsafe_math_optimizations_flags): Likewise.
24150         * doc/options.texi (Option properties): Document SetByCombined.
24151
24152 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24153
24154         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
24155         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
24156         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
24157         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
24158         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
24159
24160 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
24161
24162         PR tree-optimization/46834
24163         PR tree-optimization/46994
24164         PR tree-optimization/46995
24165         * graphite-sese-to-poly.c (used_outside_reduction): New.
24166         (detect_commutative_reduction): Call used_outside_reduction.
24167         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
24168         translate_scalar_reduction_to_array only when at least one
24169         loop-phi/close-phi tuple has been detected.
24170
24171 2011-02-08  Richard Guenther  <rguenther@suse.de>
24172
24173         PR middle-end/47639
24174         * tree-vect-generic.c (expand_vector_operations_1): Update
24175         stmts here ...
24176         (expand_vector_operations): ... not here.  Cleanup EH info
24177         and the CFG if required.
24178
24179 2011-02-08  Richard Guenther  <rguenther@suse.de>
24180
24181         PR tree-optimization/47641
24182         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
24183         require type compatibility.
24184
24185 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24186
24187         * gimple-low.c (lower_function_body): Don't remove the location of
24188         the return statement here.
24189         (lower_gimple_return): Do it here instead but only if the return
24190         statement is actually used twice.
24191
24192 2011-02-08  Richard Guenther  <rguenther@suse.de>
24193
24194         PR tree-optimization/47632
24195         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
24196         unused up_to_stmt parameter, return whether cfg-cleanup is
24197         necessary, remove EH info properly.
24198         (forward_propagate_into_gimple_cond): Adjust caller.
24199         (forward_propagate_into_cond): Likewise.
24200         (forward_propagate_comparison): Likewise.
24201         (tree_ssa_forward_propagate_single_use_vars): Make
24202         forward_propagate_comparison case similar to the two others.
24203
24204 2011-02-08  Nick Clifton  <nickc@redhat.com>
24205
24206         * config/mn10300/mn10300.opt (mliw): New command line option.
24207         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
24208         (liw_bundling): New automaton.
24209         (liw): New attribute.
24210         (liw_op): New attribute.
24211         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
24212         (movsi_internal): Add LIW attributes.
24213         (andsi3): Likewise.
24214         (iorsi3): Likewise.
24215         (xorsi3): Likewise.
24216         (addsi3): Separate register and immediate alternatives.
24217         Add LIW attributes.
24218         (subsi3): Likewise.
24219         (cmpsi): Likewise.
24220         (aslsi3): Likewise.
24221         (lshrsi3): Likewise.
24222         (ashrsi3): Likewise.
24223         (liw): New pattern.
24224         * config/mn10300/mn10300.c (liw_op_names): New
24225         (mn10300_print_operand): Handle 'W' operand descriptor.
24226         (extract_bundle): New function.
24227         (check_liw_constraints): New function.
24228         (liw_candidate): New function.
24229         (mn10300_bundle_liw): New function.
24230         (mn10300_reorg): New function.
24231         (TARGET_MACHINE_DEPENDENT_REORG): Define.
24232         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
24233         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
24234         __LIW__ or __NO_LIW__.
24235         * doc/invoke.texi: Describe the -mliw command line option.
24236
24237 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24238
24239         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
24240         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24241         pthread_mutex_unlock): Remove.
24242         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
24243         * config/pa/t-pa64: Likewise.
24244         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
24245         shared libc if not linking against libpthread.
24246         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
24247
24248 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
24249
24250         PR target/47558
24251         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
24252         on 10.6 and later to ensure that we always use the unwinder from
24253         the system.  Only add -no_compact_unwind when tarteting darwin
24254         10.6 or later.
24255
24256 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
24257
24258         PR target/46997
24259         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
24260         (vec_interleave_lowv2sf): Ditto.
24261         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
24262         (vec_extract_oddv2sf): Ditto.
24263
24264 2011-02-07  Mike Stump  <mikestump@comcast.net>
24265
24266         PR target/42333
24267         Add __ieee_divdc3 entry point.
24268         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
24269         entry point.
24270         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
24271         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
24272         * config/darwin.c (darwin_rename_builtins): Add.
24273         * config/darwin-protos.h (darwin_rename_builtins): Add.
24274
24275 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
24276
24277         PR target/47636
24278         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
24279         for the condition.
24280
24281 2011-02-07  Mike Stump  <mikestump@comcast.net>
24282
24283         * config/darwin.opt (mmacosx-version-min): Update default OS version.
24284
24285 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
24286
24287         PR target/47534
24288         * config/avr/libgcc.S (exit): Move .endfunc
24289
24290 2011-02-07  Richard Guenther  <rguenther@suse.de>
24291
24292         PR tree-optimization/47615
24293         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
24294         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
24295         (run_scc_vn): Initialize it.
24296         (visit_reference_op_load): Use it.
24297         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
24298
24299 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24300
24301         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
24302         DImode trapping arithmetic libfuncs.
24303
24304 2011-02-07  Richard Guenther  <rguenther@suse.de>
24305
24306         PR tree-optimization/47621
24307         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
24308         two duplicates ...
24309         (execute_update_addresses_taken): ... here.  Make it more
24310         conservative in what we accept.
24311
24312 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
24313
24314         * config/sparc/freebsd.h (ASM_SPEC): Define.
24315         * config/sparc/vxworks.h (ASM_SPEC): Define.
24316
24317 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
24318
24319         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
24320
24321 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
24322
24323         * doc/invoke.texi: Remove reference to compiler internals from
24324         user documentation.
24325
24326         * reg-notes.def: Remove REG_VALUE_PROFILE.
24327         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
24328
24329 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
24330
24331         PR middle-end/47610
24332         * varasm.c (default_section_type_flags): If decl is NULL,
24333         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
24334
24335 2011-02-05  Jie Zhang  <jie@codesourcery.com>
24336
24337         PR debug/42631
24338         * web.c (entry_register): Don't clobber the number of the
24339         first uninitialized reference in used[].
24340
24341 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
24342
24343         PR tree-optimization/46194
24344         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
24345         (build_classic_dist_vector_1): Do not represent classic distance
24346         vectors when the access functions are variating in different loops.
24347
24348 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
24349
24350         * config/mips/iris6.opt: New.
24351         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
24352
24353 2011-02-04  Richard Henderson  <rth@redhat.com>
24354             Steve Ellcey  <sje@cup.hp.com>
24355
24356         PR target/46997
24357         * config/ia64/predicates.md (mux1_brcst_element): New.
24358         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
24359         * config/ia64/ia64.c (ia64_unpack_assemble): New.
24360         (ia64_unpack_sign): New.
24361         (ia64_expand_unpack): Rewrite using new routines.
24362         (ia64_expand_widen_sum): Ditto.
24363         (ia64_expand_dot_prod_v8qi): Ditto.
24364         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
24365         routines, add endian check.
24366         (pmpy2_even): Rename from pmpy2_r, add endian check.
24367         (pmpy2_odd): Rename from pmpy2_l, add endian check.
24368         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
24369         (vec_widen_smult_hi_v4hi): Ditto.
24370         (vec_widen_umult_lo_v4hi): Ditto.
24371         (vec_widen_umult_hi_v4hi): Ditto.
24372         (mulv2si3): Change endian checks.
24373         (sdot_prodv4hi): Rewrite with new calls.
24374         (udot_prodv4hi): New.
24375         (vec_pack_ssat_v4hi): Add endian check.
24376         (vec_pack_usat_v4hi): Ditto.
24377         (vec_pack_ssat_v2si): Ditto.
24378         (max1_even): Rename from max1_r, add endian check.
24379         (max1_odd): Rename from max1_l, add endian check.
24380         (*mux1_rev): Format change.
24381         (*mux1_mix): Ditto.
24382         (*mux1_shuf): Ditto.
24383         (*mux1_alt): Ditto.
24384         (*mux1_brcst_v8qi): Use new predicate.
24385         (vec_extract_evenv8qi): Remove endian check.
24386         (vec_extract_oddv8qi): Ditto.
24387         (vec_interleave_lowv4hi): Format change.
24388         (vec_interleave_highv4hi): Ditto.
24389         (mix2_even): Rename from mix2_r, add endian check.
24390         (mix2_odd): Rename from mux2_l, add endian check.
24391         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
24392         (vec_extract_evenodd_helper): Format change.
24393         (vec_extract_evenv4hi): Remove endian check.
24394         (vec_extract_oddv4hi): Remove endian check.
24395         (vec_interleave_lowv2si): Format change.
24396         (vec_interleave_highv2si): Format change.
24397         (vec_initv2si): Remove endian check.
24398         (vecinit_v2si): Add endian check.
24399         (reduc_splus_v2sf): Add endian check.
24400         (reduc_smax_v2sf): Ditto.
24401         (reduc_smin_v2sf): Ditto.
24402         (vec_initv2sf): Remove endian check.
24403         (fpack): Add endian check.
24404         (fswap): Add endian check.
24405         (vec_interleave_highv2sf): Add endian check.
24406         (vec_interleave_lowv2sf): Add endian check.
24407         (fmix_lr): Add endian check.
24408         (vec_setv2sf): Format change.
24409         (*vec_extractv2sf_0_be): Use shift to extract operand.
24410         (*vec_extractv2sf_1_be): New.
24411         (vec_pack_trunc_v4hi): Add endian check.
24412         (vec_pack_trunc_v2si): Format change.
24413
24414 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
24415
24416         PR inline-asm/23200
24417         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
24418         do bb, locus and block comparison and disallow loads if it is not set.
24419         (stmt_is_replaceable_p): New function.
24420         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
24421         callers.
24422         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
24423         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
24424         SSA_NAME_DEF_STMT.
24425         * tree-flow.h (stmt_is_replaceable_p): New prototype.
24426
24427 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
24428
24429         * config/rs6000/xilinx.opt: New.
24430         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
24431
24432 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
24433
24434         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
24435
24436 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
24437
24438         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
24439         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
24440         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
24441         secondary_reload_info, xtensa_secondary_reload): Remove.
24442         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
24443         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
24444         (xtensa_preferred_reload_class): Make static. Change return and
24445         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
24446         Use CONST_DOUBLE_P predicate.
24447         (xtensa_preferred_output_reload_class): New function.
24448         (xtensa_secondary_reload): Make static.
24449
24450 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
24451
24452         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
24453         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
24454         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
24455
24456 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
24457
24458         PR middle-end/31490
24459         * output.h (SECTION_RELRO): Define.
24460         (SECTION_MACH_DEP): Adjust.
24461         (get_variable_section): New prototype.
24462         * varpool.c (varpool_finalize_named_section_flags): New function.
24463         (varpool_assemble_pending_decls): Call it.
24464         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
24465         * cgraphunit.c (cgraph_output_in_order): Call
24466         varpool_finalize_named_section_flags.
24467         * varasm.c (get_section): Allow section flags conflicts between
24468         relro and read-only sections if the section hasn't been declared yet.
24469         Set SECTION_OVERRIDE after diagnosing section type conflict.
24470         (get_variable_section): No longer static.
24471         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
24472         readonly sections that need relocations.
24473         (decl_readonly_section_1): New function.
24474         (decl_readonly_section): Use it.
24475
24476         Revert:
24477         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
24478                     Steve Ellcey  <sje@cup.hp.com>
24479
24480         PR middle-end/31490
24481         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
24482         if section attribute used.
24483
24484 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
24485
24486         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
24487         * config/darwin.c (SECTION_NO_ANCHOR): Define.
24488         (darwin_init_sections): Remove assertion.
24489
24490 2011-02-03  Nick Clifton  <nickc@redhat.com>
24491
24492         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
24493         lt and ge.
24494         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
24495         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
24496         instead of "n" and "pz".
24497         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
24498         CC_FLAG_S.
24499
24500 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
24501
24502         PR target/47312
24503         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
24504         fma, expand FMA_EXPR as fma{,f,l} call.
24505
24506         PR lto/47274
24507         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
24508         copy them into a unsigned char variable and pass address of it to
24509         lto_output_data_stream.
24510
24511         PR target/47564
24512         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
24513         around backend_init_target and lang_dependent_init_target calls.
24514         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
24515         (verify_cgraph_node): Don't call set_cfun here.  Use
24516         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
24517         Set error_found for incorrectly represented calls to thunks.
24518
24519 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
24520
24521         PR debug/43092
24522         PR rtl-optimization/43494
24523         * rtl.h (for_each_inc_dec_fn): New type.
24524         (for_each_inc_dec): Declare.
24525         * rtlanal.c (struct for_each_inc_dec_ops): New type.
24526         (for_each_inc_dec_find_inc_dec): New fn.
24527         (for_each_inc_dec_find_mem): New fn.
24528         (for_each_inc_dec): New fn.
24529         * dse.c (struct insn_size): Remove.
24530         (replace_inc_dec, replace_inc_dec_mem): Remove.
24531         (emit_inc_dec_insn_before): New fn.
24532         (check_for_inc_dec): Use it, along with for_each_inc_dec.
24533         (canon_address): Pass mem modes to cselib_lookup.
24534         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
24535         (cselib_lookup_from_insn): Likewise.
24536         (cselib_subst_to_values): Likewise.
24537         * cselib.c (find_slot_memmode): New var.
24538         (cselib_find_slot): New fn.  Use it instead of
24539         htab_find_slot_with_hash everywhere.
24540         (entry_and_rtx_equal_p): Use find_slot_memmode.
24541         (autoinc_split): New fn.
24542         (rtx_equal_for_cselib_p): Rename and implement in terms of...
24543         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
24544         Deal with autoinc.  Special-case recursion into MEMs.
24545         (cselib_hash_rtx): Likewise.
24546         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
24547         address and MEM modes.
24548         (cselib_subst_to_values): Add memmode, pass it on.
24549         Deal with autoinc.
24550         (cselib_lookup): Add memmode argument, pass it on.
24551         (cselib_lookup_from_insn): Add memmode.
24552         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
24553         (struct cselib_record_autoinc_data): New.
24554         (cselib_record_autoinc_cb): New fn.
24555         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
24556         mode to cselib_lookup.  Reset autoinced REGs here instead of...
24557         (cselib_process_insn): ... here.
24558         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
24559         to cselib_lookup.
24560         (add_uses): Likewise, also to cselib_subst_to_values.
24561         (add_stores): Likewise.
24562         * sched-deps.c (add_insn_mem_dependence): Pass mode to
24563         cselib_subst_to_values.
24564         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
24565         * gcse.c (do_local_cprop): Adjusted.
24566         * postreload.c (reload_cse_simplify_set): Adjusted.
24567         (reload_cse_simplify_operands): Adjusted.
24568         * sel-sched-dump (debug_mem_addr_value): Pass mode.
24569
24570 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
24571
24572         PR tree-optimization/45122
24573         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
24574         unsafe assumptions when there's more than one loop exit.
24575
24576 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24577
24578         PR target/47272
24579         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24580         Document using vector double with the load/store builtins, and
24581         that the load/store builtins always use Altivec instructions.
24582
24583         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
24584         to use altivec memory instructions, even on VSX.
24585         (vector_altivec_store_<mode>): Ditto.
24586
24587         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
24588         function.
24589
24590         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24591         V2DF, V2DI support to load/store overloaded builtins.
24592
24593         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
24594         altivec load/store builtins for V2DF/V2DI types.
24595
24596         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24597         set avoid indexed addresses on power6 if -maltivec.
24598         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
24599         vector_altivec_load/vector_altivec_store builtins.
24600         (altivec_expand_st_builtin): Ditto.
24601         (altivec_expand_builtin): Add VSX memory builtins.
24602         (rs6000_init_builtins): Add V2DI types to internal types.
24603         (altivec_init_builtins): Add support for V2DF/V2DI altivec
24604         load/store builtins.
24605         (rs6000_address_for_altivec): Insure memory address is appropriate
24606         for Altivec.
24607
24608         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
24609         vec_vsx_ld and vec_vsx_st.
24610         (vsx_store_<mode>): Ditto.
24611
24612         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
24613         variables to hold long long types for VSX vector memory builtins.
24614         (RS6000_BTI_unsigned_long_long): Ditto.
24615         (long_long_integer_type_internal_node): Ditti.
24616         (long_long_unsigned_type_internal_node): Ditti.
24617
24618         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
24619         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
24620         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
24621
24622         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
24623         short cuts.
24624         (vec_vsx_st): Ditto.
24625
24626 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
24627
24628         * config/pa/pa-hpux10.opt: New.
24629         * config/hpux11.opt (pthread): New Driver option.
24630         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
24631         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
24632
24633 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
24634
24635         * config/ia64/vms.opt: New.
24636         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
24637
24638 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
24639
24640         PR target/47580
24641         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
24642         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
24643         generator functions.
24644         (vsx_floatuns<VSi><mode>2): Ditto.
24645         (vsx_fix_trunc<mode><VSi>2): Ditto.
24646         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
24647
24648 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
24649
24650         * config/i386/djgpp.opt (posix): New Driver option.
24651
24652 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
24653
24654         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
24655         Move to the unsupported targets list.
24656
24657 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
24658
24659         PR rtl-optimization/47525
24660         * df-scan.c: Update copyright years.
24661         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
24662         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
24663
24664 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24665
24666         * config/i386/sysv4.h (TARGET_VERSION): Remove.
24667         (SUBTARGET_RETURN_IN_MEMORY): Remove.
24668         (ASM_OUTPUT_ASCII): Remove.
24669         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
24670
24671 2011-02-02  Jeff Law  <law@redhat.com>
24672
24673         PR middle-end/47543
24674         * reload.c (find_reloads_address): Handle reg+d address where both
24675         components are invalid by reloading the entire address.
24676
24677 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
24678             Richard Guenther  <rguenther@suse.de>
24679
24680         PR tree-optimization/40979
24681         PR bootstrap/47044
24682         * passes.c (init_optimization_passes): After LIM call copy_prop
24683         and DCE to clean up.
24684         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
24685
24686 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
24687
24688         PR tree-optimization/47576
24689         PR tree-optimization/47555
24690         * doc/invoke.texi (scev-max-expr-complexity): Documented.
24691         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
24692         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
24693         * tree-scalar-evolution.c (follow_ssa_edge): Use
24694         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
24695
24696 2011-02-02  Richard Guenther  <rguenther@suse.de>
24697
24698         PR tree-optimization/47566
24699         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
24700
24701 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
24702
24703         PR debug/47106
24704         PR debug/47402
24705         * tree-inline.c (declare_return_variable): Remove unused caller
24706         variable.
24707
24708         PR debug/47106
24709         PR debug/47402
24710         * tree-flow-inline.h (clear_is_used, is_used_p): New.
24711         * cfgexpand.c (account_used_vars_for_block): Use them.
24712         * tree-nrv.c (tree_nrv): Likewise.
24713         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
24714         (dump_scope_block): Likewise.
24715         (remove_unused_locals): Likewise.
24716
24717         PR debug/47106
24718         PR debug/47402
24719         * tree-inline.c (declare_return_variable): Add result decl to
24720         local decls only once.
24721         * gimple-low.c (record_vars_into): Mark newly-created variables
24722         as referenced.
24723
24724 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
24725
24726         PR debug/47498
24727         PR debug/47501
24728         PR debug/45136
24729         PR debug/45130
24730         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
24731         debug insns.
24732         (no_real_insns_p, schedule_block, set_priorities): Drop special
24733         treatment of boundary debug insns.
24734         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
24735         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
24736         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
24737         (BOUNDARY_DEBUG_INSN_P): Likewise.
24738         (SCHEDULE_DEBUG_INSN_P): Likewise.
24739         * sched-rgn.c (init_ready_list): Drop special treatment of
24740         boundary debug insns.
24741         * final.c (rest_of_clean_state): Clear notes' BB.
24742
24743 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24744
24745         * config/openbsd.opt (assert=): New Driver option.
24746
24747 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24748
24749         * config/i386/nto.opt: New.
24750         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
24751
24752 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24753
24754         * config/i386/netware.opt: New.
24755         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
24756
24757 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24758
24759         * config/interix.opt (posix): New Driver option.
24760
24761 2011-02-01  DJ Delorie  <dj@redhat.com>
24762
24763         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
24764
24765         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
24766         class for A0/A1.
24767
24768 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
24769
24770         PR tree-optimization/47561
24771         * toplev.c (process_options): Print the Graphite flags.  Add
24772         flag_loop_flatten to the list of options requiring Graphite.
24773
24774 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24775
24776         * config/i386/cygming.opt (posix): New Driver option.
24777
24778 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24779
24780         * config/arm/vxworks.opt: New.
24781         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
24782
24783 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24784
24785         * config/alpha/elf.opt: New.
24786         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
24787         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
24788
24789 2011-02-01  Richard Guenther  <rguenther@suse.de>
24790
24791         PR tree-optimization/47559
24792         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
24793         store-motion on references that can throw.
24794
24795 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
24796
24797         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
24798         * tree-pass.h (TDF_CSELIB): New macro.
24799         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
24800         cselib_lookup): Check for it rather than for TDF_DETAILS.
24801
24802 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
24803
24804         PR driver/47547
24805         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
24806         is HOST_BIT_BUCKET.
24807
24808         * opts.c (finish_options): Don't add x_aux_base_name if it is
24809         HOST_BIT_BUCKET.
24810
24811 2011-02-01  Richard Guenther  <rguenther@suse.de>
24812
24813         PR tree-optimization/47555
24814         Revert
24815         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
24816
24817         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
24818
24819 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
24820
24821         PR gcc/46692
24822         * config/lm32/t-lm32: Add multilib for all CPU options.
24823
24824 2011-02-01  Richard Guenther  <rguenther@suse.de>
24825
24826         PR tree-optimization/47541
24827         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
24828         sure to have a field at offset zero.
24829
24830 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
24831
24832         * config/arc/arc.opt (EB, EL): New Driver options.
24833
24834 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
24835
24836         * config/alpha/osf5.opt: New.
24837         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
24838
24839 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
24840
24841         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
24842
24843 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
24844
24845         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
24846         -floop-interchange.
24847         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
24848         is an alias of -floop-interchange and that it requires the
24849         Graphite infrastructure.
24850         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
24851         flag_loop_interchange based on the value of flag_tree_loop_linear.
24852
24853 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
24854             Richard Guenther  <rguenther@suse.de>
24855
24856         PR tree-optimization/47538
24857         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
24858         type instead of r1type, except for comparisons.  For right
24859         shifts and comparisons punt if there are mismatches in
24860         sizetype vs. non-sizetype types.
24861
24862 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24863
24864         * doc/sourcebuild.texi (Effective-Target Keywords): Document
24865         avx_runtime.
24866
24867 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24868
24869         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
24870         version number.
24871         * configure: Regenerate.
24872
24873 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24874
24875         * configure.ac (gcc_cv_ld_static_option): Define.
24876         (gcc_cv_ld_dynamic_option): Define.
24877         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
24878         instead.
24879         (HAVE_LD_STATIC_DYNAMIC): Update message.
24880         (LD_STATIC_OPTION): Define.
24881         (LD_DYNAMIC_OPTION): Define.
24882         * configure: Regenerate.
24883         * config.in: Regenerate.
24884         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
24885         HAVE_LD_STATIC_DYNAMIC]: Use them.
24886
24887 2011-01-31  Nick Clifton  <nickc@redhat.com>
24888
24889         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
24890         registers inside interrupt handlers if the handler is not a leaf
24891         function.
24892
24893 2011-01-31  Nick Clifton  <nickc@redhat.com>
24894
24895         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
24896         reg_renumber returning an INVALID_REGNUM.
24897
24898 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
24899
24900         PR libgcj/44341
24901         * doc/install.texi: Document host options discarded when cross
24902         configuring target libraries.
24903
24904 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
24905
24906         Reverted:
24907         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
24908         PR debug/45136
24909         PR debug/45130
24910         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
24911         debug insns.
24912         (no_real_insns_p, schedule_block, set_priorities): Drop special
24913         treatment of boundary debug insns.
24914         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
24915         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
24916         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
24917         (BOUNDARY_DEBUG_INSN_P): Likewise.
24918         (SCHEDULE_DEBUG_INSN_P): Likewise.
24919         * sched-rgn.c (init_ready_list): Drop special treatment of
24920         boundary debug insns.
24921         * final.c (rest_of_clean-state): Clear notes' BB.
24922
24923 2011-01-31  Alan Modra  <amodra@gmail.com>
24924
24925         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
24926         toc relative expressions as we do in print_operand_address.
24927
24928 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
24929
24930         * doc/extend.texi: Follow spelling conventions.
24931         * doc/invoke.texi: Fix a typo.
24932
24933 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
24934
24935         * config/hpux11.opt: New.
24936         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
24937         ia64*-*-hpux*): Use hpux11.opt.
24938
24939 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
24940
24941         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
24942         to tmake_file.
24943
24944 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
24945
24946         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
24947         support sites.
24948
24949 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
24950
24951         * doc/install.texi (Binaries): Remove outdated reference for
24952         Motorola 68HC11/68HC12 downloads.
24953
24954 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
24955
24956         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
24957         Drepper's paper.
24958
24959 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
24960
24961         PR bootstrap/47147
24962         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
24963         used by NetBSD.
24964
24965 2011-01-28  Ahmad Sharif  <asharif@google.com>
24966
24967         * value-prof.c (check_counter): Corrected error message.
24968
24969 2011-01-29  Jie Zhang  <jie@codesourcery.com>
24970
24971         * config/arm/arm.c (arm_legitimize_reload_address): New.
24972         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
24973         arm_legitimize_reload_address.
24974         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
24975
24976 2011-01-28  Ian Lance Taylor  <iant@google.com>
24977
24978         * godump.c (go_define): Ignore macros whose definitions include
24979         two adjacent operands.
24980
24981 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
24982
24983         PR target/42894
24984         * varasm.c (force_const_mem): Store copy of x in desc->constant
24985         instead of x itself.
24986         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
24987         itself into REG_EQUAL note.
24988
24989 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
24990
24991         * config/freebsd.opt (posix, rdynamic): New Driver options.
24992
24993 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24994
24995         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
24996         -Bstatic/-Bdynamic.
24997         * configure: Regenerate.
24998
24999 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
25000
25001         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
25002         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
25003
25004 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
25005
25006         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
25007         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
25008         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
25009         (s390_preferred_reload_class): Make static. Change return and
25010         'rclass' argument type to reg_class_t.
25011
25012 2011-01-27  Jan Hubicka  <jh@suse.cz>
25013
25014         PR middle-end/46949
25015         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
25016         (process_function_and_variable_attributes): Check defined weakrefs.
25017
25018 2011-01-27  Martin Jambor  <mjambor@suse.cz>
25019
25020         PR tree-optimization/47228
25021         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
25022         build_ref_for_offset.
25023
25024 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25025
25026         * config/spu/spu-elf.h (ASM_SPEC): Remove.
25027
25028 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
25029
25030         PR rtl-optimization/46856
25031         * postreload.c (reload_combine_recognize_const_pattern): Do not
25032         separate cc0 setter and user on cc0 targets.
25033
25034 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
25035
25036         PR c/43082
25037         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
25038         passed a VOID_TYPE expression, immediately emit an error and
25039         return error_mark_node.
25040
25041 2011-01-26  Jeff Law  <law@redhat.com>
25042
25043         PR rtl-optimization/47464
25044         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
25045         rather than may_trap_p as needed.
25046
25047 2011-01-26  DJ Delorie  <dj@redhat.com>
25048
25049         PR rtl-optimization/46878
25050         * combine.c (insn_a_feeds_b): Check for the implicit cc0
25051         setter/user dependency as well.
25052
25053 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
25054
25055         PR rtl-optimization/44469
25056         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
25057         after removing trivially dead basic blocks.
25058
25059 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25060
25061         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
25062         * config/frv/frv.h (LINK_SPEC): Likewise.
25063         * config/i386/netware.h (LINK_SPEC): Likewise.
25064         * config/m68k/linux.h (ASM_SPEC): Likewise.
25065         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
25066         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
25067         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25068         * config/sparc/linux.h (ASM_SPEC): Likewise.
25069         * config/sparc/linux64.h (ASM_SPEC): Likewise.
25070         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25071
25072 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25073
25074         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
25075         * config/frv/frv.h (ASM_SPEC): Likewise.
25076         * config/m68k/linux.h (ASM_SPEC): Likewise.
25077         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
25078         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
25079         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25080         * config/sparc/linux.h (ASM_SPEC): Likewise.
25081         * config/sparc/linux64.h (ASM_SPEC): Likewise.
25082         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25083
25084 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25085
25086         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
25087         * config/frv/frv.h (LINK_SPEC): Likewise.
25088         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
25089
25090 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25091
25092         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
25093         * config/frv/frv.h (ASM_SPEC): Likewise.
25094         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
25095         * config/m68k/linux.h (ASM_SPEC): Likewise.
25096         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
25097         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
25098         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25099         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
25100         * config/sparc/linux.h (ASM_SPEC): Likewise.
25101         * config/sparc/linux64.h (ASM_SPEC): Likewise.
25102         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25103         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
25104
25105 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
25106
25107         PR target/46997
25108         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
25109         (*mux2): Ditto.
25110         (vec_extract_evenodd_help): Ditto.
25111         (vec_extract_evenv4hi): Ditto.
25112         (vec_extract_oddv4hi): Ditto.
25113         (vec_interleave_lowv2si): Ditto.
25114         (vec_interleave_highv2si): Ditto.
25115         (vec_extract_evenv2si): Ditto.
25116         (vec_extract_oddv2si: Ditto.
25117         (vec_pack_trunc_v2si): Ditto.
25118
25119 2011-01-22  Jan Hubicka  <jh@suse.cz>
25120
25121         PR target/47237
25122         * cgraph.h (cgraph_local_info): New field can_change_signature.
25123         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
25124         signature can change.
25125         (ipcp_estimate_growth): Call sequence simplify only if calle signature
25126         can change.
25127         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
25128         (cgraph_function_versioning): We can not change signature of functions
25129         that don't allow that.
25130         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
25131         (lto_input_node): Likewise.
25132         * ipa-inline.c (compute_inline_parameters): Compute
25133         local.can_change_signature.
25134         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
25135         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
25136         functions that can not change signature.
25137         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
25138         init_cumulative_args): Do not use local calling conventions
25139         for functions that can not change signature.
25140
25141 2011-01-22  Jan Hubicka  <jh@suse.cz>
25142
25143         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
25144
25145 2011-01-26  Richard Guenther  <rguenther@suse.de>
25146
25147         PR tree-optimization/47190
25148         * cgraphunit.c (process_common_attributes): New function.
25149         (process_function_and_variable_attributes): Use it.
25150
25151 2011-01-26  Richard Guenther  <rguenther@suse.de>
25152
25153         PR lto/47423
25154         * cgraphbuild.c (record_eh_tables): Record reference to personality
25155         function.
25156
25157 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
25158
25159         PR debug/45454
25160         * sel-sched.c (moveup_expr): Don't let debug insns prevent
25161         non-debug insns from moving up.
25162
25163 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
25164
25165         PR target/40125
25166         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
25167         t-dlldir{,-x} fragment for build and add it to tmake_file.
25168         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
25169         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
25170         * config/i386/t-dlldir: New file.
25171         (SHLIB_DLLDIR): Define.
25172         * config/i386/t-dlldir-x: New file.
25173         (SHLIB_DLLDIR): Define.
25174         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
25175         (SHLIB_INSTALL): Use it.
25176
25177 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
25178
25179         PR target/47246
25180         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
25181         lower bound of the allowed Thumb-2 coprocessor load/store
25182         index range to -256. Add explaining comment.
25183
25184 2011-01-25  Ian Lance Taylor  <iant@google.com>
25185
25186         * godump.c (go_define): Improve lexing of macro expansion to only
25187         accept expressions which match Go spec.
25188
25189 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
25190
25191         PR c++/43601
25192         * tree.c (handle_dll_attribute): Handle it.
25193         * doc/extend.texi (@item dllexport): Mention it.
25194         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
25195
25196 2011-01-25  Ian Lance Taylor  <iant@google.com>
25197
25198         PR tree-optimization/26854
25199         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
25200         (decl_jump_unsafe): Move higher in file, with no other change.
25201         (bind): Set has_jump_unsafe_decl if appropriate.
25202         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
25203         (check_earlier_gotos): Likewise.
25204         (c_check_switch_jump_warnings): Likewise.
25205
25206 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
25207
25208         * doc/invoke.texi (Warning Options): Add missing hyphen.
25209         (-fprofile-dir): Minor grammatical fixes.
25210         (-fbranch-probabilities): Likewise.
25211
25212 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
25213
25214         PR debug/45136
25215         PR debug/45130
25216         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25217         debug insns.
25218         (no_real_insns_p, schedule_block, set_priorities): Drop special
25219         treatment of boundary debug insns.
25220         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25221         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
25222         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25223         (BOUNDARY_DEBUG_INSN_P): Likewise.
25224         (SCHEDULE_DEBUG_INSN_P): Likewise.
25225         * sched-rgn.c (init_ready_list): Drop special treatment of
25226         boundary debug insns.
25227         * final.c (rest_of_clean-state): Clear notes' BB.
25228
25229 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25230
25231         * Makefile.in (LAMBDA_H): Removed.
25232         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
25233         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
25234         lambda-trans.o, and tree-loop-linear.o.
25235         (lto-symtab.o): Remove dependence on LAMBDA_H.
25236         (tree-loop-linear.o): Remove rule.
25237         (lambda-mat.o): Same.
25238         (lambda-trans.o): Same.
25239         (lambda-code.o): Same.
25240         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
25241         (tree-vect-slp.o): Same.
25242         * hwint.h (gcd): Moved here.
25243         (least_common_multiple): Same.
25244         * lambda-code.c: Removed.
25245         * lambda-mat.c: Removed.
25246         * lambda-trans.c: Removed.
25247         * lambda.h: Removed.
25248         * tree-loop-linear.c: Removed.
25249         * lto-symtab.c: Do not include lambda.h.
25250         * omega.c (gcd): Removed.
25251         * passes.c (init_optimization_passes): Remove pass_linear_transform.
25252         * tree-data-ref.c (print_lambda_vector): Moved here.
25253         (lambda_vector_copy): Same.
25254         (lambda_matrix_copy): Same.
25255         (lambda_matrix_id): Same.
25256         (lambda_vector_first_nz): Same.
25257         (lambda_matrix_row_add): Same.
25258         (lambda_matrix_row_exchange): Same.
25259         (lambda_vector_mult_const): Same.
25260         (lambda_vector_negate): Same.
25261         (lambda_matrix_row_negate): Same.
25262         (lambda_vector_equal): Same.
25263         (lambda_matrix_right_hermite): Same.
25264         * tree-data-ref.h: Do not include lambda.h.
25265         (lambda_vector): Moved here.
25266         (lambda_matrix): Same.
25267         (dependence_level): Same.
25268         (lambda_transform_legal_p): Removed declaration.
25269         (lambda_collect_parameters): Same.
25270         (lambda_compute_access_matrices): Same.
25271         (lambda_vector_gcd): Same.
25272         (lambda_vector_new): Same.
25273         (lambda_vector_clear): Same.
25274         (lambda_vector_lexico_pos): Same.
25275         (lambda_vector_zerop): Same.
25276         (lambda_matrix_new): Same.
25277         * tree-flow.h (least_common_multiple): Removed declaration.
25278         * tree-parloops.c (lambda_trans_matrix): Moved here.
25279         (LTM_MATRIX): Same.
25280         (LTM_ROWSIZE): Same.
25281         (LTM_COLSIZE): Same.
25282         (LTM_DENOMINATOR): Same.
25283         (lambda_trans_matrix_new): Same.
25284         (lambda_matrix_vector_mult): Same.
25285         (lambda_transform_legal_p): Same.
25286         * tree-pass.h (pass_linear_transform): Removed declaration.
25287         * tree-ssa-loop.c (tree_linear_transform): Removed.
25288         (gate_tree_linear_transform): Removed.
25289         (pass_linear_transform): Removed.
25290         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
25291         flag_loop_interchange.
25292
25293 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
25294
25295         PR tree-optimization/47265
25296         PR tree-optimization/47443
25297         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
25298         if name still has some uses.
25299
25300 2011-01-25  Martin Jambor  <mjambor@suse.cz>
25301
25302         PR tree-optimization/47382
25303         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
25304         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
25305
25306 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
25307
25308         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
25309         sjlj_except_unwind_info.
25310
25311 2011-01-25  Richard Guenther  <rguenther@suse.de>
25312
25313         PR tree-optimization/47426
25314         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
25315         visible functions results escape.
25316
25317 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
25318
25319         PR target/45701
25320         * config/arm/arm.c (any_sibcall_uses_r3): New function.
25321         (arm_get_frame_offsets): Use it.
25322
25323 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25324             Jakub Jelinek  <jakub@redhat.com>
25325
25326         PR tree-optimization/47271
25327         * tree-if-conv.c (bb_postdominates_preds): New.
25328         (if_convertible_bb_p): Call bb_postdominates_preds.
25329         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
25330         (predicate_scalar_phi): Call bb_postdominates_preds.
25331
25332 2011-01-25  Nick Clifton  <nickc@redhat.com>
25333
25334         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
25335         * config/rx/rx.c (rx_function_value): Likewise.
25336         (rx_promote_function_mode): Likewise.
25337         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
25338         in order to make it legitimate.
25339         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
25340         make sure that the first operand is the same as the result register.
25341         (addsi3_unspec): Delete.
25342         (subdi3): Do not accept immediate operands.
25343         (subdi3_internal): Likewise.
25344
25345 2011-01-25  Jeff Law  <law@redhat.com>
25346
25347         PR rtl-optimization/37273
25348         * ira-costs.c (scan_one_insn): Detect constants living in memory and
25349         handle them like argument loads from stack slots.  Do not double
25350         count memory for memory constants and argument loads from stack slots.
25351
25352 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
25353
25354         PR tree-optimization/47427
25355         PR tree-optimization/47428
25356         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
25357         coalesce if the new root var would be TREE_READONLY.
25358
25359 2011-01-25  Richard Guenther  <rguenther@suse.de>
25360
25361         PR middle-end/47414
25362         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
25363         correct type for TBAA.
25364
25365 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25366
25367         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
25368         (close_phi_written_to_memory): Call for_each_index with
25369         dr_indices_valid_in_loop.
25370
25371 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25372
25373         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
25374         when it is initialized.
25375
25376 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25377
25378         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
25379         call to graphite_find_data_references_in_stmt.
25380         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
25381         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
25382         call to graphite_find_data_references_in_stmt.
25383         (analyze_drs_in_stmts): Same.
25384         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
25385         in which the scalar analysis of indices is performed.
25386         (create_data_ref): Same.  Update call to dr_analyze_indices.
25387         (find_data_references_in_stmt): Update call to create_data_ref.
25388         (graphite_find_data_references_in_stmt): Same.
25389         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
25390         declaration.
25391         (create_data_ref): Same.
25392         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
25393         call to create_data_ref.
25394
25395 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25396
25397         * graphite-sese-to-poly.c (build_poly_scop): Move
25398         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
25399
25400 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25401
25402         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
25403         VAR_DECL, PARM_DECL, and RESULT_DECL.
25404
25405 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25406
25407         * graphite-dependences.c (reduction_dr_1): Allow several reductions
25408         in a reduction PBB.
25409         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
25410         that have already been marked as PBB_IS_REDUCTION.
25411
25412 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25413
25414         * graphite-scop-detection.c (same_close_phi_node): New.
25415         (remove_duplicate_close_phi): New.
25416         (make_close_phi_nodes_unique): New.
25417         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
25418
25419 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25420
25421         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
25422         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
25423         of both data references to be the same.
25424
25425 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25426
25427         * graphite-dependences.c (build_lexicographical_constraint): Remove
25428         the gdim parameter.
25429         (build_lexicographical_constraint): Adjust call to
25430         ppl_powerset_is_empty.
25431         (dependence_polyhedron): Same.
25432         (graphite_legal_transform_dr): Same.
25433         (graphite_carried_dependence_level_k): Same.
25434         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
25435         parameter.
25436         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
25437
25438 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25439
25440         * graphite-sese-to-poly.c
25441         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
25442         (close_phi_written_to_memory): New.
25443         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
25444         and unshare_expr.
25445
25446 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25447
25448         * doc/install.texi: Update the expected version number of PPL to 0.11.
25449         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
25450         #if PPL_VERSION_MINOR < 11.
25451
25452 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25453
25454         * graphite-dependences.c: Include graphite-cloog-util.h.
25455         (new_poly_ddr): Inlined into dependence_polyhedron.
25456         (free_poly_ddr): Moved close by new_poly_ddr.
25457         (dependence_polyhedron_1): Renamed dependence_polyhedron.
25458         Early return NULL when ppl_powerset_is_empty returns true.
25459         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
25460         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
25461         (graphite_legal_transform_dr): Call new_poly_ddr.
25462         (graphite_carried_dependence_level_k): Same.
25463         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
25464         (dot_transformed_deps_stmt_1): Removed.
25465         (dot_deps_stmt_1): Call dot_deps_stmt_2.
25466         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
25467         (dot_deps_1): Call dot_deps_2.
25468         * Makefile.in (graphite-dependences.o): Add missing dependence on
25469         graphite-cloog-util.h.
25470
25471 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25472
25473         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
25474         (build_lexicographical_constraint): Same.
25475         (dependence_polyhedron_1): Same.
25476         (graphite_legal_transform_dr): Same.
25477         (graphite_carried_dependence_level_k): Same.
25478         * graphite-ppl.c (ppl_powerset_is_empty): New.
25479         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
25480         * tree-data-ref.c (dump_data_reference): Print the basic block index.
25481
25482 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25483
25484         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
25485         the "a followed by b" relation and document it.
25486
25487 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25488
25489         * graphite-dependences.c (build_lexicographical_constraint): Stop the
25490         iteration when the bag of constraints is empty.
25491
25492 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25493
25494         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
25495
25496 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25497
25498         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
25499         nest and two loop depths as parameters.
25500         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
25501         lst_perfect_nestify.
25502
25503 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25504
25505         * graphite-dependences.c (print_pddr): Call
25506         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
25507
25508 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25509
25510         * graphite-ppl.c (debug_gmp_value): New.
25511         * graphite-ppl.h (debug_gmp_value): Declared.
25512
25513 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
25514
25515         * doc/install.texi: Document availability of cloog-0.16.
25516
25517 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
25518
25519         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
25520         invalid postdominance info.
25521
25522 2011-01-24  Jan Hubicka  <jh@suse.cz>
25523
25524         PR c/21659
25525         * doc/extend.texi (weak pragma): Drop claim that it must
25526         appear before definition.
25527         * varasm.c (merge_weak, declare_weak): Only sanity check
25528         that DECL is not output at a time it is declared weak.
25529
25530 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
25531
25532         * machmode.def: Fixed comments.
25533
25534 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
25535
25536         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
25537
25538 2011-01-24  Paul Koning  <ni1d@arrl.net>
25539
25540         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
25541         WORDS_BIG_ENDIAN.
25542
25543 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
25544
25545         PR target/46519
25546         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
25547         (block_info): Add scanned and prev.
25548         (move_or_delete_vzeroupper_2): Return if the basic block
25549         has been scanned and the upper 128bit state is unchanged
25550         from the last scan.
25551         (move_or_delete_vzeroupper_1): Return true if the exit
25552         state is changed.
25553         (move_or_delete_vzeroupper): Visit basic blocks using the
25554         work-list based algorithm based on vt_find_locations in
25555         var-tracking.c.
25556
25557         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
25558
25559 2011-01-24  Nick Clifton  <nickc@redhat.com>
25560
25561         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
25562         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
25563         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
25564         then define __v850e1__.
25565         * doc/invoke.texi: Document -mv850es.
25566
25567 2011-01-24  Richard Henderson  <rth@redhat.com>
25568
25569         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
25570         compound unordered comparisons.
25571         * config/rx/rx.c (rx_split_fp_compare): Remove.
25572         * config/rx/rx-protos.h: Update.
25573         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
25574         (cbranchsf4): Don't call rx_split_fp_compare.
25575         (*cbranchsf4): Use rx_split_cbranch.
25576         (*cmpsf): Don't accept "i" constraint.
25577         (*conditional_branch): Only valid after reload.
25578         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
25579
25580 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
25581
25582         PR target/47385
25583         * config/rs6000/altivec.md (vector constant splitters): Add
25584         support for creating vector single precision constants if -mvsx is
25585         used and we would create the constant using Altivec primitives.
25586
25587 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
25588             Richard Sandiford  <rdsandiford@googlemail.com>
25589
25590         PR rtl-optimization/47166
25591         * reload1.c (emit_reload_insns): Disable the spill_reg_store
25592         mechanism for PRE_MODIFY and POST_MODIFY.
25593         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
25594         reloadreg.
25595
25596 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
25597
25598         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
25599
25600 2011-01-22  Jan Hubicka  <jh@suse.cz>
25601
25602         PR lto/47333
25603         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
25604
25605 2011-01-22  Jan Hubicka  <jh@suse.cz>
25606
25607         PR tree-optimization/43884
25608         PR lto/44334
25609         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
25610         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
25611
25612 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
25613
25614         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
25615         * config/s390/s390.c (s390_register_move_cost,
25616         s390_memory_move_cost): New.
25617         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
25618
25619 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25620
25621         PR middle-end/47401
25622         * except.c (sjlj_assign_call_site_values): Move setting the
25623         crtl->uses_eh_lsda flag to ...
25624         (sjlj_mark_call_sites): ... here.
25625         (sjlj_emit_function_enter): Support NULL dispatch label.
25626         (sjlj_build_landing_pads): In a function with no landing pads
25627         that still has must-not-throw regions, generate code to register
25628         a personality function with empty LSDA.
25629
25630 2011-01-21  Richard Henderson  <rth@redhat.com>
25631
25632         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
25633
25634         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
25635
25636         * compare-elim.c: New file.
25637         * Makefile.in (OBJS-common): Add it.
25638         (compare-elim.o): New.
25639         * common.opt (fcompare-elim): New.
25640         * opts.c (default_options_table): Add OPT_fcompare_elim.
25641         * tree-pass.h (pass_compare_elim_after_reload): New.
25642         * passes.c (init_optimization_passes): Add it.
25643         * recog.h: Protect against re-inclusion.
25644         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
25645         * doc/invoke.texi (-fcompare-elim): Document it.
25646         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
25647         * doc/tm.texi: Rebuild.
25648
25649 2011-01-22  Nick Clifton  <nickc@redhat.com>
25650
25651         * config/rx/rx.md (cstoresf4): Pass comparison operator to
25652         rx_split_fp_compare.
25653
25654 2011-01-22  Nick Clifton  <nickc@redhat.com>
25655
25656         * config/rx/rx.md (UNSPEC_CONST): New.
25657         (deallocate_and_return): Wrap the amount popped off the stack in
25658         an UNSPEC_CONST in order to stop it being rejected by
25659         -mmax-constant-size.
25660         (pop_and_return): Add a "(return)" rtx.
25661         (call): Drop the immediate operand.
25662         (call_internal): Likewise.
25663         (call_value): Likewise.
25664         (call_value_internal): Likewise.
25665         (sibcall_internal): Likewise.
25666         (sibcall_value_internal): Likewise.
25667         (sibcall): Likewise.  Generate an explicit call using
25668         sibcall_internal.
25669         (sibcall_value): Likewise.
25670         (mov<>): FAIL if a constant operand is not legitimate.
25671         (addsi3_unpsec): New pattern.
25672
25673         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
25674         (ok_for_max_constant): New function.
25675         (gen_safe_add): New function.
25676         (rx_expand_prologue): Use gen_safe_add.
25677         (rx_expand_epilogue): Likewise.
25678         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
25679         UNSPEC CONSTs.
25680
25681 2011-01-21  Jeff Law  <law@redhat.com>
25682
25683         PR tree-optimization/47053
25684         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
25685         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
25686         statements are deleted.
25687         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
25688         is nonempty, then purge dead edges and cleanup the CFG.
25689
25690 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
25691
25692         PR debug/47402
25693         Temporarily revert:
25694         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
25695         PR debug/47106
25696         * tree-dfa.c (create_var_ann): Mark variable as used.
25697
25698 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
25699
25700         PR middle-end/45566
25701         * except.c (convert_to_eh_region_ranges): Emit queued no-region
25702         notes from other section in hot/cold partitioning even if
25703         last_action is -3.  Increment call_site_base.
25704
25705         PR rtl-optimization/47366
25706         * fwprop.c (forward_propagate_into): Return bool.  If
25707         any changes are made, -fnon-call-exceptions is used and
25708         REG_EH_REGION note is present, call purge_dead_edges
25709         and return true if it purged anything.
25710         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
25711         any EH edges were purged.
25712
25713 2011-01-21  Jeff Law  <law@redhat.com>
25714
25715         PR rtl-optimization/41619
25716         * caller-save.c (setup_save_areas): Break out code to determine
25717         which hard regs are live across calls by examining the reload chains
25718         so that it is always used.
25719         Eliminate code which checked REG_N_CALLS_CROSSED.
25720
25721 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
25722
25723         PR tree-optimization/47355
25724         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
25725         NOP has non-debug uses beyond PHIs in new_bb.
25726
25727 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
25728
25729         PR debug/47106
25730         * cfgexpand.c (account_used_vars_for_block): Only account vars
25731         that are annotated as used.
25732         (estimated_stack_frame_size): Don't set TREE_USED.
25733         * tree-dfa.c (create_var_ann): Mark variable as used.
25734
25735 2011-01-21  Richard Guenther  <rguenther@suse.de>
25736
25737         PR middle-end/47395
25738         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
25739
25740 2011-01-21  Richard Guenther  <rguenther@suse.de>
25741
25742         PR tree-optimization/47365
25743         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
25744         (vn_reference_lookup_pieces): Adjust.
25745         (vn_reference_lookup): Likewise.
25746         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
25747         (vn_reference_lookup_3): Only look through kills if in
25748         VN_WALKREWRITE mode.
25749         (vn_reference_lookup_pieces): Adjust.
25750         (vn_reference_lookup): Likewise.
25751         (visit_reference_op_load): Likewise.
25752         (visit_reference_op_store): Likewise.
25753         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
25754         (compute_avail): Likewise.
25755         (eliminate): Likewise.
25756
25757 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
25758
25759         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
25760         DECL_IGNORED_P non-reg vars if they are used.
25761
25762         PR tree-optimization/47391
25763         * varpool.c (const_value_known_p): Return false if
25764         decl is volatile.
25765
25766 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
25767
25768         PR bootstrap/47215
25769         * config/i386/i386.c (ix86_local_alignment): Handle
25770         case for va_list_type_node is nil.
25771         (ix86_canonical_va_list_type): Likewise.
25772
25773 2011-01-21  Alan Modra  <amodra@gmail.com>
25774
25775         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
25776         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
25777
25778 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25779
25780         * config/arm/arm.md (define_attr type): Rename f_load
25781         and f_store to f_fpa_load and f_fpa_store. Update.
25782         (write_conflict): Deal with rename fallout.
25783         (*push_fp_multi): Likewise.
25784         * config/arm/fpa.md (f_load): Use f_fpa_load.
25785         (f_store): Use f_fpa_store.
25786         (*movsf_fpa): Likewise.
25787         (*movdf_fpa): Likewise.
25788         (*movxf_fpa): Likewise.
25789         (*thumb2_movsf_fpa): Likewise.
25790         (*thumb2_movdf_fpa): Likewise.
25791         (*thumb2_movxf_fpa): Likewise.
25792         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
25793         f_loadd and f_stored.
25794         (*thumb2_movdi_vfp): Likewise.
25795         (*thumb2_movsf_vfp): Fix attribute to f_loads.
25796         (*thumb2_movsi_vfp): Likewise.
25797         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
25798         Use f_loads instead of f_load.
25799         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
25800
25801 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
25802
25803         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25804         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
25805         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25806         (xtensa_mode_dependent_address_p): New function.
25807         (constantpool_address_p): Make static. Change return type to bool.
25808         Change argument type to const_rtx. Use CONST_INT_P predicate.
25809
25810 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
25811
25812         PR debug/46583
25813         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
25814
25815 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
25816
25817         PR debug/47283
25818         * cfgexpand.c (expand_debug_expr): Instead of generating
25819         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
25820         etc. handling.
25821
25822 2011-01-20  Richard Guenther  <rguenther@suse.de>
25823
25824         PR middle-end/47370
25825         * tree-inline.c (remap_gimple_op_r): Recurse manually for
25826         the pointer operand of MEM_REFs.
25827
25828 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
25829
25830         PR tree-optimization/46130
25831         * ipa-split.c (consider_split): If return_bb contains non-virtual
25832         PHIs other than for retval or if split_function would not adjust it,
25833         refuse to split.
25834
25835 2011-01-20  Richard Guenther  <rguenther@suse.de>
25836
25837         PR tree-optimization/47167
25838         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
25839         Revert previous change, only avoid enumeral type changes.
25840
25841 2011-01-19  Mike Stump  <mikestump@comcast.net>
25842
25843         * doc/tm.texi.in (BRANCH_COST): Englishify.
25844         * doc/tm.texi (BRANCH_COST): Likewise.
25845
25846 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
25847
25848         PR c++/47291
25849         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
25850         (gen_scheduled_generic_parms_dies): New functions.
25851         (gen_struct_or_union_type_die): Schedule template parameters DIEs
25852         generation for the end of CU compilation.
25853         (dwarf2out_finish): Generate template parameters DIEs here.
25854
25855 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
25856
25857         PR debug/46240
25858         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
25859         debug bind stmt on merge edges.
25860
25861 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
25862
25863         PR debug/47079
25864         PR debug/46724
25865         * function.c (instantiate_expr): Instantiate incoming rtl of
25866         implicit arguments, and recurse on VALUE_EXPRs.
25867         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
25868         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
25869
25870 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
25871
25872         * c-parser.c (c_parser_for_statement): Initialize
25873         collection_expression.
25874
25875 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
25876
25877         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
25878
25879 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
25880
25881         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
25882         (LINK_SHLIB_SPEC): Don't use %(link_path).
25883         (SUBTARGET_EXTRA_SPECS): Remove link_path.
25884
25885 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
25886
25887         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
25888         (NO_SHARED_LIB_SUPPORT): Remove.
25889         (LINK_SHLIB_SPEC): Remove one conditional definition.
25890
25891 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
25892
25893         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
25894         %{call_shared}.
25895         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
25896         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
25897         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
25898         %{call_shared} and conditionals on these options not being passed.
25899         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
25900         %{call_shared}.
25901
25902 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
25903
25904         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
25905         simplify.
25906
25907         * ipa-split.c: Spelling fixes.
25908
25909 2011-01-19  Richard Henderson  <rth@redhat.com>
25910
25911         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
25912         (*mulsi3): Likewise.
25913
25914         * longlong.h [__mn10300__] (count_leading_zeros): New.
25915         [__mn10300__] (umul_ppmm, smul_ppmm): New.
25916         [__mn10300__] (add_ssaaaa, subddmmss): New.
25917         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
25918         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
25919
25920 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25921
25922         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
25923
25924 2011-01-19  Richard Henderson  <rth@redhat.com>
25925
25926         * config/mn10300/mn10300.md (addsi3_flags): New.
25927         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
25928         (subsi3_flags, subc_internal, subdi3): New.
25929         (subdi3_internal, *subdi3_degenerate): New.
25930         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
25931
25932         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
25933         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
25934         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
25935         * config/mn10300/mn10300-protos.h: Update.
25936         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
25937         (return_ret): Likewise.  Rename from return_internal_regs.
25938         (return_internal): Remove.
25939
25940         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
25941         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
25942         (mn10300_legitimate_constant_p): Likewise.
25943         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
25944         (mn10300_frame_size): New.
25945         (mn10300_expand_prologue): Use it.
25946         (mn10300_expand_epilogue): Likewise.
25947         (mn10300_initial_offset): Likewise.
25948         * config/mn10300/mn10300-protos.h: Update.
25949         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
25950         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
25951         (prologue, epilogue, return_internal): Tidy output code.
25952         (mn10300_store_multiple_operation, return): Likewise.
25953         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
25954         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
25955         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
25956         (load_pic, am33_load_pic): New.
25957         (mn10300_load_pic0, mn10300_load_pic1): New.
25958
25959         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
25960         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
25961         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
25962         (cc_flags_for_mode, cc_flags_for_code): New.
25963         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
25964         overflow flag is not valid.  Validate that the flags we need
25965         for the comparison are valid.
25966         (mn10300_output_cmp): Remove.
25967         (mn10300_output_add): New.
25968         (mn10300_select_cc_mode): Use cc_flags_for_code.
25969         (mn10300_split_cbranch): New.
25970         (mn10300_match_ccmode): New.
25971         (mn10300_split_and_operand_count): New.
25972         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
25973         to the function.
25974         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
25975         (addsi3): ... here.  Use mn10300_output_add.
25976         (*addsi3_flags): New.
25977         (*am33_subsi3, *mn10300_subsi3): Merge...
25978         (subsi3): ... here.  Use attribute isa.
25979         (*subsi3_flags): New.
25980         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
25981         when possible.
25982         (*am33_andsi3, *mn10300_andsi3): Merge...
25983         (andsi3): ... here.
25984         (*andsi3_flags): New.
25985         (andsi3 splitters): New.
25986         (*am33_iorsi3, *mn10300_iorsi3): Merge...
25987         (iorsi3): ... here.
25988         (*iorsi3_flags): New.
25989         (*am33_xorsi3, *mn10300_xorsi3): Merge...
25990         (xorsi3): ... here.
25991         (*xorsi3_flags): New.
25992         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
25993         (one_cmplsi2): ... here.
25994         (*one_cmplsi2_flags): New.
25995         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
25996         instead of "dax" in constraints.  Use mn10300_split_cbranch.
25997         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
25998         use matching constraints to eliminate a self-comparison.
25999         (*integer_conditional_branch): Rename from integer_conditional_branch.
26000         Use int_mode_flags to match CC_REG.
26001         (*cbranchsi4_btst, *btstsi): New.
26002         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
26003         mn10300_split_cbranch.
26004         (*am33_cmpsf): Rename from am33_cmpsf.
26005         (*float_conditional_branch): Rename from float_conditional_branch.
26006         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
26007         (zero_extendqisi2): ... here.
26008         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
26009         (zero_extendhisi2): ... here.
26010         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
26011         (extendqisi2): ... here.
26012         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
26013         (extendhisi2): ... here.
26014         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
26015         (ashlsi3): ... here.
26016         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
26017         (lshrsi3): ... here.
26018         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
26019         (ashrsi3): ... here.
26020         (consecutive add peephole): Remove.
26021         * config/mn10300/predicates.md (label_ref_operand): New.
26022         (int_mode_flags): New.
26023         (CCZN_comparison_operator): New.
26024
26025         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
26026         (throughput_42_latency_43): New reservation.
26027         (mulsidi3, umulsidi3): New expanders.
26028         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
26029         the MDR register to allocation; separately allocate the low and
26030         high parts of the DImode result.
26031         (umulsidi3_internal): Similarly.
26032         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
26033         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
26034         (udivsi3, umodsi3): Remove.
26035         (udivmodsi4, divmodsi4): New expanders.
26036         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
26037         (*divmodsi4): Simiarly.
26038         (ext_internal): New.
26039
26040         * config/mn10300/constraints.md ("z"): New constraint.
26041         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
26042         (FIXED_REGISTERS): Don't fix MDR.
26043         (CALL_USED_REGSITERS): Reformat nicely.
26044         (REG_ALLOC_ORDER): Add MDR.
26045         (enum regclass): Add MDR_REGS.
26046         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
26047         (IRA_COVER_CLASSES): Add MDR_REGS.
26048         (REGNO_REG_CLASS): Handle MDR_REG.
26049         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
26050         (mn10300_register_move_cost): Likewise.
26051         * config/mn10300/mn10300.md (MDR_REG): New.
26052         (*movsi_internal): Handle moves to/from MDR_REGS.
26053
26054         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
26055         POST_MODIFY.
26056         (mn10300_secondary_reload): Tidy combination reload classes.
26057         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
26058         addresses for AM33.  Allow symbolic offsets for reg+imm.
26059         (mn10300_regno_in_class_p): New.
26060         (mn10300_legitimize_reload_address): New.
26061         * config/mn10300/mn10300.h (enum reg_class): Remove
26062         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
26063         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
26064         SP_OR_GENERAL_REGS.
26065         (REG_CLASS_NAMES): Update to match.
26066         (REG_CLASS_CONTENTS): Likewise.
26067         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
26068         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
26069         (REGNO_IN_RANGE_P): Remove.
26070         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
26071         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
26072         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
26073         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
26074         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
26075         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
26076         (REGNO_GENERAL_P): New.
26077         (HAVE_POST_MODIFY_DISP): New.
26078         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
26079         (LEGITIMIZE_RELOAD_ADDRESS): New.
26080         * config/mn10300/mn10300-protos.h: Update.
26081
26082         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
26083         DATA_REGS for AM33 stack-pointer destination.
26084         (mn10300_preferred_output_reload_class): Likewise.
26085         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
26086         into a form appropriate for ...
26087         (TARGET_SECONDARY_RELOAD): New.
26088         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
26089         * config/mn10300/mn10300-protos.h: Update.
26090         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
26091         reload_insi; use the "A" constraint for the scratch; handle AM33
26092         moves of sp to non-address registers.
26093
26094         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
26095         (*movqi_internal): ... here.
26096         (*am33_movhi, *mn10300_movhi): Merge into...
26097         (*movhi_internal): ... here.
26098         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
26099         as the source/destination of moves from/to SP.
26100         (movsf): Only allow for AM33-2.
26101         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
26102         any integer constant constraint.  Only allow for AM33-2.  Tidy
26103         all of the alternative outputs.
26104         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
26105         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
26106         for MN103.
26107         (udivsi3, umodsi3): New patterns for MN103 only.
26108
26109 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
26110
26111         * doc/tm.texi.in: Spell out that a lack of register class unions
26112         can lead to ICEs.
26113         * doc/tm.texi: Regenerate.
26114
26115 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
26116
26117         PR rtl-optimization/47337
26118         * dce.c (check_argument_store): New function.
26119         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
26120
26121         PR tree-optimization/47290
26122         * tree-eh.c (infinite_empty_loop_p): New function.
26123         (cleanup_empty_eh): Use it.
26124
26125 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
26126
26127         PR target/46997
26128         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
26129         (a64_expand_widen_sum): Ditto.
26130         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
26131         (vec_extract_evenodd_help): Ditto.
26132         (vec_extract_evenv4hi): Ditto.
26133         (vec_extract_oddv4hi): Ditto.
26134         (vec_extract_evenv2si): Ditto.
26135         (vec_extract_oddv2si): Ditto.
26136         (vec_extract_evenv2sf): Ditto.
26137         (vec_extract_oddv2sf): Ditto.
26138         (vec_pack_trunc_v4hi: Ditto.
26139         (vec_pack_trunc_v2si): Ditto.
26140         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
26141         (vec_interleave_highv8qi): Ditto.
26142         (mix1_r): Ditto.
26143         (vec_extract_oddv8qi): Ditto.
26144         (vec_interleave_lowv4hi): Ditto.
26145         (vec_interleave_highv4hi): Ditto.
26146         (vec_interleave_lowv2si): Ditto.
26147         (vec_interleave_highv2si): Ditto.
26148
26149 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26150
26151         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
26152         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
26153         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
26154         (pa_c_mode_for_suffix): New.
26155         (TARGET_EXPAND_BUILTIN): Define.
26156         (TARGET_C_MODE_FOR_SUFFIX): Define.
26157         (pa_builtins): Define.
26158         (pa_init_builtins): Register __float128 type and init new support
26159         builtins.
26160         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
26161         * config/pa/quadlib.c (_U_Qfcopysign): New.
26162
26163 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
26164
26165         PR middle-end/46894
26166         * explow.c (allocate_dynamic_stack_space): Do not assume more than
26167         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
26168         are defined.
26169
26170 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26171
26172         PR tree-optimization/47179
26173         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
26174         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
26175
26176 2011-01-18  Richard Guenther  <rguenther@suse.de>
26177
26178         PR rtl-optimization/47216
26179         * emit-rtl.c: Include tree-flow.h.
26180         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
26181         of replicating it with different semantics.
26182         * Makefile.in (emit-rtl.o): Adjust.
26183
26184 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26185
26186         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
26187         (cortex_a9_dp): Handle neon types correctly.
26188
26189 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
26190
26191         PR rtl-optimization/47299
26192         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
26193         subtarget.  Use normal multiplication if both operands are constants.
26194         * expmed.c (expand_widening_mult): Don't try to optimize constant
26195         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
26196         before using it.
26197
26198 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26199
26200         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
26201         spacing after 'e.g.', typos, comma, hyphenation.
26202
26203 2011-01-17  Richard Henderson  <rth@redhat.com>
26204
26205         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
26206         (rx_restricted_mem_operand): New.
26207         (rx_shift_operand): Use register_operand.
26208         (rx_source_operand, rx_compare_operand): Likewise.
26209         * config/rx/rx.md (addsi3_flags): New expander.
26210         (adddi3): Rewrite as expander.
26211         (adc_internal, *adc_flags, adddi3_internal): New patterns.
26212         (subsi3_flags): New expander.
26213         (subdi3): Rewrite as expander.
26214         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
26215
26216         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
26217         (rx_init_builtins): Remove sat builtin.
26218         (rx_expand_builtin): Likewise.
26219         * config/rx/rx.md (ssaddsi3): New.
26220         (*sat): Rename from sat.  Represent the CC_REG input.
26221
26222         * config/rx/predicates.md (rshift_operator): New.
26223         * config/rx/rx.c (rx_expand_insv): Remove.
26224         * config/rx/rx-protos.h: Update.
26225         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
26226         operand to the canonical position.
26227         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
26228         (*bitclr, *bitclr_in_memory): Similarly.
26229         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
26230         (insv): Retain the zero_extract in the expansion.
26231
26232         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
26233         (bswaphi2, bitinvert, revw): Likewise.
26234
26235         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
26236         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
26237         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
26238         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
26239         (bitset, bitset_in_memory): Likewise.
26240         (bitinvert, bitinvert_in_memory): Likewise.
26241         (bitclr, bitclr_in_memory): Likewise.
26242         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
26243         (rx_strend, rx_cmpstrn): Likewise.
26244         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
26245         (bitop peep2 patterns): Remove.
26246
26247         * config/rx/rx.c (rx_match_ccmode): New.
26248         * config/rx/rx-protos.h: Update.
26249         * config/rx/rx.md (abssi2): Clobber, don't set flags.
26250         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
26251         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
26252         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
26253         (fix_truncsfsi2, floatsisf2): Likewise.
26254         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
26255         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
26256         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
26257         (*subsi3_flags, *xorsi3_flags): New.
26258
26259         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
26260
26261         * config/rx/rx.c (rx_print_operand): Remove workaround for
26262         unsplit comparison operations.
26263
26264         * config/rx/rx.md (movsicc): Split after reload.
26265         (*movsicc): Merge *movsieq and *movsine via match_operator.
26266         (*stcc): New pattern.
26267
26268         * config/rx/rx.c (rx_float_compare_mode): Remove.
26269         * config/rx/rx.h (rx_float_compare_mode): Remove.
26270         * config/rx/rx.md (cstoresi4): Split after reload.
26271         (*sccc): New pattern.
26272
26273         * config/rx/predicates.md (label_ref_operand): New.
26274         (rx_z_comparison_operator): New.
26275         (rx_zs_comparison_operator): New.
26276         (rx_fp_comparison_operator): New.
26277         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
26278         Validate that the flags are set properly for the comparison.
26279         (rx_gen_cond_branch_template): Remove.
26280         (rx_cc_modes_compatible): Remove.
26281         (mode_from_flags): New.
26282         (flags_from_code): Rename from flags_needed_for_conditional.
26283         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
26284         (rx_select_cc_mode): Likewise.
26285         (rx_split_fp_compare): New.
26286         (rx_split_cbranch): New.
26287         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
26288         (*cbranchsi4): Use match_operator and rx_split_cbranch.
26289         (*cbranchsf4): Similarly.
26290         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
26291         match_operator and rx_split_cbranch.
26292         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
26293         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
26294         (*cmpsi): Rename from cmpsi.
26295         (*tstsi): Rename from tstsi.
26296         (*cmpsf): Rename from cmpsf; use CC_Fmode.
26297         (*conditional_branch): Rename from conditional_branch.
26298         (*reveresed_conditional_branch): Remove.
26299         (b<code>): Remove expander.
26300         * config/rx/rx-protos.h: Update.
26301
26302         * config/rx/rx.c (rx_compare_redundant): Remove.
26303         * config/rx/rx.md (cmpsi): Don't use it.
26304         * config/rx/rx-protos.h: Update.
26305
26306         * config/rx/rx-modes.def (CC_F): New mode.
26307         * config/rx/rx.c (rx_select_cc_mode): New.
26308         * config/rx/rx.h (SELECT_CC_MODE): Use it.
26309         * config/rx/rx-protos.h: Update.
26310
26311 2011-01-17  Richard Henderson  <rth@redhat.com>
26312
26313         * except.c (dump_eh_tree): Fix stray ; after for statement.
26314
26315 2011-01-17  Richard Guenther  <rguenther@suse.de>
26316
26317         PR tree-optimization/47313
26318         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
26319         handling before copying the body.  Properly deal with
26320         by-reference result in SSA form.
26321
26322 2011-01-17  Ian Lance Taylor  <iant@google.com>
26323
26324         PR target/47219
26325         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
26326         (struct_value_alias_set): Don't define.
26327         (sparc_option_override): Don't set sparc_sr_alias_set and
26328         struct_value_alias_set.
26329         (save_or_restore_regs): Use gen_frame_mem rather than calling
26330         set_mem_alias_set.
26331         (sparc_struct_value_rtx): Likewise.
26332
26333 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
26334
26335         PR target/47318
26336         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
26337         (_mm_maskstore_pd): Likewise.
26338         (_mm_maskload_ps): Likewise.
26339         (_mm_maskstore_ps): Likewise.
26340         (_mm256_maskload_pd): Change mask to __m256i.
26341         (_mm256_maskstore_pd): Likewise.
26342         (_mm256_maskload_ps): Likewise.
26343         (_mm256_maskstore_ps): Likewise.
26344
26345         * config/i386/i386-builtin-types.def: Updated.
26346         (ix86_expand_special_args_builtin): Likewise.
26347
26348         * config/i386/i386.c (bdesc_special_args): Update
26349         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
26350         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
26351         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
26352         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
26353
26354         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
26355         Use <avxpermvecmode> on mask register.
26356         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
26357
26358 2011-01-17  Olivier Hainque  <hainque@adacore.com>
26359             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26360             Eric Botcazou  <ebotcazou@adacore.com>
26361
26362         PR target/46655
26363         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
26364         if <= USHRT_MAX in 32-bit mode.
26365
26366 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26367
26368         * doc/install.texi (Configuration, Specific): Wrap long
26369         lines in examples.  Allow line wrapping in long options
26370         and URLs where beneficial for PDF output.
26371
26372 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
26373
26374         * config/mips/mips.c (mips_classify_symbol): Don't return
26375         SYMBOL_PC_RELATIVE for nonlocal labels.
26376
26377 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
26378
26379         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
26380
26381 2011-01-15  Jan Hubicka  <jh@suse.cz>
26382
26383         PR tree-optimization/47276
26384         * ipa.c (function_and_variable_visibility): Do not try to mark alias
26385         declarations as needed.
26386
26387 2011-01-15  Martin Jambor  <mjambor@suse.cz>
26388
26389         * common.opt (fdevirtualize): New flag.
26390         * doc/invoke.texi (Option Summary): Document it.
26391         * opts.c (default_options_table): Add devirtualize flag.
26392         * ipa-prop.c (detect_type_change): Return immediately if
26393         devirtualize flag is not set.
26394         (detect_type_change_ssa): Likewise.
26395         (compute_known_type_jump_func): Likewise.
26396         (ipa_analyze_virtual_call_uses): Likewise.
26397
26398 2011-01-14  Martin Jambor  <mjambor@suse.cz>
26399
26400         PR tree-optimization/45934
26401         PR tree-optimization/46302
26402         * ipa-prop.c (type_change_info): New type.
26403         (stmt_may_be_vtbl_ptr_store): New function.
26404         (check_stmt_for_type_change): Likewise.
26405         (detect_type_change): Likewise.
26406         (detect_type_change_ssa): Likewise.
26407         (compute_complex_assign_jump_func): Check for dynamic type change.
26408         (compute_complex_ancestor_jump_func): Likewise.
26409         (compute_known_type_jump_func): Likewise.
26410         (compute_scalar_jump_functions): Likewise.
26411         (ipa_analyze_virtual_call_uses): Likewise.
26412         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
26413
26414 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26415
26416         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
26417         * config/i386/i386.opt (msse5): New Alias.
26418
26419 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26420
26421         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
26422         * config/sparc/linux64.h (CC1_SPEC): Likewise.
26423         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
26424         * config/sparc/sparc.h (CC1_SPEC): Likewise.
26425
26426 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26427
26428         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
26429         -mcpu options.
26430         * config/sparc/linux64.h (CC1_SPEC): Likewise.
26431         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
26432         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
26433         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
26434         Likewise.
26435         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
26436
26437 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26438
26439         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
26440
26441 2011-01-14  Mike Stump  <mikestump@comcast.net>
26442
26443         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
26444         * config/fr30/fr30.md: Likweise
26445         (movsi_push): Likewise.
26446         (movsi_pop): Likewise.
26447         (enter_func): Likewise.
26448         * config/moxie/moxie.md (movsi_push): Likewise.
26449         (movsi_pop): Likewise.
26450
26451 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26452
26453         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
26454         %{no_archive} %{exact_version}.
26455         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
26456         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
26457         %{no_archive} %{exact_version}.
26458         * config/mips/openbsd.h (LINK_SPEC): Likewise.
26459         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
26460         * config/mips/vxworks.h: Likewise.
26461
26462 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26463
26464         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
26465
26466 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26467
26468         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
26469         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
26470
26471 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26472
26473         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
26474         -nodefaultlib.
26475
26476 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26477
26478         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
26479         for mcpu not cpu.
26480         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
26481         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
26482         not cpu.
26483         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
26484         Don't handle -shlib.
26485
26486 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26487
26488         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
26489         (CC1_SPEC): Don't handle -profile.
26490
26491 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26492
26493         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
26494         * config/mips/mips.h (CC1_SPEC): Likewise.
26495
26496 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26497
26498         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
26499         * config/mips/mips.h (CC1_SPEC): Likewise.
26500
26501 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26502
26503         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
26504         * config/m32r/linux.h (LINK_SPEC): Likewise.
26505         * config/mips/linux.h (LINK_SPEC): Likewise.
26506         * config/mips/linux64.h (LINK_SPEC): Likewise.
26507         * config/sparc/linux.h (LINK_SPEC): Likewise.
26508         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
26509         LINK_SPEC): Likewise.
26510         * config/xtensa/linux.h (LINK_SPEC): Likewise.
26511
26512 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26513
26514         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
26515         %{version:-v}.
26516         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
26517
26518 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26519
26520         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
26521         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
26522
26523 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26524
26525         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
26526
26527 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26528
26529         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
26530         supports -Bstatic/-Bdynamic.
26531         * configure: Regenerate.
26532
26533 2011-01-14  Jan Hubicka  <jh@suse.cz>
26534             Jack Howarth  <howarth@bromo.med.uc.edu>
26535
26536         PR target/46037
26537         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
26538         when checking debug_info_level. Test write_symbols instead of
26539         debug_hooks->var_location when setting flag_var_tracking_uninit.
26540
26541 2011-01-14  Richard Guenther  <rguenther@suse.de>
26542
26543         PR tree-optimization/47179
26544         * target.def (ref_may_alias_errno): New target hook.
26545         * targhooks.h (default_ref_may_alias_errno): Declare.
26546         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
26547         (default_ref_may_alias_errno): New function.
26548         * target.h (struct ao_ref_s): Declare.
26549         * tree-ssa-alias.c: Include target.h.
26550         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
26551         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
26552         (targhooks.o): Likewise.
26553         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
26554         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
26555
26556 2011-01-14  Richard Guenther  <rguenther@suse.de>
26557
26558         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
26559
26560 2011-01-14  Richard Guenther  <rguenther@suse.de>
26561
26562         PR tree-optimization/47280
26563         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
26564         return CFG changes.
26565         (tree_ssa_forward_propagate_single_use_vars): Deal with
26566         CFG changes from associate_plusminus.
26567
26568 2011-01-14  Richard Guenther  <rguenther@suse.de>
26569
26570         PR middle-end/47281
26571         Revert
26572         2011-01-11  Richard Guenther  <rguenther@suse.de>
26573
26574         PR tree-optimization/46076
26575         * tree-ssa.c (useless_type_conversion_p): Conversions from
26576         unprototyped to empty argument list function types are useless.
26577
26578 2011-01-14  Richard Guenther  <rguenther@suse.de>
26579
26580         PR tree-optimization/47286
26581         * tree-ssa-structalias.c (new_var_info): Register variables are global.
26582
26583 2011-01-14  Martin Jambor  <mjambor@suse.cz>
26584
26585         PR middle-end/46823
26586         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
26587
26588 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
26589
26590         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
26591         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26592         * config/xtensa/xtensa.c (xtensa_libcall_value,
26593         xtensa_function_value_regno_p): New functions.
26594         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
26595
26596 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
26597
26598         PR c++/47213
26599         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
26600         PE specific hook.
26601         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
26602         New function prototype.
26603         * config/i386/winnt.c (i386_pe_assemble_visibility):
26604         Warn only if attribute was specified by user.
26605
26606 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
26607
26608         PR target/47251
26609         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
26610         floating point.
26611         (floatunsdidf2_fcfidu): Ditto.
26612
26613 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26614
26615         * config/s390/s390.c (print_operand_address): Replace 'error' with
26616         'output_operand_lossage'.
26617         (print_operand): Likewise.
26618
26619 2011-01-13  Jeff Law  <law@redhat.com>
26620
26621         PR rtl-optimization/39077
26622         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
26623         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
26624         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
26625         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
26626         * gcse.c (prune_insertions_deletions): New function.
26627         (compute_pre_data): Use it.
26628
26629 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
26630
26631         PR debug/PR46973
26632         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
26633         static function.
26634         (prune_unused_types_mark): Use it.
26635
26636 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
26637
26638         PR rtl-optimization/45352
26639         * sel-sched.c: Update copyright years.
26640         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
26641         in the advancing loop when we have issued issue_rate insns.
26642
26643 2011-01-12  Richard Henderson  <rth@redhat.com>
26644
26645         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
26646         (TARGET_MD_ASM_CLOBBERS): New.
26647
26648         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
26649         (TARGET_DELEGITIMIZE_ADDRESS): New.
26650
26651         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
26652         (clzsi2, *bsch): New patterns.
26653
26654         * config/mn10300/mn10300.md (INT): New mode iterator.
26655         (*mov<INT>_clr): New pattern, and peep2 to generate it.
26656
26657         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
26658         flag_split_wide_types.
26659
26660         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
26661         (mn10300_trampoline_init): Rewrite without a template, an immediate
26662         load and a direct branch.
26663         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
26664
26665 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
26666
26667         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
26668         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
26669         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
26670         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
26671
26672 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
26673
26674         PR debug/47209
26675         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
26676         of type.
26677
26678 2011-01-12  Jan Hubicka  <jh@suse.cz>
26679
26680         PR driver/47244
26681         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
26682         (PLUGIN_COND_CLOSE): New macro.
26683         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
26684
26685 2011-01-12  Richard Guenther  <rguenther@suse.de>
26686
26687         PR lto/47259
26688         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
26689         register variables in a MEM_REF.
26690
26691 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
26692
26693         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
26694         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
26695         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
26696         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
26697         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
26698         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
26699         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
26700         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
26701         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
26702         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
26703         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
26704         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
26705         * config/gnu-user.h: New.  Copied from linux.h.
26706         (LINUX_TARGET_STARTFILE_SPEC): Rename to
26707         GNU_USER_TARGET_STARTFILE_SPEC.
26708         (LINUX_TARGET_ENDFILE_SPEC): Rename to
26709         GNU_USER_TARGET_ENDFILE_SPEC.
26710         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
26711         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
26712         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
26713         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
26714         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
26715         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
26716         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
26717         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
26718         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
26719         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
26720         * config/arm/linux-eabi.h (CC1_SPEC): Use
26721         GNU_USER_TARGET_CC1_SPEC.
26722         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
26723         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
26724         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
26725         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
26726         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
26727         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
26728         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
26729         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
26730
26731 2011-01-12  Richard Guenther  <rguenther@suse.de>
26732
26733         PR other/46946
26734         * doc/invoke.texi (ffast-math): Document it is turned on
26735         with -Ofast.
26736
26737 2011-01-12  Jan Hubicka  <jh@suse.cz>
26738
26739         PR tree-optimization/47233
26740         * opts.c (common_handle_option): Disable ipa-reference with profile
26741         feedback.
26742
26743 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
26744
26745         * c-parser.c (c_parser_objc_at_property_declaration): Improved
26746         error message.
26747
26748 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
26749
26750         * c-parser.c (c_lex_one_token): Updated and reindented some
26751         comments.  No changes in code.
26752
26753 2011-01-11  Ian Lance Taylor  <iant@google.com>
26754
26755         * godump.c (go_output_var): Don't output the variable if there is
26756         already a type with the same name.
26757
26758 2011-01-11  Ian Lance Taylor  <iant@google.com>
26759
26760         * godump.c (go_format_type): Don't generate float80.
26761
26762 2011-01-11  Richard Henderson  <rth@redhat.com>
26763
26764         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
26765         declaration.  Rewrite for both speed and size.
26766         (mn10300_address_cost_1): Remove.
26767         (mn10300_register_move_cost): New.
26768         (mn10300_memory_move_cost): New.
26769         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
26770         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
26771         extensions, shifts, BSWAP, CLZ.
26772         (mn10300_wide_const_load_uses_clr): Remove.
26773         (TARGET_REGISTER_MOVE_COST): New.
26774         (TARGET_MEMORY_MOVE_COST): New.
26775         * config/mn10300/mn10300-protos.h: Update.
26776         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
26777
26778         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
26779         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
26780         * config/mn10300/mn10300-protos.h: Update.
26781         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
26782         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
26783         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
26784         (*test_int_bitfield, *test_byte_bitfield): Remove.
26785         (*bit_test, *subreg_bit_test): Remove.
26786         * config/mn10300/predicates.md (const_8bit_operand): Remove.
26787
26788         * config/mn10300/constraints.md ("c"): Rename from "A".
26789         ("A", "D"): New constraint letters.
26790         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
26791         (fmssf4, fnmasf4, fnmssf4): Likewise.
26792
26793         * config/mn10300/mn10300.md (isa): New attribute.
26794         (enabled): New attribute.
26795
26796         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
26797         (abssf2, negsf2): Define only for hardware fp.
26798         (sqrtsf2): Reformat.
26799         (addsf3, subsf3, mulsf3): Merge expander and insn.
26800
26801         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
26802         (DEBUGGER_AUTO_OFFSET): Remove.
26803         (DEBUGGER_ARG_OFFSET): Remove.
26804
26805         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
26806         Emit register stores with the same offsets as the hardware.
26807         (mn10300_store_multiple_operation): Don't check that the register
26808         save offsets are monotonic.
26809         * config/mn10300/mn10300-protos.h: Update.
26810
26811         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
26812
26813         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
26814         in terms of the value on the stack, not the MDR register.
26815
26816 2011-01-11  Jan Hubicka  <jh@suse.cz>
26817
26818         PR lto/45721
26819         PR lto/45375
26820         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
26821         (symbol_alias_set_destroy, symbol_alias_set_contains,
26822         propagate_aliases_backward): Declare.
26823         * lto-streamer-out.c (struct sets): New sturcture.
26824         (trivally_defined_alias): New function.
26825         (output_alias_pair_p): Rewrite.
26826         (output_unreferenced_globals): Fix output of alias pairs.
26827         (produce_symtab): Likewise.
26828         * ipa.c (function_and_variable_visibility): Set weak alias destination
26829         as needed in lto.
26830         * varasm.c (symbol_alias_set_t): Remove.
26831         (symbol_alias_set_destroy): Export.
26832         (propagate_aliases_forward, propagate_aliases_backward): New functions
26833         based on ...
26834         (compute_visible_aliases): ... this one; remove.
26835         (trivially_visible_alias): New
26836         (trivially_defined_alias): New.
26837         (remove_unreachable_alias_pairs): Rewrite.
26838         (finish_aliases_1): Reorganize code checking if alias is defined.
26839         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
26840         in LTO mode.
26841
26842 2011-01-11  Richard Guenther  <rguenther@suse.de>
26843
26844         PR tree-optimization/46076
26845         * tree-ssa.c (useless_type_conversion_p): Conversions from
26846         unprototyped to empty argument list function types are useless.
26847
26848 2011-01-11  Richard Guenther  <rguenther@suse.de>
26849
26850         PR middle-end/45235
26851         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
26852         volatile MEMs as MEM_READONLY_P.
26853
26854 2011-01-11  Richard Guenther  <rguenther@suse.de>
26855
26856         PR tree-optimization/47239
26857         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
26858
26859 2011-01-11  Jeff Law  <law@redhat.com>
26860
26861         PR tree-optimization/47086
26862         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
26863         IVs from statements that might throw.
26864
26865 2011-01-10  Jan Hubicka  <jh@suse.cz>
26866
26867         PR lto/45375
26868         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
26869
26870 2011-01-10  Jan Hubicka  <jh@suse.cz>
26871
26872         PR lto/45375
26873         * profile.c (read_profile_edge_counts): Ignore profile inconistency
26874         when correcting profile.
26875
26876 2011-01-10  Jan Hubicka  <jh@suse.cz>
26877
26878         PR lto/46083
26879         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
26880         DECL_FINI_PRIORITY.
26881         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
26882         Restore DECL_FINI_PRIORITY.
26883
26884 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26885
26886         * doc/gimple.texi: Fix quoting of multi-word return values in
26887         @deftypefn statements.  Ensure presence of return value.  Wrap
26888         overlong @deftypefn lines.
26889         (is_gimple_operand, is_gimple_min_invariant_address): Remove
26890         descriptions of removed functions.
26891         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
26892         of multi-word return value in @deftypefn statement.
26893
26894 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26895
26896         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
26897         (Conditional Expressions, Logical Operators)
26898         (Statement and operand traversals): Do not indent smallexample
26899         code.  Fix duplicate function argument in example.
26900
26901 2011-01-10  Jeff Law  <law@redhat.com>
26902
26903         PR tree-optimization/47141
26904         * ipa-split.c (split_function): Handle case where we are
26905         returning a value and the return block has a virtual operand phi.
26906
26907 2011-01-10  Jan Hubicka  <jh@suse.cz>
26908
26909         PR tree-optimization/47234
26910         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
26911         (pass_feedback_split_functions): Declare.
26912         * passes.c (init_optimization_passes): Add ipa-split as subpass of
26913         tree-profile.
26914         * ipa-split.c (gate_split_functions): Update comments; disable
26915         split-functions for profile_arc_flag and branch_probabilities.
26916         (gate_feedback_split_functions): New function.
26917         (execute_feedback_split_functions): New function.
26918         (pass_feedback_split_functions): New global var.
26919
26920 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
26921
26922         PR lto/46760
26923         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
26924         calling gimple_call_set_cannot_inline.
26925
26926 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
26927
26928         * config/darwin-sections.def: Remove unused section.
26929
26930 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
26931
26932         PR c++/47218
26933         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
26934
26935 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
26936
26937         PR objc/47232
26938         * c-parser.c (c_parser_declaration_or_fndef): Improved
26939         error message.
26940
26941 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
26942
26943         * config/i386/winnt.c (i386_pe_start_function): Make sure
26944         to switch back to function's section.
26945
26946 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
26947
26948         PR gcc/46902
26949         PR testsuite/46912
26950         * plugin.c: Move include of dlfcn.h from here...
26951         * system.h: ... to here.
26952
26953 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26954
26955         * doc/cpp.texi (C++ Named Operators): Fix markup for header
26956         file name.
26957         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
26958         two extra empty pages in PDF output.
26959
26960 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
26961
26962         PR objc/47078
26963         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
26964         for error recovery purposes behave as if it was not specified so
26965         that the default type is usd.
26966
26967 2011-01-07  Jan Hubicka  <jh@suse.cz>
26968
26969         PR tree-optmization/46469
26970         * ipa.c (function_and_variable_visibility): Clear needed flags on
26971         nodes with external decls; handle weakrefs merging correctly.
26972
26973 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
26974
26975         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
26976         not false.
26977
26978 2011-01-07  Jan Hubicka  <jh@suse.cz>
26979
26980         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
26981         and no longer claim that gold is required for linker plugin.
26982         * configure: Regenerate.
26983         * gcc.c (PLUGIN_COND): New macro.
26984         (LINK_COMMAND_SPEC): Use it.
26985         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
26986         * config.in (HAVE_LTO_PLUGIN): New.
26987         * configure.ac (--with-lto-plugin): New parameter; autodetect
26988         HAVE_LTO_PLUGIN.
26989
26990 2011-01-07  Jan Hubicka  <jh@suse.cz>
26991
26992         PR tree-optimization/46367
26993         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
26994         when we can update original.
26995         (cgraph_mark_inline_edge): Sanity check.
26996         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
26997
26998 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26999
27000         * config/spu/spu.h (ASM_COMMENT_START): Define.
27001
27002 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
27003
27004         PR driver/42445
27005         * gcc.c (%>S): New.
27006         (SWITCH_KEEP_FOR_GCC): Likewise.
27007         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
27008         (do_spec_1): Handle "%>".
27009
27010         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
27011
27012 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
27013
27014         PR target/47201
27015         * config/i386/i386.c (ix86_delegitimize_address): If
27016         simplify_gen_subreg fails, return orig_x.
27017
27018         PR bootstrap/47187
27019         * value-prof.c (gimple_stringop_fixed_value): Handle
27020         lhs of the call properly.
27021
27022 2011-01-07  Jan Hubicka  <jh@suse.cz>
27023
27024         PR lto/45375
27025         * lto-opt.c (lto_reissue_options): Set flag_shlib.
27026
27027 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
27028
27029         * target.def (function_switched_text_sections): New hook.
27030         * doc/tm.texi: Regenerated.
27031         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
27032         * final.c (default_function_switched_text_sections): New.
27033         (final_scan_insn): Call function_switched_text_sections when a
27034         mid-function section change occurs.
27035         * output.h (default_function_switched_text_sections): Declare.
27036         * config/darwin-protos.h (darwin_function_switched_text_sections):
27037         Likewise.
27038         * config/darwin.c (darwin_function_switched_text_sections): New.
27039         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
27040
27041 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
27042
27043         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
27044         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
27045         the secondary code fragment when outputting for DWARF == 2.
27046
27047 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
27048
27049         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27050         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
27051         Remove.
27052         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
27053         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27054
27055 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
27056
27057         PR debug/46704
27058         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
27059         when it is not empty.
27060
27061 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
27062
27063         Bobcat Enablement
27064         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
27065         (case ${target}): Add btver1.
27066         * config/i386/driver-i386.c (host_detect_local_cpu): Let
27067         -march=native recognize btver1 processors.
27068         * config/i386/i386-c.c (ix86_target_macros_internal): Add
27069         btver1 def_and_undef
27070         * config/i386/i386.c (struct processor_costs btver1_cost): New
27071         btver1 cost table.
27072         (m_BTVER1): New definition.
27073         (m_AMD_MULTIPLE): Includes m_BTVER1.
27074         (initial_ix86_tune_features): Add btver1 tune.
27075         (processor_target_table): Add btver1 entry.
27076         (static const char *const cpu_names): Add btver1 entry.
27077         (software_prefetching_beneficial_p): Add btver1.
27078         (ix86_option_override_internal): Add btver1 instruction sets.
27079         (ix86_issue_rate): Add btver1.
27080         (ix86_adjust_cost): Add btver1.
27081         * config/i386/i386.h (TARGET_BTVER1): New definition.
27082         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
27083         (enum processor_type): Add PROCESSOR_BTVER1.
27084         * config/i386/i386.md (define_attr "cpu"): Add btver1.
27085
27086 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27087
27088         PR target/43309
27089         * config/i386/i386.c (legitimize_tls_address)
27090         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
27091         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
27092         (tls_initial_exec_64_sun): New pattern.
27093
27094 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
27095
27096         * doc/invoke.texi (Overall Options): Improve wording and markup
27097         of the description of -wrapper.
27098
27099 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
27100
27101         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
27102         rdynamic, threads): New Driver options.
27103
27104 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27105
27106         PR target/38118
27107         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
27108         if coming from .tdata.
27109         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
27110
27111 2011-01-06  Jan Hubicka  <jh@suse.cz>
27112
27113         PR lto/47188
27114         * collect2.c (main): Do not enable LTOmode when plugin is active.
27115
27116 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27117
27118         PR other/45915
27119         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
27120         --version output if supported.
27121         * configure: Regenerate.
27122
27123 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
27124
27125         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
27126         Driver options.
27127
27128 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
27129
27130         PR c/47150
27131         * c-convert.c (convert): When converting a complex expression
27132         other than COMPLEX_EXPR to a different complex type, ensure
27133         c_save_expr is called instead of save_expr, unless in_late_binary_op.
27134         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
27135         when converting COMPLEX_TYPE.
27136
27137 2011-01-06  Ira Rosen  <irar@il.ibm.com>
27138
27139         PR tree-optimization/47139
27140         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
27141         only the last reduction value is used outside the loop.  Update
27142         documentation.
27143
27144 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
27145
27146         * config/rtems.opt: New.
27147         * config.gcc (*-*-rtems*): Use rtems.opt.
27148
27149 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
27150
27151         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
27152         processors do not support 3DNow instructions.
27153
27154 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27155
27156         * config/spu/spu.c (spu_option_override): Set parameter
27157         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
27158
27159 2011-01-05  Jan Hubicka  <jh@suse.cz>
27160
27161         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
27162         at the command line.
27163
27164 2011-01-05  Martin Jambor  <mjambor@suse.cz>
27165
27166         PR lto/47162
27167         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
27168         deltas on streamed outgoing edges.
27169         (output_node_opt_summary): Output info for outgoing edges only when
27170         the node is in new parameter set.
27171         (output_cgraph_opt_summary): New parameter set, passed to the two
27172         aforementioned functions.  Update its forward declaration and its
27173         callee too.
27174
27175 2011-01-05  Tom Tromey  <tromey@redhat.com>
27176
27177         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
27178         operator to c_finish_omp_atomic.
27179         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
27180         (build_unary_op): Update.
27181         (build_modify_expr): Update.
27182         (build_asm_expr): Update.
27183
27184 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27185
27186         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
27187         newly inserted insns.
27188         (pad_bb): Likewise.
27189         (spu_emit_branch_hint): Likewise.
27190         (insert_hbrp_for_ilb_runout): Likewise.
27191         (spu_machine_dependent_reorg): Call df_finish_pass after
27192         schedule_insns returns.
27193
27194 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27195
27196         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
27197
27198 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
27199
27200         PR tree-optimization/47005
27201         * tree-sra.c (struct access): Add 'non_addressable' bit.
27202         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
27203         (decide_one_param_reduction): Return 0 if the parameter is passed by
27204         reference and one of the accesses in the group is non_addressable.
27205
27206 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
27207
27208         PR tree-optimization/47056
27209         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
27210         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
27211         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
27212
27213 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
27214
27215         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
27216         initializer.  Skip view conversions from aggregate types.
27217
27218 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
27219
27220         PR bootstrap/47055
27221         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
27222
27223 2011-01-04  Philipp Thomas  <pth@suse.de>
27224
27225         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
27226         obvious typo.
27227
27228 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27229
27230         * function.c (thread_prologue_and_epilogue_insns): Do not crash
27231         on empty epilogue sequences.
27232
27233 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
27234
27235         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
27236         non-static): New Driver options.
27237
27238 2011-01-04  Jie Zhang  <jie@codesourcery.com>
27239
27240         PR driver/47137
27241         * gcc.c (default_compilers[]): Set combinable field to 0
27242         for all assembly languages.
27243
27244 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
27245
27246         * config/mips/loongson3a.md: New file.
27247         * config/mips/mips.md: Include loongson3a.md.
27248         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
27249         TUNE_LOONGSON_3A.
27250
27251 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
27252
27253         PR middle-end/47017
27254         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
27255         instead of convert_memory_address_addr_space on the base expression.
27256
27257 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27258
27259         * config/spu/spu.c (spu_option_override): Update error text
27260         for bad -march= / -mtune= values.
27261
27262 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27263
27264         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
27265         if branch-hint optimization will be performed.
27266
27267 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
27268
27269         PR tree-optimization/47148
27270         * ipa-split.c (split_function): Convert arguments to
27271         DECL_ARG_TYPE if possible.
27272
27273         PR tree-optimization/47155
27274         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
27275         when computing uns.
27276
27277         PR rtl-optimization/47157
27278         * combine.c (try_combine): If undobuf.other_insn becomes
27279         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
27280         and set *new_direct_jump_p too.
27281
27282 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
27283
27284         PR tree-optimization/47021
27285         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
27286
27287 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
27288
27289         * gcc.c (process_command): Update copyright notice dates.
27290         * gcov.c (print_version): Likewise.
27291         * gcov-dump.c (print_version): Likewise.
27292         * mips-tfile.c (main): Likewise.
27293         * mips-tdump.c (main): Likewise.
27294
27295 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27296
27297         PR tree-optimization/46801
27298         * tree-sra.c (type_internals_preclude_sra_p): Check whether
27299         aggregate fields start at byte boundary instead of the bit-field flag.
27300
27301 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
27302
27303         PR driver/47137
27304         * gcc.c (main): Revert revision 168407.
27305
27306 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27307
27308         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
27309
27310 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27311
27312         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
27313         vector optab to expand vector/scalar shift, update gimple to vector.
27314
27315 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27316
27317         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
27318         a thunk.
27319
27320 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27321
27322         PR tree-optimization/46984
27323         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
27324         HOST_WIDE_INT.
27325         (cgraph_create_indirect_edge): Fixed line length.
27326         (cgraph_indirect_call_info): Declare.
27327         (cgraph_make_edge_direct) Update declaration.
27328         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
27329         (cgraph_create_indirect_edge): Use it.
27330         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
27331         callees.
27332         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
27333         the new thunk_delta representation.
27334         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
27335         HOST_WIDE_INT.
27336         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
27337         (ipa_read_indirect_edge_info): Likewise.
27338         * lto-cgraph.c (output_edge_opt_summary): New function.
27339         (output_node_opt_summary): Call it on all outgoing edges.
27340         (input_edge_opt_summary): New function.
27341         (input_node_opt_summary): Call it on all outgoing edges.
27342
27343 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
27344
27345         PR driver/47137
27346         * gcc.c (main): Don't check have_o when settting combine_inputs.
27347
27348 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
27349
27350         * regrename.c: Add general comment describing the pass.
27351         (struct du_head): Remove 'length' field.
27352         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
27353         (regrename_optimize): Do not sort chains.  Rework comments, add others.
27354         Force renaming to the preferred class (if any) in the first pass and do
27355         not consider registers that belong to it in the second pass.
27356         (create_new_chain): Do not set 'length' field.
27357         (scan_rtx_reg): Likewise.
27358
27359 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
27360
27361         PR tree-optimization/47140
27362         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
27363         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
27364         to bit_value_binop.
27365
27366         PR rtl-optimization/47028
27367         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
27368         parm_birth_insn instead of at the beginning of first bb.
27369
27370 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
27371
27372         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
27373         Remove the word "see" before "@pxref".
27374         * doc/rtl.texi: Remove the word "see" before "@pxref".
27375
27376 2011-01-01  Jan Hubicka  <jh@suse.cz>
27377
27378         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
27379         memory.
27380
27381 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
27382
27383         PR target/38662
27384         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
27385
27386 \f
27387 Copyright (C) 2011 Free Software Foundation, Inc.
27388
27389 Copying and distribution of this file, with or without modification,
27390 are permitted in any medium without royalty provided the copyright
27391 notice and this notice are preserved.