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 (arm_gen_constant): Set can_negate correctly
4         when code is SET.
5
6 2011-08-30  Richard Guenther  <rguenther@suse.de>
7
8         PR middle-end/48571
9         * gimple.h (maybe_fold_offset_to_address): Remove.
10         (maybe_fold_offset_to_reference): Likewise.
11         (maybe_fold_stmt_addition): Likewise.
12         (may_propagate_address_into_dereference): Likewise.
13         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
14         array references.
15         * gimple-fold.c (canonicalize_constructor_val): Likewise.
16         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
17         addresses instead.
18         (may_propagate_address_into_dereference): Remove.
19         (maybe_fold_offset_to_array_ref): Likewise.
20         (maybe_fold_offset_to_reference): Likewise.
21         (maybe_fold_offset_to_address): Likewise.
22         (maybe_fold_stmt_addition): Likewise.
23         (fold_gimple_assign): Do not reconstruct array references but
24         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
25         MEM_REF addresses.
26         (gimple_fold_stmt_to_constant_1): Likewise.
27         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
28         * gimplify.c (gimplify_conversion): Likewise.
29         (gimplify_expr): Likewise.
30
31 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
32
33         * config/i386/fmaintrin.h: New.
34         * config.gcc: Add fmaintrin.h.
35         * config/i386/i386.c
36         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
37         <IX86_BUILTIN_VFMADDSD3>: Likewise.
38         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
39         (*fmai_fmadd_<mode>): Likewise.
40         (*fmai_fmsub_<mode>): Likewise.
41         (*fmai_fnmadd_<mode>): Likewise.
42         (*fmai_fnmsub_<mode>): Likewise.
43         * config/i386/immintrin.h: Add fmaintrin.h.
44
45 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
46
47         * genautomata.c (NO_COMB_OPTION): New macro.
48         (no_comb_flag): New static variable.
49         (gen_automata_option): Handle NO_COMB_OPTION.
50         (comb_vect_p): False if no_comb_flag.
51         (add_vect): Move computation of min/max values.  Return early if
52         no_comb_flag.
53         * doc/md.texi (automata_option): Document no-comb-vect.
54
55         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
56         "__x86.get_pc_thunk".
57
58         * bb-reorder.c (insert_section_boundary_note): Only do it if
59         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
60
61 2011-08-30  Christian Bruel  <christian.bruel@st.com>
62
63         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
64         flag_profile_use.
65         
66 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
67
68         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
69         to off.  Document switch.
70         * doc/invoke.texi (-msave-toc-indirect): Ditto.
71
72 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
73
74         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
75         conditionals and comments inside macro arguments.
76
77 20011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
78              Richard Guenther  <rguenther@suse.de>
79
80         * tree.h (constant_boolean_node): Adjust prototype.
81         * fold-const.c (fold_convert_loc): Move aggregate conversion
82         leeway down.
83         (constant_boolean_node): Make value parameter boolean, add
84         vector type handling.
85         (fold_unary_loc): Use constant_boolean_node.
86         (fold_binary_loc): Preserve types properly when folding
87         COMPLEX_EXPR <__real x, __imag x>.
88         * gimplify.c (gimplify_expr): Handle vector comparison.
89         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
90         comparison.
91         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
92         comparisons.
93
94 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
95
96         PR middle-end/48722
97         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
98         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
99         (verify_rtl_sharing): Likewise and verify_rtx_sharing
100         in there too.
101         (unshare_all_rtl_in_chain): For CALL_INSNs
102         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
103
104 2011-08-29  Richard Guenther  <rguenther@suse.de>
105
106         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
107         on the built ADDR_EXPR.
108
109 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
110
111         PR debug/50215
112         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
113         before adding ENTRY_VALUE to val->locs.
114
115 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
116
117         PR bootstrap/50218
118         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
119         comp.
120
121 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
122
123         * doc/rtl.texi (simple_return): Document.
124         (parallel, PATTERN): Here too.
125         * doc/md.texi (return): Mention it's allowed to expand to simple_return
126         in some cases.
127         (simple_return): Document standard pattern.
128         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
129         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
130         * reorg.c (function_return_label, function_simple_return_label):
131         New static variables, replacing...
132         (end_of_function_label): ... this.
133         (simplejump_or_return_p): New static function.
134         (optimize_skip, steal_delay_list_from_fallthrough,
135         fill_slots_from_thread): Use it.
136         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
137         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
138         (find_end_label): Take a new arg which is one of the two return
139         rtxs.  Depending on which, set either function_return_label or
140         function_simple_return_label.  All callers changed.
141         (make_return_insns): Make both kinds.
142         (dbr_schedule): Adjust for two kinds of end labels.
143         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
144         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
145         (gen_expand, gen_split): Use ANY_RETURN_P.
146         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
147         * rtl.def (SIMPLE_RETURN): New code.
148         * ifcvt.c (find_if_case_1): Be more careful about
149         redirecting jumps to the EXIT_BLOCK.
150         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
151         returnjump_p_1): Handle SIMPLE_RETURNs.
152         * print-rtl.c (print_rtx): Likewise.
153         * rtl.c (copy_rtx): Likewise.
154         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
155         * combine.c (simplify_set): Likewise.
156         * resource.c (find_dead_or_set_registers, mark_set_resources):
157         Likewise.
158         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
159         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
160         (init_emit_regs): Initialize simple_return_rtx.
161         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
162         force_nonfallthru_and_redirect.
163         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
164         (GR_SIMPLE_RETURN): New enum value.
165         (simple_return_rtx): New macro.
166         * basic-block.h (force_nonfallthru_and_redirect): Adjust
167         declaration.
168         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
169         argument.  All callers changed.  Be careful about what kinds of
170         returnjumps to generate.
171         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
172         ix86_pad_short_function): Likewise.
173         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
174         of return.
175         * config/mips/mips.md (any_return): New code_iterator.
176         (optab): Add cases for return and simple_return.
177         (return): Expand to a simple_return.
178         (simple_return): New pattern.
179         (*<optab>, *<optab>_internal for any_return): New patterns.
180         (return_internal): Remove.
181         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
182         a simple_return_internal.
183
184 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
185
186         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
187         (vec_extract_lo_<mode>): Prevent both operands in memory.
188         (vec_extract_lo_v16hi): Ditto.
189         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
190
191 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
192
193         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
194         (*sse2_mulv4si3): Ditto.
195         (mulv2di3): Ditto.
196         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
197         notes to REG_EQUAL.
198
199 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
200
201         PR target/50202
202         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
203         when all outputs are unused.
204         (sse4_2_pcmpistr): Ditto.
205
206 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
207
208         * config/i386/i386.md (round<mode>2): New expander.
209         * config/i386/i386.c (enum ix86_builtins): Add
210         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
211         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
212         descriptions.
213         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
214         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
215
216 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
217
218         PR middle-end/50083
219         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
220         only when TARGET_C99_FUNCTIONS.
221         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
222         <BUILT_IN_RINT{,F,L}>: Ditto.
223
224 2011-08-26  Michael Matz  <matz@suse.de>
225             Jakub Jelinek  <jakub@redhat.com>
226
227         PR lto/50165
228         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
229         don't call strlen twice, use memcpy.
230
231 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
232
233         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
234         * config/i386/bmiintrin.h: Likewise.
235         * config/i386/lzcntintrin.h: Likewise.
236
237         * config/i386/immintrin.h: Include <lzcntintrin.h>,
238         <bmiintrin.h> and <bmi2intrin.h>.
239
240 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
241
242         PR target/50166
243         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
244         * configure: Regenerate.
245
246 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
247
248         PR c/50179
249         * c-typeck.c (c_process_expr_stmt): Skip over nops and
250         call mark_exp_read even if exprv is ADDR_EXPR.
251
252 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
253
254         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
255         to df_set_dead_notes_for_mw.
256
257 2011-08-26  Richard Guenther  <rguenther@suse.de>
258
259         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
260
261 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
262             Tom de Vries  <tom@codesourcery.com>
263
264         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
265         (struct ivopts_data): Add loop_single_exit_p field.
266         (niter_for_exit): Change parameter desc_p into return value.  Return
267         desc if desc->may_be_zero.  Free desc if unused.
268         (niter_for_single_dom_exit): Change return type.
269         (find_induction_variables): Handle changed return type of
270         niter_for_single_dom_exit.  Dump may_be_zero.
271         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
272         (set_use_iv_cost): Add and handle comp parameter.
273         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
274         comp argument to set_use_iv_cost.
275         (strip_wrap_conserving_type_conversions, expr_equal_p)
276         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
277         (may_eliminate_iv): Add comp parameter.  Handle new return type of
278         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
279         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
280         and may_eliminate_iv.
281         (rewrite_use_compare): Move call to iv_elimination_compare to ...
282         (may_eliminate_iv): Here.
283         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
284
285 2011-08-26  Tom de Vries  <tom@codesourcery.com>
286
287         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
288         accessing TREE_TYPE.
289
290 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
291
292         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
293         (*ior_scc_scc_cmp): Likewise
294         (*and_scc_scc): Likewise.
295         (*and_scc_scc_cmp): Likewise.
296         (*and_scc_scc_nodom): Likewise.
297         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
298
299 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
300
301         * rtlanal.c (nonzero_bits1): Handle CLRSB.
302
303 2011-08-26  Richard Guenther  <rguenther@suse.de>
304
305         * expr.c (string_constant): Handle &MEM_REF.
306
307 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
308
309         * config/arm/arm.c (struct four_ints): New type.
310         (count_insns_for_constant): Delete function.
311         (find_best_start): Delete function.
312         (optimal_immediate_sequence): New function.
313         (optimal_immediate_sequence_1): New function.
314         (arm_gen_constant): Move constant splitting code to
315         optimal_immediate_sequence.
316         Rewrite constant negation/invertion code.
317
318 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
319
320         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
321         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
322         Remove prototype. Remove static function type.
323         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
324         Add arch attribute.
325         * config/arm/constraints.md (Pj, PJ): New constraints.
326
327 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
328
329         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
330         ("cortex_a9_multiply_long"): New and use above.  Handle all
331         long multiply cases.
332         ("cortex_a9_multiply"): Handle smmul and smmulr.
333         ("cortex_a9_mac"): Handle smmla.
334
335 2011-08-25  Richard Henderson  <rth@redhat.com>
336
337         PR 50132
338         PR 49864
339         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
340         non-constant stack adjutment.
341         * expr.c (find_args_size_adjust): Break out from ...
342         (fixup_args_size_notes): ... here.
343         * rtl.h (find_args_size_adjust): Declare.
344
345 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
346
347         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
348         sse4 and sse4_noavx.
349         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
350         (*pushdf_rex64): Change Y2 register constraint to x.
351         (*movdf_internal_rex64): Ditto.
352         (*zero_extendsidi2_rex64): Ditto.
353         (*movdi_internal): Change Y2 register constraint to x
354         and update "isa" attribute.
355         (*pushdf): Ditto.
356         (*movdf internal): Ditto.
357         (zero_extendsidi2_1): Ditto.
358         (*truncdfdf_mixed): Ditto.
359         (*truncxfdf2_mixed): Ditto.
360         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
361         register constraint to x.
362         (*movv2sf_internal_rex64): Ditto.
363         (*mov<mode>_internal): Change Y2 register constraint to x
364         and add "isa" attribute.
365         (*movv2sf_internal): Ditto.
366         (*vec_extractv2si_1): Ditto.
367         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
368         constraints to x and update "isa" attribute.
369         (*vec_interleave_highv2df): Change Y3 registerconstraint
370         to x and update "isa" attribute.
371         (*vec_interleave_lowv2df): Ditto.
372         (*vec_concatv2df): Change Y2 register constraint to x and
373         update "isa" attribute.
374         (sse2_loadld): Ditto.
375         (*vec_extractv2di_1): Ditto.
376         (*vec_dupv4si): Ditto.
377         (*vec_dupv2di): Ditto.
378         (*vec_concatv4si): Ditto.
379         (vec_concatv2di): Ditto.
380         * config/i386/constraints.md (Y2): Remove.
381         (Y3): Ditto.
382         (Y4): Ditto.
383
384 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
385
386         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
387         dump_def_use_chain): Don't declare.
388         (mark_conflict, create_new_chain): Move before users.
389         (regrename_optimize): Move to near end of file.
390
391 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
392
393         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
394         (secondary_input_reload_class): Remove Prototype.
395         * config/avr/avr.c (byte_immediate_operand): Remove Function.
396         * config/avr/avr.md (setmemhi): Use u8_operand.
397         (strlenhi): Use const0_rtx for comparison.
398         * config/avr/avr.h (avr_reg_order): Remove Declaration.
399
400 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
401
402         * config/avr/avr.c (reg_class_tab): Make local to
403         avr_regno_reg_class.  Return smallest register class available.
404
405 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
406
407         * config/avr/avr.c (STR_PREFIX_P): New Define.
408         (avr_asm_declare_function_name): Use it.
409         (avr_asm_named_section): Use it.
410         (avr_section_type_flags): Use it.
411
412 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
413
414         * doc/md.texi (automata_option): Document collapse-ndfa.
415         * genautomata.c (COLLAPSE_OPTION): New macro.
416         (collapse_flag): New static variable.
417         (struct description): New member normal_decls_num.
418         (struct automaton): New members advance_ainsn and collapse_ainsn.
419         (gen_automata_option): Check for COLLAPSE_OPTION.
420         (collapse_ndfa_insn_decl): New static variable.
421         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
422         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
423         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
424         necessary.  Use normal_decls_num rather than decls_num, remove
425         test for special decls.
426         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
427         (make_automaton); Likewise.  Use the new advance_cycle_insn member
428         of struct automaton.
429         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
430         is set.
431         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
432         transition.  Create the necessary transitions for it.
433         (create_ainsns): Return void.  Take an automaton_t argument, and
434         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
435         callers changed.
436         (COLLAPSE_NDFA_VALUE_NAME): New macro.
437         (output_tables): Output code to define it.
438         (output_internal_insn_code_evaluation): Output code to accept
439         const0_rtx as collapse-ndfa transition.
440         (output_default_latencies, output_print_reservation_func,
441         output_print_description): Reorganize loops to use normal_decls_num
442         as loop bound; remove special case for advance_cycle_insn_decl.
443         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
444         (check_automata_insn_issues): Check for collapse_ainsn.
445         (expand_automate): Allocate sufficient space.  Initialize
446         normal_decls_num.
447
448 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
449
450         * config/avr/avr.md: Fix indentation from r177991.
451
452 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
453
454         * regrename.c (struct du_head): Remove member terminated.
455         (create_new_chain): Don't initialize it.
456         (scan_rtx_reg): Don't set or test it, test the open_chains_set
457         bitmap instead.
458         (tick, this_tick): New global variables, moved out of
459         regrename_optimize.
460         (current_id, open_chains, closed_chains, open_chains_set,
461         live_in_chains, live_hard_regs): Reorder declarations.
462         (dump_def_use_chain): Move function earlier in the file.
463         (rename_chains): New static function, broken out of
464         regrename_optimize.
465         (regrename_optimize): Use it.  Remove #if 0'ed code.
466
467 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
468
469         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
470
471 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
472
473         PR target/50172
474         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
475
476 2011-08-24  Richard Guenther  <rguenther@suse.de>
477
478         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
479         ref in the basic-block case.  Move stripping array-refs
480         to the place we create an access-function for it.  Remove
481         bogus stripping down a MEM_REF to its base.
482
483 2011-08-24  Richard Guenther  <rguenther@suse.de>
484
485         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
486         with -fno-strict-overflow.
487
488 2011-08-24  Richard Guenther  <rguenther@suse.de>
489
490         * tree-vectorizer.c (vect_print_dump_info): Avoid the
491         file and location clutter when dumping to dump files.
492
493 2011-08-24  Simon Baldwin  <simonb@google.com>
494
495         * gengtype-state.c (write_state): Remove timestamped header line.
496
497 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
498
499         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
500         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
501         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
502         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
503         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
504         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
505         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
506         rules.
507         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
508
509 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
510
511         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
512
513 2011-08-24  Richard Guenther  <rguenther@suse.de>
514
515         PR tree-optimization/50067
516         * tree-data-ref.c (dr_analyze_indices): Do not add an access
517         function for a MEM_REF base that has no evolution in the loop
518         nest or that is not analyzable.
519
520 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
521
522         * ira.c (ira_init_register_move_cost): Check small subclasses
523         through ira_reg_class_max_nregs and ira_available_class_regs.
524
525 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
526
527         * config/i386/constraints.md (Yp): New register constraint.
528         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
529         Yp register constraint.
530         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
531         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
532         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
533
534 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
535
536         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
537
538 2011-08-23  Mark Heffernan  <meheff@google.com>
539
540         PR middle-end/38509
541         * common.opt (Wfree-nonheap-object): New option.
542         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
543         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
544         to warning.
545         (expand_builtin): Make warning conditional.
546
547 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
548
549         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
550         (length_immediate): Handle imulx, ishiftx and rotatex.
551         (imm_disp): Ditto.
552         (isa): Add bmi2.
553         (enabled): Handle bmi2.
554         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
555         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
556         (*bmi2_umulditi3_1): New insn pattern.
557         (*bmi2_umulsidi3_1): Ditto.
558         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
559         (*bmi2_ashl<mode>3_1): New insn pattern.
560         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
561         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
562         (*bmi2_ashlsi3_1_zext): New insn pattern.
563         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
564         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
565         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
566         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
567         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
568         flags dependency.
569         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
570         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
571         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
572         flags dependency.
573         (*bmi2_rorx<mode>3_1): New insn pattern.
574         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
575         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
576         (*rotatert<mode>3_1 splitter): Ditto.
577         (*bmi2_rorxsi3_1_zext): New insn pattern.
578         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
579         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
580         (*rotatertsi3_1_zext splitter): Ditto.
581
582 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
583
584         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
585         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
586         (ix86_handle_option): Handle OPT_mbmi2 case.
587         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
588         (x86_64-*-*): Likewise.
589         * config/i386/bmi2intrin.h: New file.
590         * config/i386/cpuid.h (bit_BMI2): New.
591         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
592         BMI2 feature.
593         * config/i386/i386-c.c (ix86_target_macros_internal):
594         Conditionally define __BMI2__.
595         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
596         Handle BMI2 option.
597         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
598         (print_reg): New code.
599         (ix86_print_operand): Likewise.
600         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
601         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
602         IX86_BUILTIN_PEXT64.
603         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
604         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
605         IX86_BUILTIN_PEXT64.
606         * config/i386/i386.h (TARGET_BMI2): New.
607         * config/i386/i386.md (UNSPEC_PDEP): New.
608         (UNSPEC_PEXT): Likewise.
609         (*bmi2_bzhi_<mode>3): Likewise.
610         (*bmi2_pdep_<mode>3): Likewise.
611         (*bmi2_pext_<mode>3): Likewise.
612         * config/i386/i386.opt (mbmi2): New.
613         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
614         is defined.
615         * doc/extend.texi: Document BMI2 built-in functions.
616         * doc/invoke.texi: Document -mbmi2.
617
618 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
619
620         PR middle-end/50161
621         * simplify-rtx.c (simplify_const_unary_operation): If
622         op is CONST_INT, don't look at op_mode, but use instead mode.
623         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
624         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
625         operation and TRUNCATE/ZERO_EXTEND if needed.
626         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
627         Document that operand mode must be same as operation mode,
628         or VOIDmode.
629         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
630         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
631         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
632         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
633         use the mode of operand for the operation and add truncate
634         or zero_extend around if needed.
635         * config/c6x/c6x.md (ctzdi2): Likewise.
636         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
637
638 2011-08-12  Michael Matz  <matz@suse.de>
639
640         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
641         (gimple_expand_cfg): Merge alignment info for coalesced pointer
642         SSA names.
643
644 2011-08-23  Richard Guenther  <rguenther@suse.de>
645
646         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
647         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
648         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
649         from ...
650         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
651         (mem_refs_may_alias_p): Adjust.
652         * tree-data-ref.h (dr_may_alias_p): Adjust.
653         * tree-data-ref.c: Include tree-affine.h.
654         (dr_analyze_indices): Do nothing for the non-loop case.
655         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
656         more cases in the non-loop case.
657         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
658         calls to dr_may_alias_p.
659         (write_alias_graph_to_ascii_ecc): Likewise.
660         (write_alias_graph_to_ascii_dot): Likewise.
661         (build_alias_set_optimal_p): Likewise.
662
663 2011-08-23  Richard Guenther  <rguenther@suse.de>
664
665         PR tree-optimization/50162
666         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
667
668 2011-08-23  Richard Guenther  <rguenther@suse.de>
669
670         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
671         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
672         (create_data_ref): Also dump access functions for the created data-ref.
673
674 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
675             Kirill Yukhin  <kirill.yukhin@intel.com>
676
677         PR target/50155
678         * config/i386/sse.md (VI_AVX2): New.
679         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
680         (*<plusminus_insn><mode>3): Ditto.
681         (<sse2_avx2>_andnot<mode>3): Ditto.
682         (*andnot<mode>3): Fix order of cond operands.
683         Add asserts for correct TARGET_xxx.
684         (*<any_logic:code><mode>3): Ditto.
685
686 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
687
688         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
689         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
690         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
691         regclass argument type to reg_class_t. Change 'max' and 'v' vars
692         and return types to unsigned char. Use reg_class_contents instead
693         of class_contents.
694         (TARGET_CLASS_MAX_NREGS): Define.
695
696 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
697
698         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
699         to make computed_jump_p return true.
700
701 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
702
703         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
704         (PICFLAG_FOR_TARGET): Substitute.
705         * aclocal.m4: Regenerate.
706         * configure: Regenerate.
707
708 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
709
710         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
711         after reading in the pch.
712
713 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
714
715         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
716         * configure: Regenerated.
717
718 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
719
720         PR tree-optimization/50133
721         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
722         from stmt instead of some statement around gsi.
723
724         PR middle-end/50141
725         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
726         innerdecl is a VAR_DECL.
727
728 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
729
730         * config/i386/avx2intrin.h: New file.
731         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
732         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
733         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
734         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
735         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
736         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
737         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
738         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
739         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
740         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
741         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
742         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
743         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
744         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
745         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
746         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
747         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
748         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
749         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
750         VOID_FTYPE_PV8SI_V8SI_V8SI,
751         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
752         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
753         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
754         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
755         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
756         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
757         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
758         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
759         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
760         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
761         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
762         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
763         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
764         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
765         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
766         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
767         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
768         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
769         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
770         V4DI_FTYPE_V4DI_INT_CONVERT,
771         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
772         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
773         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
774         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
775         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
776         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
777         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
778         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
779         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
780         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
781         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
782         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
783         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
784         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
785         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
786         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
787         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
788         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
789         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
790         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
791         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
792         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
793         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
794         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
795         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
796         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
797         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
798         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
799         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
800         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
801         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
802         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
803         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
804         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
805         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
806         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
807         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
808         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
809         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
810         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
811         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
812         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
813         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
814         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
815         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
816         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
817         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
818         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
819         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
820         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
821         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
822         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
823         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
824         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
825         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
826         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
827         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
828         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
829         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
830         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
831         IX86_BUILTIN_VBROADCASTSS_PS256,
832         IX86_BUILTIN_VBROADCASTSD_PD256,
833         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
834         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
835         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
836         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
837         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
838         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
839         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
840         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
841         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
842         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
843         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
844         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
845         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
846         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
847         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
848         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
849         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
850         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
851         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
852         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
853         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
854         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
855         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
856         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
857         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
858         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
859         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
860         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
861         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
862         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
863         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
864         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
865         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
866         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
867         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
868         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
869         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
870         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
871         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
872         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
873         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
874         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
875         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
876         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
877         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
878         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
879         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
880         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
881         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
882         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
883         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
884         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
885         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
886         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
887         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
888         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
889         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
890         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
891         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
892         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
893         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
894         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
895         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
896         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
897         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
898         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
899         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
900         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
901         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
902         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
903         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
904         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
905         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
906         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
907         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
908         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
909         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
910         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
911         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
912         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
913         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
914         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
915         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
916         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
917         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
918         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
919         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
920         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
921         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
922         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
923         IX86_BUILTIN_VBROADCASTSD_PD256,
924         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
925         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
926         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
927         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
928         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
929         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
930         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
931         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
932         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
933         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
934         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
935         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
936         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
937         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
938         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
939         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
940         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
941         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
942         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
943         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
944         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
945         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
946         IX86_BUILTIN_GATHERDIV8SI.
947         (ix86_preferred_simd_mode): Support AVX2 modes.
948         (ix86_expand_args_builtin): Support AVX2 builtins.
949         (ix86_expand_special_args_builtin): Likewise.
950         (ix86_expand_builtin): Likewise.
951         * config/i386/i386.md (UNSPEC_VPERMSI): New.
952         (UNSPEC_VPERMDF): Likewise.
953         (UNSPEC_VPERMSF): Likewise.
954         (UNSPEC_VPERMDI): Likewise.
955         (UNSPEC_VPERMTI): Likewise.
956         (UNSPEC_GATHER): Likewise.
957         (ssemodesuffix): Extend.
958         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
959         is defined.
960         * config/i386/predicates.md (const1248_operand): New.
961         * config/i386/sse.md (VI1_AVX2): New mode iterator.
962         (VI2_AVX2): Likewise.
963         (VI4_AVX2): Likewise.
964         (VI8_AVX2): Likewise.
965         (VIMAX_AVX2): Likewise.
966         (SSESCALARMODE): Likewise.
967         (VI12_AVX2): Likewise.
968         (VI24_AVX2): Likewise.
969         (VI124_AVX2): Likewise.
970         (VI248_AVX2): Likewise.
971         (VI48_AVX2): Likewise.
972         (VI4SD_AVX2): Likewise.
973         (V48_AVX2): Likewise.
974         (AVX256MODE2P): Likewise.
975         (AVXMODE48P_DI): Likewise.
976         (sse2_avx2): New mode attribute.
977         (ssse3_avx2): Likewise.
978         (sse4_1_avx2): Likewise.
979         (avx_avx2): Likewise.
980         (ssebytemode): Likewise.
981         (AVXTOSSEMODE): Likewise.
982         (AVXMODE48P_DI): Likewise.
983         (gthrfirstp): Likewise.
984         (gthrlastp): Likewise.
985         (lshift): New code_iterator
986         (lshift): New code attribute.
987         (lshift): Likewise.
988         (ssescalarmodesuffix): Update.
989         (sseunpackmode): Likewise.
990         (ssepackmode): Likewise.
991         (avx2_vec_dupv4sf): New insn pattern.
992         (avx2_vec_dupv8sf): Likewise.
993         (avx2_interleave_highv4di): Likewise.
994         (avx2_interleave_lowv4di): Likewise.
995         (avx2_umulv4siv4di3): Likewise
996         (*avx2_umulv4siv4di3): Likewise
997         (avx2_pmaddwd): Likewise.
998         (*avx2_pmaddwd): Likewise.
999         (avx2_lshrqv4di3): Likewise.
1000         (avx2_lshlqv4di3): Likewise.
1001         (avx2_lshl<mode>3): Likewise.
1002         (avx2_<umaxmin:code><mode>3): Likewise.
1003         (*avx2_<umaxmin:code><mode>3): Likewise.
1004         (avx2_<smaxmin:code><mode>3): Likewise.
1005         (*avx2_<smaxmin:code><mode>3): Likewise.
1006         (avx2_eq<mode>3): Likewise.
1007         (*avx2_eq<mode>3): Likewise.
1008         (avx2_gt<mode>3): Likewise.
1009         (avx2_interleave_highv32qi): New.
1010         (avx2_interleave_lowv32qi): Likewise.
1011         (avx2_interleave_highv16hi): Likewise.
1012         (avx2_interleave_lowv16hi): Likewise.
1013         (avx2_interleave_highv8si): Likewise.
1014         (avx2_interleave_lowv8si): Likewise.
1015         (avx2_pshufd): Likewise.
1016         (avx2_pshufd_1): Likewise.
1017         (avx2_pshuflwv3): Likewise.
1018         (avx2_pshuflw_1): Likewise.
1019         (avx2_pshufhwv3): Likewise.
1020         (avx2_pshufhw_1): Likewise.
1021         (avx2_uavgv32qi3): Likewise.
1022         (*avx2_uavgv32qi3): Likewise.
1023         (avx2_uavgv16hi3): Likewise.
1024         (*avx2_uavgv16hi3): Likewise.
1025         (avx2_pmovmskb): Likewise.
1026         (avx2_phaddwv16hi3): Likewise.
1027         (avx2_phadddv8si3): Likewise.
1028         (avx2_phaddswv16hi3): Likewise.
1029         (avx2_phsubwv16hi3): Likewise.
1030         (avx2_phsubdv8si3): Likewise.
1031         (avx2_phsubswv16hi3): Likewise.
1032         (avx2_pmaddubsw256): Likewise.
1033         (avx2_umulhrswv16hi3): Likewise.
1034         (*avx2_umulhrswv16hi3): Likewise.
1035         (avx2_packusdw): Likewise.
1036         (avx2_pblendd<mode>): Likewise.
1037         (avx2_<code>v16qiv16hi2): Likewise.
1038         (avx2_<code>v8qiv8si2): Likewise.
1039         (avx2_<code>v8hiv8si2): Likewise.
1040         (avx2_<code>v4qiv4di2): Likewise.
1041         (avx2_<code>v4hiv4di2): Likewise.
1042         (avx2_<code>v4siv4di2): Likewise.
1043         (avx2_pbroadcast<mode>): Likewise.
1044         (avx2_permvarv8si): Likewise.
1045         (avx2_permv4df): Likewise.
1046         (avx2_permvarv8sf): Likewise.
1047         (avx2_permv4di): Likewise.
1048         (avx2_permv2ti): Likewise.
1049         (avx2_vec_dupv4df): Likewise.
1050         (avx2_vbroadcasti128_<mode>): Likewise.
1051         (avx2_vec_set_lo_v4di): Likewise.
1052         (avx2_vec_set_hi_v4di): Likewise.
1053         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
1054         (avx2_extracti128): Likewise.
1055         (avx2_inserti128): Likewise.
1056         (avx2_ashrvv8si): Likewise.
1057         (avx2_ashrvv4si): Likewise.
1058         (avx2_<lshift>vv8si): Likewise.
1059         (avx2_<lshift>v<mode>): Likewise.
1060         (avx2_<lshift>vv2di): Likewise.
1061         (avx2_gathersi<mode>): Likewise.
1062         (*avx2_gathersi<mode>): Likewise.
1063         (avx2_gatherdi<mode>): Likewise.
1064         (*avx2_gatherdi<mode>): Likewise.
1065         (avx2_gatherdi<mode>256): Likewise.
1066         (*avx2_gatherdi<mode>256): Likewise.
1067         (<plusminus_insn><mode>3): Use VI mode iterator.
1068         (*<plusminus_insn><mode>3): Use VI mode iterator.
1069         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
1070         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
1071         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
1072         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
1073         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
1074         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
1075         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
1076         Use VI2_AVX2 mode iterator.
1077         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
1078         Use VI2_AVX2 mode iterator.
1079         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
1080         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
1081         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
1082         Use VI4_AVX2 mode iterator.
1083         (ashr<mode>3): Use VI24_AVX2 mode iterator.
1084         (lshr<mode>3): Use VI248_AVX2 mode iterator.
1085         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
1086         Use VIMAX_AVX2 mode iterator.
1087         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
1088         Use VI mode iterator.
1089         (*andnot<mode>3): Update for AVX2.
1090         (*<any_logic:code><mode>3): Likewise.
1091         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
1092         Use VI1_AVX mode iterator.
1093         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
1094         Use VI2_AVX mode iterator.
1095         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
1096         Use VI1_AVX mode iterator.
1097         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
1098         Use VI8_AVX2 mode iterator.
1099         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
1100         Use VI1_AVX2 mode iterator.
1101         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
1102         Use VI124_AVX2 mode iterator.
1103         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
1104         Use SSESCALARMODE mode iterator.
1105         (abs<mode>2): Use VI124_AVX2 mode iterator.
1106         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
1107         Use VI8_AVX2 mode iterator.
1108         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
1109         Use VI1_AVX2 mode iterator.
1110         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
1111         Use VI1_AVX2 mode iterator.
1112         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
1113         Use VI2_AVX2 mode iterator.
1114         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
1115         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
1116         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
1117         avx_maskstore<ssemodesuffix><avxsizesuffix>.
1118         Use V48_AVX2 mode iterator.
1119         * doc/extend.texi: Document AVX2 built-in functions.
1120         * doc/invoke.texi: Document -mavx2.
1121
1122 2011-08-22  Matthias Klose <doko@debian.org>
1123
1124         Revert:
1125         2011-07-11  Arthur Loiret  <aloiret@debian.org>
1126                     Matthias Klose <doko@debian.org>
1127         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1128         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1129         convention.
1130         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1131
1132 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
1133
1134         PR bootstrap/50146
1135         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
1136         to #ifndef HONOR_REG_ALLOC_ORDER block.
1137
1138 2011-08-21  Richard Henderson  <rth@redhat.com>
1139
1140         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
1141         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
1142         * resource.c (next_insn_no_annul): Likewise.
1143         (mark_set_resources): Likewise.
1144         * reorg.c (delete_from_delay_slot): Likewise.
1145         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
1146         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
1147
1148 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
1149
1150         * config/i386/i386.md (any_div): Remove.
1151         (sgnprefix): Update for removal.
1152         (u): Ditto.
1153
1154 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
1155
1156         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
1157         for ira_reg_class_max_nregs.  Increase pressure by 1.
1158         (mark_pseudo_regno_subword_dead): Use allocno class
1159         for ira_reg_class_max_nregs.
1160
1161 2011-08-20  Richard Henderson  <rth@redhat.com>
1162
1163         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
1164         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
1165         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
1166         config/c6x/ltf.c: Adjust include path for soft-fp.
1167
1168 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1169
1170         PR other/46770
1171         * config.gcc (tm_file): Add initfini-array.h if
1172         .init_arrary/.fini_array are supported.
1173
1174         * crtstuff.c: Don't generate .ctors nor .dtors sections if
1175         USE_INITFINI_ARRAY is defined.
1176
1177         * output.h (default_elf_init_array_asm_out_constructor): New.
1178         (default_elf_fini_array_asm_out_destructor): Likewise.
1179         * varasm.c (elf_init_array_section): Likewise.
1180         (elf_fini_array_section): Likewise.
1181         (get_elf_initfini_array_priority_section): Likewise.
1182         (default_elf_init_array_asm_out_constructor): Likewise.
1183         (default_elf_fini_array_asm_out_destructor): Likewise.
1184
1185         * config/initfini-array.h: New.
1186
1187 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
1188
1189         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
1190         OK for ST_REGS and FP_REGS before taking those classes into account.
1191
1192 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
1193
1194         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
1195         before checking for annulled branches.
1196
1197 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
1198
1199         * config/i386/i386.c (ix86_binary_operator_ok): Use
1200         satisfies_constraint_L.
1201
1202 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
1203             Michael Matz  <matz@suse.de>
1204
1205         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
1206         trunc (a + copysign (nextafter (0.5, 0.0), a)).
1207
1208 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
1209
1210         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1211         * doc/tm.texi: Regenerate.
1212         * targhooks.c (default_preferred_output_reload_class): Don't use
1213         PREFERRED_OUTPUT_RELOAD_CLASS macro.
1214         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
1215
1216 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
1217
1218         PR tree-optimization/48739
1219         * tree-ssa.c: Include cfgloop.h.
1220         (execute_update_addresses_taken): When updating ssa, if in loop closed
1221         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
1222         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
1223
1224 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
1225
1226         PR rtl-optimization/49936
1227         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
1228         for calculation of max register move costs.
1229
1230 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1231
1232         * c-parser.c (c_parser_postfix_expression): Convert operands of
1233         __builtin_complex to their semantic types.
1234
1235 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
1236
1237         PR middle-end/49721
1238         * explow.c (convert_memory_address_addr_space): Also permute the
1239         conversion and addition of constant for zero-extend.
1240
1241 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1242
1243         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
1244         * doc/extend.texi (__builtin_complex): Document.
1245
1246 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1247
1248         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
1249         beyond conversions.
1250         (convert_mult_to_widen): Convert constant inputs to the right type.
1251         (convert_plusminus_to_widen): Don't automatically reject inputs that
1252         are not an SSA_NAME.
1253         Convert constant inputs to the right type.
1254
1255 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1256
1257         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
1258         to the correct type.
1259
1260 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1261
1262         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
1263         unsigned inputs of different modes.
1264         (convert_plusminus_to_widen): Likewise.
1265
1266 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1267
1268         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
1269         'type'.
1270         Use 'type' from caller, not inferred from 'rhs'.
1271         Don't reject non-conversion statements. Do return lhs in this case.
1272         (is_widening_mult_p): Add new argument 'type'.
1273         Use 'type' from caller, not inferred from 'stmt'.
1274         Pass type to is_widening_mult_rhs_p.
1275         (convert_mult_to_widen): Pass type to is_widening_mult_p.
1276         (convert_plusminus_to_widen): Likewise.
1277
1278 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1279
1280         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
1281         Ensure the the larger type is the first operand.
1282
1283 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1284
1285         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
1286         unsupported unsigned multiplies to signed.
1287         (convert_plusminus_to_widen): Likewise.
1288
1289 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1290
1291         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
1292         conversion statement separating multiply-and-accumulate.
1293
1294 2011-08-19  Richard Guenther  <rguenther@suse.de>
1295
1296         PR tree-optimization/50067
1297         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
1298         offset only if we accounted for it.
1299
1300 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1301
1302         * config/arm/arm.md (maddhidi4): Remove '*' from name.
1303         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
1304         * optabs.c (find_widening_optab_handler_and_mode): New function.
1305         (expand_widen_pattern_expr): Use find_widening_optab_handler.
1306         (expand_binop_directly): Likewise.
1307         (expand_binop): Likewise.
1308         * optabs.h (find_widening_optab_handler): New macro define.
1309         (find_widening_optab_handler_and_mode): New prototype.
1310         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
1311         type precision rules.
1312         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
1313         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
1314         (is_widening_mult_rhs_p): Allow widening by more than one mode.
1315         Explicitly disallow mis-matched input types.
1316         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
1317         input types to fit the new handler.
1318         (convert_plusminus_to_widen): Likewise.
1319
1320 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1321
1322         * expr.c (expand_expr_real_2): Use widening_optab_handler.
1323         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
1324         (gen_insn): $N now means $a must be wider than $b, not consecutive.
1325         * optabs.c (widened_mode): New function.
1326         (expand_widen_pattern_expr): Use widening_optab_handler.
1327         (expand_binop_directly): Likewise.
1328         (expand_binop): Likewise.
1329         * optabs.h (widening_optab_handlers): New struct.
1330         (optab_d): New member, 'widening'.
1331         (widening_optab_handler): New function.
1332         (set_widening_optab_handler): New function.
1333         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
1334         widening_optab_handler.
1335         (convert_plusminus_to_widen): Likewise.
1336
1337 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1338
1339         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
1340         pedantic.
1341         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
1342         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
1343
1344 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1345
1346         * opth-gen.awk: Do not declare target save/restore structures and
1347         functions if IN_RTS defined.
1348
1349 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1350
1351         PR target/49437
1352         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
1353         when stack was realigned in interrupt handler prologue.
1354
1355 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
1356
1357         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
1358         (quals_from_declspecs): Assert _Noreturn not present.
1359         (grokdeclarator): Handle _Noreturn.
1360         (build_null_declspecs): Initialize noreturn_p.
1361         (declspecs_add_scspec): Handle RID_NORETURN.
1362         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
1363         (c_parser_attributes): Handle RID_NORETURN.
1364         * c-tree.h (struct c_declspecs): Add noreturn_p.
1365         * ginclude/stdnoreturn.h: New.
1366         * Makefile.in (USER_H): Add stdnoreturn.h.
1367
1368 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
1369
1370         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
1371         (OPTION_MASK_ISA_AVX_UNSET): Update.
1372         (OPTION_MASK_ISA_AVX2_UNSET): New.
1373         (ix86_handle_option): Handle OPT_mavx2 case.
1374         * config/i386/cpuid.h (bit_AVX2): New.
1375         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1376         AVX2 feature.
1377         * config/i386/i386-c.c (ix86_target_macros_internal):
1378         Conditionally define __AVX2__.
1379         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
1380         Define "core-avx2" processor alias.  Handle avx2 option.
1381         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
1382         * config/i386/i386.h (TARGET_AVX2): New.
1383         * config/i386/i386.opt (mavx2): New.
1384         * doc/invoke.texi: Document -mavx2.
1385
1386 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
1387
1388         PR rtl-optimization/49890
1389         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
1390         subclasses of class which is superset of a pressure class.
1391
1392 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1393             Igor Zamyatin <igor.zamyatin@intel.com>
1394
1395         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
1396         with HOST_WIDE_INT for isa_flag.
1397         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
1398         isa variables.
1399
1400         * config/i386/i386.c (ix86_target_string): Replace int with
1401         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
1402         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
1403         (pta_flags): Removed.
1404         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
1405         (pta): Use HOST_WIDE_INT on flags.
1406         (builtin_isa): Use HOST_WIDE_INT on isa.
1407         (ix86_add_new_builtins): Likewise.
1408         (def_builtin): Use HOST_WIDE_INT on mask.
1409         (def_builtin_const): Likewise.
1410         (builtin_description): Likewise.
1411
1412         * config/i386/i386.opt (ix86_isa_flags): Replace int with
1413         HOST_WIDE_INT.
1414         (ix86_isa_flags_explicit): Likewise.
1415         (x_ix86_isa_flags_explicit): Likewise.
1416
1417 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
1418
1419         PR rtl-optimization/50107
1420         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
1421         (ira_hard_reg_in_set_p): New.
1422
1423         * ira-color.c (calculate_saved_nregs): New.
1424         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
1425         hard regs.
1426         (allocno_reload_assign, fast_allocation): Use
1427         ira_hard_reg_set_intersection_p instead of
1428         ira_hard_reg_not_in_set_p.
1429
1430         * ira.c (setup_reg_renumber): Use
1431         ira_hard_reg_set_intersection_p instead of
1432         ira_hard_reg_not_in_set_p.
1433         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
1434         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
1435
1436         * ira-costs.c (ira_tune_allocno_costs): Use
1437         ira_hard_reg_set_intersection_p instead of
1438         ira_hard_reg_not_in_set_p.
1439
1440 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1441             Igor Zamyatin <igor.zamyatin@intel.com>
1442
1443         * hwint.h (HOST_WIDE_INT_1): New.
1444
1445         * opt-functions.awk (switch_bit_fields): Initialize the
1446         host_wide_int field.
1447         (host_wide_int_var_name): New.
1448         (var_type_struct): Check and return HOST_WIDE_INT.
1449
1450         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
1451
1452         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
1453
1454         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
1455         check masks for HOST_WIDE_INT.
1456
1457         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
1458         (option_enabled): Likewise.
1459         (get_option_state): Likewise.
1460
1461         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
1462         to HOST_WIDE_INT.
1463
1464 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1465             Marc Glisse  <marc.glisse@normalesup.org>
1466
1467         PR libstdc++-v3/1773
1468         * target.def (decl_mangling_context): New C++ hook.
1469         * doc/tm.texi: Regenerate.
1470         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
1471         * config/sol2-protos.h: Group by source file.
1472         (solaris_cxx_decl_mangling_context): Declare.
1473         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
1474         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
1475         Use $<.
1476         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
1477         Add sol2-stubs.o to extra_objs.
1478
1479 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
1480
1481         PR target/50009
1482         * stor-layout.c (update_alignment_for_field): Don't ICE on
1483         packed flexible array members if ms_bitfield_layout_p.
1484
1485         PR target/50092
1486         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
1487         on the result before returning it.
1488
1489         PR debug/50017
1490         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
1491         is a debug stmt, use location of the first non-debug stmt after it.
1492
1493 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1494
1495         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
1496         (arm_size_rtx_costs): Likewise.
1497
1498 2011-08-18  Richard Guenther  <rguenther@suse.de>
1499
1500         * tree.h (tree_int_cst_msb): Remove.
1501         * tree.c (tree_int_cst_msb): Likewise.
1502         (tree_int_cst_sign_bit): Move from ...
1503         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
1504
1505 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1506
1507         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
1508         * doc/tm.texi: Regenerate.
1509         * target.def (rtx_costs): Add an opno parameter.
1510         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
1511         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
1512         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
1513         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
1514         * cse.c (COST_IN): Add an opno parameter.
1515         (notreg_cost): Likewise.  Update call to rtx_cost.
1516         (COST, fold_rtx): Update accordingly.
1517         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
1518         * expmed.c (emit_store_flag): Likewise.
1519         * optabs.c (avoid_expensive_constant): Add an opno parameter.
1520         Update call to rtx_cost.
1521         (expand_binop_directly, expand_binop): Likewise.
1522         (expand_twoval_binop, prepare_cmp_insn): Likewise.
1523         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
1524         (set_src_cost, get_full_set_src_cost): Update accordingly.
1525         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
1526         to target hook.
1527         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
1528         (default_adress_cost): Update calls to rtx_cost.
1529
1530         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
1531         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
1532         (arm_rtx_costs): Add an opno parameter.
1533         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
1534         adjust any recursive rtx-cost calls.
1535         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
1536         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
1537         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
1538         * config/cris/cris.c (cris_rtx_costs): Likewise.
1539         * config/frv/frv.c (frv_rtx_costs): Likewise.
1540         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
1541         * config/i386/i386.c (ix86_rtx_costs): Likewise.
1542         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
1543         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
1544         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
1545         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
1546         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
1547         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
1548         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
1549         * config/mep/mep.c (mep_rtx_cost): Likewise.
1550         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
1551         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
1552         (mips_zero_extend_cost): Add an opno parameter.
1553         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
1554         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
1555         to rtx_cost.
1556         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
1557         rtx-cost calls.
1558         * config/pa/pa.c (hppa_rtx_costs): Likewise.
1559         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
1560         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
1561         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
1562         (rs6000_debug_rtx_costs): Likewise.
1563         * config/s390/s390.c (s390_rtx_costs): Likewise.
1564         * config/score/score-protos.h (score_rtx_costs): Likewise.
1565         * config/score/score.c (score_rtx_costs): Likewise.
1566         * config/sh/sh.c (andcosts): Update call to rtx_cost.
1567         (sh_rtx_costs): Add an opno parameter.
1568         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
1569         * config/spu/spu.c (spu_rtx_costs): Likewise.
1570         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
1571         * config/v850/v850.c (v850_rtx_costs): Likewise.
1572         * config/vax/vax.c (vax_rtx_costs): Likewise.
1573         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
1574
1575 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1576
1577         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
1578         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
1579         rtx_cost.
1580         * calls.c (precompute_register_parameters): Likewise.
1581         * combine.c (expand_compound_operation, make_extraction): Likewise.
1582         (force_to_mode, distribute_and_simplify_rtx): Likewise.
1583         * dse.c (find_shift_sequence): Likewise.
1584         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
1585         * expr.c (compress_float_constant): Likewise.
1586         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
1587         * gcse.c (want_to_gcse_p): Likewise.
1588         * ifcvt.c (noce_try_sign_mask): Likewise.
1589         * loop-doloop.c (doloop_optimize): Likewise.
1590         * loop-invariant.c (create_new_invariant): Likewise.
1591         * optabs.c (avoid_expensive_constant): Likewise.
1592         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
1593         (try_replace_in_use, reload_cse_move2add): Likewise.
1594         * reload1.c (calculate_elim_costs_all_insns): Likewise.
1595         (note_reg_elim_costly): Likewise.
1596         * rtlanal.c (insn_rtx_cost): Likewise.
1597         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1598         * stmt.c (lshift_cheap_p): Likewise.
1599         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
1600         * config/avr/avr.c (final_prescan_insn): Likewise.
1601         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
1602         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
1603
1604 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1605
1606         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
1607         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
1608         * cfgloopanal.c (seq_cost): Likewise.
1609         * loop-invariant.c (create_new_invariant): Likewise.
1610         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
1611         (reload_cse_move2add): Use get_full_set_rtx_cost.
1612
1613 2011-08-18  Richard Guenther  <rguenther@suse.de>
1614
1615         * expr.c (get_inner_reference): Fix typo in last change.
1616
1617 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
1618             Joseph Myers  <joseph@codesourcery.com>
1619
1620         PR tree-optimization/49963
1621         * hwint.c (absu_hwi): Define.
1622         * hwint.h (absu_hwi): Declare.
1623         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
1624         of abs_hwi.
1625         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
1626         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
1627
1628 2011-08-18  Richard Guenther  <rguenther@suse.de>
1629
1630         * expr.c (get_inner_reference): Sign-extend the constant
1631         twos-complement offset before doing arbitrary precision
1632         arithmetic on it.
1633         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
1634         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
1635         to get_constraint_for_ptr_offset.
1636
1637 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1638
1639         PR target/50068
1640         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
1641
1642 2011-08-17  Richard Guenther  <rguenther@suse.de>
1643
1644         * tree.h (convert_to_ptrofftype_loc): New function.
1645         (convert_to_ptrofftype): Define.
1646         * builtins.c (expand_builtin_bzero): Use size_type_node.
1647         (fold_builtin_bzero): Likewise.
1648         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
1649         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
1650         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
1651         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
1652         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
1653         * fold-const.c (build_range_check): Negate using the original type.
1654         (fold_unary_loc): Use fold_build_pointer_plus_loc.
1655         * gimple-fold.c (gimple_adjust_this_by_delta): Use
1656         convert_to_ptrofftype.
1657         * gimplify.c (gimplify_self_mod_expr): Likewise.
1658         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
1659         (graphite_create_new_loop_guard): Likewise.
1660         * graphite-sese-to-poly.c (my_long_long): Remove.
1661         (scop_ivs_can_be_represented): Adjust.
1662         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
1663         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
1664         * tree-loop-distribution.c (build_size_arg_loc): Use
1665         size_type_node.
1666         (generate_memset_zero): Simplify.
1667         * tree-mudflap.c: Use fold_convert, not convert.
1668         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
1669         its own type.
1670         (determine_offset): Likewise for DR_STEP.
1671         (valid_initializer_p): Likewise.
1672         * tree-profile.c (prepare_instrumented_value): Convert the pointer
1673         to an integer type of same size.
1674         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
1675         to sizetype without need.
1676         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
1677         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
1678         * tree-ssa-loop-manip.c (create_iv): Likewise.
1679         (determine_exit_conditions): Adjust comment.
1680         * tree-ssa-pre.c (create_expression_by_pieces): Use
1681         convert_to_ptrofftype.
1682         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
1683         * varasm.c (array_size_for_constructor): Compute using double_ints.
1684
1685 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1686
1687         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
1688         when generating an integer result where possible.  Short-cut
1689         comparison against 0 also for QImode.
1690
1691 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1692
1693         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
1694         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
1695         prototype.
1696         * config/spu/spu.c (spu_legitimize_reload_address): New function.
1697         (spu_legitimate_address_p): Do not check displacement if the base
1698         is an eliminable stack register.
1699
1700 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
1701
1702         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
1703         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
1704         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
1705         m32c_preferred_output_reload_class): Remove.
1706         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
1707         Change rclass argument and return types to reg_class_t. Use
1708         reg_class_subset_p instead of class_sizes.
1709         (m32c_preferred_output_reload_class): Make static. Change rclass
1710         argument and return types to reg_class_t.
1711         (TARGET_PREFERRED_RELOAD_CLASS,
1712         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1713
1714 2011-08-16  Kai Tietz  <ktietz@redhat.com>
1715
1716         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
1717
1718 2011-08-16  Richard GUenther  <rguenther@suse.de>
1719
1720         PR tree-optimization/50082
1721         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
1722         warnings here, instead of ...
1723         (ssa_forward_propagate_and_combine): ... here.
1724         (forward_propagate_into_comparison_1): Adjust.
1725         (forward_propagate_into_comparison): Likewise.
1726         (forward_propagate_into_gimple_cond): Likewise.
1727         (forward_propagate_into_cond): Likewise.
1728
1729 2011-08-16  Andreas Schwab  <schwab@redhat.com>
1730
1731         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
1732         instead of ggc_alloc_zone_vec_rtvec_def.
1733
1734 2011-08-16  Richard Guenther  <rguenther@suse.de>
1735
1736         * tree.h (ptrofftype_p): New helper function.
1737         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
1738         offset verification.
1739         (verify_gimple_assign_binary): Likewise.
1740         * tree.c (build2_stat): Likewise.
1741         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
1742         (reset_evolution_in_loop): Likewise.
1743         * tree-chrec.h (build_polynomial_chrec): Likewise.
1744
1745 2011-08-16  Liang Wang  <lwang1@marvell.com>
1746
1747         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
1748         ggc_alloc_zone_vec_rtvec_def.
1749
1750 2011-08-16  Richard Guenther  <rguenther@suse.de>
1751
1752         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
1753         helper factored out from ...
1754         (extract_range_from_binary_expr_1): ... here.  Re-structure
1755         to not glob handling too different tree codes.
1756
1757 2011-08-15  Richard Henderson  <rth@redhat.com>
1758
1759         PR middle-end/50006
1760         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
1761         setting out to include allocate_stack named pattern as well.
1762         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
1763         * stmt.c (expand_stack_restore): Likewise.
1764
1765 2011-08-15  Richard Guenther  <rguenther@suse.de>
1766
1767         PR middle-end/50082
1768         * fold-const.c (maybe_canonicalize_comparison_1): Properly
1769         convert the modified operand to the other operand type.
1770         (fold_comparison): Call maybe_canonicalize_comparison_1 with
1771         useless conversions stripped from comparison operands.
1772
1773 2011-08-15  Richard Guenther  <rguenther@suse.de>
1774
1775         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
1776         (extract_range_from_unary_expr_1): Restructure.
1777
1778 2011-08-15  Richard Guenther  <rguenther@suse.de>
1779
1780         PR tree-optimization/50058
1781         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
1782         copy matching.
1783
1784 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1785
1786         PR target/50022
1787         * config/arm/arm.c (output_move_double): Add 2 parameters
1788         to count the number of insns emitted and whether to emit or not.
1789         Use the flag to decide when to emit and count number of instructions
1790         that will be emitted.
1791         Handle case where output_move_double might be called for calculating
1792         lengths with an invalid constant.
1793         (arm_count_output_move_double_insns): Define.
1794         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
1795         (output_move_double): Adjust prototype.
1796         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
1797         output_move_double.
1798         ("*movdi_vfp_cortexa8"): Likewise and add attribute
1799         for ce_count.
1800         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
1801         ("*movdf_soft_insn"): Likewise.
1802         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
1803         ("*cirrus_thumb2_movdi"): Likewise.
1804         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
1805         ("*cirrus_movdf_hard_insn"): Likewise.
1806         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
1807         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
1808         ("mov<mode>_internal VMMX"): Likewise.
1809         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
1810
1811 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
1812
1813         * config/i386/i386.c (ix86_expand_round_sse4): New function.
1814         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
1815         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
1816         for TARGET_ROUND.
1817
1818         (rint<mode>2): Simplify TARGET_ROUND check.
1819         (floor<mode>2): Ditto.
1820         (ceil<mode>2): Ditto.
1821         (btrunc<mode>2): Ditto.
1822
1823 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
1824
1825         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
1826         as mmix_preferred_output_reload_class.
1827
1828 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
1829
1830         * PR target/49903
1831         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
1832         (branch_unspec): New insn.
1833         (branch): Beauty farm.
1834         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
1835         to be IF_THEN_ELSE.
1836         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
1837         New static functions.
1838         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
1839         Use CONST_INT_P.  Beauty.
1840
1841 2011-08-12  Richard Henderson  <rth@redhat.com>
1842
1843         PR rtl-opt/49994
1844         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
1845         * sched-deps.c (init_deps): Clear it.
1846         (deps_analyze_insn): Consume it.
1847         (sched_analyze_insn): Fill it.
1848
1849 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1850
1851         PR target/48328
1852         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
1853         for tbh instructions.
1854
1855 2011-08-12  Diego Novillo  <dnovillo@google.com>
1856
1857         * data-streamer.h (streamer_write_zero): Rename from output_zero.
1858         (streamer_write_uhwi): Rename from lto_output_uleb128.
1859         (streamer_write_hwi): Rename from output_sleb128.
1860         (streamer_write_string): Rename from lto_output_string.
1861         (streamer_string_index): Rename from lto_string_index.
1862         (streamer_write_string_with_length): Rename from
1863         lto_output_string_with_length.
1864         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
1865         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
1866         (streamer_read_string): Rename from lto_input_string.
1867         (streamer_read_indexed_string): Rename from input_string_internal.
1868         (streamer_read_uhwi): Rename from lto_input_uleb128.
1869         (streamer_read_hwi): Rename from lto_input_sleb128.
1870         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
1871         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
1872         (streamer_write_enum): Rename from lto_output_enum.
1873         (streamer_read_enum): Rename from lto_input_enum.
1874         (streamer_write_record_start): Rename from output_record_start.
1875         (streamer_read_record_start): Rename from input_record_start.
1876         (streamer_write_bitpack): Rename from lto_output_bitpack.
1877         (streamer_read_bitpack): Rename from lto_input_bitpack.
1878         (streamer_write_char_stream): Rename from lto_output_1_stream.
1879         (streamer_read_uchar): Rename from lto_input_1_unsigned.
1880         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
1881         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
1882         (streamer_read_string_cst): Rename from input_string_cst.
1883         (streamer_read_chain): Rename from lto_input_chain.
1884         (streamer_alloc_tree): Rename from lto_materialize_tree.
1885         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
1886         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
1887         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
1888         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
1889         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
1890         (streamer_write_chain): Rename from lto_output_chain.
1891         (streamer_write_tree_header): Rename from lto_output_tree_header.
1892         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
1893         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
1894         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
1895         (streamer_write_builtin): Rename from lto_output_builtin_tree.
1896         (streamer_check_handled_ts_structures): Rename from
1897         check_handled_ts_structures.
1898         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
1899         (streamer_tree_cache_insert_at): Rename from
1900         lto_streamer_cache_insert_at.
1901         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
1902         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
1903         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
1904         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
1905         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
1906         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
1907         (write_identifier): Rename from output_identifier.
1908         (write_ts_common_tree_pointers): Rename from
1909         lto_output_ts_common_tree_pointers.
1910         (write_ts_vector_tree_pointers): Rename from
1911         lto_output_ts_vector_tree_pointers.
1912         (write_ts_complex_tree_pointers): Rename from
1913         lto_output_ts_complex_tree_pointers.
1914         (write_ts_decl_minimal_tree_pointers): Rename from
1915         lto_output_ts_decl_minimal_tree_pointers.
1916         (write_ts_decl_common_tree_pointers): Rename from
1917         lto_output_ts_decl_common_tree_pointers.
1918         (write_ts_decl_non_common_tree_pointers): Rename from
1919         lto_output_ts_decl_non_common_tree_pointers.
1920         (write_ts_decl_with_vis_tree_pointers): Rename from
1921         lto_output_ts_decl_with_vis_tree_pointers.
1922         (write_ts_field_decl_tree_pointers): Rename from
1923         lto_output_ts_field_decl_tree_pointers.
1924         (write_ts_function_decl_tree_pointers): Rename from
1925         lto_output_ts_function_decl_tree_pointers.
1926         (write_ts_type_common_tree_pointers): Rename from
1927         lto_output_ts_type_common_tree_pointers.
1928         (write_ts_type_non_common_tree_pointers): Rename from
1929         lto_output_ts_type_non_common_tree_pointers.
1930         (write_ts_list_tree_pointers): Rename from
1931         lto_output_ts_list_tree_pointers.
1932         (write_ts_vec_tree_pointers): Rename from
1933         lto_output_ts_vec_tree_pointers.
1934         (write_ts_exp_tree_pointers): Rename from
1935         lto_output_ts_exp_tree_pointers.
1936         (write_ts_block_tree_pointers): Rename from
1937         lto_output_ts_block_tree_pointers.
1938         (write_ts_binfo_tree_pointers): Rename from
1939         lto_output_ts_binfo_tree_pointers.
1940         (write_ts_constructor_tree_pointers): Rename from
1941         lto_output_ts_constructor_tree_pointers.
1942         (write_ts_target_option): Rename from lto_output_ts_target_option.
1943         (write_ts_translation_unit_decl_tree_pointers): Rename from
1944         lto_output_ts_translation_unit_decl_tree_pointers.
1945         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
1946         Rename from lto_streamer_cache_add_to_node_array.
1947         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
1948         (record_common_node): Rename from lto_record_common_node.
1949
1950         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
1951         declarations.
1952         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
1953         function.
1954         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
1955         unused function.
1956         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
1957         (ipa-reference.o): Likewise.
1958         * lto-section-out.c: Include data-streamer.h.
1959         * ipa-reference.c: Include data-streamer.h.
1960
1961 2011-08-12  Nick Clifton  <nickc@redhat.com>
1962
1963         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
1964         * doc/md.texi (cmpstrn): Note that the comparison stops if both
1965         fetched bytes are zero.
1966         (cmpstr): Likewise.
1967         (cmpmem): Note that the comparison does not stop if both of the
1968         fetched bytes are zero.
1969
1970 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
1971
1972         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
1973         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
1974         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
1975         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
1976         to integer_type_node.
1977         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
1978         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
1979         * builtins.c (expand_builtin_in): Ditto.
1980         (mathfn_built_in_1): Ditto.
1981         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
1982         BUILT_IN_IFLOOR.
1983         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
1984         BUILT_IN_IROUND.
1985         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
1986         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
1987         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
1988
1989 2011-08-12  Richard Guenther  <rguenther@suse.de>
1990
1991         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
1992
1993 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
1994
1995         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
1996
1997 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
1998
1999         * config/arm/arm.c (get_label_padding): New function.
2000         (create_fix_barrier, arm_reorg): Use it.
2001
2002 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
2003
2004         PR target/49781
2005         * config/i386/i386.md (*lea_5_zext): New.
2006         (*lea_6_zext): Ditto.
2007         * config/i386/predicates.md (const_32bit_mask): New predicate.
2008         (lea_address_operand): Reject AND.
2009         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
2010         const_32bit_mask immediate.
2011         (ix86_print_operand_address): Handle AND.
2012         (memory_address_length): Ditto.
2013
2014 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
2015             Brian Hackett  <bhackett1024@gmail.com>
2016
2017         * plugin.def: Add event for finish_decl.
2018         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
2019         * c-decl.c (finish_decl): Invoke callbacks on above event.
2020         * doc/plugins.texi: Document above event.
2021
2022 2011-08-11  Richard Guenther  <rguenther@suse.de>
2023
2024         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
2025         lookups, make looking through aggregate copies stronger.
2026
2027 2011-08-11  Richard Henderson  <rth@redhat.com>
2028
2029         PR bootstrap/50018
2030         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
2031
2032 2011-08-11  Richard Guenther  <rguenther@suse.de>
2033
2034         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
2035         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
2036         (vrp_visit_stmt): Likewise.
2037
2038 2011-08-11  Richard Guenther  <rguenther@suse.de>
2039
2040         PR middle-end/50040
2041         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
2042         load of the other piece with TREE_NO_WARNING.
2043         * tree-flow.h (warn_uninit): Adjust prototype.
2044         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
2045         the base variable and the expression that is used separately.
2046         Properly query all TREE_NO_WARNING flags.
2047         (struct walk_data): Remove.
2048         (warn_uninitialized_var): Likewise.
2049         (warn_uninitialized_vars): Do not walk gimple pieces but simply
2050         look at all SSA uses of the statement.  Handle unused memory
2051         separately.
2052         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
2053
2054 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
2055
2056         * config/rx/rx.md (movsicc): Allow register to register transfers.
2057         (*movsicc): Likewise.
2058         (*stcc): Restrict this pattern to EQ and NE compares.
2059         (*stcc_reg): New pattern.  Works for any comparison but only for
2060         register transfers.
2061
2062 2011-08-11   Diego Novillo  <dnovillo@google.com>
2063
2064         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
2065         Call stream_write_tree instead of output_record_start.
2066         (lto_output_ts_binfo_tree_pointers): Likewise.
2067
2068         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
2069         Convert it to a macro.
2070         (stream_read_tree): Likewise.
2071
2072         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
2073         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
2074
2075         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
2076         and tree_read_bitfields.
2077         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
2078         (lto_write_tree): Call it.
2079         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
2080         * streamer-hooks.h (struct streamer_hooks): Remove fields
2081         name, is_streamable and alloc_tree. Update all users.
2082         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
2083         (lto_materialize_tree): ... here.
2084         Handle CALL_EXPR codes.
2085         Remove call to lto_streamer_cache_append.
2086         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
2087         * tree-streamer.h (tree_read_bitfields): Declare.
2088
2089         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
2090         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
2091         * tree-streamer.h (stream_read_tree): New.  Replace all calls
2092         to lto_input_tree with it.
2093         (stream_write_tree): New.  Replace all calls to lto_output_tree,
2094         lto_output_tree_ref and lto_output_tree_or_ref with it.
2095         * lto-streamer-in.c (lto_read_tree): Inline code from
2096         lto_streamer_read_tree.
2097         (lto_input_tree): Move from tree-streamer-in.c.
2098         * lto-streamer-out.c (lto_output_tree_ref): Make static.
2099         Remove handling of NULL values for EXPR.
2100         Do not handle EXPRs that are not indexable.
2101         (lto_write_tree): Move from tree-streamer-out.c.
2102         Inline lto_streamer_write_tree.
2103         (lto_output_tree): Move from tree-streamer-out.c.
2104         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
2105         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
2106         (lto_preload_common_nodes): Likewise.
2107         Remove assertions and adjustments for nodes
2108         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
2109         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
2110         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
2111         * lto-streamer.h (lto_input_tree): Declare.
2112         (lto_output_tree_ref): Remove.
2113         * streamer-hooks.h (struct streamer_hooks): Remove fields
2114         preload_common_nodes, indexable_with_decls_p,
2115         pack_value_fields, unpack_value_fields and output_tree_header.
2116         Update all users.
2117         * tree-streamer-in.c (lto_materialize_tree): Make extern.
2118         (lto_input_tree_pointers): Likewise.
2119         (lto_read_tree): Move to lto-streamer-in.c.
2120         (lto_input_integer_cst): Make extern.
2121         (lto_get_pickled_tree): Likewise.
2122         (lto_get_builtin_tree): Likewise.
2123         (lto_input_tree): Move to lto-streamer-in.c.
2124         * tree-streamer-out.c (pack_value_fields): Make extern.
2125         (lto_output_tree_or_ref): Remove.  Replace all callers with
2126         calls to stream_write_tree.
2127         (lto_output_builtin_tree): Make extern.
2128         (lto_streamer_write_tree): Inline into lto_write_tree.
2129         (lto_output_tree_pointers): Make extern.
2130         (lto_output_tree_header): Likewise.
2131         (lto_output_integer_cst): Likewise.
2132         (lto_write_tree): Move to lto-streamer-out.c.
2133         (lto_output_tree): Likewise.
2134         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
2135         (preload_common_nodes): Likewise.
2136         (lto_streamer_cache_create): Call it.
2137         * tree-streamer.h: Include streamer-hooks.h.
2138         (stream_write_tree): New.
2139         (stream_read_tree): New.
2140         (lto_input_tree): Remove.
2141         (lto_materialize_tree): Declare.
2142         (lto_input_tree_pointers): Declare.
2143         (lto_get_pickled_tree): Declare.
2144         (lto_get_builtin_tree): Declare.
2145         (lto_input_integer_cst): Declare.
2146         (lto_output_tree_header): Declare.
2147         (pack_value_fields): Declare.
2148         (lto_output_tree_pointers): Declare.
2149         (lto_output_integer_cst): Declare.
2150         (lto_output_builtin_tree): Declare.
2151
2152 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2153
2154         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
2155         only if producer writes to the register given by regno.
2156
2157 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2158             Alexander Monakov  <amonakov@ispras.ru>
2159
2160         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
2161         (sched_get_condition_with_rev_uncached): ... this.  Factor out
2162         condition caching logic into ...
2163         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
2164         attempt to use cache for instructions with zero luid.
2165         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
2166         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
2167
2168 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2169
2170         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
2171         get_seqno_for_a_jump.  Update the caller.
2172         (get_seqno_by_succs): New.  Use it ...
2173         (get_seqno_for_a_jump): ... here to find a seqno if looking at
2174         predecessors was not sufficient.
2175         (get_seqno_by_preds): Include head in iteration range, exclude insn.
2176
2177 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2178
2179         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
2180
2181 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2182
2183         * sel-sched-ir.h (register_unavailable_p): Declare.
2184         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
2185         (set_unavailable_target_for_expr): ... here to properly test
2186         availability of a register.
2187         (speculate_expr): Ditto.
2188         * sel-sched.c (substitute_reg_in_expr): Ditto.
2189         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
2190
2191 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2192
2193         * sel-sched.c (verify_target_availability): Fix usage of
2194         hard_regno_nregs.
2195
2196 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2197
2198         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
2199         recognized by cannot_copy_insn_p hook and volatile instructions.
2200
2201 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2202
2203         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
2204
2205 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
2206
2207         * doc/md.texi (define_bypass): Say that the instruction names can
2208         be filename-style globs.
2209         * Makefile.in (FNMATCH_H): Define.
2210         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
2211         * genattrtab.c: Include fnmatch.h.
2212         (bypass_list): Change field name from "insn" to "pattern".
2213         (gen_bypass_1): Update accordingly.
2214         (process_bypasses): Use fnmatch to check for matches between
2215         insn reservations and define_bypasses.
2216         * genautomata.c: Include fnmatch.h.
2217         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
2218         and out_pattern respectively.
2219         (gen_bypass, insert_bypass): Update accordingly.
2220         (for_each_matching_insn, process_bypass_2, process_bypass_1)
2221         (process_bypass): New functions.
2222         (process_decls): Use process_bypass.  Update after field name changes.
2223
2224 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
2225
2226         PR target/49687
2227         * config/avr/avr.md (smulqi3_highpart): New insn.
2228         (umulqi3_highpart): New insn.
2229         (*subqi3.ashiftrt7): New insn.
2230         (smulhi3_highpart): New expander.
2231         (umulhi3_highpart): Nex expander.
2232         (*smulhi3_highpart_call): New insn.
2233         (*umulhi3_highpart_call): New insn.
2234         (extend_u): New code attribute.
2235         (extend_prefix): Rename code attribute to extend_su.
2236         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
2237         widening QI/HI multiply.
2238
2239 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
2240
2241         PR tree-optimization/50039
2242         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
2243         that DEF_STMT has a stmt_vec_info.
2244
2245 2011-08-10  Richard Guenther  <rguenther@suse.de>
2246
2247         * tree.h (can_trust_pointer_alignment): Remove.
2248         * builtins.c (can_trust_pointer_alignment): Remove.
2249
2250 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2251
2252         * c-typeck.c (scalar_to_vector): New function. Try scalar to
2253         vector conversion.
2254         (stv_conv): New enum for scalar_to_vector return type.
2255         (build_binary_op): Adjust.
2256         * doc/extend.texi: Description of scalar to vector expansion.
2257
2258 2011-08-10  Richard Guenther  <rguenther@suse.de>
2259
2260         * tree.h (get_pointer_alignment): Remove max-align argument.
2261         (get_object_alignment): Likewise.
2262         * builtins.c (get_object_alignment_1): Adjust.
2263         (get_object_alignment): Remove max-align argument.
2264         (get_pointer_alignment): Likewise.
2265         (expand_builtin_strlen): Adjust.
2266         (expand_builtin_memcpy): Likewise.
2267         (expand_builtin_mempcpy_args): Likewise.
2268         (expand_builtin_strncpy): Likewise.
2269         (expand_builtin_memset_args): Likewise.
2270         (expand_builtin_memcmp): Likewise.
2271         (expand_builtin_strcmp): Likewise.
2272         (expand_builtin_strncmp): Likewise.
2273         (get_builtin_sync_mem): Likewise.
2274         (fold_builtin_memset): Likewise.
2275         (fold_builtin_memory_op): Likewise.
2276         (expand_builtin_memory_chk): Likewise.
2277         * emit-rtl.c (get_mem_align_offset): Likewise.
2278         (set_mem_attributes_minus_bitpos): Likewise.
2279         * expr.c (expand_assignment): Likewise.
2280         (expand_expr_real_1): Likewise.
2281         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
2282         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
2283         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
2284         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2285         * value-prof.c (gimple_stringops_transform): Likewise.
2286
2287 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
2288
2289         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
2290         * doc/tm.texi: Regenerate.
2291
2292 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
2293
2294         PR target/29560
2295         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
2296         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
2297         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
2298         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
2299         shift target is unused.
2300
2301 2011-08-10  Richard Guenther  <rguenther@suse.de>
2302
2303         PR tree-optimization/49937
2304         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
2305         using get_object_alignment_1.
2306
2307 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
2308
2309         * config/i386/i386.c (ix86_emit_i387_round): New function.
2310         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
2311         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
2312         Use ix86_emit_i387_round to expand round function for i387 math.
2313         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
2314         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
2315
2316 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2317
2318         * config/sync.c: Move to ../libgcc.
2319         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
2320         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
2321         Remove.
2322
2323 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
2324
2325         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
2326         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
2327         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
2328         Change 'from' and 'to' arguments type to reg_class_t.
2329         (TARGET_REGISTER_MOVE_COST): Define.
2330
2331 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
2332
2333         PR target/50026
2334         Revert:
2335         PR rtl-optimization/49990
2336         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
2337         ignore classes which can not change mode.
2338         (find_costs_and_classes): Ditto.
2339
2340 2011-08-09  Richard Guenther  <rguenther@suse.de>
2341
2342         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
2343         information for ranges with only negative values.
2344         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
2345         BIT_AND_EXPR handling to handle ranges with negative values.
2346
2347 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
2348
2349         * config/i386/i386.c: Remove traling spaces.
2350         * config/i386/sse.md: Likewise.
2351         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
2352         (*fma_fmsub_<mode>): Likewise.
2353         (*fma_fnmadd_<mode>): Likewise.
2354         (*fma_fnmsub_<mode>): Likewise.
2355
2356 2011-08-09  Nick Clifton  <nickc@redhat.com>
2357
2358         * config/rx/rx.md: Disable extender peepholes at -O3.
2359
2360 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
2361
2362         PR target/49781
2363         * config/i386/i386.md (reload_noff_load): New.
2364         (reload_noff_store): Ditto.
2365         * config/i386/i386.c (ix86_secondary_reload): Use
2366         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
2367         double-word moves from/to non-offsetable addresses instead of
2368         generating XMM temporary.
2369
2370 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
2371
2372         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
2373
2374 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
2375
2376         PR tree-optimization/50014
2377         * tree-vect-loop.c (vectorizable_reduction): Get def type before
2378         calling vect_get_vec_def_for_stmt_copy ().
2379
2380 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
2381
2382         PR rtl-optimization/49990
2383         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
2384         ignore classes which can not change mode.
2385         (find_costs_and_classes): Ditto.
2386
2387 2011-08-08  Richard Henderson  <rth@redhat.com>
2388
2389         PR middle-end/49990
2390         * config/i386/i386.c (ix86_expand_prologue): Call
2391         for SEH target gen_prologue_use instead of gen_blockage
2392         at prologue's end.
2393
2394 2011-08-08  Martin Jambor  <mjambor@suse.cz>
2395
2396         PR middle-end/49923
2397         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
2398         memory alignment.
2399
2400 2011-08-08   Diego Novillo  <dnovillo@google.com>
2401
2402         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
2403         (DATA_STREAMER_H): New.
2404         (GIMPLE_STREAMER_H): New.
2405         (TREE_STREAMER_H): New.
2406         (STREAMER_HOOKS_H): New.
2407         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
2408         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
2409         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
2410         (data-streamer.o): New.
2411         (data-streamer-in.o): New.
2412         (data-streamer-out.o): New.
2413         (gimple-streamer-in.o): New.
2414         (gimple-streamer-out.o): New.
2415         (streamer-hooks.o): New.
2416         (tree-streamer.o): New.
2417         (tree-streamer-in.o): New.
2418         (tree-streamer-out.o): New.
2419         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
2420         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
2421         GIMPLE_STREAMER_H and TREE_STREAMER_H.
2422         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
2423         GIMPLE_STREAMER_H and TREE_STREAMER_H.
2424         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
2425         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
2426         (ipa-inline-analysis.o): Likewise.
2427         (ipa-pure-const.o): Likewise.
2428         * data-streamer-in.c: New.
2429         * data-streamer-out.c: New.
2430         * data-streamer.c: New.
2431         * data-streamer.h: New.
2432         * gimple-streamer-in.c: New.
2433         * gimple-streamer-out.c: New.
2434         * gimple-streamer.h: New.
2435         * ipa-inline-analysis.c: Include data-streamer.h.
2436         * ipa-prop.c: Include data-streamer.h.
2437         * ipa-pure-const.c: Include data-streamer.h.
2438         * lto-cgraph.c: Include data-streamer.h.
2439         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
2440         (lto_input_widest_uint_uleb128): Likewise.
2441         (lto_input_sleb128): Likewise.
2442         (bp_unpack_var_len_unsigned): Likewise.
2443         (bp_unpack_var_len_int): Likewise.
2444         * lto-section-out.c (lto_output_uleb128_stream): Move to
2445         data-streamer-out.c.
2446         (lto_output_widest_uint_uleb128_stream): Likewise.
2447         (lto_output_sleb128_stream): Likewise.
2448         (bp_pack_var_len_unsigned): Likewise.
2449         (bp_pack_var_len_int): Likewise.
2450         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
2451         (struct string_slot): Remove.  Update all users.
2452         (lto_tag_check_set): Make extern.
2453         (lto_tag_check_range): Move to lto-streamer.h.
2454         (lto_tag_check): Likewise.
2455         (hash_string_slot_node): Remove.  Update all users.
2456         (eq_string_slot_node): Remove.  Update all users.
2457         (string_for_index): Move to data-streamer-in.c
2458         (input_string_internal): Likewise.
2459         (input_string_cst): Move to tree-streamer-in.c.
2460         (input_identifier): Likewise.
2461         (lto_input_string): Move to data-streamer-in.c
2462         (input_record_start): Move to data-streamer.h
2463         (canon_file_name): Use new definition of struct string_slot
2464         from data-streamer.h.  Set S_SLOT.LEN.
2465         (lto_input_location): Make extern.
2466         (lto_input_chain): Move to tree-streamer-in.c.
2467         (lto_init_eh): Make extern.
2468         (input_phi): Move to gimple-streamer-in.c.
2469         (input_gimple_stmt): Likewise.
2470         (input_bb): Likewise.
2471         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
2472         (unpack_ts_real_cst_value_fields): Likewise.
2473         (unpack_ts_fixed_cst_value_fields): Likewise.
2474         (unpack_ts_decl_common_value_fields): Likewise.
2475         (unpack_ts_decl_wrtl_value_fields): Likewise.
2476         (unpack_ts_decl_with_vis_value_fields): Likewise.
2477         (unpack_ts_function_decl_value_fields): Likewise.
2478         (unpack_ts_type_common_value_fields): Likewise.
2479         (unpack_ts_block_value_fields): Likewise.
2480         (unpack_ts_translation_unit_decl_value_fields): Likewise.
2481         (unpack_value_fields): Likewise.
2482         (lto_materialize_tree): Likewise.
2483         (lto_input_ts_common_tree_pointers): Likewise.
2484         (lto_input_ts_vector_tree_pointers): Likewise.
2485         (lto_input_ts_complex_tree_pointers): Likewise.
2486         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
2487         (lto_input_ts_decl_common_tree_pointers): Likewise.
2488         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
2489         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
2490         (lto_input_ts_field_decl_tree_pointers): Likewise.
2491         (lto_input_ts_function_decl_tree_pointers): Likewise.
2492         (lto_input_ts_type_common_tree_pointers): Likewise.
2493         (lto_input_ts_type_non_common_tree_pointers): Likewise.
2494         (lto_input_ts_list_tree_pointers): Likewise.
2495         (lto_input_ts_vec_tree_pointers): Likewise.
2496         (lto_input_ts_exp_tree_pointers): Likewise.
2497         (lto_input_ts_block_tree_pointers): Likewise.
2498         (lto_input_ts_binfo_tree_pointers): Likewise.
2499         (lto_input_ts_constructor_tree_pointers): Likewise.
2500         (lto_input_ts_target_option): Likewise.
2501         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
2502         (lto_input_tree_pointers): Likewise.
2503         (lto_get_pickled_tree): Likewise.
2504         (lto_get_builtin_tree): Likewise.
2505         (lto_read_tree): Likewise.
2506         (lto_input_integer_cst): Likewise.
2507         (lto_input_tree): Likewise.
2508         * lto-streamer-out.c: Include data-streamer.h,
2509         gimple-streamer.h and streamer-hooks.h.
2510         (struct string_slot): Move to data-streamer.h.
2511         (hash_string_slot_node): Likewise.
2512         (eq_string_slot_node): Likewise.
2513         (lto_string_index): Move to data-streamer-out.c.
2514         (lto_output_string_with_length): Likewise.
2515         (lto_output_string): Likewise.
2516         (output_string_cst): Move to tree-streamer-out.c.
2517         (output_identifier): Likewise.
2518         (output_zero): Move to data-streamer-out.c
2519         (output_uleb128): Likewise.
2520         (output_sleb128): Likewise.
2521         (output_record_start): Move to data-streamer.h
2522         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
2523         (pack_ts_real_cst_value_fields): Likewise.
2524         (pack_ts_fixed_cst_value_fields): Likewise.
2525         (pack_ts_decl_common_value_fields): Likewise.
2526         (pack_ts_decl_wrtl_value_fields): Likewise.
2527         (pack_ts_decl_with_vis_value_fields): Likewise.
2528         (pack_ts_function_decl_value_fields): Likewise.
2529         (pack_ts_type_common_value_fields): Likewise.
2530         (pack_ts_block_value_fields): Likewise.
2531         (pack_ts_translation_unit_decl_value_fields): Likewise.
2532         (pack_value_fields): Likewise.
2533         (lto_output_chain): Likewise.
2534         (lto_output_ts_common_tree_pointers): Likewise.
2535         (lto_output_ts_vector_tree_pointers): Likewise.
2536         (lto_output_ts_complex_tree_pointers): Likewise.
2537         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
2538         (lto_output_ts_decl_common_tree_pointers): Likewise.
2539         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
2540         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
2541         (lto_output_ts_field_decl_tree_pointers): Likewise.
2542         (lto_output_ts_function_decl_tree_pointers): Likewise.
2543         (lto_output_ts_type_common_tree_pointers): Likewise.
2544         (lto_output_ts_type_non_common_tree_pointers): Likewise.
2545         (lto_output_ts_list_tree_pointers): Likewise.
2546         (lto_output_ts_vec_tree_pointers): Likewise.
2547         (lto_output_ts_exp_tree_pointers): Likewise.
2548         (lto_output_ts_block_tree_pointers): Likewise.
2549         (lto_output_ts_binfo_tree_pointers): Likewise.
2550         (lto_output_ts_constructor_tree_pointers): Likewise.
2551         (lto_output_ts_target_option): Likewise.
2552         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
2553         (lto_output_tree_pointers): Likewise.
2554         (lto_output_tree_header): Likewise.
2555         (lto_output_builtin_tree): Likewise.
2556         (lto_write_tree): Likewise.
2557         (lto_output_integer_cst): Likewise.
2558         (lto_output_tree): Likewise.
2559         (output_phi): Move to gimple-streamer-out.c.
2560         (output_gimple_stmt): Likewise.
2561         (output_bb): Likewise.
2562         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
2563         (streamer_hooks): Move to streamer-hooks.c.
2564         (check_handled_ts_structures): Move to tree-streamer.c
2565         (lto_streamer_cache_add_to_node_array): Likewise.
2566         (lto_streamer_cache_insert_1): Likewise.
2567         (lto_streamer_cache_insert): Likewise.
2568         (lto_streamer_cache_insert_at): Likewise.
2569         (lto_streamer_cache_append): Likewise.
2570         (lto_streamer_cache_lookup): Likewise.
2571         (lto_streamer_cache_get): Likewise.
2572         (lto_record_common_node): Likewise.
2573         (lto_preload_common_nodes): Likewise.
2574         (lto_streamer_cache_create): Likewise.
2575         (lto_streamer_cache_delete): Likewise.
2576         (streamer_hooks_init): Move to streamer-hooks.c.
2577         * lto-streamer.h: Include diagnostic.h
2578         (struct output_block, struct lto_input_block,
2579         struct data_in, struct bitpack_d): Remove forward declarations.
2580         (struct bitpack_d): Move to data-streamer.h.
2581         (struct lto_streamer_cache_d): Move to tree-streamer.h.
2582         (struct streamer_hooks): Move to streamer-hooks.h.
2583         (bp_pack_var_len_unsigned): Move to data-streamer.h.
2584         (bp_pack_var_len_int): Likewise.
2585         (bp_unpack_var_len_unsigned): Likewise.
2586         (bp_unpack_var_len_int): Likewise.
2587         (lto_input_location): Declare.
2588         (lto_tag_check_set): Declare.
2589         (lto_init_eh): Declare.
2590         (lto_output_tree_ref): Declare.
2591         (lto_output_location): Declare.
2592         (bitpack_create): Move to data-streamer.h.
2593         (bp_pack_value): Likewise.
2594         (lto_output_bitpack): Likewise.
2595         (lto_input_bitpack): Likewise.
2596         (bp_unpack_value): Likewise.
2597         (lto_output_1_stream): Likewise.
2598         (lto_input_1_unsigned): Likewise.
2599         (lto_output_int_in_range): Likewise.
2600         (lto_input_int_in_range): Likewise.
2601         (bp_pack_int_in_range): Likewise.
2602         (bp_unpack_int_in_range): Likewise.
2603         (lto_output_enum): Likewise.
2604         (lto_input_enum): Likewise.
2605         (bp_pack_enum): Likewise.
2606         (bp_unpack_enum): Likewise.
2607         * streamer-hooks.c: New.
2608         * streamer-hooks.h: New.
2609         * tree-streamer-in.c: New.
2610         * tree-streamer-out.c: New.
2611         * tree-streamer.c: New.
2612         * tree-streamer.h: New.
2613
2614 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2615
2616         * gthr-posix95.h: Remove.
2617         * gthr.h [_PTHREADS95]: Remove.
2618         * configure.ac (enable_threads): Remove posix95.
2619         * configure: Regenerate.
2620         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
2621
2622 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
2623
2624         PR target/49781
2625         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
2626         SImode addresses.
2627         (ix86_print_operand_address): Handle zero-extended addresses.
2628         (memory_address_length): Add length of addr32 prefix for
2629         zero-extended addresses.
2630         (ix86_secondary_reload): Handle moves to/from double-word general
2631         registers from/to zero-extended addresses.
2632         * config/i386/predicates.md (lea_address_operand): Reject
2633         zero-extended operands.
2634
2635 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
2636
2637         PR other/48007
2638         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
2639
2640         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
2641         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
2642
2643         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
2644         (_Unwind_Context_Reg_Val): Likewise.
2645         (_Unwind_Get_Unwind_Word): Likewise.
2646         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
2647         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
2648         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
2649         for EXTENDED_CONTEXT_BIT.
2650         (__frame_state_for): Likewise.
2651         (uw_init_context_1): Likewise.
2652         (_Unwind_GetGR): Updated.
2653         (_Unwind_SetGR): Likewise.
2654         (_Unwind_GetGRPtr): Likewise.
2655         (_Unwind_SetGRPtr): Likewise.
2656         (_Unwind_SetGRValue): Likewise.
2657         (_Unwind_GRByValue): Likewise.
2658         (uw_install_context_1): Likewise.
2659
2660         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
2661         ASSUME_EXTENDED_UNWIND_CONTEXT.
2662         * doc/tm.texi: Regenerated.
2663
2664 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2665
2666         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
2667
2668 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2669
2670         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
2671         Linux/GNU-specific.
2672         (DEC Alpha Options, -mtune): Likewise.
2673         (MIPS Options, -march): native is supported on IRIX.
2674
2675 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2676
2677         * config/sparc/driver-sparc.c: New file.
2678         * config/sparc/x-sparc: New file.
2679         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
2680         * config/sparc/sparc.opt (native): New value for enum processor_type.
2681         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
2682         * config/sparc/sparc.c (sparc_option_override): Abort if
2683         PROCESSOR_NATIVE gets here.
2684         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
2685         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
2686         DRIVER_SELF_SPECS): Define.
2687         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
2688         (SPARC Options, -mtune): Likewise.
2689         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
2690         Substitute result.
2691         * configure: Regenerate.
2692         * Makefile.in (EXTRA_GCC_LIBS): Set.
2693         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
2694         (cpp$(exeext)): Likewise.
2695
2696 2011-08-08  Richard Guenther  <rguenther@suse.de>
2697
2698         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
2699         split out from ...
2700         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
2701         by composition.
2702
2703 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
2704
2705         PR tree-optimization/50005
2706         * ipa-inline-analysis (remap_predicate): Add cast to
2707         silence signed/unsigned comparison warning.
2708
2709 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
2710
2711         * modulo-sched.c (get_sched_window): Use a table for the debug output.
2712         Print the current ii.
2713         (sms_schedule_by_order): Reduce whitespace in dump line.
2714
2715 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
2716
2717         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
2718         and one loop for successors.  Fix upper bound of memory range.
2719
2720 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
2721
2722         PR target/50001
2723         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
2724         (TARGET_INSTANTIATE_DECLS): New define.
2725
2726 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
2727             Mikael Morin   <mikael.morin@sfr.fr>
2728
2729         * Makefile.in (INCLUDES_FOR_TARGET): New.
2730         (LIBGCC2_CFLAGS): Use it.
2731         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
2732
2733 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
2734
2735         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
2736         frame->save_regs_using_mov calculation.
2737
2738 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
2739
2740         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
2741         * config/i386/sse.md (castmode): New mode attribute.
2742         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
2743         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
2744
2745 2011-08-05  Jan Hubicka  <jh@suse.cz>
2746
2747         PR middle-end/49494
2748         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
2749
2750 2011-08-05  Jan Hubicka  <jh@suse.cz>
2751
2752         PR middle-end/49500
2753         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
2754         handle aliases.
2755         (create_emultls_var):New function.
2756         (ipa_lower_emutls): Handle aliases correctly.
2757
2758 2011-08-05  Jan Hubicka  <jh@suse.cz>
2759
2760         PR middle-end/49735
2761         * ipa-inline.c (recursive_inlining): Look through aliases.
2762
2763 2011-08-05  Jason Merrill  <jason@redhat.com>
2764
2765         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
2766         declarations to beginning of function.
2767
2768 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
2769
2770         PR rtl-optimization/49900
2771         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
2772         ensure basic blocks stay in the same order.
2773
2774 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
2775
2776         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
2777         store_bit_field.
2778         (s390_expand_atomic): Same.
2779
2780 2011-08-05  Richard Henderson  <rth@redhat.com>
2781
2782         PR rtl-opt/49977
2783         * dwarf2cfi.c (scan_insn_after): Split out of ...
2784         (scan_trace): ... here.  Correctly place notes wrt sequences.
2785
2786 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
2787             Richard Henderson  <rth@redhat.com>
2788
2789         PR rtl-opt/49982
2790         * expr.c (fixup_args_size_notes): Look through no-op moves.
2791
2792 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
2793
2794         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
2795         of "m" for operand 0.  Add type and mode attribute.
2796         (*pushxf_nointeger"): Use "<" constraint for operand 0.
2797         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
2798         constraint instead of "o" for opreand 1.
2799         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
2800         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
2801         operand 0, alternative 4.
2802         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
2803
2804 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
2805
2806         * config/i386/predicates.md (lea_address_operand): Rename from
2807         no_seg_address_operand.
2808         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
2809         (*lea_1_zext): Ditto.
2810         (*lea_2): Ditto.
2811         (*lea_2_zext): Ditto.
2812
2813 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
2814
2815         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
2816         parts.base and parts.index.
2817         * config/i386/predicates.md (aligned_operand): Ditto.
2818         (cmpxchg8b_pic_memory_operand): Ditto.
2819
2820 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2821
2822         * config/soft-fp: Move to ../libgcc.
2823         * Makefile.in (SFP_MACHINE): Remove.
2824         (libgcc-support): Remove $(SFP_MACHINE) dependency.
2825         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
2826         * config/arm/t-arm-softfp: Move to
2827         ../libgcc/config/arm/t-softfp.
2828         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
2829         * config/c6x/t-c6x-softfp: Remove.
2830         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
2831         * config/i386/t-fprules-softfp: Move to
2832         ../libgcc/config/t-softfp-tf.
2833         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
2834         * config/ia64/t-fprules-softfp: Remove.
2835         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
2836         * config/lm32/t-fprules-softfp: Remove.
2837         * config/moxie/sfp-machine.h: Remove.
2838         * config/moxie/t-moxie-softfp: Remove.
2839         * config/rs6000/darwin-ldouble-format: Move to
2840         ../libgcc/config/rs6000/ibm-ldouble-format.
2841         * config/rs6000/darwin-ldouble.c: Move to
2842         ../libgcc/config/rs6000/ibm-ldouble.c
2843         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
2844         * config/rs6000/libgcc-ppc64.ver: Likewise.
2845         * config/rs6000/sfp-machine.h: Likewise.
2846         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
2847         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
2848         (LIB2FUNCS_EXTRA): Remove.
2849         (TARGET_LIBGCC2_CFLAGS): Remove.
2850         * config/rs6000/t-aix52: Likewise
2851         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
2852         $(srcdir)/config/rs6000/darwin-ldouble.c.
2853         (SHLIB_MAPFILES): Remove.
2854         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
2855         $(srcdir)/config/rs6000/darwin-ldouble.c.
2856         * config/rs6000/t-fprules-softfp: Move to
2857         ../libgcc/config/t-softfp-sfdf.
2858         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
2859         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
2860         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
2861         $(srcdir)/config/rs6000/darwin-ldouble.c.
2862         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
2863         * config/score/t-score-softfp: Remove.
2864         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
2865         soft-fp/t-softfp from tmake_file.
2866         (arm*-*-uclinux*): Likewise.
2867         (arm*-*-ecos-elf): Likewise.
2868         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
2869         (arm*-*-rtems*): Likewise.
2870         (arm*-*-elf): Likewise.
2871         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
2872         tmake_file.
2873         (moxie-*-uclinux*): Likewise.
2874         (moxie-*-rtems*): Likewise.
2875         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
2876         tmake_file.
2877         (lm32-*-rtems*): Likewise.
2878         (lm32-*-uclinux*): Likewise.
2879         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
2880         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
2881         (powerpc-*-linux*, powerpc64-*-linux*): Remove
2882         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
2883         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
2884         tmake_file.
2885         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
2886         tmake_file.
2887         (tic6x-*-uclinux): Likewise.
2888         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
2889         soft-fp/t-softfp from tmake_file.
2890         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
2891         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
2892         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
2893         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
2894         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
2895
2896 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2897
2898         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
2899         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
2900         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
2901         TPBIT, TPBIT_FUNCS.
2902         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
2903         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
2904         Remove.
2905         * config/arm/t-vxworks: Likewise.
2906         * config/arm/t-wince-pe: Likewise.
2907         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
2908         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2909         * config/bfin/t-bfin-elf: Likewise.
2910         * config/bfin/t-bfin-linux: Likewise.
2911         * config/bfin/t-bfin-uclinux: Likewise.
2912         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
2913         Remove.
2914         * config/fr30/t-fr30: Likewise.
2915         * config/frv/t-frv: Likewise.
2916         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
2917         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2918         * config/m32c/t-m32c: Likewise.
2919         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
2920         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2921         * config/mcore/t-mcore: Likewise.
2922         * config/mep/t-mep: Likewise.
2923         * config/microblaze/t-microblaze: Likewise.
2924         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
2925         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2926         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
2927         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2928         * config/mn10300/t-linux: Remove.
2929         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2930         * config/pdp11/t-pdp11: Likewise.
2931         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
2932         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
2933         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2934         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
2935         * config/rs6000/t-aix52: Likewise.
2936         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
2937         $(srcdir)/config/rs6000/ppc64-fp.c.
2938         * config/rs6000/t-fprules-fpbit: Remove.
2939         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
2940         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2941         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
2942         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2943         * config/sparc/t-elf: Likewise.
2944         * config/sparc/t-leon: Likewise.
2945         * config/sparc/t-leon3: Likewise.
2946         * config/spu/t-spu-elf: Likewise.
2947         (DPBIT_FUNCS): Remove.
2948         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2949         * config/v850/t-v850: Likewise.
2950         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
2951         (avr-*-*): Likewise.
2952         (h8300-*-rtems*): Set libgcc_tm_file.
2953         (h8300-*-elf*): Likewise.
2954         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
2955         tmake_file.
2956         (powerpc-*-eabisim*): Likewise.
2957         (powerpc-*-elf*): Likewise.
2958         (powerpc-*-eabialtivec*): Likewise.
2959         (powerpc-xilinx-eabi*): Likewise.
2960         (powerpc-*-eabi*): Likewise.
2961         (powerpc-*-rtems*): Likewise.
2962         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
2963         (powerpcle-*-elf*): Likewise.
2964         (powerpcle-*-eabisim*): Likewise.
2965         (powerpcle-*-eabi*): Likewise.
2966         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
2967         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
2968         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
2969         Remove.
2970
2971 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2972
2973         * Makefile.in (UNWIND_H): Remove.
2974         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
2975         ../libgcc/Makefile.in.
2976         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
2977         (LIBUNWINDDEP): Remove.
2978         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
2979         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
2980         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
2981         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
2982         Don't copy $(UNWIND_H).
2983         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
2984         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
2985         * aclocal.m4: Regenerate.
2986         * configure: Regenerate.
2987         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
2988         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
2989         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
2990         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
2991         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
2992         * config/arm/libunwind.S, config/arm/pr-support.c,
2993         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
2994         ../libgcc/config/arm.
2995         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
2996         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
2997         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
2998         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
2999         ($(T)frvend$(objext)): Likewise.
3000         * config/ia64/t-glibc (LIB2ADDEH): Remove.
3001         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
3002         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
3003         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
3004         ../libgcc/config/ia64.
3005         * config/ia64/t-hpux (LIB2ADDEH): Remove.
3006         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
3007         * config/ia64/t-vms (LIB2ADDEH): Remove.
3008         * config/ia64/vms.h (UNW_IVMS_MODE,
3009         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
3010         * config/picochip/t-picochip (LIB2ADDEH): Remove.
3011         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
3012         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
3013         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
3014         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
3015         $(srcdir)/../libgcc to refer to unwinder sources.
3016         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
3017         * config/t-darwin (LIB2ADDEH): Remove.
3018         * config/t-freebsd (LIB2ADDEH): Remove.
3019         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
3020         * config/t-libunwind-elf: Move to ../libgcc/config.
3021         * config/t-linux (LIB2ADDEH): Remove.
3022         * config/t-sol2 (LIB2ADDEH): Remove.
3023         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
3024         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
3025
3026 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
3027
3028         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
3029
3030         * doc/invoke.texi: Document core-avx-i.
3031
3032 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3033
3034         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
3035
3036 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
3037
3038         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
3039         result of multiple results reduction when extracting the final
3040         value using scalar code.
3041
3042 2011-08-05  Richard Guenther  <rguenther@suse.de>
3043
3044         PR tree-optimization/49984
3045         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
3046
3047 2011-08-05  Richard Guenther  <rguenther@suse.de>
3048
3049         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
3050         return true for constant integer ranges.
3051         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
3052         BIT_IOR_EXPR handling.
3053
3054 2011-08-04  Kai Tietz  <ktietz@redhat.com>
3055
3056         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
3057         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
3058
3059 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
3060
3061         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
3062         pattern def statement, and its access macro.
3063         (NUM_PATTERNS): Set to 5.
3064         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3065         pattern def statement.
3066         (vect_transform_loop): Likewise.
3067         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
3068         function vect_recog_over_widening_pattern ().
3069         (vect_operation_fits_smaller_type): New function.
3070         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
3071         Likewise.
3072         (vect_pattern_recog_1): Move the code that marks pattern
3073         statements to vect_mark_pattern_stmts (), and call it.  Update
3074         documentation.
3075         * tree-vect-stmts.c (vect_supportable_shift): New function.
3076         (vect_analyze_stmt): Handle pattern def statement.
3077         (new_stmt_vec_info): Initialize pattern def statement.
3078
3079 2011-08-04  Richard Henderson  <rth@redhat.com>
3080
3081         PR target/49964
3082         * config/i386/i386.c (ix86_expand_call): Don't create nested
3083         PARALLELs for TARGET_VZEROUPPER.
3084         (ix86_split_call_vzeroupper): Fix extraction of the original call.
3085         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
3086         recognize nested PARALLELs.
3087         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
3088         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
3089         *sibcall_value_pop_vzeroupper): Likewise.
3090
3091 2011-08-04  Richard Henderson  <rth@redhat.com>
3092
3093         PR middle-end/49968
3094         * calls.c (expand_call): Use fixup_args_size_notes for
3095         emit_stack_restore.
3096         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
3097         in non-standard modes.
3098
3099 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
3100
3101         * gcc.c (self_spec): New variable.
3102         (static_specs): Add self_spec.
3103         (main): Call do_self_spec on "self_spec" specs after reading
3104         user specs files.  Move compare_debug handling right after that.
3105
3106 2011-08-04  Richard Guenther  <rguenther@suse.de>
3107
3108         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
3109         (value_range_nonnegative_p): New function.
3110         (ssa_name_nonnegative_p): Use it.
3111         (value_range_constant_singleton): New function.
3112         (op_with_constant_singleton_value_range): Use it.
3113         (extract_range_from_binary_expr_1): New function, split out from ...
3114         (extract_range_from_binary_expr): ... this.  Remove fallback
3115         constant folding done here.
3116
3117 2011-08-04  Richard Guenther  <rguenther@suse.de>
3118
3119         PR tree-optimization/49806
3120         * tree-vrp.c (op_with_boolean_value_range_p): New function.
3121         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
3122         a new statement for a final conversion to bool.
3123
3124 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
3125
3126         * gengtype-state.c: Include "bconfig.h" if
3127         GENERATOR_FILE is defined, "config.h" otherwise.
3128         * gengtype.c: Likewise.
3129         * gengtype-lex.l: Likewise.
3130         * gengtype-parse.c: Likewise.
3131         * Makefile.in (gengtype-lex.o-warn): New variable.
3132         (plugin_resourcesdir): Likewise.
3133         (plugin_bindir): Likewise.
3134         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
3135         (MOSTLYCLEANFILES): Add gengtype$(exeext).
3136         (native): Depend on gengtype$(exeext) is $enable_plugin
3137         is set to "yes".
3138         (gtype.state): Depend on s-gtype. Use temporary file.
3139         (gengtype-lex.o): New rule.
3140         (gengtype-parse.o): Likewise.
3141         (gengtype-state.o): Likewise.
3142         (gengtype$(exeext)): Likewise.
3143         (install-gengtype): Likewise.
3144         (gengtype.o): Likewise.
3145         (build/gengtype.o): Depend on version.h.
3146         (build/gengtype-state): Depend on double-int.h, version.h,
3147         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
3148         (install-plugin): Depend on install-gengtype.
3149
3150 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
3151
3152         PR middle-end/49905
3153         * tree.h (init_attributes): New prototype.
3154         * attribs.c (init_attributes): No longer static.
3155
3156 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3157
3158         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
3159         maybe_suffix.
3160
3161 2011-08-03   David Li  <davidxl@google.com>
3162
3163         * tree-optimize.c (execute_fixup_cfg): Fix up entry
3164         outgoing edge counts after inlining.
3165
3166 2011-08-03   David Li  <davidxl@google.com>
3167
3168         * profile.c (compute_branch_probabilities): Compute
3169         function frequency after profile annotation.
3170
3171 2011-08-04  Alan Modra  <amodra@gmail.com>
3172
3173         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
3174         use_backchain_to_restore_sp initialisation.
3175         (rs6000_legitimate_offset_address_p): Simplify offset test.
3176
3177 2011-08-03  Richard Henderson  <rth@redhat.com>
3178
3179         * config/spu/spu.md: Use define_c_enum instead of define_constants.
3180         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
3181         (UNSPECV_NOP): New.
3182
3183 2011-08-03  Richard Henderson  <rth@redhat.com>
3184
3185         PR target/34888
3186         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
3187
3188 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
3189
3190         PR tree-optimization/49948
3191         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
3192
3193 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
3194
3195         * config/m32c/m32c.c (class_sizes): Remove.
3196         (reduce_class): Change arguments and return type to reg_class_t.
3197         Change type cc var to HARD_REG_SET. Change type best var to
3198         reg_class_t. Change type best_size var to unsigned int. Remove
3199         initialization class_sizes var. Use reg_class_size array instead
3200         of class_sizes. Use reg_class_contents array instead
3201         of class_contents.
3202
3203 2011-08-03  Richard Guenther  <rguenther@suse.de>
3204
3205         PR middle-end/49958
3206         * fold-const.c (fold_binary_loc): Only associate
3207         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
3208         overflow wraps.
3209
3210 2011-08-03  Alan Modra  <amodra@gmail.com>
3211
3212         PR rtl-optimization/49941
3213         * jump.c (mark_jump_label): Comment.
3214         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
3215         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
3216         (mark_used_flags): Don't mark RETURN.
3217
3218 2011-08-03  Richard Guenther  <rguenther@suse.de>
3219
3220         PR tree-optimization/49938
3221         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
3222         deal with a POLYNOMIAL_CHREC.
3223
3224 2011-08-03  Revital Eres  <revital.eres@linaro.org>
3225
3226         * modulo-sched.c (calculate_stage_count,
3227         calculate_must_precede_follow, get_sched_window,
3228         try_scheduling_node_in_cycle, remove_node_from_ps): Add
3229         declaration.
3230         (update_node_sched_params, set_must_precede_follow, optimize_sc):
3231         New functions.
3232         (reset_sched_times): Call update_node_sched_params.
3233         (sms_schedule): Call optimize_sc.
3234         (get_sched_window): Change function arguments.
3235         (sms_schedule_by_order): Update call to get_sched_window.
3236         Call set_must_precede_follow.
3237         (calculate_stage_count): Add function argument.
3238
3239 2011-08-02  Richard Henderson  <rth@redhat.com>
3240
3241         PR target/49864
3242         PR target/49879
3243         * reg-notes.def (REG_ARGS_SIZE): New.
3244         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
3245         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
3246         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
3247         different stack levels.
3248         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
3249         (maybe_move_args_size_note): New.
3250         (combine_stack_adjustments_for_block): Use it.
3251         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
3252         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
3253         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
3254         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
3255         (cur_cfa): New.
3256         (queued_args_size): Remove.
3257         (add_cfi_args_size): Assert size is non-negative.
3258         (stack_adjust_offset, dwarf2out_args_size): Remove.
3259         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
3260         (notice_args_size, notice_eh_throw): New.
3261         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
3262         (dwarf2out_frame_debug_adjust_cfa): Likewise.
3263         (dwarf2out_frame_debug_cfa_offset): Likewise.
3264         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
3265         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
3266         (change_cfi_row): Don't emit args_size.
3267         (maybe_record_trace_start_abnormal): Split out from ...
3268         (maybe_record_trace_start): Here.  Set args_size_undefined.
3269         (create_trace_edges): Update to match.
3270         (scan_trace): Handle REG_ARGS_SIZE.
3271         (connect_traces): Connect args_size between EH insns.
3272         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
3273         * explow.c (suppress_reg_args_size): New.
3274         (adjust_stack_1): Split out from ...
3275         (adjust_stack): ... here.
3276         (anti_adjust_stack): Use it.
3277         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
3278         * expr.c (mem_autoinc_base): New.
3279         (fixup_args_size_notes): New.
3280         (emit_single_push_insn_1): Rename from emit_single_push_insn.
3281         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
3282         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
3283         * reload1.c (reload_as_needed): Likewise.
3284         * rtl.h (fixup_args_size_notes): Declare.
3285
3286 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
3287
3288         PR bootstrap/49914
3289         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
3290         of abs.
3291         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3292         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
3293
3294 2011-08-02  Richard Henderson  <rth@redhat.com>
3295
3296         * config/h8300/h8300.c (push, pop): Return the insn.
3297         (h8300_swap_into_er6): Generate correct unwind info.
3298         (h8300_swap_out_of_er6): Likewise.
3299         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
3300         complex cfa expression.
3301         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
3302
3303 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
3304
3305         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3306
3307 2011-08-02  Richard Henderson  <rth@redhat.com>
3308
3309         PR target/49878
3310         * config/h8300/h8300.c (h8300_move_ok): New.
3311         * config/h8300/h8300-protos.h: Declare it.
3312         * config/h8300/h8300.md (P): New mode iterator.
3313         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
3314         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
3315         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
3316         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
3317         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
3318         and pushqi1_h8300hs_normal; use PRE_MODIFY and
3319         register_no_sp_elim_operand.
3320         (*pushhi1_h8300hs_<P>): Similarly.
3321         (pushqi1, pushhi1, pushhi1_h8300): Remove.
3322         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
3323
3324 2011-08-02  Richard Henderson  <rth@redhat.com>
3325
3326         PR target/49881
3327         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
3328
3329 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
3330
3331         * c-parser.c (enum c_parser_prec): New enum, moved from within
3332         c_parser_binary_expression.
3333         (c_parser_binary_expression): Add PREC argument.  Stop parsing
3334         if operator has lower or equal precedence than PREC.
3335         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
3336         callers.
3337         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
3338         Adjust c_finish_omp_atomic caller.
3339         (c_parser_omp_taskyield): New function.
3340         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
3341         (c_parser_omp_clause_name): Handle final and mergeable clauses.
3342         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
3343         functions.
3344         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
3345         and PRAGMA_OMP_CLAUSE_MERGEABLE.
3346         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
3347         (c_parser_omp_clause_reduction): Handle min and max.
3348         * c-typeck.c (c_finish_omp_clauses): Don't complain about
3349         const qualified predetermined vars in firstprivate clause.
3350         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3351         Handle MIN_EXPR and MAX_EXPR.
3352         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
3353         and OMP_CLAUSE_MERGEABLE.
3354         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
3355         and OMP_ATOMIC_CAPTURE_NEW.
3356         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
3357         OMP_CLAUSE_MERGEABLE.
3358         (omp_clause_code_name): Likewise.
3359         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3360         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
3361         and OMP_CLAUSE_MERGEABLE.
3362         (OMP_CLAUSE_FINAL_EXPR): Define.
3363         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
3364         OMP_CLAUSE_MERGEABLE.
3365         (expand_task_call): Likewise.
3366         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
3367         (expand_omp_atomic_fetch_op): Handle cases where old or new
3368         value is needed afterwards.
3369         (expand_omp_atomic): Call expand_omp_atomic_load resp.
3370         expand_omp_atomic_store.
3371         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
3372         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
3373         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
3374         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3375         * tree-nested.c (convert_nonlocal_omp_clauses,
3376         convert_local_omp_clauses): Likewise.
3377         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
3378         OMP_ATOMIC_CAPTURE_NEW): New.
3379         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
3380         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
3381         New inlines.
3382         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
3383         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
3384         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3385
3386 2011-08-02  Kai Tietz  <ktietz@redhat.com>
3387
3388         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
3389         boolean-type.
3390         (ssa_forward_propagate_and_combine): Interprete result of
3391         forward_propagate_comparison.
3392         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
3393         boolean-typed operands for comparisons.
3394
3395 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
3396
3397         * config/avr/libgcc.S: Gather related function in the
3398         same input section.
3399         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
3400         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
3401         references.
3402         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
3403         __udivmodsi4, __divmodsi4, __prologue_saves__,
3404         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
3405         __do_copy_data, __do_clear_bss, __do_global_ctors,
3406         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
3407
3408 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
3409
3410         PR target/47766
3411         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
3412         (stack_protect_test): The pattern compares ptr_mode value.
3413
3414 2011-08-02  Alan Modra  <amodra@gmail.com>
3415
3416         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
3417         note for save_LR_around_toc_setup sequence.
3418
3419 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3420
3421         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
3422
3423 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
3424             Joseph Myers  <joseph@codesourcery.com>
3425
3426         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
3427         * hwint.c: Include diagnostic-core.h.
3428         (abs_hwi): New.
3429         (gcd): Moved here...
3430         (pos_mul_hwi): New.
3431         (mul_hwi): New.
3432         (least_common_multiple): Moved here...
3433         * hwint.h (gcd): ... from here.
3434         (least_common_multiple): ... from here.
3435         (HOST_WIDE_INT_MIN): New.
3436         (HOST_WIDE_INT_MAX): New.
3437         (abs_hwi): Declared.
3438         (gcd): Declared.
3439         (pos_mul_hwi): Declared.
3440         (mul_hwi): Declared.
3441         (least_common_multiple): Declared.
3442         * omega.c (check_pos_mul): Removed.
3443         (check_mul): Removed.
3444         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
3445         mul_hwi instead of check_mul.
3446
3447 2011-08-01  Richard Henderson  <rth@redhat.com>
3448
3449         PR target/49881
3450         * config/avr/avr.h (PUSH_ROUNDING): New.
3451         * config/avr/avr.md (pushqi1): Rename from *pushqi.
3452         (*pushhi, *pushsi, *pushsf): Remove.
3453         (MPUSH): New mode iterator.
3454         (push<MPUSH>1): New expander.
3455
3456 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
3457
3458         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
3459         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
3460         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
3461         mmix_preferred_output_reload_class): Remove.
3462         * config/mmix/mmix.c (mmix_preferred_reload_class,
3463         mmix_preferred_output_reload_class): Make static. Change rclass
3464         argument and return type to reg_class_t.
3465         (TARGET_PREFERRED_RELOAD_CLASS,
3466         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3467
3468 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
3469
3470         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
3471         handling.
3472
3473 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3474
3475         PR target/47766
3476         * config/i386/i386.md (PTR): New.
3477         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
3478         (stack_protect_test): Likewise.
3479         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
3480         (stack_tls_protect_set_<mode>): Likewise.
3481         (stack_tls_protect_test_<mode>): Likewise.
3482
3483 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
3484
3485         PR target/49927
3486         * config/i386/i386.c (ix86_address_subreg_operand): New.
3487         (ix86_decompose_address): Use ix86_address_subreg_operand.
3488         (ix86_legitimate_address_p): Do not assert that subregs satisfy
3489         register_no_elim_operand in DImode.
3490
3491 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
3492
3493         PR tree-optimization/49926
3494         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
3495         in a chain doesn't have uses both inside and outside the loop.
3496
3497 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
3498
3499         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
3500         * config/avr/avr-devices.c (avr_mcu_types): Use it.
3501         * config/avr/avr-mcus.def (AVR_MCU): Use it.
3502         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
3503         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
3504         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
3505         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
3506         to detect if XJMP must not be skipped.
3507
3508 2011-08-02  Alan Modra  <amodra@gmail.com>
3509
3510         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
3511         Delete.
3512         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
3513         (rs6000_emit_prologue): Don't prematurely return when
3514         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
3515         save_toc_in_prologue case.
3516         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
3517         calls_alloca.
3518
3519 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
3520
3521         * config/avr/avr-devices.c: Delete SVN property svn:executable.
3522         * config/avr/predicates.md: Ditto.
3523         * config/avr/driver-avr.c: Ditto.
3524         * config/avr/genopt.sh: Set SVN property svn:executable to *.
3525
3526 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3527
3528         * calls.c (emit_library_call_value_1): Declare size only if
3529         BLOCK_REG_PADDING is defined.
3530
3531 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
3532
3533         PR target/49547
3534         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
3535         (x86_64-*-*): Likewise.
3536         * config/i386/i386.opt (mlzcnt): New.
3537         * config/i386/abmintrin.h: File removed.
3538         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
3539         * config/i386/lzcntintrin.h: ... here.  New file.
3540         (__lzcnt): Rename to ...
3541         (__lzcnt32): ... this.
3542         * config/i386/bmiintrin.h (head): Update copyright year.
3543         (__lzcnt_u16): Removed.
3544         (__lzcnt_u32): Likewise.
3545         (__lzcnt_u64): Likewise.
3546         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
3547         is defined, remove abmintrin.h.
3548         * config/i386/cpuid.h (bit_LZCNT): New.
3549         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3550         LZCNT feature.
3551         * config/i386/i386-c.c (ix86_target_macros_internal): Define
3552         __LZCNT__ if needed.
3553         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
3554         (ix86_option_override_internal): Handle LZCNT option.
3555         (ix86_valid_target_attribute_inner_p): Likewise.
3556         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
3557         * config/i386/i386.h (TARGET_LZCNT): New.
3558         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
3559         * config/i386/i386.md (clz<mode>2): Update insn constraint.
3560         (clz<mode>2_lzcnt): Likewise.
3561         * doc/invoke.texi: Mention -mlzcnt option.
3562         * doc/extend.texi: Likewise.
3563
3564 2011-08-01  Julian Brown  <julian@codesourcery.com>
3565
3566         * configure.ac (fixed-point): Add ARM support.
3567         * configure: Regenerate.
3568         * config/arm/arm.c (arm_fixed_mode_set): New struct.
3569         (arm_set_fixed_optab_libfunc): New.
3570         (arm_set_fixed_conv_libfunc): New.
3571         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
3572         ARM-specific names.
3573         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
3574         return values in SImode.
3575         (arm_return_in_msb): Return fixed-point types in the msb.
3576         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
3577         upwards.
3578         (arm_scalar_mode_supported_p): Support fixed-point modes.
3579         (arm_vector_mode_supported_p): Support vector fixed-point modes.
3580         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
3581         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
3582         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
3583         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
3584         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
3585         New mode iterators.
3586         (qaddsub_suf): New mode attribute.
3587         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
3588         vector modes.
3589         * config/arm/predicates.md (sat_shift_operator): New predicate.
3590         * config/arm/arm-fixed.md: New.
3591         * config/arm/arm.md: Include arm-fixed.md.
3592         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
3593
3594 2011-08-01  Julian Brown  <julian@codesourcery.com>
3595
3596         * calls.c (emit_library_call_value_1): Support padding for libcall
3597         arguments and return values.
3598         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
3599         downwards in big-endian mode.
3600
3601 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3602
3603         PR debug/49887
3604         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
3605         * config/sol2-protos.h: Likewise.
3606         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
3607         solaris_code_end.
3608         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
3609         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
3610         solaris_file_end.
3611         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
3612
3613 2011-08-01  Julian Brown  <julian@codesourcery.com>
3614
3615         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
3616
3617 2011-08-01  Julian Brown  <julian@codesourcery.com>
3618
3619         * final.c (output_addr_const): Print fixed-point constants as
3620         decimal not hex.
3621
3622 2011-08-01  Richard Guenther  <rguenther@suse.de>
3623
3624         * stor-layout.c (initialize_sizetypes): Properly sign-extend
3625         bitsiztype TYPE_MAX_VALUE.
3626
3627 2011-08-01  Julian Brown  <julian@codesourcery.com>
3628
3629         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
3630         comparison helpers.
3631
3632 2011-07-31  Richard Henderson  <rth@redhat.com>
3633
3634         * config/h8300/crti.asm: Add flags to .section directive.
3635         * config/h8300/crtn.asm: Likewise.
3636
3637 2011-07-31  Richard Henderson  <rth@redhat.com>
3638
3639         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
3640         * tree.c (build_common_tree_nodes): Likewise.
3641
3642 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
3643
3644         PR target/49880
3645         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
3646         (divsi3_i1): Likewise.
3647
3648 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3649
3650         PR tree-optimization/49749
3651         * tree-ssa-reassoc.c (get_rank): New forward declaration.
3652         (PHI_LOOP_BIAS): New macro.
3653         (phi_rank): New function.
3654         (loop_carried_phi): Likewise.
3655         (propagate_rank): Likewise.
3656         (get_rank): Add calls to phi_rank and propagate_rank.
3657
3658 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
3659
3660         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
3661         of TARGET_64BIT.
3662         (PTRDIFF_TYPE): Likewise.
3663
3664 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
3665
3666         PR target/49920
3667         * config/i386/i386.md (strset): Do not expand strset_singleop
3668         when %eax or $edi are fixed.
3669         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
3670         (*strsetsi_1): Ditto.
3671         (*strsethi_1): Ditto.
3672         (*strsetqi_1): Ditto.
3673         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
3674         (*rep_stossi): Ditto.
3675         (*rep_stosqi): Ditto.
3676         (*strlenqi_1): Ditto.
3677         (cmpstrnsi): Also fail when %ecx is fixed.
3678         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
3679         (*cmpstrnqi_1): Ditto.
3680         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
3681         (*strmovsi_1): Ditto.
3682         (*strmovhi_1): Ditto.
3683         (*strmovqi_1): Ditto.
3684         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
3685         (*rep_movsi): Ditto.
3686         (*rep_movqi): Ditto.
3687
3688 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
3689
3690         PR target/47908
3691         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
3692         Disable instruction scheduling for non-ColdFire targets.
3693         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3694
3695 2011-07-31  Revital Eres  <revital.eres@linaro.org>
3696
3697         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
3698         of anti-dep edge from a branch.
3699         (add_cross_iteration_register_deps): Create anti-dep edge from
3700         a branch.
3701
3702 2011-07-31  Revital Eres  <revital.eres@linaro.org>
3703
3704         * modulo-sched.c: Change comment.
3705         (reset_sched_times): Fix print message.
3706         (print_partial_schedule): Add print info.
3707
3708 2011-07-31  Tom de Vries  <tom@codesourcery.com>
3709
3710         PR middle-end/43513
3711         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
3712         get_object_alignment and TYPE_ALIGN.
3713
3714 2011-07-30  Tom de Vries  <tom@codesourcery.com>
3715
3716         PR middle-end/43513
3717         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
3718         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
3719
3720 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3721
3722         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
3723         <sys/sbd.h>.
3724         (cpu_types): New array.
3725         (cputype): New function.
3726         (host_detect_local_cpu): Only define buf, f if !__sgi__.
3727         Use scaninvent instead of /proc/cpuinfo if __sgi__.
3728         * config.host: Also use driver-native.o, mips/x-native on
3729         mips-sgi-irix*.
3730         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
3731         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
3732         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
3733
3734 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
3735
3736         PR middle-end/49897
3737         PR middle-end/49898
3738         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
3739         in nested parallel and outer is a gimple_reg, mark it as addressable
3740         and set its bit in task_shared_vars bitmap too.
3741
3742 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
3743
3744         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
3745
3746 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3747
3748         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
3749         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
3750         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
3751         AMASK_LOCKPFTCHOK): Define.
3752         (host_detect_local_cpu): Remove buf, f, cpu_names.
3753         Define cpu_types, implver, amask.
3754         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
3755         native CPU.
3756         * config.host: Also use driver-alpha.o, alpha/x-alpha on
3757         alpha*-dec-osf*.
3758         * config/alpha/osf5.h [__alpha__ || __alpha]
3759         (host_detect_local_cpu): Declare.
3760         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
3761         (DRIVER_SELF_SPECS): Define.
3762
3763 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
3764
3765         PR target/47715
3766         * config/i386/i386.md (*load_tp_x32): New.
3767         (*load_tp_x32_zext): Ditto.
3768         (*add_tp_x32): Ditto.
3769         (*add_tp_x32_zext): Ditto.
3770         (*load_tp_<mode>): Disable for TARGET_X32 targets.
3771         (*add_tp_<mode>): Ditto.
3772         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
3773         ptr_mode and convert to Pmode if needed.
3774
3775 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
3776
3777         PR target/49687
3778         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
3779         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
3780         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
3781         Add X to register footprint: Clobber r26/r27.
3782
3783 2011-07-29  Richard Guenther  <rguenther@suse.de>
3784
3785         * builtins.c (fold_builtin_signbit): Build the comparison
3786         with a proper type.
3787
3788 2011-07-29  Richard Guenther  <rguenther@suse.de>
3789
3790         PR tree-optimization/49893
3791         * tree-predcom.c (suitable_reference_p): Volatile references
3792         are not suitable.
3793
3794 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
3795
3796         PR target/49313
3797         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
3798         (__ctzsi2): Result for 0 may be undefined.
3799         (__ctzhi2): Result for 0 may be undefined.
3800         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
3801         (__popcountsi2): Ditto. And don't clobber r26.
3802         (__popcountdi2): Ditto. And don't clobber r27.
3803         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
3804         (parityhi2): New expand.
3805         (paritysi2): New expand.
3806         (popcounthi2): New expand.
3807         (popcountsi2): New expand.
3808         (clzhi2): New expand.
3809         (clzsi2): New expand.
3810         (ctzhi2): New expand.
3811         (ctzsi2): New expand.
3812         (ffshi2): New expand.
3813         (ffssi2): New expand.
3814         (copysignsf3): New insn.
3815         (bswapsi2): New expand.
3816         (*parityhi2.libgcc): New insn.
3817         (*parityqihi2.libgcc): New insn.
3818         (*paritysihi2.libgcc): New insn.
3819         (*popcounthi2.libgcc): New insn.
3820         (*popcountsi2.libgcc): New insn.
3821         (*popcountqi2.libgcc): New insn.
3822         (*popcountqihi2.libgcc): New insn-and-split.
3823         (*clzhi2.libgcc): New insn.
3824         (*clzsihi2.libgcc): New insn.
3825         (*ctzhi2.libgcc): New insn.
3826         (*ctzsihi2.libgcc): New insn.
3827         (*ffshi2.libgcc): New insn.
3828         (*ffssihi2.libgcc): New insn.
3829         (*bswapsi2.libgcc): New insn.
3830
3831 2011-07-29  Richard Guenther  <rguenther@suse.de>
3832
3833         * tree-vrp.c (get_value_range): Only set parameter default
3834         definitions to varying, leave others at undefined.
3835         (extract_range_from_binary_expr): Fix undefined handling.
3836         (vrp_visit_phi_node): Handle merged undefined state.
3837
3838 2011-07-29  Wei Guozhi  <carrot@google.com>
3839
3840         PR rtl-optimization/49799
3841         * combine.c (make_compound_operation): Check if the bit field is valid
3842         before change it to bit field extraction.
3843
3844 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
3845
3846         PR rtl-optimization/49891
3847         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
3848         newly created returnjumps.
3849
3850 2011-07-28  DJ Delorie  <dj@redhat.com>
3851
3852         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
3853         local frame in a naked function, and produce a suitable error for
3854         that specific case.
3855
3856         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
3857         registers to be reloaded in HI classes when the target is HI.
3858
3859 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
3860
3861         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
3862         bound_one, bound_two.
3863
3864 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
3865
3866         PR middle-end/48648
3867         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
3868         CLAST assignments.
3869         (translate_clast): Same.
3870         (translate_clast_assignment): New.
3871
3872 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
3873
3874         PR tree-optimization/49876
3875         * sese.c (rename_uses): Do not return false on gloog_error: set
3876         the new_expr to integer_zero_node and continue code generation.
3877         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
3878
3879 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
3880
3881         PR debug/49846
3882         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
3883         arguments also check if they aren't initialized with a MODE_INT
3884         mode of the same size.
3885
3886 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
3887
3888         * expr.c (get_bit_range): Handle *MEM_REF's.
3889
3890 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
3891
3892         * rtlanal.c (tablejump_p): False for returns.
3893         * reorg.c (first_active_target_insn): New static function.
3894         (find_end_label): Set JUMP_LABEL for a new returnjump.
3895         (optimize_skip, get_jump_flags, rare_destination,
3896         mostly_true_jump, get_branch_condition,
3897         steal_delay_list_from_target, own_thread_p,
3898         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
3899         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
3900         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
3901         * jump.c (delete_related_insns): Likewise.
3902         (jump_to_label_p): New function.
3903         (redirect_target): New static function.
3904         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
3905         (redirect_jump_1): Assert that the new label is nonnull.
3906         (redirect_jump): Likewise.
3907         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
3908         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
3909         exit block.
3910         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
3911         changed.  Ensure that the right label is passed to redirect_jump.
3912         * function.c (emit_return_into_block,
3913         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
3914         ret_rtx in their JUMP_LABEL.
3915         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
3916         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
3917         pass ret_rtx as label.
3918         * cfglayout.c (fixup_reorder_chain): Use
3919         force_nonfallthru_and_redirect rather than force_nonfallthru.
3920         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
3921         * rtl.h (ANY_RETURN_P): New macro.
3922         (jump_to_label_p): Declare.
3923         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
3924         JUMP_LABELs.
3925         (mark_target_live_regs): Likewise.
3926         * basic-block.h (force_nonfallthru_and_redirect): Declare.
3927         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
3928         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
3929         alpha_tablejump_best_label): Remove functions.
3930         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
3931         alpha_tablejump_best_label): Remove declarations.
3932         * config/sh/sh.c (barrier_align, split_branches): Adjust for
3933         ret_rtx in JUMP_LABELs.
3934         * config/arm/arm.c (is_jump_table): Likewise.
3935
3936 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
3937
3938         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
3939         special predicate.  Remove explicit mode checks.
3940
3941 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
3942
3943         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
3944         DW_AT_data_member_location containing just DW_OP_plus_uconst.
3945
3946         PR debug/49871
3947         * dwarf2out.c (size_of_die, value_format, output_die): Use
3948         DW_FORM_udata instead of DW_FORM_data[48] for
3949         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
3950
3951 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
3952
3953         * config/i386/i386.md (*tls_global_dynamic_64): Update
3954         length attribute.
3955
3956 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
3957
3958         PR target/47715
3959         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
3960         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
3961         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
3962         (tls_dynamic_gnu2_64): Ditto.
3963         (*tls_dynamic_gnu2_lea_64): Ditto.
3964         (*tls_dynamic_gnu2_call_64): Ditto.
3965         (*tls_dynamic_gnu2_combine_64): Ditto.
3966
3967 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
3968
3969         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
3970
3971 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
3972
3973         PR target/47364
3974         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
3975
3976 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3977
3978         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
3979         before the core constraints. Adjust attributes.
3980         ("*thumb2_movdf_vfp"): Likewise.
3981
3982 2011-07-28  Kai Tietz  <ktietz@redhat.com>
3983
3984         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
3985         (simplify_truth_ops_using_ranges): Likewise.
3986         (build_assert_expr_for): Likewise.
3987         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
3988         and handle BIT_NOT_EXPR for truth-operation.
3989
3990 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
3991
3992         PR target/49313
3993         Undo r176835 from trunk
3994         2011-07-27  Georg-Johann Lay
3995
3996 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
3997
3998         PR target/49687
3999         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
4000         Add _muluhisi3, _mulshisi3, _usmulhisi3.
4001         * config/avr/libgcc.S (__mulsi3): Rewrite.
4002         (__mulhisi3): Rewrite.
4003         (__umulhisi3): Rewrite.
4004         (__usmulhisi3): New.
4005         (__muluhisi3): New.
4006         (__mulshisi3): New.
4007         (__mulohisi3): New.
4008         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
4009         declare.
4010         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
4011         (pseudo_register_or_const_int_operand): New.
4012         (combine_pseudo_register_operand): New.
4013         (u16_operand): New.
4014         (s16_operand): New.
4015         (o16_operand): New.
4016         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
4017         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
4018         (any_extend, any_extend2): New code iterators.
4019         (extend_prefix): New code attribute.
4020         (mulsi3): Rewrite. Turn insn to expander.
4021         (mulhisi3): Ditto.
4022         (umulhisi3): Ditto.
4023         (usmulhisi3): New expander.
4024         (*mulsi3): New insn-and-split.
4025         (mulu<mode>si3): New insn-and-split.
4026         (muls<mode>si3): New insn-and-split.
4027         (mulohisi3): New insn-and-split.
4028         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
4029         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
4030         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
4031         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
4032         insn-and-split.
4033         (*mulsi3_call): Rewrite.
4034         (*mulhisi3_call): Rewrite.
4035         (*umulhisi3_call): Rewrite.
4036         (*usmulhisi3_call): New insn.
4037         (*muluhisi3_call): New insn.
4038         (*mulshisi3_call): New insn.
4039         (*mulohisi3_call): New insn.
4040         (extendqihi2): Use combine_pseudo_register_operand as predicate
4041         for operand 1.
4042         (extendqisi2): Ditto.
4043         (zero_extendqihi2): Ditto.
4044         (zero_extendqisi2): Ditto.
4045         (zero_extendhisi2): Ditto.
4046         (extendhisi2): Ditto. Don't early-clobber operand 0.
4047
4048 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
4049
4050         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
4051
4052 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
4053
4054         PR tree-optimization/49471
4055         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
4056         iv only when the largest type is unsigned.  Do not call
4057         lang_hooks.types.type_for_size.
4058
4059 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
4060
4061         PR middle-end/45450
4062         * graphite-poly.c (apply_poly_transforms): Disable legality check
4063         after an openscop read.
4064
4065 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
4066
4067         PR middle-end/47691
4068         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
4069         copy_bb_and_scalar_dependences.
4070         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
4071         (graphite_copy_stmts_from_block): Update call to rename_uses.
4072         (copy_bb_and_scalar_dependences): Update call to
4073         graphite_copy_stmts_from_block.
4074         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
4075
4076 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
4077
4078         PR target/49313
4079         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
4080         (__ctzsi2): Result for 0 may be undefined.
4081         (__ctzhi2): Result for 0 may be undefined.
4082         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
4083         (__popcountsi2): Ditto. And don't clobber r26.
4084         (__popcountdi2): Ditto. And don't clobber r27.
4085         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
4086         (parityhi2): New expand.
4087         (paritysi2): New expand.
4088         (popcounthi2): New expand.
4089         (popcountsi2): New expand.
4090         (clzhi2): New expand.
4091         (clzsi2): New expand.
4092         (ctzhi2): New expand.
4093         (ctzsi2): New expand.
4094         (ffshi2): New expand.
4095         (ffssi2): New expand.
4096         (copysignsf3): New insn.
4097         (bswapsi2): New expand.
4098         (*parityhi2.libgcc): New insn.
4099         (*parityqihi2.libgcc): New insn.
4100         (*paritysihi2.libgcc): New insn.
4101         (*popcounthi2.libgcc): New insn.
4102         (*popcountsi2.libgcc): New insn.
4103         (*popcountqi2.libgcc): New insn.
4104         (*popcountqihi2.libgcc): New insn-and-split.
4105         (*clzhi2.libgcc): New insn.
4106         (*clzsihi2.libgcc): New insn.
4107         (*ctzhi2.libgcc): New insn.
4108         (*ctzsihi2.libgcc): New insn.
4109         (*ffshi2.libgcc): New insn.
4110         (*ffssihi2.libgcc): New insn.
4111         (*bswapsi2.libgcc): New insn.
4112
4113 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
4114
4115         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
4116         the mode of symbolic_opreand RTXes.
4117
4118 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
4119
4120         * config/i386/predicates.md (x86_64_movabs_operand): Return false
4121         for pic_32bit_operand RTXes.
4122         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
4123         in DImode.
4124
4125 2011-07-27  Kai Tietz  <ktietz@redhat.com>
4126
4127         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
4128         for 32-bit, too.
4129         (ix86_handle_abi_attribute): Allow function attributes
4130         ms_abi/sysv_abi in 32-bit mode, too.
4131         * doc/extend.texi: Adjust attribute documentation.
4132
4133         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
4134         expression handling.
4135         (and_var_with_comparison_1): Likewise.
4136
4137 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
4138
4139         * params.h (ALLOW_STORE_DATA_RACES): New.
4140         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
4141         * Makefile.in (expr.o): Depend on PARAMS_H.
4142         * machmode.h (get_best_mode): Add argument.
4143         * fold-const.c (optimize_bit_field_compare): Add argument to
4144         get_best_mode.
4145         (fold_truthop): Same.
4146         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
4147         * expr.c (emit_group_store): Same.
4148         (copy_blkmode_from_reg): Same.
4149         (write_complex_part): Same.
4150         (optimize_bitfield_assignment_op): Add argument.
4151         Add argument to get_best_mode.
4152         (get_bit_range): New.
4153         (expand_assignment): Calculate maxbits and pass it down accordingly.
4154         (store_field): New argument.
4155         (expand_expr_real_2): New argument to store_field.  Include params.h.
4156         * expr.h (store_bit_field): New argument.
4157         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
4158         into account maxbits.
4159         * calls.c (store_unaligned_arguments_into_pseudos): New argument
4160         to store_bit_field.
4161         * expmed.c (store_bit_field_1): New argument.  Use it.
4162         (store_bit_field): Same.
4163         (store_fixed_bit_field): Same.
4164         (store_split_bit_field): Same.
4165         (extract_bit_field_1): Pass new argument to get_best_mode.
4166         (extract_bit_field): Same.
4167         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
4168         * doc/invoke.texi: Document parameter allow-store-data-races.
4169
4170 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
4171
4172         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
4173
4174 2011-07-27  Kai Tietz  <ktietz@redhat.com>
4175
4176         * tree-vrp.c (extract_range_from_binary_expr): Remove
4177         TRUTH-binary cases and add new bitwise-cases.
4178         (extract_range_from_assignment): Likewise.
4179         (register_edge_assert_for_1): Likeiwise.
4180         (register_edge_assert_for): Likewise.
4181         (simplify_truth_ops_using_ranges): Likewise.
4182         (simplify_stmt_using_ranges): Likewise.
4183
4184 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
4185
4186         PR target/47372
4187         * config/i386/i386.c (ix86_delegitimize_address): Call
4188         simplify_gen_subreg for PIC with mode of x only if modes of
4189         x and orig_x are different.
4190
4191 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
4192
4193         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
4194         to GC allocated copy of the string.
4195         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
4196         before .debug_line, not after it.
4197
4198 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4199
4200         PR middle-end/47046
4201         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
4202         evolution_function_is_affine_p on CHREC_RIGHT.
4203
4204 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4205
4206         * tree-data-ref.c (max_stmt_executions_tree): Do not call
4207         lang_hooks.types.type_for_size.
4208
4209 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4210
4211         PR middle-end/47653
4212         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
4213         loops using wrapping semantics.
4214
4215 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4216
4217         PR middle-end/48805
4218         * tree-scalar-evolution.c (instantiate_scev_r): Return
4219         chrec_dont_know for ADDR_EXPR.
4220
4221 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4222             H.J. Lu  <hongjiu.lu@intel.com>
4223
4224         PR target/47369
4225         PR target/49853
4226         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
4227         if legitimize_tls_address returned operand in wrong mode. Allow
4228         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
4229         if legitimize_pic_address returned operand in wrong mode.
4230
4231 2011-07-26  Martin Jambor  <mjambor@suse.cz>
4232
4233         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
4234         return false for invariants.
4235
4236 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4237
4238         * config/i386/i386.md (add->lea splitter): Implement using SWI
4239         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
4240         (add->lea zext splitter): Change operand 2 predicate to
4241         x86_64_nonmemory_operand.
4242
4243 2011-07-26  Richard Guenther  <rguenther@suse.de>
4244
4245         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
4246         frequency makes everything hot.
4247
4248 2011-07-26  Richard Guenther  <rguenther@suse.de>
4249
4250         PR tree-optimization/49840
4251         * tree-vrp.c (range_fits_type_p): Properly handle full
4252         double-int precision.
4253
4254 2011-07-26  Martin Jambor  <mjambor@suse.cz>
4255
4256         PR bootstrap/49786
4257         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
4258         counts.
4259         (update_specialized_profile): Likewise.
4260
4261 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4262             H.J. Lu  <hongjiu.lu@intel.com>
4263
4264         PR target/47381
4265         PR target/49832
4266         PR target/49833
4267         * config/i386/i386.md (i): Change SImode attribute to "e".
4268         (g): Change SImode attribute to "rme".
4269         (di): Change SImode attribute to "nF".
4270         (general_operand): Change SImode attribute to x86_64_general_operand.
4271         (general_szext_operand): Change SImode attribute to
4272         x86_64_szext_general_operand.
4273         (immediate_operand): Change SImode attribute to
4274         x86_64_immediate_operand.
4275         (nonmemory_operand): Change SImode attribute to
4276         x86_64_nonmemory_operand.
4277         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
4278         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
4279         (*lea_1): Use SWI48 mode iterator.
4280         (*lea_1_zext): New insn pattern.
4281         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
4282         (*bt<mode>): Ditto.
4283         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
4284         Update operand constraints.
4285         (addsi_1_zext): Ditto.
4286         (*add<mode>2): Ditto.
4287         (*addsi_3_zext): Ditto.
4288         (*subsi_1_zext): Ditto.
4289         (*subsi_2_zext): Ditto.
4290         (*subsi_3_zext): Ditto.
4291         (*addsi3_carry_zext): Ditto.
4292         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
4293         (*mulsi3_1_zext): Ditto.
4294         (*andsi_1): Ditto.
4295         (*andsi_1_zext): Ditto.
4296         (*andsi_2_zext): Ditto.
4297         (*<any_or:code>si_1_zext): Ditto.
4298         (*<any_or:code>si_2_zext): Ditto.
4299         (*test<mode>_1): Use <general_operand> predicate for operand 1.
4300         (*and<mode>_2): Ditto.
4301         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
4302         (add->lea splitter): Check operand modes in insn constraint.  Extend
4303         operands less than SImode wide to SImode.
4304         (add->lea zext splitter): Do not extend input operands to DImode.
4305         (*lea_general_1): Handle only QImode and HImode operands.
4306         (*lea_general_2): Ditto.
4307         (*lea_general_3): Ditto.
4308         (*lea_general_1_zext): Remove.
4309         (*lea_general_2_zext): Ditto.
4310         (*lea_general_3_zext): Ditto.
4311         (*lea_general_4): Check operand modes in insn constraint.  Extend
4312         operands less than SImode wide to SImode.
4313         (ashift->lea splitter): Ditto.
4314         * config/i386/i386.c (ix86_print_operand_address): Print address
4315         registers with 'q' modifier on 64bit targets.
4316         * config/i386/predicates.md (pic_32bit_opreand): Define as special
4317         predicate.  Reject non-SI and non-DI modes.
4318
4319 2011-07-25  Andrew Pinski  <apinski@cavium.com>
4320
4321         PR tree-opt/49671
4322         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
4323         TREE_THIS_NOTRAP into the inner most MEM_REF.
4324         Always copy TREE_THIS_VOLATILE.
4325         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
4326         arguments are not volatile references.
4327
4328 2011-07-25  Richard Henderson  <rth@redhat.com>
4329
4330         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
4331         * final.c (final_scan_insn): Don't test for it.
4332         (rest_of_clean_state): Likewise.
4333
4334 2011-07-25  Richard Henderson  <rth@redhat.com>
4335
4336         PR debug/49841
4337         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
4338         (emit_frame_save): Likewise.
4339         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
4340         insn onto a dummy blockage insn after the join label.
4341
4342 2011-07-25  Richard Henderson  <rth@redhat.com>
4343
4344         * dwarf2cfi.c (dw_trace_info): Add ID member.
4345         (get_trace_index): Remove.  Change users to use ID member.
4346         (before_next_cfi_note): New.
4347         (connect_traces): Remove unreachable traces before the main loop.
4348         Look across one trace and generate remember/restore_state if needed.
4349
4350 2011-07-25  Richard Henderson  <rth@redhat.com>
4351
4352         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
4353
4354 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
4355
4356         * genattr.c (write_upcase, gen_attr <enum definition writing>):
4357         Move to ...
4358         * genattr-common.c ... here.
4359         (main): Call gen_attr.
4360         * optc-gen.awk: Make generated program include insn-attr-common.h .
4361         * Makefile.in (oprions.o): Depend on insn-attr-common.h
4362
4363 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
4364
4365         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4366         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
4367         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
4368         m32c_print_operand, m32c_print_operand_address): Remove.
4369         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
4370         Change return type to bool. Change argument type to bool.
4371         (m32c_print_operand, m32c_print_operand_address): Make static.
4372         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
4373         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4374
4375 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4376
4377         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
4378         attributes): Document mmap.
4379
4380 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
4381
4382         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4383         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
4384         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
4385         mmix_print_operand, mmix_print_operand_address): Remove.
4386         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
4387         Change return type to bool. Change argument type to bool.
4388         (mmix_print_operand, mmix_print_operand_address): Make static.
4389         (mmix_intval, mmix_output_condition): Change 'x' argument type
4390         to const_rtx.
4391         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
4392         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4393
4394 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
4395
4396         PR target/39386
4397         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
4398         shift counter for x << x and x >> x shifts.
4399
4400 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4401
4402         PR target/47124
4403         * config.gcc: Reject *-*-solaris2 configuration.
4404
4405 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
4406
4407         PR tree-optimization/49809
4408         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
4409         gimple_get_lhs instead of gimple_assign_lhs.
4410
4411 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4412
4413         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
4414
4415 2011-07-25  Richard Guenther  <rguenther@suse.de>
4416
4417         PR tree-optimization/49822
4418         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
4419         more.  Make sure to preserve stmts with side-effects.  Properly
4420         handle virtual defs, follow a longer def chain.
4421
4422 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
4423
4424         PR plugins/45348
4425         PR plugins/48425
4426         PR plugins/46577
4427         * Makefile.in: Do not flatten c-family directory when installing
4428         plugin headers.
4429
4430 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
4431
4432         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
4433         original nodes if we are dealing with virtual clones.
4434
4435 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
4436
4437         * common/config/c6x/c6x-common.c: New file.
4438
4439 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
4440
4441         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
4442
4443 2011-07-25  Richard Guenther  <rguenther@suse.de>
4444
4445         PR tree-optimization/49715
4446         * tree-vrp.c: Include expr.h and optabs.h.
4447         (range_fits_type_): New function.
4448         (simplify_float_conversion_using_ranges): Likewise.
4449         (simplify_stmt_using_ranges): Call it.
4450         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
4451         * optabs.c (can_float_p): Export.
4452         * optabs.h (can_float_p): Declare.
4453
4454 2011-07-25  Richard Guenther  <rguenther@suse.de>
4455
4456         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
4457         (get_value_range): For out-of-range SSA names or names created
4458         after propagation return a read-only varying range.
4459         (dump_all_value_ranges): Adjust.
4460         (vrp_initialize): Likewise.
4461         (vrp_finalize): Likewise.
4462
4463 2011-07-24  Richard Henderson  <rth@redhat.com>
4464
4465         PR debug/49831
4466         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
4467         them entirely.
4468
4469 2011-07-24  Richard Henderson  <rth@redhat.com>
4470
4471         PR debug/49825
4472         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
4473         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
4474
4475 2011-07-24  Richard Henderson  <rth@redhat.com>
4476
4477         PR debug/49827
4478         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
4479
4480 2011-07-24  Richard Henderson  <rth@redhat.com>
4481
4482         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
4483         Zero args_size for abnormal edges.  Adjust all callers.
4484
4485 2011-07-24  Richard Henderson  <rth@redhat.com>
4486
4487         PR debug/49825
4488         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
4489
4490 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
4491
4492         PR bootstrap/49835
4493         * collect2.c (demangle_flag): Removed.
4494
4495 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
4496
4497         * configure.ac (demangler_in_ld): Default to yes.
4498         * configure: Regenerated.
4499         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
4500         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
4501         --no-demangle options straight through to ld.  When
4502         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
4503         way that has the intended effect on Windows.
4504
4505 2011-07-23  Richard Henderson  <rth@redhat.com>
4506
4507         * dwarf2cfi.c: Include basic-block.h.
4508         (dw_label_info): Remove.
4509         (trace_work_list, trace_index): New.
4510         (remember_row, emit_cfa_remember): Remove.
4511         (dw_trace_info_hash, dw_trace_info_eq): New.
4512         (get_trace_index, get_trace_info): New.
4513         (save_point_p): New.
4514         (free_cfi_row): Remove.
4515         (add_cfi): Do not emit DW_CFA_remember_state.
4516         (cfa_row_equal_p): New.
4517         (barrier_args_size): Remove.
4518         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
4519         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
4520         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
4521         (dwarf2out_cfi_begin_epilogue): Remove.
4522         (dwarf2out_frame_debug_restore_state): Remove.
4523         (connect_traces, create_pseudo_cfg): New.
4524         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
4525         * Makefile.in (dwarf2cfi.o): Update.
4526
4527 2011-07-23  Richard Henderson  <rth@redhat.com>
4528
4529         * dwarf2cfi.c (dw_trace_info): New.
4530         (dw_label_info): New.
4531         (cie_return_save): New.
4532         (cur_trace): New.
4533         (queued_args_size): Rename from args_size.  Update all users.
4534         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
4535         (def_cfa_1): Use cur_trace instead of cfa_*.
4536         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
4537         (clobbers_queued_reg_save, reg_saved_in): Likewise.
4538         (dwarf2out_frame_debug_expr): Likewise.
4539         (create_cie_data): Split out from ...
4540         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
4541
4542 2011-07-23  Richard Henderson  <rth@redhat.com>
4543
4544         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
4545         Update all users to match.
4546         (execute_dwarf2_frame): Free reg_saved_in_data.
4547
4548 2011-07-23  Richard Henderson  <rth@redhat.com>
4549
4550         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
4551         (queued_reg_saves): Don't GTY.  Change to a VEC.
4552         (queue_reg_save): Update to match.
4553         (dwarf2out_flush_queued_reg_saves): Likewise.
4554         (clobbers_queued_reg_save): Likewise.
4555         (reg_saved_in): Likewise.
4556         (execute_dwarf2_frame): Free queued_reg_saves.
4557
4558 2011-07-23  Richard Henderson  <rth@redhat.com>
4559
4560         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
4561
4562 2011-07-23  Richard Henderson  <rth@redhat.com>
4563
4564         * dwarf2cfi.c (add_cfi_args_size): Split out from...
4565         (dwarf2out_args_size): ... here.
4566         (add_cfi_restore): Split out from ...
4567         (dwarf2out_frame_debug_cfa_restore): ... here.
4568         (def_cfa_0): Split out from ...
4569         (def_cfa_1): ... here.
4570         (cfi_oprnd_equal_p, cfi_equal_p): New.
4571         (change_cfi_row): New.
4572         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
4573         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
4574         (output_cfis): Remove.
4575         * dwarf2out.c (output_fde): Simplify output_cfi loop.
4576         (dwarf2out_switch_text_section): Don't call output_cfis.
4577         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
4578         * dwarf2out.h: Update decls.
4579         (enum dw_val_class): Add dw_val_class_none.
4580
4581 2011-07-23  Richard Henderson  <rth@redhat.com>
4582
4583         * dwarf2cfi.c (update_row_reg_save): New.
4584         (dwarf2out_frame_debug_cfa_expression): Use it.
4585         (dwarf2out_frame_debug_cfa_restore): Likewise.
4586         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
4587
4588 2011-07-23  Richard Henderson  <rth@redhat.com>
4589
4590         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
4591
4592 2011-07-23  Richard Henderson  <rth@redhat.com>
4593
4594         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
4595         (cie_cfi_row): New.
4596         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
4597         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
4598         (cur_row, remember_row): New.
4599         (def_cfa_1): Use cur_row instead of the old_* variables.
4600         (dwarf2out_frame_debug_restore_state): Similarly.
4601         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
4602         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
4603         (dwarf2out_frame_debug_adjust_cfa): Likewise.
4604         (dwarf2out_frame_debug_cfa_offset): Likewise.
4605         (dwarf2out_frame_debug_expr): Likewise.
4606         (execute_dwarf2_frame): Set up cur_row.
4607         * dwarf2out.h (struct cfa_loc): Mark for GTY.
4608
4609 2011-07-23  Richard Henderson  <rth@redhat.com>
4610
4611         * basic-block.h (EDGE_PRESERVE): New.
4612         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
4613         * bb-reorder.c: Include except.h.
4614         (fix_up_crossing_landing_pad): New.
4615         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
4616         landing pads in the right partition.  Duplicate as necessary.
4617         (partition_hot_cold_basic_blocks): Fix up DF info after
4618         duplicating landing pads.
4619         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
4620         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
4621         is set properly.  Validate that EH edges are not CROSSING.
4622         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
4623         (dw2_build_landing_pads): ... here.
4624         (convert_to_eh_region_ranges): Remove code to fixup crossing
4625         landing pads.
4626         * except.h (expand_dw2_landing_pad_for_region): Declare.
4627         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
4628
4629 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
4630
4631         PR target/49816
4632         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
4633
4634 2011-07-22  Jason Merrill  <jason@redhat.com>
4635
4636         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
4637
4638 2011-07-22  Richard Henderson  <rth@redhat.com>
4639
4640         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
4641
4642 2011-07-22  Richard Henderson  <rth@redhat.com>
4643
4644         * jump.c (maybe_propagate_label_ref): Split out of...
4645         (mark_all_labels): ... here.  Do not attempt label_ref
4646         propagation while in cfglayout mode.
4647
4648 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
4649
4650         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
4651         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
4652         (dwarf_attr_name): Handle DW_AT_GNU_macros.
4653         (dwarf2out_define): If the vector is empty and
4654         lineno is 0, emit a dummy entry first.
4655         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
4656         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
4657         optimize_macinfo_range): New functions.
4658         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
4659         mergeable, optimize longer strings using
4660         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
4661         optimize longer sequences of define/undef ops from headers
4662         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
4663         emit a section headers.
4664         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
4665         and macinfo_section_label to DEBUG_MACRO_SECTION
4666         resp. DEBUG_MACRO_SECTION_LABEL.
4667         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
4668         instead of DW_AT_macro_info.
4669
4670         PR other/32998
4671         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
4672         options.
4673         * dwarf2out.c: Include opts.h.
4674         (dchar_p): New typedef.  Define heap VEC for it.
4675         (producer_string): New variable.
4676         (gen_producer_string): New function.
4677         (gen_compile_unit_die): Use it.
4678         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
4679         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
4680         * doc/invoke.texi: Document -grecord-gcc-switches and
4681         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
4682         to -frecord-gcc-switches description.
4683
4684 2011-07-22  Jason Merrill  <jason@redhat.com>
4685
4686         PR c++/30112
4687         * c-decl.c (c_linkage_bindings): Define.
4688
4689 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
4690
4691         PR debug/49815
4692         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
4693
4694 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
4695
4696         * config/i386/i386.c (ix86_option_override_internal): Disallow
4697         MS ABI in x32 mode.
4698         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
4699         only for TARGET_LP64.
4700         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
4701
4702 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
4703
4704         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
4705         avoid warnings when GCC is built with a C++ compiler.
4706
4707 2011-07-22  Martin Jambor  <mjambor@suse.cz>
4708
4709         PR lto/49796
4710         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
4711         if decl node is in another partition, call cgraph_get_node only once.
4712
4713 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
4714
4715         * config.gcc (x86_64-*-linux*): Set
4716         default_gnu_indirect_function to yes.
4717
4718 2011-07-22  Richard Guenther  <rguenther@suse.de>
4719
4720         PR tree-optimization/45819
4721         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
4722         preserve volatile and notrap flags.
4723
4724 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4725             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4726
4727         PR bootstrap/49794
4728         * configure.ac: Test AM_ICONV with CXX.
4729         * configure: Regenerate.
4730         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
4731
4732 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4733
4734         PR bootstrap/49797
4735         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
4736         (set_cloog_options): Use it.
4737
4738 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
4739
4740         PR c++/49756
4741         * gcc.c (main): Call stack_limit_increase (64MB).
4742         * toplev.c (toplev_main): Likewise.
4743
4744 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
4745
4746         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
4747         instead of force_reg.
4748
4749 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
4750
4751         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
4752         needed and use force_reg after convert.
4753         (ix86_expand_call): Likewise.
4754         (ix86_expand_special_args_builtin): Likewise.
4755         (ix86_expand_builtin): Likewise.
4756
4757 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4758
4759         PR middle-end/47654
4760         PR middle-end/49649
4761         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
4762         in parameter.  Initialize v1 and v2 based on the values returned
4763         by clast_name_to_lb_ub.
4764         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
4765         values.
4766         (type_for_clast_bin): Same.
4767         (type_for_clast_expr): Same.
4768         (type_for_clast_eq): Update calls to type_for_clast_expr.
4769         (type_for_clast_for): Same.
4770         (build_iv_mapping): Same.
4771         * graphite-ppl.h (value_min): New.
4772
4773 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4774
4775         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
4776         types whenever possible.
4777
4778 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4779
4780         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
4781         and ub fields.
4782         (new_clast_name_index): Add lb and ub parameters.
4783         (free_clast_name_index): New.
4784         (clast_name_to_lb_ub): New.
4785         (save_clast_name_index): Add lb and ub parameters.
4786         (compute_bounds_for_param): New.
4787         (type_for_level): Removed.
4788         (type_for_clast_for): Removed level parameter.  Do not call
4789         type_for_level.
4790         (graphite_create_new_loop): Store the lb and ub for the clast_name
4791         of the iterator of the loop that has been generated.
4792         (graphite_create_new_loop_guard): Remove parameter level.
4793         (create_params_index): Store the lb and ub of each parameter.
4794         (gloog): Use free_clast_name_index.  Pass to create_params_index
4795         the current scop.
4796
4797 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4798
4799         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
4800         (max_precision_type): Inline max_signed_precision_type.
4801         (type_for_clast_red): Use max_precision_type.
4802         (type_for_clast_bin): Same.
4803         (type_for_clast_for): Same.
4804
4805 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4806
4807         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
4808         type_for_interval.
4809         (gcc_type_for_value): Renamed type_for_value.
4810         (gcc_type_for_clast_term): Renamed type_for_clast_term.
4811         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
4812         (gcc_type_for_clast_red): Renamed type_for_clast_red.
4813         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
4814         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
4815         (graphite_translate_clast_equation): Update calls.
4816         (compute_type_for_level): Renamed type_for_level.
4817         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
4818         (build_iv_mapping): Update calls.
4819         (graphite_create_new_loop_guard): Same.
4820
4821 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4822
4823         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
4824         comment.
4825
4826 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4827
4828         * graphite-clast-to-gimple.c (struct ivs_params): New.
4829         (clast_name_to_gcc): Use ivs_params to pass around parameters.
4830         (clast_to_gcc_expression): Same.
4831         (clast_to_gcc_expression_red): Same.
4832         (gcc_type_for_clast_term): Same.
4833         (gcc_type_for_clast_expr): Same.
4834         (gcc_type_for_clast_red): Same.
4835         (gcc_type_for_clast_bin): Same.
4836         (gcc_type_for_clast_eq): Same.
4837         (graphite_translate_clast_equation): Same.
4838         (graphite_create_guard_cond_expr): Same.
4839         (graphite_create_new_guard): Same.
4840         (graphite_create_new_loop): Same.
4841         (build_iv_mapping): Same.
4842         (translate_clast_user): Same.
4843         (graphite_create_new_loop_guard): Same.
4844         (translate_clast): Same.
4845         (translate_clast_for_loop): Same.
4846         (translate_clast_for): Same.
4847         (translate_clast_guard): Same.
4848         (initialize_cloog_names): Fix typo.
4849         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
4850
4851 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4852
4853         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
4854         (new_clast_name_index): Add level parameter.
4855         (clast_name_to_level): New.
4856         (save_clast_name_index): Add level parameter.
4857         (newivs_to_depth_to_newiv): Removed.
4858         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
4859         (graphite_create_new_loop): Add level parameter.  Pass level to
4860         save_clast_name_index.
4861         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
4862         (create_params_index): Pass level to save_clast_name_index.
4863
4864 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4865
4866         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
4867         recompute type, lb, and ub.  Get them from...
4868         (graphite_create_new_loop_guard): ...here.  Pass in parameter
4869         pointers to type, lb, and ub.
4870         (translate_clast_for_loop): Update function calls.
4871         (translate_clast_for): Same.
4872
4873 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4874
4875         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
4876         psct_dynamic_dim.
4877         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
4878         (gcc_type_for_iv_of_clast_loop): Update use of level.
4879         (gloog): Start counting nesting level from 0.
4880         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
4881         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
4882         psct_dynamic_dim on level.
4883
4884 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
4885
4886         * config/i386/i386.c (ix86_legitimize_address): Convert to
4887         Pmode if needed.
4888
4889 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
4890
4891         * config/i386/i386.c (function_value_64): Always return pointers
4892         in Pmode.
4893         (ix86_promote_function_mode): New.
4894         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
4895
4896 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4897
4898         PR tree-optimization/49749
4899         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
4900         remove no-longer-used maxrank variable.
4901
4902 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
4903
4904         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
4905
4906 2011-07-21  Jason Merrill  <jason@redhat.com>
4907
4908         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
4909         * recog.h (struct insn_data_d): Check it instead of
4910         HAVE_DESIGNATED_INITIALIZERS.
4911         * genoutput.c (output_insn_data): Likewise.
4912
4913 2011-07-21  Richard Guenther  <rguenther@suse.de>
4914
4915         PR tree-optimization/49770
4916         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
4917         valueized any operand.  Renamed from ...
4918         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
4919         (valueize_shared_reference_ops_from_ref): Return whether we
4920         valueized any operand.
4921         (vn_reference_lookup): Only when we valueized any operand
4922         use the valueized reference for alias analysis.  Do not preserve
4923         the original reference tree in this case.
4924
4925 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
4926
4927         * config/i386/i386.c (ix86_decompose_address): Reject all but
4928         register operands and subregs of DImode hard registers in index.
4929
4930 2011-07-21  Kai Tietz  <ktietz@redhat.com>
4931
4932         * fold-const.c (fold_unary_loc): Preserve indirect
4933         comparison cast to none-boolean type.
4934         * tree-ssa.c (useless_type_conversion_p): Preserve cast
4935         from/to boolean-type.
4936         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
4937         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
4938         * tree-cfg.c (verify_gimple_comparison): Check result
4939         type of comparison expression.
4940         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
4941         of condition result and disallow type-cast sinking into comparison.
4942
4943 2011-07-21  Richard Guenther  <rguenther@suse.de>
4944
4945         * tree-ssa-forwprop.c (combine_conversions): Return whether
4946         we have to run cfg-cleanup.  Properly remove dead stmts.
4947         (ssa_forward_propagate_and_combine): Adjust.
4948
4949 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
4950
4951         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
4952
4953 2011-07-21  Kai Tietz  <ktietz@redhat.com>
4954
4955         * tree-ssa-propagate.c (substitute_and_fold): Use
4956         do_dce flag to deside, if BB's statements are scanned
4957         in last to first, or first to last order.
4958
4959 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
4960
4961         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
4962
4963 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
4964             Uros Bizjak  <ubizjak@gmail.com>
4965             Richard Henderson  <rth@redhat.com>
4966
4967         * config/i386/constraints.md (w): New.
4968
4969         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
4970         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
4971
4972         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
4973         instead of TARGET_64BIT.
4974
4975         * config/i386/i386.md (indirect_jump): Replace
4976         nonimmediate_operand with indirect_branch_operand.
4977         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
4978         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
4979         Convert operand 0 to Pmode for x32 if not PIC.
4980         (*tablejump_1): Replace nonimmediate_operand with
4981         indirect_branch_operand.  Replace constraint "m" with "w".
4982         (*call_vzeroupper): Replace constraint "m" with "w".
4983         (*call): Likewise.
4984         (*call_rex64_ms_sysv_vzeroupper): Likewise.
4985         (*call_rex64_ms_sysv): Likewise.
4986         (*call_value_vzeroupper): Likewise.
4987         (*call_value): Likewise.
4988         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
4989         (*call_value_rex64_ms_sysv): Likewise.
4990         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
4991
4992         * config/i386/predicates.md (indirect_branch_operand): New.
4993         (call_insn_operand): Support x32.
4994
4995 2011-07-20  Michael Eager  <eager@eagercon.com>
4996
4997         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
4998
4999 2011-07-20  Richard Henderson  <rth@redhat.com>
5000
5001         * cfg.c (dump_bb_info): Dump basic_block->flags.
5002         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
5003
5004 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
5005
5006         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5007         of DImode hard registers in index.
5008         (ix86_legitimate_address_p): Allow subregs of base and index to span
5009         more than a word.  Assert that subregs of base and index satisfy
5010         register_no_elim_operand predicates.  Reject addresses where
5011         base and index have different modes.
5012
5013 2011-07-20  Robert Millan  <rmh@gnu.org>
5014
5015         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
5016
5017 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5018
5019         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
5020         removing now-unnecessary assignment.
5021
5022 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5023
5024         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
5025         memory address space to the type's address space.
5026
5027 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
5028
5029         PR target/36467
5030         PR target/49687
5031         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
5032         and expand appropriately if there is a CONST_INT in operand2.
5033         (usmulqihi3): New insn.
5034         (*sumulqihi3): New insn.
5035         (*osmulqihi3): New insn.
5036         (*oumulqihi3): New insn.
5037         (*muluqihi3.uconst): New insn_and_split.
5038         (*muluqihi3.sconst): New insn_and_split.
5039         (*mulsqihi3.sconst): New insn_and_split.
5040         (*mulsqihi3.uconst): New insn_and_split.
5041         (*mulsqihi3.oconst): New insn_and_split.
5042         (*ashifthi3.signx.const): New insn_and_split.
5043         (*ashifthi3.signx.const7): New insn_and_split.
5044         (*ashifthi3.zerox.const): New insn_and_split.
5045         (mulsqihi3): New insn.
5046         (muluqihi3): New insn.
5047         (muloqihi3): New insn.
5048         * config/avr/predicates.md (const_2_to_7_operand): New.
5049         (const_2_to_6_operand): New.
5050         (u8_operand): New.
5051         (s8_operand): New.
5052         (o8_operand): New.
5053         (s9_operand): New.
5054         (register_or_s9_operand): New.
5055
5056 2011-07-20  Kai Tietz  <ktietz@redhat.com>
5057
5058         * builtins.c (fold_builtin_expect): See through the cast
5059         from truthvalue_type_node to long.
5060
5061 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
5062
5063         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
5064         where we can use them from the standard and altivec instruction
5065         sets, instead of always using the 3 operand VSX forms that require
5066         the destination to overlap one of the inputs.
5067         (vsx_fms*): Ditto.
5068         (vsx_fnma*): Ditto.
5069         (vsx_fnms*): Ditto.
5070
5071         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
5072         for DF types.
5073         (fmsdf4_fpr): Ditto.
5074         (nfmadf4_fpr): Ditto.
5075         (nfmsdf4_fpr): Ditto.
5076
5077 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
5078
5079         * genrecog.c (make_insn_sequence): Correct position numbering
5080         when filtering out match_scratch and match_dup.
5081
5082 2011-07-20  Richard Guenther  <rguenther@suse.de>
5083
5084         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
5085         against already removed statements.
5086         (forward_propagate_into_comparison): Remove dead defining stmts.
5087         (forward_propagate_into_gimple_cond): Likewise.
5088         (forward_propagate_into_cond): Simplify.
5089         (ssa_forward_propagate_and_combine): Handle changed cfg from
5090         forward_propagate_into_comparison.
5091         * tree-ssa-phiopt.c (conditional_replacement): Use proper
5092         locations for newly built statements.
5093
5094 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
5095
5096         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
5097
5098 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5099
5100         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
5101         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
5102
5103 2011-07-20  Richard Guenther  <rguenther@suse.de>
5104
5105         PR middle-end/18908
5106         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
5107         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
5108         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
5109
5110 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
5111
5112         * config/frv/frv.c (frv_register_move_cost): Define explicitly
5113         costs for subclasses of GR_REGS.
5114
5115 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
5116
5117         PR target/49780
5118         * config/i386/predicates.md (no_seg_addres_operand): No more special.
5119         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5120         of DImode hard registers in base.
5121         (ix86_legitimate_address_p): Allow SImode and DImode base and index
5122         registers.
5123
5124 2011-07-20  Richard Guenther  <rguenther@suse.de>
5125
5126         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
5127         (unify_nodes): Deal with that.
5128         (solve_graph): Likewise.
5129
5130 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
5131
5132         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
5133         canonicalize left operand from ZERO_EXTEND to AND.
5134
5135 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
5136
5137         * target.def (class_max_nregs): New hook.
5138         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
5139         * doc/tm.texi: Regenerate.
5140         * targhooks.c (default_class_max_nregs): New function.
5141         * targhooks.h (default_class_max_nregs): Declare.
5142         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
5143         x_ira_reg_class_min_nregs arrays to unsigned char.
5144         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
5145         hook instead of CLASS_MAX_NREGS macro.
5146         * reginfo.c (restore_register_info): Ditto.
5147         * ira-conflicts.c (process_regs_for_copy): Use
5148         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
5149         Change type rclass and aclass vars to reg_class_t.
5150         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
5151         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
5152         reg_class_t.
5153         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
5154         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
5155
5156         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
5157         * config/i386/i386.c (ix86_class_max_nregs): New function.
5158         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
5159         instead of CLASS_MAX_NREGS macro.
5160         (TARGET_CLASS_MAX_NREGS): Define.
5161         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
5162         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
5163         * config/avr/avr.c (class_max_nregs): Remove function.
5164         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
5165         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
5166         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
5167         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
5168         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
5169         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
5170         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
5171         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
5172         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
5173         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
5174         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
5175         * config/score/score.h (CLASS_MAX_NREGS): Remove.
5176         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
5177         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
5178         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
5179
5180 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
5181
5182         * cif-code.def (OVERWRITABLE): Fix typo and move around.
5183         (TARGET_OPTIMIZATION_MISMATCH): Delete.
5184         (EH_PERSONALITY): Fix typo.
5185         (NON_CALL_EXCEPTIONS): Fix message.
5186         (OPTIMIZATION_MISMATCH): Adjust message.
5187         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
5188
5189 2011-07-19  Ian Lance Taylor  <iant@google.com>
5190
5191         * doc/install.texi (Configuration): Document
5192         --enable-build-poststage1-with-cxx.
5193
5194 2011-07-19  Robert Millan  <rmh@gnu.org>
5195
5196         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
5197         (GLIBC_DYNAMIC_LINKER): Remove.
5198
5199         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
5200         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
5201         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
5202         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
5203         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
5204         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
5205
5206         * config/mips/linux.h: Remove everything except for ...
5207         (GLIBC_DYNAMIC_LINKER): ... this macro.
5208
5209         * config/mips/linux64.h: Remove everything except for ...
5210         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
5211         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
5212         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
5213         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
5214         (GNU_USER_LINK_EMULATIONN32): New macros.
5215
5216         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
5217         Use the new headers.
5218
5219 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5220
5221         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
5222         Add offset_known_p and size_known_p fields.
5223         (MEM_OFFSET_KNOWN_P): Update accordingly.
5224         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
5225         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
5226         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
5227         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
5228         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
5229         (init_emit_regs): Likewise.
5230
5231 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5232
5233         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
5234         (MEM_OFFSET): Change from returning an rtx to returning a
5235         HOST_WIDE_INT.
5236         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
5237         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
5238         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
5239         (clear_mem_offset): Declare.
5240         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
5241         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
5242         MEM_OFFSET to get a HOST_WIDE_INT offset.
5243         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
5244         (adjust_offset_for_component_ref): Take a bool "known_p"
5245         parameter and a HOST_WIDE_INT "offset" parameter.
5246         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
5247         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
5248         than an rtx.  Use clear_mem_offset to clear the offset.
5249         * cfgcleanup.c (merge_memattrs): Likewise.
5250         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
5251         * function.c (assign_parm_find_stack_rtl): Likewise.
5252         (assign_parm_setup_stack): Likewise.
5253         * print-rtl.c (print_rtx): Likewise.
5254         * reload.c (find_reloads_subreg_address): Likewise.
5255         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5256         * var-tracking.c (INT_MEM_OFFSET): Likewise.
5257         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
5258         (get_mem_align_offset): Likewise.
5259         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
5260         (clear_mem_offset): New function.
5261         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
5262         offset rather than an rtx.  Assume both the expressio and offset
5263         are available.
5264         (r10k_needs_protection_p_1): Update accordingly, checking the
5265         expression and offset availability here instead.
5266
5267 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5268
5269         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
5270         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
5271         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
5272         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
5273         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
5274         (clear_mem_size): Declare.
5275         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
5276         (clear_mem_size): New function.
5277         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
5278         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
5279         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
5280         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
5281         to clear the size.
5282         (nonoverlapping_memrefs_p): Likewise.
5283         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
5284         (expand_builtin_init_trampoline): Likewise.
5285         * calls.c (compute_argument_addresses): Likewise.
5286         * cfgcleanup.c (merge_memattrs): Likewise.
5287         * dce.c (find_call_stack_args): Likewise.
5288         * dse.c (record_store, scan_insn): Likewise.
5289         * dwarf2out.c (dw_sra_loc_expr): Likewise.
5290         * expr.c (emit_block_move_hints): Likewise.
5291         * function.c (assign_parm_find_stack_rtl): Likewise.
5292         * print-rtl.c (print_rtx): Likewise.
5293         * reload.c (find_reloads_subreg_address): Likewise.
5294         * rtlanal.c (may_trap_p_1): Likewise.
5295         * var-tracking.c (track_expr_p): Likewise.
5296         * varasm.c (assemble_trampoline_template): Likewise.
5297         * config/arm/arm.c (arm_print_operand): Likewise.
5298         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
5299         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
5300         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
5301         (expand_constant_setmem_prologue): Likewise.
5302         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
5303         * config/rs6000/rs6000.c (expand_block_move): Likewise.
5304         (adjacent_mem_locations): Likewise.
5305         * config/s390/s390.c (s390_expand_setmem): Likewise.
5306         (s390_expand_insv): Likewise.
5307         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
5308         (*extendqi<mode>2_short_displ): Likewise.
5309         * config/sh/sh.c (expand_block_move): Likewise.
5310         * config/sh/sh.md (extv, extzv): Likewise.
5311
5312 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5313
5314         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
5315         (mem_attrs_htab_eq): ...here.
5316         (find_mem_attrs): Replace with...
5317         (set_mem_attrs): ...this function.  Take a mem_attrs structure
5318         rather than individual fields.
5319         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
5320         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
5321         (set_mem_size, change_address, adjust_address_1, offset_address)
5322         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
5323         Update accordingly.
5324
5325 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5326
5327         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
5328         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
5329         Provide a dummy definition of MEM_ADDR_SPACE for generators.
5330         (target_rtl): Add x_mode_mem_attrs.
5331         (mode_mem_attrs): New macro.
5332         (get_mem_attrs): New function.
5333         * emit-rtl.c (get_mem_attrs): Rename to...
5334         (find_mem_attrs): ...this.
5335         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
5336         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
5337         (set_mem_size, change_address, adjust_address_1, offset_address)
5338         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
5339         Update accordingly.
5340         (init_emit_regs): Initialize mode_mem_attrs.
5341
5342 2011-07-19  Richard Guenther  <rguenther@suse.de>
5343
5344         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
5345         TRUTH_*_EXPR handling.
5346         * tree-ssa-operands.c (get_expr_operands): Likewise.
5347         * tree-ssa-pre.c (fully_constant_expression): Likewise.
5348         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
5349         Likewise.
5350         (is_and_or_or): Likewise.
5351         (is_norm_cond_subset_of): Likewise.
5352
5353 2011-07-19  Richard Guenther  <rguenther@suse.de>
5354
5355         * tree.h (fold_build_pointer_plus_loc): New helper function.
5356         (fold_build_pointer_plus_hwi_loc): Likewise.
5357         (fold_build_pointer_plus): Define.
5358         (fold_build_pointer_plus_hwi): Likewise.
5359         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
5360         (fold_builtin_memory_op): Likewise.
5361         (fold_builtin_stpcpy): Likewise.
5362         (fold_builtin_memchr): Likewise.
5363         (fold_builtin_strstr): Likewise.
5364         (fold_builtin_strchr): Likewise.
5365         (fold_builtin_strrchr): Likewise.
5366         (fold_builtin_strpbrk): Likewise.
5367         (fold_builtin_strcat): Likewise.
5368         (expand_builtin_memory_chk): Likewise.
5369         (fold_builtin_memory_chk): Likewise.
5370         * c-typeck.c (build_unary_op): Likewise.
5371         * cgraphunit.c (thunk_adjust): Likewise.
5372         * fold-const.c (build_range_check): Likewise.
5373         (fold_binary_loc): Likewise.
5374         * omp-low.c (extract_omp_for_data): Likewise.
5375         (expand_omp_for_generic): Likewise.
5376         (expand_omp_for_static_nochunk): Likewise.
5377         (expand_omp_for_static_chunk): Likewise.
5378         * tree-affine.c (add_elt_to_tree): Likewise.
5379         * tree-data-ref.c (split_constant_offset_1): Likewise.
5380         * tree-loop-distribution.c (generate_memset_zero): Likewise.
5381         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
5382         * tree-predcom.c (ref_at_iteration): Likewise.
5383         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
5384         (add_to_parts): Likewise.
5385         (create_mem_ref): Likewise.
5386         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
5387         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
5388         (number_of_iterations_le): Likewise.
5389         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
5390         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5391         (vect_create_addr_base_for_vector_ref): Likewise.
5392         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
5393         (vect_create_cond_for_alias_checks): Likewise.
5394         * tree-vrp.c (extract_range_from_assert): Likewise.
5395         * config/alpha/alpha.c (alpha_va_start): Likewise.
5396         (alpha_gimplify_va_arg_1): Likewise.
5397         * config/i386/i386.c (ix86_va_start): Likewise.
5398         (ix86_gimplify_va_arg): Likewise.
5399         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
5400         * config/mep/mep.c (mep_expand_va_start): Likewise.
5401         (mep_gimplify_va_arg_expr): Likewise.
5402         * config/mips/mips.c (mips_va_start): Likewise.
5403         (mips_gimplify_va_arg_expr): Likewise.
5404         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
5405         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
5406         (rs6000_gimplify_va_arg): Likewise.
5407         * config/s390/s390.c (s390_va_start): Likewise.
5408         (s390_gimplify_va_arg): Likewise.
5409         * config/sh/sh.c (sh_va_start): Likewise.
5410         (sh_gimplify_va_arg_expr): Likewise.
5411         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
5412         * config/spu/spu.c (spu_va_start): Likewise.
5413         (spu_gimplify_va_arg_expr): Likewise.
5414         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
5415         Likewise.
5416         (xstormy16_gimplify_va_arg_expr): Likewise.
5417         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
5418         (xtensa_gimplify_va_arg_expr): Likewise.
5419
5420 2011-07-19  Richard Guenther  <rguenther@suse.de>
5421
5422         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
5423         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
5424         handling.
5425
5426         PR middle-end/18908
5427         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
5428         result of BIT_*_EXPR to bitfield precision.
5429
5430 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
5431
5432         PR tree-optimization/49742
5433         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
5434         as a potential write.
5435
5436 2011-07-19  Richard Guenther  <rguenther@suse.de>
5437
5438         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
5439         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
5440         (forward_propagate_comparison): Simplify, remove obsolete code.
5441
5442 2011-07-19  Richard Guenther  <rguenther@suse.de>
5443
5444         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
5445         BIT_XOR_EXPR, same as the RTL expander does.
5446         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
5447         (verify_gimple_assign_unary): Likewise.
5448         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
5449         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
5450         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
5451
5452 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
5453
5454         PR tree-optimization/49768
5455         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
5456         if offset is smaller than bitoffset, but offset+size is bigger
5457         than bitoffset.
5458
5459 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
5460
5461         PR tree-optimization/49771
5462         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
5463         zero step, set segment length to the size of the data-ref's type.
5464
5465 2011-07-18  Martin Jambor  <mjambor@suse.cz>
5466
5467         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
5468         comments.
5469         (ipcp_values_pool): Declare.
5470         (ipcp_sources_pool): Likewise.
5471         (ipcp_lattice): Changed to forward declaration.
5472         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
5473         cannot_devirtualize.
5474         (ipa_node_params): New fields descriptors, lattices, known_vals,
5475         clone_for_all_contexts and node dead, removed fields params and
5476         count_scale.
5477         (ipa_set_param_count): Removed.
5478         (ipa_get_param_count): Made to work with descriptors vector.
5479         (ipa_get_param): Updated.
5480         (ipa_param_cannot_devirtualize_p): Removed.
5481         (ipa_param_types_vec_empty): Likewise.
5482         (ipa_set_param_used): New function.
5483         (ipa_get_param_used): Updated to use descriptors vector.
5484         (ipa_func_list): Removed.
5485         (ipa_init_func_list): Removed declaration.
5486         (ipa_push_func_to_list_1): Likewise.
5487         (ipa_pop_func_from_list): Likewise.
5488         (ipa_push_func_to_list): Removed.
5489         (ipa_lattice_from_jfunc): Remove declaration.
5490         (ipa_get_jf_pass_through_result): Declare.
5491         (ipa_get_jf_ancestor_result): Likewise.
5492         (ipa_value_from_jfunc): Likewise.
5493         (ipa_get_lattice): Update.
5494         (ipa_lat_is_single_const): New function.
5495         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
5496         (ipa_init_func_list): Likewise.
5497         (ipa_pop_func_from_list): Likewise.
5498         (ipa_get_param_decl_index): Fix coding style.
5499         (count_formal_params): Removed.
5500         (count_formal_params_1): Renamed to count_formal_params.
5501         (ipa_populate_param_decls): Update to use descriptors vector.
5502         (ipa_initialize_node_params): Likewise.
5503         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
5504         (ipa_analyze_params_uses): Likewise.
5505         (ipa_free_node_params_substructures): Likewise and free also lattices
5506         and known values.
5507         (duplicate_array): Removed.
5508         (ipa_edge_duplication_hook): Add the new edge to the list of edge
5509         clones.
5510         (ipa_node_duplication_hook): Update to use new lattices.
5511         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
5512         (ipa_free_all_structures_after_iinln): Likewise.
5513         (ipa_write_node_info): Update to use new lattices.
5514         (ipa_read_node_info): Likewise.
5515         (ipa_get_jf_pass_through_result): New function.
5516         (ipa_get_jf_ancestor_result): Likewise.
5517         (ipa_value_from_jfunc): Likewise.
5518         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
5519         * ipa-cp.c: Reimplemented.
5520         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
5521         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
5522         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
5523         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
5524         * doc/invoke.texi (devirt-type-list-size): Removed description.
5525         (ipa-cp-value-list-size): Added description.
5526
5527 2011-07-18  Richard Henderson  <rth@redhat.com>
5528
5529         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
5530         before calling create_basic_block.
5531
5532 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
5533
5534         PR middle-end/49675
5535         * tree.c (build_common_builtin_nodes): Register
5536         __builtin_return_address, __cyg_profile_func_enter
5537         and __cyg_profile_func_exit.
5538
5539 2011-07-18  Richard Henderson  <rth@redhat.com>
5540
5541         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
5542         (add_labels_and_missing_jumps): ... here.
5543         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
5544
5545 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
5546
5547         PR target/47744
5548         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5549         of DImode hard registers in PLUS address chains.
5550
5551 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5552
5553         PR bootstrap/49769
5554         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
5555         (alpha*-*-freebsd*): Likewise.
5556         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
5557         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
5558         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
5559         crtprec80.o, crtfastmath.o to extra_parts for all targets.
5560         (ia64*-*-elf*): Remove extra_parts.
5561         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
5562         (sparc64-*-linux*): Likewise.
5563         (sparc64-*-freebsd*): Likewise.
5564
5565         Revert:
5566         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
5567         (ia64*-*-linux*): Likewise.
5568         (mips64*-*-linux*): Likewise.
5569         (mips*-*-linux*): Likewise.
5570
5571 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
5572
5573         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
5574
5575 2011-07-18  Richard Guenther  <rguenther@suse.de>
5576
5577         * gimplify.c (gimplify_expr): Use input_location, not saved_location
5578         when building new trees.
5579
5580 2011-07-18  Richard Guenther  <rguenther@suse.de>
5581
5582         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
5583         expansion result to bitfield precision if required.
5584
5585 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5586
5587         * config.gcc (i[3456x]86-*-netware*): Remove.
5588
5589         * gthr-nks.h: Remove.
5590         * configure.ac (enable_threads): Remove nks.
5591         * configure: Regenerate.
5592
5593         * config/i386/i386.c (ix86_encode_section_info): Remove netware
5594         reference.
5595         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
5596         <netware.h> reference.
5597
5598         * config/i386/netware-libgcc.c,
5599         gcc/config/i386/netware-libgcc.def,
5600         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
5601         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
5602         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
5603         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
5604
5605         * doc/extend.texi (Function Attributes,
5606         callee_pop_aggregate_return): Remove i?86-netware reference.
5607         * doc/install.texi (Configuration, --enable-threads): Remove nks.
5608
5609 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5610
5611         PR target/49746
5612         Revert:
5613         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5614
5615         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
5616         patterns.
5617
5618 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
5619
5620         PR middle-end/49732
5621         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
5622
5623 2011-07-16  Matthias Klose  <doko@ubuntu.com>
5624
5625         * doc/install.texi: Document --enable-static-libjava.
5626
5627 2011-07-15  Richard Henderson  <rth@redhat.com>
5628
5629         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
5630         Replace all three arguments by returning a VEC of edges.
5631         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
5632         pointers and counts.
5633         (fix_edges_for_rarely_executed_code): Merge ...
5634         (rest_of_handle_partition_blocks): ... into...
5635         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
5636         any work was performed.
5637         (pass_partition_blocks): Clear todo_flags_finish.
5638
5639 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
5640             Jakub Jelinek  <jakub@redhat.com>
5641             Jonathan Wakely  <jwakely.gcc@gmail.com>
5642
5643         PR libstdc++/49745
5644         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
5645         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
5646
5647 2011-07-15  Jason Merrill  <jason@redhat.com>
5648
5649         PR testsuite/49741
5650         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
5651         rather than --tool_opts.
5652
5653 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
5654
5655         * doc/plugins.texi (Building GCC plugins): gengtype needs its
5656         corresponding gtype.state.
5657
5658 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5659
5660         PR target/49723
5661         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
5662
5663 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
5664
5665         PR target/48220
5666         * doc/md.texi (Standard Names): Document window_save.
5667         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
5668         expand_debug_expr and expand_debug_source_expr.  If the target has
5669         a window_save instruction, adjust the ENTRY_VALUE_EXP.
5670         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
5671         SSA_NAME_VAR is a parameter.
5672         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
5673         * var-tracking.c (parm_reg_t): New type and associated vector type.
5674         (windowed_parm_regs): New variable.
5675         (adjust_insn): If the target has a window_save instruction and this
5676         is the instruction, make its effect on parameter registers explicit.
5677         (next_non_note_insn_var_location): New function.
5678         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
5679         (vt_add_function_parameter): If the target has a window_save insn,
5680         adjust the incoming RTL and record that in windowed_parm_regs.
5681         (vt_finalize): Free windowed_parm_regs.
5682
5683 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
5684
5685         * doc/invoke.texi (C6X Options): New section.
5686         * doc/md.texi (TI C6X family): New section.
5687         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
5688         tic6x-*-uclinux.
5689         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
5690         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
5691         Provide C6X definitions.
5692         * config/c6x/c6x.md: New file.
5693         * config/c6x/constraints.md: New file.
5694         * config/c6x/predicates.md: New file.
5695         * config/c6x/c6x-sched.md.in: New file.
5696         * config/c6x/c6x-sched.md: New file.
5697         * config/c6x/gensched.sh: New file.
5698         * config/c6x/c6x-mult.md.in: New file.
5699         * config/c6x/genmult.sh: New file.
5700         * config/c6x/c6x-mult.md: New file.
5701         * config/c6x/sync.md: New file.
5702         * config/c6x/c6x-protos.h: New file.
5703         * config/c6x/sfp-machine.h: New file.
5704         * config/c6x/c6x.c: New file.
5705         * config/c6x/c6x.h: New file.
5706         * config/c6x/crti.s: New file.
5707         * config/c6x/crtn.s: New file.
5708         * config/c6x/lib1funcs.asm: New file.
5709         * config/c6x/c6x-modes.def: New file.
5710         * config/c6x/genopt.sh: New file.
5711         * config/c6x/c6x.opt: New file.
5712         * config/c6x/c6x-tables.opt: New file.
5713         * config/c6x/c6x-opts.h: New file.
5714         * config/c6x/c6x-isas.def: New file.
5715         * config/c6x/elf.h: New file.
5716         * config/c6x/elf-common.h: New file.
5717         * config/c6x/uclinux-elf.h: New file.
5718         * config/c6x/t-c6x: New file.
5719         * config/c6x/t-c6x-elf: New file.
5720         * config/c6x/t-c6x-uclinux: New file.
5721         * config/c6x/t-c6x-softfp: New file.
5722         * config/c6x/gtd.c: New file.
5723         * config/c6x/gtf.c: New file.
5724         * config/c6x/ltd.c: New file.
5725         * config/c6x/ltf.c: New file.
5726         * config/c6x/ged.c: New file.
5727         * config/c6x/gef.c: New file.
5728         * config/c6x/led.c: New file.
5729         * config/c6x/lef.c: New file.
5730         * config/c6x/eqd.c: New file.
5731         * config/c6x/eqf.c: New file.
5732         * config/c6x/libgcc-c6xeabi.ver: New file.
5733
5734         Revert
5735         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
5736         PR rtl-optimization/11320
5737         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
5738         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
5739         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
5740         current_sched_info->compute_jump_reg_dependencies. Record which
5741         registers are used and which registers are set by the jump.
5742         Clear deps->reg_conditional_sets after a barrier.
5743         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
5744         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
5745         (init_deps): Initialize reg_conditional_sets.
5746         (free_deps): Clear reg_conditional_sets.
5747         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
5748         Mark registers live on entry of the fallthrough block and conditionally
5749         set as set by the jump. Mark registers live on entry of non-fallthrough
5750         blocks as used by the jump.
5751         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
5752         Mark new parameters as unused.
5753
5754 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
5755
5756         PR tree-opt/49309
5757         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
5758         Use fold_build2_loc instead of build2.
5759         Use the correct type for the new tree.
5760
5761 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
5762
5763         PR rtl-optimization/11320
5764         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
5765         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
5766
5767 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
5768
5769         PR target/49487
5770         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
5771         of REG.
5772         (*rotw<mode>): Use const_int_operand for operand2.
5773         Use match_scatch for operand3.
5774         (*rotb<mode>): Ditto
5775         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
5776
5777 2011-07-14  Richard Guenther  <rguenther@suse.de>
5778
5779         PR tree-optimization/49651
5780         * tree-ssa-structalias.c (get_constraint_for_1): Properly
5781         handle dereferences with subvariables.
5782
5783 2011-07-14  Richard Guenther  <rguenther@suse.de>
5784
5785         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
5786         (fold_stmt_1): Do it here directly on gimple and as a first thing.
5787
5788 2011-07-14  Richard Guenther  <rguenther@suse.de>
5789
5790         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
5791         not bool_var when folding bool_var != 1 or bool_var == 0.
5792
5793 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
5794
5795         * haifa-sched.c (schedule_insns): Remove outdated comment.
5796         (schedule_block): When computing a known value for TODO_SPEC,
5797         just set it rather than using logical operations.
5798         (try_ready): Likewise.  Use a local variable rather than a
5799         pointer to TODO_SPEC.  Reorder an if statement to move the
5800         easy case to the then block.
5801         * sched-deps.c (dep_spec_p): New static function.
5802         (update_dep): Use it to decide whether to call
5803         change_spec_dep_to_hard.
5804         (get_back_and_forw_lists): Use it.
5805         (sd_resolve_dep): Likewise.
5806         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
5807         (haifa_note_mem_dep): Likewise.
5808         (check_dep): Likewise.
5809         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
5810         (sched_free_deps): Free in two passes.
5811
5812 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
5813
5814         PR middle-end/49736
5815         * expr.c (all_zeros_p): Undo bogus part of last change.
5816
5817 2011-07-14  Matthias Klose <doko@ubuntu.com>
5818
5819         * doc/extend.texi (optimize attribute): Fix typo.
5820
5821 2011-07-14  Richard Guenther  <rguenther@suse.de>
5822
5823         * gimplify.c (gimplify_expr): Only do required conversions.
5824
5825 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
5826
5827         PR target/43746
5828         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
5829         i.e. use default_elf_select_section.
5830         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
5831         (READONLY_DATA_SECTION_ASM_OP): Remove.
5832         (TARGET_ASM_NAMED_SECTION): Move from here...
5833         * config/avr/avr.c: ...to here.
5834         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
5835         (avr_asm_named_section): Make static.
5836
5837 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5838
5839         PR bootstrap/49739
5840         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
5841         and crtfastmath.o for Linux/x86.
5842
5843 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
5844
5845         * haifa-sched.c: Include "hashtab.h"
5846         (sched_no_dce): New global variable.
5847         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
5848         SHADOW_P): New macros.
5849         (last_clock_var, cycle_issued_insns): Move declarations.
5850         (must_backtrack): New static variable.
5851         (struct delay_pair): New structure.
5852         (delay_htab, delay_htab_i2): New static variables.
5853         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
5854         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
5855         functions.
5856         (dep_cost_1): If delay pairs exist, try to look up the insns and
5857         use the correct pair delay if we find them.
5858         (rank-for_schedule): Tweak priority for insns that must be scheduled
5859         soon to avoid backtracking.
5860         (queue_insn): Detect conditions which force backtracking.
5861         (ready_add): Likewise.
5862         (struct sched_block_state): Add member shadows_only_p.
5863         (struct haifa_save_data): New structure.
5864         (backtrack_queue): New static variable.
5865         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
5866         unschedule_insns_until, restore_last_backtrack_point,
5867         free_topmost_backtrack_point, free_backtrack_queue,
5868         estimate_insn_tick, estimate_shadow_tick): New functions.
5869         (prune_ready_list): New arg shadows_only_p.  All callers changed.
5870         If true, remove everything that isn't SHADOW_P.  Look up delay
5871         pairs and estimate ticks to avoid scheduling the first insn too early.
5872         (verify_shadows): New function.
5873         (schedule_block): Add machinery to enable backtracking.
5874         (sched_init): Take sched_no_dce into account when setting
5875         DF_LR_RUN_DCE.
5876         (free_delay_pairs): New function.
5877         (init_h_i_d): Initialize INSN_EXACT_TICK.
5878         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
5879         * sched-deps.c (sd_unresolve_dep): New function.
5880         * sched-int. (struct haifa_sched_info): New fields save_state
5881         and restore_state.
5882         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
5883         feeds_backtrack_insn and shadow_p.
5884         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
5885         (sched_no_dce): Declare variable.
5886         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
5887         sd_unresolve_dep): Declare functions.
5888         * modulo-sched.c (sms_sched_info): Clear the two new fields.
5889         * sched-rgn.c (rgn_const_sched_info): Likewise.
5890         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5891         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
5892         (ebb_sched_info): Add them for the two new fields.
5893         (add_deps_for_risky_insns): Call add_delay_dependencies.
5894
5895 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
5896
5897         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
5898         Rename -mr11.
5899         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
5900         (rs6000_call_indirect_aix): Ditto.
5901         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
5902         (call_indirect_aix<ptrsize>_internal): Ditto.
5903         (call_indirect_aix<ptrsize>_nor11): Ditto.
5904         (call_indirect_aix<ptrsize>_internal2): Ditto.
5905         (call_value_indirect_aix<ptrsize>): Ditto.
5906         (call_value_indirect_aix<ptrsize>_internal): Ditto.
5907         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
5908         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
5909         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
5910
5911 2011-07-13  Jason Merrill  <jason@redhat.com>
5912
5913         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
5914
5915 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5916
5917         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
5918         * config/spu/spu.md ("clrsb<mode>2"): New expander.
5919
5920 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
5921
5922         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
5923         * configure: Regenerate.
5924
5925 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5926
5927         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
5928         (asm_file_start): Remove.
5929         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
5930         free_bb_for_insn around code that modifies insns before
5931         restarting df analysis.
5932
5933 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5934
5935         PR target/49541
5936         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
5937         (LINK_SPEC): ... here.
5938
5939 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
5940
5941         * haifa-sched.c (struct sched_block_state): New.
5942         (schedule_block): Move some local variables into such a structure.
5943
5944 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5945
5946         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
5947         * config/i386/t-crtpc: Remove.
5948         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
5949         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
5950         tmake_file.
5951         (x86_64-*-darwin*): Likewise.
5952         (i[34567]86-*-linux*): Likewise.
5953         (x86_64-*-linux*): Likewise.
5954
5955         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
5956         Handle -mpc32, -mpc64, -mpc80.
5957
5958 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5959
5960         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
5961         * config/alpha/t-crtfm: Remove.
5962         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
5963         * config/i386/t-crtfm: Remove.
5964         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
5965         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
5966         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
5967         * config/sparc/t-crtfm: Remove.
5968
5969         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
5970         (alpha*-*-freebsd*): Likewise.
5971         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
5972         (x86_64-*-darwin*): Likewise.
5973         (i[34567]86-*-linux*): Likewise.
5974         (x86_64-*-linux*): Likewise.
5975         (x86_64-*-mingw*): Likewise.
5976         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
5977         (ia64*-*-freebsd*): Likewise.
5978         (ia64*-*-linux*): Likewise.
5979         (mips64*-*-linux*): Likewise.
5980         (mips*-*-linux*): Likewise.
5981         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
5982         (sparc64-*-linux*): Likewise.
5983         (sparc64-*-freebsd*): Likewise.
5984
5985 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5986
5987         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
5988         * config/darwin-crt3.c: Move to ../libgcc/config.
5989         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
5990         ($(T)crt3$(objext)): Remove.
5991         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
5992         ($(T)crt2$(objext)): Remove.
5993         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
5994         (powerpc64-*-darwin*): Likewise.
5995
5996 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
5997
5998         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
5999
6000         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
6001         (addsi_1_zext): This.
6002
6003 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
6004
6005         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
6006         * doc/tm.texi: Regenerate.
6007         * target.def (mergeable_rodata_prefix): New defhookpod.
6008         * varasm.c (mergeable_string_section, mergeable_constant_section):
6009         Use it. Allocate name with alloca.
6010
6011 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
6012
6013         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
6014
6015 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
6016
6017         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
6018         overlap check.
6019
6020 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
6021
6022         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
6023         (count_type_elements): Delete.
6024         (complete_ctor_at_level_p): Declare.
6025         * expr.c (flexible_array_member_p): New function, split out from...
6026         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
6027         parameter with for_ctor_p.  When for_ctor_p is true, return the
6028         number of elements that should appear in the top-level constructor,
6029         otherwise return an estimate of the number of scalars.
6030         (categorize_ctor_elements): Replace p_must_clear with p_complete.
6031         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
6032         (complete_ctor_at_level_p): New function, borrowing union logic
6033         from old categorize_ctor_elements_1.
6034         (mostly_zeros_p): Return true if the constructor is not complete.
6035         (all_zeros_p): Update call to categorize_ctor_elements.
6036         * gimplify.c (gimplify_init_constructor): Update call to
6037         categorize_ctor_elements.  Don't call count_type_elements.
6038         Unconditionally prevent clearing for variable-sized types,
6039         otherwise rely on categorize_ctor_elements to detect
6040         incomplete initializers.
6041
6042 2011-07-13  Richard Guenther  <rguenther@suse.de>
6043
6044         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
6045         the final type is integral.
6046
6047 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
6048
6049         * sched-int.h (struct _dep): Add member cost.
6050         (DEP_COST, UNKNOWN_DEP_COST): New macros.
6051         * sched-deps.c (init_dep_1): Initialize DEP_COST.
6052         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
6053         (sched_change_pattern): Reset it for dependent insns.
6054
6055 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6056
6057         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
6058         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
6059         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
6060         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
6061         (CRT0_S, MCRT0_S): Remove.
6062         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
6063         Remove.
6064         (s-crt0): Remove.
6065         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
6066
6067 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
6068
6069         * cse.c (insert_with_costs): Put semi-colon after empty loop body
6070         on the next line.
6071         * emit-rtl.c (push_to_sequence): Likewise.
6072         * haifa-sched.c (max_issue): Likewise.
6073         * matrix-reorg.c (add_allocation_site): Likewise.
6074         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
6075         * reload.c (alternative_allows_const_pool_ref): Likewise.
6076         * sched-rgn.c (rgn_add_block): Likewise.
6077         (rgn_fix_recovery_cfg): Likewise.
6078         * tree.c (attribute_list_contained): Likewise.
6079
6080 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
6081
6082         * config/i386/i386.c: Tidy processor feature bitmasks.
6083         (m_P4_NOCONA): New.
6084
6085 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
6086
6087         PR rtl-opt/49474
6088         * cprop.c (find_implicit_sets): Correct the condition.
6089
6090 2011-07-12  Richard Henderson  <rth@redhat.com>
6091
6092         PR target/49713
6093         * dwarf2out.h (dwarf_frame_regnum): Remove.
6094         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
6095         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
6096         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
6097         (execute_dwarf2_frame): Initialize them.
6098         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
6099         users of the macros with the variables.
6100         (expand_builtin_dwarf_sp_column): Revert last change.
6101         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
6102         result of DWARF_FRAME_REGNUM into a local variable.
6103
6104 2011-07-12  Richard Henderson  <rth@redhat.com>
6105
6106         PR target/49714
6107         * config/i386/i386.c (x86_output_mi_thunk): Use
6108         machopic_indirect_call_target instead of machopic_indirection_name
6109         directly.
6110
6111 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
6112             Eric Botcazou  <ebotcazou@adacore.com>
6113
6114         * prefix.h: Wrap up in extern "C" block.
6115
6116 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
6117
6118         AMD bdver2 Enablement
6119         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
6120         (case ${target}): Add bdver2.
6121         * config/i386/driver-i386.c (host_detect_local_cpu): Let
6122         -march=native recognize bdver2 processors.
6123         * config/i386/i386-c.c (ix86_target_macros_internal): Add
6124         bdver2 def_and_undef
6125         * config/i386/i386.c (struct processor_costs bdver2_cost): New
6126         bdver2 cost table.
6127         (m_BDVER2): New definition.
6128         (m_AMD_MULTIPLE): Includes m_BDVER2.
6129         (initial_ix86_tune_features): Add bdver2 tuning.
6130         (processor_target_table): Add bdver2 entry.
6131         (static const char *const cpu_names): Add bdver2 entry.
6132         (ix86_option_override_internal): Add bdver2 instruction sets.
6133         (ix86_issue_rate): Add bdver2.
6134         (ix86_adjust_cost): Add bdver2.
6135         (has_dispatch): Add bdver2.
6136         * config/i386/i386.h (TARGET_BDVER2): New definition.
6137         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
6138         (enum processor_type): Add PROCESSOR_BDVER2.
6139         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
6140         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
6141         description.
6142
6143 2011-07-12  Richard Henderson  <rth@redhat.com>
6144
6145         PR target/49714
6146         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
6147         destination address in memory on some paths.
6148
6149 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
6150
6151         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
6152         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
6153         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
6154         * function.c (locate_and_pad_parm): Take it into account.
6155         * target.def (function_arg_round_boundary): New hook.
6156         * targhooks.c (default_function_arg_round_boundary): New function.
6157         * targhooks.h (default_function_arg_round_boundary): Declare.
6158         * doc/tm.texi: Regenerate.
6159
6160 2011-07-12  Richard Guenther  <rguenther@suse.de>
6161
6162         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
6163         Do not perform no-op changes.
6164
6165 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
6166
6167         * config/arm/predicates.md (neon_struct_operand): Make a normal
6168         predicate.
6169         (neon_struct_or_register_operand): New predicate.
6170         * config/arm/neon.md (movmisalign<mode>): Replace predicates
6171         with neon_struct_or_register_operand.
6172         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
6173         neon_struct_operand instead of memory_operand.
6174
6175 2011-07-12  Martin Jambor  <mjambor@suse.cz>
6176
6177         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
6178         * cgraph.c (cgraph_get_node_or_alias): Removed.
6179         (change_decl_assembler_name): Changed all calls to
6180         cgraph_get_node_or_alias to a call to cgraph_get_node.
6181         (cgraph_make_decl_local): Likewise.
6182         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
6183         * varasm.c (default_binds_local_p_1): Likewise.
6184         (decl_binds_to_current_def_p): Likewise.
6185
6186 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
6187
6188         PR tree-optimization/49712
6189         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
6190
6191 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
6192
6193         * genautomata.c (add_arc): Return void.  All callers changed.
6194         (make_automaton): Remove dead code.
6195
6196 2011-07-11  Richard Henderson  <rth@redhat.com>
6197
6198         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
6199         (DW_FRAME_POINTER_REGNUM): New.
6200         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
6201         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
6202         (dwf_regno): New.
6203         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
6204         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
6205         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
6206         Use it.
6207         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
6208         * dwarf2out.h (dwarf_frame_regnum): New.
6209         (struct cfa_loc): Document the domain of the reg member.
6210
6211 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
6212
6213         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
6214         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
6215
6216 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
6217
6218         PR debug/49676
6219         * dwarf2out.c (int_shift_loc_descriptor): New function.
6220         (int_loc_descriptor): If shorter, emit i as
6221         (i >> shift), shift, DW_OP_shl for suitable shift value.
6222         Similarly, try to optimize large negative values using
6223         DW_OP_neg of a positive value if shorter.
6224         (size_of_int_shift_loc_descriptor): New function.
6225         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
6226         changes.
6227         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
6228         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
6229         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
6230         is shorter.
6231         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
6232         addend as added DW_OP_plus if it is shorter.
6233
6234 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6235
6236         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
6237         (DTORS_SECTION_ASM_OP): Define.
6238
6239 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6240
6241         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
6242         * config/t-dfprules: Move to ../libgcc/config.
6243         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6244         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6245         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
6246         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
6247         Likewise.
6248         (i[34567]86-*-cygwin*): Likewise.
6249         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
6250         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
6251         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
6252         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
6253         D64PBIT_FUNCS, D128PBIT_FUNCS.
6254
6255 2011-07-11  Richard Guenther  <rguenther@suse.de>
6256
6257         * tree-vrp.c (simplify_conversion_using_ranges): Manually
6258         translate the source value-range through the conversion chain.
6259
6260 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
6261
6262         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
6263
6264 2011-07-11  Arthur Loiret  <aloiret@debian.org>
6265
6266         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
6267         a bi-arch compiler defaulting to 31-bit. In this case:
6268         (tmake_file): Add s390/t-linux64.
6269         * doc/install.texi: Add s390-linux to the list of targets supporting
6270         --enable-targets=all.
6271
6272 2011-07-11  Arthur Loiret  <aloiret@debian.org>
6273             Matthias Klose <doko@debian.org>
6274
6275         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
6276         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
6277         (tm_file): Add mips/linux64.h.
6278         (tmake_file): Add mips/t-linux64.
6279         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
6280         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
6281         instead of hardcoded mabi=n32.
6282         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
6283         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
6284         convention.
6285
6286 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6287
6288         * passes.c (init_optimization_passes): Add invariant motion pass
6289         after induction variable optimization.
6290
6291 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
6292
6293         PR target/39633
6294         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
6295         offsets 1..5 set cc0 in a usable way.
6296
6297 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
6298
6299         * tree.h (call_expr_arg): Remove.
6300         (call_expr_argp): Likewise.
6301
6302 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
6303
6304         * config/sparc/sparc.md (save_register_window_1): Rename to...
6305         (window_save): ...this.
6306         * config/sparc/sparc.c (emit_save_register_window): Rename to...
6307         (emit_window_save): ...this.
6308         (sparc_expand_prologue): Adjust to above renaming.
6309
6310 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
6311
6312         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
6313         of movabs for x32.
6314
6315 2011-07-10  Richard Henderson  <rth@redhat.com>
6316
6317         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
6318         run final, instead of emitting text directly.
6319
6320 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
6321
6322         * config/i386/i386.c (ix86_option_override_internal): Turn on
6323         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
6324         small PIC models for TARGET_X32.
6325
6326 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
6327
6328         PR target/49684
6329         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
6330         $(LIBGCC2_CFLAGS).
6331
6332         PR bootstrap/49680
6333         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
6334         stray notes and debug insns by using prev_nonnote_nondebug_insn
6335         instead of PREV_INSN.
6336
6337 2011-07-09  Richard Henderson  <rth@redhat.com>
6338
6339         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
6340         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
6341         * dwarf2out.c: ... here.
6342         (output_all_cfis): Remove.
6343         (dwarf2out_switch_text_section): Use output_cfis directly.
6344         (size_of_locs): Export.
6345         (output_loc_sequence, output_loc_sequence_raw): Export.
6346         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
6347         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
6348         output_cfa_loc_raw): Move to ...
6349         * dwarfcfi.c: ... here.
6350         * dwarf2out.h: Update decls.
6351
6352 2011-07-09  Richard Henderson  <rth@redhat.com>
6353
6354         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
6355         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
6356         * dwarf2cfi.c: ... here.
6357         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
6358         (DWARF_ROUND, DWARF_CIE_ID): Remove.
6359         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
6360         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
6361         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
6362
6363 2011-07-09  Richard Henderson  <rth@redhat.com>
6364
6365         * dwarf2cfi.c (cie_return_save): New.
6366         (queue_reg_save): Use compare_reg_or_pc.
6367         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
6368         (dwarf2out_frame_debug_expr): Likewise.
6369         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
6370         (initial_return_save): Likewise.
6371         (execute_dwarf2_frame): Save and restore initial return save from
6372         the cie to the fde.
6373         * config/mips/mips.c (mips_frame_set): Remove special case for
6374         DWARF_FRAME_RETURN_COLUMN.
6375
6376 2011-07-09  Richard Henderson  <rth@redhat.com>
6377
6378         * dwarf2cfi.c (lookup_cfa): Remove.
6379         (execute_dwarf2_frame): Assert queues are empty on entry.
6380         Setup initial cfa directly, not via lookup_cfa.
6381         Don't clear args_size state here.
6382
6383 2011-07-09  Richard Henderson  <rth@redhat.com>
6384
6385         * dwarf2cfi.c (add_cfi_vec): New.
6386         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
6387         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
6388         (execute_dwarf2_frame): Set add_cfi_vec.
6389
6390 2011-07-09  Richard Henderson  <rth@redhat.com>
6391
6392         * defaults.h (ASM_COMMENT_START): Move here...
6393         * dwarf2asm.c: ... from here.
6394         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
6395         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
6396         * varasm.c: Likewise.
6397
6398 2011-07-09  Richard Henderson  <rth@redhat.com>
6399
6400         PR debug/49686
6401         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
6402         (create_cfi_notes): ... do it here instead.
6403
6404 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
6405
6406         PR debug/49676
6407         * dwarf2out.c (size_of_int_loc_descriptor): New function.
6408         (address_of_int_loc_descriptor): Use it.
6409         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
6410
6411 2011-07-09  Richard Henderson  <rth@redhat.com>
6412
6413         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
6414         (prologue, epilogue): New.
6415         (return, *rts): New.
6416         (blockage, setd, seti): New.
6417         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
6418         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
6419         (pdp11_saved_regno): New.
6420         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
6421         generate rtl instead of text.
6422         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
6423         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
6424         * config/pdp11/pdp11-protos.h: Update.
6425
6426 2011-07-09  Richard Henderson  <rth@redhat.com>
6427
6428         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
6429         try to insert an rtl prologue here.
6430         (rs6000_output_function_epilogue): Similarly.
6431         * config/rs6000/rs6000.md (prologue): Emit a barrier to
6432         satisfy !TARGET_SCHED_PROLOG.
6433         (epilogue, sibcall_epilogue): Likewise.
6434
6435 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
6436
6437         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
6438         (FP_REG_P): Delete.
6439         (IN_OR_GLOBAL_P): Likewise.
6440
6441 2011-07-08  Jason Merrill  <jason@redhat.com>
6442
6443         PR c++/45437
6444         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
6445         compound assignment.
6446
6447         * cgraph.c (cgraph_add_to_same_comdat_group): New.
6448         * cgraph.h: Declare it.
6449         * ipa.c (function_and_variable_visibility): Make sure thunks
6450         have the right visibility.
6451
6452 2011-07-08  Richard Henderson  <rth@redhat.com>
6453
6454         PR bootstrap/49680
6455         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
6456         any tablejump vector.
6457
6458         PR bootstrap/49680
6459         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
6460         end of the prologue.
6461
6462 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
6463
6464         PR target/49621
6465         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
6466         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
6467         * config/rs6000/vector.md (vector_select_<mode>,
6468         vector_select_<mode>_uns): Change second operand of NE to
6469         CONST0_RTX (<MODE>mode) instead of const0_rtx.
6470         * config/rs6000/altivec.md (*altivec_vsel<mode>,
6471         *altivec_vsel<mode>_uns): Expect second operand of NE to be
6472         zero_constant of the corresponding vector mode.
6473         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
6474         Likewise.
6475
6476 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
6477
6478         * graphite-dependences.c (build_alias_set_powerset): Remove
6479         continue from loop, add one more assert.
6480
6481 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
6482
6483         PR target/46779
6484         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
6485         In particular, allow 8-bit values in r28 and r29.
6486         (avr_hard_regno_scratch_ok): Disallow any register that might be
6487         part of the frame pointer.
6488         (avr_hard_regno_rename_ok): Same.
6489         (avr_legitimate_address_p): Don't allow SUBREGs.
6490
6491 2011-07-08  Julian Brown  <julian@codesourcery.com>
6492
6493         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
6494         big-endian mode.
6495         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
6496         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
6497         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
6498         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
6499         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
6500         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
6501         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
6502         registers in big-endian mode.
6503
6504 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
6505
6506         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
6507         in terms of another.
6508         (write_attr_value): Write a cast if necessary.
6509
6510         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
6511         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
6512         (REG_WORDS_BIG_ENDIAN): Document.
6513         * doc/tm.texi: Regenerate.
6514         * reload.c (operands_match_p): Take it into account.
6515         (reload_adjust_reg_for_mode): Likewise.
6516         * rtlanal.c (subreg_get_info): Likewise.
6517
6518 2011-07-08  Richard Guenther  <rguenther@suse.de>
6519
6520         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
6521         folding.
6522
6523 2011-07-08  Kai Tietz  <ktietz@redhat.com>
6524
6525         * fold-const.c (fold_truth_andor): Factored out truth_andor
6526         label from fold_binary as function.
6527         (fold_binary_loc): Replace truth_andor lable
6528         by function fold_truth_andor.
6529
6530 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
6531
6532         PR middle-end/49519
6533         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
6534         check if address is stored in register. If so - give up.
6535         (check_sibcall_argument_overlap_1): Do not perform check of
6536         overlapping when it is call to address.
6537
6538 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
6539
6540         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
6541         of magic '31'.
6542
6543 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
6544
6545         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
6546         GET_MODE_BITSIZE where appropriate.
6547         (widen_leading, expand_parity, expand_ctz, expand_ffs,
6548         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
6549         expand_float, expand_fix): Likewise.
6550         * expr.c (convert_move, convert_modes, expand_expr_real_2,
6551         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
6552         * stor-layout.c (get_mode_bounds): Likewise.
6553         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
6554         Likewise.
6555         * convert.c (convert_to_integer): Likewise.
6556         * expmed.c (expand_shift_1): Likewise.
6557
6558         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
6559         a bitsize.
6560
6561         * optabs.c (expand_binop): Tighten conditions for doubleword
6562         expansions.
6563         (widen_bswap): Assert that mode bitsize and precision are the same.
6564         * stor-layout.c (get_best_mode): Skip modes that have lower
6565         precision than bitsize.
6566         * recog.c (simplify_while_replacing): Assert that bitsize and
6567         precision are the same.
6568
6569 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6570
6571         * Makefile.in (LIBGCOV): Remove.
6572         (libgcc.mvars): Remove LIBGCOV.
6573         * libgov.c: Move to ../libgcc.
6574
6575 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6576
6577         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
6578
6579 2011-07-08  Martin Jambor  <mjambor@suse.cz>
6580
6581         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
6582         is too big for total scalarization.
6583
6584 2011-07-07  Richard Henderson  <rth@redhat.com>
6585
6586         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
6587         (DBX_DEBUGGING_INFO): Undef.
6588
6589 2011-07-07  Richard Henderson  <rth@redhat.com>
6590
6591         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
6592         Handle some opcodes specially for debugging.
6593         * print-rtl.c: Include dwarf2out.h
6594         (print_rtx): Handle NOTE_INSN_CFI.
6595         * Makefile.in (print-rtl.o): Update.
6596
6597 2011-07-07  Richard Henderson  <rth@redhat.com>
6598
6599         * tree-pass.h (pass_dwarf2_frame): Declare.
6600         * passes.c (init_optimization_passes): Add it.
6601         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
6602         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
6603         make static, do not call add_cfis_to_fde.
6604         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
6605         dwarf2out_frame_init): Merge into...
6606         (execute_dwarf2_frame): ... here.  New function.
6607         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
6608         saved_do_cfi_asm to a tri-state variable.
6609         (gate_dwarf2_frame, pass_dwarf2_frame): New.
6610         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
6611         if it has yet to be done.  Don't call dwarf2cfi_function_init.
6612         * dwarf2out.h, debug.h: Update decls.
6613         * final.c (final_start_function): Don't call
6614         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
6615         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
6616         * toplev.c (lang_dependent_init): Likewise.
6617
6618 2011-07-07  Richard Henderson  <rth@redhat.com>
6619
6620         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
6621         FDE_TABLE_INCREMENT): Replace with...
6622         (fde_vec): ... this, a new vector.
6623         (current_fde): Remove.  Replace all users with cfun->fde.
6624         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
6625         (size_of_aranges, dwarf2out_finish): Likewise.
6626         (dwarf2out_alloc_current_fde): Break out from ...
6627         (dwarf2out_begin_prologue): ... here.
6628         (dwarf2out_frame_init): Remove.
6629         * dwarf2cfi.c: Update all users of current_fde.
6630         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
6631         * dwarf2out.h: Update decls.
6632         (dw_fde_node): Add fde_index member.
6633         * function.h (struct function): Add fde member.
6634
6635 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6636             Richard Henderson  <rth@redhat.com>
6637
6638         * dwarf2cfi.c (add_cfi): Remove.
6639         (dwarf2out_cfi_label): Remove force argument.  Only generate the
6640         label name.
6641         (add_fde_cfi): Simplify the different code paths.
6642         (add_cie_cfi): New.
6643         (old_cfa, old_cfa_remember): New.
6644         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
6645         (last_reg_save_label): Remove.
6646         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
6647         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
6648         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
6649         dwarf2out_frame_debug_cfa_expression,
6650         dwarf2out_frame_debug_cfa_restore,
6651         dwarf2out_frame_debug_cfa_window_save,
6652         dwarf2out_frame_debug_expr): Remove label parameter.
6653         (cfi_label_required_p, add_cfis_to_fde): New.
6654         (dwarf2out_frame_debug_after_prologue): New.
6655         (dwarf2cfi_frame_init): Initialize old_cfa.
6656         (dwarf2out_frame_debug_restore_state): Likewise.
6657         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
6658         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
6659         * final.c (final_start_function): Call
6660         dwarf2out_frame_debug_after_prologue.
6661
6662 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6663             Richard Henderson  <rth@redhat.com>
6664
6665         * dwarf2cfi.c (cfi_insn): New.
6666         (dwarf2out_cfi_label): Don't emit cfi label here.
6667         (add_fde_cfi): Create a NOTE_INSN_CFI.
6668         (dwarf2out_frame_debug): Setup cfi_insn.
6669         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
6670         (dwarf2out_cfi_begin_epilogue): Make static.
6671         (dwarf2out_frame_debug_restore_state): Make static.
6672         * dwarf2out.c (output_cfi_directive): Make static.
6673         (dwarf2out_emit_cfi): New.
6674         * dwarf2out.h: Update.
6675         * final.c (final): Remove CFI notes.
6676         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
6677         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
6678         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
6679         * insn-notes.def (NOTE_INSN_CFI): New.
6680         (NOTE_INSN_CFI_LABEL): New.
6681         * rtl.h (union rtunion_def): Add rt_cfi member.
6682         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
6683
6684 2011-07-07  Richard Henderson  <rth@redhat.com>
6685
6686         * dwarf2cfi.c: New file.
6687         * Makefile.in (OBJS): Add it.
6688         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
6689         * gengtype.c (open_base_files): Include dwarf2out.h.
6690         * coretypes.h (enum var_init_status): Move from ...
6691         * rtl.h: ... here.
6692         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
6693         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
6694         expand_builtin_dwarf_sp_column, init_return_column_size,
6695         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
6696         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
6697         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
6698         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
6699         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
6700         compute_barrier_args_size, dwarf2out_args_size,
6701         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
6702         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
6703         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
6704         queue_reg_save, dwarf2out_flush_queued_reg_saves,
6705         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
6706         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
6707         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
6708         dwarf2out_frame_debug_cfa_expression,
6709         dwarf2out_frame_debug_cfa_restore,
6710         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
6711         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
6712         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
6713         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
6714         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
6715         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
6716         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
6717         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
6718         dw_loc_descr_node): Move to dwarf2out.h.
6719         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
6720         mem_loc_descriptor): Export.
6721         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
6722         (dwarf2out_frame_init): Extract CIE generation code to
6723         dwarf2cfi_frame_init.
6724
6725 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
6726
6727         PR target/49660
6728         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
6729         MASK_V8PLUS, remove commented out flag and reorder.
6730
6731 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
6732
6733         PR c/49644
6734         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
6735         one non-complex and one complex argument, call c_save_expr on both
6736         operands.
6737
6738 2011-07-07  Martin Jambor  <mjambor@suse.cz>
6739
6740         PR middle-end/49495
6741         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
6742         (verify_cgraph_node): Some functinality moved to
6743         verify_edge_corresponds_to_fndecl, call it.
6744
6745 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
6746
6747         * config.gcc (*local*): Remove.
6748         * doc/install-old.texi: Don't mention local configurations.
6749
6750 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
6751
6752         PR debug/49522
6753         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
6754         referencing debug insns that have been reset.
6755         (dead_debug_insert_before): Don't assert reg is non-NULL,
6756         instead return immediately if it is NULL.
6757
6758 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
6759
6760         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
6761
6762 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6763
6764         * hw-doloop.c: New file.
6765         * hw-doloop.h: New file.
6766         * Makefile.in (OBJS): Add hw-doloop.o.
6767         (hw-doloop.o): New rule.
6768         ($(obj_out_file)): Add hw-doloop.h dependency.
6769         * config/bfin/bfin.c: Include "hw-doloop.h".
6770         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
6771         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
6772         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
6773         type changed to hwloop_info.  Return bool, true if the loop was
6774         successfully optimized.  Remove code that was moved to
6775         hw-doloop.c, and adjust other parts.
6776         (hwloop_fail): New static function, containing parts that used
6777         to be in bfin_optimize_loop.
6778         (bfin_discover_loop, bfin_discover_loops, free_loops,
6779         bfin_reorder_loops): Remove.
6780         (hwloop_pattern_reg): New static function.
6781         (bfin_doloop_hooks): New variable.
6782         (bfin_reorg_loops): Remove most code, call reorg_loops.
6783         * config/bfin/bfin.md (doloop_end splitter): Also enable if
6784         loop counter is a memory_operand.
6785
6786 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
6787
6788         * config.gcc: Support --with-multilib-list for x86 Linux targets.
6789
6790         * configure.ac: Mention x86-64 for --with-multilib-list.
6791         * configure: Regenerated.
6792
6793         * config/i386/gnu-user64.h (SPEC_64): Support x32.
6794         (SPEC_32): Likewise.
6795         (ASM_SPEC): Likewise.
6796         (LINK_SPEC): Likewise.
6797         (TARGET_THREAD_SSP_OFFSET): Likewise.
6798         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
6799         (SPEC_X32): New.
6800
6801         * config/i386/i386.h (TARGET_X32): New.
6802         (TARGET_LP64): New.
6803         (LONG_TYPE_SIZE): Likewise.
6804         (POINTER_SIZE): Likewise.
6805         (POINTERS_EXTEND_UNSIGNED): Likewise.
6806         (OPT_ARCH64): Support x32.
6807         (OPT_ARCH32): Likewise.
6808
6809         * config/i386/i386.opt (mx32): New.
6810
6811         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
6812         (GLIBC_DYNAMIC_LINKERX32): Likewise.
6813         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
6814         (GLIBC_DYNAMIC_LINKERX32): Likewise.
6815
6816         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
6817         (BIONIC_DYNAMIC_LINKERX32): Likewise.
6818         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
6819
6820         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
6821
6822         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
6823
6824         * doc/invoke.texi: Document -mx32.
6825
6826 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
6827
6828         * doc/invoke.texi (mwords-little-endian): Deprecate.
6829         * config/arm/arm.opt (mwords-little-endian): Likewise.
6830         * config/arm/arm.c (arm_option_override): Warn about the deprecation
6831         of -mwords-little-endian.
6832
6833 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
6834
6835         * reload1.c (choose_reload_regs): Use mode sizes to check whether
6836         an old reload register completely defines the required value.
6837
6838 2011-07-07  Richard Guenther  <rguenther@suse.de>
6839
6840         * fold-const.c (fold_unary_loc): Do not strip sign-changes
6841         for NEGATE_EXPR.
6842
6843 2011-07-07  Richard Guenther  <rguenther@suse.de>
6844
6845         * tree-vrp.c (simplify_conversion_using_ranges): New function.
6846         (simplify_stmt_using_ranges): Call it.
6847
6848 2011-07-07  Kai Tietz  <ktietz@redhat.com>
6849
6850         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
6851         (lookup_logical_inverted_value): Likewise.
6852         (simplify_bitwise_binary_1): Likewise.
6853         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
6854
6855 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
6856
6857         * gcc.c (%[Spec]): Don't document.
6858         (struct spec_list): Update comment.
6859         (do_spec_1): Don't handle %[Spec].
6860         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
6861
6862 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
6863
6864         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
6865         default based on TARGET_ASM_NAMED_SECTION.
6866         * common/common-target.def (have_named_sections): Default to true.
6867         * common/config/default-common.c: Don't include tm.h.
6868         * common/config/picochip/picochip-common.c
6869         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
6870         * common/config/m32c/m32c-common.c: Remove.
6871         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
6872         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6873         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6874         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6875         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6876         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6877         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6878
6879 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
6880
6881         PR middle-end/49640
6882         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
6883         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
6884
6885 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6886
6887         PR libmudflap/49550
6888         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
6889
6890 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6891
6892         PR target/39150
6893         * configure.ac (gcc_cv_as_hidden): Also accept
6894         x86_64-*-solaris2.1[0-9]*.
6895         (gcc_cv_as_cfi_directive): Likewise.
6896         (gcc_cv_as_comdat_group_group): Likewise.
6897         (set_have_as_tls): Likewise.
6898         * configure: Regenerate.
6899         * config.gcc (i[34567]86-*-solaris2*): Also handle
6900         x86_64-*-solaris2.1[0-9]*.
6901         * config.host (i[34567]86-*-solaris2*): Likewise.
6902         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
6903         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
6904         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
6905         (TARGET_LD_EMULATION): Use it.
6906         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
6907         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
6908         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
6909         (ASM_CPU64_DEFAULT_SPEC): Define.
6910         (ASM_CPU_SPEC): Use %(asm_cpu_default).
6911         (ASM_SPEC): Redefine.
6912         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
6913         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
6914         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
6915         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
6916         configuration.
6917         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
6918
6919 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6920
6921         * config/sol2.h (ASM_SPEC): Split into ...
6922         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
6923         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
6924         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
6925         (ASM_SPEC): Use ASM_SPEC_BASE.
6926         * config/sparc/sol2.h (ASM_SPEC): Redefine.
6927
6928 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
6929
6930         * config/avr/avr.md (*reload_insi): Change predicate #1 to
6931         const_int_operand.  Ditto for peep2 producing this insn.
6932         Add argument to output_reload_insisf call.
6933         (*movsi,*movsf): Add argument to output_movsisf call.
6934         (*reload_insf): New insn and new peep2 to produce it.
6935         * config/avr/avr-protos.h (output_movsisf): Change prototype.
6936         (output_reload_insisf): Change prototype.
6937         * config/avr/avr.c (avr_asm_len): New function.
6938         (output_reload_insisf): Rewrite.
6939         (output_movsisf): Change prototype.  output_reload_insisf for
6940         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
6941         (adjust_insn_length): Add argument to output_movsisf and
6942         output_reload_insisf call.
6943
6944 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6945
6946         * emit-rtl.c (paradoxical_subreg_p): New function.
6947         * rtl.h (paradoxical_subreg_p): Declare.
6948         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
6949         apply_distributive_law, simplify_comparison, simplify_set): Use it.
6950         * cse.c (record_jump_cond, cse_insn): Likewise.
6951         * expr.c (force_operand): Likewise.
6952         * rtlanal.c (num_sign_bit_copies1): Likewise.
6953         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
6954         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
6955         (push_reload): Use precision to check for paradoxical subregs.
6956         * expmed.c (extract_bit_field_1): Likewise.
6957
6958         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
6959         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
6960         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
6961         simplify_set, simplify_logical, expand_compound_operation,
6962         make_extraction, force_to_mode, if_then_else_cond, extended_count,
6963         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
6964         record_value_for_reg): Likewise.
6965         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
6966         * simplify-rtx. c (simplify_unary_operation_1,
6967         simplify_binary_operation_1, simplify_const_relational_operation):
6968         Likewise.
6969
6970         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
6971         instead of GET_MODE_BITSIZE where appropriate.
6972         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
6973         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
6974         init_num_sign_bit_copies_in_rep): Likewise.
6975         * cse.c (fold_rtx, cse_insn): Likewise.
6976         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
6977         * simplify-rtx.c (simplify_unary_operation_1,
6978         simplify_const_unary_operation, simplify_binary_operation_1,
6979         simplify_const_binary_operation, simplify_ternary_operation,
6980         simplify_const_relational_operation, simplify_subreg): Likewise.
6981         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
6982         simplify_if_then_else, simplify_set, expand_compound_operation,
6983         expand_field_assignment, make_extraction, if_then_else_cond,
6984         make_compound_operation, force_to_mode, make_field_assignment,
6985         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
6986         extended_count, try_widen_shift_mode, simplify_shift_const_1,
6987         simplify_comparison, record_promoted_value, simplify_compare_const,
6988         record_dead_and_set_regs_1): Likewise.
6989
6990         Revert:
6991         * simplify-rtx.c (simplify_const_binary_operation): Use the
6992         shift_truncation_mask hook instead of performing modulo by width.
6993         Compare against mode precision, not bitsize.
6994         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
6995         Use shift_truncation_mask instead of constructing the value manually.
6996
6997 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
6998
6999         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
7000         declaration.
7001         (rs6000_save_toc_in_prologue_p): Ditto.
7002
7003         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
7004         up the static chain (r11) during indirect function calls.
7005         (-msave-toc-indirect): New undocumented debug switch.
7006
7007         * config/rs6000/rs6000.c (struct machine_function): Add
7008         save_toc_in_prologue field to note whether the prologue needs to
7009         save the TOC value in the reserved stack location.
7010         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
7011         to save the TOC in the prologue, do so.
7012         (rs6000_trampoline_init): Don't allow creating AIX style
7013         trampolines if -mno-r11 is in effect.
7014         (rs6000_call_indirect_aix): New function to create AIX style
7015         indirect calls, adding support for -mno-r11 to suppress loading
7016         the static chain, and saving the TOC in the prologue instead of
7017         the call body.
7018         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
7019         TOC in the prologue.
7020
7021         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
7022         register numbers.
7023         (TOC_REGNUM): Ditto.
7024         (STATIC_CHAIN_REGNUM): Ditto.
7025         (ARG_POINTER_REGNUM): Ditto.
7026         (SFP_REGNO): Delete, unused.
7027         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
7028         function descriptor offsets.
7029         (TOC_SAVE_OFFSET_64BIT): Ditto.
7030         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
7031         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
7032         (AIX_FUNC_DESC_SC_32BIT): Ditto.
7033         (AIX_FUNC_DESC_SC_64BIT): Ditto.
7034         (ptrload): New mode attribute for the appropriate load of a pointer.
7035         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
7036         (call_indirect_aix64): Ditto.
7037         (call_value_indirect_aix32): Ditto.
7038         (call_value_indirect_aix64): Ditto.
7039         (call_indirect_nonlocal_aix32_internal): Ditto.
7040         (call_indirect_nonlocal_aix32): Ditto.
7041         (call_indirect_nonlocal_aix64_internal): Ditto.
7042         (call_indirect_nonlocal_aix64): Ditto.
7043         (call): Rewrite AIX indirect function calls.  Add support for
7044         eliminating the static chain, and for moving the save of the TOC
7045         to the function prologue.
7046         (call_value): Ditto.
7047         (call_indirect_aix<ptrsize>): Ditto.
7048         (call_indirect_aix<ptrsize>_internal): Ditto.
7049         (call_indirect_aix<ptrsize>_internal2): Ditto.
7050         (call_indirect_aix<ptrsize>_nor11): Ditto.
7051         (call_value_indirect_aix<ptrsize>): Ditto.
7052         (call_value_indirect_aix<ptrsize>_internal): Ditto.
7053         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
7054         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
7055         (call_nonlocal_aix32): Relocate in the rs6000.md file.
7056         (call_nonlocal_aix64): Ditto.
7057
7058         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
7059         -mno-r11 documentation.
7060
7061 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
7062
7063         PR other/49658
7064         * doc/extend.texi (Compound Literals): Fix typo.
7065
7066 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
7067
7068         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
7069
7070 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
7071
7072         * configure.ac (plugin-version.h): Generate
7073         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
7074         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
7075         macros.
7076
7077         * configure: Regenerate.
7078
7079         * doc/plugins.texi (Building GCC plugins): Mention
7080         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
7081
7082 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7083
7084         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
7085         * combine.c (make_extraction, gen_lowpart_or_truncate,
7086         apply_distributive_law, simplify_comparison,
7087         reg_truncated_to_mode, record_truncated_value): Use it.
7088         * cse.c (notreg_cost): Likewise.
7089         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
7090         * expr.c (convert_move, convert_modes): Likewise.
7091         * optabs.c (expand_binop, expand_unop): Likewise.
7092         * postreload.c (move2add_last_label): Likewise.
7093         * regmove.c (optimize_reg_copy_3): Likewise.
7094         * rtlhooks.c (gen_lowpart_general): Likewise.
7095         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
7096
7097 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
7098
7099         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
7100
7101 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7102
7103         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
7104         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
7105         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
7106         (simplify_const_unary_operation, simplify_binary_operation_1,
7107         simplify_const_binary_operation, simplify_const_relational_operation):
7108         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
7109         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
7110         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
7111         simplify_shift_const_1, simplify_comparison): Likewise.
7112         * expr.c (convert_modes): Likewise.
7113         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
7114         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
7115         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
7116
7117         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
7118
7119 2011-07-06  Richard Guenther  <rguenther@suse.de>
7120
7121         PR tree-optimization/49645
7122         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
7123         register variables.
7124         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
7125         in type qualification here ...
7126         (copy_reference_ops_from_ref): ... not here.
7127         (vn_reference_lookup_3): ... or here.
7128         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
7129         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
7130
7131 2011-07-06  Ian Lance Taylor  <iant@google.com>
7132
7133         * doc/install.texi (Configuration): It's
7134         --enable-gnu-indirect-function, not --enable-indirect-function.
7135
7136 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7137
7138         * simplify-rtx.c (simplify_const_binary_operation): Use the
7139         shift_truncation_mask hook instead of performing modulo by width.
7140         Compare against mode precision, not bitsize.
7141         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
7142         Use shift_truncation_mask instead of constructing the value manually.
7143
7144 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7145
7146         PR middle-end/47383
7147         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
7148         address computation and convert to address_mode if needed.
7149
7150 2011-07-06  Richard Guenther  <rguenther@suse.de>
7151
7152         * tree.c (build_common_tree_nodes_2): Merge with
7153         build_common_tree_nodes.
7154         * tree.h (build_common_tree_nodes): Adjust prototype.
7155         (build_common_tree_nodes_2): Remove.
7156         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
7157         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
7158
7159 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
7160
7161         PR tree-optimization/49618
7162         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
7163         t recurse on the decl.
7164         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
7165         return true if expr isn't known to be defined in current
7166         TU or some other LTO partition.
7167
7168 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
7169
7170         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
7171         override CASE_VALUES_THRESHOLD.
7172
7173         * stmt.c (toplevel): Include params.h.
7174         (case_values_threshold): Use the --param case-values-threshold
7175         value if non-zero, otherwise use machine dependent value.
7176         (expand_case): Use case_values_threshold.
7177
7178         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
7179
7180         * doc/invoke.texi (--param case-values-threshold): Document.
7181
7182 2011-07-05  Richard Henderson  <rth@redhat.com>
7183
7184         * dwarf2out.c (dwarf2out_cfi_label): Make static.
7185         (dwarf2out_flush_queued_reg_saves): Make static.
7186         (dwarf2out_reg_save): Remove.
7187         (dwarf2out_return_save): Remove.
7188         (dwarf2out_return_reg): Remove.
7189         (dwarf2out_reg_save_reg): Remove.
7190         (dwarf2out_def_cfa): Merge into ...
7191         (dwarf2out_frame_init): ... here.
7192         * dwarf2out.h, tree.h: Remove declarations as necessary.
7193
7194 2011-07-05  Richard Henderson  <rth@redhat.com>
7195
7196         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
7197         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7198         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
7199         the alloc insn.
7200
7201         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
7202         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
7203         (process_epilogue): Don't call dwarf2out_def_cfa.
7204
7205         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
7206         indicate the return address save.
7207         (process_cfa_register): Likewise.
7208
7209         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
7210         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
7211
7212         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
7213         for ar.pfs save at alloc insn.
7214
7215 2011-07-05  Richard Henderson  <rth@redhat.com>
7216
7217         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
7218         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7219         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
7220         stack pointer save.
7221         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
7222         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
7223         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
7224         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
7225
7226 2011-07-05  Richard Henderson  <rth@redhat.com>
7227
7228         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
7229         VUNSPEC_* constants here instead of via define_constants.
7230         (VUNSPEC_PEM): New constant.
7231         (procedure_entry_mask): New insn.
7232         (prologue): New expander.
7233         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
7234         (vax_expand_prologue): Rename from vax_output_function_prologue;
7235         emit rtl instead of text.
7236         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7237         (print_operand): Add 'x' prefix.
7238
7239 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
7240
7241         PR middle-end/47715
7242         * calls.c (precompute_register_parameters): Promote the function
7243         argument before checking non-legitimate constant.
7244
7245 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7246
7247         PR tree-optimization/47654
7248         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
7249         (lst_do_strip_mine_loop): Return an int.
7250         (lst_do_strip_mine): Same.
7251         (scop_do_strip_mine): Same.
7252         (scop_do_block): Loop blocking should strip-mine at least two loops.
7253         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
7254         (scop_do_interchange): Same.
7255         * graphite-poly.h (scop_do_interchange): Update declaration.
7256         (scop_do_strip_mine): Same.
7257
7258 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7259
7260         * graphite-clast-to-gimple.c (precision_for_value): Removed.
7261         (precision_for_interval): Removed.
7262         (gcc_type_for_interval): Use mpz_sizeinbase.
7263
7264 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7265
7266         * graphite-ppl.h (value_max): Correct computation of max.
7267
7268 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7269
7270         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
7271
7272 2011-07-05  Richard Guenther  <rguenther@suse.de>
7273
7274         * c-decl.c (c_init_decl_processing): Defer building common
7275         tree nodes to c_common_nodes_and_builtins.
7276
7277 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
7278
7279         PR tree-optimization/49580
7280         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
7281         the loop's number of iterations.
7282         * tree-parloops.c (transform_to_exit_first_loop): Add the
7283         handling of the loop's number of iterations before the call
7284         to gimple_duplicate_sese_tail.
7285         Insert the stmt caclculating the new rhs of the loop's
7286         condition stmt to the preheader instead of iters_bb.
7287
7288 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
7289
7290         PR rtl-optimization/47449
7291         * fwprop.c (forward_propagate_subreg): Don't propagate hard
7292         register nor zero/sign extended hard register.
7293
7294 2011-07-05  Richard Guenther  <rguenther@suse.de>
7295
7296         PR tree-optimization/49518
7297         PR tree-optimization/49628
7298         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
7299         irrelevant and invariant data-references.
7300         (vect_analyze_data_ref_access): For invariant loads clear the
7301         group association.
7302
7303 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
7304
7305         PR rtl-optimization/49619
7306         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
7307         pass VOIDmode as op0_mode to recursive call, and return temp even
7308         when different from tor, just if it is not IOR of the original
7309         PLUS arguments.
7310
7311         PR rtl-optimization/49472
7312         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
7313         negating MULT, negate the second operand instead of first.
7314         (simplify_binary_operation_1) <case MULT>: If one operand is
7315         a NEG and the other is MULT, don't attempt to optimize by negation
7316         of the MULT operand if it only moves the NEG operation around.
7317
7318         PR debug/49602
7319         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
7320         get_current_def return value if it can't be trusted to be
7321         the current value of the variable in the current bb.
7322
7323 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
7324
7325         PR target/49600
7326         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
7327         general register to memory for !TARGET_INTER_UNIT_MOVES.
7328
7329 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
7330
7331         PR target/44643
7332         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
7333         instead of TREE_READONLY.
7334
7335 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
7336
7337         * doc/extend.texi (AVR Built-in Functions): Update documentation
7338         of __builtin_avr_fmul*.
7339         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
7340         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
7341         * config/avr/avr.md (fmul): Rename to fmul_insn.
7342         (fmuls): Rename to fmuls_insn.
7343         (fmulsu): Rename to fmulsu_insn.
7344         (fmul,fmuls,fmulsu): New expander.
7345         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
7346         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
7347         * config/avr/libgcc.S (__fmul): New function.
7348         (__fmuls): New function.
7349         (__fmulsu,__fmulsu_exit): New function.
7350
7351 2011-07-04  Richard Guenther  <rguenther@suse.de>
7352
7353         PR tree-optimization/49615
7354         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
7355         basic-block index check.
7356
7357 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
7358
7359         * longlong.h (count_leading_zeros, count_trailing_zeros,
7360         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
7361         resp. 64.
7362
7363 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
7364
7365         PR tree-optimization/49610
7366         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
7367         a basic block.
7368
7369 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
7370             Olivier Hainque  <hainque@adacore.com>
7371             Nicolas Setton  <setton@adacore.com>
7372
7373         * tree.h (TYPE_ARTIFICIAL): New flag.
7374         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
7375         the DIE of the type if it is artificial.
7376         (gen_array_type_die): Likewise.
7377         (gen_enumeration_type_die): Likewise.
7378         (gen_struct_or_union_type_die): Likewise.
7379         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
7380         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
7381
7382 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
7383
7384         * tree-object-size.c (pass_through_call): Handle
7385         BUILT_IN_ASSUME_ALIGNED.
7386
7387 2011-07-01  Martin Jambor  <mjambor@suse.cz>
7388
7389         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
7390
7391 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
7392
7393         PR middle-end/48016
7394         * explow.c (update_nonlocal_goto_save_area): Use proper mode
7395         for stack save area.
7396         * function.c (expand_function_start): Likewise.
7397
7398 2011-07-01  Richard Guenther  <rguenther@suse.de>
7399
7400         PR middle-end/49596
7401         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
7402         may have unknown refs.
7403
7404 2011-07-01  Kai Tietz  <ktietz@redhat.com>
7405
7406         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
7407
7408 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7409
7410         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
7411         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
7412         (Specific, mips-sgi-irix6): Likewise.
7413
7414 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7415
7416         PR libmudflap/49549
7417         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
7418
7419 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
7420
7421         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
7422         [idx]= and [idx1 ... idx2]= before initializers if needed for
7423         array initializers.
7424
7425 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
7426
7427         * config.gcc (score-*-elf): Remove score7.o.
7428         * config/score/t-score-elf: Likewise.
7429         * config/score/score.c: Merge score7 to score.c and
7430         remove forwarding functions.
7431         * config/score/score7.c: Deleted.
7432         * config/score/score7.h: Deleted.
7433
7434 2011-07-01  Richard Guenther  <rguenther@suse.de>
7435
7436         PR tree-optimization/49603
7437         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
7438
7439 2011-06-30  Martin Jambor  <mjambor@suse.cz>
7440
7441         * tree-sra.c (struct access): Rename total_scalarization to
7442         grp_total_scalarization
7443         (completely_scalarize_var): New function.
7444         (sort_and_splice_var_accesses): Set total_scalarization in the
7445         representative access.
7446         (analyze_access_subtree): Propagate total scalarization accross the
7447         tree, no holes in totally scalarized trees, simplify coverage
7448         computation.
7449         (analyze_all_variable_accesses): Call completely_scalarize_var instead
7450         of completely_scalarize_record.
7451
7452 2011-06-30  Richard Henderson  <rth@redhat.com>
7453
7454         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
7455         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
7456         * config/i386/i386.c: Don't include dwarf2out.h.
7457         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
7458         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
7459         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
7460         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
7461         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
7462
7463 2011-06-30  Richard Henderson  <rth@redhat.com>
7464
7465         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
7466         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
7467         * final.c (final_scan_insn): Look for it, and invoke
7468         dwarf2out_frame_debug before the insn if found.
7469
7470 2011-06-30  Richard Henderson  <rth@redhat.com>
7471
7472         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
7473         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
7474
7475 2011-06-30  Richard Henderson  <rth@redhat.com>
7476
7477         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
7478         Define a vector of this type.
7479         (regs_saved_in_regs): Use a VEC.
7480         (num_regs_saved_in_regs): Remove.
7481         (compare_reg_or_pc): New.
7482         (record_reg_saved_in_reg): Split out from...
7483         (dwarf2out_flush_queued_reg_saves): ... here.
7484         (clobbers_queued_reg_save): Update for VEC.
7485         (reg_saved_in): Likewise.
7486         (dwarf2out_frame_debug_init): Likewise.
7487         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
7488         (dwarf2out_frame_debug_cfa_register): Likewise.
7489
7490 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
7491
7492         PR tree-optimization/49572
7493         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
7494         type of the RHS instead of that of the LHS for the expression type.
7495
7496 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
7497
7498         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
7499         unconditionally.
7500
7501 2011-06-30  Richard Guenther  <rguenther@suse.de>
7502
7503         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
7504         * tree-ssa-structalias.c (create_variable_info_for): Do not
7505         add initial constraints for non-var-decls.  Properly handle
7506         globals in other ltrans partitions.
7507         (intra_create_variable_infos): Manually create constraints for
7508         the fake no-alias parameter.
7509         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
7510         and assert there are no clones.
7511
7512 2011-06-30  Richard Guenther  <rguenther@suse.de>
7513
7514         PR tree-optimization/46787
7515         * tree-data-ref.c (dr_address_invariant_p): Remove.
7516         (find_data_references_in_stmt): Invariant accesses are ok now.
7517         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
7518         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
7519         invariant loads.
7520
7521 2011-06-30  Martin Jambor  <mjambor@suse.cz>
7522
7523         PR tree-optimization/49094
7524         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
7525         (build_accesses_from_assign): Use it.
7526
7527 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
7528
7529         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
7530         handling of BUILT_IN_ASSUME_ALIGNED.
7531
7532         PR debug/49364
7533         * dwarf2out.c (output_abbrev_section): Don't return early
7534         if abbrev_die_table_in_use is 1.
7535         (dwarf2out_finish): Instead don't call output_abbrev_section
7536         nor emit abbrev_section_label in that case.
7537
7538 2011-06-30  Nick Clifton  <nickc@redhat.com>
7539
7540         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
7541         for the V850E.
7542
7543 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
7544
7545         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
7546         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
7547
7548 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
7549
7550         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
7551         both pattern and original statements if necessary.
7552         (vect_transform_loop): Likewise.
7553         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
7554         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
7555         Mark the pattern statement only if the original statement doesn't
7556         have its own uses.
7557         (process_use): Call vect_mark_relevant with additional parameter.
7558         (vect_mark_stmts_to_be_vectorized): Likewise.
7559         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
7560         (vect_analyze_stmt): Handle both pattern and original statements
7561         if necessary.
7562         (vect_transform_stmt): Don't store vectorized pattern statement
7563         in the original statement.
7564         (vect_is_simple_use_1): Use related pattern statement only if the
7565         original statement is irrelevant.
7566         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
7567
7568 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
7569
7570         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
7571         option.
7572         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
7573         entry.
7574         (TARGET_AVX128_OPTIMAL): New definition.
7575         * config/i386/i386.c (initial_ix86_tune_features): Initialize
7576         X86_TUNE_AVX128_OPTIMAL entry.
7577         (ix86_option_override_internal): Enable the generation
7578         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
7579         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
7580         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
7581
7582 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
7583
7584         PR tree-optimization/49539
7585         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
7586         names by means of stmt_references_abnormal_ssa_name.
7587         (associate_plusminus): Call can_propagate_from before propagating
7588         from definition statements.
7589         (ssa_forward_propagate_and_combine): Remove superfluous newline.
7590
7591 2011-06-29  Richard Guenther  <rguenther@suse.de>
7592
7593         * doc/invoke.texi: Document -scev dump modifier.
7594         * tree-pass.h (TDF_SCEV): New dump flag.
7595         * tree-dump.c (dump_option_value_in): Add scev.
7596         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
7597         * tree-scalar-evolution.c: Likewise.
7598
7599 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
7600
7601         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
7602         (cxa_type_match): Correct declaration.
7603         (__gnu_unwind_pr_common): Reconstruct additional indirection
7604         when __cxa_type_match returns succeeded_with_ptr_to_base.
7605
7606 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7607
7608         PR rtl-optimization/49114
7609         * reload.c (struct replacement): Remove SUBREG_LOC member.
7610         (push_reload): Do not set it.
7611         (push_replacement): Likewise.
7612         (subst_reload): Remove dead code.
7613         (copy_replacements): Remove assertion.
7614         (copy_replacements_1): Do not handle SUBREG_LOC.
7615         (move_replacements): Likewise.
7616         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
7617         Detect subregs via recursive descent instead of via SUBREG_LOC.
7618
7619 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
7620
7621         * config/avr/avr.c (avr_encode_section_info): Dispatch to
7622         default_encode_section_info.
7623
7624 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
7625
7626         PR tree-optimization/49545
7627         * builtins.c (get_object_alignment_1): Update function comment.
7628         Do not use DECL_ALIGN for functions, but test
7629         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
7630         * fold-const.c (get_pointer_modulus_and_residue): Don't check
7631         for functions here.
7632         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
7633
7634 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
7635
7636         PR debug/49567
7637         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
7638         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
7639
7640 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
7641
7642         PR target/34734
7643         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
7644         about uninitialized data attributed 'progmem' from here...
7645         (avr_encode_section_info): ...to this new function.
7646         (TARGET_ENCODE_SECTION_INFO): New define.
7647         (avr_section_type_flags): For data in ".progmem.data", remove
7648         section flag SECTION_WRITE.
7649
7650 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
7651
7652         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
7653         _xmulhisi3_exit.
7654         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
7655         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
7656         (__umulhisi3): Ditto.
7657         * config/avr/avr.md (mulhisi3): New insn expender.
7658         (umulhisi3): New insn expender.
7659         (*mulhisi3_call): New insn.
7660         (*umulhisi3_call): New insn.
7661
7662 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
7663
7664         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
7665
7666 2011-06-28  Richard Henderson  <rth@redhat.com>
7667
7668         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
7669         all code and arguments that handled pushes.  Update all callers.
7670
7671 2011-06-28  Richard Henderson  <rth@redhat.com>
7672
7673         * config/arm/arm.c (arm_output_function_prologue): Don't call
7674         thumb1_output_function_prologue.
7675         (arm_expand_prologue): Avoid dead store.
7676         (number_of_first_bit_set): Use ctz_hwi.
7677         (thumb1_emit_multi_reg_push): New.
7678         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
7679         to emit the entire prologue as rtl.
7680         (thumb1_output_interwork): Split out from
7681         thumb1_output_function_prologue.
7682         (thumb1_output_function_prologue): Remove.
7683         (arm_attr_length_push_multi): Handle thumb1.
7684         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
7685         (prologue_thumb1_interwork): New.
7686         (*push_multi): Allow thumb1; use push_mult_memory_operand.
7687         * config/arm/predicates.md (push_mult_memory_operand): New.
7688
7689 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
7690
7691         * config/sparc/sync.md (*stbar): Delete.
7692         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
7693
7694 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
7695
7696         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
7697
7698 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7699
7700         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
7701         (TARGET_64BIT_DEFAULT): Define.
7702         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
7703         of tm_file.
7704         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
7705
7706 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
7707
7708         * common.opt (in_lto_p): New Variable entry.
7709         * flags.h (in_lto_p): Move to common.opt.
7710         * gcc.c: Include params.h.
7711         (set_option_handlers): Also use common_handle_option and
7712         target_handle_option.
7713         (main): Call global_init_params, finish_params and init_options_struct.
7714         * opts.c (debug_type_names): Move from toplev.c.
7715         (print_filtered_help): Access quiet_flag through opts pointer.
7716         (common_handle_option): Return early in the driver for some options.
7717         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
7718         opts pointer.
7719         * toplev.c (in_lto_p): Move to common.opt.
7720         (debug_type_names): Move to opts.c.
7721         * Makefile.in (OBJS): Remove opts.o.
7722         (OBJS-libcommon-target): Add opts.o.
7723         (gcc.o): Update dependencies.
7724
7725 2011-06-28  Kai Tietz  <ktietz@redhat.com>
7726
7727         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
7728
7729 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7730
7731         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
7732         with '=' constraint modifier.
7733         (*divdf3_vfp): Likewise.
7734         ("*mulsf3_vfp"): Likewise.
7735         ("*muldf3_vfp"): Likewise.
7736         ("*mulsf3negsf_vfp"): Likewise.
7737         ("*muldf3negdf_vfp"): Likewise.
7738
7739 2011-06-28  Nick Clifton  <nickc@redhat.com>
7740
7741         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
7742         relaxation when performing an incremental link.
7743
7744 2011-06-28  Kai Tietz  <ktietz@redhat.com>
7745
7746         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
7747         within BB from last to first.
7748
7749 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
7750
7751         * genattr-common.c: New.  Based on genattr.c.
7752         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
7753         (MOSTLYCLEANFILES): Add insn-attr-common.h.
7754         (opts.o): Update dependencies.
7755         (.PRECIOUS): Add insn-attr-common.h.
7756         (simple_rtl_generated_h): Add insn-attr-common.h.
7757         (build/genattr-common.o): New.
7758         (genprogrtl): Add attr-common.
7759         * genattr.c (main): Include insn-attr-common.h.  Don't generate
7760         definitions of DELAY_SLOTS or INSN_SCHEDULING.
7761         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
7762
7763 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
7764
7765         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
7766         avr-*-* and avr-*-rtems* targets.
7767
7768         * config/avr/elf.h: New file.
7769         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
7770         (TARGET_ASM_SELECT_SECTION): Define.
7771         (INIT_SECTION_ASM_OP): Undefine.
7772         (FINI_SECTION_ASM_OP): Undefine.
7773         (READONLY_DATA_SECTION_ASM_OP): Undefine.
7774         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
7775         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
7776         * config/avr/avr.h:
7777         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
7778         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
7779         (MAX_OFILE_ALIGNMENT): Move to elf.h.
7780         (STRING_LIMIT): Move to elf.h.
7781         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
7782         (ASM_DECLARE_OBJECT_NAME): Remove.
7783         (ESCAPES): Remove.
7784         (ASM_OUTPUT_SKIP): Remove.
7785         (DWARF2_DEBUGGING_INFO): Remove.
7786         (OBJECT_FORMAT_ELF): Remove.
7787         (USER_LABEL_PREFIX): Remove.
7788         (ASM_OUTPUT_EXTERNAL): Remove.
7789         (ASM_OUTPUT_ASCII): Remove.
7790         (TYPE_ASM_OP): Remove.
7791         (SIZE_ASM_OP): Remove.
7792         (WEAK_ASM_OP): Remove.
7793         (STRING_ASM_OP): Remove.
7794         (SET_ASM_OP): Remove.
7795         (ASM_WEAKEN_LABEL): Remove.
7796         (TYPE_OPERAND_FMT): Remove.
7797         (ASM_DECLARE_FUNCTION_SIZE): Remove.
7798         (ASM_FINISH_DECLARE_OBJECT): Remove.
7799         (NO_DOLLAR_IN_LABEL): Remove.
7800         (ASM_GENERATE_INTERNAL_LABEL): Remove.
7801         (ASM_OUTPUT_CASE_LABEL): Remove.
7802         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
7803         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
7804         (gas_output_ascii): Remove.
7805         (gas_output_limited_string): Remove.
7806         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
7807         * config/avr/avr-protos.h
7808         (gas_output_ascii): Remove prototye.
7809         (gas_output_limited_string): Remove prototype.
7810
7811 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
7812
7813         PR target/48637
7814         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
7815         asm operands.
7816
7817 2011-06-27  Jan Hubicka  <jh@suse.cz>
7818
7819         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
7820         node instead of references in node.
7821
7822 2011-06-27  Richard Henderson  <rth@redhat.com>
7823
7824         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
7825         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
7826         inside ifdef.
7827
7828 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
7829
7830         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
7831
7832         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
7833         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
7834         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
7835         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
7836         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
7837         (evaluate_stmt, execute_fold_all_builtins): Handle
7838         BUILT_IN_ASSUME_ALIGNED.
7839         * tree-ssa-dce.c (propagate_necessity): Likewise.
7840         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
7841         call_may_clobber_ref_p_1): Likewise.
7842         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
7843         (expand_builtin_assume_aligned): New function.
7844         * doc/extend.texi (__builtin_assume_aligned): Document.
7845
7846         PR debug/49544
7847         * cselib.c (promote_debug_loc): If cselib_preserve_constants
7848         and l has two DEBUG_INSN owned locs instead of just one, adjust
7849         the second location's setting_insn too.
7850
7851 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7852
7853         PR libmudflap/38738
7854         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
7855
7856 2011-06-27  Nick Clifton  <nickc@redhat.com>
7857
7858         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
7859         bit position of highest bit set into a count of the high zero bits.
7860
7861 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
7862
7863         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
7864
7865 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
7866
7867         PR lto/48492
7868         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
7869         to a NULL parent.
7870
7871 2011-06-27  Richard Guenther  <rguenther@suse.de>
7872
7873         PR tree-optimization/49394
7874         * passes.c (execute_one_pass): Restore current_pass after
7875         applying IPA transforms.
7876
7877 2011-06-27  Kai Tietz  <ktietz@redhat.com>
7878
7879         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
7880         out of type precision after operation.
7881         (find_bswap): Take for limit value the integer auto-promotion
7882         into account.
7883
7884 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
7885
7886         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
7887         forward scan as well.
7888
7889 2011-06-27  Tristan Gingold  <gingold@adacore.com>
7890
7891         PR target/44241
7892         * config/vms/vms-protos.h: New file.
7893         * config/vms/vms-crtlmap.map: New file.
7894         * config/vms/vms.c: New file.
7895         * config/vms/make-crtlmap.awk: New file.
7896         * config/vms/vms-crtl.h: File removed.
7897         * config/vms/vms-crtl-64.h: File removed.
7898         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
7899         * config/alpha/vms64.h: Do not include vms-crtl-64.h
7900         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
7901         clear some builtins on VMS.  Calls vms_patch_builtins.
7902         (avms_asm_output_external): Remove.
7903         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
7904         (struct crtl_name_spec): Remove
7905         (DO_CTRL_NAMES): Remove.
7906         * config/ia64/vms.h (struct crtl_name_spec): Remove
7907         (DO_CTRL_NAMES): Remove.
7908         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
7909         clear some builtins on VMS.  Calls vms_patch_builtins.
7910         (ia64_asm_output_external): Remove DO_CRTL_NAME.
7911         * config/ia64/vms64.h: Do not include vms-crtl-64.h
7912         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
7913
7914 2011-06-27  Tristan Gingold  <gingold@adacore.com>
7915
7916         * config/alpha/alpha.c (alpha_end_function): Always generate .end
7917         directive on VMS.
7918
7919 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
7920
7921         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
7922         the function receives nonlocal gotos.
7923
7924 2011-06-27  Richard Guenther  <rguenther@suse.de>
7925
7926         PR tree-optimization/49536
7927         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
7928         For non-scalar inner types use a scalar type according to
7929         the scalar inner mode.
7930
7931 2011-06-27  Richard Guenther  <rguenther@suse.de>
7932
7933         PR tree-optimization/49365
7934         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
7935
7936 2011-06-27  Richard Guenther  <rguenther@suse.de>
7937
7938         PR tree-optimization/49169
7939         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
7940         the alignment of function decls.
7941
7942 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
7943
7944         PR target/47997
7945         * config/darwin.c (darwin_mergeable_string_section): Place string
7946         constants in '.cstring' rather than '.const' when CF/NSStrings are
7947         active.
7948
7949 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
7950
7951         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
7952         (emit_save_register_window): Likewise.
7953         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
7954         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
7955         Swap back %o7/%i7 in register naming.
7956
7957 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
7958
7959         PR driver/49371
7960         * config/darwin.c (darwin_override_options): Improve warning when
7961         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
7962         is given with fpie/fPIE.
7963         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
7964         * config/darwin9.h (PIE_SPEC): New.
7965
7966 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
7967
7968         * timevar.c (timevar_print): Increase width for display of timevar
7969         name.
7970
7971 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
7972
7973         PR c++/46400
7974         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
7975         instead of TYPE_CHAIN for chain_next for types.
7976
7977 2011-06-24  Richard Henderson  <rth@redhat.com>
7978
7979         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
7980         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
7981         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
7982         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
7983         (sparc_flat_expand_prologue): Emit individual instructions
7984         instead of one of the above.
7985
7986 2011-06-24  Easwaran Raman  <eraman@google.com>
7987
7988         PR rtl-optimization/49429
7989         PR target/49454
7990         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
7991         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
7992         used to copy y into x.
7993         * calls.c (initialize_argument_information): Mark
7994         an argument addressable if it is passed by invisible reference.
7995         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
7996         if it is passed by reference.
7997
7998 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
7999
8000         PR rtl-optimization/49504
8001         * rtlanal.c (nonzero_bits1): Properly handle addition or
8002         subtraction of a pointer in Pmode if pointers extend unsigned.
8003         (num_sign_bit_copies1): Likewise.
8004
8005 2011-06-24  Martin Jambor  <mjambor@suse.cz>
8006
8007         PR tree-optimizations/49516
8008         * tree-sra.c (sra_modify_assign): Choose the safe path for
8009         aggregate copies if we also did scalar replacements.
8010
8011 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8012
8013         PR target/49335
8014         * config/arm/predicates.md (add_operator): New.
8015         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
8016
8017 2011-06-24  Andi Kleen  <ak@linux.intel.com>
8018
8019         * tree-sra.c (type_internals_preclude_sra_p): Add msg
8020         parameter. Split up ifs and report reason in *msg.
8021         (reject): Add.
8022         (find_var_candiate): Add msg variable.
8023         Split up ifs and report reason to reject.
8024         (find_param_candidates): Add msg variable.
8025         Pass msg to type_internals_preclude_sra_p.
8026
8027 2011-06-23  Jeff Law  <law@redhat.com>
8028
8029         PR middle-end/48770
8030         * reload.h (reload): Change to return a bool.
8031         * ira.c (ira): If requested by reload, run a fast DCE pass after
8032         reload has completed.  Fix comment typo.
8033         * reload1.c (need_dce): New file scoped static.
8034         (reload): Set reload_completed here.  Return whether or not a DCE
8035         pass after reload is needed.
8036         (delete_dead_insn): Set need_dce as needed.
8037
8038         PR middle-end/49465
8039         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
8040         to detect threading through joiner block.  If there was already
8041         an edge to the new target, then do not change the PHI nodes.
8042
8043 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
8044
8045         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
8046         get_pointer_alignment to see if base isn't sufficiently aligned.
8047
8048 2011-06-23  Jan Hubicka  <jh@suse.cz>
8049
8050         PR tree-optimize/49373
8051         * tree-pass.h (all_late_ipa_passes): Declare.
8052         * cgraphunit.c (init_lowered_empty_function): Fix properties.
8053         (cgraph_optimize): Execute late passes; remove unreachable funcions
8054         after materialization.
8055         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
8056         LTOing.
8057         * passes.c (all_late_ipa_passes): Declare.
8058         (dump_passes, register_pass): Handle late ipa passes.
8059         (init_optimization_passes): Move ipa_pta to late passes; schedule
8060         fixup_cfg at beggining of all_passes.
8061         (apply_ipa_transforms): New function.
8062         (execute_one_pass): When doing simple ipa pass, apply all transforms.
8063
8064 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
8065
8066         * params.c: Include common/common-target.h.  Don't include tm.h.
8067         (lang_independent_params): Move from toplev.c.
8068         (global_init_params): New.
8069         * params.h (global_init_params): Declare.
8070         * target.def (default_params): Move to common-target.def.
8071         * toplev.c (lang_independent_options): Remove.
8072         (lang_independent_params): Move to params.c.
8073         (general_init): Use global_init_params.
8074         * common/common-target.def (option_default_params): Move from
8075         target.def.
8076         * common/config/ia64/ia64-common.c: Include params.h.
8077         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8078         from ia64.c.
8079         * common/config/rs6000/rs6000-common.c: Include params.h.
8080         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8081         from rs6000.c.
8082         * common/config/sh/sh-common.c: Include params.h.
8083         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8084         from sh.c.
8085         * common/config/spu/spu-common.c: Include params.h.
8086         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
8087         from spu.c.
8088         * config/ia64/ia64.c (ia64_option_default_params,
8089         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
8090         * config/rs6000/rs6000.c (rs6000_option_default_params,
8091         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
8092         * config/sh/sh.c (sh_option_default_params,
8093         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
8094         * config/spu/spu.c (spu_option_default_params,
8095         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
8096         * Makefile.in (OBJS): Remove params.o.
8097         (OBJS-libcommon-target): Add params.o.
8098         (params.o, $(common_out_object_file)): Update dependencies.
8099         * doc/tm.texi: Regenerate.
8100
8101 2011-06-23  Alan Modra  <amodra@gmail.com>
8102
8103         PR bootstrap/49383
8104         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
8105         invocation for 2011-06-09 changes.
8106
8107 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
8108
8109         PR libgomp/49490
8110         * omp-low.c (expand_omp_for_static_nochunk): Only
8111         use n ceil/ nthreads size for the first n % nthreads threads in the
8112         team instead of all threads except for the last few ones which
8113         get less work or none at all.
8114
8115         PR debug/49496
8116         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
8117         uses.
8118
8119 2011-06-22  Richard Guenther  <rguenther@suse.de>
8120
8121         PR tree-optimization/49493
8122         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
8123         Refer to the alias target of variables.
8124         (associate_varinfo_to_alias_1): Remove.
8125         (ipa_pta_execute): Do not associate aliases with anything.
8126         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
8127         (cgraph_function_node): Likewise.
8128         (cgraph_function_or_thunk_node): Likewise.
8129         (varpool_variable_node): Likewise.
8130
8131 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
8132
8133         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
8134         * config.gcc (arm*-*-linux*): Default to gnu tls.
8135         (arm*-*-*): Add --with-tls option.
8136         (all_defaults): Add 'tls'.
8137
8138 2011-06-22  Richard Henderson  <rth@redhat.com>
8139
8140         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
8141         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8142         (dwarf2out_frame_debug_cfa_window_save): Rename from
8143         dwarf2out_window_save; make static.
8144         * tree.h (dwarf2out_window_save): Don't declare.
8145
8146         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
8147         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8148         (emit_save_register_window): Rename from gen_save_register_window;
8149         emit the insn and add REG_CFA_* notes.
8150         (sparc_expand_prologue): Update to match.
8151         * config/sparc/sparc.md (save_register_window_1): Simplify from
8152         save_register_window<P:mode>.
8153
8154 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8155
8156         PR target/49497
8157         * config/i386/i386.md (*lea_general_2): Always allow SImode.
8158         (*lea_general_2_zext): Likewise.
8159         (imul to lea peepholes): Use const359_operand and check
8160         TARGET_PARTIAL_REG_STALL.
8161
8162         * config/i386/predicates.md (const359_operand): New.
8163
8164 2011-06-22  Michael Matz  <matz@suse.de>
8165
8166         * cgraphunit.c (assemble_thunk): Use correct return type.
8167
8168 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
8169             Dmitry Melnik  <dm@ispras.ru>
8170
8171         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
8172         (neon_output_shift_immediate): Ditto.
8173         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
8174         prototype.
8175         (neon_output_shift_immediate): Ditto.
8176         * config/arm/neon.md (vashl<mode>3): Modified constraint.
8177         (vashr<mode>3_imm): New insn pattern.
8178         (vlshr<mode>3_imm): Ditto.
8179         (vashr<mode>3): Modified constraint.
8180         (vlshr<mode>3): Ditto.
8181         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
8182         predicate.
8183         (imm_for_neon_rshift_operand): Ditto.
8184         (imm_lshift_or_reg_neon): Ditto.
8185         (imm_rshift_or_reg_neon): Ditto.
8186
8187         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
8188
8189 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
8190
8191         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
8192         builtin calls even if likelyvalue is not CONSTANT.
8193         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
8194         Return get_value_for_expr of first operand
8195         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
8196         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8197         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
8198         their non-checking counterparts.
8199         (call_may_clobber_ref_p_1): Likewise.
8200         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
8201         like their non-checking counterparts.
8202         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8203         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
8204         like their non-checking counterparts.
8205         (find_func_clobbers): Likewise.
8206         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
8207         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
8208
8209         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
8210         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
8211         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
8212         of base type reference as argument.
8213         (resolve_addr_in_expr): Likewise.  Fix keep computation.
8214         (convert_descriptor_to_signed): Renamed to...
8215         (convert_descriptor_to_mode): ... this.  For wider types convert to
8216         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
8217         (typed_binop): New function.
8218         (scompare_loc_descriptor, ucompare_loc_descriptor,
8219         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
8220         default to unsigned type instead of signed.
8221
8222         PR debug/47858
8223         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
8224         (gimple_build_debug_source_bind_stat): New prototype.
8225         (gimple_build_debug_source_bind): Define.
8226         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
8227         gimple_debug_source_bind_get_value,
8228         gimple_debug_source_bind_get_value_ptr,
8229         gimple_debug_source_bind_set_var,
8230         gimple_debug_source_bind_set_value): New inlines.
8231         * gimple.c (gimple_build_debug_source_bind_stat): New function.
8232         * gimple-pretty-print.c (dump_gimple_debug): Handle
8233         GIMPLE_DEBUG_SOURCE_BIND.
8234         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
8235         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8236         * tree-parloops.c (eliminate_local_variables,
8237         separate_decls_in_region): Likewise.
8238         (separate_decls_in_region_debug): Renamed from
8239         separate_decls_in_region_debug_bind.  Handle
8240         gimple_debug_source_bind_p.
8241         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
8242         prototypes.
8243         (DECL_HAS_DEBUG_ARGS_P): Define.
8244         (struct tree_function_decl): Add has_debug_args_flag field.
8245         * tree.c (debug_args_for_decl): New variable.
8246         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
8247         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
8248         (rewrite_debug_stmt_uses): New function.
8249         (rewrite_stmt): Use it to rewrite debug stmt uses.
8250         * rtl.def (DEBUG_PARAMETER_REF): New.
8251         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
8252         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
8253         DEBUG_PARAMETER_REF.
8254         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
8255         * print-rtl.c (print_rtx): Likewise.
8256         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
8257         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
8258         debug stmts in the first bb.
8259         * tree-inline.c (remap_ssa_name): If remapping default def
8260         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
8261         a source bind debug stmt.
8262         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
8263         (maybe_move_debug_stmts_to_successors): Likewise.
8264         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
8265         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
8266         debug args vector from old_decl to new_decl.
8267         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
8268         or modified parameters, add debug bind stmts before call
8269         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
8270         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
8271         on DECL_DEBUG_EXPRs from debug args vector.
8272         (expand_debug_source_expr): New function.
8273         (expand_debug_locations): Use it for source bind insns.
8274         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
8275         * var-tracking.c (prepare_call_arguments): Add debug args
8276         to call_arguments if any.
8277         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
8278         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
8279         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
8280         (get_ref_die_offset, parameter_ref_descriptor): New functions.
8281         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
8282         (gen_subprogram_die): Handle parameters identified by
8283         DEBUG_PARAMETER_REF.
8284
8285 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
8286
8287         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
8288         * doc/install.texi (Configuration): Document --with-tls.
8289         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
8290         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
8291         (arm_tls_descseq_addr): New.
8292         (legitimize_tls_address): Add tlsdesc support.
8293         (arm_cannot_copy_insn_p): Check for tlscall.
8294         (arm_emit_tls_decoration): Likewise.
8295         * config/arm/arm.h (TARGET_GNU2_TLS): New.
8296         (OPTION_DEFAULT_SPECS): Add with-tls support.
8297         * config/arm/arm.md (R1_REGNUM): Define.
8298         (tlscall): New.
8299         * config/arm/arm.opt (tls_type): New enumeration type and values.
8300         (mtls-dialect): New switch.
8301         * config/arm/arm-opts.h (enum tls_type): New.
8302
8303 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8304
8305         * attribs.c (register_attribute): Added assert to check that all
8306         attribute specs are registered with a name that is not empty and
8307         does not start with '_'.
8308         (decl_attributes): Avoid the lookup of the "naked" attribute spec
8309         if the function has no attributes.
8310         * tree.c (is_attribute_with_length_p): Removed.
8311         (is_attribute_p): Removed.
8312         (private_is_attribute_p): New.
8313         (private_lookup_attribute): New.
8314         (lookup_attribute): Removed.
8315         (lookup_ident_attribute): New.
8316         (remove_attribute): Require the first argument to be in the form
8317         'text', not '__text__'.  Updated asserts.
8318         (merge_attributes): Use lookup_ident_attributes instead of
8319         lookup_attribute.
8320         (merge_dllimport_decl_attributes): Use remove_attribute.
8321         (attribute_list_contained): Likewise.
8322         (attribute_list_equal): Immediately return 1 if the arguments are
8323         identical pointers.
8324         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
8325         'int'.  Require the first argument to be in the form 'text', not
8326         '__text__'.  Require the second argument to be an identifier.
8327         (lookup_attribute): Made inline.  Require the first argument to be
8328         in the form 'text', not '__text__'.
8329         (private_is_attribute_p, private_lookup_attribute): New.
8330         Updated comments.
8331
8332 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
8333
8334         * builtins.c: Add sync_ or SYNC__ to builtin names.
8335         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
8336         * omp-low.c: Add sync_ or SYNC__ to builtin names.
8337
8338 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
8339
8340         PR target/33049
8341         * config/avr/avr.md (extzv): New expander.
8342         (*extzv): New insn.
8343         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
8344         * config/avr/constraints.md (C04): New constraint.
8345         * doc/md.texi (Machine Constraints): Document it.
8346
8347 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
8348
8349         PR middle-end/49489
8350         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
8351         unsignedp argument instead of 1 for clrsb_optab.
8352         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
8353         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
8354         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
8355         * optabs.c (widen_leading): Call widen_operand and expand_unop
8356         with 0 as unsignedp argument instead of 1 for clrsb_optab.
8357         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
8358
8359 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
8360
8361         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
8362
8363 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
8364
8365         * gensupport.c (add_define_attr): New static function.
8366         (is_predicable): Allow multi-alternative lists for the "predicable"
8367         attribute.
8368         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
8369         (process_one_cond_exec): Call alter_attrs_for_insn.
8370         * doc/md.texi (Defining Attributes): Mention some standard names.
8371         (Conditional Execution): Update documentation for "predicable".
8372
8373         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
8374         __builtin_clrsbll): Document.
8375         * doc/rtl.texi (clrsb): New entry.
8376         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
8377         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
8378         (expand_unop): Handle clrsb_optab.
8379         (init_optabs): Initialize it.
8380         * optabs.h (enum optab_index): New entry OTI_clrsb.
8381         (clrsb_optab): Define.
8382         * genopinit.c (optabs): Add an entry for it.
8383         * builtins.c (expand_builtin): Handle clrsb builtin functions.
8384         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
8385         BUILT_IN_CLRSBLL): New.
8386         * rtl.def (CLRSB): New code.
8387         * dwarf2out.c (mem_loc_descriptor): Handle it.
8388         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
8389         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
8390         and popcount.
8391         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
8392         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
8393         (__ctzDI2): Move declaration.
8394         * config/bfin/bfin.md (clrsbsi2): New expander.
8395         (signbitssi2): Use the CLRSB rtx.
8396         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
8397         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
8398
8399 2011-06-21  Richard Guenther  <rguenther@suse.de>
8400
8401         * ipa-inline-transform.c (inline_transform): Fix previous change.
8402
8403 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
8404
8405         PR tree-optimization/49478
8406         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
8407         with constant operand.
8408
8409 2011-06-21  Richard Guenther  <rguenther@suse.de>
8410
8411         * ipa-inline-transform.c (inline_transform): Fix typo.
8412
8413 2011-06-21  Richard Guenther  <rguenther@suse.de>
8414
8415         PR tree-optimization/49483
8416         * tree-vect-stmts.c (vectorizable_assignment): Also handle
8417         VIEW_CONVERT_EXPR conversions.
8418
8419 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
8420
8421         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
8422         * config/avr/avr-tables.opt: New file (generated).
8423         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
8424         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
8425         avr-mcus.def.
8426         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
8427         (avr_option_override): Don't process -mmcu= argument here.  Set
8428         avr_current_device using avr_mcu_index.
8429         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
8430         * config/avr/avr.opt (mmcu=): Use Enum.
8431         * config/avr/t-avr (avr-devices.o): Update dependencies.
8432         ($(srcdir)/config/avr/avr-tables.opt): New.
8433         * target.def (help): Remove.
8434         * doc/tm.texi.in (TARGET_HELP): Remove.
8435         * doc/tm.texi: Regenerate.
8436         * opts.c: Don't include target.h.
8437         (common_handle_option): Don't call targetm.help.
8438         * system.h (TARGET_HELP): Poison.
8439         * Makefile.in (opts.o): Update dependencies.
8440
8441 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8442
8443         * config/usegld.h: New file.
8444         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
8445         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
8446         (LIB_SPEC): Likewise.  Search /lib.
8447         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
8448         (RDYNAMIC_SPEC): Handle GNU ld.
8449         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
8450         Define.
8451         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
8452         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
8453         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
8454         (STACK_CHECK_STATIC_BUILTIN): Define.
8455         * config/sol2.opt (compat-bsd): Remove.
8456         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
8457         * config/sol2-bi.h: New file.
8458         * config/sol2-gld.h: Remove.
8459         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
8460         (NO_DBX_BNSYM_ENSYM): Remove.
8461         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
8462         (STACK_CHECK_STATIC_BUILTIN): Remove.
8463         Test USE_GLD instead of TARGET_GNU_LD.
8464         * config/i386/sol2-10.h: Rename to ...
8465         * config/i386/sol2-bi.h .. this.
8466         (SUBTARGET_EXTRA_SPECS): Redefine.
8467         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
8468         (MULTILIB_DEFAULTS): Remove.
8469         (DEFAULT_ARCH32_P): Define.
8470         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
8471         (ARCH64_SUBDIR): Define.
8472         Test USE_GLD instead of TARGET_GNU_LD.
8473         (I386_EMULATION): Rename to ...
8474         (ARCH32_EMULATION): ... this.
8475         (X86_64_EMULATION): Rename to ...
8476         (ARCH64_EMULATION): ... this.
8477         (TARGET_LD_EMULATION): Remove.
8478         (LINK_ARCH_SPEC): Remove.
8479         * config/i386/sol2-gas.h: Remove.
8480         * config/i386/t-sol2-10: Rename to ...
8481         * config/i386/t-sol2-64: ... this.
8482         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
8483         (AS_SPARC64_FLAG): Define.
8484         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
8485         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
8486         depending on TARGET_CPU_DEFAULT.
8487         (CPP_CPU_SPEC): Redefine.
8488         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
8489         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
8490         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
8491         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
8492         ASM_ARCH_DEFAULT_SPEC): Redefine.
8493         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
8494         LINK_ARCH_DEFAULT_SPEC.
8495         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
8496         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
8497         (ARCH64_SUBDIR): Define.
8498         (LINK_ARCH64_SPEC): Redefine.
8499         (CC1_SPEC): Redefine.
8500         (OPTION_DEFAULT_SPECS): Redefine.
8501         (MULTILIB_DEFAULTS): Define.
8502         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
8503         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
8504         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
8505         (NO_DBX_BNSYM_ENSYM): Remove.
8506         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
8507         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
8508         (TARGET_ASM_NAMED_SECTION): Likewise.
8509         (STACK_CHECK_STATIC_BUILTIN): Remove.
8510         * config/sparc/sol2-bi.h: Remove.
8511         * config/sparc/sol2-gas-bi.h: Remove.
8512         * config/sparc/sol2-gas.h: Remove.
8513         * config/sparc/sol2-gld-bi.h: Remove.
8514         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
8515         common parts ...
8516         (*-*-solaris2*): ... here.
8517
8518 2011-06-21  Christian Bruel  <christian.bruel@st.com>
8519
8520         PR other/43564
8521         * ipa-inline.c (can_inline_edge_p): Check
8522         !DECL_DISREGARD_INLINE_LIMITS.
8523
8524 2011-06-21  Christian Bruel  <christian.bruel@st.com>
8525
8526         PR middle-end/49139
8527         * cgraphunit.c (process_function_and_variable_attributes): warn when
8528         always_inline functions that are not inline.
8529         * ipa-inline-transform.c (inline_transform): Always call
8530         optimize_inline.
8531         * tree-inline.c (tree_inlinable_function_p): Use error instead
8532         of sorry.
8533         (expand_call_inline): Likewise.
8534
8535 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
8536
8537         * Makefile.in (dg_target_exps): Set.
8538         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
8539         instead of 7, try to divide it more evenly.
8540
8541 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
8542
8543         PR target/49089
8544         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
8545         (avx256_split_unaligned_store): New definition.
8546         (ix86_option_override_internal): Enable avx256 unaligned load/store
8547         splitting only when avx256_split_unaligned_load/store is set.
8548
8549 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
8550
8551         * regrename.c (scan_rtx_reg): Handle the case where we write to an
8552         open chain in a smaller mode without failing the entire block.
8553
8554 2011-06-21  Alan Modra  <amodra@gmail.com>
8555
8556         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
8557         CONST high part large-toc address.
8558         (rs6000_tls_referenced_p): Make static.
8559         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
8560
8561 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8562
8563         PR target/49385
8564         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
8565         one of the operands is a register.
8566
8567 2011-06-20  Kai Tietz  <ktietz@redhat.com>
8568
8569         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
8570         operations in combination with binary and.
8571
8572 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
8573
8574         * regrename.c (do_replace): Don't update notes.
8575
8576 2011-06-20  Alan Modra  <amodra@gmail.com>
8577
8578         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
8579         of toc-relative address in CONST.
8580         (rs6000_delegitimize_address): Recognize changed address.
8581         (rs6000_legitimize_reload_address): Likewise.
8582         (rs6000_emit_move): Don't force these constants to memory.
8583         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
8584         toc-relative address in CONST.
8585         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
8586         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
8587
8588 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8589
8590         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
8591         (count_trailing_zeros): Likewise.
8592
8593 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8594
8595         PR other/49325
8596         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
8597         .init_array can be used with .ctors on targets.
8598         * configure: Regenerated.
8599
8600 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
8601
8602         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
8603         if the element type is volatile.
8604
8605 2011-06-18  Jan Hubicka  <jh@suse.cz>
8606
8607         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
8608         extra name aliases.
8609         (lto_symtab_resolve_can_prevail_p): Likewise.
8610         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
8611         * cgraphbuild.c (record_reference): Remove extra body alias code.
8612         (mark_load): Likewise.
8613         (mark_store): Likewise.
8614         * cgraph.h (varpool_node): Remove extra_name filed;
8615         add alias_of and extraname_alias.
8616         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
8617         (varpool_alias_aliased_node): New inline function.
8618         (varpool_variable_node): New function.
8619         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
8620         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
8621         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
8622         (input_varpool_node): Likewise.
8623         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
8624         (varpool_externally_visible_p): Remove extra body alias code.
8625         (function_and_variable_visibility): Likewise.
8626         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
8627         (ipa_pta_execute): Use it.
8628         * varpool.c (varpool_remove_node): Remove extra name alias code.
8629         (varpool_mark_needed_node): Likewise.
8630         (varpool_analyze_pending_decls): Analyze aliases.
8631         (assemble_aliases): New functoin.
8632         (varpool_assemble_decl): Use it.
8633         (varpool_create_variable_alias): New function.
8634         (varpool_extra_name_alias): Rewrite.
8635         (varpool_for_node_and_aliases): New function.
8636
8637 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
8638
8639         PR target/49411
8640         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
8641         last_arg_constant and last argument doesn't match its predicate,
8642         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
8643         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
8644         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
8645         spelling of error message.
8646         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
8647         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
8648         const_0_to_255_operand instead of const_int_operand.
8649
8650         Revert:
8651         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
8652
8653         * config/i386/sse.md (blendbits): Remove mode attribute.
8654         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
8655         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
8656         Check integer value of operand 3 in insn constraint.
8657
8658 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
8659
8660         PR rtl-optimization/48542
8661         * reload.c (find_equiv_reg): Stop looking when finding a
8662         setjmp-type call.
8663         * reload1.c (reload_as_needed): Invalidate all reload
8664         registers when crossing a setjmp-type call.
8665
8666 2011-06-16  Jeff Law  <law@redhat.com>
8667
8668         * tree-ssa-threadupdate.c (struct redirection_data): New field
8669         intermediate_edge.
8670         (THREAD_TARGET2): Define.
8671         (redirection_data_eq): Also check that the intermediate edge is equal.
8672         (lookup_redirection_data): Drop useless argument.  Extract the
8673         outgoing_edge and intermediate edge from E.  Callers updated.
8674         (copy_phi_args, update_destination_phis): New functions.
8675         (fix_duplicate_block_edges): Likewise.
8676         (create_edge_and_update_destination_phis): Duplicate all the edges
8677         hung off e->aux.  Use copy_phi_args.
8678         (create_duplicates): Use fix_duplicate_block_edges.
8679         (fixup_template_block): Likewise.
8680         (redirect_edges): If necessary, redirect the joiner block's incoming
8681         edge to the duplicate of the joiner block.
8682         (thread_block): Don't muck up loops when threading through a joiner
8683         block.
8684         (thread_through_loop_header): Handle threading through a joiner block.
8685         (mark_threaded_blocks, register_jump_thread): Likewise.
8686         * tree-flow.h (register_jump_thread): Add new argument.  Callers
8687         updated.
8688         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
8689         (thread_across_edge): Handle threading through a joiner block.
8690
8691 2011-06-16  Martin Jambor  <mjambor@suse.cz>
8692
8693         PR tree-optimization/49343
8694         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
8695         calculate offset, provide 2nd operand for the new COMPONENT_REF.
8696
8697 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
8698
8699         * config/darwin-protos.h (machopic_select_rtx_section): Move to
8700         inside RTX_CODE ifdef.
8701
8702 2011-06-16  Tom de Vries  <tom@codesourcery.com>
8703
8704         PR target/45098
8705         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
8706         Disallow NULL pointer for pointer arithmetic.
8707
8708 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8709
8710         PR target/49398
8711         Revert.
8712         2011-06-10  Wei Guozhi  <carrot@google.com>
8713
8714         PR target/45335
8715         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
8716         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
8717         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
8718         related peephole2.
8719         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
8720         related peephole2.
8721         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
8722         (arm_legitimate_ldrd_p): New prototype.
8723         (arm_output_ldrd): New prototype.
8724         * config/arm/arm.c (arm_check_ldrd_operands): New function.
8725         (arm_legitimate_ldrd_p): New function.
8726         (arm_output_ldrd): New function.
8727
8728 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
8729
8730         PR middle-end/46500
8731         * doc/tm.texi.in: Update Copyright date.
8732         * doc/tm.texi: Regenerate.
8733         * targhooks.c (default_setup_incoming_varargs): Replace
8734         CUMULATIVE_ARGS* argument type with cumulative_args_t.
8735         (default_pretend_outgoing_varargs_named): Likewise.
8736         (hook_pass_by_reference_must_pass_in_stack): Likewise.
8737         (hook_callee_copies_named): Likewise.
8738         (default_function_arg_advance): Likewise.
8739         (default_function_arg): Likewise.
8740         (default_function_incoming_arg): Likewise.
8741         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
8742         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
8743         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
8744         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
8745         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
8746         * targhooks.h (default_setup_incoming_varargs): Likewise.
8747         (default_pretend_outgoing_varargs_named): Likewise.
8748         (hook_pass_by_reference_must_pass_in_stack): Likewise.
8749         (hook_callee_copies_named): Likewise.
8750         (default_function_arg_advance): Likewise.
8751         (default_function_arg): Likewise.
8752         (default_function_incoming_arg): Likewise.
8753         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
8754         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
8755         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
8756         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
8757         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
8758         * target.def (pass_by_reference): Likewise.
8759         (setup_incoming_varargs, strict_argument_naming): Likewise.
8760         (pretend_outgoing_varargs_named, callee_copies): Likewise.
8761         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
8762         (function_incoming_arg): Likewise.
8763         * target.h: Don't include "tm.h" .
8764         (cumulative_args_t): New typedef.
8765         [GCC_TM_H] (get_cumulative_args): New static inline function.
8766         [GCC_TM_H] (pack_cumulative_args): Likewise.
8767         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
8768         argument type with cumulative_args_t.
8769         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
8770         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
8771         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
8772         (frv_arg_partial_bytes, frv_function_arg): Likewise.
8773         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
8774         (frv_function_arg_1): Likewise.
8775         * config/s390/s390.c (s390_pass_by_reference): Likewise.
8776         (s390_function_arg_advance, s390_function_arg): Likewise.
8777         * config/m32c/m32c.c (m32c_function_arg): Likewise.
8778         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
8779         (m32c_strict_argument_naming): Likewise.
8780         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
8781         (spu_function_arg_advance): Likewise.
8782         (spu_setup_incoming_varargs): Likewise.  Make static.
8783         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
8784         Remove prototype.
8785         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
8786         CUMULATIVE_ARGS* argument type with cumulative_args_t.
8787         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
8788         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
8789         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
8790         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
8791         (mep_pass_by_reference, mep_function_arg): Likewise.
8792         (mep_function_arg_advance): Likewise.
8793         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
8794         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
8795         (m32r_function_arg, m32r_function_arg_advance): Likewise.
8796         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
8797         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
8798         (ix86_function_arg, ix86_pass_by_reference): Likewise.
8799         (ix86_setup_incoming_varargs): Likewise.
8800         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
8801         (sh_strict_argument_naming): Likewise.
8802         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
8803         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
8804         (sh_function_arg_advance, sh_function_arg): Likewise.
8805         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
8806         (pdp11_function_arg_advance): Likewise.
8807         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
8808         Likewise.
8809         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
8810         * config/avr/avr.c (avr_function_arg): Likewise.
8811         (avr_function_arg_advance): Likewise.
8812         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
8813         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
8814         (xtensa_function_arg_1): Likewise.
8815         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
8816         Likewise.
8817         (xstormy16_function_arg): Likewise.
8818         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
8819         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
8820         (fr30_function_arg_advance): Likewise.
8821         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
8822         (lm32_function_arg, lm32_function_arg_advance): Likewise.
8823         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
8824         (moxie_function_arg, moxie_function_arg_advance): Likewise.
8825         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
8826         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
8827         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
8828         (cris_function_arg, cris_function_incoming_arg): Likewise.
8829         (cris_function_arg_advance, cris_function_arg_1): Likewise.
8830         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
8831         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
8832         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
8833         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
8834         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
8835         (mn10300_arg_partial_bytes): Likewise.
8836         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
8837         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
8838         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
8839         (ia64_function_arg_1): Likewise.
8840         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
8841         (m68k_function_arg): Likewise.
8842         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
8843         (rs6000_function_arg, setup_incoming_varargs): Likewise.
8844         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
8845         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
8846         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
8847         (picochip_arg_advance): Likewise.
8848         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
8849         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
8850         (mcore_function_arg_advance): Likewise.
8851         * config/score/score.c (score_pass_by_reference): Likewise.
8852         (score_function_arg_advance): Likewise.
8853         (score_arg_partial_bytes): Likewise.  Make static.
8854         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
8855         * config/arm/arm.c (arm_arg_partial_bytes): Replace
8856         CUMULATIVE_ARGS* argument type with cumulative_args_t.
8857         (arm_function_arg, arm_function_arg_advance): Likewise.
8858         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
8859         * config/pa/pa.c (pa_pass_by_reference): Likewise.
8860         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
8861         (pa_function_arg): Likewise.
8862         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
8863         (mips_function_arg, mips_function_arg_advance): Likewise.
8864         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
8865         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
8866         * config/vax/vax.c (vax_function_arg): Likewise.
8867         (vax_function_arg_advance): Likewise.
8868         * config/h8300/h8300.c (h8300_function_arg): Likewise.
8869         (h8300_function_arg_advance): Likewise.
8870         * config/v850/v850.c (v850_pass_by_reference): Likewise.
8871         (v850_strict_argument_naming, v850_function_arg): Likewise.
8872         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
8873         (v850_setup_incoming_varargs): Likewise.
8874         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
8875         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
8876         (mmix_function_arg, mmix_pass_by_reference): Likewise.
8877         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
8878         with const void *.
8879         * config/bfin/bfin.c (setup_incoming_varargs): Replace
8880         CUMULATIVE_ARGS* argument type with cumulative_args_t.
8881         (bfin_function_arg_advance, bfin_function_arg): Likewise.
8882         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
8883         * calls.c (emit_call_1): Change type of args_so_far to
8884         cumulative_args_t.  Changed all callers.
8885         (initialize_argument_information): Likewise.
8886         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
8887         * dse.c (get_call_args): Likewise.
8888         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
8889         * function.c (pass_by_reference, reference_callee_copied): Likewise.
8890         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
8891         New member args_so_far_v.  Changed all users.
8892         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
8893         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
8894         * config/mips/mips.c (mips_output_args_xfer): Likewise.
8895         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
8896         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
8897         * config/microblaze/microblaze.c (microblaze_expand_prologue):
8898         Likewise.
8899         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
8900         m32r_pass_by_reference.
8901
8902 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
8903
8904         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
8905         argument to be a VEC of statements.
8906         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
8907         assert that pattern statements have to have their vector type set.
8908         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
8909         Change the first argument to be a VEC of statements.  Update
8910         documentation.
8911         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
8912         (vect_handle_widen_mult_by_const): New function.
8913         (vect_recog_widen_mult_pattern):  Change the first argument to be a
8914         VEC of statements.  Update documentation.  Check that the constant is
8915         INTEGER_CST.  Support multiplication by a constant that fits an
8916         intermediate type - call vect_handle_widen_mult_by_const.
8917         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
8918         call.  Handle additional pattern statements if necessary.
8919
8920 2011-06-16  Nick Clifton  <nickc@redhat.com>
8921
8922         PR target/49427
8923         * config.gcc: Set cpu_type to v850 for any V850 architecture.
8924         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
8925         md_file, extra_modes, out_file and extra_options are these are all
8926         deduced from cpu_type.
8927
8928 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
8929
8930         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
8931         truncation mask to 63.
8932
8933 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
8934
8935         PR target/49313
8936         PR target/29524
8937         * longlong.h: Add AVR support:
8938         (count_leading_zeros): New macro.
8939         (count_trailing_zeros): New macro.
8940         (COUNT_LEADING_ZEROS_0): New macro.
8941         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
8942         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
8943         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
8944         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
8945         (LIB2FUNCS_EXCLUDE): Add _clz.
8946         * config/avr/libgcc.S (XCALL): Move up in file.
8947         (XJMP): New C Macro.
8948         (DEFUN): New asm macro.
8949         (ENDF): New asm macro.
8950         (__ffssi2): New function.
8951         (__ffshi2): New function.
8952         (__loop_ffsqi2): New function.
8953         (__ctzsi2): New function.
8954         (__ctzhi2): New function.
8955         (__clzdi2): New function.
8956         (__clzsi2): New function.
8957         (__clzhi2): New function.
8958         (__paritydi2): New function.
8959         (__paritysi2): New function.
8960         (__parityhi2): New function.
8961         (__parityqi2): New function.
8962         (__popcounthi2): New function.
8963         (__popcountsi2): New function.
8964         (__popcountdi2): New function.
8965         (__popcountqi2): New function.
8966         (__bswapsi2): New function.
8967         (__bswapdi2): New function.
8968         (__ashldi3): New function.
8969         (__ashrdi3): New function.
8970         (__lshrdi3): New function.
8971         Fix suspicous lines.
8972
8973 2011-06-16  Richard Guenther  <rguenther@suse.de>
8974
8975         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
8976         the same as x != 0.
8977         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
8978         to (bool) X & 1.
8979         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
8980         equality compares against zero for the lower bit.
8981
8982 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
8983
8984         PR tree-optimization/49419
8985         * tree-vrp.c (execute_vrp): Call init_range_assertions
8986         before estimate_numbers_of_iterations, call
8987         free_number_of_iterations_estimates before calling
8988         remove_range_assertions.
8989
8990 2011-06-16  Revital Eres  <revital.eres@linaro.org>
8991
8992         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
8993         (struct partial_schedule): Add rows_length field.
8994         (verify_partial_schedule): Check rows_length.
8995         (ps_insert_empty_row): Handle rows_length.
8996         (create_partial_schedule): Likewise.
8997         (free_partial_schedule): Likewise.
8998         (reset_partial_schedule): Likewise.
8999         (create_ps_insn): Remove rest_count argument.
9000         (remove_node_from_ps): Update rows_length.
9001         (add_node_to_ps): Update rows_length and call create_ps_insn
9002         without passing row_rest_count.
9003         (rotate_partial_schedule): Update rows_length.
9004
9005 2011-06-16  Revital Eres  <revital.eres@linaro.org>
9006
9007         * ddg.c (add_intra_loop_mem_dep): New function.
9008         (build_intra_loop_deps): Call it.
9009
9010 2011-06-13  Jeff Law  <law@redhat.com>
9011
9012         * df-problems.c (df_lr_local_compute): Manually CSE
9013         PIC_OFFSET_TABLE_REGNUM.
9014         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
9015         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
9016
9017 2011-06-13  Jan Hubicka  <jh@suse.cz>
9018
9019         * cgraphunit.c (handle_alias_pairs): New function.
9020         (cgraph_finalize_compilation_unit): Use it.
9021         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
9022         as externally visible.
9023
9024 2011-06-15  Richard Guenther  <rguenther@suse.de>
9025
9026         * expr.c (expand_expr_real_2): Reduce all integral types to
9027         bitfield precision.
9028         (expand_expr_real_1): Likewise.
9029
9030 2011-06-15  Martin Jambor  <mjambor@suse.cz>
9031
9032         PR tree-optimization/48613
9033         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
9034         ipa_node_params_vector is NULL.
9035
9036 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
9037
9038         PR debug/49382
9039         * dwarf2out.c (dw_loc_list_node): Add force field.
9040         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
9041         location in the list, even if it is modified before first real insn.
9042         (output_loc_list): Emit empty ranges with force flag set.
9043         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
9044
9045 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
9046
9047         PR target/49349
9048         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
9049         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
9050         above a fence.  Update comments.
9051         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
9052         placed just above it.  Do not allow NULL place_to_insert.
9053
9054 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
9055
9056         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
9057         (slpeel_tree_peel_loop_to_edge): Don't call
9058         remove_dead_stmts_from_loop.
9059         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
9060         remove irrelevant pattern statements.  For irrelevant statements
9061         check if it is the last statement of a detected pattern, use
9062         corresponding pattern statement instead.
9063         (destroy_loop_vec_info): No need to remove pattern statements,
9064         only free stmt_vec_info.
9065         (vect_transform_loop): For irrelevant statements check if it is
9066         the last statement of a detected pattern, use corresponding
9067         pattern statement instead.
9068         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
9069         pattern statements.  Set basic block for the new statement.
9070         (vect_pattern_recog): Update documentation.
9071         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
9072         operands of pattern statements.
9073         (vectorizable_call): Fix printing.  In case of a pattern statement
9074         use the lhs of the original statement when creating a dummy
9075         statement to replace the original call.
9076         (vect_analyze_stmt): For irrelevant statements check if it is
9077         the last statement of a detected pattern, use corresponding
9078         pattern statement instead.
9079         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
9080         statements use gsi of the original statement.
9081
9082 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
9083
9084         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
9085         common/common-target-def.h.
9086         * target.def (default_target_flags, handle_option,
9087         supports_split_stack, optimization_table, init_struct,
9088         except_unwind_info, unwind_tables_default, have_named_sections):
9089         Move to common/common-target.def.
9090         * target.h (enum opt_levels, struct default_options): Move to
9091         common/common-target.h.
9092         * targhooks.c (default_except_unwind_info,
9093         dwarf2_except_unwind_info, sjlj_except_unwind_info,
9094         default_target_handle_option, empty_optimization_table): Move to
9095         common/common-targhooks.c.
9096         * targhooks.h (default_except_unwind_info,
9097         dwarf2_except_unwind_info, sjlj_except_unwind_info,
9098         default_target_handle_option, empty_optimization_table): Move to
9099         common/common-targhooks.h.
9100         * common/common-target-def.h: Include common/common-targhooks.h.
9101         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
9102         defined.
9103         * common/common-target.def (handle_option, option_init_struct,
9104         option_optimization_table, default_target_flags,
9105         except_unwind_info, supports_split_stack, unwind_tables_default,
9106         have_named_sections): Move from target.def.
9107         (HOOK_PREFIX): Undefine at end of file.
9108         * common/common-target.h: Include input.h.
9109         (enum opt_levels, struct default_options): Move from target.h.
9110         * common/common-targhooks.c, common/common-targhooks.h: New.
9111         * config.gcc (target_has_targetm_common): Default to yes.
9112         (moxie*): Set target_has_targetm_common=no.
9113         (hppa*-*-*): Don't set target_has_targetm_common=yes.
9114         * doc/tm.texi: Regenerate.
9115         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
9116         (C_TARGET_DEF_H): Add common/common-targhooks.h.
9117         (GCC_OBJS): Remove vec.o.
9118         (OBJS): Remove hooks.o and vec.o.
9119         (OBJS-libcommon-target): Add vec.o, hooks.o and
9120         common/common-targhooks.o.
9121         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
9122         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
9123         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
9124         cfglayout.o, $(out_object_file), $(common_out_object_file)):
9125         Update dependencies.
9126         (common/common-targhooks.o): New.
9127         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
9128         * common/config/pa/pa-common.c: Include more headers.  Take
9129         copyright dates from pa.c.
9130         (pa_option_optimization_table, pa_handle_option,
9131         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
9132         TARGET_HANDLE_OPTION): Move from pa.c.
9133         * common/config/alpha/alpha-common.c,
9134         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
9135         common/config/bfin/bfin-common.c,
9136         common/config/cris/cris-common.c,
9137         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
9138         common/config/h8300/h8300-common.c,
9139         common/config/i386/i386-common.c,
9140         common/config/ia64/ia64-common.c,
9141         common/config/iq2000/iq2000-common.c,
9142         common/config/lm32/lm32-common.c,
9143         common/config/m32c/m32c-common.c,
9144         common/config/m32r/m32r-common.c,
9145         common/config/m68k/m68k-common.c,
9146         common/config/mcore/mcore-common.c,
9147         common/config/mep/mep-common.c,
9148         common/config/microblaze/microblaze-common.c,
9149         common/config/mips/mips-common.c,
9150         common/config/mmix/mmix-common.c,
9151         common/config/mn10300/mn10300-common.c,
9152         common/config/pdp11/pdp11-common.c,
9153         common/config/picochip/picochip-common.c,
9154         common/config/rs6000/rs6000-common.c,
9155         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
9156         common/config/score/score-common.c, common/config/sh/sh-common.c,
9157         common/config/sparc/sparc-common.c,
9158         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
9159         common/config/vax/vax-common.c,
9160         common/config/xstormy16/xstormy16-common.c,
9161         common/config/xtensa/xtensa-common.c: New.
9162         * config/alpha/alpha.c: Include common/common-target.h.
9163         (alpha_option_optimization_table, alpha_handle_option,
9164         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9165         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
9166         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
9167         * config/arm/arm.c (arm_option_optimization_table,
9168         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9169         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
9170         arm-common.c.
9171         * config/avr/avr.c (avr_option_optimization_table,
9172         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
9173         to avr-common.c.
9174         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
9175         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
9176         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
9177         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
9178         * config/cris/cris.c (cris_option_optimization_table,
9179         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9180         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
9181         cris-common.c.
9182         * config/fr30/fr30.c (fr30_option_optimization_table,
9183         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
9184         to fr30-common.c.
9185         * config/frv/frv.c (frv_option_optimization_table,
9186         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
9187         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
9188         * config/h8300/h8300.c (h8300_option_optimization_table,
9189         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9190         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
9191         * config/i386/i386-protos.h (ix86_handle_option): Declare.
9192         * config/i386/i386.c: Include common/common-target.h.
9193         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
9194         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
9195         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
9196         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
9197         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
9198         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
9199         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
9200         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
9201         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
9202         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
9203         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
9204         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
9205         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
9206         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
9207         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
9208         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
9209         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
9210         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
9211         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
9212         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
9213         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
9214         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
9215         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
9216         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
9217         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
9218         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
9219         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
9220         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
9221         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
9222         ix86_option_optimization_table, ix86_option_init_struct,
9223         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
9224         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9225         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
9226         i386-common.c.
9227         * config/i386/t-i386 (i386.o): Update dependencies.
9228         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
9229         * config/ia64/ia64.c (ia64_option_optimization_table,
9230         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
9231         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9232         ia64_handle_option): Move to ia64-common.c.
9233         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
9234         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
9235         * config/lm32/lm32.c (lm32_option_optimization_table,
9236         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
9237         to lm32-common.c.
9238         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
9239         m32c-common.c.
9240         * config/m32r/m32r.c (m32r_option_optimization_table,
9241         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9242         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
9243         m32r_handle_option): Move to m32r-common.c.
9244         (m32r_memory_move_cost): Remove comment referring to
9245         TARGET_HANDLE_OPTION.
9246         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
9247         Move to m68k-common.c.
9248         * config/mcore/mcore.c (mcore_option_optimization_table,
9249         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9250         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
9251         * config/mep/mep.c (mep_option_optimization_table,
9252         mep_handle_option, TARGET_HANDLE_OPTION,
9253         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
9254         Move to mep-common.c.
9255         * config/microblaze/microblaze.c
9256         (microblaze_option_optimization_table,
9257         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9258         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
9259         * config/mips/mips.c (mips_handle_option,
9260         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
9261         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
9262         mips-common.c.
9263         * config/mmix/mmix.c (mmix_option_optimization_table,
9264         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
9265         Move to mmix-common.c.
9266         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
9267         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
9268         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9269         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
9270         * config/pa/pa.c: Include common/common-target.h.
9271         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
9272         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9273         pa_handle_option): Move to pa-common.c.
9274         (pa_option_override): Use targetm_common.except_unwind_info.
9275         (pa_asm_output_mi_thunk, pa_function_section): Use
9276         targetm_common.have_named_sections.
9277         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
9278         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9279         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
9280         pdp11_handle_option, pdp11_option_init_struct): Move to
9281         pdp11-common.c.
9282         * config/picochip/picochip.c (picochip_option_optimization_table,
9283         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
9284         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
9285         * config/rs6000/rs6000.c: Include common/common-target.h.
9286         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
9287         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
9288         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
9289         rs6000_handle_option): Move to rs6000-common.c.
9290         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9291         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
9292         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9293         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
9294         * config/s390/s390.c (processor_flags_table,
9295         s390_option_optimization_table, s390_option_init_struct,
9296         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
9297         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9298         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
9299         * config/s390/s390.h (processor_flags_table): Declare.
9300         * config/score/score.c (score_option_optimization_table,
9301         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9302         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
9303         score_handle_option): Move to score-common.c.
9304         * config/sh/sh.c (sh_option_optimization_table,
9305         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
9306         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9307         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
9308         * config/sparc/sparc.c: Include common/common-target.h.
9309         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
9310         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
9311         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
9312         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
9313         spu_option_init_struct): Move to spu-common.c.
9314         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
9315         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
9316         * config/v850/v850.c (small_memory_physical_max,
9317         v850_handle_memory_optionn v850_handle_option,
9318         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
9319         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
9320         v850-common.c.
9321         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
9322         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
9323         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
9324         Move to xtensa-common.c.
9325         * cfglayout.c: Include common/common-target.h.
9326         (fixup_reorder_chain): Use targetm_common.have_named_sections.
9327         * cfgrtl.c: Include common/common-target.h.
9328         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
9329         targetm_common.have_named_sections.
9330         * dbxout.c: Include common/common-target.h.
9331         (dbxout_function_end): Use targetm_common.have_named_sections.
9332         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
9333         targetm_common.except_unwind_info.
9334         * dwarf2out.c: Include common/common-target.h.
9335         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
9336         dwarf2out_begin_prologue, dwarf2out_frame_init,
9337         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
9338         targetm_common.except_unwind_info.
9339         * except.c: Include common/common-target.h.
9340         (init_eh, finish_eh_generation,
9341         output_one_function_exception_table): Use
9342         targetm_common.except_unwind_info.
9343         (switch_to_exception_section): Use targetm_common.have_named_sections.
9344         * explow.c: Include common/common-target.h.
9345         * expr.c: Include common/common-target.h.
9346         (build_personality_function): Use targetm_common.except_unwind_info.
9347         * function.c: Include common/common-target.h.
9348         (expand_function_end): Use targetm_common.except_unwind_info.
9349         * haifa-sched.c: Include common/common-target.h.
9350         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
9351         * lto-opts.c: Include common/common-target.h instead of target.h.
9352         (lto_reissue_options): Use targetm_common.handle_option.
9353         * opts.c: Include common/common-target.h.
9354         (target_handle_option): Use targetm_common.handle_option.
9355         (init_options_struct): Update comment referring to
9356         targetm.target_option.optimization.  Use
9357         targetm_common.default_target_flags,
9358         targetm_common.unwind_tables_default and
9359         targetm_common.option_init_struct.
9360         (default_options_optimization): Use
9361         targetm_common.option_optimization_table.
9362         (finish_options): Use targetm_common.except_unwind_info,
9363         targetm_common.unwind_tables_default,
9364         targetm_common.have_named_sections and
9365         targetm_common.supports_split_stack.
9366         * toplev.c: Include common/common-target.h.
9367         (process_options): Use targetm_common.have_named_sections.
9368         * tree-tailcall.c: Include common/common-target.h.
9369         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
9370         * tree.c: Include common/common-target.h.
9371         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
9372         * varasm.c: Include common/common-target.h.
9373         (resolve_unique_section, hot_function_section,
9374         default_function_section): Use targetm_common.have_named_sections.
9375
9376 2011-06-14  Easwaran Raman  <eraman@google.com>
9377
9378         PR rtl-optimization/44194
9379         * dse.c: Include tree-flow.h
9380         (insn_info): Add new field non_frame_wild_read.
9381         (group_info): Add new fields escaped_n and escaped_p.
9382         (kill_on_calls): New variable.
9383         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
9384         (dse_step0): Initialize kill_on_calls.
9385         (can_escape): New function.
9386         (set_usage_bits): Add additional parameter; record information
9387         about escaped locations.
9388         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
9389         (dse_step2_nospill): Set kill_on_calls based on
9390         group->escaped_n and group->escaped_n.
9391         (add_wild_read): Refactor into...
9392         (reset_active_stores): ... New function, and
9393         (free_read_records): ... New function.
9394         (add_non_frame_wild_read): New function.
9395         (scan_insn): Call add_non_frame_wild_read on non-const calls.
9396         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
9397         (dse_step5_nospill): Call scan_reads_nospill for instructions
9398         marked as non_frame_wild_read.
9399         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
9400
9401 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
9402
9403         * common/common-target-def.h, common/common-target.def,
9404         common/common-target.h, common/config/default-common.c,
9405         common/config/pa/pa-common.c: New files.
9406         * Makefile.in (common_out_file, common_out_object_file,
9407         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
9408         (OBJS-libcommon-target): Include $(common_out_object_file).
9409         (prefix.o): Update dependencies.
9410         ($(common_out_object_file), common/common-target-hooks-def.h,
9411         s-common-target-hooks-def-h): New.
9412         (s-tm-texi): Also check timestamp on common-target.def.
9413         (build/genhooks.o): Update dependencies.
9414         * config.gcc (common_out_file, target_has_targetm_common): Define.
9415         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
9416         TARGET_ALWAYS_STRIP_DOTDOT.
9417         * configure.ac (common_out_object_file): Define.
9418         (common_out_file, common_out_object_file): Substitute.
9419         (common): Create directory.
9420         * configure: Regenerate.
9421         * doc/tm.texi.in (targetm_common): Document.
9422         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
9423         * doc/tm.texi: Regenerate.
9424         * genhooks.c (hook_array): Also include common/common-target.def.
9425         * prefix.c (tm.h): Don't include.
9426         (common/common-target.h): Include.
9427         (ALWAYS_STRIP_DOTDOT): Don't define.
9428         (update_path): Use targetm_common.always_strip_dotdot instead of
9429         ALWAYS_STRIP_DOTDOT.
9430         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
9431
9432 2011-06-14  David Li  <davidxl@google.com>
9433
9434         * passes.c (execute_function_todo): Remove TODO_dump_func.
9435         (execute_one_pass): Remove TODO_dump_func.
9436         (execute_function_dump): New function.
9437         * tree-vrp.c: Remove TODO_dump_func.
9438         * regrename.c: Remove TODO_dump_func.
9439         * fwprop.c: Remove TODO_dump_func.
9440         * tree-into-ssa.c: Remove TODO_dump_func.
9441         * tree-complex.c: Remove TODO_dump_func.
9442         * tracer.c: Remove TODO_dump_func.
9443         * tree-loop-distribution.c: Remove TODO_dump_func.
9444         * postreload-gcse.c: Remove TODO_dump_func.
9445         * postreload.c: Remove TODO_dump_func.
9446         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
9447         * tree-tailcall.c: Remove TODO_dump_func.
9448         * ipa-cp.c: Remove TODO_dump_func.
9449         * final.c: Remove TODO_dump_func.
9450         * tree-emutls.c: Remove TODO_dump_func.
9451         * omp-low.c: Remove TODO_dump_func.
9452         * tree-ssa-dse.c: Remove TODO_dump_func.
9453         * tree-ssa-uncprop.c: Remove TODO_dump_func.
9454         * auto-inc-dec.c: Remove TODO_dump_func.
9455         * reorg.c: Remove TODO_dump_func.
9456         * tree-ssa-copyrename.c: Remove TODO_dump_func.
9457         * tree-ssa-ccp.c: Remove TODO_dump_func.
9458         * compare-elim.c: Remove TODO_dump_func.
9459         * mode-switching.c: Remove TODO_dump_func.
9460         * modulo-sched.c: Remove TODO_dump_func.
9461         * tree-call-cdce.c: Remove TODO_dump_func.
9462         * cse.c: Remove TODO_dump_func.
9463         * web.c: Remove TODO_dump_func.
9464         * tree-stdarg.c: Remove TODO_dump_func.
9465         * lto-streamer-out.c: Remove TODO_dump_func.
9466         * tree-ssa-math-opts.c: Remove TODO_dump_func.
9467         * tree-ssa-dom.c: Remove TODO_dump_func.
9468         * tree-nrv.c: Remove TODO_dump_func.
9469         * loop-init.c: Remove TODO_dump_func.
9470         * gimple-low.c: Remove TODO_dump_func.
9471         * ipa-inline.c: Remove TODO_dump_func.
9472         * tree-ssa-sink.c: Remove TODO_dump_func.
9473         * jump.c: Remove TODO_dump_func.
9474         * ifcvt.c: Remove TODO_dump_func.
9475         * tree-ssa-loop.c: Remove TODO_dump_func.
9476         * recog.c: Remove TODO_dump_func.
9477         * dse.c: Remove TODO_dump_func.
9478         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
9479         * matrix-reorg.c: Remove TODO_dump_func.
9480         * tree-eh.c: Remove TODO_dump_func.
9481         * regmove.c: Remove TODO_dump_func.
9482         * function.c: Remove TODO_dump_func.
9483         * tree-vectorizer.c: Remove TODO_dump_func.
9484         * ipa-split.c: Remove TODO_dump_func.
9485         * gcse.c: Remove TODO_dump_func.
9486         * tree-if-conv.c: Remove TODO_dump_func.
9487         * init-regs.c: Remove TODO_dump_func.
9488         * tree-ssa-phiopt.c: Remove TODO_dump_func.
9489         * implicit-zee.c: Remove TODO_dump_func.
9490         * lower-subreg.c: Remove TODO_dump_func.
9491         * bt-load.c: Remove TODO_dump_func.
9492         * tree-dfa.c: Remove TODO_dump_func.
9493         * except.c: Remove TODO_dump_func.
9494         * emit-rtl.c: Remove TODO_dump_func.
9495         * store-motion.c: Remove TODO_dump_func.
9496         * cfgexpand.c: Remove TODO_dump_func.
9497         * tree-cfgcleanup.c: Remove TODO_dump_func.
9498         * cfgcleanup.c: Remove TODO_dump_func.
9499         * tree-ssa-pre.c: Remove TODO_dump_func.
9500         * tree-sra.c: Remove TODO_dump_func.
9501         * tree-mudflap.c: Remove TODO_dump_func.
9502         * tree-ssa-copy.c: Remove TODO_dump_func.
9503         * cfglayout.c: Remove TODO_dump_func.
9504         * tree-ssa-forwprop.c: Remove TODO_dump_func.
9505         * tree-ssa-dce.c: Remove TODO_dump_func.
9506         * ira.c: Remove TODO_dump_func.
9507         * tree-ssa.c: Remove TODO_dump_func.
9508         * integrate.c: Remove TODO_dump_func.
9509         * tree-optimize.c: Remove TODO_dump_func.
9510         * tree-ssa-phiprop.c: Remove TODO_dump_func.
9511         * tree-object-size.c: Remove TODO_dump_func.
9512         * combine.c: Remove TODO_dump_func.
9513         * bb-reorder.c: Remove TODO_dump_func.
9514         * cprop.c: Remove TODO_dump_func.
9515         * var-tracking.c: Remove TODO_dump_func.
9516         * tree-profile.c: Remove TODO_dump_func.
9517         * tree-vect-generic.c: Remove TODO_dump_func.
9518         * reg-stack.c: Remove TODO_dump_func.
9519         * sched-rgn.c: Remove TODO_dump_func.
9520         * tree-ssa-structalias.c: Remove TODO_dump_func.
9521         * tree-switch-conversion.c: Remove TODO_dump_func.
9522         * tree-cfg.c: Remove TODO_dump_func.
9523         * tree-ssa-reassoc.c: Remove TODO_dump_func.
9524         * combine-stack-adj.c: Remove TODO_dump_func.
9525         * dce.c: Remove TODO_dump_func.
9526         * tree-ssanames.c: Remove TODO_dump_func.
9527         * regcprop.c: Remove TODO_dump_func.
9528
9529 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
9530
9531         PR middle-end/47364
9532         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
9533         and properly handle result not in Pmode.
9534
9535 2011-06-14  Robert Millan  <rmh@gnu.org>
9536
9537         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
9538         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
9539         `config/linux.h'.
9540
9541         * config/i386/kfreebsd-gnu64.h: New file.
9542         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
9543         with `i386/kfreebsd-gnu64.h'.
9544
9545         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
9546         (GNU_USER_LINK_EMULATION64): New macros.
9547         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
9548         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
9549         of hardcoding `elf_i386' and `elf_x86_64'.
9550
9551 2011-06-14  Nick Clifton  <nickc@redhat.com>
9552
9553         PR target/49403
9554         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
9555
9556         PR target/49402
9557         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
9558
9559 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
9560
9561         PR fortran/49103
9562         * tree.h (DECL_NONSHAREABLE): Define.
9563         (struct tree_decl_common): Change decl_common_unused to
9564         decl_nonshareable_flag.
9565         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
9566         Ignore vars with DECL_NONSHAREABLE bit set.
9567         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
9568         on stores to automatic aggregate vars.
9569
9570         PR rtl-optimization/49390
9571         Revert:
9572         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
9573
9574         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
9575         MEM_ALIAS_SET.
9576
9577 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
9578             Tom de Vries  <tom@codesourcery.com>
9579
9580         PR target/45098
9581         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
9582         Document changed semantics.
9583         (max_stmt_executions, max_stmt_executions_int): Declare.
9584         * tree-data-ref.c (estimated_loop_iterations)
9585         (estimated_loop_iterations_int): Move functions...
9586         * tree-ssa-loop-niter.c (estimated_loop_iterations)
9587         (estimated_loop_iterations_int): here.
9588         (record_estimate): Change nb_iterations_upper_bound and
9589         nb_iterations_estimate semantics.
9590         (max_stmt_executions, max_stmt_executions_int): New function.
9591         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
9592         (max_stmt_executions_tree): this.
9593         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
9594         estimated_loop_iterations_tree.
9595         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
9596         max_stmt_executions_int instead of estimated_loop_iterations_int.
9597         * predict.c (predict_loops): Idem.
9598         * tree-parloops.c (parallelize_loops): Idem.
9599         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
9600         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
9601         (init_omega_for_ddr_1): Idem.
9602         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
9603         (loop_prefetch_arrays): Idem
9604         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
9605         max_stmt_executions instead of estimated_loop_iterations.
9606         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
9607         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
9608         instead of nb_iterations_upper_bound.
9609
9610 2011-06-13  Jan Hubicka  <jh@suse.cz>
9611
9612         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
9613
9614 2011-06-14  Richard Henderson  <rth@redhat.com>
9615
9616         PR debug/48459
9617         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
9618         (based_loc_descr): Assert it's true.
9619         (compute_frame_pointer_to_fb_displacement): Set it, rather than
9620         aborting immediately.
9621
9622 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
9623             Mingfeng Wu  <mingfeng@faraday-tech.com>
9624
9625         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
9626
9627 2011-06-13  Jan Hubicka  <jh@suse.cz>
9628
9629         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
9630
9631 2011-06-13  Jan Hubicka  <jh@suse.cz>
9632
9633         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
9634         similarly to DECL_COMDAT.
9635         * cgraphunit.c (cgraph_analyze_function): Likewise.
9636         * ipa.c (function_and_variable_visibility): Likewise.
9637
9638 2011-06-13  Jan Hubicka  <jh@suse.cz>
9639
9640         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
9641         BINFO_VIRTUALS when streaming for ltrans unit.
9642
9643 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
9644
9645         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
9646         (movdi_internal64): Same.
9647
9648 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
9649
9650         PR target/44618
9651         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
9652         a set of similar patterns, where the MATCH_OPERAND for the function
9653         argument is replaced with individual references to hardware registers.
9654         (save_fpregs_<mode>): Ditto
9655         (restore_gpregs_<mode>): Ditto
9656         (return_and_restore_gpregs_<mode>): Ditto
9657         (return_and_restore_fpregs_<mode>): Ditto
9658         (return_and_restore_fpregs_aix_<mode>): Ditto
9659
9660 2011-06-13  Jan Hubicka  <jh@suse.cz>
9661
9662         * ipa-utils.c (postorder_stack): New structure.
9663         (ipa_reverse_postorder): Handle aliases.
9664
9665 2011-06-13  Jan Hubicka  <jh@suse.cz>
9666
9667         * ipa-inline.c (reset_edge_caches): Walk aliases.
9668         (update_caller_keys): Do not test inlinability of aliases.
9669         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
9670         (do_estimate_growth): Fix typo.
9671
9672 2011-06-13  Jan Hubicka  <jh@suse.cz>
9673
9674         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
9675         (can_remove_node_now_p): ... here; handle same comdat groups.
9676         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
9677         (inline_call): Update use of can_remove_node_now_p.
9678
9679 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
9680
9681         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
9682         condition to disallow non-identical memory locations.
9683         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
9684         preference to bit manipulation instructions.
9685
9686 2011-06-13  Jan Hubicka  <jh@suse.cz>
9687
9688         * cgraph.c (cgraph_for_node_thunks_and_aliases,
9689         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
9690         (nonremovable_p): New function.
9691         (cgraph_can_remove_if_no_direct_calls_p): New function.
9692         (used_from_object_file_p): New functoin.
9693         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
9694         references from aliases.
9695         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
9696         * ipa-inline.c (check_caller_edge): New function.
9697         (want_inline_function_called_once_p): Use it; accept aliases called
9698         once, too.
9699         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
9700
9701 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9702
9703         PR target/48454
9704         * config/arm/neon.md (vec_pack_trunc): Set the lengths
9705         correctly for the case with Quad vectors.
9706
9707 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
9708            Ira Rosen  <ira.rosen@linaro.org>
9709
9710         PR tree-optimization/49352
9711         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
9712         all, make sure loop_use_stmt after the loop is a def stmt of a used
9713         SSA_NAME that is the only one defined inside of the loop.  Don't
9714         check for COND_EXPR and GIMPLE_BINARY_RHS.
9715         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
9716         check_reduction is true.
9717
9718 2011-06-11  Jan Hubicka  <jh@suse.cz>
9719
9720         PR middle-end/49373
9721         * ipa.c (cgraph_externally_visible_p): Check resolution info.
9722
9723 2011-06-11  Jan Hubicka  <jh@suse.cz>
9724
9725         PR middle-end/48836
9726         * ipa-inline-transform.c: Include tree-pass.h
9727         (inline_transform): Set TODO_update_ssa_only_virtuals.
9728         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
9729
9730 2011-06-11  Jan Hubicka  <jh@suse.cz>
9731
9732         PR middle-end/49378
9733         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
9734         aliases and thunks.
9735
9736 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
9737
9738         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
9739         Take number of iterations to peel into account for equally frequent
9740         misalignment values.
9741
9742 2011-06-11  Jan Hubicka  <jh@suse.cz>
9743
9744         * lto-streamer-out.c (produce_symtab): Stream out the newly
9745         represented aliases.
9746
9747 2011-06-11  Jan Hubicka  <jh@suse.cz>
9748
9749         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
9750         varying args.
9751         (ipa_update_after_lto_read): Likewise.
9752         (ipa_write_node_info): Do not sream call_with_var_arguments.
9753         (ipa_read_node_info): Likewise.
9754
9755 2011-06-11  Jan Hubicka  <jh@suse.cz>
9756
9757         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
9758
9759 2011-06-11  Jan Hubicka  <jh@suse.cz>
9760
9761         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
9762         (lto_symtab_resolve_can_prevail_p): Likewise.
9763         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
9764         * cgraph.c (same_body_aliases_done): New global var.
9765         (cgraph_same_body_alias_1): Rename to ...
9766         (cgraph_create_function_alias): ... this one; reorg to new
9767         representation.
9768         (cgraph_same_body_alias): Use cgraph_create_function_alias;
9769         record references when asked to.
9770         (cgraph_add_thunk): Fix formating.
9771         (cgraph_get_node): Kill same body alias code.
9772         (cgraph_node_for_asm): Likewise.
9773         (cgraph_remove_same_body_alias): Remove.
9774         (cgraph_remove_node): Kill same body alias code.
9775         (cgraph_mark_address_taken_node): Mark also the aliased function
9776         as having address taken.
9777         (dump_cgraph_node): Dump same body aliases.
9778         (cgraph_for_node_thunks_and_aliases): Update for new alias
9779         representation.
9780         (cgraph_for_node_and_aliases): Likewise.
9781         * cgraph.h (same_body): Kll pointer.
9782         (same_body_alias): Update comment.
9783         (same_body_aliases_done): Declare.
9784         (cgraph_remove_same_body_alias): Remove declaration.
9785         (cgraph_create_function_alias): Declare.
9786         (cgraph_process_same_body_aliases): Declare.
9787         (cgraph_function_with_gimple_body_p): Check for alias.
9788         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
9789         (cgraph_alias_aliased_node): New function.
9790         (cgraph_function_node): Update for new aliases.
9791         (cgraph_function_or_thunk_node): Likewise.
9792         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
9793         (inline_call): Remove dead aliases.
9794         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
9795         name hack for same body aliases.
9796         (clone_of_p): Look through aliases.
9797         (verify_cgraph_node): Verify aliases.
9798         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
9799         (cgraph_process_same_body_aliases): New function.
9800         (process_function_and_variable_attributes): Disable weakref warning on
9801         alias.
9802         (cgraph_analyze_functions): Handle aliases.
9803         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
9804         (assemble_thunks): Rename to ...
9805         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
9806         (cgraph_expand_function): Remove alias output code.
9807         (cgraph_output_in_order): Skip aliases.
9808         (cgraph_preserve_function_body_p): Aliases don't need preserving.
9809         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
9810         (ipa_record_reference): Do not assert on alias references.
9811         (ipa_ref_has_aliases_p): New function.
9812         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
9813         (ipa_ref_has_aliases_p): Declare.
9814         * lto-cgraph.c (lto_output_node): Handle aliases.
9815         (input_node): Likewise.
9816         * lto-streamer-out.c (lto_output): Skip aliases.
9817         (produce_symtab): Kill same_body_alias code.
9818         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
9819         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
9820         * ipa-inline.c (update_caller_keys): Walk aliases.
9821         (inline_small_functions): Fix thinko in previous patch.
9822         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
9823         (function_and_variable_visibility): Do not walk same body aliases.
9824         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
9825         (ipa_pta_execute): Use it.
9826
9827 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
9828
9829         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
9830         (*vec_dupv2df): Rename from vec_dupv2df.
9831         (vec_dupv2df): New expander.
9832
9833 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
9834
9835         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
9836
9837 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
9838
9839         * config/i386/i386.md: Use default value in "isa" attribute.
9840         * config/i386/sse.md: Ditto.
9841         * config/i386/mmx.md: Ditto.
9842
9843 2011-06-10  Wei Guozhi  <carrot@google.com>
9844
9845         PR target/45335
9846         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
9847         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
9848         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
9849         related peephole2.
9850         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
9851         related peephole2.
9852         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
9853         (arm_legitimate_ldrd_p): New prototype.
9854         (arm_output_ldrd): New prototype.
9855         * config/arm/arm.c (arm_check_ldrd_operands): New function.
9856         (arm_legitimate_ldrd_p): New function.
9857         (arm_output_ldrd): New function.
9858
9859 2011-06-10  David Li  <davidxl@google.com>
9860
9861         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
9862         * passes.c (passr_eq): New function.
9863         (create_pass_tab): New function.
9864         (pass_traverse): New function.
9865         (dump_one_pass): New function.
9866         (dump_pass_list): New function.
9867         (dump_passes): New function.
9868
9869 2011-06-10  Jan Hubicka  <jh@suse.cz>
9870
9871         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
9872         setting the nothrow flag.
9873         * ipa-reference.c (propagate): Skip aliases.
9874         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
9875         (propagate_nothrow): Skip aliases; do not update cgraph.
9876         (local_pure_const): Do not update cgraph.
9877         * tree-profile.c (tree_profiling): Do fixup_cfg.
9878
9879 2011-06-10  Jan Hubicka  <jh@suse.cz>
9880
9881         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
9882         (cgraph_local_node_p): ... here; handle aliases.
9883         (has_addr_references_p): Break out from ...;
9884         (cgraph_remove_unreachable_nodes) ... here.
9885
9886 2011-06-10  Jan Hubicka  <jh@suse.cz>
9887
9888         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9889         * common.opt (flag_inline_functions_called_once): Do not
9890         initialize to 1.
9891
9892 2011-06-10  Jan Hubicka  <jh@suse.cz>
9893
9894         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9895         (ipcp_initialize_node_lattices): Do not deal with aliases;
9896         Do not try to propagate through thunks.
9897         (ipcp_change_tops_to_bottom): Do not deal with aliases.
9898
9899 2011-06-10  Jan Hubicka  <jh@suse.cz>
9900
9901         * ipa-prop.c (ipa_write_node_info): Stream jump functions
9902         for indirect calls.
9903         (ipa_read_node_info): Likewise.
9904
9905 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9906
9907         PR lto/49302
9908         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
9909         (build_and_insert_call): Likewise.
9910         (build_and_insert_ref): New.
9911         (gimple_expand_builtin_pow): Minor cleanup.
9912         (gimple_expand_builtin_cabs): New.
9913         (execute_cse_sincos): Add case for BUILT_IN_CABS.
9914
9915 2011-06-10  Jan Hubicka  <jh@suse.cz>
9916
9917         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
9918         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
9919         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
9920         (ipcp_propagate_stage): Skip aliases when propagating.
9921         (ipcp_need_redirect_p): Skip aliases.
9922         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
9923         collect_callers_of_node.
9924         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
9925         for aliases.
9926         (ipa_compute_jump_functions): Look through aliases.
9927
9928 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9929
9930         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
9931
9932 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
9933
9934         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
9935         Adjust comments.
9936         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
9937
9938 2011-06-10  Jan Hubicka  <jh@suse.cz>
9939
9940         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
9941         Update call of gimple_get_virt_method_for_binfo.
9942         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
9943         refuse_thunks parameter.
9944         (gimple_fold_call): Update.
9945         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
9946
9947 2011-06-10  Jan Hubicka  <jh@suse.cz>
9948
9949         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
9950         (not_all_callers_have_enough_arguments_p): ... this one; turn into
9951         worker for cgraph_for_node_and_aliases.
9952         (convert_callers_for_node): Break out from ...
9953         (convert_callers): ... here.
9954         (modify_function): Use collect_callers_of_node.
9955         (ipa_early_sra): Use cgraph_for_node_and_aliases.
9956
9957 2011-06-10  Richard Guenther  <rguenther@suse.de>
9958
9959         PR tree-optimization/49361
9960         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
9961         when not already in gimple form.
9962
9963 2011-06-10  Richard Guenther  <rguenther@suse.de>
9964
9965         PR bootstrap/49344
9966         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
9967         FOR_EACH_PHI_OR_STMT_USE.
9968
9969 2011-06-10  Jan Hubicka  <jh@suse.cz>
9970
9971         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
9972         (clone_inlined_nodes): ... here.
9973         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
9974         to real destination prior inlining.
9975         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
9976         can_early_inline_edge_p, want_early_inline_function_p,
9977         want_early_inline_function_p, want_inline_small_function_p,
9978         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
9979         edge_badness, update_all_callee_keys, lookup_recursive_calls,
9980         add_new_edges_to_heap, inline_small_functions, flatten_function,
9981         inline_always_inline_functions, early_inline_small_functions): Use
9982         cgraph_function_or_thunk_node.
9983         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
9984         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
9985         (do_estimate_edge_growth_1): Break out from ...
9986         (do_estimate_growth) ... here; walk aliases.
9987         (inline_generate_summary): Skip aliases.
9988
9989 2011-06-10  Richard Guenther  <rguenther@suse.de>
9990
9991         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
9992         forward when combining, visit inserted stmts when a stmt was changed.
9993
9994 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
9995
9996         * tree.h (error_operand_p): Add.
9997         * dbxout.c (dbxout_type_fields): Use the latter.
9998         * c-decl.c (add_stmt): Likewise.
9999         * gimplify.c (omp_add_variable, omp_notice_variable,
10000         gimplify_scan_omp_clauses): Likewise.
10001
10002 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
10003
10004         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
10005         when a value is actually passed in regs.
10006
10007 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
10008             Laurent Rougé  <laurent.rouge@menta.fr>
10009
10010         * doc/invoke.texi (SPARC options): Add -mflat.
10011         * config/sparc/sparc.opt: Likewise.
10012         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
10013         (sparc_flat_expand_prologue): Declare.
10014         (sparc_flat_expand_epilogue): Likewise.
10015         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
10016         (CPP_ENDIAN_SPEC): Replace with...
10017         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
10018         (CPP_SPEC): Adjust to above change.
10019         (EXTRA_SPECS): Likewise.
10020         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
10021         (INCOMING_REGNO): Likewise.
10022         (OUTGOING_REGNO): Likewise.
10023         (LOCAL_REGNO): Likewise.
10024         (SETUP_FRAME_ADDRESSES): Likewise.
10025         (FIXED_REGISTERS): Set 0 for %fp.
10026         (CALL_USED_REGISTERS): Likewise.
10027         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
10028         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
10029         (RETURN_ADDR_REGNUM): Define.
10030         (RETURN_ADDR_RTX): Use it.
10031         (INCOMING_RETURN_ADDR_REGNUM): Define.
10032         (INCOMING_RETURN_ADDR_RTX): Use it.
10033         (DWARF_FRAME_RETURN_COLUMN): Likewise.
10034         (EH_RETURN_REGNUM): Define.
10035         (EH_RETURN_STACKADJ_RTX): Use it.
10036         (EH_RETURN_HANDLER_RTX): Delete.
10037         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
10038         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
10039         Delete.
10040         (struct machine_function): Add frame_size, apparent_frame_size,
10041         frame_base_reg, frame_base_offset, n_global_fp_regs and
10042         save_local_in_regs_p fields.
10043         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
10044         sparc_frame_base_offset, sparc_n_global_fp_regs,
10045         sparc_save_local_in_regs_p): New macros.
10046         (sparc_option_override): Error out if -fcall-saved-REG is specified
10047         for Out registers.
10048         (eligible_for_restore_insn): Fix formatting.
10049         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
10050         (eligible_for_sibcall_delay): Likewise.
10051         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
10052         (sparc_legitimate_address_p): Adjust to above change.
10053         (save_global_or_fp_reg_p): New predicate.
10054         (return_addr_reg_needed_p): Likewise.
10055         (save_local_or_in_reg_p): Likewise.
10056         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
10057         (SORR_SAVE, SORR_RESTORE): Delete.
10058         (sorr_pred_t): New typedef.
10059         (sorr_act_t): New enum.
10060         (save_or_restore_regs): Rename to...
10061         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
10062         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
10063         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
10064         mechanism.  Add CFI information for double-word saves in 32-bit mode.
10065         (emit_adjust_base_to_offset): New function extracted from...
10066         (emit_save_or_restore_regs): ...this.  Rename the rest to...
10067         (emit_save_or_restore_regs_global_fp_regs): ...this.
10068         (emit_save_or_restore_regs_local_in_regs): New function.
10069         (gen_create_flat_frame_[123]): New functions.
10070         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
10071         (sparc_flat_expand_prologue): New function.
10072         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
10073         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
10074         (sparc_flat_expand_epilogue): New function.
10075         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
10076         (output_return): Likewise.
10077         (output_sibcall): Likewise.
10078         (sparc_output_mi_thunk): Likewise.
10079         (sparc_frame_pointer_required): Likewise.
10080         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
10081         function optimization.
10082         * config/sparc/sparc.md (flat): New attribute.
10083         (prologue): Add TARGET_FLAT handling.
10084         (save_register_window): Disable if TARGET_FLAT.
10085         (create_flat_frame_[123]): New patterns.
10086         (epilogue): Add TARGET_FLAT handling.
10087         (sibcall_epilogue): Likewise.
10088         (eh_return): New expander.
10089         (eh_return_internal): New insn and splitter.
10090         (return_internal): Add TARGET_FLAT handling.
10091         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
10092         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
10093         (nonlocal_goto): Add TARGET_FLAT handling.
10094         * config/sparc/t-elf: Add -mflat multilib.
10095         * config/sparc/t-leon: Likewise.
10096
10097 2011-06-10  Jan Hubicka  <jh@suse.cz>
10098
10099         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
10100         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
10101         (self_recursive_p): Use cgraph_function_node.
10102         (propagate_pure_const): Likewise.
10103         (propagate_nothrow): Likewise.
10104         * ipa-reference.c (ipa_reference_get_not_read_global): Use
10105         cgraph_function_node.
10106         (propagate_bits): Likewise.
10107         (propagate): Likewise.
10108
10109 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10110             Richard Earnshaw  <rearnsha@arm.com>
10111
10112         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
10113         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
10114         (*thumb2_movdi_vfp): Delete.
10115         (*arm_movdi_vfp_cortexa8): Delete.
10116         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
10117         (*movdi_vfp_cortexa8): Likewise.
10118
10119 2011-06-10  Richard Guenther  <rguenther@suse.de>
10120
10121         * stor-layout.c (initialize_sizetypes): Give names to all
10122         sizetype kinds.
10123
10124 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
10125
10126         PR tree-optimization/49318
10127         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
10128         irrelevant pattern statements.
10129
10130 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10131
10132         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
10133
10134         PR bootstrap/49354
10135         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
10136         to last assignment.
10137
10138 2011-06-09  Jan Hubicka  <jh@suse.cz>
10139
10140         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
10141         do not recompute reachable flag.
10142         (cgraph_finalize_function, cgraph_analyze_functions): Set
10143         redefined_extern_inline here.
10144
10145 2011-06-09  Jan Hubicka  <jh@suse.cz>
10146
10147         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
10148         (cgraph_only_called_directly_p): ... this one; bring offline.
10149         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
10150         varpool_used_from_object_file_p): Drop names from the declaratoin.
10151         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
10152         collect_callers_of_node): New.
10153         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
10154         (cgraph_edge_recursive_p): Use cgraph_function_node.
10155         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
10156         (cgraph_node_cannot_be_local_p_1): Break out from ...
10157         (cgraph_node_can_be_local_p): ... here; walk aliases.
10158         (cgraph_for_node_thunks_and_aliases): New function.
10159         (cgraph_for_node_and_aliases): New function.
10160         (cgraph_make_node_local_1): Break out from ...
10161         (cgraph_make_node_local) ... here; use
10162         cgraph_for_node_thunks_and_aliases.
10163         (cgraph_set_nothrow_flag_1): Break out from ...
10164         (cgraph_set_nothrow_flag) ... here;
10165         use cgraph_for_node_thunks_and_aliases.
10166         (cgraph_set_const_flag_1): Break out from ...
10167         (cgraph_set_const_flag) ... here;
10168         use cgraph_for_node_thunks_and_aliases.
10169         (cgraph_set_pure_flag_1): Break out from ...
10170         (cgraph_set_pure_flag) ... here;
10171         use cgraph_for_node_thunks_and_aliases.
10172         (cgraph_propagate_frequency_1): Break out from ...
10173         (cgraph_propagate_frequency) ... here; use
10174         cgraph_for_node_thunks_and_aliases.
10175         (cgraph_used_from_object_file_p): Do not care about aliases.
10176         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
10177         New functions.
10178         (collect_callers_of_node_1, collect_callers_of_node): New functions.
10179
10180 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10181
10182         PR rtl-optimization/49154
10183         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
10184         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
10185         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
10186         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
10187         * config/cris/cris.h (cris_register_move_cost): Remove
10188         !TARGET_V32 code.  Tweak comments.
10189
10190 2011-06-09  Jan Hubicka  <jh@suse.cz>
10191
10192         * cgraphbuild.c (record_eh_tables): Mark personality function as having
10193         address taken.
10194
10195 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10196
10197         PR rtl-optimization/49154
10198         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
10199         is a matching slot in the hashtable, assign it to classes_ptr.
10200
10201         PR rtl-optimization/49154
10202         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
10203         register classes.
10204         * doc/tm.texi: Regenerate.
10205
10206 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
10207
10208         PR target/49307
10209         * config/sh/sh.md (UNSPEC_CHKADD): New.
10210         (chk_guard_add): New define_insn_and_split.
10211         (symGOT_load): Use chk_guard_add instead of blockage.
10212
10213 2011-06-09  Kai Tietz  <ktietz@redhat.com>
10214
10215         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
10216
10217 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
10218
10219         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
10220
10221 2011-06-09  Wei Guozhi  <carrot@google.com>
10222
10223         PR target/46975
10224         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
10225         (peephole2 for conditional move): Generate 16 bit instructions.
10226
10227 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
10228
10229         * config/i386/i386.md (*movdi_internal_rex64): Merge
10230         alternatives 6 and 8.
10231
10232 2011-06-09  David Li  <davidxl@google.com>
10233
10234         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
10235         * passes.c (passr_eq): New function.
10236         (create_pass_tab): New function.
10237         (pass_traverse): New function.
10238         (dump_one_pass): New function.
10239         (dump_pass_list): New function.
10240         (dump_passes): New function.
10241
10242 2011-06-09  David Li  <davidxl@google.com>
10243
10244         * tree-complex.c (tree_lower_complex): Gate cleanup.
10245         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
10246         (execute_optimize_stdarg): Ditto.
10247         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
10248         (execute_cleanup_eh_1): Ditto.
10249         (execute_cleanup_eh): Ditto.
10250         * gcse.c (gate_rtl_pre): Ditto.
10251         (execute_rtl_pre): Ditto.
10252         * except.c (finish_eh_generation): Ditto.
10253         (convert_to_eh_region_ranges): Ditto.
10254         * cprop.c (one_cprop_pass): Ditto.
10255
10256 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
10257
10258         PR target/48673
10259         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
10260         in all basic blocks.
10261
10262 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10263
10264         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
10265         (HAVE_ENABLE_EXECUTE_STACK): Define.
10266         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
10267         (HAVE_ENABLE_EXECUTE_STACK): Define.
10268         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
10269         (HAVE_ENABLE_EXECUTE_STACK): Define.
10270         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
10271         (ENABLE_EXECUTE_STACK): Remove.
10272         (HAVE_ENABLE_EXECUTE_STACK): Define.
10273         [IN_LIBGCC2]: Don't include <windows.h>.
10274         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
10275         (HAVE_ENABLE_EXECUTE_STACK): Define.
10276         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
10277         (HAVE_ENABLE_EXECUTE_STACK): Define.
10278         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
10279         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
10280         (HAVE_ENABLE_EXECUTE_STACK): Define.
10281         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
10282         (HAVE_ENABLE_EXECUTE_STACK): Define.
10283         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
10284         (HAVE_ENABLE_EXECUTE_STACK): Define.
10285         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
10286         (HAVE_ENABLE_EXECUTE_STACK): Define.
10287         * config/alpha/alpha.c (alpha_trampoline_init): Test
10288         HAVE_ENABLE_EXECUTE_STACK.
10289         * config/i386/i386.c (ix86_trampoline_init): Likewise.
10290         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10291         (sparc64_initialize_trampoline): Likewise.
10292         * libgcc2.c [L_enable_execute_stack]: Remove.
10293         * system.h (ENABLE_EXECUTE_STACK): Poison.
10294         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
10295         * doc/tm.texi: Regenerate.
10296         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
10297
10298 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
10299
10300         PR middle-end/49308
10301         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
10302         variable.  After resetting and rescanning insn continue with previous
10303         statement.
10304
10305 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10306
10307         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
10308         (gcc_cv_ld_hidden): Likewise.
10309         * configure: Regenerate.
10310         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
10311         (ix86_stack_protect_fail): Mark unused.
10312         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
10313         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
10314         [TARGET_MACHO]: Don't define.
10315         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
10316         (TARGET_STACK_PROTECT_FAIL): Likewise.
10317         (rs6000_stack_protect_fail): Mark unused.
10318         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
10319         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
10320
10321 2011-06-08  Andi Kleen  <ak@linux.intel.com>
10322
10323         * varasm.c (get_section): Print location of other conflict
10324         for section conflicts.
10325
10326 2011-06-08  Andi Kleen  <ak@linux.intel.com>
10327
10328         * config/i386/driver-i386.c (host_detect_local_cpu):
10329         Add model 0x2d Intel CPU.
10330
10331 2011-06-08  Andi Kleen  <ak@linux.intel.com>
10332
10333         * reginfo.c (global_regs_decl): Add.
10334         (globalize_reg): Add decl parameter. Compute location.  Pass location
10335         to warnings and add inform. Store decl in global_regs_decl.
10336         * rtl.h (globalize_reg): Update prototype.
10337         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
10338
10339 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
10340
10341         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
10342
10343 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
10344
10345         PR target/49305
10346         * config/sh/predicates.md (general_movsrc_operand): Check
10347         mode for memory with indexed address for QI and HImode.
10348         (general_movdst_operand): Likewise.
10349
10350 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
10351
10352         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
10353
10354 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
10355
10356         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
10357         (num_ssa_operands): Likewise.
10358         (op_iter_init_phiuse): Forward-declare.
10359         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
10360
10361 2011-06-08  Nick Clifton  <nickc@redhat.com>
10362
10363         * doc/invoke.texi (ARM Options): Update description of
10364         -mthumb-interwork.
10365
10366 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
10367
10368         * config/i386/driver-i386.c (host_detect_local_cpu): Support
10369         unknown Intel family 0x6 CPUs.
10370
10371 2011-06-08  Martin Jambor  <mjambor@suse.cz>
10372
10373         * tree-sra.c (mark_rw_status): Removed.
10374         (analyze_access_subtree): New parameter parent instead of
10375         mark_read and mark_write, propagate from that.
10376
10377 2011-06-08  Julian Brown  <julian@codesourcery.com>
10378
10379         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
10380         for double-precision helper functions in hard-float mode if only
10381         single-precision arithmetic is supported in hardware.
10382
10383 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
10384
10385         PR rtl-optimization/49303
10386         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
10387         code_motion_path_driver returned 0 or 1.
10388         (sel_region_finish): Clear h_d_i_d.
10389
10390 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
10391
10392         * config/sh/sh.c (prepare_move_operands): Set pic register
10393         appropriately for global and local dynamic tls models even
10394         if flag_pic is unset.
10395
10396 2011-06-07  Jason Merrill  <jason@redhat.com>
10397
10398         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
10399
10400 2011-06-07  Xinliang David Li  <davidxl@google.com>
10401         * passes.c (enable_disable_pass): Handle assembler name.
10402         (is_pass_explicitly_enabled_or_disabled): Ditto.
10403
10404 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10405
10406         PR tree-optimization/48497
10407         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
10408
10409 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10410
10411         PR tree-optimization/46728
10412         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
10413         to use gimple_val_nonnegative_real_p.
10414         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
10415         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
10416
10417 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
10418
10419         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
10420
10421 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
10422
10423         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
10424         constant vectors.
10425
10426 2011-06-07  Richard Guenther  <rguenther@suse.de>
10427
10428         * stor-layout.c (initialize_sizetypes): Initialize all
10429         sizetypes based on target definitions.
10430         (set_sizetype): Remove.
10431         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
10432         * tree.h (set_sizetype): Remove.
10433
10434 2011-06-07  Nick Clifton  <nickc@redhat.com>
10435
10436         * config.gcc: Unify V850 architecture options and add support for
10437         newer V850 architectures.
10438         * config/v850/t-v850e: Delete.
10439
10440 2011-06-07  Richard Guenther  <rguenther@suse.de>
10441
10442         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
10443         Call set_sizetype from here.
10444
10445 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
10446
10447         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
10448         (*maddhisi4tb, *maddhisi4tt): New define_insns.
10449
10450 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
10451             Andrew Stubbs  <ams@codesourcery.com>
10452
10453         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
10454         multiplies.
10455         * doc/md.texi (Canonicalization of Instructions): Document widening
10456         multiply canonicalization.
10457
10458 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
10459
10460         PR gcov-profile/49299
10461         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
10462
10463 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
10464
10465         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
10466         a pointer.
10467         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
10468         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
10469         vect_recog_pow_pattern): Likewise.
10470         (vect_pattern_recog_1): Remove declaration.
10471         (widened_name_p): Remove declaration.  Add new argument to specify
10472         whether to check that both types are either signed or unsigned.
10473         (vect_recog_widen_mult_pattern): Update documentation.  Handle
10474         unsigned patterns and multiplication by constants.
10475         (vect_pattern_recog_1): Update vect_recog_func references.  Use
10476         statement information from the statement returned from pattern
10477         detection functions.
10478         (vect_pattern_recog): Update vect_recog_func reference.
10479         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
10480         multiplication by a constant use the type of the other operand.
10481
10482 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
10483
10484         PR rtl-optimization/49145
10485         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
10486
10487 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
10488
10489         PR debug/49262
10490         * dwarf2out.c (native_encode_initializer): Decrement count in each
10491         iteration.
10492
10493         PR debug/49294
10494         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
10495         non-MODE_INT modes.
10496
10497         PR c++/49264
10498         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
10499         if stmt folded into nothing.
10500         * tree-inline.c (fold_marked_statements): If a builtin at the end of
10501         a bb folded into nothing, just update cgraph edges and move to next bb.
10502         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
10503         to be NULL.  Don't compute count and frequency if new_call is NULL.
10504
10505 2011-06-04  Diego Novillo  <dnovillo@google.com>
10506
10507         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
10508         (cgraph.o): Likewise.
10509         (cgraphunit.o): Likewise.
10510         * cgraphunit.c: Include lto-streamer.h
10511         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
10512         if LTO is enabled.
10513         * lto-streamer-in.c (unpack_value_fields): Call
10514         streamer_hooks.unpack_value_fields if set.
10515         (lto_materialize_tree): For unhandled nodes, first try to
10516         call lto_streamer_hooks.alloc_tree, if it exists.
10517         (lto_input_ts_decl_common_tree_pointers): Move reading of
10518         DECL_INITIAL to lto_streamer_read_tree.
10519         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
10520         (lto_streamer_read_tree): New.
10521         (lto_reader_init): Rename from lto_init_reader.
10522         Move initialization code to lto/lto.c.
10523         * lto-streamer-out.c (pack_value_fields): Call
10524         streamer_hooks.pack_value_fields if set.
10525         (lto_output_tree_ref): For tree nodes that are not normally indexable,
10526         call streamer_hooks.indexable_with_decls_p before giving up.
10527         (lto_output_ts_decl_common_tree_pointers): Move handling
10528         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
10529         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
10530         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
10531         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
10532         (lto_streamer_write_tree): New.
10533         (lto_output): Call lto_streamer_init directly.
10534         (lto_writer_init): Remove.
10535         * lto-streamer.c (streamer_hooks): New.
10536         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
10537         instead of lto_preload_common_nodes.
10538         (lto_is_streamable): Move from lto-streamer.h
10539         (lto_streamer_hooks_init): New.
10540         (streamer_hooks): New.
10541         (streamer_hooks_init): New.
10542         * lto-streamer.h (struct output_block): Forward declare.
10543         (struct lto_input_block): Likewise.
10544         (struct data_in): Likewise.
10545         (struct bitpack_d): Likewise.
10546         (struct streamer_hooks): Declare.
10547         (streamer_hooks): Declare.
10548         (lto_streamer_hooks_init): Declare.
10549         (lto_streamer_write_tree): Declare.
10550         (lto_streamer_read_tree): Declare.
10551         (streamer_hooks_init): Declare.
10552         (lto_is_streamable): Move to lto-streamer.c
10553
10554 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10555
10556         * longlong.h (smul_ppmm): The resulting register pair contains the
10557         higher order word first.
10558
10559 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10560
10561         PR tree-optimization/46728
10562         * builtins.c (powi_table): Remove.
10563         (powi_lookup_cost): Remove.
10564         (powi_cost): Remove.
10565         (expand_powi_1): Remove.
10566         (expand_powi): Remove.
10567         (expand_builtin_pow_root): Remove.
10568         (expand_builtin_pow): Remove.
10569         (expand_builtin_powi): Eliminate handling of constant exponent.
10570         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
10571
10572 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10573
10574         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
10575
10576 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10577
10578         * dce.c (reset_unmarked_insns_debug_uses): New.
10579         (delete_unmarked_insns): Skip debug insns.
10580         (prescan_insns_for_dce): Likewise.
10581         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
10582         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
10583         active reg can be found.
10584         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
10585         (convert_regs_1): Use it.
10586
10587 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10588
10589         * tree-pretty-print.c (dump_function_header): Add flags.
10590         Don't dump decl_uid with nouid.
10591         * tree-pretty-print.h (dump_function_header): Adjust.
10592         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
10593         * passes.c (pass_init_dump_file): Pass dump_flags on.
10594         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
10595
10596 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10597
10598         PR bootstrap/49270
10599         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
10600
10601 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
10602
10603         PR tree-optimization/49243
10604         * calls.c (setjmp_call_p): Also check if fndecl has the
10605         returns_twice attribute.
10606
10607 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10608
10609         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
10610         -ffast-math etc.
10611
10612 2011-06-06  Richard Henderson  <rth@redhat.com>
10613             Georg-Johann Lay  <avr@gjlay.de>
10614
10615         PR target/42210
10616         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
10617         New predicates.
10618         * config/avr/avr.md ("insv"): New insn expander.
10619         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
10620         "*insv.not.io", "*insv.reg"): New insns.
10621
10622 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
10623
10624         PR target/49285
10625         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
10626         to nonimmediate_operand from memory_operand for the operand that is to
10627         be forced to memory by the expander.  Lose the constraints.
10628
10629 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
10630
10631         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
10632         EH return when delayed branches are disabled.
10633
10634 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
10635
10636         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
10637         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
10638         calculation.
10639         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
10640         Simplify MODE_V1DF and MODE_V2SF handling.
10641         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
10642         Simplify MODE_SF handling.
10643
10644 2011-06-04  Jan Hubicka  <jh@suse.cz>
10645
10646         PR tree-optimization/48893
10647         PR tree-optimization/49091
10648         PR tree-optimization/49179
10649         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
10650         Bounds check.
10651
10652 2011-06-04  Jan Hubicka  <jh@suse.cz>
10653
10654         PR lto/48954
10655         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
10656         bitmaps.
10657
10658 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
10659
10660         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
10661
10662 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
10663
10664         PR target/49281
10665         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
10666         to be strictly smaller than 1 << shiftcount.
10667
10668 2011-06-04  Jan Hubicka  <jh@suse.cz>
10669
10670         PR tree-optimize/48929
10671         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
10672         of empty predicate.
10673
10674 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
10675
10676         PR debug/48333
10677         * calls.c (emit_call_1): Prefer the __builtin declaration of
10678         builtin functions.
10679
10680 2011-06-03   Diego Novillo  <dnovillo@google.com>
10681
10682         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
10683         (lto_input_tree_pointers): Likewise.
10684         * lto-streamer-out.c (pack_value_fields): Likewise.
10685         (lto_output_tree_pointers): Likewise.
10686         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
10687         and OPTIMIZATION_NODE.
10688
10689 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10690
10691         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
10692         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
10693         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
10694         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
10695         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
10696         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
10697         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
10698         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
10699         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
10700         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
10701         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
10702         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
10703         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
10704         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
10705         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
10706         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
10707         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
10708         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
10709         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
10710         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
10711         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
10712         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
10713         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
10714         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
10715         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
10716         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
10717         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
10718         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
10719         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
10720         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
10721         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
10722         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
10723         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
10724         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
10725         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
10726         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
10727         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
10728         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
10729         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
10730         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
10731         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
10732         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
10733         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
10734         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
10735         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
10736         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
10737         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
10738         * system.h (MD_UNWIND_SUPPORT): Poison.
10739         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
10740         * doc/tm.texi: Regenerate.
10741         * unwind-dw2.c: Include md-unwind-support.h instead of
10742         MD_UNWIND_SUPPORT.
10743         * config/ia64/unwind-ia64.c: Likewise.
10744         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
10745
10746 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
10747
10748         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
10749
10750 2011-06-03  Richard Henderson  <rth@redhat.com>
10751             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10752
10753         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
10754         (sigill_hdlr): Correct insn, insn size.
10755         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
10756
10757 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10758
10759         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
10760         t-slibgcc-dummy.
10761         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
10762         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
10763         * config/mips/t-iris: Remove.
10764         * config/mips/t-irix6: New file.
10765         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
10766
10767 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10768
10769         * Makefile.in (LIB2ADDEHDEP): Remove.
10770         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
10771         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
10772         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
10773         * config/t-darwin (LIB2ADDEHDEP): Remove.
10774         * config/t-freebsd (LIB2ADDEHDEP): Remove.
10775         * config/t-linux (LIB2ADDEHDEP): Remove.
10776
10777 2011-06-03  Diego Novillo  <dnovillo@google.com>
10778
10779         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
10780         (lto_register_var_decl_in_symtab): Likewise.
10781         (lto_register_function_decl_in_symtab): Likewise.
10782         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
10783         logic to uniquify_nodes.
10784
10785 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10786
10787         * config/alpha/t-osf5: Remove.
10788         * config/alpha/t-osf-pthread: Remove.
10789         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
10790         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
10791
10792 2011-06-03  Julian Brown  <julian@codesourcery.com>
10793
10794         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
10795         (strongarm1110): Use strongarm tuning.
10796         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
10797         * config/arm/arm.c (arm_strongarm_tune): New.
10798         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
10799         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
10800         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
10801         setting, using previous defaults or 1 for Cortex-A5.
10802         (arm_option_override): Set max_insns_skipped from current tuning.
10803
10804 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
10805
10806         * doc/install.texi (Options specification): Document --with-specs.
10807
10808 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10809
10810         * config/arm/neon.md (orndi3_neon): Actually split it.
10811
10812 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
10813
10814         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
10815         * var-tracking.c (reverse_op): Limite recurse depth to 5.
10816
10817 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
10818
10819         PR debug/47590
10820         * target.def (delay_sched2, delay_vartrack): New.
10821         * doc/tm.texi.in: Update.
10822         * doc/tm.texi: Rebuild.
10823         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
10824         * var-tracking.c (gate_handle_var_tracking): Likewise.
10825         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
10826         (bfin_flag_var_tracking): Drop.
10827         (output_file_start): Don't save and override flag_var_tracking.
10828         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
10829         (bfin_reorg): Test original variables.
10830         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
10831         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
10832         (ia64_flag_var_tracking): Drop.
10833         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
10834         (ia64_file_start): Don't save and override flag_var_tracking.
10835         (ia64_override_options_after_change): Ditto
10836         flag_schedule_insns_after_reload.
10837         (ia64_reorg): Test original variables.
10838         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
10839         (picochip_flag_var_tracking): Drop.
10840         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
10841         (picochip_option_override): Don't save and override
10842         flag_schedule_insns_after_reload.
10843         (picochip_asm_file_start): Ditto flag_var_tracking.
10844         (picochip_reorg): Test original variables.
10845         * config/spu/spu.c (spu_flag_var_tracking): Drop.
10846         (TARGET_DELAY_VARTRACK): Define.
10847         (spu_var_tracking): New.
10848         (spu_machine_dependent_reorg): Call it.
10849         (asm_file_start): Don't save and override flag_var_tracking.
10850
10851 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
10852
10853         PR target/49163
10854         * config/sh/predicates.md (general_movsrc_operand): Return 0
10855         for memory and memory subreg of which address is an invalid
10856         indexed address for QI and HImode.
10857         (general_movdst_operand): Likewise.
10858
10859 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
10860
10861         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
10862         edges only, when there is a non-local label in the function.
10863         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
10864
10865 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
10866
10867         * config/i386/constraints.md (Y3): New register constraint.
10868         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
10869         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
10870         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
10871         *sse2_interleave_lowv2df.
10872
10873 2011-06-02  Julian Brown  <julian@codesourcery.com>
10874
10875         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
10876         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
10877         (arm_cortex_a5_tune): New.
10878
10879 2011-06-02  Julian Brown  <julian@codesourcery.com>
10880
10881         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
10882         * config/arm/arm.c (arm_default_branch_cost): New.
10883         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
10884         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
10885         (arm_fa726_tune): Set branch_cost field using
10886         arm_default_branch_cost.
10887         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
10888         current_tune structure.
10889         * dojump.c (tm_p.h): Include file.
10890
10891 2011-06-02  Julian Brown  <julian@codesourcery.com>
10892
10893         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
10894         tuning.
10895         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
10896         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
10897         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
10898         field.
10899         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
10900         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
10901         (arm_fa726te_tune): Add prefer_constant_pool setting.
10902         (arm_v6t2_tune, arm_cortex_tune): New.
10903         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
10904         prefer_constant_pool setting.
10905
10906 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
10907
10908         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
10909         switch statement.
10910         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
10911         (*movdf_internal) <case 6,7,8>: Ditto.
10912
10913         * config/i386/constraints.md (Y4): New register constraint.
10914         * config/i386/sse.md (vec_set<mode>_0): Merge with
10915         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
10916         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
10917         *vec_extractv2di_1_sse.
10918         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
10919         and *vec_concatv2di_rex64_sse.
10920
10921 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
10922
10923         PR target/48807
10924         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
10925         of cgraph_local_info for null before attempting to use it.
10926
10927 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
10928
10929         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
10930         (current_function_dynamic_alloc_count): Delete.
10931         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
10932         (expand_builtin_nonlocal_goto): Remove obsolete comment.
10933         (expand_builtin_update_setjmp_buf): Remove dead code.
10934         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
10935         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
10936         support.
10937         * function.c (instantiate_virtual_regs): Likewise.
10938         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
10939         for a block with a single abnormal incoming edge.
10940         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
10941         (SETJMP_VIA_SAVE_AREA): Delete.
10942         * config/sparc/sparc-protos.h (load_got_register): Declare.
10943         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
10944         (load_got_register): Make global.
10945         (sparc_frame_pointer_required): Add 'static'.
10946         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
10947         (sparc_builtin_setjmp_frame_value): New function.
10948         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
10949         (save_stack_nonlocal): New expander.
10950         (restore_stack_nonlocal): Likewise.
10951         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
10952         (nonlocal_goto_internal): New insn.
10953         (goto_handler_and_restore): Delete.
10954         (builtin_setjmp_setup): Likewise.
10955         (do_builtin_setjmp_setup): Likewise.
10956         (setjmp): Likewise.
10957         (builtin_setjmp_receiver): New expander.
10958
10959 2011-06-01  David Li  <davidxl@google.com>
10960
10961         PR middle-end/49261
10962         * tree-pretty-print.c (dump_function_header): Format cleanup.
10963
10964 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
10965
10966         PR target/49238
10967         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
10968         needed when original operands are used for msw_skip comparison.
10969
10970 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
10971
10972         PR debug/49250
10973         * var-tracking.c (add_uses, add_stores): Don't call
10974         cselib_subst_to_values on ENTRY_VALUE.
10975
10976 2011-06-01  Diego Novillo  <dnovillo@google.com>
10977
10978         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
10979         output_record_start with LTO_null instead of output_zero.
10980         (lto_output_ts_binfo_tree_pointers): Likewise.
10981         (lto_output_tree): Likewise.
10982         (output_eh_try_list): Likewise.
10983         (output_eh_region): Likewise.
10984         (output_eh_lp): Likewise.
10985         (output_eh_regions): Likewise.
10986         (output_bb): Likewise.
10987         (output_function): Likewise.
10988         (output_unreferenced_globals): Likewise.
10989         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
10990         instead of NUM_TREE_CODES.
10991         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
10992         (lto_output_int_in_range): Change << to >> when shifting VAL.
10993
10994 2011-06-01  Diego Novillo  <dnovillo@google.com>
10995
10996         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
10997         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
10998
10999 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11000
11001         PR target/45074
11002         * optabs.h (valid_multiword_target_p): Declare.
11003         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
11004         doing multi-word operations.
11005         * optabs.c (expand_binop): Likewise.
11006         (expand_doubleword_bswap): Likewise.
11007         (expand_absneg_bit): Likewise.
11008         (expand_unop): Likewise.
11009         (expand_copysign_bit): Likewise.
11010         (multiword_target_p): New function.
11011
11012 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11013
11014         PR rtl-optimization/48830
11015         PR rtl-optimization/48808
11016         PR rtl-optimization/48792
11017         * reload.c (push_reload): Check contains_reg_of_mode.
11018         * reload1.c (strip_paradoxical_subreg): New function.
11019         (gen_reload_chain_without_interm_reg_p): Use it to handle
11020         paradoxical subregs.
11021         (emit_output_reload_insns, gen_reload): Likewise.
11022
11023 2011-06-01  David Li  <davidxl@google.com>
11024
11025         * predict.c : Change pass name
11026         * ipa.c: Ditto.
11027         * dce.c: Ditto.
11028         * tree-profile.c: Ditto.
11029         * except.c: Ditto.
11030
11031 2011-06-01  David Li  <davidxl@google.com>
11032
11033         * tree-pretty-print.c (dump_function_header): New function.
11034         * final.c (rest_of_clean_state): Use header dumper.
11035         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
11036         * passes.c (pass_init_dump_file): Use header dumper.
11037
11038 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
11039
11040         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
11041         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
11042         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
11043         New functions.
11044         (mem_loc_descriptor): Use them.
11045
11046         * var-tracking.c (create_entry_value): New function.
11047         (vt_add_function_parameter): Use it.
11048
11049 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11050
11051         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
11052         Include <signal.h>, <ucontext.h>.
11053         (sigill_caught): Define.
11054         (sigill_hdlr): New function.
11055         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
11056         insns can be executed.
11057         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
11058         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
11059
11060 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11061
11062         * config/t-slibgcc-darwin: Move to ...
11063         * config/t-slibgcc-dummy: ... this.  Clarify comments.
11064         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
11065         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
11066         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
11067         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
11068         Remove i386/t-crtstuff from tmake_file.
11069         (i[34567]86-*-solaris2*): Remove t-svr4,
11070         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
11071         t-slibgcc-dummy.
11072         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
11073         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
11074         sparc/t-crtfm from tmake_file.
11075         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
11076         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
11077         Remove extra_parts.
11078         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
11079         * config/i386/t-nwld (SHLIB_LINK): Remove.
11080         * config/i386/t-rtems-i386: Rename to ...
11081         * config/i386/t-rtems: ... this.
11082         ($(T)crti.o, $(T)crtn.o): Remove.
11083         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
11084         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
11085         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
11086         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
11087         EXTRA_MULTILIB_PARTS): Remove.
11088         * config/sparc/t-sol2-64: Likewise.
11089         * config/sparc/t-sol2: Remove.
11090         * config/sparc/t-crtin: Remove.
11091         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
11092         * config/i386/gmon-sol2.c: Remove.
11093         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
11094         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
11095         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
11096         * config/i386/sol2-gc1.asm: Remove.
11097         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
11098         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
11099         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
11100         * config/t-slibgcc-sld: Remove.
11101
11102 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
11103
11104         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
11105         base_type_for_mode with op_mode instead of mode.
11106
11107 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
11108
11109         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
11110         Cortex-A15.
11111         * config/arm/arm-tune.md: Regenerate.
11112         * config/arm/arm-tables.opt: Regenerate.
11113         * config/arm/arm.c (FL_DIV): Rename...
11114         (FL_THUMB_DIV): ... to this.
11115         (FL_ARM_DIV): Define.
11116         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
11117         (arm_arch_hwdiv): Remove.
11118         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
11119         (arm_issue_rate): Add cortexr5.
11120         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
11121         __ARM_ARCH_EXT_IDIV__.
11122         (TARGET_IDIV): Define.
11123         (arm_arch_hwdiv): Remove.
11124         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
11125         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
11126         (divsi3, udivsi3): New patterns.
11127         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
11128         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
11129
11130 2011-06-01  Martin Jambor  <mjambor@suse.cz>
11131
11132         * ipa-utils.c (ipa_dfs_info): New field scc_no.
11133         * ipa-utils.c (searchc): Set scc_no.
11134
11135 2011-06-01  Martin Jambor  <mjambor@suse.cz>
11136
11137         * ipa-utils.c (searchc_env): New field allow_overwritable.
11138         (searchc): do not ignore edges to overwritable nodes if indicated
11139         by env->allow_overwritable.
11140         (ipa_reduced_postorder): Set env.allow_overwritable.
11141
11142 2011-06-01  Richard Guenther  <rguenther@suse.de>
11143
11144         * tree.c (free_lang_data): Do not reset boolean_type_node nor
11145         char_type_node.
11146         * lto-streamer.c (lto_record_common_node): Take node pointer,
11147         do not register types.
11148         (lto_preload_common_nodes): Explicitly skip preloading nodes
11149         that differ between frontends.
11150
11151 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
11152
11153         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
11154         NON_FLOAT_REGS.
11155
11156 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
11157
11158         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
11159         parameter value for dump. Dump cost on outermost call only.
11160         (rs6000_memory_move_cost): Dump cost on outermost call only.
11161
11162 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
11163
11164         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
11165         DW_OP_GNU_convert ops.
11166
11167         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
11168         cselib_preserve_constants.
11169         (cselib_lookup_1): If cselib_preserve_constants,
11170         a new VALUE is being created for REG and there is a VALUE for the
11171         same register in wider mode, add another loc with lowpart SUBREG of
11172         the wider VALUE.
11173         (cselib_subst_to_values): Handle ENTRY_VALUE.
11174         * var-tracking.c  (replace_expr_with_values): Return NULL for
11175         ENTRY_VALUE too.
11176         * dwarf2out.c (convert_descriptor_to_signed): New function.
11177         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
11178         instead of two shifts.
11179         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
11180         the right mode if needed.
11181         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
11182         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
11183         convert_descriptor_to_signed.
11184         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
11185         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
11186
11187         PR target/48688
11188         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
11189
11190 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11191
11192         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
11193         of X87MODEI12 and SWI48x instead of SSEMODEI24.
11194         (SWI248x): New mode iterator, rename from X87MODEI.
11195         (X87MODEI): Remove mode iterator.
11196         (X87MODEI12): Ditto.
11197         (SSEMODEI24): Ditto.
11198
11199 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11200
11201         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
11202         * doc/invoke.texi: Document max-vartrack-expr-depth.
11203         * var-tracking.c (EXPR_DEPTH): New.
11204         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
11205
11206 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11207
11208         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
11209         * config/i386/sse.md: Add n to negated FMA pattern names.
11210
11211 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11212
11213         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
11214
11215 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11216
11217         * gengtype-state.c (read_state_params_structs): Initialize previous.
11218
11219 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11220
11221         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
11222         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
11223
11224 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11225
11226         * config/i386/i386.md (*movtf_internal): Avoid allocating general
11227         registers.  Penalize F*r->o alternative to prevent partial memory
11228         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
11229         CONST_DOUBLE immediates when optimizing function for size.  Do not move
11230         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
11231         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
11232         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
11233         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
11234         alternatives.
11235         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
11236
11237         (fp_register_operand splitters): Use fp_register_operand
11238         constraint.  Do not use FP_REG_P in insn condition.
11239         (any_fp_register_operand splitters): Use any_fp_register_operand
11240         constraint.  Do not use ANY_FP_REG_P in insn condition.
11241
11242 2011-05-31  Jan Hubicka  <jh@suse.cz>
11243
11244         * cgraph.h (cgraph_inline_failed_t): Give enum a name
11245         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
11246         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
11247         (lto_output_edge): Use output_enum and var_len_unsigned.
11248         (lto_output_varpool_node): Likewise.
11249         (input_overwrite_node): Do not take resolution parameter;
11250         extract it from a bitpack.
11251         (input_node): Do not read resolution; use input_enum and
11252         var_len_unsigned.
11253         (input_varpool_node): Likewise.
11254         (input_edge): Likewise.
11255         (input_cgraph_1): Likewise.
11256
11257 2011-05-31  Richard Guenther  <rguenther@suse.de>
11258
11259         * gimple.c (gimple_register_canonical_type): Do not register
11260         any types via gimple_register_type.
11261
11262 2011-05-31  Jan Hubicka  <jh@suse.cz>
11263
11264         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
11265         of thunks.
11266
11267 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
11268
11269         PR rtl-optimization/49235
11270         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
11271         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
11272
11273 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
11274
11275         PR tree-optimization/49093
11276         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
11277         data references.
11278
11279 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
11280
11281         PR debug/49047
11282         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
11283         for concrete functions containing the code of cloned functions.
11284
11285 2011-05-31  Richard Guenther  <rguenther@suse.de>
11286
11287         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
11288         to ...
11289         (forward_propagate_into_comparison_1): ... this.
11290         (forward_propagate_comparison): Rename to ...
11291         (forward_propagate_into_comparison): ... this.  Split out
11292         real forward propagation code to ...
11293         (forward_propagate_comparison): ... this.
11294         (forward_propagate_into_gimple_cond): Remove looping.
11295         (forward_propagate_into_cond): Likewise.
11296         (simplify_not_neg_expr): Return whether we have done something.
11297         (simplify_gimple_switch): Likewise.
11298         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
11299         (ssa_forward_propagate_and_combine): ... this.  Re-structure
11300         to do a forward forward-propagation walk on BBs and a backward
11301         stmt combining walk on BBs.  Consistently re-scan changed statements.
11302         (pass_forwprop): Adjust.
11303
11304 2011-05-30  Ian Lance Taylor  <iant@google.com>
11305
11306         * godump.c (go_format_type): Correct length of name added to
11307         obstack for anonymous field.
11308
11309 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
11310
11311         PR target/49186
11312         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
11313         part of the second operand is 0.
11314
11315 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
11316
11317         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
11318         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
11319         to memory for !TARGET_MEMORY_MISMATCH_STALL.
11320         (*movdf_internal_rex64): Do not penalize F->r alternative.
11321         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
11322         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
11323         when optimizing function for size.  Do not move CONST_DOUBLEs
11324         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
11325         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
11326         SUBREGs.  Do not check for MEM_P operands in the insn condition,
11327         check for ANY_FP_REGNO_P instead.
11328         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
11329         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
11330         function for speed.
11331         * config/i386/i386.c (ix86_option_override_internal): Do not
11332         set TARGET_INTEGER_DFMODE_MOVES here.
11333
11334 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
11335
11336         PR target/49168
11337         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
11338
11339 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
11340
11341         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
11342         DW_TAG_rvalue_reference_type even for
11343         -gdwarf-4 -fno-debug-types-section.
11344
11345 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11346
11347         PR tree-optimization/46728
11348         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
11349         (build_and_insert_binop): New.
11350         (gimple_expand_builtin_pow): Reorder args for
11351         build_and_insert_call; use build_and_insert_binop; add more
11352         optimizations for fractional exponents.
11353
11354 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
11355
11356         PR bootstrap/49190
11357
11358         Revert:
11359         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11360
11361         * tree.h (struct tree_identifier): Inherit from tree_typed, not
11362         tree_common.
11363         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
11364         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
11365         TS_BASE instead of TS_COMMON.
11366         * varasm.c (assemble_name): Remove assert.
11367
11368 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
11369
11370         * config.gcc: Keep obselete list sorted.
11371
11372 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
11373             Eric Botcazou  <ebotcazou@adacore.com>
11374
11375         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
11376         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
11377         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
11378         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
11379         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
11380
11381 2011-05-30  Richard Guenther  <rguenther@suse.de>
11382
11383         * gimple.c (gimple_types_compatible_p_1): Compare record
11384         and union type members properly.
11385
11386 2011-05-30  Richard Guenther  <rguenther@suse.de>
11387
11388         PR tree-optimization/49210
11389         * ipa-split.c (split_function): Care for the case where the call
11390         result is not trivially convertible to the result holding variable.
11391
11392 2011-05-30  Richard Guenther  <rguenther@suse.de>
11393
11394         PR tree-optimization/49218
11395         * tree-vrp.c (adjust_range_with_scev): Properly check whether
11396         overflow occured.
11397
11398 2011-05-30  Richard Guenther  <rguenther@suse.de>
11399
11400         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
11401         New function split out from ...
11402         (forward_propagate_into_gimple_cond): ... here.  Adjust.
11403         (forward_propagate_into_cond): Likewise.
11404         (forward_propagate_comparison): Also propagate into
11405         comparisons on assignment RHS.  Change return value to
11406         behave similar to forward_propagate_into_cond.
11407         (tree_ssa_forward_propagate_single_use_vars): Handle
11408         strict-overflow warnings properly for forward_propagate_comparison.
11409
11410 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11411
11412         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
11413         from plugin linker.
11414         * configure: Regenerate.
11415
11416 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
11417
11418         PR tree-optimization/49199
11419         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
11420         non-reduction operands are either defined in the loop or by induction.
11421
11422 2011-05-29  Xinliang David Li  <davidxl@google.com>
11423
11424         * opts-global.c (handle_common_deferred_options): Handle new options.
11425         * passes.c (register_one_dump_file): Call register_pass_name.
11426         (execute_one_pass): Check explicit enable/disable flag.
11427         (passr_hash): New function.
11428         (passr_eq): Ditto.
11429         (register_pass_name): Ditto.
11430         (get_pass_by_name): Ditto.
11431         (pass_hash): Ditto.
11432         (pass_eq): Ditto.
11433         (enable_pass): Ditto.
11434         (disable_pass): Ditto.
11435         (is_pass_explicitly_enabled_or_disabled): Ditto.
11436
11437 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
11438
11439         * config/i386/i386.md (*movoi_internal_avx): Use
11440         standard_sse_constant_opcode for alternative 0.
11441         (*movti_internal_sse): Ditto.
11442         (*movti_internal_rex64): Use standard_sse_constant_opcode for
11443         alternative 2.
11444         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
11445         sselog1 type moves.
11446         (*movsi_internal): Ditto.
11447         (*movdi_internal): Ditto.  Add ssecvt type moves.
11448
11449 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
11450
11451         PR target/48830
11452         * rtlanal.c (simplify_subreg_regno): Adjust comment.
11453
11454 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
11455
11456         PR rtl-optimization/49095
11457         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
11458         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
11459
11460 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
11461
11462         PR target/43995
11463         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
11464         recurse_p argument.  Only follow register copies if it is set,
11465         and prevent mips_find_pic_call_symbol from recursing.
11466         (mips_find_pic_call_symbol): Add a recurse_p argument.
11467         Pass it to mips_pic_call_symbol_from_set.
11468         (mips_annotate_pic_calls): Update accordingly.
11469
11470 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
11471
11472         * emit-rtl.c (try_split): Use a loop to search for
11473         NOTE_INSN_CALL_ARG_LOCATIONs.
11474
11475 2011-05-29  Richard Guenther  <rguenther@suse.de>
11476
11477         PR tree-optimization/49217
11478         * ipa-pure-const.c (propagate_pure_const): Fix typos.
11479
11480 2011-05-28  Jan Hubicka  <jh@suse.cz>
11481
11482         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
11483         length.
11484         (string_slot_free): Remove
11485         (create_output_block): Initialize obstack.
11486         (destroy_output_block): Free obstack.
11487         (lto_string_index): Add PERSISTENT parameter; do not duplicate
11488         the string unless it needs to be added into the hash.
11489         (lto_output_string_with_length): Add persistent attribute;
11490         handle NULL strings.
11491         (lto_output_string): Add PERSISTENT parameter.
11492         (output_string_cst, output_identifier): Simplify.
11493         (lto_output_location_bitpack): Update.
11494         (lto_output_builtin_tree): Update.
11495         * lto-streamer.h (struct output_block): Add obstack.
11496         (lto_output_string, lto_output_string_with_length): Remove
11497         declarations; functions are static now.
11498
11499 2011-05-28  Jan Hubicka  <jh@suse.cz>
11500
11501         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
11502         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
11503         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
11504         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
11505         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
11506         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
11507         unpack_ts_decl_with_vis_value_fields,
11508         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
11509         lto_get_builtin_tree): Use enum and variable length i/o.
11510         * basic-block.h (profile_status_d): Add PROFILE_LAST.
11511         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
11512         New functions.
11513         (bp_pack_enum, bp_unpack_enum): New macros.
11514
11515 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
11516
11517         * genrecog.c: Remove redundant forward declarations.
11518
11519 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
11520
11521         * config.gcc: Deprecate mips*-*-openbsd*.
11522
11523 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
11524
11525         PR bootstrap/49195
11526         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
11527         for match_op_dup.
11528
11529 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
11530
11531         PR middle-end/48981
11532         * gengtype.c (vec_prefix_type): New function.
11533         (note_def_vec): Use vec_prefix_type and change the length
11534         attribute to be based on the prefix.
11535         * vec.c: Include coretypes.h before vec.h.
11536         (struct vec_prefix): Remove.
11537         (vec_gc_p_reserve): Change the offsetof to sizeof.
11538         (vec_gc_p_reserve_exact): Likewise.
11539         (vec_heap_p_reserve): Likewise.
11540         (vec_heap_p_reserve_exact): Likewise.
11541         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
11542         (vec_stack_p_reserve): Change the offsetof to sizeof.
11543         (vec_stack_p_reserve_exact): Likewise.
11544         * vec.h (struct vec_prefix): New struct definition.
11545         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
11546         (VEC_T_GTY(T,B)): Likewise.
11547         (DEF_VEC_FUNC_P(T)): Use prefix field.
11548         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
11549         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
11550
11551 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11552
11553         PR tree-optimization/46728
11554         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
11555         (powi_as_mults): Add gimple_set_location.
11556         (build_and_insert_call): New.
11557         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
11558         0.5, 0.25, 0.75, 1./3., or 1./6.
11559
11560 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
11561
11562         * doc/contrib.texi: Update copyright years.
11563         (Contributors): Add Zdenek Sojka.
11564
11565 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
11566
11567         * c-decl.c (c_push_function_context): Copy the current statement
11568         list stack.
11569         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
11570         (finish_struct): Call building_stmt_list_p instead of checking
11571         cur_stmt_list.
11572         * c-parser.c (c_parser_postfix_expression): Likewise.
11573         * c-typeck.c (c_end_compound_stmt): Likewise.
11574         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
11575         * tree-iterator.c (stmt_list_cache): Change to a VEC.
11576         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
11577         (free_stmt_list): Likewise.
11578         * tree.h (struct tree_statement_list): Include typed_tree instead
11579         of tree_common.
11580         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
11581         as TS_TYPED instead of TS_COMMON.
11582
11583 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11584             Uros Bizjak  <ubizjak@gmail.com>
11585
11586         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
11587         (HAVE_AS_IX86_TLSGDPTL): Define.
11588         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
11589         (HAVE_AS_IX86_TLSLDMPLT): Define.
11590         * configure: Regenerate.
11591         * config.in: Regenerate.
11592         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
11593         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
11594         TARGET_SUN_TLS, use @tlsgdplt or @plt.
11595         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
11596         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
11597         @tlsldmplt or @plt.
11598         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
11599
11600 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
11601
11602         * sched-int.h (struct _haifa_deps_insn_data): New members cond
11603         and reverse_cond.
11604         (INSN_COND, INSN_REVERSE_COND): New macros.
11605         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
11606         once.
11607         (sched_get_condition_with_rev): Cache the results, and look them up
11608         if possible.
11609         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
11610         are clobbered by the current insn.
11611         * target.def (exposed_pipline): New sched data hook.
11612         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
11613         * doc/tm.texi: Regenerate.
11614
11615 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11616
11617         PR tree-optimization/49170
11618         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
11619         sincos or cexp.
11620
11621 2011-05-27  Richard Guenther  <rguenther@suse.de>
11622
11623         PR middle-end/49189
11624         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
11625         of comparisons.
11626
11627 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
11628
11629         * haifa-sched.c (sched_scan_info): Remove.
11630         (schedule_block): Call sched_extend_luids rather than sched_init_luids
11631         with NULL args.
11632         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
11633         Remove functions.
11634         (sched_scan): Remove.
11635         (sched_extend_luids): Renamed from luids_extend_insn and no longer
11636         static.  All callers changed.
11637         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
11638         static.  All callers changed.
11639         (sched_init_luids): Remove all arguments except the first.  All
11640         callers changed.  Don't use sched_scan.
11641         (haifa_init_h_i_d): Likewise.
11642         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
11643         manually rather than using sched_init_luids.  Likewise with
11644         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
11645         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
11646         rather than sched_init_luids with NULL args.
11647         * sel-sched-ir.c (new_insns): Remove variable.
11648         (sched_scan): New static function, previously in haifa-sched.c.  Remove
11649         all arguments but the first two; all callers changed.
11650         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
11651         rather than sched_init_luids.
11652         (sel_init_bbs): Remove second argument.  All callers changed.
11653         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
11654         with NULL arguments.
11655         (create_insn_rtx_from_pattern): Likewise.
11656         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
11657         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
11658         (sched_init_insn_luid, sched_extend_luids): Declare.
11659         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
11660         declarations.
11661
11662 2011-05-27  Richard Guenther  <rguenther@suse.de>
11663
11664         PR middle-end/49177
11665         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
11666         A CMP B ? (T) true : (T) false for non-integral types T again.
11667
11668 2011-05-27  Jan Hubicka  <jh@suse.cz>
11669
11670         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
11671         so 0 means NULL string.
11672         (lto_output_string_with_length): ... here.
11673         (lto_output_string, output_string_cst, output_identifier): Update
11674         handling of NULL strings.
11675         (lto_output_location_bitpack): New function.
11676         (lto_output_location): Use it.
11677         (lto_output_tree_ref): Use output_record_start.
11678         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
11679         len values.
11680         * lto-streamer-in.c (string_for_index): Break out from ...; offset
11681         values by 1.
11682         (input_string_internal): ... here;
11683         (input_string_cst, input_identifier, lto_input_string): Update handling
11684         of NULL strings.
11685         (lto_input_location_bitpack): New function
11686         (lto_input_location): Use it.
11687         (unpack_ts_type_common_value_fields): Pack align & alias in var len
11688         values.
11689         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
11690         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
11691         (bp_pack_value): Sanity check the value range.
11692         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
11693         New functions.
11694         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
11695         New functions.
11696
11697 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
11698
11699         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
11700         call_arg_location instructions down the floor.
11701
11702 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
11703
11704         PR rtl-optimization/49154
11705         * ira.c (setup_pressure_classes): Process class without sublcasses
11706         as a candidate for pressure classes.
11707
11708 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
11709
11710         PR rtl-optimization/48575
11711         * genrecog.c (position_type): New enum.
11712         (position): New structure.
11713         (decision): Use position structure instead of a string.
11714         (root_pos, peep2_insn_pos_list): New variables.
11715         (next_position, compare_positions): New functions.
11716         (new_decision): Use position structures instead of strings.
11717         (maybe_both_true): Likewise.
11718         (change_state): Likewise.
11719         (write_tree): Likewise.
11720         (make_insn_sequence): Likewise.
11721
11722 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11723
11724         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
11725         TS_BASE instead of TS_COMMON.
11726         (find_decls_types_r): Check for TS_TYPED structure before looking at
11727         TREE_TYPE.
11728         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
11729         Add chain field.
11730         (BLOCK_CHAIN): Use new chain field.
11731
11732 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
11733
11734         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
11735         moves expensive on Power7 also.
11736
11737 2011-05-26  Richard Guenther  <rguenther@suse.de>
11738
11739         * fold-const.c (fold_unary_loc): Remove bogus code.
11740
11741 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11742
11743         * tree.h (struct tree_identifier): Inherit from tree_typed, not
11744         tree_common.
11745         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
11746         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
11747         TS_BASE instead of TS_COMMON.
11748         * varasm.c (assemble_name): Remove assert.
11749
11750 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
11751
11752         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
11753         substituted first.
11754         * libgcc-std.ver: Delete file.
11755
11756 2011-05-26  Richard Guenther  <rguenther@suse.de>
11757
11758         PR tree-optimization/48702
11759         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
11760         only when we know the base address is within bounds.
11761         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
11762         assume the base address of TARGET_MEM_REFs is in bounds.
11763
11764 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11765
11766         PR target/49099
11767         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
11768         declaration in TARGET_SOLARIS.
11769
11770 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
11771
11772         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
11773         The instruction is then expanded explicitly.
11774         (supported_compare): Callable instruction.
11775         (compare): Likewise.
11776
11777 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
11778
11779         PR c++/49165
11780         * gimplify.c (shortcut_cond_r): Don't special case
11781         COND_EXPRs if they have void type on one of their arms.
11782
11783 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
11784
11785         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
11786         to reduce duplication, and to achieve a slightly more logical order
11787         of operations.
11788
11789 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
11790
11791         PR tree-optimization/49161
11792         * tree-vrp.c (struct case_info): New type.
11793         (compare_case_labels): Sort case_info structs instead of
11794         trees, and not primarily by CASE_LABEL uids but by
11795         label_for_block indexes.
11796         (find_switch_asserts): Put case labels into struct case_info
11797         array instead of TREE_VEC, adjust sorting, compare label_for_block
11798         values instead of CASE_LABELs.
11799
11800 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11801
11802         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
11803         ("orndi3_neon"): Likewise.
11804         ("bic<mode>3_neon"): Likewise.
11805
11806 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
11807
11808         PR tree-optimization/49038
11809         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
11810         Ensure at least one epilogue iteration if required by data
11811         accesses with gaps.
11812         * tree-vectorizer.h (struct _loop_vec_info): Add new field
11813         to mark loops that require peeling for gaps.
11814         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
11815         (vect_get_known_peeling_cost): Take peeling for gaps into
11816         account.
11817         (vect_transform_loop): Generate epilogue if required by data
11818         access with gaps.
11819         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
11820         loop as requiring an epilogue if there are gaps in the end of
11821         the strided group.
11822
11823 2011-05-25  Ian Lance Taylor  <iant@google.com>
11824
11825         * godump.c (go_format_type): Output the first field with a usable
11826         Go type, if any.
11827
11828 2011-05-25  Ian Lance Taylor  <iant@google.com>
11829
11830         * godump.c (go_format_type): Check for invalid type names, pointer
11831         target types, and struct field types.
11832
11833 2011-05-25  Jason Merrill  <jason@redhat.com>
11834
11835         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
11836
11837 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
11838
11839         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
11840
11841 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11842
11843         * config/i386/i386.md (*movqi_extv_1)): Put back
11844         "register_operand" check in "type" calculation.
11845         (*movqi_extzv_2): Likewise.
11846
11847 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11848
11849         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
11850
11851 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
11852
11853         PR bootstrap/49160
11854         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
11855         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
11856         __divxc3, __divtc3): Wrap definitions in #ifndef.
11857
11858 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11859
11860         PR target/49142
11861         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
11862         "register_operand" check and replace q_regs_operand with
11863         QIreg_operand in "type" calculation.
11864         (*movqi_extv_1): Likewise.
11865         (*movqi_extzv_2_rex64): Likewise.
11866         (*movqi_extzv_2): Likewise.
11867
11868         * config/i386/predicates.md (QIreg_operand): New.
11869
11870 2011-05-25  Richard Guenther  <rguenther@suse.de>
11871
11872         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
11873         type-based offset disambiguation, streamline MEM_REF and
11874         TARGET_MEM_REF handling.
11875
11876 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11877
11878         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
11879         (bdesc_special_args): Add pause intrinsic.
11880
11881         * config/i386/i386.md (UNSPEC_PAUSE): New.
11882         (pause): Likewise.
11883         (*pause): Likewise.
11884         * config/i386/ia32intrin.h (__pause): Likewise.
11885
11886         * doc/extend.texi (X86 Built-in Functions): Add documentation for
11887         pause intrinsic.
11888
11889 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11890
11891         PR tree-optimization/46728
11892         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
11893         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
11894
11895 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
11896
11897         * tree.h (struct tree_exp): Inherit from struct tree_typed.
11898         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
11899         instead of TS_COMMON.
11900
11901 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
11902
11903         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
11904         LIBGCC2_GNU_PREFIX is defined.
11905         (__N): New macro.
11906         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
11907         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
11908         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
11909         __clz_tab): Define using __N.
11910         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
11911         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
11912         * target.def (libfunc_gnu_prefix): New hook.
11913         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
11914         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
11915         * doc/tm.texi: Regenerate.
11916         * system.h (LIBGCC2_GNU_PREFIX): Poison.
11917         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
11918         account.
11919         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
11920         (init_optabs): Likewise for the bswap libfuncs.
11921         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
11922         and divide.
11923         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
11924         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
11925         * libgcc-std.ver: Remove.
11926         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
11927         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
11928         libgcc-std.ver.
11929         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
11930         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
11931         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
11932         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
11933         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
11934         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
11935         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
11936         * config/fixed-bit.h (FIXED_OP): Define differently depending on
11937         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
11938         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
11939
11940 2011-05-25  Jan Hubicka  <jh@suse.cz>
11941
11942         * lto-streamer-out.c (output_record_start): Use lto_output_enum
11943         (lto_output_tree): Use output_record_start.
11944         * lto-streamer-in.c (input_record_start): Use lto_input_enum
11945         (lto_get_pickled_tree): Use input_record_start.
11946         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
11947         (lto_value_range_error): New function.
11948         * lto-streamer.h (lto_value_range_error): Declare.
11949         (lto_output_int_in_range, lto_input_int_in_range): New functions.
11950         (lto_output_enum, lto_input_enum): New macros.
11951
11952 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
11953
11954         * common.opt (flag_stack_usage_info): New variable.
11955         (-Wstack-usage): New option.
11956         * doc/invoke.texi (Warning options): Document -Wstack-usage.
11957         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
11958         <OPT_fstack_usage>: Likewise.
11959         * toplev.c (output_stack_usage): Handle -Wstack-usage.
11960         * calls.c (expand_call): Test flag_stack_usage_info variable instead
11961         of flag_stack_usage.
11962         (emit_library_call_value_1): Likewise.
11963         * explow.c (allocate_dynamic_stack_space): Likewise.
11964         * function.c (instantiate_virtual_regs ): Likewise.
11965         (prepare_function_start): Likewise.
11966         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
11967         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
11968         * config/arm/arm.c (arm_expand_prologue): Likewise.
11969         (thumb1_expand_prologue): Likewise.
11970         * config/avr/avr.c (expand_prologue): Likewise.
11971         * config/i386/i386.c (ix86_expand_prologue): Likewise.
11972         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
11973         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
11974         * config/mips/mips.c (mips_expand_prologue): Likewise.
11975         * config/pa/pa.c (hppa_expand_prologue): Likewise.
11976         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
11977         * config/s390/s390.c (s390_emit_prologue): Likewise.
11978         * config/sh/sh.c (sh_expand_prologue): Likewise.
11979         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
11980         * config/spu/spu.c (spu_expand_prologue): Likewise.
11981
11982 2011-05-25  Richard Guenther  <rguenther@suse.de>
11983
11984         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
11985         (gimple_canonical_types_compatible_p): Likewise.
11986
11987 2011-05-25  Jan Hubicka  <jh@suse.cz>
11988
11989         PR middle-end/49062
11990         * ipa.c (function_and_variable_visibility): Only add to same
11991         comdat group list if DECL_ONE_ONLY.
11992
11993 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
11994
11995         PR rtl-optimization/49014
11996         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
11997
11998 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
11999
12000         PR target/49128
12001         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
12002
12003 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
12004
12005         PR rtl-optimization/48757
12006         * ira-build.c (loop_with_eh_edge_p): Rename to
12007         loop_with_complex_edge_p, check edges on complexity, make function
12008         conditional.
12009         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
12010         conditional.
12011
12012 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
12013
12014         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
12015         force flag_ira_share_save_slots to 0.
12016
12017 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
12018
12019         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
12020         (vt_initialize): Set PROLOGUE_BB unconditionally.
12021         Add block comment about CFA_BASE_RTX machinery.
12022         Reset FP_CFA_OFFSET to -1 on all invalid paths.
12023         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
12024
12025 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
12026
12027         PR objc/48187
12028         * c-parser.c (c_parser_objc_class_instance_variables): More robust
12029         parsing of syntax error in ObjC instance variable lists.  In
12030         particular, avoid an infinite loop if there is a stray ']'.
12031         Updated error message.
12032
12033 2011-05-24  Ian Lance Taylor  <iant@google.com>
12034
12035         * godump.c (go_define): Don't accept a string immediately after
12036         another operand.
12037
12038 2011-05-24  Ian Lance Taylor  <iant@google.com>
12039
12040         * godump.c (struct godump_container): Add invalid_hash field.
12041         (go_format_type): Return false if type is found in invalid_hash.
12042         (go_output_typedef): Add invalid type to invalid_hash.
12043         (go_finish): Create and delete invalid_hash.
12044
12045 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12046
12047         PR tree-optimization/46728
12048         * tree-ssa-math-opts.c (powi_table): New.
12049         (powi_lookup_cost): New.
12050         (powi_cost): New.
12051         (powi_as_mults_1): New.
12052         (powi_as_mults): New.
12053         (gimple_expand_builtin_powi): New.
12054         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
12055         (gate_cse_sincos): Remove sincos/cexp restriction.
12056
12057 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12058
12059         PR target/3746
12060         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
12061         mips-tdump native.
12062         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
12063         * mips-tdump.c: Likewise.
12064
12065 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12066
12067         PR target/49128
12068         * config/i386/driver-i386.c (host_detect_local_cpu): Always
12069         add -mno-XXX.  Handle FMA.
12070
12071 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
12072
12073         PR rtl-optimization/48633
12074         * ira-build.c (loop_with_eh_edge_p): New function.
12075         (mark_loops_for_removal): Use it.
12076
12077 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
12078
12079         PR rtl-optimization/48971
12080         * ira.c (setup_pressure_classes): Don't check register move cost
12081         for classes with one registers.  Don't add pressure class if there
12082         is a pressure class with the same available hard registers.
12083         Check contains_reg_of_mode.  Fix a typo in collecting
12084         temp_hard_regset.  Ignore hard registers not belonging to a class.
12085
12086 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
12087
12088         PR target/49133
12089         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
12090
12091 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
12092             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12093
12094         PR gcov-profile/48845
12095         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
12096
12097 2011-05-24  Richard Guenther  <rguenther@suse.de>
12098
12099         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
12100         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
12101         (gimple_types_compatible_p_1): Adjust.
12102         (iterative_hash_canonical_type): Do not bother about complete vs.
12103         incomplete types.
12104         (gimple_canonical_types_compatible_p): Likewise.
12105
12106 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12107
12108         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
12109
12110 2011-05-24  Richard Guenther  <rguenther@suse.de>
12111
12112         PR bootstrap/49078
12113         * gimple.c (gimple_register_canonical_type): Revert
12114         previous change.
12115         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
12116         does not for a tree for the case where it matters.  Cache
12117         pointer-type alias-sets.
12118
12119 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
12120
12121         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
12122         (OBJS): Remove options.o, opts-common.o and prefix.o.
12123         (OBJS-libcommon-target): New.
12124         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
12125         (BACKEND): Include libcommon-target.a.
12126         (MOSTLYCLEANFILES): Include libcommon-target.a.
12127         (libcommon-target.a): New.
12128         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
12129         prefix.o.
12130
12131 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
12132
12133         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
12134         parts of output shared with the driver.
12135         * optc-gen.awk: Don't generate parts of output not shared with the
12136         driver.
12137         * opth-gen.awk: Remove GCC_DRIVER conditionals.
12138         * doc/options.texi (SourcerInclude): Mention options-save.c.
12139         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
12140         (OBJS): Add options-save.o.
12141         (options-save.c, options-save.o): New.
12142         (options.o): Update dependencies.
12143         (gcc-options.o): Remove.
12144         (mostlyclean): Remove options-save.c.
12145
12146 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12147
12148         PR debug/49032
12149         * dbxout.c: Include cgraph.h.
12150         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
12151         and without value expr, return NULL if no varpool node exists for
12152         it or if it is not needed.
12153         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
12154
12155         PR c/49120
12156         * c-decl.c (start_decl): Convert expr to void_type_node.
12157
12158 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
12159
12160         PR rtl-optimization/48826
12161         * emit-rtl.c (try_split): When splitting a call that is followed
12162         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
12163
12164 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12165
12166         * cfgexpand.c (expand_debug_expr): For unused non-addressable
12167         parameters passed in memory prefer using DECL_INCOMING_RTL over
12168         the pseudos it will be copied into.
12169
12170 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
12171
12172         PR target/47315
12173         * config/i386/i386.c (ix86_option_override_internal): Save the
12174         initial options after checking vzeroupper.
12175
12176 2011-05-23  David Li  <davidxl@google.com>
12177
12178         PR tree-optimization/48988
12179         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
12180         Initialize has_valid_pred for each pred chain.
12181
12182 2011-05-23  Richard Guenther  <rguenther@suse.de>
12183
12184         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
12185         (iterative_hash_gimple_type): Always hash type names.
12186
12187 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
12188
12189         * c-typeck.c (build_function_call_vec): Tweak call to
12190         check_function_arguments.
12191
12192 2011-05-23  Richard Guenther  <rguenther@suse.de>
12193
12194         PR tree-optimization/49115
12195         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
12196         is not necessarily carried out, do not claim it kills the ref.
12197         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
12198
12199 2011-05-23  Richard Guenther  <rguenther@suse.de>
12200
12201         PR middle-end/15419
12202         * builtins.c (fold_builtin_memory_op): Be less restrictive about
12203         what pointer types we accept for folding.
12204
12205 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12206
12207         * gthr-gnat.c: Remove.
12208         * gthr-gnat.h: Remove.
12209         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
12210         * config/t-freebsd (LIB2ADDEH): Likewise.
12211         * config/t-linux (LIB2ADDEH): Likewise.
12212         * config/t-sol2 (LIB2ADDEH): Likewise.
12213         * config/ia64/t-vms (LIB2ADDEH): Likewise.
12214         * configure.ac (target_thread_file): Remove gnat handling.
12215         * configure: Regenerate.
12216         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
12217
12218 2011-05-23  Tristan Gingold  <gingold@adacore.com>
12219             Eric Botcazou  <ebotcazou@adacore.com>
12220
12221         * gcov.c (create_file_names): If no object directory is specified,
12222         keep the directory of the file.
12223
12224 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12225
12226         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
12227         * configure: Regenerate.
12228
12229 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12230
12231         PR middle-end/48973
12232         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
12233         failed and the comparison has a single bit signed type, use
12234         constm1_rtx instead of const1_rtx for true value.
12235         (do_store_flag): If ops->type is single bit signed type, disable
12236         signel bit test optimization and pass -1 instead of 1 as last
12237         parameter to emit_store_flag_force.
12238
12239 2011-05-23  Tom de Vries  <tom@codesourcery.com>
12240
12241         PR target/45098
12242         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
12243         function.
12244         (infer_loop_bounds_from_undefined): Use new function.
12245
12246 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
12247
12248         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
12249         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
12250         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
12251         and -O0 otherwise.
12252         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
12253
12254 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12255
12256         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
12257         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
12258         returns true.
12259
12260 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
12261
12262         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
12263
12264 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12265
12266         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
12267         UNSPEC_MOVE_PIC pattern.
12268
12269 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12270
12271         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
12272         (sparc-*-rtems*): Likewise.
12273         (sparc64-*-elf*): Likewise.
12274         (sparc64-*-rtems*): Likewise.
12275         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
12276         * config/sparc/t-crtin: New file.
12277         * config/sparc/t-sol2 (crti.o): Delete rule.
12278         (crtn.o): Likewise.
12279         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
12280         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
12281         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
12282         (ENDFILE_SPEC): Add crtn.o.
12283
12284 2011-05-22  Tom de Vries  <tom@codesourcery.com>
12285
12286         PR middle-end/48689
12287         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
12288         CODE_CONTAINS_STRUCT (TS_COMMON).
12289
12290 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
12291
12292         PR middle-end/49029
12293         * expmed.c (extract_fixed_bit_field): Test whether target can be used
12294         only after deciding which mode to use.
12295
12296 2011-05-22  Tom de Vries  <tom@codesourcery.com>
12297
12298         PR target/45098
12299         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
12300         for call to get_shiftadd_cost.
12301
12302 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
12303
12304         PR target/49104
12305         * config/i386/cpuid.h (bit_MMXEXT): New define.
12306
12307 2011-05-22  Nick Clifton  <nickc@redhat.com>
12308
12309         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
12310         initialisation of non-existant args[2] element.  Use args[] array
12311         not arg[] array to pass arguments to build_function_type_list.
12312
12313 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
12314
12315         PR tree-optimization/49087
12316         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
12317
12318 2011-05-21  Jason Merrill  <jason@redhat.com>
12319
12320         PR c++/49092
12321         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
12322         static storage duration.
12323
12324 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
12325
12326         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
12327         frame pointer.
12328
12329 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
12330
12331         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
12332         false if there are call-saved registers here...
12333         (sparc_can_use_return_insn_p): ...but here instead.
12334         (save_or_restore_regs): Fix thinko.
12335         (sparc_expand_prologue): Use current_function_is_leaf.
12336         (sparc_frame_pointer_required): Likewise.
12337
12338 2011-05-21  Nick Clifton  <nickc@redhat.com>
12339
12340         PR target/49098
12341         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
12342
12343 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
12344
12345         * gengtype.c (walk_type): Implemented "atomic" GTY option.
12346         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
12347
12348 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
12349
12350         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
12351         * optc-gen.awk: Move common code to opt-read.awk.
12352         * opth-gen.awk: Likewise.
12353         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
12354
12355 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
12356
12357         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
12358
12359 2011-05-20  Tom de Vries  <tom@codesourcery.com>
12360
12361         PR target/45098
12362         * tree-ssa-loop-ivopts.c: Include expmed.h.
12363         (get_shiftadd_cost): New function.
12364         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
12365
12366 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
12367
12368         PR bootstrap/49086
12369         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
12370         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
12371
12372 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
12373
12374         * Makefile.in: Update comment referring to $(OBJS-common).
12375
12376 2011-05-20  Ian Lance Taylor  <iant@google.com>
12377
12378         * godump.c (go_output_typedef): Put enum constants in the macro
12379         hash table to avoid duplicate Go const definitions.
12380
12381 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
12382
12383         * Makefile.in (LIBDEPS): Add libcommon.a.
12384         (LIBS): Likewise.
12385         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
12386         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
12387         pretty-print.o and version.o.
12388         (OBJS-libcommon): New.
12389         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
12390         (BACKEND): Add libcommon.a.
12391         (MOSTLYCLEANFILES): Likewise.
12392         (libcommon.a): New.
12393         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
12394         (cpp$(exeext)): Likewise.
12395         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
12396         pretty-print.o and input.o.
12397         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
12398         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
12399         (errors.o): Remove.
12400         (mips-tfile): Don't explicitly use version.o.
12401         (mips-tdump): Likewise.
12402         (gcov.o): Depend on $(DIAGNOSTIC_H).
12403         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
12404         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
12405         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
12406         * gcov-dump.c: Include intl.h and diagnostic.h.
12407         (main): Initialize diagnostics.
12408         * gcov.c: Include diagnostic.h.
12409         (fnotice): Remove.
12410         (main): Initialize diagnostics.
12411         * lto-wrapper.c: Include diagnostic.h.
12412         (main): Initialize diagnostics.
12413
12414 2011-05-20  Michael Matz  <matz@suse.de>
12415
12416         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
12417
12418 2011-05-20  Michael Matz  <matz@suse.de>
12419             Richard Guenther  <rguenther@suse.de>
12420
12421         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
12422         use lto_streamer_cache_append directly instead of returning a VEC.
12423         (preload_common_node): Remove.
12424         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
12425         track seen nodes.
12426         (lto_streamer_cache_create): Call lto_preload_common_nodes.
12427
12428 2011-05-20  Richard Guenther  <rguenther@suse.de>
12429
12430         PR tree-optimization/49079
12431         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
12432         MEM_REFs correctly for the trailing array access detection.
12433         Special case constants the same way as decls for overall size
12434         constraining.
12435
12436 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
12437
12438         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
12439         argument expansion.
12440
12441 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
12442
12443         PR tree-optimization/49073
12444         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
12445         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
12446         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
12447
12448 2011-05-20  Richard Guenther  <rguenther@suse.de>
12449
12450         PR middle-end/48849
12451         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
12452         of pointer types the same way the middle-end does.
12453
12454 2011-05-20  Richard Guenther  <rguenther@suse.de>
12455
12456         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
12457         or pointer-to chains.  Delay all fixup to uniquify_nodes.
12458
12459 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
12460
12461         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
12462         (fma4_fmaddsub): Likewise
12463
12464 2011-05-19  Jan Hubicka  <jh@suse.cz>
12465
12466         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
12467         (GIMPLE_TYPE_PAIR_SIZE): New macro.
12468         (type_pair_cache): New static var.
12469         (lookup_type_pair): Use fixed sized custom hash; make inline.
12470         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
12471         calls of lookup_type_pair.
12472         (print_gimple_types_stats): Remove cache stats.
12473         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
12474         and gtc_ob.
12475
12476 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
12477
12478         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
12479         when TARGET_RDRND is active.
12480         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
12481         Generate dummy SImode target register when target is NULL.
12482
12483 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
12484
12485         * config/arm/arm-fpus.def: New.
12486         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
12487         arm-fpus.def.
12488         * config/arm/arm-tables.opt: Regenerate.
12489         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
12490         (arm_option_override): Don't decode FPU name to string here.
12491         * config/arm/arm.opt (mfpu=): Use Enum.
12492         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
12493         Update dependencies.
12494
12495 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
12496
12497         * collect2.c: Include diagnostic.h.
12498         (fatal_perror, fatal, error, fancy_abort): Remove.
12499         (main): Set progname.  Call xmalloc_set_program_name and
12500         diagnostic_initialize.
12501         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
12502         scan_libraries, resolve_lib_name): Call fatal_error instead of
12503         fatal and fatal_perror.
12504         * collect2.h (error, fatal, fatal_perror): Don't declare.
12505         * tlink.c: Include diagnostic-core.h.
12506         (recompile_files): Call fatal_error instead of fatal_perror.
12507         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
12508         pretty-print.o and input.o.
12509         (collect2.o, tlink.o): Update dependencies.
12510
12511 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12512
12513         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
12514
12515 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12516
12517         PR target/40483
12518         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
12519         COMDAT group syntax, both SPARC and x86 variants.
12520         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
12521         * configure: Regenerate.
12522         * config/sol2.h (TARGET_SOLARIS): Define.
12523         (PUSHSECTION_FORMAT): Remove.
12524         (SECTION_NAME_FORMAT): Define.
12525         * config/sol2.c: Include hashtab.h.
12526         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
12527         expansion, using SECTION_NAME_FORMAT.
12528         (solaris_comdat_htab): New variable.
12529         (struct comdat_entry): Define.
12530         (comdat_hash): New function.
12531         (comdat_eq): New function.
12532         (solaris_elf_asm_comdat_section): New function.
12533         (solaris_define_comdat_signature): New function.
12534         (solaris_code_end): New function.
12535         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
12536         (solaris_code_end): Declare.
12537         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
12538         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
12539         solaris_code_end.
12540         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
12541         Remove ATTRIBUTE_UNUSED.
12542         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
12543         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
12544         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
12545         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
12546         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
12547         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
12548         (PUSHSECTION_FORMAT): Remove.
12549         (SECTION_NAME_FORMAT): Redefine.
12550
12551 2011-05-19  Kai Tietz  <ktietz@redhat.com>
12552
12553         * tree-cfg.c (verify_gimple_assign_binary): Barf on
12554         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
12555         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
12556
12557 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
12558             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12559
12560         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
12561
12562 2011-05-19  Richard Guenther  <rguenther@suse.de>
12563
12564         PR middle-end/48985
12565         * tree-object-size.c (addr_object_size): If the pointed-to
12566         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
12567
12568 2011-05-19  Richard Guenther  <rguenther@suse.de>
12569
12570         * gimple.c (gimple_types_compatible_p_1): Compare names of
12571         the types themselves.
12572         (iterative_hash_gimple_type): And hash them that way.
12573         (gimple_register_type_1): If we register a main variant properly
12574         initialize the leader to ourselves.
12575
12576 2011-05-19  Tom de Vries  <tom@codesourcery.com>
12577
12578         PR target/45098
12579         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
12580         get_loop_invariant_expr_id.
12581         (get_loop_invariant_expr_id): Use get_expr_id.
12582         (parm_decl_cost): New function.
12583         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
12584         Improve bound cost estimation.  Use different inv_expr_id for elim and
12585         express cases.
12586
12587 2011-05-19  Tom de Vries  <tom@codesourcery.com>
12588
12589         PR target/45098
12590         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
12591         cost_base.cost == 0.
12592
12593 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
12594
12595         PR target/49002
12596         * config/i386/sse.md
12597         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
12598         load cast.
12599
12600 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
12601
12602         PR tree-optimization/49039
12603         * tree-vrp.c (extract_range_from_binary_expr): For
12604         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
12605         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
12606
12607 2011-05-18  Tom de Vries  <tom@codesourcery.com>
12608
12609         PR target/45098
12610         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
12611
12612 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
12613
12614         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
12615         (*tls_global_dynamic_64): Ditto.
12616         (*tls_local_dynamic_base_32_gnu): Ditto.
12617         (*tls_local_dynamic_base_64): Ditto.
12618         (tls_initial_exec_64_sun): Ditto.
12619
12620 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
12621
12622         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
12623         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
12624         bf592-none.
12625         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
12626         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
12627         * config/bfin/bfin.c (bfin_cpus): Add bf592.
12628         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
12629         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
12630         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
12631         * config/bfin/elf.h (LIB_SPEC): Add bf592.
12632
12633 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
12634
12635         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
12636         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
12637         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
12638         target_thread_pointer, arm_structure_size_boundary, struct
12639         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
12640         struct abi_name, arm_all_abis): Remove.
12641         (arm_option_override) Don't process most enumerated option values here.
12642         Don't process target_fpe_name here.  Work with integer not string for
12643         structure size boundary; use separate diagnostics for each case.
12644         * config/arm/arm.h (enum float_abi_type, enum
12645         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
12646         to arm-opts.h.
12647         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
12648         arm_structure_size_boundary): Remove.
12649         * config/arm/arm.opt (mabi=): Use Enum and Init.
12650         (arm_abi_type): New Enum and EnumValue entries.
12651         (mfloat-abi=): Use Enum and Init.
12652         (float_abi_type): New Enum and EnumValue entries.
12653         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
12654         (mfp16-format=): Use Enum and Init.
12655         (arm_fp16_format_type): New Enum and EnumValue entries.
12656         (mstructure-size-boundary=): Use UInteger and Init.
12657         (mtp=): Use Enum and Init.
12658         (arm_tp_type): New Enum and EnumValue entries.
12659
12660 2011-05-18  Richard Guenther  <rguenther@suse.de>
12661
12662         PR tree-optimization/49018
12663         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
12664         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
12665         gimple_has_side_effects.
12666
12667 2011-05-18  Richard Guenther  <rguenther@suse.de>
12668
12669         * gimple.c (gimple_register_type_1): New function, split out from ...
12670         (gimple_register_type): ... here.  Avoid infinite recursion.
12671
12672 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
12673
12674         PR tree-optimization/41881
12675         * tree-vectorizer.h (struct _loop_vec_info): Add new field
12676         reduction_chains along with a macro for its access.
12677         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
12678         (destroy_loop_vec_info): Free reduction chains.
12679         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
12680         (vect_is_slp_reduction): New function.
12681         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
12682         (vect_create_epilog_for_reduction): Support SLP reduction chains.
12683         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
12684         definition types for reduction chains.
12685         (vect_supported_load_permutation_p): Don't allow permutations for
12686         reduction chains.
12687         (vect_analyze_slp_instance): Support reduction chains.
12688         (vect_analyze_slp): Try to build SLP instance from reduction chains.
12689         (vect_get_constant_vectors):  Handle reduction chains.
12690         (vect_schedule_slp_instance): Mark the first statement of the
12691         reduction chain as reduction.
12692
12693 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
12694
12695         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
12696         names for group elements access.
12697         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
12698         reduction chains as well.  Remove data reference and interleaving
12699         related words from the fields names.
12700         * tree-vect-loop.c (vect_transform_loop): Use new names for group
12701         elements access.
12702         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
12703         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
12704         vect_update_interleaving_chain, vect_same_range_drs,
12705         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
12706         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
12707         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
12708         vect_analyze_group_access, vect_analyze_data_ref_access,
12709         vect_create_data_ref_ptr, vect_transform_strided_load,
12710         vect_record_strided_load_vectors): Likewise.
12711         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
12712         vect_model_load_cost, vectorizable_store, vectorizable_load,
12713         vect_remove_stores, new_stmt_vec_info): Likewise.
12714         * tree-vect-slp.c (vect_build_slp_tree,
12715         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
12716
12717 2011-05-18  Richard Guenther  <rguenther@suse.de>
12718
12719         PR middle-end/48989
12720         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
12721         operand verification.
12722         (verify_gimple_assign_binary): Likewise.
12723         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
12724         to non-1-precision BOOLEAN_TYPEs.
12725
12726 2011-05-18  Tom de Vries  <tom@codesourcery.com>
12727
12728         PR target/45098
12729         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
12730
12731 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
12732
12733         PR tree-optimization/49000
12734         * tree-ssa.c (execute_update_addresses_taken): Call
12735         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
12736         be rewritten and decl has been marked for renaming, reset
12737         the debug stmt.
12738
12739 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
12740
12741         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
12742         enum_opts_set when testing if attributes have set -mfpmath=.
12743
12744 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
12745
12746         * config/mips/mips.c (mips_handle_option): Remove unused variable.
12747
12748 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
12749
12750         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
12751         info->entry with 0
12752         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
12753         id.transform_lang_insert_block with NULL.
12754
12755 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
12756
12757         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
12758         (output_fp_compare): Change args 3 and 4 to bool.
12759         (ix86_expand_call): Change arg 6 to bool.
12760         (ix86_attr_length_immediate_default): Change arg 2 to bool.
12761         (ix86_attr_length_vex_default): Change arg 3 to bool.
12762         * config/i386/i386.md: Update all uses.
12763         * config/i386/i386.c: Ditto.
12764         (ix86_flags_dependent): Change return type to bool.
12765
12766 2011-05-17  Richard Guenther  <rguenther@suse.de>
12767
12768         * gimple.c (type_hash_pair_compare): Fix comparison.
12769
12770 2011-05-17  Richard Guenther  <rguenther@suse.de>
12771
12772         * gimple.c (iterative_hash_gimple_type): Simplify singleton
12773         case some more, fix final hash value of the non-singleton case.
12774
12775 2011-05-17  Richard Guenther  <rguenther@suse.de>
12776
12777         PR bootstrap/49013
12778         Revert
12779         2011-05-16  Richard Guenther  <rguenther@suse.de>
12780
12781         * gimple.c (gimple_types_compatible_p_1): Use names of the
12782         type itself, not its main variant.
12783         (iterative_hash_gimple_type): Likewise.
12784
12785 2011-05-17  Richard Guenther  <rguenther@suse.de>
12786
12787         * gimple.c (gimple_register_canonical_type): Use the main-variant
12788         leader for computing the canonical type.
12789
12790 2011-05-17  Nick Clifton  <nickc@redhat.com>
12791
12792         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
12793         moves.
12794
12795         * config/rx/rx.md: Add peephole to remove redundant extensions
12796         after loads.
12797         (bitset_in_memory): Use rx_restricted_mem_operand.
12798         (bitinvert_in_memory): Likewise.
12799         (bitclr_in_memory): Likewise.
12800
12801 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
12802             Nick Clifton  <nickc@redhat.com>
12803
12804         * config/rx/rx.md: Add peepholes to match a register move followed
12805         by a comparison of the moved register.  Replace these with an
12806         addition of zero that does both actions in one instruction.
12807
12808 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
12809
12810         PR target/48986
12811         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
12812         predicate to allow CONST_INT.
12813         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
12814
12815 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
12816
12817         * opts-common.c (opt_enum_arg_to_value): New.
12818         * opts.h (opt_enum_arg_to_value): Declare.
12819         * config/i386/i386.opt (fpmath): Remove.
12820         (mfpmath=): Use Enum, Init and Save.
12821         (fpmath_unit): New Enum and EnumValue entries.
12822         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
12823         name for function fpmath state.
12824         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
12825         * config/i386/i386.c: Include diagnostic.h.
12826         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
12827         (ix86_target_string): Take enum fpmath_unit value instead of string.
12828         (ix86_debug_options): Update call to ix86_target_string.
12829         (ix86_option_override_internal): Don't process fpmath strings here.
12830         (x86_function_specific_save, ix86_function_specific_restore):
12831         Don't handle fpmath state specially.
12832         (ix86_function_specific_print): Pass fpmath state to
12833         ix86_target_string instead of printing in this function.
12834         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
12835         Handle enum attributes.
12836         (IX86_ATTR_ENUM, ix86_opt_enum): New.
12837         (ix86_valid_target_attribute_tree): Update option_strings
12838         handling.  Handle fpmath as enum option.
12839         (ix86_can_inline_p): Update field names for function fpmath state.
12840         (ix86_expand_builtin): Update call to ix86_target_string.
12841         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
12842         (ix86_fpmath): Remove.
12843         * config/i386/t-i386 (i386.o): Update dependencies.
12844
12845 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
12846
12847         PR preprocessor/48677
12848         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
12849         from decoded_options[0], not from itself.
12850
12851 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
12852
12853         * config/i386/constraints.md (z): New constraint.
12854         * config/i386/i386.c (c): New mode attribute.
12855         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
12856         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
12857         constraint for operand 0.
12858         (*call_vzeroupper): Ditto.
12859         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
12860         (*call_rex64_ms_sysv_vzeroupper): Ditto.
12861         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
12862         Use "lzm" constraint for operand 0.
12863         (*call_pop_vzeroupper): Ditto.
12864         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
12865         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
12866         constraint for operand 0.
12867         (*sibcall_vzeroupper): Ditto.
12868         (*sibcall_rex64_ms_sysv): Ditto.
12869         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
12870         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
12871         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
12872         (*sibcall_pop_vzeroupper): Ditto.
12873         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
12874         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
12875         mode iterator.  Use "<c>zm" constraint for operand 1.
12876         (*call_value_vzeroupper): Ditto.
12877         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
12878         for operand 1.
12879         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
12880         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
12881         *call_value_pop_1.  Use "lzm" constraint for operand 1.
12882         (*call_value_pop_vzeroupper): Ditto.
12883         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
12884         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
12885         mode iterator.  Use "Uz" constraint for operand 1.
12886         (*sibcall_value_vzeroupper): Ditto.
12887         (*sibcall_value_rex64_ms_sysv): Ditto.
12888         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
12889         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
12890         constraint for operand 1.
12891         (*sibcall_value_pop_vzeroupper): Ditto.
12892         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
12893         and "z" constraint for operand 2.
12894         (*tls_global_dynamic_32_gnu): Ditto.
12895         (*tls_local_dynamic_base_32_gnu): Ditto.
12896         (*tls_local_dynamic_base_64): Ditto.
12897         (*tls_local_dynamic_32_once): Ditto.
12898         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
12899         Update all callers.
12900         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
12901
12902 2011-05-16  Richard Guenther  <rguenther@suse.de>
12903
12904         * gimple.c (gimple_types_compatible_p_1): Use names of the
12905         type itself, not its main variant.
12906         (iterative_hash_gimple_type): Likewise.
12907
12908 2011-05-16  Richard Guenther  <rguenther@suse.de>
12909
12910         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
12911         always visit pointer target and function result and argument types.
12912
12913 2011-05-16  Jason Merrill  <jason@redhat.com>
12914
12915         PR c++/48999
12916         * tree-inline.c (copy_statement_list): Put back recursion.
12917
12918 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
12919
12920         PR target/27663
12921         PR target/41076
12922         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
12923         * config/avr/avr.md ("*ior<mode>qi.byte0",
12924         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
12925
12926 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
12927
12928         PR target/45099
12929         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
12930         register is needed for a function argument.
12931
12932 2011-05-16  Richard Guenther  <rguenther@suse.de>
12933
12934         * gimple.c (struct type_hash_pair): New type.
12935         (type_hash_pair_compare): New function.
12936         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
12937
12938 2011-05-16  Revital Eres  <revital.eres@linaro.org>
12939
12940         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
12941
12942 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
12943
12944         * config/i386/i386.md (floating point move splitters): Fix
12945         usage of standard_80387_constant_p.
12946         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
12947
12948 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
12949
12950         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
12951
12952 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
12953
12954         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
12955         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
12956         (tree_ssa_lim_finalize): Likewise.
12957
12958 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
12959
12960         * config/i386/constraint.md (Yd, Yx): New register constraints.
12961         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
12962         Yd conditional register constraint.
12963         (*movtf_internal): Use standard_sse_constant_opcode.
12964         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
12965         Yx conditional register constraint.
12966         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
12967         Yd conditional register constraint.  Use standard_sse_constant_p to
12968         check for valid SSE constants and call standard_sse_constant_opcode to
12969         output SSE insn.
12970         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
12971         constants and call standard_sse_constant_opcode to output SSE insn.
12972         * config/i386/i386.c (ix86_option_ovverride_internal): Set
12973         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
12974         optimize_size is set.
12975         (standard_sse_constant_opcode): Output conditional AVX insn templates.
12976
12977 2011-05-14  Tobias Burnus  <burnus@net-b.de>
12978
12979         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
12980
12981 2011-05-13  Martin Jambor  <mjambor@suse.cz>
12982
12983         * ipa-prop.c (ipa_cst_from_jfunc): New function.
12984         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
12985         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
12986         (evaluate_conditions_for_ipcp_clone): Removed.
12987         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
12988         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
12989         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
12990
12991 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
12992
12993         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
12994         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
12995         lieu of MAY_HAVE_DEBUG_STMTS.
12996         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
12997         debug statements if !MAY_HAVE_DEBUG_STMTS.
12998
12999 2011-05-13  Martin Thuresson  <martint@google.com>
13000
13001         PR gcov-profile/47793
13002         * libgcov.c (gcov_exit): Support relative profile paths.
13003         * doc/invoke.texi (-fprofile-dir): Update for above change.
13004
13005 2011-05-13  Richard Guenther  <rguenther@suse.de>
13006
13007         * gimple.c (gimple_canonical_types_compatible_p): Do not use
13008         type-pair caching, do not compare hashes.
13009
13010 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
13011
13012         PR middle-end/48965
13013         * tree-cfg.c (edge_to_cases_cleanup): Return true.
13014         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
13015
13016 2011-05-13  Kai Tietz  <ktietz@redhat.com>
13017
13018         * gimplify.c (gimplify_expr): Make sure operand is boolified.
13019         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
13020         compatible type for TRUTH_NOT_EXPR.
13021
13022 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
13023
13024         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
13025         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
13026         can_create_pseudo_p ().
13027
13028 2011-05-13  Richard Guenther  <rguenther@suse.de>
13029
13030         PR lto/48978
13031         * gimple.c (iterative_hash_gimple_type): Revert change in
13032         pointer target and function result and argument hashing.
13033
13034 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
13035
13036         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
13037         (*movxf_internal_nointeger): Ditto.
13038         (*movdf_internal_rex64): Ditto.
13039         (*movdf_internal): Ditto.
13040         (*movdf_internal_nointeger): Ditto.
13041         (*movsf_internal): Ditto.
13042         (sincos splitters): Use can_create_pseudo ().
13043
13044 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
13045
13046         * config/i386/i386-opts.h: New.
13047         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
13048         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
13049         ix86_section_threshold): Remove.
13050         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
13051         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
13052         OPT_mbranch_cost_.
13053         (ix86_option_override_internal): Don't decode strings for options
13054         other than -march=, -mtune= and -mfpmath=.  Don't allow for
13055         __attribute__ uses in remaining diagnostics for options with
13056         string arguments.  Don't check for integer arguments being negative.
13057         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
13058         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
13059         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
13060         ix86_branch_cost, ix86_section_threshold): Remove.
13061         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
13062         HeaderInclude.
13063         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
13064         but not Var.
13065         (masm=): Use Enum and Init.
13066         (asm_dialect): New Enum and EnumValue entries.
13067         (mbranch-cost=): Use UInteger.
13068         (mlarge-data-threshold=): Use UInteger and Init.
13069         (mcmodel=): Use Enum and Init.
13070         (cmodel): New Enum and EnumValue entries.
13071         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
13072         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
13073         mregparm=): Use UInteger.
13074         (mstringop-strategy=): Use Enum and Init.
13075         (stringop_alg): New Enum and EnumValue entries.
13076         (mtls-dialect=): Use Enum and Init.
13077         (tls_dialect): New Enum and EnumValue entries.
13078         (mabi=): Use Enum and Init.
13079         (calling_abi): New Enum and EnumValue entries.
13080         (mveclibabi=): Use Enum and Init.
13081         (ix86_veclibabi): New Enum and EnumValue entries.
13082
13083 2011-05-13  Nick Clifton  <nickc@redhat.com>
13084
13085         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
13086         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
13087
13088 2011-05-13  Kai Tietz  <ktietz@redhat.com>
13089
13090         PR middle-end/48984
13091         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
13092         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
13093         (gimple_boolify): Check for cast for boolean_type_node instead for
13094         BOOLEAN_TYPE.
13095
13096 2011-05-13  Richard Guenther  <rguenther@suse.de>
13097
13098         PR tree-optimization/48172
13099         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
13100         multiplying by number of iterations for equal step.
13101         (vect_create_cond_for_alias_checks): Likewise.
13102
13103 2011-05-13  Andreas Schwab  <schwab@redhat.com>
13104
13105         * configure.ac: Use AS_HELP_STRING throughout.
13106         * configure: Regenerate.
13107
13108 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
13109
13110         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
13111         (ix86_emit_restore_regs_using_mov): Likewise.
13112         (ix86_emit_restore_sse_regs_using_mov): Likewise.
13113
13114 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
13115
13116         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
13117         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
13118         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
13119         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
13120         RTX_OK_FOR_OLO10_P): ...here.
13121         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
13122         SYMBOLIC_CONST.
13123
13124 2011-05-12  Kai Tietz  <ktietz@redhat.com>
13125
13126         * gimplify.c (gimple_boolify): Re-boolify expression
13127         arguments even if expression type is of kind BOOLEAN_TYPE.
13128         (gimplify_boolean_expr): Removed.
13129         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
13130         and XOR. Additional take care that we keep expression's type.
13131         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
13132         of TRUTH_AND|OR|XOR_EXPR.
13133
13134 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
13135
13136         PR tree-optimization/48975
13137         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
13138         on all bbs here and free and clear ifc_bbs at the end.
13139
13140 2011-05-12  Richard Guenther  <rguenther@suse.de>
13141
13142         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
13143         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
13144         until after simple checks.
13145         (gimple_types_compatible_p): Likewise.
13146         (iterative_hash_gimple_type): Always hash pointer targets
13147         and function return and argument types.
13148         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
13149         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
13150         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
13151         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
13152         completely in the simple compare section.
13153         (gimple_register_canonical_type): Query the cache again after
13154         registering.
13155
13156 2011-05-12  Richard Guenther  <rguenther@suse.de>
13157
13158         PR tree-optimization/48172
13159         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
13160         the number of iterations from the segment size calculation.
13161         (vect_create_cond_for_alias_checks): Adjust.
13162
13163 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
13164
13165         PR debug/48967
13166         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
13167         if validate_subreg fails.
13168
13169 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
13170
13171         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
13172         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
13173         early.
13174
13175 2011-05-12  DJ Delorie  <dj@redhat.com>
13176
13177         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
13178         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
13179         created builtin into rx_builtins array.
13180         (rx_builtin_decl): New function.
13181         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
13182
13183 2011-05-12  DJ Delorie  <dj@redhat.com>
13184             Nick Clifton  <nickc@redhat.com>
13185
13186         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
13187         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
13188         (rx_is_legitimate_address): Add pre-decrement and post-increment
13189         addressing in HImode and QImode.  Fix test for out of range
13190         REG+INT addressing.
13191         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
13192         (rx_align_for_label): Test label before extracting its usage count.
13193         (rx_adjust_insn_lengths): Fix selection of insn codes.
13194         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
13195
13196 2011-05-11  Jason Merrill  <jason@redhat.com>
13197
13198         * tree.c (type_hash_canon): Use struct tree_type_non_common.
13199
13200 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
13201
13202         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
13203         reindent the subsequent block.
13204
13205 2011-05-11  Satoru Takabayashi  <satorux@google.com>
13206             Paul Pluzhnikov  <ppluzhnikov@google.com>
13207
13208         * doc/install.texi (Configuration): Document --with-linker-hash-style.
13209         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
13210         * config.in: Add LINKER_HASH_STYLE.
13211         * configure.ac: Add --with-linker-hash-style.
13212         * configure: Regenerate.
13213
13214 2011-05-11  Richard Guenther  <rguenther@suse.de>
13215
13216         PR middle-end/48964
13217         * gimple.c (iterative_hash_canonical_type): Fix typo.
13218
13219 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
13220
13221         * config/i386/i386.c (legitimize_tls_address)
13222         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
13223         expanders directly for TARGET_GNU2_TLS.  Determine pic and
13224         __tls_get_addr symbol reference here.  Update call to
13225         gen_tls_global_dynamic_{32,64} for added arguments.
13226         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
13227         expanders directly for TARGET_GNU2_TLS.  Determine
13228         __tls_get_addr symbol reference here.  Update call to
13229         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
13230         unique UNSPEC REG_EQUIV to libcall block.
13231         (ix86_tls_get_addr): Declare static.
13232         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
13233         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
13234         Do not determine pic and __tls_get_addr symbol reference here. Do not
13235         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
13236         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
13237         (tls_global_dynamic_64): Add operand 2.  Do not determine
13238         __tls_get_addr symbol reference here.  Do not call
13239         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
13240         (tls_local_dynamic_base64): Ditto for operand 1.
13241
13242 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
13243
13244         * function.c (expand_function_start): Initialize stack_check_probe_note
13245         only if the generic stack checking mechanism is used.
13246
13247 2011-05-11  Richard Guenther  <rguenther@suse.de>
13248
13249         PR tree-optimization/15256
13250         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
13251         (A & B) | C, combine (A op CST1) op CST2.
13252         (tree_ssa_forward_propagate_single_use_vars): Only bother to
13253         visit assigns that have uses.
13254
13255 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
13256
13257         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
13258         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
13259         (unpack_ts_type_common_value_fields): ...this.  Update comment.
13260         (unpack_value_fields): Adjust for renaming.
13261         (lto_input_ts_type_tree_pointers): Split into...
13262         (lto_input_ts_type_common_tree_pointer): ...this and...
13263         (lto_input_ts_type_non_common_tree_pointers): ...this.
13264         (lto_input_tree_pointers): Adjust for above split.
13265         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
13266         (pack_ts_type_common_value_fields): ...this.  Update comment.
13267         (lto_output_ts_type_tree_pointers): Split into...
13268         (lto_output_ts_type_common_tree_pointers): ...this and...
13269         (lto_output_ts_type_non_common_tree_pointers): ...this.
13270         (lto_output_tree_pointers): Adjust for above split.
13271         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
13272         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
13273         * stor-layout.c (vector_type_mode): Adjust location of mode field.
13274         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
13275         Define.
13276         (struct tree_type): Split into...
13277         (struct tree_type_common: ...this and...
13278         (struct tree_type_with_lang_specific): ...this and...
13279         (struct tree_type_non_common): ...this.  Adjust accessor macros
13280         accordingly.
13281         (TYPE_VALUES_RAW): Define.
13282         (union tree_node): Update for above changes.
13283         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
13284         TS_TYPE_NON_COMMON.
13285         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
13286         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
13287         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
13288         * treestructu.def (TS_TYPE): Remove.
13289         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
13290         Define.
13291
13292 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
13293
13294         PR debug/48159
13295         * tree-ssa.c (reset_debug_uses): New function.
13296         * tree-flow.h (reset_debug_uses): New prototype.
13297         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
13298         * tree-loop-distribution.c (generate_loops_for_partition): Call
13299         reset_debug_uses on the stmts that will be removed.  Keep around
13300         all debug stmts, don't count them as bits in partition bitmap.
13301         (generate_builtin): Don't count debug stmts or labels as bits in
13302         partition bitmap.
13303
13304 2011-05-11  Richard Guenther  <rguenther@suse.de>
13305
13306         * gimple.c (gimple_type_hash_1): Merge with ...
13307         (gimple_type_hash): ... this.
13308         (gtc_visit): Remove mode parameter and simplify accordingly.
13309         (gimple_types_compatible_p_1): Likewise.
13310         (gimple_types_compatible_p): Likewise.
13311         (iterative_hash_gimple_type): Likewise.
13312         (visit): Likewise.
13313         (gimple_type_eq): Adjust.
13314
13315 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13316
13317         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
13318         enters the branch create an anti edge in the opposite direction
13319         to prevent the creation of reg-moves.
13320         * modulo-sched.c: Adjust comment to reflect the fact we are
13321         scheduling closing branch.
13322         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
13323         (stage_count): New field in struct partial_schedule.
13324         (calculate_stage_count): New function.
13325         (normalize_sched_times): Rename to reset_sched_times and handle
13326         incrementing the sched time of the nodes by a constant value
13327         passed as parameter.
13328         (duplicate_insns_of_cycles): Skip closing branch.
13329         (sms_schedule_by_order): Schedule closing branch.
13330         (ps_insn_find_column): Handle closing branch.
13331         (sms_schedule): Call reset_sched_times and adjust the code to
13332         support scheduling of the closing branch.
13333         (ps_insert_empty_row): Update calls to normalize_sched_times
13334         and rotate_partial_schedule functions.
13335
13336 2011-05-11  Richard Guenther  <rguenther@suse.de>
13337
13338         PR middle-end/48953
13339         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
13340
13341 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
13342
13343         * opts.c (finish_options): Move warning settings from process_options.
13344         * toplev.c (process_options): Move warning settings to finish_options.
13345
13346 2011-05-11  Richard Guenther  <rguenther@suse.de>
13347
13348         PR tree-optimization/18041
13349         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
13350         (simplify_bitwise_binary): ... this.  Handle operand conversions
13351         by applying them to the result instead.
13352         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
13353
13354 2011-05-11  Richard Guenther  <rguenther@suse.de>
13355
13356         * gimple.c (gimple_canonical_types_compatible_p): Split out
13357         from gimple_types_compatible_p and friends.  Do not recurse
13358         to pointed-to types.
13359         (gimple_canonical_type_eq): Use it.
13360         (iterative_hash_canonical_type): Split out from
13361         iterative_hash_gimple_type and friends.  Do not recurse
13362         to pointed-to types.
13363         (gimple_canonical_type_hash): Use it, allocate the hash here.
13364
13365 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13366
13367         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
13368         recognizing doloop.
13369
13370 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13371
13372         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
13373         instead of PREV_INSN.
13374
13375 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13376
13377         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
13378         * loop-doloop.c (doloop_condition_get): Likewise.
13379         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
13380         (doloop_end): New.
13381         * config/arm/arm.md (*addsi3_compare0): Remove "*".
13382
13383 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
13384
13385         * tree.def (CASE_LABEL_EXPR): Add an operand.
13386         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
13387
13388 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13389
13390         * c-decl.c (c_override_global_bindings_to_false): Remove.
13391         (global_bindings_p): Don't check
13392         c_override_global_bindings_to_false.
13393         * c-tree.h (c_override_global_bindings_to_false): Remove.
13394         * c-typeck.c (composite_type): Don't set
13395         c_override_global_bindings_to_false.
13396
13397 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
13398
13399         PR target/48857, 48495
13400         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
13401         (VSX_MODE): Ditto.
13402         (VSX_MOVE_MODE): Ditto.
13403         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
13404         VSX vector types.  Add V2DImode.
13405         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
13406         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
13407         (MODES_TIEABLE_P): Ditto.
13408
13409         * config/rs6000/rs6000.c (rs6000_emit_move): Use
13410         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
13411         VSX_VECTOR_MODE.
13412         (init_cumulative_args): Ditto.
13413         (rs6000_function_arg_boundary): Ditto.
13414         (rs6000_function_arg_advance_1): Ditto.
13415         (rs6000_function_arg): Ditto.
13416         (rs6000_function_ok_for_sibcall): Ditto.
13417         (emit_frame_save): Ditto.
13418         (rs6000_function_value): Ditto.
13419         (rs6000_libcall_value): Ditto.
13420
13421 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13422
13423         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
13424         i386/darwin-lib.h to $libgcc_tm_file.
13425         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
13426
13427 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13428
13429         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
13430
13431 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13432
13433         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
13434         * config/rs6000/rs6000-tables.opt: New file (generated).
13435         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
13436         rs6000/rs6000-tables.opt to extra_options.
13437         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
13438         * config/rs6000/rs6000.c (rs6000_select): Remove.
13439         (processor_target_table): Move contents to rs6000-cpus.def.
13440         (darwin_rs6000_override_options): Check
13441         global_options_set.x_rs6000_cpu_index instead of
13442         rs6000_select[1].string.
13443         (rs6000_option_override_internal): Likewise.
13444         (rs6000_handle_option): Don't assert that global structures are in
13445         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
13446         (rs6000_default_cpu): New variable.
13447         (rs6000_file_start): Set it instead of local default_cpu.  Check
13448         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
13449         global_options_set.x_rs6000_tune_index instead of rs6000_select.
13450         (rs6000_darwin_file_start): Check rs6000_default_cpu and
13451         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
13452         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
13453         rs6000_select): Remove.
13454         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
13455         Remove.
13456         (mcpu=, mtune=): Use Var, Init, Enum and Save.
13457         * config/rs6000/t-rs6000
13458         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
13459         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
13460         global_options_set.x_rs6000_cpu_index instead of
13461         rs6000_select[1].string.
13462         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
13463         global_options_set.x_rs6000_cpu_index instead of
13464         rs6000_select[1].string.
13465
13466 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13467
13468         * config.gcc (libgcc_tm_file): Define instead of including files
13469         from ../../libgcc/config/ in tm_file.
13470         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
13471         * configure: Regenerate.
13472         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
13473         libgcc_tm.h, cs-libgcc_tm.h): New.
13474         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
13475         (clean): Remove libgcc_tm.h.
13476         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
13477         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
13478         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
13479
13480 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
13481
13482         PR target/48896
13483         * config/avr/avr.c (avr_ret_register): Return unsigned int
13484         instead of int.
13485         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
13486         it to avr_libcall_value.
13487         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
13488         expand_expr.
13489         (avr_expand_binop_builtin): Ditto.
13490         (avr_expand_unop_builtin): Ditto.
13491
13492 2011-05-10  DJ Delorie  <dj@redhat.com>
13493
13494         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
13495         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
13496         * config/rx/rx.c (rx_align_for_label): Add label and
13497         uses_threshold parameters.  Do not align when the label is not
13498         used enough.
13499         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
13500
13501 2011-05-10  Richard Guenther  <rguenther@suse.de>
13502
13503         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
13504         a series of conversions and apply foldings similar to what
13505         fold-const does.
13506         (tree_ssa_forward_propagate_single_use_vars): Call it.
13507
13508 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
13509
13510         PR tree-optimization/48611
13511         PR tree-optimization/48794
13512         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
13513         referenced from RESX or EH_DISPATCH arguments.
13514
13515         PR debug/48928
13516         * dfp.c (decimal_to_decnumber): Handle conversion from
13517         dconst{1,2,m1,half}.
13518
13519 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13520
13521         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
13522         for !flag_prefer_avx128.
13523         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
13524
13525 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
13526
13527         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
13528         (fold_ternary_loc): Use expr_location_or.
13529
13530 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
13531
13532         PR debug/48853
13533         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
13534         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
13535         Pmode and mem_mode is not VOIDmode.
13536
13537 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
13538
13539         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
13540         TYPE_QUAL_RESTRICT): Convert to enum.
13541
13542 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13543
13544         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
13545         (const_pow2_1_to_8_operand): Ditto.
13546         (const_pow2_1_to_128_operand): Ditto.
13547         (const_pow2_1_to_32768_operand): Ditto.
13548         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
13549         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
13550         in insn constraint to check integer value of operand 3.
13551         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
13552
13553         (PINSR_MODE): New mode iterator.
13554         (sse2p4_1): New mode attribute.
13555         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
13556         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
13557         iterator.  Use const_int_operand instead of
13558         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
13559         exact_log2 in insn constraint to check integer value of operand 3.
13560
13561 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13562
13563         * config/i386/sse.md (blendbits): Remove mode attribute.
13564         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
13565         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
13566         Check integer value of operand 3 in insn constraint.
13567
13568 2011-05-09  Richard Guenther  <rguenther@suse.de>
13569
13570         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
13571         for diagnostics.
13572         (lto_symtab_merge): Likewise.  Do not register types here.
13573         (lto_symtab_merge_decls_2): Likewise.
13574         (lto_symtab_merge_decls_1): Likewise.
13575         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
13576         * gimple.c (enum gtc_mode): Declare.
13577         (gimple_types_compatible_p): Make static.
13578
13579 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13580
13581         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
13582         temporary register to match Pmode.
13583
13584 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13585
13586         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
13587         and *vec_concatv4si_1_avx.
13588
13589 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13590
13591         PR rtl-optimization/48927
13592         * ira-conflicts.c (commutative_constraint_p): Use
13593         recog_data.alternative_enabled_p to disable alternatives where
13594         "enabled" attribute is false.
13595         (get_dup_num): Ditto.
13596         * ira-lives.c (single_reg_class): Ditto.
13597         (ira_implicitly_set_insn_hard_regs): Ditto.
13598
13599 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
13600
13601         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
13602         (dataflow_set_preserve_mem_locs): Likewise.
13603
13604 2011-05-09  Philipp Thomas  <pth@suse.de>
13605
13606         * config/mep/mep.c (mep_validate_vliw): Syntax description
13607         should not be translated.
13608
13609 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
13610
13611         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
13612         * config/mips/mips-tables.opt: New file (generated).
13613         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
13614         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
13615         MIPS_ARCH_OPTION_NATIVE): Define.
13616         * config/mips/mips.c (mips_cpu_info_table): Move contents to
13617         mips-cpus.def.
13618         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
13619         mips_parse_cpu): Remove.
13620         (mips_cpu_info_from_opt, mips_default_arch): New.
13621         (mips_handle_option): Don't assert that global structures are in
13622         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
13623         (mips_option_override): Use new variables and functions to set
13624         state of these options.  Use strcmp to check for individual CPU names.
13625         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
13626         definition.
13627         * config/mips/mips.opt (march=): Use ToLower and Enum.
13628         (mips): Use ToLower, Enum and Var.
13629         (mtune=): Use ToLower and Enum.
13630         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
13631
13632 2011-05-08  Jan Hubicka  <jh@suse.cz>
13633
13634         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
13635         Arrange type pairs to be UID ordered.
13636         (gimple_lookup_type_leader): Make inline.
13637
13638 2011-05-09  Nick Clifton  <nickc@redhat.com>
13639
13640         PR target/48899
13641         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
13642         PROCESSOR_DEFAULT.
13643
13644         PR target/48897
13645         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
13646         variable 's'.
13647
13648 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
13649
13650         * combine.c (simplify_comparison): Abstract out parts into...
13651         (simplify_compare_const): ... new function.
13652         (try_combine): Generalize parallel arithmetic/compare combining
13653         to call simplify_compare_const() and CANONICALIZE_COMPARE().
13654
13655 2011-05-08  Jan Hubicka  <jh@suse.cz>
13656
13657         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
13658         (cgraph_create_virtual_clone): Call hooks once virtual clone
13659         is finished.
13660         * cgraph.h (cgraph_clone_node): Update prototype.
13661         * ipa-cp.c (ipcp_estimate_growth): Use
13662         estimate_ipcp_clone_size_and_time.
13663         * ipa-inline-transform.c (clone_inlined_nodes): Update.
13664         * lto-cgraph.c (input_node): Update.
13665         * ipa-inline.c (recursive_inlining): Update.
13666         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
13667         (evaluate_conditions_for_known_args): Break out from ...
13668         (evaluate_conditions_for_edge): ... here.
13669         (evaluate_conditions_for_ipcp_clone): New function.
13670         (inline_node_duplication_hook): Update clone summary based
13671         on parameter map.
13672         (estimate_callee_size_and_time): Rename to ...
13673         (estimate_node_size_and_time): take NODE instead of EDGE;
13674         take POSSIBLE_TRUTHS as argument.
13675         (estimate_callee_size_and_time): Update.
13676         (estimate_ipcp_clone_size_and_time): New function.
13677         (do_estimate_edge_time): Update.
13678
13679 2011-05-08  Richard Guenther  <rguenther@suse.de>
13680
13681         PR middle-end/48908
13682         PR middle-end/48905
13683         * expmed.c (expand_shift_1): Compute adjusted constant shift
13684         amount manually.
13685
13686 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
13687
13688         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
13689
13690 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
13691
13692         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
13693
13694 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
13695
13696         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
13697
13698 2011-05-07  Jan Hubicka  <jh@suse.cz>
13699
13700         * ipa-inline-transform.c (inline_call): Account when program size
13701         decreases.
13702         * ipa-inline.c (relative_time_benefit): New function.
13703         (edge_badness): Reorganize to be power 2 based; fix thinko when
13704         computing badness for negative growth; update comments to match
13705         reality; better dumps.
13706
13707 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
13708
13709         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
13710         type to bool and adjust comment.
13711         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
13712         (fold_mathfn_compare): Remove calls to global_bindings_p.
13713         (fold_inf_compare): Likewise.
13714         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
13715         * c-tree.h (global_bindings_p): Adjust prototype.
13716         * c-decl.c (global_bindings_p): Return bool and simplify.
13717
13718 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
13719
13720         PR tree-optimization/48837
13721         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
13722         when accumulator transformation is performed.
13723
13724 2011-05-06  Jan Hubicka  <jh@suse.cz>
13725
13726         * i386.h (ix86_tune_indices): Add
13727         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
13728         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
13729         * i386.c (initial_ix86_tune_features): Add
13730         X86_SOFTARE_PREFETCHING_BENEFICIAL.
13731         (software_prefetching_beneficial_p): Remove predicate.
13732         (ix86_option_override_internal): Use new macro.
13733
13734 2011-05-06  Jan Hubicka  <jh@suse.cz>
13735
13736         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
13737
13738 2011-05-06  Jan Hubicka  <jh@suse.cz>
13739
13740         * cgraph.c (cgraph_add_thunk): Create real function node instead
13741         of alias node; finalize it and mark needed/reachale; arrange visibility
13742         to be right and add it into the corresponding same comdat group list.
13743         (dump_cgraph_node): Dump thunks.
13744         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
13745         cgraph_function_with_gimple_body_p,
13746         cgraph_first_function_with_gimple_body,
13747         cgraph_next_function_with_gimple_body): New functions.
13748         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
13749         New macros.
13750         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
13751         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
13752         * cgraphunit.c (cgraph_finalize_function): Only look into possible
13753         devirtualization when optimizing.
13754         (verify_cgraph_node): Verify thunks.
13755         (cgraph_analyze_function): Analyze thunks.
13756         (cgraph_mark_functions_to_output): Output thunks only in combination
13757         with function they are assigned to.
13758         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
13759         alias into normal node.
13760         (assemble_thunks): New functoin.
13761         (cgraph_expand_function): Use it.
13762         * lto-cgraph.c (lto_output_node): Stream thunks.
13763         (input_overwrite_node): Stream in thunks.
13764         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
13765         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
13766         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
13767         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
13768         (inline_analyze_function): Do not care about thunk jump functions.
13769         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
13770         * ipa-prop.c (ipa_prop_write_jump_functions): Use
13771         cgraph_function_with_gimple_body_p.
13772         * passes.c (do_per_function_toporder): Use
13773         cgraph_function_with_gimple_body_p.
13774         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
13775         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
13776         (function_called_by_processed_nodes_p): Likewise.
13777
13778 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
13779
13780         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
13781         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
13782         entries.
13783         (mabi=): Replace with separate entries for mabi=altivec,
13784         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
13785         mabi=ieeelongdouble and mabi=ibmlongdouble.
13786         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
13787         check for -mabi=spe without SPE ABI support here.
13788         (rs6000_handle_option): Replace OPT_mabi_ handling with
13789         OPT_mabi_altivec and OPT_mabi_spe handling.
13790
13791 2011-05-06  Cary Coutant  <ccoutant@google.com>
13792
13793         * dwarf2out.c (contains_subprogram_definition): New function.
13794         (should_move_die_to_comdat): Call it.
13795
13796 2011-05-06  Jeff Law  <law@redhat.com>
13797
13798         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
13799         remove_ctrl_stmt_and_useless_edges.
13800         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
13801         (fixup_template_block, thread_single_edge): Likewise.
13802         (mark_threaded_blocks): Use THREAD_TARGET.
13803
13804 2011-05-06  Alan Modra  <amodra@gmail.com>
13805
13806         PR target/48900
13807         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
13808         const0_rtx as the arg to the dummy __tls_get_addr libcall.
13809
13810 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
13811
13812         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
13813         constraint modifier to "r".
13814
13815 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
13816
13817         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
13818         fall through for OPT_mcmodel_.
13819
13820 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13821
13822         * config/s390/s390.c (s390_asm_trampoline_template): Comment
13823         instruction sizes.
13824         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
13825
13826 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13827
13828         PR target/47930
13829         * config/arm/arm.opt (marm): Document it.
13830         (mthumb): Reject negative variant.
13831
13832 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
13833
13834         PR target/48898
13835         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
13836         Fix typo in "ccvt" variable name.
13837
13838 2011-05-06  Tristan Gingold  <gingold@adacore.com>
13839
13840         PR target/48895
13841         * config/vms/vms-ar.c (main): Remove cwd variable.
13842
13843 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
13844
13845         PR debug/48902
13846         * var-tracking.c (prepare_call_arguments): Move else before #endif.
13847
13848 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
13849
13850         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
13851         * gimplify.c (gimplify_switch_expr): Likewise.
13852         * omp-low.c (expand_omp_sections): Likewise.
13853         * tree-eh.c (lower_try_finally_switch): Likewise.
13854         (lower_eh_dispatch): Likewise.
13855         * tree.h (build_case_label): Declare.
13856         * tree.c (build_case_label): Define.
13857
13858 2011-05-05  Jason Merrill  <jason@redhat.com>
13859
13860         PR c++/40975
13861         * tree-inline.c (copy_tree_r): Use copy_statement_list.
13862         (copy_statement_list): Don't recurse.
13863         * stor-layout.c (copy_self_referential_tree_r): Don't allow
13864         STATEMENT_LIST.
13865
13866 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
13867
13868         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
13869         through from -mfpu= handling.
13870         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
13871
13872 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
13873
13874         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
13875         POST_MODIFY.
13876
13877 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
13878
13879         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
13880         for 11.31.
13881         (hppa[12]*-*-hpux11*): Ditto.
13882         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
13883         * config/ia64/hpux-unix2003.h: New.
13884         * config/pa/pa-hpux1131.opt: New.
13885         * config/pa/pa-hpux1131.h: New.
13886         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
13887         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
13888         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
13889
13890 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
13891
13892         PR debug/48853
13893         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
13894         instead of mode as 3rd argument to recursive call.
13895         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
13896         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
13897         VOIDmode.
13898         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
13899         don't give up if mode is Pmode and mem_mode is not VOIDmode.
13900         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
13901         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
13902
13903 2011-05-05  Julian Brown  <julian@codesourcery.com>
13904
13905         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
13906         parenthesis in D-register case.
13907
13908 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
13909
13910         * opt-functions.awk (var_type_struct): Handle Enum options.
13911         * optc-gen.awk: Don't check range of variables of character type.
13912         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
13913         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
13914         rs6000_sdata_name, rs6000_explicit_options): Remove.
13915         (rs6000_option_override_internal): Check for -malign-power here.
13916         Use global_options_set instead of rs6000_explicit_options.
13917         (rs6000_parse_fpu_option): Remove.
13918         (rs6000_handle_option): Access variables via opts and opts_set
13919         pointers.  Use error_at and warning_at.  Add fall-through
13920         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
13921         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
13922         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
13923         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
13924         here.  Don't use rs6000_parse_fpu_option.
13925         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
13926         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
13927         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
13928         (mrecip=): Use Var.
13929         (mspe): Use Var and Save.
13930         (mtraceback=): Use Enum and Var.
13931         (rs6000_traceback_type): New Enum and EnumValue entries.
13932         (mfloat-gprs=): Use Enum, Var and Save.
13933         (rs6000_float_gprs): New Enum and EnumValue entries.
13934         (mlong-double-): use Var and Save.
13935         (msched-costly-dep=, minsert-sched-nops=): Use Var.
13936         (malign-): Use Enum and Var.
13937         (rs6000_alignment_flags): New Enum and EnumValue entries.
13938         (mfpu=): Use Enum.
13939         (fpu_type_t): New Enum and EnumValue entries.
13940         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13941         global_options_set instead of rs6000_explicit_options.
13942         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13943         global_options_set instead of rs6000_explicit_options.
13944         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13945         global_options_set instead of rs6000_explicit_options.
13946         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13947         global_options_set instead of rs6000_explicit_options.
13948         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
13949         global_options_set instead of rs6000_explicit_options.
13950         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13951         global_options_set instead of rs6000_explicit_options.
13952         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
13953         definition.
13954         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13955         global_options_set instead of rs6000_explicit_options.
13956         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
13957         (rs6000_cmodel): New Enum and EnumValue entries.
13958         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13959         global_options_set instead of rs6000_explicit_options.
13960         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
13961         (mtls-size=): Use Enum and Var.
13962         (rs6000_tls_size): New Enum and EnumValue entries.
13963
13964 2011-05-05  Michael Matz  <matz@suse.de>
13965
13966         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
13967         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
13968         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
13969         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
13970         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
13971         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
13972         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
13973         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
13974         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
13975         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
13976         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
13977         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
13978         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
13979         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
13980         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
13981         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
13982
13983 2011-05-05  Richard Guenther  <rguenther@suse.de>
13984
13985         * expmed.c (expand_variable_shift): Rename to ...
13986         (expand_shift_1): ... this.  Take an expanded shift amount.
13987         For rotates recurse directly not building trees for the shift amount.
13988         (expand_variable_shift): Wrap around expand_shift_1.
13989         (expand_shift): Adjust.
13990
13991 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
13992
13993         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
13994
13995 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
13996
13997         * tree.h (get_pending_sizes): Remove prototype.
13998         (put_pending_size): Likewise.
13999         (put_pending_sizes): Likewise.
14000         * stor-layout.c (pending_sizes): Delete.
14001         (get_pending_sizes): Likewise.
14002         (put_pending_size): Likewise.
14003         (put_pending_sizes): Likewise.
14004         (variable_size): Do not call put_pending_size and tidy up.
14005         * function.h (struct function): Remove dont_save_pending_sizes_p.
14006         * lto-streamer-in.c (input_function): Do not stream it.
14007         * lto-streamer-out.c (output_function): Likewise.
14008         * tree-inline.c (initialize_cfun): Do not copy it.
14009         * c-decl.c (store_parm_decls): Do not set it.
14010         * omp-low.c (create_task_copyfn): Likewise.
14011         * tree-optimize.c (tree_rest_of_compilation): Likewise.
14012
14013 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
14014
14015         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
14016         conditions.
14017         (*movdf_internal): Ditto.
14018         (*movdf_internal_nointeger): Ditto.
14019         (*movsf_internal): Ditto.
14020
14021 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
14022
14023         * c-decl.c (finish_decl): Don't call get_pending_sizes.
14024         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
14025         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
14026         (c_variable_size): Remove.
14027         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
14028         call put_pending_sizes.
14029         (get_parm_info): Add parameter expr.  Use it to set
14030         arg_info->pending_sizes.
14031         (store_parm_decls): Use arg_info->pending_sizes instead or calling
14032         get_pending_sizes.
14033         * c-parser.c (c_parser_parms_declarator): Update call to
14034         c_parser_parms_list_declarator.
14035         (c_parser_parms_list_declarator): Take parameter expr.  Update
14036         call to push_parm_decl.  Update recursive call.  Don't call
14037         get_pending_sizes.  Update calls to get_parm_info.
14038         (c_parser_objc_method_definition): Update calls to
14039         c_parser_objc_method_decl and objc_start_method_definition.
14040         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
14041         (c_parser_objc_method_decl): Add parameter expr.  Update call to
14042         grokparm.
14043         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
14044         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
14045         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
14046
14047 2011-05-05  Michael Hope  <michael.hope@linaro.org>
14048
14049         PR pch/45979
14050         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
14051         __ARM_EABI__ hosts.
14052
14053 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14054
14055         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
14056         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
14057         (spu_output_mi_thunk): New function.
14058
14059 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14060
14061         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
14062         targetm.asm_out.print_operand.
14063         * config/sol2.c: Include target.h.
14064
14065 2011-05-04  Jan Hubicka  <jh@suse.cz>
14066
14067         * ipa-inline.c (reset_edge_caches): New function.
14068         (update_caller_keys): Add check_inlinablity_for; do not
14069         reset edge caches; remove now unnecesary loop.
14070         (update_callee_keys): Add comments; reset node_growth_cache of callee.
14071         (update_all_callee_keys): Likewise.
14072         (inline_small_functions): Sanity check cache; update code
14073         recomputing it.
14074
14075 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
14076
14077         PR rtl-optimization/47612
14078         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
14079         as the last insn of the sequence to be moved.
14080
14081 2011-05-04  Tobias Burnus  <burnus@net-b.de>
14082
14083         PR fortran/48864
14084         * doc/invoke.texi (Ofast): Document that it
14085         enables Fortran's -fno-protect-parens.
14086
14087 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
14088
14089         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
14090
14091 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
14092
14093         * stor-layout.c (variable_size): Do not issue errors.
14094
14095 2011-05-04  Richard Guenther  <rguenther@suse.de>
14096
14097         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
14098         for array-ref indices.
14099         (tree_coverage_counter_addr): Likewise.
14100         (build_fn_info_type): Use size_int for index types.
14101         (build_gcov_info): Likewise.
14102
14103 2011-05-04  Richard Guenther  <rguenther@suse.de>
14104
14105         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
14106         to build_int_cst.
14107         * c-typeck.c (really_start_incremental_init): Use bitsize_int
14108         for constructor indices.
14109         (push_init_level): Likewise.
14110
14111 2011-05-04  Richard Guenther  <rguenther@suse.de>
14112
14113         * explow.c (promote_mode): Move variable declarations before code.
14114
14115 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
14116
14117         * tree.h (build_function_type_array): Declare.
14118         (build_varargs_function_type_array): Declare.
14119         (build_function_type_vec, build_varargs_function_type_vec): Define.
14120         * tree.c (build_function_type_array_1): New function.
14121         (build_function_type_array): New function.
14122         (build_varargs_function_type_array): New function.
14123
14124 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
14125
14126         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
14127         before setting STMT_VINFO_TYPE.
14128
14129 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14130
14131         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
14132         instead of spu_pass_by_reference.
14133
14134 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14135
14136         * calls.c (emit_library_call_value_1): Invoke
14137         promote_function_mode hook on libcall arguments.
14138         * explow.c (promote_function_mode, promote_mode): Handle TYPE
14139         argument being NULL.
14140         * targhooks.c (default_promote_function_mode): Lisewise.
14141         * config/s390/s390.c (s390_promote_function_mode): Likewise.
14142         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
14143
14144         * doc/tm.texi: Document that TYPE argument might be NULL.
14145
14146 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14147
14148         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
14149
14150 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14151
14152         From Bernd Schmidt
14153         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
14154
14155 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14156
14157         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
14158         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
14159         Move ...
14160         * mips-tfile.c: ... here.
14161         Don't include coretypes.h, tm.h, filenames.h.
14162         (saber_stop): Remove definition and all calls.
14163         [__SABER__]: Remove.
14164         (__LINE__): Remove default.
14165         (Size_t, Ptrdiff_t): Remove definitions.
14166         Replace by size_t, ptrdiff_t.
14167         [!MIPS_DEBUGGING_INFO]: Remove.
14168         (SHASH_SIZE, THASH_SIZE): Remove defaults.
14169         (progname): Add const.
14170         (STATIC): Remove.
14171         Replace all uses by static.
14172         (ALIGN_SYMTABLE_OFFSET): Remove default.
14173         * mips-tdump.c: Don't include coretypes.h, tm.h.
14174         Remove !MIPS_IS_STAB guard.
14175         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
14176         $(TM_H), filenames.h dependencies.
14177         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
14178
14179 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14180
14181         From Jie Zhang
14182         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
14183         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
14184
14185 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14186
14187         From Bernd Schmidt
14188         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
14189         account and save/restore RETS.
14190         (PROFILE_BEFORE_PROLOGUE): Define.
14191         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
14192         the push insn to use predecrement.
14193
14194 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14195
14196         From Jie Zhang
14197         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
14198
14199 2011-05-04  Nick Clifton  <nickc@redhat.com>
14200
14201         * config/mn10300/mn10300.c: Include cfgloop.h.
14202         (DUMP): New macro.
14203         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
14204         Lcc or a FLcc insn into the instruction stream.
14205         (mn10300_block_contains_call): New function.  Returns true if the
14206         given basic block contains a CALL insn.
14207         (mn10300_loop_contains_call_insn): New function.  Returns true if
14208         the given loop contains a CALL insn.
14209         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
14210         to use the SETLB and Lcc or FLcc insns.
14211         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
14212         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
14213         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
14214         disable the SETLB optimization.
14215         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
14216         __SETLB__ or __NO_SETLB__.
14217         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
14218         (movsf_internal): Handle MDR register.
14219         (cmpsi): Make visible.
14220         (setlb): New pattern.
14221         (Lcc): New pattern.
14222         (FLcc): New pattern.
14223
14224 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
14225
14226         PR target/48860
14227         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
14228         for reg<->xmm moves.
14229         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
14230         (vec_concatv2di_rex64_sse): Ditto.
14231         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
14232         (*vec_extractv2di_1_rex64): Ditto.
14233
14234         Revert:
14235         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
14236
14237         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
14238         reg<->xmm moves.
14239         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
14240
14241 2011-05-04  Richard Guenther  <rguenther@suse.de>
14242
14243         * tree.h (int_const_binop): Remove notrunc argument.
14244         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
14245         create integer constants that are properly truncated.
14246         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
14247         (const_binop): Remove zero notrunc argument to int_const_binop.
14248         (size_binop_loc): Likewise.
14249         (fold_div_compare): Likewise.
14250         (maybe_canonicalize_comparison_1): Likewise.
14251         (fold_comparison): Likewise.
14252         (fold_binary_loc): Likewise.
14253         (multiple_of_p): Likewise.
14254         * expr.c (store_constructor): Likewise.
14255         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
14256         (maybe_fold_stmt_addition): Likewise.
14257         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
14258         * stor-layout.c (layout_type): Likewise.
14259         * tree-data-ref.c (tree_fold_divides_p): Likewise.
14260         * tree-sra.c (build_ref_for_offset): Likewise.
14261         (build_user_friendly_ref_for_offset): Likewise.
14262         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
14263         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
14264         * tree-ssa-loop-niter.c (inverse): Likewise.
14265         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
14266         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
14267         * tree-switch-conversion.c (check_range): Likewise.
14268         (build_constructors): Likewise.
14269         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
14270         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
14271         (extract_range_from_assert): Likewise.
14272         (vrp_int_const_binop): Likewise.
14273         (extract_range_from_binary_expr): Likewise.
14274         (extract_range_from_unary_expr): Likewise.
14275         (check_array_ref): Likewise.
14276         (find_case_label_range): Likewise.
14277         (simplify_div_or_mod_using_ranges): Likewise.
14278         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
14279         comparing case labels for merging.
14280
14281 2011-05-03  Mark Wielaard  <mjw@redhat.com>
14282
14283         * dwarf2out.c (debug_str_hash_forced): Removed.
14284         (gen_label_for_indirect_string): Removed.
14285         (get_debug_string_label): Removed.
14286         (AT_string_form): Generate label directly.
14287         (output_indirect_string): Test indirect_string_node for
14288         DW_FORM_strp instead of checking label and refcount.
14289         (prune_indirect_string): Removed.
14290         (prune_unused_types): Don't check debug_str_hash_forced or
14291         call prune_indirect_string.
14292
14293 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
14294
14295         PR other/48093
14296         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
14297
14298 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
14299
14300         PR debug/47994
14301         PR debug/47919
14302         * combine.c (try_combine): Skip debug insns at m_split tests.
14303
14304 2011-04-26  Mark Wielaard  <mjw@redhat.com>
14305
14306         PR42288
14307         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
14308         when info_section_emitted.
14309
14310 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
14311
14312         * config/mips/mips-opts.h: New.
14313         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
14314         to mips-opts.h.
14315         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
14316         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
14317         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
14318         via opts pointer.
14319         * config/mips/mips.h (enum mips_code_readable_setting): Move to
14320         mips-opts.h.
14321         (mips_abi, mips_code_readable): Don't declare.
14322         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
14323         (mabi=): Use Enum and Var.
14324         (mips_abi): New Enum and EnumValue entries.
14325         (mcode-readable=): Use Enum and Var.
14326         (mips_code_readable_setting): New Enum and EnumValue entries.
14327         (mr10k-cache-barrier=): Use Enum and Var.
14328         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
14329
14330 2011-05-03  Jan Hubicka  <jh@suse.cz>
14331
14332         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
14333         replace hash by pointer map.
14334         (cgraph_node_set_element_def, cgraph_node_set_element,
14335         const_cgraph_node_set_element, varpool_node_set_element_def,
14336         varpool_node_set_element, const_varpool_node_set_element): Remove.
14337         (free_cgraph_node_set, free_varpool_node_set): New function.
14338         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
14339         * tree-emutls.c: Free varpool node set.
14340         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
14341         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
14342         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
14343         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
14344         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
14345         Move here from ipa.c; implement using pointer_map
14346         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
14347         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
14348         debug_cgraph_node_set, varpool_node_set_new,
14349         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
14350         dump_varpool_node_set, debug_varpool_node_set):
14351         Move to ipa-uitls.c.
14352         * passes.c (ipa_write_summaries): Update.
14353
14354 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14355
14356         From Mike Frysinger:
14357         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
14358         bf542/bf544/bf547/bf548/bf549.
14359
14360 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
14361
14362         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
14363
14364 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14365
14366         From Bernd Schmidt:
14367         * config/bfin/bfin.md (MOVCC): New mode_macro.
14368         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
14369         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
14370         comments from generated assembly.
14371
14372 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14373
14374         From Bernd Schmidt
14375         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
14376         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
14377         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
14378         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
14379         * config/bfin/lib1funcs.asm (___muldi3): New function.
14380
14381 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14382
14383         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
14384         build_function_type_list instead of build_function_type.
14385         Rearrange initialization of `args' to do so.
14386
14387 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14388
14389         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
14390         instead of build_function_type.
14391
14392 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14393
14394         * config/rs6000/rs6000.c (spe_init_builtins): Call
14395         build_function_type_list instead of build_function_type.
14396         (paired_init_builtins, altivec_init_builtins): Likewise.
14397         (builtin_function_type): Likewise.
14398
14399 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14400
14401         * config/sh/sh.c (sh_media_init_builtins): Call
14402         build_function_type_list instead of build_function_type.
14403
14404 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14405
14406         * config/sparc/sparc.c (sparc_file_end): Call
14407         build_function_type_list instead of build_function_type.
14408
14409 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14410
14411         * config/alpha/alpha.c (alpha_init_builtins): Call
14412         build_function_type_list instead of build_function_type.
14413
14414 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14415
14416         * config/xtensa/xtensa.c (xtensa_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/iq2000/i2000.c (iq2000_init_builtins): Call
14422         build_function_type_list instead of build_function_type.
14423         Delete `endlink' variable.
14424
14425 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14426
14427         * config/avr/avr.c (avr_init_builtins): Call
14428         build_function_type_list instead of build_function_type.
14429
14430 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14431
14432         * config/picochip/picochip.c (picochip_init_builtins): Call
14433         build_function_type_list instead of build_function_type.
14434         Delete `endlink' variable.
14435
14436 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14437
14438         * config/bfin/bfin.c (bfin_init_builtins): Call
14439         build_function_type_list instead of build_function_type.
14440
14441 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14442
14443         From Bernd Schmidt
14444         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
14445         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
14446
14447 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14448
14449         From Jie Zhang:
14450         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
14451         libbffastfp overrides libgcc when -mfast-fp.
14452
14453 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14454
14455         Originally from Bernd Schmidt
14456         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
14457         * config/bfin/bfin.c (override_options): Test it and error if
14458         TARGET_FDPIC.
14459
14460 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14461
14462         Originally From Bernd Schmidt
14463         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
14464         FD-PIC.
14465
14466 2011-05-03  Jeff Law  <law@redhat.com>
14467
14468         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
14469         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
14470         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
14471         than accessing AUX field directly.  Free the AUX field before
14472         clearing it.
14473         (thread_block, thread_through_loop_header): Likewise.
14474         (thread_single_edge, mark_threaded_blocks): Likewise.
14475         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
14476         (register_jump_thread): Do not attempt to thread to a NULL edge.
14477
14478 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
14479
14480         * function.c (init_function_start): Call decide_function_section.
14481         * varasm.c (decide_function_section): New function.
14482         (assemble_start_function): When not using
14483         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
14484         or first_function_block_is_cold.
14485         * rtl.h (decide_function_section): Declare.
14486
14487 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
14488             Jakub Jelinek  <jakub@redhat.com>
14489
14490         PR target/48774
14491         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
14492         only succeed if req_mode is the same as set_mode.
14493
14494 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
14495
14496         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
14497         * genemit.c (gen_exp): Handle RETURN.
14498         * emit-rtl.c (verify_rtx_sharing): Likewise.
14499         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
14500         * rtl.c (copy_rtx): RETURN is shared.
14501         * rtl.h (enum global_rtl_index): Add GR_RETURN.
14502         (ret_rtx): New.
14503         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
14504         * config/s390/s390.c (s390_emit_epilogue): Likewise.
14505         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
14506         * config/cris/cris.c (cris_expand_return): Likewise.
14507         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
14508         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
14509         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
14510         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
14511         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
14512         Likewise.
14513         * config/v850/v850.c (expand_epilogue): Likewise.
14514         * config/bfin/bfin.c (bfin_expand_call): Likewise.
14515         * config/arm/arm.md (epilogue): Likewise.
14516         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
14517         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
14518         variable to ret_reg.
14519
14520 2011-05-03  Richard Guenther  <rguenther@suse.de>
14521
14522         PR lto/48846
14523         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
14524         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
14525         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
14526
14527 2011-05-03  Richard Guenther  <rguenther@suse.de>
14528
14529         * c-decl.c (grokdeclarator): Instead of looking at
14530         TREE_OVERFLOW check if the constant fits in the index type.
14531
14532 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
14533
14534         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
14535         (vec_store_lanes<mode><mode>): Likewise.
14536
14537 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
14538
14539         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
14540         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
14541         convert_optab_index values.
14542         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
14543         * genopinit.c (optabs): Initialize the new optabs.
14544         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
14545         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
14546         (expand_STORE_LANES): New functions.
14547         * tree.h (build_array_type_nelts): Declare.
14548         * tree.c (build_array_type_nelts): New function.
14549         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
14550         (vect_model_load_cost): Likewise.
14551         (vect_store_lanes_supported, vect_load_lanes_supported)
14552         (vect_record_strided_load_vectors): Declare.
14553         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
14554         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
14555         (vect_transform_strided_load): Split out statement recording into...
14556         (vect_record_strided_load_vectors): ...this new function.
14557         * tree-vect-stmts.c (create_vector_array, read_vector_array)
14558         (write_vector_array, create_array_ref): New functions.
14559         (vect_model_store_cost): Add store_lanes_p argument.
14560         (vect_model_load_cost): Add load_lanes_p argument.
14561         (vectorizable_store): Try to use store-lanes functions for
14562         interleaved stores.
14563         (vectorizable_load): Likewise load-lanes and loads.
14564         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
14565         to vect_model_store_cost.
14566         (vect_build_slp_tree): Likewise vect_model_load_cost.
14567
14568 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
14569
14570         * hooks.h (hook_bool_mode_uhwi_false): Declare.
14571         * hooks.c (hook_bool_mode_uhwi_false): New function.
14572         * target.def (array_mode_supported_p): New hook.
14573         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
14574         * doc/tm.texi: Regenerate.
14575         * stor-layout.c (mode_for_array): New function.
14576         (layout_type): Use it.
14577         * config/arm/arm.c (arm_array_mode_supported_p): New function.
14578         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
14579
14580 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
14581
14582         PR target/48723
14583         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
14584         for -fstack-check if the size to allocate is negative.
14585
14586 2011-05-02  Lawrence Crowl  <crowl@google.com>
14587
14588         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
14589         (timevar_cond_start): New for starting a timer only when it is not
14590         already running.
14591         (timevar_cond_stop): New for stopping a timer when it was not already
14592         running.
14593
14594         * timevar.c (timevar_stop): Enable start/stop timers to start again.
14595         (timevar_cond_start): New as above.
14596         (timevar_cond_stop): New as above.
14597
14598         * timevar.def: Add start/stop timers for compiler phases,
14599         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
14600         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
14601         and TV_PHASE_FINALIZE.
14602         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
14603         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
14604         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
14605         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
14606         Make unused TV_OVERLOAD into a start/stop timer.
14607
14608         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
14609         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
14610         to indicate that they are start/stop timers.
14611
14612         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
14613         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
14614         Move initialization to do_compile.
14615         (do_compile): Add initialization from above.
14616         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
14617
14618         * c-decl.c (c_write_global_declarations): Add start/stop of
14619         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
14620
14621         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
14622         or TV_PARSE_INLINE, as appropriate.
14623         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
14624         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
14625
14626 2011-05-02  Jason Merrill  <jason@redhat.com>
14627
14628         PR c++/40975
14629         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
14630
14631 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
14632
14633         PR c/35445
14634         * c-decl.c (finish_decl): Only create a composite if the types are
14635         compatible.
14636
14637 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
14638
14639         * config/fr30/fr30-protos.h (Mmode): Don't define.
14640         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
14641         definition where used.
14642         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
14643         define.  Expand definitions where used.
14644         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
14645         Expand definitions where used.
14646         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
14647         rx_function_arg, rx_function_arg_advance,
14648         rx_function_arg_boundary): Expand definitions of those macros.
14649         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
14650         definition where used.
14651
14652 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
14653
14654         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
14655         reg<->xmm moves.
14656         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
14657         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
14658         with *movv2sf_internal_rex64_avx.
14659         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
14660         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
14661         Use %v prefix in insn mnemonic to handle TARGET_AVX.
14662         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
14663         "vex" in "prefix" attribute calculation.
14664         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
14665
14666 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
14667
14668         PR target/47951
14669         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
14670         inputs match the output.
14671
14672 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
14673
14674         PR target/47955
14675         * config/m68k/m68k.c (m68k_expand_prologue): Set
14676         current_function_static_stack_size.
14677
14678 2011-05-02   Jan Hubicka  <jh@suse.cz>
14679
14680         * lto-streamer.c (lto_streamer_cache_insert_1,
14681         lto_streamer_cache_lookup, lto_streamer_cache_create,
14682         lto_streamer_cache_delete): Use pointer map instead of hashtable.
14683         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
14684
14685 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
14686
14687         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
14688         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
14689         config/m68k/t-opts: New files.
14690         * config/m68k/m68k-tables.opt: New file (generated).
14691         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
14692         extra_options and m68k/t-opts to tmake_file.
14693         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
14694         (all_isas): Initialize using m68k-isas.def.
14695         (all_microarchs): Initialize using m68k-microarchs.def.
14696         (m68k_find_selection): Remove.
14697         (m68k_handle_option): Don't assert that global structures are in
14698         use.  Use error_at.  Access variables via opts pointer.  Don't
14699         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
14700         directly for -m68020-40 and -m68020-60.
14701         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
14702         m68k_tune_entry here.
14703         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
14704         to m68k-opts.h.
14705         (m68k_library_id_string): Remove declaration.
14706         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
14707         (m68k_library_id_string): New Variable.
14708         (march=, mcpu=, mtune=): Use Enum and Var.
14709
14710 2011-05-02  Richard Guenther  <rguenther@suse.de>
14711
14712         * varasm.c (output_constructor_regular_field): Compute zero-based
14713         index with double-ints.  Make sure to ICE instead of producing
14714         wrong code.
14715         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
14716         in asserts.  Properly use a signed type.
14717
14718 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
14719
14720         * config/i386/sse.md (V): New mode iterator.
14721         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
14722         TARGET_SSE2.
14723         (V_256): Rename from AVX256MODE.
14724         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
14725         condition to all users.
14726         (VF1): Ditto.
14727         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
14728         condition to all users.
14729         (VF_128): Make V4SF mode unconditional.
14730         (VF_256): Rename from AVX256MODEF2P.
14731         (VI4F_128): Rename from SSEMODE4S.
14732         (VI8F_128): Rename from SSEMODE2D.
14733         (VI4F_256): Rename from AVX256MODE8P.
14734         (VI8F_256): Rename from AVX256MODE4P.
14735         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
14736         (ssescalarmodesuffix): Remove SF and DF modes.
14737         (SSEMODE124): Remove.
14738         (SSEMODE1248): Ditto.
14739         (SSEMODEF2P): Ditto.
14740         (AVXMODEF2P): Ditto.
14741         (AVXMODEFDP): Ditto.
14742         (AVXMODEFSP): Ditto.
14743         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
14744         unconditional.
14745         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
14746         unconditional.
14747         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
14748         xop_pcmov_<mode>256.  Use V mode iterator.
14749
14750         Adjust RTX patterns globally for renamed mode attributes.
14751
14752 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14753
14754         * haifa-sched.c (sched_emit_insn): Emit insn before first
14755         non-scheduled insn.  Inform back-end about new insn.  Add
14756         new insn to scheduled_insns list.
14757
14758 2011-05-02  Richard Guenther  <rguenther@suse.de>
14759
14760         PR tree-optimization/48822
14761         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
14762         (process_scc): Indicate which iteration we start.
14763
14764 2011-05-02  Jan Hubicka  <jh@suse.cz>
14765
14766         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
14767         (lto_section_overrun): New.
14768         * lto-section-out.c (append_block): Rename to ...
14769         (lto_append_block): ... this one; export.
14770         (lto_output_1_stream): Move lto lto-streamer.h
14771         (lto_output_data_stream): Update.
14772         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
14773         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
14774         functions.
14775
14776 2011-05-02  Richard Guenther  <rguenther@suse.de>
14777
14778         * tree.c (tree_code_counts): New global array.
14779         (record_node_allocation_statistics): Count individual tree codes.
14780         (dump_tree_statistics): Dump individual code stats.
14781
14782 2011-05-01  Jan Hubicka  <jh@suse.cz>
14783
14784         * ipa-inline.c (caller_growth_limits): Fix thinko when
14785         looking for largest stack frame.
14786         * ipa-inline.h (dump_inline_summary): Declare.
14787         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
14788         on stack usage.
14789         (dump_inline_summary): Export.
14790         (debug_inline_summary): Declare as DEBUG_FUNCTION.
14791
14792 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
14793
14794         * reginfo.c (memory_move_cost): Change rclass argument type form
14795         'enum reg_class' to reg_class_t.
14796         * reload.h (memory_move_cost): Update prototype.
14797         * postreload.c reload_cse_simplify_set): Change type dclass var to
14798         reg_class_t.
14799         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
14800         Update prototype.
14801         (ira_allocate_and_set_costs): Change aclass argument type form
14802         'enum reg_class' to reg_class_t.
14803         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
14804         Change aclass argument type to reg_class_t.
14805         (update_conflict_hard_reg_costs): Change type aclass and pref vars
14806         to reg_class_t.
14807         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
14808         memory_move_cost call.
14809
14810         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
14811         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
14812         Change type tmp var to reg_class_t.
14813
14814 2011-04-30  Jan Hubicka  <jh@suse.cz>
14815
14816         * ipa-inline.c (can_inline_edge_p): Disregard limits when
14817         inlining into function with flatten attribute.
14818         (want_inline_small_function_p): Be more realistic about inlining
14819         cold calls where callee size grows.
14820
14821 2011-04-30  Jan Hubicka  <jh@suse.cz>
14822
14823         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
14824         flags.
14825
14826 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
14827
14828         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
14829         PRINT_OPERAND_PUNCT_VALID_P): Remove.
14830         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
14831         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
14832         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14833         (print_operand): Rename to...
14834         (sparc_print_operand): ...this. Make static. Adjust
14835         sparc_print_operand function call.
14836         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
14837         functions.
14838
14839 2011-04-30  Jan Hubicka  <jh@suse.cz>
14840
14841         PR middle-end/48752
14842         * ipa-inline.c (early_inliner): Disable when doing late
14843         addition of function.
14844
14845 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
14846
14847         * dwarf2out.c (get_address_mode): New inline.
14848         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
14849         if not dwarf_strict emit
14850         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
14851         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
14852         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
14853         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
14854         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
14855         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
14856         mem_loc_descriptor callers.
14857         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14858         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
14859         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
14860         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
14861         (base_types): New variable.
14862         (get_base_type_offset, calc_base_type_die_sizes,
14863         base_type_for_mode, mark_base_types, base_type_cmp,
14864         move_marked_base_types): New functions.
14865         (calc_die_sizes): Assert that die_offset is 0 or equal to
14866         next_die_offset.
14867         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
14868         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
14869         callers.  If not dwarf_strict, call mem_loc_descriptor even for
14870         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
14871         (gen_subprogram_die): Don't give up on call site parameters
14872         with non-integral or large integral modes.  Adjust
14873         mem_loc_descriptor callers.
14874         (prune_unused_types): Call prune_unused_types_mark on base_types
14875         vector entries.
14876         (resolve_addr): Call mark_base_types.
14877         (dwarf2out_finish): Call move_marked_base_types.
14878
14879         PR tree-optimization/48809
14880         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
14881         type.
14882         (gen_inbound_check): Don't compute index_expr - range_min in utype
14883         again, instead reuse SSA_NAME initialized in build_arrays.
14884         Remove two useless gsi_for_stmt calls.
14885
14886 2011-04-29  Jeff Law  <law@redhat.com>
14887
14888         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
14889
14890 2011-04-29  Martin Jambor  <mjambor@suse.cz>
14891
14892         * cgraph.h (cgraph_postorder): Remove declaration.
14893         * ipa-utils.h (ipa_free_postorder_info): Declare.
14894         (ipa_reverse_postorder): Likewise.
14895         * cgraphunit.c: Include ipa-utils.h.
14896         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
14897         * ipa-inline.c: Include ipa-utils.h.
14898         (ipa_inline): Update call to ipa_reverse_postorder.
14899         * ipa-pure-const.c (propagate_pure_const): Update call to
14900         ipa_reduced_postorder and ipa_print_order.  Call
14901         ipa_free_postorder_info to clean up.
14902         (propagate_nothrow): Likewise.
14903         * ipa-reference.c (propagate): Removed a useless call to
14904         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
14905         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
14906         * ipa.c: Include ipa-utils.h.
14907         (ipa_profile): Update call to ipa_reverse_postorder.
14908         (cgraph_postorder): Moved to...
14909         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
14910         (ipa_utils_print_order): Renamed to ipa_print_order.
14911         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
14912         comments.
14913         (ipa_free_postorder_info): New function.
14914         * passes.c: Include ipa-utils.h.
14915         (do_per_function_toporder): Update call to ipa_reverse_postorder.
14916         (ipa_write_summaries): Likewise.
14917         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
14918         (cgraphunit.o): Likewise.
14919         (ipa.o): Likewise.
14920         (ipa-inline.o): Likewise.
14921
14922 2011-04-29  Jan Hubicka  <jh@suse.cz>
14923
14924         * gcc.dg/tree-ssa/inline-10.c: New testcase.
14925         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
14926         * ipa-inline.h (clause_t): Turn into unsigned int.
14927         * ipa-inline-analysis.c (add_clause): Do more simplification.
14928         (and_predicates): Shortcut more cases.
14929         (predicates_equal_p): Move forward; check that clauses are properly
14930         ordered.
14931         (or_predicates): Shortcut more cases.
14932         (edge_execution_predicate): Rewrite as...
14933         (set_cond_stmt_execution_predicate): ... this function; handle
14934         __builtin_constant_p.
14935         (set_switch_stmt_execution_predicate): New .
14936         (compute_bb_predicates): New.
14937         (will_be_nonconstant_predicate): Update TODO.
14938         (estimate_function_body_sizes): Use compute_bb_predicates
14939         and free them later, always try to estimate if stmt is constant.
14940         (estimate_time_after_inlining, estimate_size_after_inlining):
14941         Gracefully handle optimized out edges.
14942         (read_predicate): Fix off by one error.
14943
14944 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
14945
14946         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
14947
14948 2011-04-27  Xinliang David Li  <davidxl@google.com>
14949
14950         * tree-profile.c (init_ic_make_global_vars): Set
14951         tls attribute on ic vars.
14952         * coverage.c (coverage_end_function): Initialize
14953         function_list with zero.
14954
14955 2011-04-29  Richard Guenther  <rguenther@suse.de>
14956
14957         * builtins.c (fold_builtin_classify_type): Use integer_type_node
14958         for the type of the result.
14959         (fold_builtin_isascii): Likewise.
14960         (fold_builtin_toascii): Use integer_type_node where appropriate.
14961         (fold_builtin_logb): Likewise.
14962         (fold_builtin_frexp): Likewise.
14963         (fold_builtin_strstr): Likewise.
14964         (fold_builtin_strpbrk): Likewise.
14965         (fold_builtin_fputs): Likewise.
14966         (fold_builtin_sprintf): Likewise.
14967         (fold_builtin_snprintf): Likewise.
14968         (fold_builtin_printf): Likewise.
14969         (do_mpfr_remquo): Use a proper type for the assigned constant.
14970         (do_mpfr_lgamma_r): Likewise.
14971         * dwarf2out.c (resolve_one_addr): Use size_int.
14972         * except.c (init_eh): Likewise.
14973         (assign_filter_values): Use integer_type_node for filter values.
14974         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
14975         indices.
14976         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
14977         for EH region numbers.
14978         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
14979         for the shift amount.
14980
14981 2011-04-29  Richard Guenther  <rguenther@suse.de>
14982
14983         * expr.h (expand_shift): Rename to ...
14984         (expand_variable_shift): ... this.
14985         (expand_shift): Take a constant shift amount.
14986         * expmed.c (expand_shift): Rename to ...
14987         (expand_variable_shift): ... this.
14988         (expand_shift): New wrapper around expand_variable_shift.
14989         * expr.c (convert_move, emit_group_load_1, emit_group_store,
14990         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
14991         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
14992         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
14993         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
14994         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
14995         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
14996         emit_store_flag_1, emit_store_flag): Likewise.
14997         * builtins.c (expand_builtin_signbit): Likewise.
14998         * calls.c (load_register_parameters): Likewise.
14999         * function.c (assign_parm_setup_block): Likewise.
15000         * lower-subreg.c (resolve_shift_zext): Likewise.
15001         * optabs.c (widen_bswap, expand_abs_nojump,
15002         expand_one_cmpl_abs_nojump, expand_float): Likewise.
15003         * spu/spu.c (spu_expand_extv): Likewise.
15004         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
15005
15006 2011-04-29  Richard Guenther  <rguenther@suse.de>
15007
15008         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
15009         for the remapped region number.
15010         * predict.c (build_predict_expr): Use integer_type_node for the
15011         predict kind.
15012         * fold-const.c (fold_binary_loc): Use integer_type_node for
15013         the shift amount.  Use a proper type for the PLUS_EXPR operand.
15014
15015 2011-04-29  Michael Matz  <matz@suse.de>
15016
15017         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
15018         other trees that just builtins.
15019         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
15020
15021 2011-04-29  Richard Guenther  <rguenther@suse.de>
15022
15023         * tree-nested.c (get_trampoline_type): Use size_int.
15024         (get_nl_goto_field): Likewise.
15025         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
15026         for all indexes.
15027         (lower_eh_constructs_2): Likewise.
15028         (lower_resx): Likewise.
15029         (lower_eh_dispatch): Likewise.
15030         * tree-mudflap.c (mf_build_string): Use size_int.
15031         (mudflap_register_call): Use integer_type_node for the flag.
15032         (mudflap_enqueue_constant): Use size_int.
15033         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
15034         instead of rebuilding it.
15035
15036 2011-04-29  Richard Guenther  <rguenther@suse.de>
15037
15038         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
15039         Handle OBJ_TYPE_REF.
15040         (find_func_aliases_for_call): Use it more consistently.
15041
15042 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
15043
15044         * haifa-sched.c (last_nondebug_scheduled_insn): New.
15045         (rank_for_schedule): Use it.
15046         (schedule_block): Set it.
15047
15048 2011-04-28  David Li  <davidxl@google.com>
15049
15050         * tree.c (crc32_string): Use crc32_byte.
15051         (crc32_byte): New function.
15052         * tree.h (crc32_byte): New function.
15053         * gcov.c (read_graph_file): Handle new cfg_cksum.
15054         (read_count_file): Ditto.
15055         * profile.c (instrument_values): Ditto.
15056         (get_exec_counts): Ditto.
15057         (read_profile_edge_counts): Ditto.
15058         (compute_branch_probabilities): Ditto.
15059         (compute_value_histograms): Ditto.
15060         (branch_prob): Ditto.
15061         (end_branch_prob): Ditto.
15062         * coverage.c (read_counts_file): Ditto.
15063         (get_coverage_counts): Ditto.
15064         (tree_coverage_counter_addr): Ditto.
15065         (coverage_checksum_string): Ditto.
15066         (coverage_begin_output): Ditto.
15067         (coverage_end_function): Ditto.
15068         (build_fn_info_type): Ditto.
15069         (build_fn_info_value): Ditto.
15070         * libgcov.c (gcov_exit): Ditto.
15071         * gcov-dump.c (tag_function): Ditto.
15072         (compute_checksum): Remove.
15073
15074 2011-04-29  Alan Modra  <amodra@gmail.com>
15075
15076         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15077         unspec plus offset.  Tidy macho code.
15078
15079 2011-04-29  Martin Jambor  <mjambor@suse.cz>
15080
15081         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
15082         node instead of a decl.  Update all callers.
15083         * cgraph.h: Update declaration.
15084
15085 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
15086
15087         PR tree-optimization/48765
15088         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
15089         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
15090         to indicate if loop aware SLP is being used.  Scan the statements
15091         and update the vectorization factor according to the type of
15092         vectorization before statement analysis.
15093         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
15094         pass it to vect_analyze_loop_operations.
15095         (vectorizable_reduction): Set number of copies to 1 in case of pure
15096         SLP statement.
15097         * tree-vect-stmts.c (vectorizable_conversion,
15098         vectorizable_assignment, vectorizable_shift,
15099         vectorizable_operation, vectorizable_type_demotion,
15100         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
15101         Likewise.
15102         (vectorizable_condition): Move the check that it is not SLP
15103         vectorization before the number of copies check.
15104         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
15105         to vectorize the loop using SLP.
15106
15107 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
15108
15109         PR middle-end/48597
15110         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
15111         inline asm.
15112
15113 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
15114
15115         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
15116         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
15117         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15118         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15119         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
15120         linux*.h headers.
15121         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
15122         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15123         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15124         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15125         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15126         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
15127         REG_NAME.
15128         * config/i386/linux.h (REG_NAME): Don't define.
15129         * config/i386/linux64.h (REG_NAME): Don't define.
15130         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
15131         Undefine before defining.
15132
15133 2011-04-28  Jan Hubicka  <jh@suse.cz>
15134
15135         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
15136         nonconstant_names array.
15137         (estimate_function_body_sizes): Build nonconstant_names array; handle
15138         BUILT_IN_CONSTANT_P.
15139
15140 2011-04-28  Richard Guenther  <rguenther@suse.de>
15141
15142         PR bootstrap/48804
15143         Revert
15144         2011-04-28  Richard Guenther  <rguenther@suse.de>
15145
15146         * tree-ssa-structalias.c (solve_constraints): Build succ graph
15147         as late as possible.
15148
15149 2011-04-28  Richard Guenther  <rguenther@suse.de>
15150
15151         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
15152         (debug_constraint): Do it here.
15153         (dump_constraints): And here.
15154         (rewrite_constraints): And here.
15155         (dump_constraint_edge): Remove.
15156         (dump_constraint_graph): Rewrite to produce DOT output.
15157         (solve_constraints): Build succ graph as late as possible.
15158         Dump constraint graphs before and after solving.
15159
15160 2011-04-28  Richard Guenther  <rguenther@suse.de>
15161
15162         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15163         New function split out from ...
15164         (find_func_aliases): ... here.  Call it.
15165         (find_func_aliases_for_call): Likewise.
15166
15167 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15168
15169         * internal-fn.h (internal_fn_name_array): Declare.
15170         (internal_fn_flags_array): Likewise.
15171
15172 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
15173
15174         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
15175         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
15176         Move from sse.md.
15177         (ssemodefsuffix): Remove.
15178         (ssevecmodesuffix): New mode attribute.
15179         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
15180         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
15181         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
15182         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
15183         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
15184         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
15185         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
15186         ssemodesuffix mode attribute.
15187         (float splitters): Use ssevecmodesuffix mode attribute.
15188         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
15189         (sseinsmode): Rename from avxvecmode.
15190         (avxsizesuffix): Rename from avxmodesuffix.
15191         (sseintvecmode): Rename from avxpermvecmode.
15192         (ssedoublevecmode): Rename from ssedoublesizemode.
15193         (ssehalfvecmode): Rename from avxhalfvecmode.
15194         (ssescalarmode): Rename from avxscalarmode.
15195         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
15196         templates for ssemodesuffix mode attribute.
15197         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
15198         mode attribute.
15199
15200         Adjust RTX patterns globally for renamed mode attributes.
15201
15202 2011-04-27  Jan Hubcika  <jh@suse.cz>
15203
15204         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
15205         * ipa-inline-analysis.c: Include alloc-pool.h.
15206         (edge_predicate_pool): New.
15207         (trye_predicate_p): New function
15208         (false_predicate_p): New function.
15209         (add_clause): Sanity check that false clauses are "optimized";
15210         never add clauses to predicate that is already known to be false.
15211         (and_predicate): Use flase_predicate_p.
15212         (evaulate_predicate): Rename to ...
15213         (evaluate_predicate): ... this one; update all callers; assert
15214         that false is not listed among possible truths.
15215         (dump_predicate): Use true_predicate_p.
15216         (account_size_time): Use false_predicate_p.
15217         (evaulate_conditions_for_edge): Rename to ...
15218         (evaluate_conditions_for_edge) ... this one.
15219         (edge_set_predicate): New function.
15220         (inline_edge_duplication_hook): Duplicate edge predicates.
15221         (inline_edge_removal_hook): Free edge predicates.
15222         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
15223         (dump_inline_summary): Update.
15224         (estimate_function_body_sizes): Set edge predicates.
15225         (estimate_calls_size_and_time): Handle predicates.
15226         (estimate_callee_size_and_time): Update.
15227         (remap_predicate): Add toplev_predicate; update comment.
15228         (remap_edge_predicates): New function.
15229         (inline_merge_summary): Compute toplev predicate; update.
15230         (read_predicate): New function.
15231         (read_inline_edge_summary): Use it.
15232         (inline_read_section): Likewise.
15233         (write_predicate): New function.
15234         (write_inline_edge_summary): Use it.
15235         (inline_write_summary): Likewise.
15236         (inline_free_summary): Free alloc pool and edge summary vec.
15237
15238 2011-04-27  Richard Guenther  <rguenther@suse.de>
15239
15240         * tree-ssa-structalias.c (changed_count): Remove.
15241         (changed): Use a bitmap.
15242         (unify_nodes): Adjust.
15243         (do_sd_constraint): Likewise.
15244         (do_ds_constraint): Likewise.
15245         (do_complex_constraint): Likewise.
15246         (solve_graph): Likewise.
15247
15248 2011-04-27  Jan Hubicka  <jh@suse.cz>
15249
15250         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
15251
15252 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
15253
15254         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
15255         (avx_vperm2f128_*_operand): Ditto.
15256         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
15257         Use avx_vpermilp_parallel in insn condition.
15258         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
15259         Use avx_vperm2f128_parallel in insn condition.
15260
15261 2011-04-27  Richard Guenther  <rguenther@suse.de>
15262
15263         * Makefile.in (tree-ssa-structalias.o): Remove
15264         gt-tree-ssa-structalias.h dependency.
15265         (GTFILES): Remove tree-ssa-structalias.c.
15266         * tree.c (allocate_decl_uid): New function.
15267         (make_node_stat): Use it.
15268         (copy_node_stat): Likewise.
15269         * tree.h (allocate_decl_uid): Declare.
15270         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
15271         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
15272         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
15273         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
15274         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
15275         (struct heapvar_map): Likewise.
15276         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
15277         heapvar_insert): Likewise.
15278         (make_heapvar_for): Rename to ...
15279         (make_heapvar): ... this.  Simplify.
15280         (fake_var_decl_obstack): New global var.
15281         (build_fake_var_decl): New function.
15282         (make_constraint_from_heapvar): Adjust.
15283         (handle_lhs_call): Likewise.
15284         (create_function_info_for): Likewise.
15285         (intra_create_variable_infos): Likewise.
15286         (init_alias_vars): Allocate fake_var_decl_obstack.
15287         (init_alias_heapvars, delete_alias_heapvars): Remove.
15288         (compute_points_to_sets): Do not call init_alias_heapvars.
15289         (ipa_pta_execute): Likewise.
15290         (delete_points_to_sets): Free fake_var_decl_obstack.
15291
15292 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15293
15294         * config/spu/divmovti4.c (union qword_UTItype): New data type.
15295         (si_from_UTItype, si_to_UTItype): New functions.
15296         (__udivmodti4): Use them to implement type-punning.
15297         * config/spu/multi3.c (union qword_TItype): New data type.
15298         (si_from_TItype, si_to_TItype): New functions.
15299         (__multi3): Use them to implement type-punning.
15300
15301 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15302
15303         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
15304
15305 2011-04-27  Jan Hubicka  <jh@suse.cz>
15306
15307         * ipa-prop.c (function_insertion_hook_holder): New holder.
15308         (ipa_add_new_function): New function.
15309         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
15310         Register/deregister holder.
15311
15312 2011-04-27  Richard Guenther  <rguenther@suse.de>
15313
15314         PR tree-optimization/48772
15315         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
15316
15317 2011-04-27  Richard Guenther  <rguenther@suse.de>
15318
15319         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
15320         TARGET_MEM_REF handling.
15321
15322 2011-04-27  Nick Clifton  <nickc@redhat.com>
15323
15324         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
15325         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
15326         (REG_CLASS_NAMES): Likewise.
15327         (REG_CLASS_CONTENTS): Likewise.
15328         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
15329         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
15330         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
15331         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
15332         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
15333         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
15334         duplicate register classes.
15335         (frv_class_likely_spilled_p): Likewise.
15336         (frv_register_move_cost): Likewise.
15337
15338         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
15339         end of the regno_reg_class array.
15340
15341 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
15342
15343         PR c/48742
15344         * c-typeck.c (build_binary_op): Don't wrap arguments if
15345         int_operands is true.
15346
15347 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
15348
15349         PR target/48767
15350         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
15351         targetm.calls.must_pass_in_stack for void type.
15352
15353 2011-04-26  Jan Hubicka  <jh@suse.cz>
15354
15355         * cgraphbuild.c (build_cgraph_edges): Update call
15356         of cgraph_create_edge and cgraph_create_indirect_edge.
15357         * cgraph.c (cgraph_create_edge_including_clones,
15358         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
15359         cgraph_update_edges_for_call_stmt_node): Do not take nest
15360         argument; do not initialize call_stmt_size/time.
15361         (dump_cgraph_node): Do not dump nest.
15362         (cgraph_clone_edge): Do not take loop_nest argument;
15363         do not propagate it; do not clone call_stmt_size/time.
15364         (cgraph_clone_node): Likewise.
15365         (cgraph_create_virtual_clone): Update.
15366         * cgraph.h (struct cgraph_edge): Remove
15367         call_stmt_size/call_stmt_time/loop_nest.
15368         (cgraph_create_edge, cgraph_create_indirect_edge,
15369         cgraph_create_edge_including_clones, cgraph_clone_node): Update
15370         prototype.
15371         * tree-emutls.c (gen_emutls_addr): Update.
15372         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
15373         loop_nest; handle indirect calls, too.
15374         (clone_inlined_nodes): Do not care about updating inline summaries.
15375         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
15376         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
15377         stream call_stmt_size/call_stmt_time/loop_nest.
15378         * ipa-inline.c (edge_badness): Update.
15379         (ipa_inline): dump summaries after inlining.
15380         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
15381         New.
15382         (inline_edge_summary): New function.
15383         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
15384         (inline_edge_removal_hook): Handle edge summaries.
15385         (inline_edge_duplication_hook): New hook.
15386         (inline_summary_alloc): Alloc hooks.
15387         (initialize_growth_caches): Do not register removal hooks.
15388         (free_growth_caches); Do not free removal hook.
15389         (dump_inline_edge_summary): New function.
15390         (dump_inline_summary): Use it.
15391         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
15392         (inline_update_callee_summaries): New function.
15393         (inline_merge_summary): Use it.
15394         (do_estimate_edge_time, do_estimate_edge_growth): Update.
15395         (read_inline_edge_summary): New function.
15396         (inline_read_section): Use it.
15397         (write_inline_edge_summary): New function.
15398         (inline_write_summary): Use it.
15399         (inline_free_summary): Free edge new holders.
15400         * tree-inline.c (copy_bb): Update.
15401
15402 2011-04-26  Jason Merrill  <jason@redhat.com>
15403
15404         * tree-eh.c (lower_try_finally_switch): Create the label along with
15405         the CASE_LABEL_EXPR.
15406
15407 2011-04-26  David S. Miller  <davem@davemloft.net>
15408             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15409
15410         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
15411         * configure: Regenerate.
15412
15413 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
15414
15415         PR target/48258
15416         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
15417         reduction.
15418         (VEC_reduc): New code iterator and splitters for vector reduction.
15419         (VEC_reduc_name): Ditto.
15420         (VEC_reduc_rtx): Ditto.
15421         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
15422         (reduc_<VEC_reduc_name>_v4sf): Ditto.
15423
15424         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15425         support for extracting SF on VSX.
15426
15427         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
15428         generating xscvspdp.
15429         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
15430         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
15431         double add, minimum, maximum vector reduction.
15432         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
15433         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
15434         optimize double vector reduction.
15435         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
15436
15437 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
15438
15439         * config/fr30/fr30.h (inhibit_libc): Don't define.
15440         * config/m32r/m32r-protos.h: Correct comment.
15441         * config/v850/v850.h (GHS_default_section_names,
15442         GHS_current_section_names): Use tree, not union tree_node *.
15443
15444 2011-04-26  Xinliang David Li  <davidxl@google.com>
15445
15446         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
15447         * c-family/c-opts.c (c_common_handle_option): Set
15448         warn_maybe_uninitialized.
15449         * opts.c (common_handle_option): Ditto.
15450         * common.opt:  New option.
15451         * tree-ssa.c (warn_uninit): Add one more parameter.
15452         (warn_uninitialized_var): Pass warning code.
15453         * tree-flow.h: Interface change.
15454
15455 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15456
15457         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
15458         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
15459         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
15460
15461 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15462
15463         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
15464         * config/mips/mips.opt (mmips-tfile): Remove.
15465
15466         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
15467         mips-tdump reference to ...
15468         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
15469         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
15470         reference by Tru64 UNIX.
15471
15472 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
15473
15474         PR debug/48768
15475         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
15476         is error_mark_node, set value to NULL.
15477
15478         PR tree-optimization/48734
15479         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
15480         if return value from maybe_fold_*_comparsions isn't something
15481         the code is prepared to handle.
15482
15483 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
15484
15485         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
15486         mode check.
15487         (ext_QIreg_nomode_operands): Remove.
15488         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
15489         (*andsi_1): Ditto.
15490         (*andhi_1): Ditto.
15491
15492 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
15493
15494         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
15495
15496 2011-04-26  Richard Guenther  <rguenther@suse.de>
15497
15498         * c-typeck.c (build_unary_op): Do not expand array-refs via
15499         pointer arithmetic.  Only adjust qualifiers for function types.
15500
15501 2011-04-26  Richard Guenther  <rguenther@suse.de>
15502
15503         PR middle-end/48694
15504         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
15505         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
15506         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
15507         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
15508
15509 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
15510
15511         * doc/extend.texi: Document __underlying_type.
15512
15513 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
15514
15515         * config/rs6000/titan.md (automata_option "progress"): Remove.
15516
15517 2011-04-25  Jeff Law  <law@redhat.com>
15518
15519         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
15520
15521 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
15522
15523         * system.h (ENUM_BITFIELD): Remove.
15524
15525 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
15526             Eric Botcazou  <ebotcazou@adacore.com>
15527
15528         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
15529         for STORE_FLAG_VALUE==-1 case.
15530
15531 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
15532
15533         PR target/43804
15534         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
15535         LEGITIMATE_PIC_OPERAND_P.
15536
15537 2011-04-24  Jan Hubicka  <jh@suse.cz>
15538
15539         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
15540         WPA hack.
15541         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
15542         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
15543         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
15544         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
15545         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
15546         Sanity check predicate length.
15547         (remap_predicate): Likewise; sanity check jump functions.
15548         (inline_read_section, inline_write_summary): Sanity check
15549         predicate length.
15550
15551 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
15552
15553         PR other/48748
15554         * doc/extend.texi (Type Traits): Document __is_standard_layout,
15555         __is_literal_type, and __is_trivial; update throughout about
15556         possibly cv-qualified void types.
15557
15558 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
15559
15560         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
15561         testsuite and make it version agnostic.
15562
15563 2011-04-22  Jan Hubicka  <jh@suse.cz>
15564
15565         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
15566
15567 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
15568
15569         PR c/48685
15570         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
15571         to VOID_TYPE even around MODIFY_EXPR.
15572
15573 2011-04-22  Mike Stump  <mikestump@comcast.net>
15574
15575         * gensupport.c (read_md_rtx): Fix typo in comment.
15576         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
15577         comment.
15578
15579 2011-04-22  Jan Hubicka  <jh@suse.cz>
15580
15581         * gengtype.c (open_base_files): Add ipa-inline.h include.
15582         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
15583         ipa-prop.c; update all uses.
15584         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
15585         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
15586         merge summary of inlined function into former caller.
15587         * ipa-inline.c (max_benefit): Remove.
15588         (edge_badness): Compensate for removal of benefits.
15589         (update_caller_keys): Use
15590         reset_node_growth_cache/reset_edge_growth_cache.
15591         (update_callee_keys): Likewise.
15592         (update_all_callee_keys): Likewise.
15593         (inline_small_functions): Do not collect max_benefit; do not reset
15594         estimated_growth; call free_growth_caches and initialize_growth_caches.
15595         * ipa-inline.h (struct condition, type clause_t, struct predicate,
15596         struct size_time_entry): New structures.
15597         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
15598         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
15599         and estimated_growth.
15600         (edge_growth_cache_entry): New structure.
15601         (node_growth_cache, edge_growth_cache): New global vars.
15602         (estimate_growth): Turn into inline.
15603         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
15604         initialize_growth_caches, free_growth_caches): Declare.
15605         (estimate_edge_growth): Rewrite.
15606         (estimate_edge_time): Implement as inline cache lookup.
15607         (reset_node_growth_cache, reset_edge_growth_cache): New inline
15608         functions.
15609         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
15610         (NUM_CONDITIONS): New constant.
15611         (predicate_conditions): New enum.
15612         (IS_NOT_CONSTANT): New constant.
15613         (edge_removal_hook_holder): New var.
15614         (node_growth_cache, edge_growth_cache): New global vars.
15615         (true_predicate, single_cond_predicate, false_predicate,
15616         not_inlined_predicate, add_condition, add_clause, and_predicates,
15617         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
15618         dump_clause, dump_predicate, account_size_time,
15619         evaulate_conditions_for_edge): New functions.
15620         (inline_summary_alloc): Move to heap.
15621         (inline_node_removal_hook): Clear condition and entry vectors.
15622         (inline_edge_removal_hook): New function.
15623         (initialize_growth_caches, free_growth_caches): New function.
15624         (dump_inline_summary): Update.
15625         (edge_execution_predicate): New function.
15626         (will_be_nonconstant_predicate): New function.
15627         (estimate_function_body_sizes): Compute BB and constantness predicates.
15628         (compute_inline_parameters): Do not clear estimated_growth.
15629         (estimate_edge_size_and_time): New function.
15630         (estimate_calls_size_and_time): New function.
15631         (estimate_callee_size_and_time): New function.
15632         (remap_predicate): New function.
15633         (inline_merge_summary): New function.
15634         (do_estimate_edge_time): New function based on...
15635         (estimate_edge_time): ... this one.
15636         (do_estimate_edge_growth): New function.
15637         (do_estimate_growth): New function based on....
15638         (estimate_growth): ... this one.
15639         (inline_analyze_function): Analyze after deciding on jump functions.
15640         (inline_read_section): New function.
15641         (inline_read_summary): Use it.
15642         (inline_write_summary): Write all the new data.
15643         * ipa-prop.c (ipa_get_param_decl_index): Export.
15644         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
15645         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
15646         Declare.
15647         (ipa_get_lattice): Move here from ipa-cp.c
15648         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
15649         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
15650         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
15651         cgraph_edge_inlinable_p): Remove.
15652         * cgraphunit.c: Include ipainline.h
15653         (cgraph_process_new_functions): Update call of
15654         compute_inline_parameters.
15655
15656 2011-04-22  Richard Guenther  <rguenther@suse.de>
15657
15658         * tree.c (build_int_cst): Properly create canonicalized integer
15659         constants.
15660         (build_int_cst_type): Remove scary comments.
15661
15662 2011-04-22  Xinliang David Li  <davidxl@google.com>
15663
15664         * toplev.c (process_options): Enable -Werror=coverage-mismatch
15665         by default when -Wno-error is not specified.
15666         * opts-global.c (decode_options): Remove call to
15667         control_warning_options.
15668
15669 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
15670
15671         PR tree-optimization/48717
15672         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
15673         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
15674
15675 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
15676
15677         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
15678         definition where used.
15679
15680 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
15681
15682         PR c/48716
15683         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
15684         TREE_STATIC variables declared inside of some OpenMP construct.
15685
15686 2011-04-22  Martin Jambor  <mjambor@suse.cz>
15687
15688         PR middle-end/48585
15689         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
15690
15691 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
15692
15693         PR c/36750
15694         * c-typeck.c (pop_init_level): Do not warn about initializing
15695         with ` = {0}'.
15696
15697 2011-04-22  Alan Modra  <amodra@gmail.com>
15698
15699         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
15700         when returning call_cookie.
15701         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
15702         pointers, to functions with no more vector args than the current
15703         function, and some non-local calls for ABI_V4.
15704         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
15705         sibcall_nonlocal_aix64): Combine to ..
15706         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
15707         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
15708         (sibcall_value_nonlocal_aix<mode>): ..likewise.
15709         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
15710         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
15711         operand.
15712         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
15713         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
15714         sibcall_value_symbolic_64): Delete.
15715
15716 2011-04-21  Xinliang David Li  <davidxl@google.com>
15717
15718         * cgraph.h: Remove pid.
15719         * cgraph.c: Remove pid.
15720         * value-prof.c (init_node_map): New function.
15721         (del_node_map): New function.
15722         (find_func_by_funcdef_no): New function.
15723         (gimple_ic_transform): Call new function.
15724         * cgraphunit.c (cgraph_finalize_function): Remove pid.
15725         * function.c (get_last_funcdef_no): New function.
15726         * function.h (get_last_funcdef_no): New function.
15727         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
15728         to libgcov function.
15729         (tree-profiling): Call node map init and delete function.
15730
15731 2011-04-21  Ian Lance Taylor  <iant@google.com>
15732
15733         * godump.c (go_format_type): Use exported Go name for anonymous
15734         field name.
15735
15736 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
15737
15738         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
15739         Call builtin_function_type_list instead of builtin_function_type.
15740         (UNARY, BINARY, TRINARY, QUAD): Likewise.
15741
15742 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
15743
15744         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
15745         build_function_type_list instead of build_function_type.
15746         Delete variable `endlink'.
15747
15748 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
15749
15750         * config/s390/s390.c (s390_init_builtins): Call
15751         build_function_type_list instead of build_function_type.
15752
15753 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
15754
15755         * config/ia64/ia64.c (ia64_init_builtins): Call
15756         build_function_type_list instead of builtin_function_type.
15757
15758 2011-04-21  Easwaran Raman  <eraman@google.com>
15759
15760         * cfgexpand.c (stack_var): Remove OFFSET...
15761         (add_stack_var): ...and its reference here...
15762         (expand_stack_vars): ...and here.
15763         (stack_var_cmp): Sort by descending order of size.
15764         (partition_stack_vars): Change heuristic.
15765         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
15766         (dump_stack_var_partition): Add newline after each partition.
15767
15768 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
15769             Jeff Law  <law@redhat.com>
15770
15771         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
15772         * gengtype.c (matching_file_name_substitute): Likewise.
15773
15774 2011-04-21  Richard Guenther  <rguenther@suse.de>
15775
15776         PR lto/48703
15777         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
15778
15779 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
15780
15781         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
15782
15783 2011-04-21  Richard Guenther  <rguenther@suse.de>
15784
15785         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
15786         file name.
15787
15788 2011-04-21  Richard Guenther  <rguenther@suse.de>
15789
15790         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
15791         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
15792         Use DECL_P, not SSA_VAR_P.
15793         (ptr_derefs_may_alias_p): Likewise.
15794         (ptr_deref_may_alias_ref_p_1): Likewise.
15795         (decl_refs_may_alias_p): Likewise.
15796         (refs_may_alias_p_1): Likewise.
15797         (ref_maybe_used_by_call_p_1): Likewise.
15798         (call_may_clobber_ref_p_1): Likewise.
15799         (indirect_ref_may_alias_decl_p): Assume indirect refrences
15800         are either MEM_REF or TARGET_MEM_REF.
15801         (indirect_refs_may_alias_p): Likewise.
15802         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
15803         for MEM_EXPR of indirect calls.
15804
15805 2011-04-21  Tristan Gingold  <gingold@adacore.com>
15806
15807         * vmsdbgout.c (write_srccorr): Compute file length from the string.
15808         (dst_file_info_struct): Remove flen field.
15809         (lookup_filename): Remove code that set flen field.
15810
15811 2011-04-21  Tristan Gingold  <gingold@adacore.com>
15812
15813         * config/ia64/ia64.c (ia64_start_function): Add a guard.
15814
15815 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
15816
15817         PR target/48708
15818         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
15819         vec_extract and vec_concat for non-SSE4_1 targets.
15820
15821 2011-04-21  Richard Guenther  <rguenther@suse.de>
15822
15823         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
15824         return statements.
15825
15826 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
15827
15828         * config/i386/cygming.h (union tree_node, TREE): Don't define or
15829         undefine.
15830         (FILE): Don't undefine.
15831
15832 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
15833
15834         * config/alpha/alpha.c (struct machine_function): Use rtx, not
15835         struct rtx_def *.
15836         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
15837         struct rtx_def *.
15838         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
15839         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
15840         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
15841         rtx_def *.
15842         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
15843         definitions where used.
15844         * config/microblaze/microblaze.h (struct microblaze_args): Use
15845         rtx, not struct rtx_def *.
15846         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
15847         rtx_def *.
15848         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
15849         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
15850         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
15851         not struct rtx_def *.
15852         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
15853         struct rtx_def *.
15854         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
15855         rtx_def *.
15856         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
15857
15858 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
15859
15860         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
15861         operand_equal_p to compare DR_BASE_ADDRESSes.
15862         (vect_check_interleaving): Likewise.
15863
15864 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
15865
15866         PR target/46329
15867         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
15868         for all Neon struct constants.
15869
15870 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
15871
15872         * target.def (legitimate_constant_p): New hook.
15873         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
15874         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
15875         * doc/tm.texi: Regenerate.
15876         * hooks.h (hook_bool_mode_rtx_true): Declare.
15877         * hooks.c (hook_bool_mode_rtx_true): Define.
15878         * system.h (LEGITIMATE_CONSTANT_P): Poison.
15879         * calls.c (precompute_register_parameters): Replace uses of
15880         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
15881         (emit_library_call_value_1): Likewise.
15882         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
15883         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
15884         * ira-costs.c (scan_one_insn): Likewise.
15885         * recog.c (general_operand, immediate_operand): Likewise.
15886         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
15887         * reload1.c (init_eliminable_invariants): Likewise.
15888
15889         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
15890         mode argument.
15891         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
15892         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
15893         argument.
15894         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15895         * config/alpha/predicates.md (input_operand): Update call to
15896         alpha_legitimate_constant_p.
15897
15898         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
15899         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
15900         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
15901         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15902         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
15903         (arm_legitimate_constant_p): New functions.
15904         (arm_cannot_force_const_mem): Make static.
15905
15906         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
15907
15908         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
15909         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
15910         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
15911         instead of bfin_legitimate_constant_p.
15912         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
15913         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15914
15915         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
15916
15917         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
15918
15919         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
15920         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
15921         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15922         (frv_legitimate_constant_p): Make static.  Add a mode argument.
15923
15924         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
15925         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
15926         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
15927
15928         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
15929         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
15930         * config/i386/i386.c (legitimate_constant_p): Rename to...
15931         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
15932         argument.
15933         (ix86_cannot_force_const_mem): Update accordingly.
15934         (ix86_legitimate_address_p): Likewise.
15935         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15936         * config/i386/i386.md: Update commentary.
15937
15938         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
15939         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
15940         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15941         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
15942
15943         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
15944
15945         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
15946         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
15947         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15948         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
15949
15950         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
15951         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
15952         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
15953
15954         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
15955         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15956         (m32r_legitimate_constant_p): New function.
15957
15958         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
15959         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
15960         LEGITIMATE_CONSTANT_P.
15961         (LEGITIMATE_CONSTANT_P): Delete.
15962         * config/m68k/m68k.c (m68k_expand_prologue): Call
15963         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
15964         (m68k_legitimate_constant_p): New function.
15965         * config/m68k/m68k.md: Update comments.
15966
15967         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
15968         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15969         (mcore_legitimate_constant_p): New function.
15970
15971         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
15972         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
15973         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
15974         Add a mode argument.
15975         (mep_legitimate_address): Update accordingly.
15976         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15977
15978         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
15979         Delete.
15980         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
15981         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
15982         static.  Check OP's mode for VOIDmode.
15983         (microblaze_legitimate_constant_p): New function.
15984         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15985
15986         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
15987         * config/mips/mips.c (mips_legitimate_constant_p): New function.
15988         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
15989         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15990         * config/mips/predicates.md: Update comments.
15991
15992         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
15993         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
15994         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15995         (mmix_legitimate_constant_p): Make static, return a bool, and take
15996         a mode argument.
15997         (mmix_print_operand_address): Update accordingly.
15998
15999         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
16000         Delete.
16001         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
16002         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
16003         static.  Add a mode argument.
16004         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16005
16006         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
16007
16008         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
16009         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16010         (pa_legitimate_constant_p): New function.
16011
16012         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
16013
16014         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
16015         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16016         (pdp11_legitimate_constant_p): New function.
16017
16018         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
16019         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16020         (rs6000_legitimate_constant_p): New function.
16021
16022         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
16023         (rx_legitimate_constant_p): ...this.
16024         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
16025         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
16026         (rx_legitimate_constant_p): ...this.
16027         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16028         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
16029
16030         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
16031         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
16032         * config/s390/s390.c (legitimate_constant_p): Rename to...
16033         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
16034         and add a mode argument.
16035         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16036
16037         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
16038
16039         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
16040         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16041         (sh_legitimate_constant_p): New function.
16042
16043         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
16044         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
16045         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16046         (legitimate_constant_p): Rename to...
16047         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
16048         argument.
16049         (constant_address_p): Update accordingly.
16050
16051         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
16052         argument and return a bool.
16053         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
16054         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16055         (spu_legitimate_constant_p): Add a mode argument and return a bool.
16056         (spu_rtx_costs): Update accordingly.
16057         * config/spu/predicates.md (vec_imm_operand): Likewise.
16058
16059         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
16060
16061         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
16062         * config/v850/v850.c (v850_legitimate_constant_p): New function.
16063         (TARGET_LEGITIMATE_CONSTANT_P): Define.
16064
16065         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
16066         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
16067         * config/vax/vax.c (legitimate_constant_p): Likewise.
16068
16069         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
16070         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
16071         (xtensa_legitimate_constant_p): New function.
16072
16073 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
16074
16075         * target.def (cannot_force_const_mem): Add a mode argument.
16076         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
16077         * doc/tm.texi: Regenerate.
16078         * hooks.h (hook_bool_mode_rtx_false): Declare.
16079         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
16080         (hook_bool_mode_const_rtx_true): Likewise.
16081         (hook_bool_mode_rtx_false): New function.
16082         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
16083         to be non-VOID.  Update call to cannot_force_const_mem.
16084         (find_reloads): Update accordingly.
16085         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
16086         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
16087         argument.
16088         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
16089         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
16090         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
16091         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
16092         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
16093         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
16094         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
16095         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
16096         (m68k_cannot_force_const_mem): ...this new function.
16097         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
16098         argument.
16099         (mips_const_insns, mips_legitimize_const_move): Update calls.
16100         (mips_secondary_reload_class): Likewise.
16101         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
16102         (pa_cannot_force_const_mem): ...this new function.
16103         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
16104         (rs6000_cannot_force_const_mem): ...this new function.
16105         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
16106         argument.
16107         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
16108         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
16109         to...
16110         (xtensa_cannot_force_const_mem): ...this new function.
16111
16112 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
16113
16114         * config/mips/mips.c (mips16_build_function_stub): Call
16115         build_function_type_list instead of build_function_type.
16116         (mips16_build_call_stub): Likewise.
16117
16118 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
16119
16120         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
16121         instead of build_function_type.
16122
16123 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
16124
16125         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
16126         instead of build_function_type.
16127
16128 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
16129
16130         PR target/48678
16131         * config/i386/i386.md (insv): Change operand 0 constraint to
16132         "register_operand".  Change operand 1 and 2 constraint to
16133         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
16134         * config/i386/sse.md (sse4_1_pinsrb): Export.
16135         (sse2_pinsrw): Ditto.
16136         (sse4_1_pinsrd): Ditto.
16137         (sse4_1_pinsrq): Ditto.
16138         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
16139         * config/i386/i386.c (ix86_expand_pinsr): New.
16140
16141 2011-04-20  Easwaran Raman  <eraman@google.com>
16142
16143         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
16144         containing union type only with -fstrict-aliasing.
16145
16146 2011-04-20  Jim Meyering  <meyering@redhat.com>
16147
16148         Remove useless if-before-free tests.
16149         * calls.c (expand_call, save_area): Likewise.
16150         * cfgcleanup.c (try_forward_edges): Likewise.
16151         * collect2.c (collect_execute): Likewise.
16152         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
16153         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
16154         * coverage.c (coverage_checksum_string): Likewise.
16155         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
16156         * cselib.c (cselib_init): Likewise.
16157         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
16158         (df_set_clean_cfg): Likewise.
16159         * function.c (free_after_compilation): Likewise.
16160         * gcc.c (do_spec_1, main): Likewise.
16161         * gcov.c (create_file_names): Likewise.
16162         * gensupport.c (identify_predicable_attribute): Likewise.
16163         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
16164         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
16165         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
16166         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
16167         * ipa-pure-const.c (local_pure_const): Likewise.
16168         * ipa-reference.c (propagate): Likewise.
16169         * ira-costs.c (free_ira_costs): Likewise.
16170         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
16171         * matrix-reorg.c (mat_free): Likewise.
16172         * prefix.c (get_key_value): Likewise.
16173         * profile.c (compute_value_histograms): Likewise.
16174         * reload1.c (free_reg_equiv): Likewise.
16175         * sched-deps.c (free_deps): Likewise.
16176         * sel-sched-ir.c (fence_clear): Likewise.
16177         * sese.c (set_rename, if_region_set_false_region): Likewise.
16178         * tree-data-ref.c (free_rdg): Likewise.
16179         * tree-eh.c (lower_try_finally): Likewise.
16180         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
16181         * tree-ssa-live.c (delete_var_map): Likewise.
16182         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
16183         * tree-ssa-pre.c (phi_trans_add): Likewise.
16184
16185 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
16186
16187         PR tree-optimization/48611
16188         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
16189         beyond ERT_MUST_NOT_THROW region.
16190
16191 2011-04-20  Catherine Moore  <clm@codesourcery.com>
16192
16193         * config/mips/mips.opt (mfix-24k): New.
16194         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
16195         * config/mips/mips.md (length): Increase by 4 for stores if
16196         fixing 24K errata.
16197         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
16198         all noreorder if fixing 24K errata.
16199         * doc/invoke.texi: Document mfix-24k.
16200
16201 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
16202
16203         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
16204         quad-word modes, reduce to 9-bit index range when above 1016 limit.
16205
16206 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
16207
16208         * config/arm/arm.c (arm_gen_constant): Move movw support ....
16209         (const_ok_for_op): ... to here.
16210
16211 2011-04-20  Kai Tietz  <ktietz@redhat.com>
16212
16213         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
16214         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
16215
16216 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
16217
16218         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
16219
16220 2011-04-20  Richard Guenther  <rguenther@suse.de>
16221
16222         PR tree-optimization/47892
16223         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
16224         are if-convertible.
16225
16226 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
16227
16228         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
16229
16230 2011-04-20  Tristan Gingold  <gingold@adacore.com>
16231
16232         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
16233
16234 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
16235
16236         PR target/18145
16237
16238         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
16239         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
16240         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
16241         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
16242         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
16243
16244         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
16245         New prototype.
16246
16247         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
16248         (avr_asm_named_section, avr_asm_output_aligned_common,
16249         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
16250         New functions to update...
16251         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
16252         (avr_asm_init_sections): Overwrite section callbacks for
16253         data_section, bss_section.
16254         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
16255         from here to...
16256         (avr_file_end): ...here.
16257
16258 2011-04-20  Richard Guenther  <rguenther@suse.de>
16259
16260         PR middle-end/48695
16261         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
16262         objects and types here.  Adjust for their offset before comparing.
16263
16264 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
16265
16266         * tree-vect-stmts.c (vectorizable_store): Only chain one related
16267         statement per copy.
16268
16269 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
16270
16271         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
16272         (GIMPLE_H): Include $(INTERNAL_FN_H).
16273         (OBJS-common): Add internal-fn.o.
16274         (internal-fn.o): New rule.
16275         * internal-fn.def: New file.
16276         * internal-fn.h: Likewise.
16277         * internal-fn.c: Likewise.
16278         * gimple.h: Include internal-fn.h.
16279         (GF_CALL_INTERNAL): New gf_mask.
16280         (gimple_statement_call): Put fntype into a union with a new
16281         internal_fn field.
16282         (gimple_build_call_internal): Declare.
16283         (gimple_build_call_internal_vec): Likewise.
16284         (gimple_call_same_target_p): Likewise.
16285         (gimple_call_internal_p): New function.
16286         (gimple_call_internal_fn): Likewise.
16287         (gimple_call_fntype): Return null for internal calls.
16288         (gimple_call_set_fntype): Assert that the function is not internal.
16289         (gimple_call_set_fn): Likewise.
16290         (gimple_call_set_fndecl): Likewise.
16291         (gimple_call_set_internal_fn): New function.
16292         (gimple_call_addr_fndecl): Handle null functions.
16293         (gimple_call_return_type): Likewise null types.
16294         * gimple.c (gimple_build_call_internal_1): New function.
16295         (gimple_build_call_internal): Likewise.
16296         (gimple_build_call_internal_vec): Likewise.
16297         (gimple_call_same_target_p): Likewise.
16298         (gimple_call_flags): Handle calls to internal functions.
16299         (gimple_call_fnspec): New function.
16300         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
16301         (gimple_has_side_effects): Handle null functions.
16302         (gimple_rhs_has_side_effects): Likewise.
16303         (gimple_call_copy_skip_args): Handle calls to internal functions.
16304         * cfgexpand.c (expand_call_stmt): Likewise.
16305         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
16306         * gimple-fold.c (gimple_fold_call): Handle null functions.
16307         (gimple_fold_stmt_to_constant_1): Don't fold
16308         calls to internal functions.
16309         * gimple-low.c (gimple_check_call_args): Handle calls to internal
16310         functions.
16311         * gimple-pretty-print.c (dump_gimple_call): Likewise.
16312         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
16313         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
16314         (do_warn_unused_result): Likewise.
16315         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
16316         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
16317         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
16318         the target of a call.
16319         (initialize_hash_element): Update accordingly.
16320         (hashable_expr_equal_p): Use gimple_call_same_target_p.
16321         (iterative_hash_hashable_expr): Handle calls to internal functions.
16322         (print_expr_hash_elt): Likewise.
16323         * tree-ssa-pre.c (can_value_number_call): Likewise.
16324         (eliminate): Handle null functions.
16325         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
16326         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
16327         (find_func_aliases): Likewise.
16328         * value-prof.c (gimple_ic_transform): Likewise.
16329         (gimple_indirect_call_to_profile): Likewise.
16330         * lto-streamer-in.c (input_gimple_stmt): Likewise.
16331         * lto-streamer-out.c (output_gimple_stmt): Likewise.
16332
16333 2011-04-19  Jan Hubicka  <jh@suse.cz>
16334
16335         * ipa-inline-transform.c (save_inline_function_body): Add comments.
16336         * ipa-inline.c (inline_small_functions): Compute summaries first,
16337         populate heap later.
16338
16339 2011-04-19  Jan Hubicka  <jh@suse.cz>
16340
16341         * cgraph.h (save_inline_function_body): Remove.
16342         * ipa-inline-transform.c: New file, broke out of...
16343         * ipa-inline.c: ... this one; Update toplevel comment.
16344         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
16345         make global.
16346         (update_noncloned_frequencies): Move to ipa-inline-transform.c
16347         (cgraph_mark_inline_edge): Rename to inline_call; move to
16348         ipa-inline-transform.c.
16349         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
16350         move to ipa-inline-transform.c
16351         (recursive_inlining, inline_small_functions, flatten_function,
16352         ipa_inline, inline_always_inline_functions,
16353         early_inline_small_functions): Update.
16354         (inline_transform): Move to ipa-inline-transform.c.
16355         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
16356         Declare.
16357         * Makefile.in (ipa-inline-transform.o): New file.
16358         * cgraphunit.c (save_inline_function_body): Move to
16359         ipa-inline-transform.c
16360
16361 2011-04-19  DJ Delorie  <dj@redhat.com>
16362
16363         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
16364         registers if we already know there aren't any.
16365         (m32c_emit_epilogue): Don't emit a barrier here.
16366         (m32c_emit_eh_epilogue): Likewise.
16367         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
16368         operands at expand time.
16369         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
16370         int" wchar type.
16371         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
16372         duplicates.  Provide aliases instead.
16373         * config/m32c/prologue.md (eh_return): Emit a barrier here.
16374         (eh_epilogue): Add a "(return)" here as a hint to other parts of
16375         the compiler.
16376
16377 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
16378
16379         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
16380         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
16381         (general_or_i64_p, sparc_register_move_cost): New function.
16382
16383 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16384
16385         * doc/install.texi (Configuration, --enable-threads): Remove mach.
16386         Add lynx, mipssde.  Sort table.
16387
16388 2011-04-19  Xinliang David Li  <davidxl@google.com>
16389
16390         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
16391         not negative.
16392
16393 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
16394
16395         PR target/48678
16396         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
16397         is a SUBREG with non-MODE_INT mode inside of it.
16398
16399 2011-04-19  Martin Jambor  <mjambor@suse.cz>
16400
16401         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
16402         also according to actual contants.
16403         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
16404         (gimple_fold_call): Use it.
16405         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
16406
16407 2011-04-19  Martin Jambor  <mjambor@suse.cz>
16408
16409         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
16410         non-pointer assignments.
16411
16412 2011-04-19  Martin Jambor  <mjambor@suse.cz>
16413
16414         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
16415         account anc_offset and otr_type from the indirect edge info.
16416         * ipa-prop.c (get_ancestor_addr_info): New function.
16417         (compute_complex_ancestor_jump_func): Assignment analysis moved to
16418         get_ancestor_addr_info, call it.
16419         (ipa_note_param_call): Do not initialize information about polymorphic
16420         calls, return the indirect call graph edge.  Remove the last
16421         parameter, adjust all callers.
16422         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
16423         parameters.  Initialize polymorphic information in the indirect edge.
16424
16425 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
16426
16427         PR lto/48148
16428         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
16429         the types if they have different enumeration identifiers.
16430
16431 2011-04-19  Jan Hubicka  <jh@suse.cz>
16432
16433         * cgraph.h (cgraph_optimize_for_size_p): Declare.
16434         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
16435         * predict.c (cgraph_optimize_for_size_p): Break out from ...
16436         (optimize_function_for_size_p) ... here.
16437
16438 2011-04-19  Richard Guenther  <rguenther@suse.de>
16439
16440         PR lto/48207
16441         * tree.c (free_lang_data): Do not reset the decl-assembler-name
16442         langhook.
16443
16444 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
16445
16446         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
16447         if DECL_NO_INLINE_WARNING_P is set on the function.
16448
16449 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
16450
16451         PR fortran/47976
16452         * reload1.c (inc_for_reload): Return void. All callers changed.
16453         (emit_input_reload_insns): Don't try to delete previous output
16454         reloads to a register, or record spill_reg_store for autoincs.
16455
16456 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
16457
16458         * gengtype.h: Updated copyright year.
16459         (struct input_file_st): Add inpisplugin field.
16460         (type_fileloc): New function.
16461         * gengtype.c
16462         (write_typed_struct_alloc_def): Add gcc_assert.
16463         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
16464         (write_typed_alloc_defns): Don't output for plugin files.
16465         (input_file_by_name): Clear inpisplugin field.
16466         (main): Set inpisplugin field for plugin files.
16467
16468 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
16469
16470         * gengtype-state.c (string_eq): New.
16471         (read_state): Use string_eq instead of strcmp when creating the
16472         state_ident_tab.
16473
16474 2011-04-19  Wei Guozhi  <carrot@google.com>
16475
16476         PR target/47855
16477         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
16478         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
16479         linkage.
16480         * config/arm/constraints.md (Uu): New constraint.
16481         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
16482
16483 2011-04-19  Tristan Gingold  <gingold@adacore.com>
16484
16485         * config.gcc (-*-*-*vms): Added.
16486         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
16487         definitions moved.
16488         * config/vms/vms-ld.c: New file.
16489         * config/vms/vms-ar.c: New file.
16490         * config/vms/t-vmsnative: New file.
16491
16492 2011-04-18  Xinliang David Li  <davidxl@google.com>
16493
16494         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
16495
16496 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
16497
16498         PR middle-end/48661
16499         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
16500         if TREE_TYPE (v) is non-NULL.
16501
16502         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
16503         gimple_get_virt_mehtod_for_binfo.
16504         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
16505         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
16506         callers.
16507         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16508
16509 2011-04-18  Michael Matz  <matz@suse.de>
16510             Steve Ellcey  <sje@cup.hp.com>
16511
16512         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
16513         use its mode as source mode if it isn't VOIDmode.
16514
16515 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
16516
16517         * doc/passes.texi: Fill crossref nodes.
16518
16519 2011-04-18  Jim Meyering  <meyering@redhat.com>
16520
16521         Fix doubled-word typos in comments and strings
16522         * config/alpha/vms-unwind.h: s/for for/for/
16523         * config/arm/unwind-arm.h: Likewise.
16524         * config/microblaze/microblaze.c: Likewise.
16525         * config/sh/constraints.md: s/in in/in/
16526         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
16527
16528 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
16529
16530         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
16531         (AVX_FLOAT_MODE_P): Ditto.
16532         (AVX128_VEC_FLOAT_MODE_P): Ditto.
16533         (AVX256_VEC_FLOAT_MODE_P): Ditto.
16534         (AVX_VEC_FLOAT_MODE_P): Ditto.
16535         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
16536         (UNSPEC_MASKSTORE): Ditto.
16537         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
16538         Merge from <sse>_movmsk<ssemodesuffix> and
16539         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
16540         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
16541         iterator.
16542         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
16543         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
16544         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
16545
16546 2011-04-18  Jan Hubicka  <jh@suse.cz>
16547
16548         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
16549
16550         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
16551         (want_inline_function_called_once_p): Break out the logic from
16552         ipa_inline.
16553         (edge_badness): Ensure that profile is not misupdated.
16554         (lookup_recursive_calls): Prioritize by call frequencies.
16555         (inline_small_functions): Move program size estimates here;
16556         actually process whole queue even when unit growth has been
16557         met. (to properly compute inline_failed reasons and for the
16558         case unit size decrease.) Revisit comments on recursive inlining.
16559         (ipa_inline): Remove unit summary code; first inline hot calls
16560         of functions called once, cold calls next.
16561         (order, nnodes): Remove unused variables.
16562         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
16563         (GTFILES): Remove ipa-inline.c
16564         * sel-sched.c (fill_insns): Silence uninitialized var warning.
16565
16566 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
16567
16568         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
16569
16570 2011-04-18  Jie Zhang  <jie@codesourcery.com>
16571             Richard Earnshaw  <rearnsha@arm.com>
16572
16573         * arm.c (neon_builtin_type_bits): Remove.
16574         (typedef enum neon_builtin_mode): New.
16575         (T_MAX): Don't define.
16576         (typedef enum neon_builtin_datum): Remove bits, codes[],
16577         num_vars and base_fcode.  Add mode, code and fcode.
16578         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
16579         VAR10): Change accordingly.
16580         (neon_builtin_data[]): Change accordingly
16581         (arm_init_neon_builtins): Change accordingly.
16582         (neon_builtin_compare): Remove.
16583         (locate_neon_builtin_icode): Remove.
16584         (arm_expand_neon_builtin): Change accordingly.
16585
16586         * arm.h (enum arm_builtins): Move to ...
16587         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
16588
16589         * arm.c (arm_builtin_decl): Declare.
16590         (TARGET_BUILTIN_DECL): Define.
16591         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
16592         (arm_builtin_decls[]): New.
16593         (arm_init_neon_builtins): Store builtin declarations in
16594         arm_builtin_decls[].
16595         (arm_init_tls_builtins): Likewise.
16596         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
16597         (arm_builtin_decl): New.
16598
16599 2011-04-18  Richard Guenther  <rguenther@suse.de>
16600
16601         * tree.c (upper_bound_in_type): Build properly canonicalized
16602         INTEGER_CSTs.
16603         (lower_bound_in_type): Likewise.
16604
16605 2011-04-18  Richard Guenther  <rguenther@suse.de>
16606
16607         * gimple.h (gimple_call_addr_fndecl): New function.
16608         (gimple_call_fndecl): Use it.
16609         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
16610         for direct calls.
16611         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
16612         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
16613
16614 2011-04-18  Richard Guenther  <rguenther@suse.de>
16615
16616         PR middle-end/48650
16617         * tree.c (build_string): STRING_CST is now derived from tree_typed.
16618
16619 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
16620
16621         PR lto/48492
16622         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
16623         DECL_IN_CONSTANT_POOL without RTL.
16624
16625 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
16626             Ira Rosen  <ira.rosen@linaro.org>
16627
16628         PR target/48252
16629         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
16630         to match neon_vzip/vuzp/vtrn_internal.
16631         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
16632         outputs explicitly dependent on both inputs.
16633         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
16634
16635 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
16636
16637         PR tree-optimization/48616
16638         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
16639         whether the shift is by scalar or vector based on whether all SLP
16640         scalar stmts have the same rhs.
16641
16642 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
16643
16644         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
16645         memory operands.
16646
16647 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
16648
16649         PR target/43700
16650         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
16651         registers.
16652
16653 2011-04-17  Jan Hubicka  <jh@suse.cz>
16654
16655         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
16656         * cgrpahunit.c (cgraph_finalize_function): Do not set
16657         finalized_by_frontend.
16658         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
16659         finalized_by_frontend.
16660
16661 2011-04-17  Jan Hubicka  <jh@suse.cz>
16662
16663         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
16664         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
16665         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
16666         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
16667         method.
16668         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
16669         gimple-fold.c
16670         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
16671
16672 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
16673
16674         PR lto/48538
16675         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
16676         is non-null before accessing it.
16677         (input_cgraph): Remove trailing spaces.
16678
16679 2011-04-17  Revital Eres  <revital.eres@linaro.org>
16680
16681         * params.def (sms-min-sc): New param flag.
16682         * modulo-sched.c (sms_schedule): Use it.
16683         * doc/invoke.texi (sms-min-sc): Document it.
16684
16685 2011-04-17  Jan Hubicka  <jh@suse.cz>
16686
16687         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
16688         present, also set gimple_call_set_cannot_inline.
16689         * ipa-inline.c: Update toplevel comment.
16690         (MAX_TIME): Remove.
16691         (cgraph_clone_inlined_nodes): Fix linebreaks.
16692         (cgraph_check_inline_limits): Restructure to ...
16693         (caller_growth_limits): ... this one; be more tolerant
16694         on growth in nested inline chains; add explanatory comment;
16695         fix stack accounting thinko introduced by previous patch.
16696         (cgraph_default_inline_p): Remove.
16697         (report_inline_failed_reason): New function.
16698         (can_inline_edge_p): New function.
16699         (can_early_inline_edge_p): New function.
16700         (leaf_node_p): Move upwards in file.
16701         (want_early_inline_function_p): New function.
16702         (want_inline_small_function_p): New function.
16703         (want_inline_self_recursive_call_p): New function.
16704         (cgraph_edge_badness): Rename to ...
16705         (edge_badness) ... this one; fix linebreaks.
16706         (update_edge_key): Update call of edge_baddness; add
16707         detailed dump about queue updates.
16708         (update_caller_keys): Use can_inline_edge_p and
16709         want_inline_small_function_p.
16710         (cgraph_decide_recursive_inlining): Rename to...
16711         (recursive_inlining): Use can_inline_edge_p and
16712         want_inline_self_recursive_call_p; simplify and remove no longer
16713         valid FIXME.
16714         (cgraph_set_inline_failed): Remove.
16715         (add_new_edges_to_heap): Use can_inline_edge_p and
16716         want_inline_small_function_p.
16717         (cgraph_decide_inlining_of_small_functions): Rename to ...
16718         (inline_small_functions): ... this one; cleanup; use
16719         can/want predicates; cleanup debug ouput; work edges till fibheap
16720         is exhausted and do not stop once unit growth is reached; remove
16721         later loop processing remaining edges.
16722         (cgraph_flatten): Rename to ...
16723         (flatten_function): ... this one; use can_inline_edge_p
16724         and can_early_inline_edge_p predicates.
16725         (cgraph_decide_inlining): Rename to ...
16726         (ipa_inline): ... this one; remove unreachable nodes before
16727         inlining functions called once; simplify the pass.
16728         (cgraph_perform_always_inlining): Rename to ...
16729         (inline_always_inline_functions): ... this one; use
16730         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
16731         (cgraph_decide_inlining_incrementally): Rename to ...
16732         (early_inline_small_functions): ... this one; simplify
16733         using new predicates; cleanup; make dumps prettier.
16734         (cgraph_early_inlining): Rename to ...
16735         (early_inliner): newer inline regular functions into always-inlines;
16736         fix updating of call stmt summaries.
16737         (pass_early_inline): Update for new names.
16738         (inline_transform): Fix formating.
16739         (gate_cgraph_decide_inlining): Rename to ...
16740         (pass_ipa_inline): ... this one.
16741         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
16742         * ipa-inline-analysis.c (dump_inline_summary): Update.
16743         (compute_inline_parameters): Do not compute disregard_inline_limits;
16744         look for mismatching arguments.
16745         (estimate_growth): Fix handlig of non-trivial self recursion.
16746         (inline_read_summary): Do not read info->disregard_inline_limits.
16747         (inline_write_summary): Do not write info->disregard_inline_limits.
16748         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
16749         and move all checks into can_inline_edge_p predicate; re-enable code
16750         comparing optimization levels.
16751         (expand_call_inline): Do not test inline_forbidden_into_p.
16752         * Makefile.in (ipa-inline.o): Update arguments.
16753
16754 2011-04-17  Revital Eres  <revital.eres@linaro.org>
16755
16756         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
16757
16758 2011-04-17  Revital Eres  <revital.eres@linaro.org>
16759
16760         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
16761
16762 2011-04-17  Michael Matz  <matz@suse.de>
16763
16764         PR tree-optimization/48622
16765         PR lto/48645
16766         * ipa-inline-analysis.c (inline_read_summary): Read size/time
16767         in same order as they're written.
16768
16769 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16770
16771         * config/pa/predicates.md: Reorganize and simplify predicates.
16772         Eliminate duplicate code checks.
16773         (arith_operand): Rename to arith14_operand
16774         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
16775         * config/pa/pa.md: Use renamed operands.
16776         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
16777         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
16778         arith11_operand, adddi3_operand, indexed_memory_operand,
16779         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
16780         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
16781         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
16782         move_dest_operand, move_src_operand, prefetch_cc_operand,
16783         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
16784         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
16785         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
16786         div_operand, int5_operand, movb_comparison_operator,
16787         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
16788         arith_double_operand, ireg_operand, lhs_lshift_operand,
16789         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
16790         integer_store_memory_operand): Likewise.
16791         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
16792         (integer_store_memory_operand, read_only_operand,
16793         function_label_operand, borx_reg_operand,
16794         non_hard_reg_operand): Likewise.
16795         (eq_neq_comparison_operator): Delete unused operator.
16796         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
16797         function_label_operand.
16798         (emit_move_sequence): Likewise.
16799
16800 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
16801
16802         * config/i386/sse.md (sseunpackmode): New mode attribute.
16803         (ssepackmode): Ditto.
16804         (vec_pack_trunc_<mode>): Macroize expander from
16805         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
16806         (vec_unpacks_lo_<mode>): Macroize expander from
16807         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16808         (vec_unpacks_hi_<mode>): Macroize expander from
16809         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16810         (vec_unpacku_lo_<mode>): Macroize expander from
16811         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16812         (vec_unpacku_hi_<mode>): Macroize expander from
16813         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16814         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
16815         ix86_expand_sse4_unpack.
16816         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
16817
16818 2011-04-16  Jan Hubicka  <jh@suse.cz>
16819
16820         * cgraphbuild.c: Include ipa-inline.h.
16821         (reset_inline_failed): Use initialize_inline_failed.
16822         * cgraph.c: Include ipa-inline.h.
16823         (cgraph_create_node_1): Do not initialize estimated_growth.
16824         (initialize_inline_failed): More to ipa-inline-analysis.c
16825         (dump_cgraph_node): Do not dump inline flags.
16826         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
16827         and disregard_inline_limits flags.
16828         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
16829         time, size, estimated_growth.
16830         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
16831         Update.
16832         * cgraphunit.c (cgraph_decide_is_function_needed): Use
16833         DECL_DISREGARD_INLINE_LIMITS.
16834         (cgraph_analyze_function): Do not initialize
16835         node->local.disregard_inline_limits.
16836         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
16837         inlinable, versionable and disregard_inline_limits.
16838         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
16839         cgraph_check_inline_limits, cgraph_default_inline_p,
16840         cgraph_edge_badness, update_caller_keys, update_callee_keys,
16841         add_new_edges_to_heap): Update.
16842         (cgraph_decide_inlining_of_small_function): Update; set
16843         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
16844         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
16845         cgraph_decide_inlining_incrementally): Update.
16846         * ipa-inline.h (inline_summary): Add inlinable, versionable,
16847         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
16848         time, size and estimated_growth parameters.
16849         (estimate_edge_growth): Update.
16850         (initialize_inline_failed): Declare.
16851         * ipa-split.c: Include ipa-inline.h
16852         (execute_split_functions): Update.
16853         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
16854         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
16855         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
16856         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
16857         estimated_growth to INT_MIN.
16858         (inline_node_duplication_hook): Likewise.
16859         (dump_inline_summary): Dump new fields.
16860         (compute_inline_parameters): Update.
16861         (estimate_edge_time, estimate_time_after_inlining,
16862         estimate_size_after_inlining, estimate_growth, inline_read_summary,
16863         inline_write_summary):
16864         (initialize_inline_failed): Move here from cgraph.c.
16865         * tree-sra.c: Include ipa-inline.h.
16866         (ipa_sra_preliminary_function_checks): Update.
16867         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
16868         ipa-inline.h.
16869
16870 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
16871
16872         * config/i386/sse.md (V16): New mode iterator.
16873         (VI1, VI8): Ditto.
16874         (AVXMODEQI, AVXMODEDI): Remove.
16875         (sse2, sse3): New mode attribute.
16876         (mov<mode>): Use V16 mode iterator.
16877         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
16878         (push<mode>1): Use V16 mode iterator.
16879         (movmisalign<mode>): Ditto.
16880         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
16881         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
16882         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
16883         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
16884         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
16885         avx_movdqu<avxmodesuffix>.
16886         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
16887         *avx_movdqu<avxmodesuffix>.
16888         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
16889         avx_lddqu<avxmodesuffix>.
16890         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
16891         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
16892         avx_movnt<AVXMODEDI:mode>.
16893         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
16894         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
16895
16896 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
16897
16898         PR target/48629
16899         * haifa-sched.c (prune_ready_list, schedule_block): Use
16900         sched_pressure_p rather than flag_sched_pressure.
16901
16902 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
16903
16904         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
16905         cgraph_get_node instead of cgraph_get_create_node.
16906
16907 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
16908
16909         * cfgexpand.c (expand_debug_expr): Use
16910         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
16911
16912 2011-04-15  Michael Matz  <matz@suse.de>
16913
16914         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
16915         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
16916         * function.c (gimplify_parameters): Ditto.
16917         * gimplify.c (gimplify_vla_decl): Ditto.
16918
16919         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
16920         (gimple_call_set_alloca_for_var): New inline function.
16921         (gimple_call_alloca_for_var_p): Ditto.
16922         * gimple.c (gimple_build_call_from_tree): Remember
16923         CALL_ALLOCA_FOR_VAR_P state.
16924         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
16925
16926         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
16927         calls if they were for VLA objects.
16928
16929 2011-04-15  Martin Jambor  <mjambor@suse.cz>
16930
16931         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
16932         of ADR_EXPRs.
16933
16934 2011-04-15  Martin Jambor  <mjambor@suse.cz>
16935
16936         PR middle-end/48601
16937         * tree-emutls.c (lower_emutls_function_body): Call
16938         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
16939         result is non-NULL.
16940
16941 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
16942
16943         * c-decl.c (detect_field_duplicates): Call
16944         objc_detect_field_duplicates instead of objc_get_interface_ivars.
16945
16946 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
16947
16948         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
16949         * gimple.c (gimple_asm_clobbers_memory_p): Define.
16950         * ipa-pure-const.c (check_stmt): Call it.
16951         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
16952
16953 2011-04-15  Richard Guenther  <rguenther@suse.de>
16954
16955         PR tree-optimization/48290
16956         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
16957         Properly decide inhibiting propagation based on the valueized
16958         operand.  Do loop-closed SSA form preserving here ...
16959         (init_copy_prop): ... not here.
16960
16961 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
16962
16963         PR target/48612
16964         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
16965         (*ieee_smax<mode>3): Likewise.
16966
16967 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16968
16969         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
16970         Replace match_operand with match_dup for the third operand in
16971         these expanders.
16972
16973 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
16974
16975         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
16976         to track processing of conditionals.  Update all callers.
16977         (try_combine, simplify_if_then_else): Update.
16978
16979 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
16980
16981         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
16982         -fsched-pressure.
16983
16984 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
16985
16986         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
16987         instead of match_operand for operand 3.
16988
16989 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
16990
16991         * recog.h (insn_operand_data): Add an "allows_mem" field.
16992         * genoutput.c (output_operand_data): Initialize it.
16993         * optabs.c (maybe_legitimize_operand_same_code): New function.
16994         (maybe_legitimize_operand): Use it when matching the original
16995         op->value.
16996
16997 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
16998
16999         * gimplify.c: Fix issues in comments throughout.
17000         (voidify_wrapper_expr): Fix long line.
17001         (build_stack_save_restore): Likewise.
17002         (gimplify_loop_expr): Likewise.
17003         (gimplify_compound_lval): Likewise.
17004         (gimplify_init_ctor_eval): Likewise.
17005         (gimplify_modify_expr_rhs): Likewise.
17006         (omp_notice_threadprivate_variable): Likewise.
17007
17008 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
17009
17010         * cfgexpand.c (expand_call_stmt): Convert the function type to the
17011         original one if this is not a builtin function.
17012
17013 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
17014
17015         PR target/48605
17016         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
17017         offset it as needed based on top 2 bits in operands[3], change
17018         MEM mode to SFmode and mask those 2 bits away from operands[3].
17019
17020 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
17021
17022         * c-parser.c (c_parser_objc_protocol_definition): Updated for
17023         change from objc_declare_protocols() to objc_declare_protocol().
17024
17025 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
17026
17027         * config/i386/sse.md (sse4_1): New mode attribute.
17028         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
17029         avx_blend<ssemodesuffix><avxmodesuffix> and
17030         sse4_1_blend<ssemodesuffix> using VF mode iterator.
17031         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
17032         avx_blendv<ssemodesuffix><avxmodesuffix> and
17033         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
17034         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
17035         avx_dp<ssemodesuffix><avxmodesuffix> and
17036         sse4_1_dp<ssemodesuffix> using VF mode iterator.
17037         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
17038         (sse4_1_packusdw): Merge with *avx_packusdw.
17039         (sse4_1_pblendvb): Merge with *avx_pblendvb.
17040         (sse4_1_pblendw): Merge with *avx_pblendw.
17041         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
17042         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
17043         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
17044         VF mode iterator.
17045         (sse4_1_round<ssescalarmodesuffix>): Merge with
17046         *avx_round<ssescalarmodesuffix>.
17047         (aesenc): Merge with *avx_aesenc.
17048         (aesenclast): Merge with *avx_aesenclast.
17049         (aesdec): Merge with *avx_aesdec.
17050         (aesdeclast): Merge with *avx_aesdeclast.
17051         (pclmulqdq): Merge with *pclmulqdq.
17052         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
17053         New predicate.
17054         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
17055
17056 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
17057
17058         PR middle-end/48608
17059         * cfgexpand.c (get_decl_align_unit): Renamed to ...
17060         (align_local_variable): This.  Update DECL_ALIGN.
17061         (add_stack_var): Updated.
17062         (expand_one_stack_var): Likewise.
17063
17064 2011-04-14  Richard Guenther  <rguenther@suse.de>
17065
17066         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
17067         Remove.
17068         (dse_initialize_block_local_data, dse_leave_block,
17069         record_voperand_set, get_stmt_uid): Likewise.
17070         (dse_possible_dead_store_p): Allow any kind of killing stmt.
17071         (dse_optimize_stmt): Remove voperand set handling code.
17072         Simplify and improve to handle any kind of killing stmt.
17073         (dse_record_phi): Remove.
17074         (dse_enter_block): Simplify.
17075         (tree_ssa_dse): Likewise.
17076         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
17077
17078 2011-04-14  Jan Hubicka  <jh@suse.cz>
17079
17080         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
17081         * cgraph.h (struct inline_summary): Move to ipa-inline.h
17082         (cgraph_local_info): Remove inline_summary.
17083         * ipa-cp.c: Include ipa-inline.h.
17084         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
17085         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
17086         accesor.
17087         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
17088         (input_overwrite_node): Do not set inline summary.
17089         (input_node): Do not stream inline summary.
17090         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
17091         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
17092         growth; we do not have inline parameters computed for that anyway.
17093         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
17094         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
17095         (inline_summary_t): New type and VECtor.
17096         (debug_inline_summary, dump_inline_summaries): Declare.
17097         (inline_summary): Use VOCtor.
17098         (estimate_edge_growth): Kill hack computing call stmt size directly.
17099         * lto-section-in.c (lto_section_name): Add inline section.
17100         * ipa-inline-analysis.c: Include lto-streamer.h
17101         (node_removal_hook_holder, node_duplication_hook_holder): New holders
17102         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
17103         (inline_summary_vec): Define.
17104         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
17105         dump_inline_summaries): New functions.
17106         (estimate_function_body_sizes): Properly compute size/time of outgoing
17107         calls.
17108         (compute_inline_parameters): Alloc inline_summary; do not compute
17109         size/time of incomming calls.
17110         (estimate_edge_time): Avoid missing time summary hack.
17111         (inline_read_summary): Read inline summary info.
17112         (inline_write_summary): Write inline summary info.
17113         (inline_free_summary): Free all hooks and inline summary vector.
17114         * lto-streamer.h: Add LTO_section_inline_summary section.
17115         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
17116         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
17117
17118 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17119
17120         * tree-vectorizer.h (vect_strided_store_supported): Add a
17121         HOST_WIDE_INT argument.
17122         (vect_strided_load_supported): Likewise.
17123         (vect_permute_store_chain): Return void.
17124         (vect_transform_strided_load): Likewise.
17125         (vect_permute_load_chain): Delete.
17126         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
17127         count argument.  Check that the count is a power of two.
17128         (vect_strided_load_supported): Likewise.
17129         (vect_permute_store_chain): Return void.  Update after above changes.
17130         Assert that the access is supported.
17131         (vect_permute_load_chain): Likewise.
17132         (vect_transform_strided_load): Return void.
17133         * tree-vect-stmts.c (vectorizable_store): Update calls after
17134         above interface changes.
17135         (vectorizable_load): Likewise.
17136         (vect_analyze_stmt): Don't check for strided powers of two here.
17137
17138 2011-04-14  Richard Guenther  <rguenther@suse.de>
17139
17140         PR tree-optimization/48590
17141         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17142         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
17143         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
17144         BUILT_IN_STACK_SAVE.
17145         * tree-ssa-dce.c (propagate_necessity): Handle
17146         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
17147
17148 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
17149
17150         * c-parser.c (c_parser_objc_class_declaration): Updated call to
17151         objc_declare_class.
17152
17153 2011-04-14  Richard Guenther  <rguenther@suse.de>
17154
17155         * tree.h (get_object_alignment_1): Declare.
17156         * builtins.c (get_object_alignment_1): Split out worker from ...
17157         (get_object_alignment): ... here.
17158         * fold-const.c (get_pointer_modulus_and_residue): Use
17159         get_object_alignment_1.
17160
17161 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17162
17163         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
17164         type parameter.
17165         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
17166         parameter.  Generalise code to handle arrays as well as vectors.
17167         (vect_setup_realignment): Update accordingly.
17168         * tree-vect-stmts.c (vectorizable_store): Likewise.
17169         (vectorizable_load): Likewise.
17170
17171 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17172
17173         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
17174         within the per-copy loop.
17175
17176 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17177
17178         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
17179         in the dump file.
17180
17181 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17182
17183         * doc/options.texi (Negative): Explicitly mention that the
17184         Negative chain must be circular.
17185
17186 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
17187
17188         * function.h (block_chainon): Declare.
17189         * function.c (block_chainon): Define.
17190
17191 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
17192             Eric Weddington  <eric.weddington@atmel.com>
17193             Georg-Johann Lay  <avr@gjlay.de>
17194
17195         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
17196         New Includes
17197         (avr_init_builtins, avr_expand_builtin,
17198         avr_expand_delay_cycles, avr_expand_unop_builtin,
17199         avr_expand_binop_builtin ): New functions.
17200         (avr_builtin_id): New enum
17201         (struct avr_builtin_description): New struct
17202         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
17203         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
17204
17205         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
17206         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
17207         UNSPECV_DELAY_CYCLES): new enumeration values
17208         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
17209         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
17210         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
17211         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
17212         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
17213         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
17214         "fmulsu"): New insns
17215
17216         * config/avr/avr-c.c: fix line endings
17217         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
17218         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
17219         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
17220         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
17221         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
17222
17223         * doc/extend.texi (AVR Built-in Functions): New node
17224         (Target Builtins): Add documentation of AVR
17225         built-in functions.
17226
17227 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
17228
17229         PR target/44643
17230         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
17231         alone. Error if non-const data has attribute progmem.
17232
17233 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17234
17235         * tree.h (struct tree_constructor): Include tree_typed instead of
17236         tree_common.
17237         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
17238         TS_TYPED instead of TS_COMMON.
17239
17240 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
17241
17242         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
17243         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
17244         (sse2_psadbw): Merge with *avx_psadbw.
17245         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
17246         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
17247         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
17248         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
17249         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
17250         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
17251         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
17252         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
17253         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
17254         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
17255         (ssse3_palignrti): Merge with *avx_palignrti.
17256
17257 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17258
17259         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
17260         * tree-ssanames.c (fini_ssanames): VEC_free it.
17261         (make_ssa_name_fn): Update for VECness of free_ssanames.
17262         (release_ssa_name, release_dead_ssa_names): Likewise.
17263         * tree.h (struct tree_ssa_name): Include tree_typed instead of
17264         tree_common.
17265         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
17266         TS_TYPED instead of TS_COMMON.
17267
17268 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17269
17270         * postreload-gcse.c (gcse_after_reload_main): Add calls to
17271         statistics_counter_event.
17272         * tree-ssa-copyrename.c (stats): Define.
17273         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
17274         statistics_counter_event.
17275         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
17276         (bswap_stats, widen_mul_stats): Define.
17277         (insert_reciprocals): Increment rdivs_inserted.
17278         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
17279         rfuncs_inserted.  Add calls to statistics_counter_event.
17280         (execute_cse_sincos_1): Increment inserted.
17281         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
17282         statistics_counter_event.
17283         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
17284         of bswap_stats.  Add calls to statistics_counter_event.
17285         (convert_mult_to_widen): Increment widen_mults_inserted.
17286         (convert_plusminus_to_widen): Increment maccs_inserted.
17287         (convert_mult_to_fma): Increment fmas_inserted.
17288         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
17289         calls to statistics_counter_event.
17290
17291 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
17292
17293         PR rtl-optimization/48455
17294         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
17295         `temp_costs->mem_cost'.
17296
17297 2011-04-13  Jan Hubicka  <jh@suse.cz>
17298
17299         * ipa-inline.h: New file.
17300         * ipa-inline-analysis.c: New file. Broken out of ...
17301         * ipa-inline.c: ... this file; update toplevel comment;
17302         include ipa-inline.h
17303         (inline_summary): Move to ipa-inline.h
17304         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
17305         ipa-inline-analysis.c.
17306         (cgraph_estimate_time_after_inlining): Rename to
17307         estiamte_time_after_inlining; move to ipa-inline-analysis.c
17308         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
17309         to estimate_edge_growth.
17310         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
17311         rename to estimate_size_after_inlining.
17312         (cgraph_mark_inline_edge): Update for new naming convention.
17313         (cgraph_check_inline_limits): Likewise.
17314         (cgraph_edge_badness): Likewise.
17315         (cgraph_decide_recursive_inlining): Likewise.
17316         (cgraph_decide_inlining_of_small_functions): Likewise.
17317         (cgraph_decide_inlining_incrementally): Likewise.
17318         (cgraph_estimate_growth): Rename to estimate_growth; move to
17319         ipa-inline-analysis.c.
17320         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
17321         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
17322         (compute_inline_parameters): Likewise.
17323         (compute_inline_parameters_for_current): Likewise.
17324         (pass_inline_parameters): Likewise.
17325         (inline_indirect_intraprocedural_analysis): Likewise.
17326         (analyze_function): Rename to inline_analyze_function; likewise.
17327         (add_new_function): Move to ipa-inline-analysis.c.
17328         (inline_generate_summary): Likewise.
17329         (inline_read_summary): Likewise.
17330         (inline_write_summary): Likewise.
17331         * Makefile.in (ipa-inline-analysis.c): New file.
17332
17333 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17334
17335         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
17336         * configure: Regenerate.
17337
17338 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17339
17340         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
17341         instead of tree_common.
17342         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
17343         Likewise.
17344         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
17345         TS_TYPED rather than TS_COMMON.
17346         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
17347
17348 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
17349
17350         PR target/45263
17351         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
17352         r20 around calls of __tablejump_elpm__
17353
17354 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
17355
17356         PR middle-end/48591
17357         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
17358         NULL.
17359         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
17360
17361 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
17362
17363         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
17364         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
17365         (cfi_vec): New typedef.
17366         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
17367         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
17368         (cie_cfi_vec): New static variable.
17369         (cie_cfi_head): Delete.
17370         (add_cfi): Accept a cfi_vec * as first argument. All callers and
17371         declaration changed. Use vector rather than list operations.
17372         (new_cfi): Don't initialize the dw_cfi_next field.
17373         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
17374         rather than list operations.
17375         (lookup_cfa): Use vector rather than list operations.
17376         (output_cfis): New argument upto. Accept a cfi_vec rather than
17377         a dw_cfi_ref list head as argument. All callers changed.
17378         Iterate over the vector using upto as a maximum index.
17379         (output_all_cfis): New static function.
17380         (output_fde): Use vector rather than list operations. Use the
17381         new upto argument for output_cfis rather than manipulating a
17382         list.
17383         (dwarf2out_begin_prologue): Change initializations to match
17384         new struct members.
17385         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
17386         from the vector length rather than searching for the end of a list.
17387         Use output_all_cfis.
17388         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
17389
17390 2011-04-13  Nick Clifton  <nickc@redhat.com>
17391
17392         * config/rx/rx.md (movmemsi): Do not use this pattern when
17393         volatile pointers are involved.
17394
17395 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
17396
17397         * config/i386/sse.md (pinsrbits): Remove.
17398         (sse2_packsswb): Merge with *avx_packsswb.
17399         (sse2_packssdw): Merge with *avx_packssdw.
17400         (sse2_packuswb): Merge with *avx_packuswb.
17401         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
17402         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
17403         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
17404         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
17405         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
17406         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
17407         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
17408         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
17409         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
17410         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
17411         (sse2_loadld): Merge with *avx_loadld.
17412         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
17413         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
17414         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
17415         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
17416         (vec_concatv2di): Merge with *vec_concatv2di_avx.
17417
17418 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
17419
17420         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
17421         calling TREE_CHAIN.
17422         * print-tree.c (print_node): Likewise.
17423         * tree-inline.c (copy_tree_r): Likewise.
17424         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
17425         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
17426         instead of TS_COMMON.
17427         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
17428         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
17429         (copy_node_stat): Zero TREE_CHAIN only if necessary.
17430         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
17431         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
17432         ...and these...
17433         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
17434         * tree.h: ...here.
17435         (TREE_CHAIN): Check for a TS_COMMON structure.
17436         (TREE_TYPE): Check for a TS_TYPED structure.
17437
17438 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
17439
17440         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
17441         cgraph_get_create_node instead of cgraph_node.
17442
17443 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
17444
17445         * c-parser.c (c_parser_initelt): Updated call to
17446         objc_build_message_expr.
17447         (c_parser_postfix_expression): Likewise.
17448
17449 2011-04-12  Kai Tietz  <ktietz@redhat.com>
17450
17451         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
17452         MASK_MS_BITFIELD_LAYOUT bit.
17453
17454 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
17455
17456         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
17457         assert it is always true.
17458         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
17459         moves.
17460
17461 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
17462
17463         * c-parser.c (c_lex_one_token): Rewritten conditional used when
17464         compiling Objective-C to be more efficient.
17465
17466 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
17467
17468         * opts-common.c (decode_cmdline_options_to_array): Remove variable
17469         argv_copied.
17470
17471 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17472
17473         * recog.h, genoutput.c, optabs.c: Revert last patch.
17474
17475 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17476
17477         PR target/48090
17478         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
17479
17480 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17481
17482         * recog.h (insn_operand_data): Add an "allows_mem" field.
17483         * genoutput.c (output_operand_data): Initialize it.
17484         * optabs.c (maybe_legitimize_operand_same_code): New function.
17485         (maybe_legitimize_operand): Use it when matching the original
17486         op->value.
17487
17488 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17489
17490         * genpreds.c (process_define_predicate): Move most processing
17491         to gensupport.c.  Continue to validate the expression.
17492         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
17493         (process_define_predicate): Move processing to gensupport.c.
17494         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
17495         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
17496         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
17497         argument.
17498         (valid_predicate_name_p): New function, split out from old
17499         genpreds.c:process_define_predicate.
17500         (process_define_predicate): New function, combining code from
17501         old genpreds.c and genrecog.c functions.
17502         (process_rtx): Call it for DEFINE_PREDICATE and
17503         DEFINE_SPECIAL_PREDICATE.
17504
17505 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17506
17507         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
17508         size of a '%A' memory reference.
17509         (T_DREG, T_QREG): New neon_builtin_type_bits.
17510         (arm_init_neon_builtins): Assert that the load and store operands
17511         are neon_struct_operands.
17512         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
17513         (NEON_ARG_MEMORY): New builtin_arg.
17514         (neon_dereference_pointer): New function.
17515         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
17516         Handle NEON_ARG_MEMORY.
17517         (arm_expand_neon_builtin): Update after above interface changes.
17518         Use NEON_ARG_MEMORY for loads and stores.
17519         * config/arm/predicates.md (neon_struct_operand): New predicate.
17520         * config/arm/iterators.md (V_two_elem): Tweak formatting.
17521         (V_three_elem): Use BLKmode for accesses that have no associated mode.
17522         (V_four_elem): Tweak formatting.
17523         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
17524         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
17525         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
17526         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
17527         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
17528         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
17529         (neon_vst4<mode>): Replace pointer operand with a memory operand.
17530         Use %A in the output template.
17531         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
17532         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
17533         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
17534         the width of the memory access.  Remove post-increment.
17535         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
17536
17537 2011-04-12  Nick Clifton  <nickc@redhat.com>
17538
17539         * config/v850/v850.c (expand_prologue): Do not use the CALLT
17540         instruction for interrupt handlers if the target is the basic V850
17541         architecture.
17542         (expand_epilogue): Likewise.
17543
17544 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
17545
17546         PR rtl-optimization/48549
17547         * combine.c (propagate_for_debug): Also stop after BB_END of
17548         this_basic_block.  Process LAST and just stop processing after it.
17549         (combine_instructions): If last_combined_insn has been deleted,
17550         set last_combined_insn to its PREV_INSN.
17551
17552 2011-04-12  Richard Guenther  <rguenther@suse.de>
17553
17554         PR tree-optimization/46076
17555         * gimple.h (struct gimple_statement_call): Add fntype field.
17556         (gimple_call_fntype): Adjust.
17557         (gimple_call_set_fntype): New function.
17558         * gimple.c (gimple_build_call_1): Set the call function type.
17559         * gimplify.c (gimplify_call_expr): Preserve the function
17560         type the frontend used for the call.
17561         (gimplify_modify_expr): Likewise.
17562         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
17563         function type.
17564         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
17565         function type.
17566         * tree-ssa.c (useless_type_conversion_p): Function pointer
17567         conversions are useless.
17568
17569 2011-04-12  Martin Jambor  <mjambor@suse.cz>
17570
17571         * cgraph.h (cgraph_node): Remove function declaration.
17572         (cgraph_create_node): Declare.
17573         (cgraph_get_create_node): Likewise.
17574         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
17575         Updated all callers.
17576         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
17577         the decl does not already exist.  Call cgraph_get_create_node instead
17578         of cgraph_node.
17579         (cgraph_get_create_node): New function.
17580         (cgraph_same_body_alias): Update comment.
17581         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
17582         assert it does not return NULL.
17583         (cgraph_update_edges_for_call_stmt): Likewise.
17584         (cgraph_clone_edge): Likewise.
17585         (cgraph_create_virtual_clone): Likewise.
17586         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
17587         instead of cgraph_node.
17588         (cgraph_add_new_function): Call cgraph_create_node or
17589         cgraph_get_create_node instead of cgraph_node.
17590         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
17591         instead of cgraph_node.
17592         (record_eh_tables): Likewise.
17593         (mark_address): Likewise.
17594         (mark_load): Likewise.
17595         (build_cgraph_edges): Call cgraph_get_create_node instead
17596         of cgraph_node.
17597         (rebuild_cgraph_edges): Likewise.
17598         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
17599         instead of cgraph_node.
17600         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
17601         cgraph_node.
17602         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
17603         cgraph_create_node instead of cgraph_node.
17604         * c-decl.c (finish_function): Call cgraph_get_create_node instead
17605         of cgraph_node.
17606         * lto-cgraph.c (input_node): Likewise.
17607         * lto-streamer-in.c (input_function): Likewise.
17608         * varasm.c (mark_decl_referenced): Likewise.
17609         (assemble_alias): Likewise.
17610
17611 2011-04-12  Martin Jambor  <mjambor@suse.cz>
17612
17613         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
17614         instead of cgraph_node and assert it does not return NULL.
17615         * lto-streamer-in.c (lto_read_body): Likewise.
17616         * omp-low.c (new_omp_context): Likewise.
17617         (create_task_copyfn): Likewise.
17618         * tree-emutls.c (lower_emutls_function_body): Likewise.
17619         * matrix-reorg.c (transform_allocation_sites): Likewise.
17620
17621 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
17622
17623         PR c/48552
17624         * c-typeck.c (build_asm_expr): Error out on attempts to use
17625         void type outputs or inputs for constraints that allow reg or
17626         don't allow memory.
17627
17628 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
17629             Richard Earnshaw  <rearnsha@arm.com>
17630
17631         PR target/48250
17632         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
17633         to use sign-magnitude offsets. Reject unsupported unaligned
17634         cases. Add detailed description in comments.
17635         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
17636         condition from TARGET_32BIT to TARGET_ARM.
17637
17638 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
17639
17640         * tree.h (struct typed_tree): New.
17641         (struct tree_common): Include it instead of tree_base.
17642         (TREE_TYPE): Update for new location of type field.
17643         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
17644         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
17645         (union tree_node): Add typed field.
17646         * treestruct.def (TS_TYPED): New.
17647         * lto-streamer.c (check_handled_ts_structures): Handle it.
17648         * tree.c (MARK_TS_TYPED): New macro.
17649         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
17650
17651 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
17652
17653         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
17654         (force_nonfallthru): Do not alter the loop nest if no basic block
17655         was created.
17656
17657 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
17658
17659         * config/i386/sse.md (VI): New mode iterator.
17660         (SSEMODEI): Remove.
17661         (AVX256MODEI): Ditto.
17662         (AVXMODEF4P): Ditto.
17663         (avxvecpsmode): Ditto.
17664         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
17665         (sse2_andnot<mode>3): New expander.
17666         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
17667         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
17668         (<any_logic:code><mode>3): Use VI mode iterator.
17669         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
17670         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
17671         (*andnottf3): Handle AVX three-operand constraints.
17672         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
17673
17674 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
17675             Robert Millan  <rmh@gnu.org>
17676
17677         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
17678         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
17679         GNU_USER_DYNAMIC_LINKER64): Define.
17680         (REG_NAME): Don't undefine.
17681         (MD_UNWIND_SUPPORT): Undefine.
17682         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
17683         (REG_NAME): Don't undefine.
17684         (MD_UNWIND_SUPPORT): Undefine.
17685         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
17686
17687 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
17688
17689         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
17690         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
17691
17692 2011-04-11  Xinliang David Li  <davidxl@google.com>
17693
17694         * value-profile.c (check_ic_target): New function.
17695         (gimple_ic_transform): Sanity check indirect call target.
17696         * gimple-low.c (gimple_check_call_args): Interface change.
17697         (gimple_check_call_matching_types): New function.
17698         * tree-inline.c (tree_can_inline_p): Call new function.
17699
17700 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
17701
17702         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
17703         tree-pretty-print.h & realmpfr.h.
17704
17705 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
17706
17707         PR middle-end/48464
17708         * ira.c (setup_pressure_classes): Fix typo in loop condition.
17709         (setup_allocno_and_important_classes): Ditto.
17710
17711 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
17712
17713         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
17714         GNU_USER_DYNAMIC_LINKER.
17715         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
17716         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17717         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
17718         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17719         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
17720         GNU_USER_TARGET_OS_CPP_BUILTINS.
17721         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
17722         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17723         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
17724         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17725         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
17726         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17727         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
17728         GNU_USER_TARGET_OS_CPP_BUILTINS.
17729         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17730         GNU_USER_DYNAMIC_LINKER.
17731         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17732         GNU_USER_TARGET_OS_CPP_BUILTINS.
17733         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
17734         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17735         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
17736         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17737         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
17738         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
17739         GNU_USER_DYNAMIC_LINKER64): Remove.
17740         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
17741         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17742         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17743         GNU_USER_DYNAMIC_LINKER.
17744         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17745         GNU_USER_TARGET_OS_CPP_BUILTINS.
17746         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17747         GNU_USER_TARGET_OS_CPP_BUILTINS.
17748         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
17749         to GNU_USER_TARGET_OS_CPP_BUILTINS.
17750         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17751         GNU_USER_TARGET_OS_CPP_BUILTINS.
17752         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
17753         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
17754         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
17755         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
17756         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17757         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17758         GNU_USER_DYNAMIC_LINKER.
17759         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
17760         GNU_USER_TARGET_OS_CPP_BUILTINS.
17761         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
17762         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17763         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17764         GNU_USER_DYNAMIC_LINKER.
17765         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
17766         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17767         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
17768         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17769         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17770         GNU_USER_DYNAMIC_LINKER.
17771         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
17772         GNU_USER_DYNAMIC_LINKERN32.
17773         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
17774         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
17775         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
17776         GNU_USER_DYNAMIC_LINKER32.
17777         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
17778         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17779         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17780         GNU_USER_DYNAMIC_LINKER.
17781         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
17782         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17783         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
17784         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17785         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17786         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
17787         GNU_USER_DYNAMIC_LINKER32.
17788         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
17789         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
17790         GNU_USER_DYNAMIC_LINKER.
17791         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
17792         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17793         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
17794         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
17795         GNU_USER_DYNAMIC_LINKER64.
17796         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
17797         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17798         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17799         GNU_USER_DYNAMIC_LINKER.
17800         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
17801         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17802         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17803         GNU_USER_DYNAMIC_LINKER.
17804         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
17805         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17806         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
17807         GNU_USER_DYNAMIC_LINKER32.
17808         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
17809         GNU_USER_DYNAMIC_LINKER64.
17810         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
17811         GNU_USER_DYNAMIC_LINKER64.
17812         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
17813         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17814         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
17815         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17816         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17817
17818 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
17819
17820         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
17821         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
17822         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
17823         GNU_USER_DYNAMIC_LINKER.
17824         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
17825         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
17826         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
17827         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
17828         GNU_USER_DYNAMIC_LINKER64.
17829         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
17830         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
17831         GNU_USER_LINK_EMULATION.
17832         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
17833         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
17834         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
17835         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
17836         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
17837         CPP_SPEC, CC1_SPEC): Remove.
17838         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
17839         (GNU_USER_DYNAMIC_LINKER): Define.
17840         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
17841         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
17842         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
17843         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
17844         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
17845         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
17846         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
17847         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
17848         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
17849         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
17850         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
17851         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
17852         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
17853         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
17854         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
17855         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
17856         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17857         GNU_USER_DYNAMIC_LINKER.
17858         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17859         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
17860         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17861         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
17862         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17863         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
17864         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
17865         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
17866         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
17867         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
17868
17869 2011-04-11  Kai Tietz  <ktietz@redhat.com>
17870
17871         PR target/9601
17872         PR target/11772
17873         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
17874         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
17875         comment.
17876         (ix86_is_msabi_thiscall): Removed.
17877         (ix86_is_type_thiscall): Likewise.
17878         (ix86_get_callcvt): New function.
17879         (ix86_comp_type_attributes): Simplify check.
17880         (ix86_function_regparm): Use ix86_get_callcvt for calling
17881         convention attribute checks.
17882         (ix86_return_pops_args): Likewise.
17883         (ix86_static_chain): Likewise.
17884         (x86_this_parameter): Likewise.
17885         (x86_output_mi_thunk): Likewise.
17886         (ix86_function_type_abi): Optimize check for types without attributes.
17887         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
17888         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
17889         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
17890         by flag-values.
17891         (IX86_BASE_CALLCVT): Helper macro.
17892         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
17893         Use ix86_get_callcvt for calling convention attribute checks and avoid
17894         symbol-decoration for stdcall in TARGET_RTD case.
17895         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
17896         Likewise.
17897         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
17898         for declaration.
17899
17900 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
17901
17902         * config/i386/sse.md (VI_128): New mode iterator.
17903         (VI12_128): Rename from SSEMODE12.
17904         (VI14_128): Rename from SSEMODE14.
17905         (VI124_128): New mode iterator.
17906         (VI24_128): Rename from SSEMODE248.
17907         (VI248_128): Rename from SSEMODE248.
17908         (SSEMODE124C8): Remove.
17909         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
17910         (*sse2_<plusminus_insn><mode>3): Merge with
17911         *avx_<plusminus_insn><mode>3.
17912         (*mulv8hi3): Merge with *avx_mulv8hi3.
17913         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
17914         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
17915         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
17916         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
17917         (ashr<mode>3): Merge with *avx_ashr<mode>3.
17918         (lshr<mode>3): Merge with *avx_lshr<mode>3.
17919         (ashl<mode>3): Merge with *avx_ashl<mode>3.
17920         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
17921         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
17922         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17923         (*<smaxmin:code>v8hi3): Ditto.
17924         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
17925         (*<smaxmin:code>v16qi3): Ditto.
17926         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
17927         (*sse2_eq<mode>3): Ditto.
17928         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
17929         (*sse2_gt<mode>3): Ditto.
17930         (vcondv2di): Split out of vcond<mode>.
17931         (vconduv2di): Split out of vcondu<mode>.
17932
17933 2011-04-11  Richard Guenther  <rguenther@suse.de>
17934
17935         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
17936         before calling tree_low_cst.
17937
17938 2011-04-11  Richard Guenther  <rguenther@suse.de>
17939
17940         * stor-layout.c (layout_type): Compute all array index size operations
17941         in the original type.
17942         (initialize_sizetypes): Add comment.
17943         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
17944
17945 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
17946
17947         * common.opt (Tbss=, Tdata=, Ttext=): New options.
17948
17949 2011-04-11  Martin Jambor  <mjambor@suse.cz>
17950
17951         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
17952         of cgraph_node, handle NULL return value.
17953         (cgraph_global_info): Likewise.
17954         (cgraph_rtl_info): Likewise.
17955         * tree-inline.c (estimate_num_insns): Likewise.
17956         * gimplify.c (unshare_body): Likewise.
17957         (unvisit_body): Likewise.
17958         (gimplify_body): Likewise.
17959         * predict.c (optimize_function_for_size_p): Likewise.
17960         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
17961         (call_may_clobber_ref_p_1): Likewise.
17962         * varasm.c (function_section_1): Likewise.
17963         (assemble_start_function): Likewise.
17964
17965 2011-04-11  Martin Jambor  <mjambor@suse.cz>
17966
17967         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
17968         of cgraph_node.
17969         * final.c (rest_of_clean_state): Likewise.
17970         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
17971         * passes.c (pass_init_dump_file): Likewise.
17972         (execute_all_ipa_transforms): Likewise.
17973         (function_called_by_processed_nodes_p): Likewise.
17974         * predict.c (maybe_hot_frequency_p): Likewise.
17975         (probably_never_executed_bb_p): Likewise.
17976         (compute_function_frequency): Likewise.
17977         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
17978         (unnest_nesting_tree_1): Likewise.
17979         (lower_nested_functions): Likewise.
17980         * tree-optimize.c (execute_fixup_cfg): Likewise.
17981         (tree_rest_of_compilation): Likewise.
17982         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
17983         * tree-sra.c (ipa_early_sra): Likewise.
17984         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
17985         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
17986         * ipa.c (record_cdtor_fn): Likewise.
17987         * ipa-inline.c (cgraph_early_inlining): Likewise.
17988         (compute_inline_parameters_for_current): Likewise.
17989         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
17990         * ipa-pure-const.c (local_pure_const): Likewise.
17991         * ipa-split.c (split_function): Likewise.
17992         (execute_split_functions): Likewise.
17993         * cgraphbuild.c (build_cgraph_edges): Likewise.
17994         (rebuild_cgraph_edges): Likewise.
17995         (cgraph_rebuild_references): Likewise.
17996         (remove_cgraph_callee_edges): Likewise.
17997         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
17998         (verify_cgraph_node): Likewise.
17999         (cgraph_analyze_functions): Likewise.
18000         (cgraph_preserve_function_body_p): Likewise.
18001         (save_inline_function_body): Likewise.
18002         (save_inline_function_body): Likewise.
18003         * tree-inline.c (copy_bb): Likewise.
18004         (optimize_inline_calls): Likewise.
18005
18006 2011-04-11  Martin Jambor  <mjambor@suse.cz>
18007
18008         PR tree-optimization/48195
18009         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
18010         ipa_check_create_edge_args.
18011         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
18012         ipa_check_create_edge_args.
18013         * ipa-inline.c (inline_generate_summary): Do not call
18014         ipa_check_create_node_params and ipa_check_create_edge_args.
18015         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
18016         ipa_check_create_edge_args.
18017
18018 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
18019
18020         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
18021         instead of loop.
18022         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
18023         * function.c (record_hard_reg_sets): Likewise.
18024         * ira.c (compute_regs_asm_clobbered): Likewise.
18025         * sched-deps.c (sched_analyze_1): Likewise.
18026         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
18027
18028 2011-04-09  Xinliang David Li  <davidxl@google.com>
18029
18030         PR tree-optimization/PR48484
18031         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
18032         has_valid_pred lazily
18033
18034 2011-04-09  Duncan Sands  <baldrick@free.fr>
18035
18036         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
18037
18038 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
18039
18040         * combine.c (combine_validate_cost): Adjust comments.  Set registered
18041         cost of I0 to zero at the end, if any.
18042
18043 2011-04-08  Xinliang David Li  <davidxl@google.com>
18044
18045         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
18046         to insane profile data.
18047
18048 2011-04-08  Xinliang David Li  <davidxl@google.com>
18049
18050         * ipa-cp.c (ipcp_update_profiling): Correct
18051          negative scale factor due to insane profile data.
18052
18053 2011-04-08  Xinliang David Li  <davidxl@google.com>
18054
18055         * final.c (dump_basic_block_info): New function.
18056         (final): Dump basic block.
18057         (final_scan_insn): Remove old dump.
18058
18059 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
18060
18061         PR target/47829
18062         * config.gcc (i386-*-freebsd): Disable unwind table generation for
18063         crtbegin/crtend.
18064
18065 2011-04-08  Michael Matz  <matz@suse.de>
18066
18067         PR middle-end/48389
18068         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
18069         functions.
18070         (rebuild_jump_labels): Call rebuild_jump_labels_1.
18071         * rtl.h (rebuild_jump_labels_chain): Declare.
18072         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
18073         insns inserted on edges.
18074
18075 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
18076
18077         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
18078         * config/arm/arm-arches.def: New.
18079         * config/arm/arm-opts.h: New.
18080         * config/arm/genopt.sh: New.
18081         * config/arm/arm-tables.opt: New (generated).
18082         * config/arm/arm.c (arm_handle_option, arm_target_help,
18083         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
18084         (all_architectures): Get most table contents from arm-arches.def.
18085         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
18086         arm_selected_tune here.
18087         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
18088         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
18089         (march=, mcpu=, mtune=): Use Enum and Var.
18090         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
18091         (arm.o): Update dependencies.
18092
18093 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
18094
18095         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
18096         of header_file.
18097         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
18098         (write_typed_alloc_defns): Likewise.
18099         (main): Calls write_typed_alloc_defns with output_header.
18100
18101 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
18102
18103         PR inline-asm/48435
18104         * ira-color.c (setup_profitable_hard_regs): Add comments.
18105         Don't take prohibited hard regs into account.
18106         (setup_conflict_profitable_regs): Rename to
18107         get_conflict_profitable_regs.
18108         (check_hard_reg_p): Check prohibited hard regs.
18109
18110 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
18111
18112         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
18113         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
18114         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
18115
18116 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18117
18118         PR target/48366
18119         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
18120         move from floating point to shift amount register.
18121         (emit_move_sequence): Remove secondary reload support for floating
18122         point to shift amount amount register copies.
18123         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
18124         amount register copies.
18125         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
18126         register, return false if mode isn't a scalar integer mode.
18127         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
18128
18129 2011-04-08  Richard Guenther  <rguenther@suse.de>
18130
18131         * gimple.c (gimple_call_flags): Remove kludge.
18132
18133 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18134
18135         * sel-sched.c (sel_region_init): Move call to
18136         sel_setup_region_sched_flags after setup_current_loop_nest.
18137
18138 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
18139
18140         PR rtl-optimization/48272
18141         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
18142         init_insn_reg_pressure_info.  Adjust a caller.
18143         * sched-int.h (init_insn_reg_pressure_info): Declare.
18144         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
18145         when sched-pressure is enabled.
18146
18147 2011-04-08  Richard Guenther  <rguenther@suse.de>
18148
18149         * gimple.c (gimple_set_modified): Do not queue calls to
18150         MODIFIED_NORETURN_CALLS here ...
18151         * tree-ssa-operands.c (update_stmt_operands): ... but here.
18152
18153 2011-04-08  Richard Guenther  <rguenther@suse.de>
18154
18155         PR lto/48467
18156         * toplev.c (lang_dependent_init): Do not open asm_out_file
18157         in WPA mode, nor perform debug machinery initialization.
18158         (finalize): Do not unlink asm_out_file in WPA mode.
18159
18160 2011-04-08  Richard Guenther  <rguenther@suse.de>
18161
18162         * gimple.h (gimple_call_fntype): New function.
18163         (gimple_call_return_type): Use it.
18164         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
18165         * gimple-low.c (gimple_check_call_args): Likewise.
18166         * gimple.c (gimple_call_flags): Likewise.
18167         (gimple_call_arg_flags): Likewise.
18168         (gimple_call_return_flags): Likewise.
18169         * tree-cfg.c (verify_gimple_call): Likewise.
18170         (do_warn_unused_result): Likewise.
18171         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
18172         * value-prof.c (gimple_ic_transform): Fix fndecl check.
18173
18174 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
18175
18176         PR rtl-optimization/48235
18177         * sel-sched.c (code_motion_process_successors): Recompute the last
18178         insn in basic block if control flow changed.
18179         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
18180         Update condition for ilist_remove.
18181
18182 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18183
18184         PR rtl-optimization/48302
18185         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
18186         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
18187         it to record added preheader blocks.
18188         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
18189         on to sel_add_loop_preheaders.
18190         (sel_region_init): Move call to setup_current_loop_nest after
18191         sel_init_bbs.
18192
18193 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18194
18195         PR target/48273
18196         * cfgloop.h (loop_has_exit_edges): New helper.
18197         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
18198         non-clonable.
18199         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
18200         that have no exit edges.
18201
18202 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18203
18204         PR rtl-optimization/48442
18205         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
18206         all callers.  Adjust assert.
18207
18208 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
18209
18210         PR tree-optimization/48377
18211         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
18212         is_packed to true even for types with smaller TYPE_ALIGN than
18213         TYPE_SIZE.
18214
18215 2011-04-08  Richard Guenther  <rguenther@suse.de>
18216
18217         PR bootstrap/48513
18218         * doc/tm.texi: Re-generate.
18219
18220 2011-04-08  Wei Guozhi  <carrot@google.com>
18221
18222         PR target/47855
18223         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
18224         * config/arm/arm.c (arm_attr_length_push_multi): New function.
18225         * config/arm/arm.md (*push_multi): Change the length computation to
18226         call a C function.
18227
18228 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
18229
18230         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
18231         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
18232         * doc/tm.texi: Regenerate.
18233         * system.h (ASM_OUTPUT_BSS): Poison.
18234         * varasm.c (asm_output_bss): Remove function.
18235         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
18236
18237         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
18238         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
18239         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
18240         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18241         Likewise.
18242         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18243         Likewise.
18244         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18245         Likewise.
18246         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
18247
18248 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
18249
18250         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
18251         EnumValue lines.
18252
18253 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
18254
18255         * config/m68k/m68k.c (m68k_handle_option): Don't handle
18256         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
18257         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
18258         OPT_mcpu32.
18259         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
18260         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
18261         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
18262         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
18263         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
18264         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
18265         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
18266         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
18267         options.  Don't map other m68k options manually.  Don't handle
18268         old-style options as canonical.
18269         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
18270         * doc/install.texi (m68k-*-*): Document binutils version requirement.
18271
18272 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
18273
18274         * basic-block.h (force_nonfallthru): Move to...
18275         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
18276         (force_nonfallthru): ...here.
18277         * cfghooks.c (force_nonfallthru): New function.
18278         * cfgrtl.c (force_nonfallthru): Rename into...
18279         (rtl_force_nonfallthru): ...this.
18280         (commit_one_edge_insertion): Do not set AUX field.
18281         (commit_edge_insertions): Do not discover new basic blocks.
18282         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
18283         (cfg_layout_rtl_cfg_hooks): Likewise.
18284         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
18285         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
18286         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
18287
18288 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
18289
18290         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18291         Remove macros.
18292
18293 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
18294
18295         * config/i386/sse.md: Update copyright year.
18296         (avxcvtvecmode): Remove.
18297         (sse_movhlps): Merge with *avx_movhlps.
18298         (sse_movlhps): Merge with *avx_movlhps.
18299         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
18300         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
18301         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
18302         (sse_loadhps): Merge with *avx_loadhps.
18303         (sse_storelps): Merge with *avx_storelps.
18304         (sse_loadlps): Merge with *avx_loadlps.
18305         (sse_movss): Merge with *avx_movss.
18306         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
18307         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
18308         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
18309         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
18310         (vec_set<mode>_0): Ditto.
18311         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
18312         (sse4_1_insertps): Merge with *avx_insertps.
18313         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
18314         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
18315         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
18316         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
18317         (sse2_storehpd): Merge with *avx_storehpd.
18318         (sse2_loadhpd): Merge with *avx_loadhpd.
18319         (sse2_loadlpd): Merge with *avx_loadlpd.
18320         (sse2_movsd): Merge with *avx_movsd.
18321         (*vec_concatv2df): Merge with *vec_concatv2df.
18322
18323 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
18324
18325         PR debug/48343
18326         * combine.c (combine_instructions): Add last_combined_insn,
18327         update it if insn is after it, pass it to all try_combine calls.
18328         (try_combine): Add last_combined_insn parameter, pass it instead of
18329         i3 to propagate_for_debug.
18330
18331 2011-04-07  Nick Clifton  <nickc@redhat.com>
18332
18333         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
18334         to handle MDR <-> data register transfers.
18335         (movhi_internal): Likewise.
18336
18337 2011-04-07  Alan Modra  <amodra@gmail.com>
18338
18339         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
18340         previous stack info.
18341
18342 2011-04-07  Tom de Vries  <tom@codesourcery.com>
18343
18344         PR target/43920
18345         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
18346         flow_find_cross_jump.  Swap variables to implement backward replacement.
18347         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
18348
18349 2011-04-07  Tom de Vries  <tom@codesourcery.com>
18350
18351         PR target/43920
18352         * cfgcleanup.c (walk_to_nondebug_insn): New function.
18353         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
18354         and bb2.
18355         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
18356         src1 or src2.  Redirect edges to the last basic block.  Update
18357         frequency and count on multiple basic blocks in case of fallthru.
18358
18359 2011-04-07  Tom de Vries  <tom@codesourcery.com>
18360
18361         PR target/43920
18362         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
18363         function.
18364         (old_insns_match_p): Change return type.  Replace return false/true
18365         with return dir_none/dir_both.  Use can_replace_by.
18366         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
18367         direction from dir_p.  Register replacement direction in dir, last_dir
18368         and afterlast_dir.  Handle new return type of old_insns_match_p using
18369         merge_dir.  Return replacement direction in dir_p.
18370         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
18371         return type of old_insns_match_p.
18372         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
18373         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
18374         flow_find_cross_jump.
18375         * basic-block.h (enum replace_direction): New type.
18376         (flow_find_cross_jump): Add parameter to declaration.
18377
18378 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
18379
18380         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
18381         (AVXMODEDCVTPS2DQ): Ditto.
18382         (VEC_FLOAT_MODE): Ditto.
18383         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
18384         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
18385         (<any_logic:code><mode>3): Use VF mode iterator.
18386         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
18387         Use VF mode iterator.
18388         (copysign<mode>3): Use VF mode iterator.
18389         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
18390         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
18391         (*<any_logic:code><MODEF:mode>3): Merge with
18392         *avx_<any_logic:code><MODEF:mode>3.
18393         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
18394         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
18395         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
18396         (avx_cvtdq2ps<avxmodesuffix>): Remove.
18397         (sse2_cvtdq2ps): Use %v modifier.
18398         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
18399         (avx_cvtps2dq<avxmodesuffix>): Remove.
18400         (sse2_cvtps2dq): Use %v modifier.
18401         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
18402         (avx_cvttps2dq<avxmodesuffix>): Remove.
18403         (sse2_cvttps2dq): Use %v modifier.
18404         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
18405         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
18406         (sse2_cvtsd2siq): Fix insn template.
18407         (sse2_cvtsd2siq_2): Ditto.
18408         (sse2_cvttsd2siq): Ditto.
18409         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
18410         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
18411
18412 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
18413
18414         * gcov-io.c: Use GCC Runtime Library Exception.
18415
18416 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
18417
18418         PR debug/48466
18419         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
18420         as base_reg whatever register reg has been eliminated to, instead
18421         of hardcoding STACK_POINTER_REGNUM.
18422
18423 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
18424
18425         * doc/tm.texi.in: Document C target hooks as separate from general
18426         target hooks.
18427         * doc/tm.texi: Regenerate.
18428         * genhooks.c (struct hook_desc): Add docname field.
18429         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
18430         docname field.
18431         (hook_array): Include c-target.def.
18432         (emit_documentation): Use docname field in output.
18433         (emit_init_macros): Take docname argument.  Only emit definitions
18434         for hooks matching docname.
18435         (main): Expect additional arguments in all cases.  Pass argument
18436         to emit_init_macros.
18437         * target.def: Move initial macro definitions and comments to
18438         target-hooks-macros.h.
18439         (gcc_targetcm): Move to c-family/c-target.def.
18440         * target.h (targetcm): Move declaration to c-family/c-target.h.
18441         * targhooks.c (default_handle_c_option): Move to
18442         c-family/c-opts.c.
18443         * targhooks.h (default_handle_c_option): Move declaration to
18444         c-family/c-common.h.
18445         * target-hooks-macros.h: New file.
18446         * config.gcc (target_has_targetcm): Define and use to add to
18447         c_target_objs and cxx_target_objs.
18448         * config/default-c.c: New file.
18449         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
18450         of target.h and target-def.h.
18451         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
18452         (darwin_objc_construct_string, darwin_cfstring_ref_p,
18453         darwin_check_cfstring_format_arg): Make static.
18454         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
18455         TARGET_STRING_OBJECT_REF_TYPE_P,
18456         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
18457         * config/darwin-protos.h (darwin_objc_construct_string,
18458         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
18459         declare.
18460         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
18461         TARGET_STRING_OBJECT_REF_TYPE_P,
18462         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
18463         * config/t-darwin (darwin-c.o): Update dependencies.
18464         * system.h (TARGET_HAS_TARGETCM): Poison.
18465         * Makefile.in (TARGET_H): Update.
18466         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
18467         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
18468         (default-c.o): New target.
18469         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
18470         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
18471         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
18472         c-target.def.
18473         (build/genhooks.o): Update dependencies.
18474
18475 2011-04-06  Richard Guenther  <rguenther@suse.de>
18476
18477         * ipa-inline.c (enum inlining_mode): Remove.
18478         (cgraph_flatten): Use some other token.
18479         (cgraph_edge_early_inlinable_p): New function, split out from ...
18480         (cgraph_perform_always_inlining): New function, split out from ...
18481         (cgraph_decide_inlining_incrementally): ... here.
18482         (cgraph_mark_inline_edge): Adjust.
18483         (cgraph_early_inlining): Re-structure.
18484         (pass_early_inline): Require SSA form.
18485
18486 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
18487             Julian Brown  <julian@codesourcery.com>
18488             Mark Shinwell  <shinwell@codesourcery.com>
18489
18490         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
18491         LO_REGS only for Thumb-1.
18492         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
18493         be used in short instructions when optimising for size on Thumb-2.
18494
18495 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
18496
18497         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
18498         associated with user returns to be preserved.
18499
18500 2011-04-06  Tristan Gingold  <gingold@adacore.com>
18501
18502         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
18503         symbol_queue_size, DBXOUT_DECR_NESTING,
18504         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
18505         if XCOFF_DEBUGGING_INFO.
18506
18507 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
18508
18509         * config/i386/i386.md (attribute isa): New.
18510         (attribute enabled): New.
18511         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
18512         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
18513         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
18514         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
18515         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
18516         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18517         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
18518         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
18519
18520         * config/i386/sse.md (VF): New mode iterator.
18521         (VF1): Ditto.
18522         (VF2): Ditto.
18523         (VF_128): Ditto.
18524         (SSEMODEF4): Remove.
18525         (attribute sse): Handle V8SF and V4DF modes.
18526         (<absneg:code><mode>2): Use VF mode iterator.
18527         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
18528         mode iterator.
18529         (<plusminus_insn><mode>3): Use VF mode iterator.
18530         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
18531         Use VF mode iterator.
18532         (<sse>_vm<plusminus_insn><mode>3): Merge with
18533         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
18534         (mul<mode>3): Use VF mode iterator.
18535         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
18536         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
18537         mode iterator.
18538         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
18539         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
18540         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
18541         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
18542         mode iterator.
18543         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
18544         Use VF1 mode iterator.
18545         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
18546         (sqrt<VF2:mode>2): New expander.
18547         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
18548         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
18549         and sqrtv2df2.  Use VF mode iterator.
18550         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
18551         mode iterator.
18552         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
18553         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
18554         Use VF1 mode iterator.
18555         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
18556         (<smaxmin:code><mode>3): Use VF mode iterator.
18557         (*<smaxmin:code><mode>3_finite): Merge with
18558         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
18559         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18560         (<sse>_vm<smaxmin:code><mode>2): Merge with
18561         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
18562         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
18563         mode iterator.
18564         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
18565         mode iterator.
18566         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
18567         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
18568         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
18569         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
18570         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
18571         VF mode iterator.
18572         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
18573         Use VF_128 mode iterator.
18574         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
18575         mode iterator.
18576         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
18577         VF_128 mode iterator.
18578         (vcond<mode>): Use VF mode iterator.
18579         * config/i386/predicates.md (sse_comparison_operator): Merge with
18580         avx_comparison_float_operator.  Do not declare as special_predicate.
18581         * config/i386/i386.c (struct builtin_description): Update for renamed
18582         compare patterns.
18583         (ix86_expand_args_builtin): Ditto.
18584         (ix86_expand_sse_compare_mask): Ditto.
18585
18586 2011-04-06  Richard Guenther  <rguenther@suse.de>
18587
18588         * tree-inline.c (estimate_num_insns): For calls simply account
18589         for all passed arguments and a used return value.
18590
18591 2011-04-06  Richard Guenther  <rguenther@suse.de>
18592
18593         PR tree-optimization/47663
18594         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
18595         call_stmt_time fields.
18596         (cgraph_edge_inlinable_p): Declare.
18597         (cgraph_edge_recursive_p): New inline function.
18598         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
18599         (cgraph_clone_edge): Copy it.
18600         * ipa-inline.c (cgraph_estimate_edge_time): New function.
18601         Account for call stmt time.
18602         (cgraph_estimate_time_after_inlining): Take edge argument.
18603         (cgraph_estimate_edge_growth): Account call stmt size.
18604         (cgraph_estimate_size_after_inlining): Take edge argument.
18605         (cgraph_mark_inline_edge): Adjust.
18606         (cgraph_check_inline_limits): Likewise.
18607         (cgraph_recursive_inlining_p): Remove.
18608         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
18609         (cgraph_decide_recursive_inlining): Take edge argument and
18610         adjust.
18611         (cgraph_decide_inlining_of_small_functions): Do not avoid
18612         diags for recursive inlining here.
18613         (cgraph_flatten): Adjust.
18614         (cgraph_decide_inlining_incrementally): Likewise.
18615         (estimate_function_body_sizes): Remove call cost handling.
18616         (compute_inline_parameters): Initialize caller edge call costs.
18617         (cgraph_estimate_edge_growth): New function.
18618         (cgraph_estimate_growth): Use it.
18619         (cgraph_edge_badness): Likewise.
18620         (cgraph_check_inline_limits): Take an edge argument.
18621         (cgraph_decide_inlining_of_small_functions): Adjust.
18622         (cgraph_decide_inlining): Likewise.
18623         * tree-inline.c (estimate_num_insns): Only account for call
18624         return value if it is used.
18625         (expand_call_inline): Avoid diagnostics on recursive inline
18626         functions here.
18627         * lto-cgraph.c (lto_output_edge): Output edge call costs.
18628         (input_edge): Input edge call costs.
18629
18630 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18631
18632         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
18633
18634 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
18635
18636         * doc/invoke.texi (Spec Files): Fix typo.
18637
18638 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
18639
18640         * profile.c (branch_prob): Move declaration of local variable.  Remove
18641         obsolete ??? comment.  Expand the location explicitly instead of using
18642         the LOCATION_FILE and LOCATION_LINE macros.
18643
18644 2011-04-06  Wei Guozhi  <carrot@google.com>
18645
18646         PR target/47855
18647         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
18648         (arm_cond_branch): Likewise.
18649         (arm_cond_branch_reversed): Likewise.
18650         (arm_jump): Likewise.
18651         (push_multi): Likewise.
18652         * config/arm/constraints.md (Py): New constraint.
18653
18654 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18655
18656         PR bootstrap/48471
18657         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
18658         Move these...
18659         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
18660         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
18661         #ifdef DBX_DEBUGGING_INFO.
18662
18663 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
18664
18665         PR bootstrap/48403
18666         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
18667         if old and new states differ.
18668
18669 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
18670
18671         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
18672         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
18673         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
18674         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
18675         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
18676         mcfv4e): Use Alias.
18677         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
18678         ColdFire options to -mcpu= options.
18679
18680 2011-04-05  Jeff Law  <law@redhat.com>
18681
18682         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
18683         check if BB is a successor of LOOP->header and return
18684         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
18685
18686 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
18687
18688         * cprop.c (struct reg_use): Remove.
18689         (reg_use_table): Make an array of RTX.
18690         (find_used_regs, constprop_register, local_cprop_pass,
18691         bypass_block): Simplify users of reg_use_table.
18692         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
18693         on one of the uses found by find_used_regs.
18694
18695 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18696
18697         PR bootstrap/48469
18698         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
18699         declaration.
18700
18701 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18702
18703         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
18704         as an rtx.
18705         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
18706
18707 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
18708
18709         PR middle-end/48441
18710         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
18711
18712 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18713
18714         * combine.c: Include obstack.h.
18715         (struct insn_link): Define.
18716         (uid_log_links): Adjust type.
18717         (FOR_EACH_LOG_LINK): New macro.
18718         (insn_link_obstack): Declare.
18719         (alloc_insn_link): Define.
18720         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
18721         type of link variables.
18722         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
18723         (try_combine, record_promoted_values, distribute_notes): Likewise.
18724         (distribute_links): Likewise.  Tweak prototype.
18725         (clear_log_links): Delete.
18726         (adjust_for_new_dest): Call alloc_insn_link.
18727         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
18728
18729 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18730
18731         * gcse.c (modify_mem_list): Convert to an array of VECs.
18732         (canon_modify_mem_list, compute_transp): Tweak formatting.
18733         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
18734         (load_killed_in_block_p): Likewise.
18735         (record_last_mem_set_info): Likewise.
18736         (clear_modify_mem_tables): Likewise.
18737
18738 2011-04-05  Tom de Vries  <tom@codesourcery.com>
18739
18740         PR middle-end/48461
18741         * function.c (emit_use_return_register_into_block): Only define if
18742         HAVE_return.
18743
18744 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
18745
18746         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
18747
18748 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
18749
18750         * config/rx/rx-opts.h: New.
18751         * config/rx/rx.c (rx_cpu_type): Remove.
18752         (rx_handle_option): Don't assert that global structures are in
18753         use.  Access variables via opts pointer.  Defer most handling of
18754         OPT_mint_register_.  Use error_at.
18755         (rx_option_override): Handle deferred OPT_mint_register_ here.
18756         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
18757         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
18758         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
18759         (rx_cpu_types): New Enum and EnumValue entries.
18760         (mint-register=): Use Defer and use Var accordingly.
18761
18762 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18763
18764         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
18765         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
18766         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
18767         Move these...
18768         (debug_free_queue, debug_nesting, symbol_queue_index):
18769         ...and these...
18770         * dbxout.c: ...to here.  Make static.
18771
18772 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18773
18774         * gcse.c (modify_pair): Define.  Define a VEC of it.
18775         (canon_modify_mem_list): Convert to an array of VECs.
18776         (free_insn_expr_list_list): Delete.
18777         (clear_modify_mem_tables): Call VEC_free instead.
18778         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
18779         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
18780         (canon_list_insert, compute_transp): Likewise.
18781
18782 2011-04-05  Tom de Vries  <tom@codesourcery.com>
18783
18784         PR target/43920
18785         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
18786         for size.
18787
18788 2011-04-05  Tom de Vries  <tom@codesourcery.com>
18789
18790         PR target/43920
18791         * function.c (emit_use_return_register_into_block): New function.
18792         (thread_prologue_and_epilogue_insns): Use
18793         emit_use_return_register_into_block.
18794
18795 2011-04-05  Tom de Vries  <tom@codesourcery.com>
18796
18797         PR target/43920
18798         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
18799         insn.
18800
18801 2011-04-05  Tom de Vries  <tom@codesourcery.com>
18802
18803         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
18804
18805 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
18806
18807         * config/arm/arm.md (define_constants for unspec): Replace with
18808         define_c_enum.
18809         (define_constants for unspecv): Replace with define_c_enum.
18810         * config/arm/neon.md (define_constants for unspec): Replace with
18811         define_c_enum.
18812
18813 2011-04-04  Richard Henderson  <rth@redhat.com>
18814
18815         PR bootstrap/48400
18816         * dwarf2out.c (output_line_info): Always emit line info from
18817         at least one section.
18818         (dwarf2out_init): Create text_section_line_info here ...
18819         (set_cur_line_info_table): ... not here.
18820
18821 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
18822
18823         PR target/48380
18824         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
18825         not called.
18826
18827         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
18828
18829 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
18830
18831         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
18832         (expr_equiv_p): Remove.
18833         (insert_set_in_table): Look at <dest, src> pair instead of expr.
18834         (hash_scan_set): Update call to insert_set_in_table.
18835         (dump_hash_table): Dump <dest, src> pair.
18836         (lookup_set): Simplify.  Lookup <dest, src> pair.
18837         (compute_transp): Remove, fold heavily simplified code into...
18838         (compute_local_properties): ...here.  Expect COMP and TRANSP
18839         unconditionally.
18840         (find_avail_set): Take set directly from struct expr.
18841         (find_bypass-set): Likewise.
18842         (bypass_block): Likewise.
18843         (cprop_insn): Likewise.  Remove redundant INSN_P test.
18844
18845         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
18846         checks on form of COND from find_implicit_sets to here.
18847         (find_implicit_sets): Cleanup control flow. Split critical edges
18848         if it exposes implicit sets.  Allocate/resize implicit_sets as
18849         necessary.
18850         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
18851         changed something.  Run df_analyze after find_implicit_sets if any
18852         edges were split.  Do not allocate implicit_sets here.
18853
18854         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
18855         (gcse_obstack): Renamed to cprop_obstack.
18856         (GNEW, GNEWVEC, GNEWVAR): Remove.
18857         (gmalloc): Remove.
18858         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
18859         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
18860         (gcse_alloc): Likewise, and rename to cprop_alloc.
18861         (alloc_gcse_men, free_gcse_mem): Remove.
18862         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
18863         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
18864         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
18865
18866         * cprop.c (oprs_not_set_p): Remove.
18867         (mark_set, mark_clobber): Remove.
18868         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
18869         (reg_not_set_p): New function.
18870         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
18871         (cprop_insn): Likewise.
18872         (cprop_jump): Use FOR_EACH_EDGE.
18873
18874 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
18875
18876         PR bootstrap/48403
18877         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
18878         (rank_for_schedule): Use scheduled_insns vector instead of
18879         last_scheduled_insn.
18880         (ok_for_early_queue_removal): Likewise.
18881         (queue_to_ready): Search forward in nonscheduled_insns_begin if
18882         we have a dbg_cnt.
18883         (choose_ready): Likewise.
18884         (commit_schedule): Use VEC_iterate.
18885         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
18886         a dbg_cnt, use it and ensure the first insn is in the ready list.
18887         (haifa_sched_init): Allocate scheduled_insns.
18888         (sched_extend_ready_list): Don't allocate it; reserve space.
18889         (haifa_sched_finish): Free it.
18890
18891 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
18892
18893         * optc-gen.awk: Always remove type from Variable entry before
18894         recording in var_seen.
18895
18896 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
18897
18898         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
18899         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
18900         call to tidy_fallthru_edges.
18901
18902 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
18903
18904         * doc/options.texi (ToLower): Document.
18905         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
18906         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
18907         * opts.h (cl_option): Add cl_tolower field.
18908         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
18909         arguments with lowercase strings.
18910         * config/rx/rx.opt (mcpu=): Add ToLower.
18911         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
18912         argument.
18913
18914 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
18915
18916         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
18917
18918 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
18919
18920         * config/vax/vax.c: Include reload.h.
18921
18922 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
18923
18924         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
18925         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
18926         (sparc_preferred_reload_class): New function.
18927
18928 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
18929
18930         PR debug/48401
18931         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
18932         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
18933
18934 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
18935
18936         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
18937         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
18938
18939 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
18940
18941         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
18942         (ASM_OUTPUT_ALIGNED_BSS): Define.
18943
18944 2011-04-03  Michael Matz  <matz@suse.de>
18945
18946         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
18947         and next_slot members.
18948         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
18949         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
18950         (lto_streamer_cache_append): Declare.
18951         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
18952         unsigned index, remove offset parameter, ensure that we append
18953         or update existing entries.
18954         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
18955         parameter, update next_slot for append.
18956         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
18957         parameter.
18958         (lto_streamer_cache_insert_at): Likewise.
18959         (lto_streamer_cache_append): New function.
18960         (lto_streamer_cache_lookup): Use unsigned index.
18961         (lto_streamer_cache_get): Likewise.
18962         (lto_record_common_node): Don't test tree_node_can_be_shared.
18963         (preload_common_node): Adjust call to lto_streamer_cache_insert.
18964         (lto_streamer_cache_delete): Don't free offsets member.
18965         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
18966         (lto_output_string_with_length): Use lto_output_data_stream.
18967         (lto_output_tree_header): Remove ix parameter, don't write it.
18968         (lto_output_builtin_tree): Likewise.
18969         (lto_write_tree): Adjust callers to above, don't track and write
18970         offset, write unsigned index.
18971         (output_unreferenced_globals): Don't emit all global vars.
18972         (write_global_references): Use unsigned indices.
18973         (lto_output_decl_state_refs): Likewise.
18974         (write_symbol): Likewise.
18975         * lto-streamer-in.c (lto_input_chain): Move earlier.
18976         (input_function): Use unsigned index.
18977         (input_alias_pairs): Don't read and then ignore all global vars.
18978         (lto_materialize_tree): Remove ix_p parameter, don't read index,
18979         don't pass it back, use lto_streamer_cache_append.
18980         (lto_register_var_decl_in_symtab): Use unsigned index.
18981         (lto_register_function_decl_in_symtab): Likewise.
18982         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
18983         index.
18984         (lto_get_builtin_tree): Don't read index, use
18985         lto_streamer_cache_append.
18986         (lto_read_tree): Adjust call to lto_materialize_tree.
18987
18988         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
18989         don't use function calls in arguments to MIN.
18990
18991         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
18992         twice.
18993
18994         * gimple.c (gimple_type_leader_entry): Mark deletable.
18995
18996 2011-04-03  Alan Modra  <amodra@gmail.com>
18997
18998         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
18999
19000 2011-04-03  Michael Matz  <matz@suse.de>
19001
19002         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
19003         an integer.
19004         * tree.h (tree_decl_non_common.vindex): Adjust comment.
19005
19006 2011-04-03  Michael Matz  <matz@suse.de>
19007
19008         * cgraphbuild.c (record_reference): Canonicalize constructor values.
19009         * gimple-fold.c (canonicalize_constructor_val): Accept being called
19010         without function context.
19011         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
19012         current_function_decl and cfun.
19013
19014 2011-04-03  Michael Matz  <matz@suse.de>
19015
19016         * tree.c (decl_init_priority_insert): Don't create entry for
19017         default priority.
19018         (decl_fini_priority_insert): Ditto.
19019         (fields_compatible_p, find_compatible_field): Remove.
19020         * tree.h (fields_compatible_p, find_compatible_field): Remove.
19021         * gimple.c (gimple_compare_field_offset): Adjust block comment.
19022
19023 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
19024
19025         * combine.c (try_combine): Remove useless local variable.
19026
19027 2011-04-03  Richard Guenther  <rguenther@suse.de>
19028             Ira Rosen  <ira.rosen@linaro.org>
19029
19030         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
19031         non-variable offsets and compare the remaining bases of the two
19032         accesses instead of looking for exact same data-ref.
19033
19034 2011-04-02  Kai Tietz  <ktietz@redhat.com>
19035
19036         PR target/48416
19037         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
19038
19039         * i386.c (ix86_is_msabi_thiscall): New helper function.
19040         (ix86_is_type_thiscall): New helper function.
19041         (ix86_comp_type_attributes): Handle thiscall for method-functions
19042         special.
19043         (init_cumulative_args): Likewise.
19044         (find_drap_reg): Likewise.
19045         (ix86_static_chain): Likewise.
19046         (x86_this_parameter): Likewise.
19047         (x86_output_mi_thunk): Likewise.
19048
19049 2011-04-01  Olivier Hainque  <hainque@adacore.com>
19050             Nicolas Setton  <setton@adacore.com>
19051             Eric Botcazou  <ebotcazou@adacore.com>
19052
19053         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
19054         (add_gnat_descriptive_type_attribute): New function.
19055         (gen_array_type_die): Call it.
19056         (gen_enumeration_type_die): Likewise.
19057         (gen_struct_or_union_type_die): Likewise.
19058         (modified_type_die): Likewise.
19059         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
19060         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
19061         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
19062
19063 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
19064
19065         PR bootstrap/48148
19066         * dwarf2out.c (resolve_addr): Don't call force_decl_die
19067         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
19068
19069         Revert:
19070         2011-03-17  Richard Guenther  <rguenther@suse.de>
19071
19072         PR bootstrap/48148
19073         * lto-cgraph.c (input_overwrite_node): Clear the abstract
19074         origin for decls in other ltrans units.
19075         (input_varpool_node): Likewise.
19076
19077 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
19078
19079         PR middle-end/48335
19080         * expr.c (expand_assignment): Handle all possibilities
19081         if TO_RTX is CONCAT.
19082         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19083         (store_split_bit_field): If SUBREG_REG (op0) or
19084         op0 itself has smaller mode than word, return it
19085         for offset 0 and const0_rtx for out-of-bounds stores.
19086         If word is const0_rtx, skip it.
19087
19088 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
19089
19090         * config/h8300/h8300.c (print_operand_address): Rename to...
19091         (h8300_print_operand_address): ...this. Make static. Adjust comments.
19092         Call h8300_print_operand and h8300_print_operand_address instead of
19093         print_operand and print_operand_address. Declare.
19094         (print_operand): Renake to...
19095         (h8300_print_operand): ...this. Make static. Adjust comments.
19096         Call h8300_print_operand instead of print_operand. Declare.
19097         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
19098         (h8300_register_move_cost): Likewise.
19099         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
19100         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
19101         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
19102         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
19103         * config/h8300/h8300-protos.h (print_operand): Delete.
19104         (print_operand_address): Delete.
19105
19106 2011-04-01  Richard Henderson  <rth@redhat.com>
19107
19108         PR 48400
19109         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
19110         in strict mode before dwarf4.  Re-order tests to early out
19111         before switching sections.
19112
19113 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
19114
19115         * config/h8300/constraints.md: New file.
19116         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
19117         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
19118         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
19119         * config/h8300/predicates.md (bit_operand): Likewise.
19120         (incdec_operand): Use satisfies_constraint_M and
19121         satisfies_constraint_O.  Don't use C code block.
19122         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
19123         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
19124         (compute_mov_length): Use satisfies_constraint_G.
19125         (fix_bit_operand): Use satisfies_constraint_U.
19126         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
19127         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
19128         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
19129         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
19130         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
19131         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
19132         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19133         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
19134         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
19135         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
19136         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
19137         (EXTRA_MEMORY_CONSTRAINT): Delete.
19138
19139 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
19140             Michael Meissner  <meissner@linux.vnet.ibm.com>
19141
19142         PR target/48262
19143         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
19144         operands, as per the specifications.
19145
19146         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
19147         (vec_extract_evenv4sf): Ditto.
19148         (vec_extract_evenv8hi): Ditto.
19149         (vec_extract_evenv16qi): Ditto.
19150         (vec_extract_oddv4si): Ditto.
19151
19152 2011-03-31  Mark Wielaard  <mjw@redhat.com>
19153
19154         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
19155         high_pc attribute if the CU has no associated code. Only output
19156         DW_AT_entry_pc for CU if not generating strict dwarf and
19157         dwarf_version < 4.
19158
19159 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
19160
19161         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
19162         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
19163         out of ...
19164         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
19165         * final.c (final_start_function): Call the new function rather
19166         than using a NULL argument for dwarf2out_frame_debug.
19167
19168         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
19169         that contains the prologue.
19170
19171         * haifa-sched.c (queue_insn): New arg REASON.  All callers
19172         changed.  Print it in debugging output.
19173
19174         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
19175
19176         * sched-ebb.c (begin_schedule_ready): Remove second argument.
19177         Split most of the code into...
19178         (begin_move_insn): ... here.  New function.
19179         (ebb_sched_info): Add a pointer to it.
19180         * haifa-sched.c (scheduled_insns): New static variable.
19181         (sched_extend_ready_list): Allocate it.
19182         (schedule_block): Use it to record the order of scheduled insns.
19183         Perform RTL changes to move insns only after all scheduling
19184         decisions have been made.
19185         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
19186         begin_move_insn field.
19187         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
19188         * sched-int.h (struct haifa_sched_info): Remove second argument
19189         from begin_schedule_ready hook.  Add new member begin_move_insn.
19190         * sched-rgn.c (begin_schedule_ready): Remove second argument.
19191         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
19192
19193         * haifa-sched.c (prune_ready_list): New function, broken out of
19194         schedule_block.
19195         (schedule_block): Use it.
19196
19197 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19198
19199         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
19200
19201 2011-04-01  Kai Tietz  <ktietz@redhat.com>
19202
19203         * config.gcc (*-*-mingw*): Allow as option the
19204         posix threading model.
19205         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
19206         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
19207         definition.
19208         (CPP_SPEC): Add pthread/no-pthread handling.
19209         (LIB_SPEC): Likewise.
19210         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
19211         (LIB_SPEC): Likewise.
19212         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
19213         flag to pass -pthread option for shared libgcc build.
19214         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
19215         for shared libgcc build.
19216         * config/i386/t-mingw-pthread: New file.
19217         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
19218         New define to enable use of library pthread by default.
19219         * config/i386/mingw.opt (pthread): New driver option.
19220         (no-pthread): New driver option.
19221         * config/i386/cygming.opt: Make sure trailing empty line is retained.
19222         * config/i386/mingw-w64.opt: Likewise.
19223
19224 2011-04-01  Gary Funck  <gary@intrepid.com>
19225
19226         * c-decl.c (grokdeclarator): Fix formatting.
19227
19228 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19229
19230         * expr.c (emit_block_move_via_movmem): Use n_generator_args
19231         instead of n_operands.
19232         (set_storage_via_setmem): Likewise.
19233         * optabs.c (maybe_gen_insn): Likewise.
19234         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
19235         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
19236         (mips_expand_builtin_direct): Likewise.
19237         * config/spu/spu.c (expand_builtin_args): Likewise.
19238
19239 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19240
19241         * recog.h (insn_data_d): Add n_generator_args.
19242         * genoutput.c (data): Likewise.
19243         (output_insn_data): Print it.
19244         (max_opno, num_dups): Delete.
19245         (scan_operands): Just fill in "d->operand[...]".
19246         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
19247
19248 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19249
19250         * gensupport.h (pattern_stats): New structure.
19251         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
19252         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
19253         (max_operand_1, max_operand_vec): Delete.
19254         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
19255
19256 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
19257
19258         * emit-rtl.c (emit_pattern_after_setloc): New function.
19259         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
19260         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
19261         (emit_pattern_after): New function.
19262         (emit_insn_after, emit_jump_insn_after): Call it.
19263         (emit_call_insn_after, emit_debug_insn_after): Likewise.
19264         (emit_pattern_before_setloc): New function.
19265         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
19266         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
19267         Likewise.
19268         (emit_pattern_before): New function.
19269         (emit_insn_before, emit_jump_insn_before): Call it.
19270         (emit_call_insn_before, emit_debug_insn_before): Likewise.
19271
19272 2011-03-31  Richard Henderson  <rth@redhat.com>
19273
19274         * dwarf2out.c (dw_separate_line_info_ref): Remove.
19275         (dw_separate_line_info_entry): Remove.
19276         (enum dw_line_info_opcode): New.
19277         (dw_line_info_entry): Use it.
19278         (dw_line_info_table, dw_line_info_table_p): New.
19279         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
19280         (line_info_table, line_info_label_num): Remove.
19281         (line_info_table_in_use): Remove.
19282         (separate_line_info_table): Remove.
19283         (separate_line_info_table_allocated): Remove.
19284         (separate_line_info_table_in_use): Remove.
19285         (LINE_INFO_TABLE_INCREMENT): Remove.
19286         (line_info_label_num): New.
19287         (cur_line_info_table): New.
19288         (text_section_line_info, cold_text_section_line_info): New.
19289         (separate_line_info): New.
19290         (SEPARATE_LINE_CODE_LABEL): Remove.
19291         (print_dwarf_line_table): Remove.
19292         (debug_dwarf): Don't dump it.
19293         (output_one_line_info_table): New.
19294         (output_line_info): Use it.
19295         (new_line_info_table): New.
19296         (set_cur_line_info_table): New.
19297         (dwarf2out_switch_text_section): Use it.
19298         (dwarf2out_begin_function): Likewise.
19299         (push_dw_line_info_entry): New.
19300         (dwarf2out_source_line): Rewrite for new line info tables.
19301         (dwarf2out_init): Remove dead initailizations.
19302
19303 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
19304
19305         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
19306         various flags.
19307         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
19308         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
19309         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
19310         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
19311         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
19312         * opt-functions.awk (flag_init, switch_bit_fields): New.
19313         (switch_flags): Don't handle flags moved to bit-fields.  Don't
19314         generate CL_MISSING_OK or CL_SAVE.
19315         * optc-gen.awk: Update to generate bit-field output as well as
19316         flags field.
19317         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
19318         bit-field instead of CL_REJECT_DRIVER flag.
19319         * opts-common.c (generate_canonical_option,
19320         decode_cmdline_option): Use bit-fields instead of CL_* flags.
19321         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
19322         instead of CL_REJECT_NEGATIVE flag.
19323         * toplev.c (print_switch_values): Use cl_report bit-field instead
19324         of CL_REPORT flag.
19325
19326 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
19327
19328         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
19329         a zero minimum index only if it is redundant.
19330
19331 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
19332
19333         PR rtl-optimization/48381
19334         * ira-color.c (assign_hard_reg): Use hard reg set intersection
19335         instead of ira_class_hard_reg_index for calculating conflicting
19336         hard registers.
19337
19338 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
19339
19340         * cprop.c: Clean up hash table building.
19341         (reg_avail_info): Remove.
19342         (oprs_available_p): Remove.
19343         (record_last_reg_set_info): Remove.
19344         (record_last_set_info): Remove.
19345         (reg_available_p): New function.
19346         (gcse_constant_p): Do not treat unfolded conditions as constants.
19347         (make_set_regs_unavailable): New function.
19348         (hash_scan_set): Simplify with new reg_available_p.
19349         (compute_hash_table_work): Traverse insns stream only once.
19350         Do not compute reg_avail_info. Traverse insns in reverse order.
19351         Record implicit sets after recording explicit sets from the block.
19352
19353 2011-03-31  Michael Matz  <matz@suse.de>
19354
19355         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
19356
19357 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
19358
19359         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
19360         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
19361         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19362         (h8300_mode_dependent_address_p): New function.
19363         (h8300_get_index): Make static.
19364
19365 2011-03-31  Jeff Law  <law@redhat.com>
19366
19367         * reload1.c (elimination_effects): Fix typo in recent change.
19368
19369         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
19370         typo potentially leading to null pointer dereference.
19371
19372         * caller-save.c (new_saved_hard_reg): Eliminate return value.
19373         (setup_save_areas): Corresponding changes to avoid useless
19374         assignments.
19375
19376         * jump.c (reversed_comparison_code_parts): Avoid successive return
19377         statements when REVERSE_CONDITION is defined.
19378
19379         * expr.c (expand_assignment): Avoid useless assignments.
19380         (expand_expr_real_1): Likewise.
19381         (expand_expr_real_2): Avoid useless statements.
19382
19383         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
19384
19385         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
19386
19387         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
19388         statements.
19389
19390         * stmt.c (expand_expr_stmt): Avoid useless assignment.
19391
19392 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
19393
19394         PR target/47109
19395         * doc/tm.texi.in (TARGET_VERSION): Remove.
19396         * doc/tm.texi: Regenerate.
19397         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
19398         * collect2.c (main): Don't use TARGET_VERSION.
19399         * mips-tdump.c (main): Don't use TARGET_VERSION.
19400         * mips-tfile.c (main): Don't use TARGET_VERSION.
19401         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
19402         * config/rs6000/vxworksae.h: Remove.
19403         * config/alpha/alpha.h (TARGET_VERSION): Remove.
19404         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
19405         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
19406         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
19407         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
19408         * config/arm/arm.h (TARGET_VERSION): Remove.
19409         * config/arm/coff.h (TARGET_VERSION): Remove.
19410         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
19411         * config/arm/elf.h (TARGET_VERSION): Remove.
19412         * config/arm/freebsd.h (TARGET_VERSION): Remove.
19413         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
19414         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
19415         * config/arm/pe.h (TARGET_VERSION): Remove.
19416         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
19417         * config/arm/semi.h (TARGET_VERSION): Remove.
19418         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
19419         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
19420         * config/arm/vxworks.h (TARGET_VERSION): Remove.
19421         * config/avr/avr.h (TARGET_VERSION): Remove.
19422         * config/bfin/bfin.h (TARGET_VERSION): Remove.
19423         * config/fr30/fr30.h (TARGET_VERSION): Remove.
19424         * config/frv/frv.h (TARGET_VERSION): Remove.
19425         * config/h8300/h8300.h (TARGET_VERSION): Remove.
19426         * config/i386/cygwin.h (TARGET_VERSION): Remove.
19427         * config/i386/darwin.h (TARGET_VERSION): Remove.
19428         * config/i386/darwin64.h (TARGET_VERSION): Remove.
19429         * config/i386/djgpp.h (TARGET_VERSION): Remove.
19430         * config/i386/freebsd.h (TARGET_VERSION): Remove.
19431         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
19432         * config/i386/gnu.h (TARGET_VERSION): Remove.
19433         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
19434         * config/i386/i386elf.h (TARGET_VERSION): Remove.
19435         * config/i386/linux.h (TARGET_VERSION): Remove.
19436         * config/i386/linux64.h (TARGET_VERSION): Remove.
19437         * config/i386/lynx.h (TARGET_VERSION): Remove.
19438         * config/i386/mingw32.h (TARGET_VERSION): Remove.
19439         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
19440         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
19441         * config/i386/netware.h (TARGET_VERSION): Remove.
19442         * config/i386/nto.h (TARGET_VERSION): Remove.
19443         * config/i386/openbsd.h (TARGET_VERSION): Remove.
19444         * config/i386/vxworks.h (TARGET_VERSION): Remove.
19445         * config/ia64/elf.h (TARGET_VERSION): Remove.
19446         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
19447         * config/ia64/hpux.h (TARGET_VERSION): Remove.
19448         * config/ia64/linux.h (TARGET_VERSION): Remove.
19449         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
19450         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
19451         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
19452         * config/lm32/lm32.h (TARGET_VERSION): Remove.
19453         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
19454         * config/m32c/m32c.h (TARGET_VERSION): Remove.
19455         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
19456         * config/m32r/m32r.h (TARGET_VERSION): Remove.
19457         * config/m68k/linux.h (TARGET_VERSION): Remove.
19458         * config/m68k/m68k.h (TARGET_VERSION): Remove.
19459         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
19460         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
19461         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
19462         * config/mep/mep.h (TARGET_VERSION): Remove.
19463         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
19464         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
19465         * config/mips/iris6.h (MACHINE_TYPE): Remove.
19466         * config/mips/linux.h (TARGET_VERSION): Remove.
19467         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
19468         * config/mips/vxworks.h (TARGET_VERSION): Remove.
19469         * config/mmix/mmix.h (TARGET_VERSION): Remove.
19470         * config/mn10300/linux.h (TARGET_VERSION): Remove.
19471         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
19472         * config/pa/pa.h (TARGET_VERSION): Remove.
19473         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
19474         * config/picochip/picochip.h (TARGET_VERSION): Remove.
19475         * config/rs6000/aix.h (TARGET_VERSION): Remove.
19476         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
19477         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
19478         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
19479         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
19480         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
19481         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
19482         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
19483         * config/rs6000/linux.h (TARGET_VERSION): Remove.
19484         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
19485         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
19486         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
19487         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
19488         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
19489         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
19490         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
19491         * config/s390/linux.h (TARGET_VERSION): Remove.
19492         * config/s390/s390.h (TARGET_VERSION): Remove.
19493         * config/s390/tpf.h (TARGET_VERSION): Remove.
19494         * config/score/score.h (TARGET_VERSION): Remove.
19495         * config/sh/linux.h (TARGET_VERSION): Remove.
19496         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
19497         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
19498         * config/sh/sh.h (TARGET_VERSION): Remove.
19499         * config/sh/sh64.h (TARGET_VERSION): Remove.
19500         * config/sh/superh.h (TARGET_VERSION): Remove.
19501         * config/sh/vxworks.h (TARGET_VERSION): Remove.
19502         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
19503         * config/sparc/linux.h (TARGET_VERSION): Remove.
19504         * config/sparc/linux64.h (TARGET_VERSION): Remove.
19505         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
19506         TARGET_NAME32, TARGET_NAME): Remove.
19507         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
19508         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
19509         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
19510         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
19511         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
19512         * config/spu/spu.h (TARGET_VERSION): Remove.
19513         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
19514         * config/v850/v850.h (TARGET_VERSION): Remove.
19515         * config/vax/linux.h (TARGET_VERSION): Remove.
19516         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
19517         * config/xtensa/elf.h (TARGET_VERSION): Remove.
19518         * config/xtensa/linux.h (TARGET_VERSION): Remove.
19519
19520 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
19521
19522         PR target/48142
19523         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
19524         frame-related from frame-unrelated adjustments to the stack pointer.
19525
19526 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
19527
19528         * common.opt (fdebug-types-section): Move earlier.
19529         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
19530
19531 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
19532
19533         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
19534         var.
19535
19536 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
19537
19538         * tree.h (CASE_CHAIN): Define.
19539         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
19540         (gimple_redirect_edge_and_branch): Likewise.
19541
19542 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
19543
19544         PR middle-end/48367
19545         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
19546         calculation.
19547
19548 2011-03-30  Jeff Law  <law@redhat.com>
19549
19550         * PR bootstrap/48371
19551         * reload1.c (reload): Fix botch in last change.
19552
19553         * reload.h (struct reload): Fix typo introduced in last change.
19554
19555 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
19556
19557         * config/arm/arm.opt (mhard-float, msoft-float): Mark
19558         Undocumented.  Remove help text.
19559         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
19560         -mhard-float.
19561
19562 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
19563
19564         * doc/options.texi (NegativeAlias): Document.
19565         (Alias): Mention NegativeAlias.
19566         * opt-functions.awk: Handle NegativeAlias.
19567         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
19568         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
19569         * opts.h (CL_NEGATIVE_ALIAS): Define.
19570         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
19571         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
19572         OPT_mspe_.
19573         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
19574         Alias entries.
19575         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
19576         mno-spe and mno-isel instead of mspe=no and -misel=no.
19577
19578 2011-03-29  Mark Wielaard  <mjw@redhat.com>
19579
19580         * common.opt (fdebug-types-section): New flag.
19581         * doc/invoke.texi: Document new -fno-debug-types-section flag.
19582         * dwarf2out.c (use_debug_types): New define.
19583         (struct die_struct): Mark die_id with GTY desc use_debug_types.
19584         (print_die): Guard output of type unit signatures using
19585         use_debug_types.
19586         (build_abbrev_table): Replace assert of dwarf_version >= 4
19587         with assert on use_debug_types.
19588         (size_of_die): Likewise.
19589         (unmark_dies): Likewise.
19590         (value_format): Decide AT_ref_external form on use_debug_types.
19591         (output_die): Replace dwarf_version version check guard with
19592         use_debug_types where appropriate.
19593         (modified_type_die): Likewise.
19594         (gen_reference_type_die): Likewise.
19595         (dwarf2out_start_source_file): Likewise.
19596         (dwarf2out_end_source_file): Likewise.
19597         (prune_unused_types_walk_attribs): Likewise.
19598         (dwarf2out_finish): Likewise.
19599
19600 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
19601
19602         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
19603
19604 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
19605
19606         PR rtl-optimization/48332
19607         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
19608         mode of input operand N and modeN to its actual mode.
19609
19610 2011-03-30  Jeff Law  <law@redhat.com>
19611
19612         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
19613         define accessor macro.
19614         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
19615         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
19616         (reg_equiv_init): Likewise.
19617         (reg_equivs_size): New variable.
19618         (reg_equiv_init_size): Remove.
19619         (allocate_initial_values): Move prototype to here from....
19620         * integrate.h (allocate_initial_values): Remove prototype.
19621         * integrate.c: Include reload.h.
19622         (allocate_initial_values): Corresponding changes.
19623         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
19624         (fix_reg_equiv_init, no_equiv): Corresponding changes.
19625         (update_equiv_regs): Corresponding changes.
19626         (ira): Corresponding changes.
19627         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
19628         (push_secondary_reload): Corresponding changes.
19629         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
19630         (make_memloc, find_reloads_address): Corresponding changes.
19631         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
19632         (find_reloads_address_1): Corresponding changes.
19633         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
19634         (refers_to_regno_for_reload_p): Corresponding changes.
19635         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
19636         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
19637         * reload1.c: Include ggc.h.
19638         (grow_reg_equivs): New function.
19639         (replace_pseudos_in, reload): Corresponding changes.
19640         (calculate_needs_all_insns, alter_regs): Corresponding changes.
19641         (eliminate_regs_1, elimination_effects): Corresponding changes.
19642         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
19643         (delete_output_reload): Likewise.
19644         * caller-save.c (mark_referenced_regs): Corresponding changes.
19645         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
19646         * frv/predicates.md (frv_load_operand): Corresponding changes.
19647         * microblaze/microblaze.c (double_memory_operand): Corresponding
19648         changes.
19649         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
19650         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
19651         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
19652         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
19653         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
19654         changes.
19655         * pa/pa.c (emit_move_sequence): Corresponding changes.
19656         * vax/vax.c (nonindexed_address_p): Corresponding changes.
19657
19658 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
19659
19660         PR target/47551
19661         * config/arm/arm.c (coproc_secondary_reload_class): Handle
19662         structure modes.  Don't check neon_vector_mem_operand for
19663         vector or structure modes.
19664
19665 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
19666             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19667
19668         PR target/43590
19669         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
19670         operand 1 and reshuffle the operands to match.
19671         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
19672
19673 2011-03-30  Christian Schüler  <cschueler@gmx.de>
19674
19675         PR driver/48208
19676         * config/c.opt (F): Added 'Driver' to -F option.
19677
19678         PR driver/48260
19679         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
19680           handler function.
19681         * config/darwin.opt: Added '-arch' option.
19682
19683 2011-03-30  Nick Clifton  <nickc@redhat.com>
19684
19685         * config/rx/rx.md: Add peepholes and patterns to combine
19686         extending loads and simple arithmetic instructions.
19687         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
19688         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
19689         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
19690         modes to use pre-decrement and post-increment addressing.
19691         (rx_is_restricted_memory_address): Add range checking of REG+INT
19692         addresses.
19693         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
19694         (rx_memory_move_cost): Adjust cost of stores.
19695         (rx_adjust_insn_length): New function.
19696
19697 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
19698
19699         PR c/48305
19700         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
19701         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
19702         matching arg00/arg01 types.
19703
19704 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
19705
19706         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
19707         last_location to UNKNOWN_LOCATION.
19708
19709 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
19710
19711         PR target/48349
19712         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
19713         FLOAT_SSE_REGS.
19714
19715 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
19716             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19717
19718         PR bootstrap/48337
19719         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
19720         Init(PROCESSOR_V7).
19721         (sparc_cpu): Likewise.
19722         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
19723         PROCESSOR_V7.
19724
19725 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
19726
19727         PR target/48336
19728         PR middle-end/48342
19729         PR rtl-optimization/48345
19730         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
19731         hard regs for given mode from profitable regs when doing secondary
19732         allocation.
19733
19734 2011-03-29  Jeff Law  <law@redhat.com>
19735
19736         PR bootstrap/48327
19737         * tree-ssa-threadupdate.c (struct redirection_data): Remove
19738         do_not_duplicate field.
19739         (lookup_redirection_data): Corresponding changes.
19740         (create_duplicates): Always create a template block.
19741         (redirect_edges): Remove code which reused the original block
19742         when it was going to become unreachable code.
19743         (thread_block): Don't set do_not_duplicate field.
19744
19745 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
19746
19747         * lto-opts.c (register_user_option_p, lto_register_user_option):
19748         Make type argument unsigned.
19749         * lto-streamer.h (lto_register_user_option): Make type argument
19750         unsigned.
19751         * opth-gen.awk: Make CL_* macros unsigned.
19752         * opts-common.c (find_opt): Make lang_mask argument unsigned.
19753         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
19754         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
19755         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
19756         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
19757         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
19758         (find_opt): Make lang_mask argument unsigned.
19759
19760 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
19761
19762         PR rtl-optimization/48331
19763         PR rtl-optimization/48334
19764         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
19765         for any used algorithm.
19766
19767 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
19768
19769         * ira-conflicts.c (build_object_conflicts): Add unused attribute
19770         to parent_max.
19771
19772 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
19773
19774         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
19775         (alpha_option_override): Don't set alpha_sr_alias_set.
19776         (emit_frame_store_1): Use gen_frame_mem rather than calling
19777         set_mem_alias_set.
19778         (alpha_expand_epilogue): Ditto.
19779
19780 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
19781
19782         PR tree-optimization/48290
19783         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
19784         vectorization, check that relevant phis in the basic block after
19785         the inner loop are really inner loop's exit phis.
19786
19787 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
19788
19789         PR debug/48190
19790         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
19791         (cached_dw_loc_list_def): New structure.
19792         (cached_dw_loc_list): New typedef.
19793         (cached_dw_loc_list_table): New variable.
19794         (cached_dw_loc_list_table_hash): New function.
19795         (cached_dw_loc_list_table_eq): Likewise.
19796         (add_location_or_const_value_attribute): Take a bool cache_p.
19797         Cache the list when the parameter is true.
19798         (gen_formal_parameter_die): Update caller.
19799         (gen_variable_die): Likewise.
19800         (dwarf2out_finish): Likewise.
19801         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
19802         while generating debug info for the decl.
19803         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
19804         (dwarf2out_init): Initialize cached_dw_loc_list_table.
19805         (resolve_addr): Cache the result of resolving a chain of
19806         location lists.
19807
19808 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
19809
19810         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
19811         conflict object hard regset nodes have intersecting hard reg sets.
19812
19813         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
19814         after regstat_init_n_sets_and_refs.
19815
19816         * ira.c: Add more comments at the top.
19817         (setup_stack_reg_pressure_class, setup_pressure_classes):
19818         Add comments how we compute the register pressure classes.
19819         (setup_allocno_and_important_classes): Add more comments.
19820         (setup_class_translate_array, reorder_important_classes)
19821         (setup_reg_class_relations): Add comments.
19822
19823         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
19824         start of the file.
19825
19826         * ira-color.c: Add 2011 to the Copyright line.
19827         (assign_hard_reg):  Add more comments.
19828         (improve_allocation): Ditto.
19829
19830         * ira-costs.c: Add 2011 to the Copyright line.
19831         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
19832         comments.
19833         (setup_regno_cost_classes_by_mode): Ditto.
19834
19835         Initial patches from ira-improv branch:
19836
19837         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
19838
19839         * ira-build.c (ira_create_object): Remove initialization of
19840         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
19841         (ira_create_allocno): Remove initialization of
19842         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
19843         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
19844         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
19845         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
19846         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
19847         Initialize ALLOCNO_ADD_DATA.
19848         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
19849         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
19850         ALLOCNO_REG.
19851         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
19852         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
19853
19854         * ira.c (ira_reallocate): Remove.
19855         (setup_pressure_classes): Call
19856         ira_init_register_move_cost_if_necessary.  Use
19857         ira_register_move_cost instead of ira_get_register_move_cost.
19858         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
19859         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
19860
19861         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
19862         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
19863         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
19864         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
19865         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
19866         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
19867         Fix formatting.
19868         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
19869         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
19870         (struct allocno_color_data): New.
19871         (allocno_color_data_t): New typedef.
19872         (allocno_color_data): New definition.
19873         (ALLOCNO_COLOR_DATA): New macro.
19874         (struct object_color_data): New.
19875         (object_color_data_t): New typedef.
19876         (object_color_data): New definition.
19877         (OBJECT_COLOR_DATA): New macro.
19878         (update_copy_costs, calculate_allocno_spill_cost): Call
19879         ira_init_register_move_cost_if_necessary.  Use
19880         ira_register_move_cost instead of ira_get_register_move_cost.
19881         (move_spill_restore, update_curr_costs): Ditto.
19882         (allocno_spill_priority): Make it inline.
19883         (color_pass): Allocate and free allocno_color_dat and object_color_data.
19884         (struct coalesce_data, coalesce_data_t): New.
19885         (allocno_coalesce_data): New definition.
19886         (ALLOCNO_COALESCE_DATA): New macro.
19887         (merge_allocnos, coalesced_allocno_conflict_p): Use
19888         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
19889         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
19890         (coalesce_allocnos): Ditto.
19891         (setup_coalesced_allocno_costs_and_nums): Ditto.
19892         (collect_spilled_coalesced_allocnos): Ditto.
19893         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
19894         (setup_slot_coalesced_allocno_live_ranges): Ditto.
19895         (coalesce_spill_slots): Ditto.
19896         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
19897         free allocno_coalesce_data.
19898
19899         * ira-conflicts.c: Fix formatting.
19900         (process_regs_for_copy): Call
19901         ira_init_register_move_cost_if_necessary.  Use
19902         ira_register_move_cost instead of ira_get_register_move_cost.
19903         (build_object_conflicts): Optimize.
19904
19905         * ira-costs.c (record_reg_classes): Optimize.  Call
19906         ira_init_register_move_cost_if_necessary.  Use
19907         ira_register_move_cost, ira_may_move_in_cost, and
19908         ira_may_move_out_cost instead of ira_get_register_move_cost and
19909         ira_get_may_move_cost.
19910         (record_address_regs): Ditto.
19911         (scan_one_insn): Optimize.
19912         (find_costs_and_classes): Optimize.
19913         (process_bb_node_for_hard_reg_moves): Call
19914         ira_init_register_move_cost_if_necessary.  Use
19915         ira_register_move_cost instead of ira_get_register_move_cost.
19916
19917         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
19918         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
19919         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
19920         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
19921         definitions.
19922         (ira_initiate_emit_data, ira_finish_emit_data)
19923         (create_new_allocno): New functions.
19924         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
19925         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
19926         Use ira_register_move_cost instead of ira_get_register_move_cost.
19927
19928         * ira-int.h: Fix some comments.
19929         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
19930         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
19931         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
19932         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
19933         add_data.
19934         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
19935         bitfield after mode.  Make hard_regno a short int.  Make
19936         hard_regno short.  Remove first_coalesced_allocno and
19937         next_coalesced_allocno.  Move mem_optimized_dest_p,
19938         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
19939         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
19940         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
19941         temp, colorable_p.  Add new member add_data.
19942         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
19943         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
19944         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
19945         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
19946         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
19947         (ALLOCNO_ADD_DATA): New macro.
19948         (ira_emit_data_t): New typedef.
19949         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
19950         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
19951         from struct ira_allocno.
19952         (ALLOCNO_EMIT_DATA): New macro.
19953         (ira_allocno_emit_data, allocno_emit_reg): New.
19954         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
19955         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
19956         (OBJECT_ADD_DATA): New macro.
19957         (ira_reallocate): Remove.
19958         (ira_initiate_emit_data, ira_finish_emit_data): New.
19959         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
19960         (ira_init_register_move_cost_if_necessary): New.
19961         (ira_object_conflict_iter_next): Merge into
19962         ira_object_conflict_iter_cond.
19963         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
19964
19965         * ira-live.c (process_single_reg_class_operands): Call
19966         ira_init_register_move_cost_if_necessary.  Use
19967         ira_register_move_cost instead of ira_get_register_move_cost.
19968
19969         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
19970
19971         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
19972
19973         * ira-costs.c: Fix formatting.
19974         (cost_classes, cost_classes_num): Remove.
19975         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
19976         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
19977         (cost_classes_del, cost_classes_htab): New.
19978         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
19979         (initiate_regno_cost_classes, setup_cost_classes): New.
19980         (setup_regno_cost_classes_by_aclass): New.
19981         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
19982         (record_reg_classes): Use regno_cost_classes instead of
19983         cost_classes.  Move checking opposite operand up.
19984         (record_address_regs): Use regno_cost_classes
19985         instead of cost_classes.
19986         (scan_one_insn): Ditto.  Use always general register.
19987         (print_allocno_costs): Use regno_cost_classes instead of
19988         cost_classes.
19989         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
19990         (find_costs_and_classes): Set up cost classes for each registers.
19991         Use also their mode for this.  Use regno_cost_classes instead of
19992         cost_classes.
19993         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
19994         cost_classes.
19995         (free_ira_costs, ira_init_costs): Don't use cost_classes.
19996         (ira_costs, ira_set_pseudo_classes): Call
19997         initiate_regno_cost_classes and finish_regno_cost_classes.
19998
19999         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
20000
20001         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
20002
20003         * target.def (ira_cover_classes): Remove.
20004
20005         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
20006
20007         * doc/tm.texi.in: Ditto.
20008
20009         * ira-conflicts.c: Remove mentioning cover classes from the file.
20010         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
20011         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
20012
20013         * targhooks.c (default_ira_cover_classes): Remove.
20014
20015         * targhooks.h (default_ira_cover_classes): Ditto.
20016
20017         * haifa-sched.c: Remove mentioning cover classes from the file.
20018         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
20019         ira_pressure_classes and ira_pressure_classes_num instead of
20020         ira_reg_class_cover_size and ira_reg_class_cover.  Use
20021         sched_regno_pressure_class instead of sched_regno_cover_class.
20022         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
20023         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20024
20025         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
20026         classes from the file.
20027         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
20028         (struct object_hard_regs, struct object_hard_regs_node): New.
20029         (struct ira_object): New members profitable_hard_regs,
20030         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
20031         (struct ira_allocno): Rename cover_class to aclass.  Rename
20032         cover_class_cost and updated_cover_class_cost to class_cost and
20033         updated_class_cost.  Remove splay_removed_p and
20034         left_conflict_size.  Add new members colorable_p.
20035         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
20036         (ALLOCNO_COLORABLE_P): New macro.
20037         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
20038         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
20039         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
20040         (OBJECT_...): Rename parameter C to O.
20041         (OBJECT_PROFITABLE_HARD_REGS): New macro.
20042         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
20043         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
20044         (struct target_ira_int): New members x_ira_max_memory_move_cost,
20045         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
20046         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
20047         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
20048         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
20049         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
20050         x_ira_reg_class_subunion.
20051         (ira_max_memory_move_cost, ira_max_register_move_cost)
20052         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
20053         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
20054         (ira_important_class_nums, ira_reg_class_superunion): New macros.
20055         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
20056         (ira_reg_class_union): Rename to ira_reg_class_subunion.
20057         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
20058         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
20059         (ira_tune_allocno_costs_and_cover_classes): Rename to
20060         ira_tune_allocno_costs.
20061         (ira_debug_hard_regs_forest): New.
20062         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
20063         (ira_object_conflict_iter_next): Fix comments.
20064         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
20065         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
20066         cover_class to aclass.
20067         (ira_allocate_and_accumulate_costs): Ditto.
20068         (ira_allocate_and_set_or_copy_costs): Ditto.
20069
20070         * opts.c (decode_options): Remove ira_cover_class check.
20071
20072         * ira-color.c: Remove mentioning cover classes from the file.  Use
20073         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
20074         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
20075         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
20076         (splay-tree.h): Remove include.
20077         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
20078         before copy_freq_compare_func.
20079         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
20080         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
20081         New definitions.
20082         (hard_regs_roots, hard_regs_node_vec): Ditto.
20083         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
20084         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
20085         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
20086         (create_new_object_hard_regs_node): Ditto.
20087         (add_new_object_hard_regs_node_to_forest): Ditto.
20088         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
20089         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
20090         Ditto.
20091         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
20092         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
20093         (remove_unused_object_hard_regs_nodes): Ditto.
20094         (enumerate_object_hard_regs_nodes): Ditto.
20095         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
20096         (object_hard_regs_subnode_t): Ditto.
20097         (struct object_hard_regs_subnode): Ditto.
20098         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
20099         (setup_object_hard_regs_subnode_index): Ditto.
20100         (get_object_hard_regs_subnodes_num): Ditto.
20101         (form_object_hard_regs_nodes_forest): Ditto.
20102         (finish_object_hard_regs_nodes_tree): Ditto.
20103         (finish_object_hard_regs_nodes_forest): Ditto.
20104         (allocnos_have_intersected_live_ranges_p): Rename to
20105         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
20106         (pseudos_have_intersected_live_ranges_p): Rename to
20107         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
20108         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
20109         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
20110         (update_copy_costs): Remove assert.  Skip cost update if the hard
20111         reg does not belong the class.
20112         (assign_hard_reg): Process only profitable hard regs.
20113         (uncolorable_allocnos_num): Make it scalar.
20114         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
20115         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
20116         and ira_reg_class_max_nregs.
20117         (bucket_allocno_compare_func): Check frequency first.
20118         (sort_bucket): Add compare function as a parameter.
20119         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
20120         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
20121         (push_allocno_to_stack): Rewrite for checking new allocno
20122         colorability.
20123         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
20124         (push_only_colorable): Pass new parameter to sort_bucket.
20125         (push_allocno_to_spill): Remove.
20126         (allocno_spill_priority_compare): Make it inline and rewrite.
20127         (splay_tree_allocate, splay_tree_free): Remove.
20128         (allocno_spill_sort_compare): New function.
20129         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
20130         build and use splay tree.  Choose first allocno in uncolorable
20131         allocno bucket to spill.  Remove setting spill cost.
20132         (all_conflicting_hard_regs): Remove.
20133         (setup_allocno_available_regs_num): Check only profitable hard
20134         regs.  Print info about hard regs nodes.
20135         (setup_allocno_left_conflicts_size): Remove.
20136         (put_allocno_into_bucket): Don't call
20137         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
20138         (improve_allocation): New.
20139         (color_allocnos): Call setup_profitable_hard_regs,
20140         form_object_hard_regs_nodes_forest, improve_allocation,
20141         finish_object_hard_regs_nodes_forest.  Setup spill cost.
20142         (print_loop_title): Use pressure classes.
20143         (color_allocnso): Ditto.
20144         (do_coloring): Remove allocation and freeing splay_tree_node_pool
20145         and allocnos_for_spilling.
20146         (ira_sort_regnos_for_alter_reg): Don't setup members
20147         {first,next}_coalesced_allocno.
20148         (color): Remove allocating and freeing removed_splay_allocno_vec.
20149         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
20150         prohibited_class_mode_regs.
20151
20152         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
20153         formatting.
20154         (update_allocno_pressure_excess_length): Use pressure classes.
20155         (inc_register_pressure, dec_register_pressure): Check for pressure
20156         class.
20157         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
20158         pressure class.  Use ira_reg_class_nregs instead of
20159         ira_reg_class_max_nregs.
20160         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
20161         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
20162         (single_reg_class): Use ira_reg_class_nregs instead of
20163         ira_reg_class_max_nregs.
20164         (process_bb_node_lives): Use pressure classes.
20165
20166         * ira-emit.c: Remove mentioning cover classes from the file.  Use
20167         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
20168         (change_loop): Use pressure classes.
20169         (modify_move_list): Call ira_set_allocno_class instead of
20170         ira_set_allocno_cover_class.
20171
20172         * ira-build.c: Remove mentioning cover classes from the file.  Use
20173         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
20174         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
20175         ALLOCNO_UPDATED_CLASS_COST instead of
20176         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
20177         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
20178         (ira_create_allocno): Remove initialization of
20179         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
20180         ALLOCNO_COLORABLE_P.
20181         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
20182         Update conflict regs for the objects.
20183         (create_cap_allocno): Remove assert.  Don't propagate
20184         ALLOCNO_AVAILABLE_REGS_NUM.
20185         (ira_free_allocno_costs): New function.
20186         (finish_allocno): Change a part of code into call of
20187         ira_free_allocno_costs.
20188         (low_pressure_loop_node_p): Use pressure classes.
20189         (object_range_compare_func): Don't compare classes.
20190         (setup_min_max_conflict_allocno_ids): Ditto.
20191
20192         * loop-invariant.c: Remove mentioning cover classes from the file.
20193         Use ira_pressure_classes and ira_pressure_classes_num instead of
20194         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
20195         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
20196         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20197         Use reg_allocno_class instead of reg_cover_class.
20198         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
20199         STACK_REG_COVER_CLASS.
20200         (get_regno_cover_class): Rename to get_regno_pressure_class.
20201         (move_loop_invariants): Initialize and finalize regstat.
20202
20203         * ira.c: Remove mentioning cover classes from the file.  Add
20204         comments about coloring without cover classes.  Use ALLOCNO_CLASS
20205         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
20206         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
20207         setup_class_subset_and_memory_move_costs.
20208         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
20209         (setup_cover_and_important_classes): Rename to
20210         setup_allocno_and_important_classes.
20211         (setup_class_translate_array): New.
20212         (setup_class_translate): Call it for allocno and pressure classes.
20213         (cover_class_order): Rename to allocno_class_order.
20214         (comp_reg_classes_func): Use ira_allocno_class_translate instead
20215         of ira_class_translate.
20216         (reorder_important_classes): Set up ira_important_class_nums.
20217         (setup_reg_class_relations): Set up ira_reg_class_superunion.
20218         (print_class_cover): Rename to print_classes.  Add parameter.
20219         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
20220         Print pressure classes too.
20221         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
20222         setup_reg_subclasses.
20223         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
20224         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
20225         (setup_prohibited_class_mode_regs): Use
20226         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
20227         (clarify_prohibited_class_mode_regs): New function.
20228         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
20229         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
20230         (ira_init_once): Initialize them.
20231         (free_register_move_costs): Process them.
20232         (ira_init): Move calls of find_reg_classes and
20233         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
20234         Call clarify_prohibited_class_mode_regs.
20235         (ira_no_alloc_reg): Remove.
20236         (too_high_register_pressure_p): Use pressure classes.
20237
20238         * sched-deps.c: Remove mentioning cover classes from the file.
20239         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
20240         ira_pressure_classes and ira_pressure_classes_num instead of
20241         ira_reg_class_cover_size and ira_reg_class_cover.
20242         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
20243         sched_regno_pressure_class instead of sched_regno_cover_class.
20244         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
20245         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20246
20247         * ira.h: Add 2010 to Copyright.
20248         (ira_no_alloc_reg): Remove external.
20249         (struct target_ira): Rename x_ira_hard_regno_cover_class,
20250         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
20251         x_ira_class_translate to x_ira_hard_regno_allocno_class,
20252         x_ira_allocno_classes_num, x_ira_allocno_classes, and
20253         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
20254         x_ira_pressure_classes, x_ira_pressure_class_translate, and
20255         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
20256         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
20257         x_ira_no_alloc_regs.
20258         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
20259         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
20260         ira_allocno_classes_num and ira_allocno_classes.
20261         (ira_class_translate): Rename to ira_allocno_class_translate.
20262         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
20263         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
20264         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
20265         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
20266         (ira_no_alloc_regs): New.
20267
20268         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
20269         classes from the file.  Use ALLOCNO_CLASS instead of
20270         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
20271         ALLOCNO_COVER_CLASS_COST.
20272         (regno_cover_class): Rename to regno_aclass.
20273         (record_reg_classes): Use ira_reg_class_subunion instead of
20274         ira_reg_class_union.
20275         (record_address_regs): Check overflow.
20276         (scan_one_insn): Ditto.
20277         (print_allocno_costs): Print total mem cost fore regional allocation.
20278         (print_pseudo_costs): Use REG_N_REFS.
20279         (find_costs_and_classes): Use classes intersected with them on the
20280         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
20281         ira_reg_class_union.  Use ira_allocno_class_translate and
20282         regno_aclass instead of ira_class_translate and regno_cover_class.
20283         Modify code for finding regno_aclass.  Setup preferred classes for
20284         the next pass.
20285         (setup_allocno_cover_class_and_costs): Rename to
20286         setup_allocno_class_and_costs.  Use regno_aclass instead of
20287         regno_cover_class.  Use ira_set_allocno_class instead of
20288         ira_set_allocno_cover_class.
20289         (init_costs, finish_costs): Use regno_aclass instead of
20290         regno_cover_class.
20291         (ira_costs): Use setup_allocno_class_and_costs instead of
20292         setup_allocno_cover_class_and_costs.
20293         (ira_tune_allocno_costs_and_cover_classes): Rename to
20294         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
20295         by processing objects.  Use ira_reg_class_max_nregs instead of
20296         ira_reg_class_nregs.
20297
20298         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
20299
20300         * sched-int.h: Remove mentioning cover classes from the file.
20301         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
20302
20303         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
20304         classes from the file.
20305         (struct reg_pref): Rename coverclass into allocnoclass.
20306         (reg_cover_class): Rename to reg_allocno_class.
20307
20308         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
20309
20310         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
20311
20312         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
20313
20314         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
20315
20316         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
20317
20318         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
20319
20320         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
20321
20322         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
20323
20324         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
20325
20326         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
20327
20328         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
20329         (i386_ira_cover_classes): Ditto.
20330
20331         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
20332
20333         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
20334
20335         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
20336
20337         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
20338
20339         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
20340
20341         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
20342
20343         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
20344         (mips_ira_cover_classes): Ditto.
20345
20346         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
20347
20348         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
20349
20350         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
20351
20352         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
20353
20354         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
20355
20356         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
20357         (IRA_COVER_CLASSES_VSX): Ditto.
20358
20359         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
20360         (rs6000_ira_cover_classes): Ditto.
20361
20362         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
20363
20364         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
20365
20366         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
20367
20368         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
20369
20370         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
20371
20372         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
20373
20374         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
20375
20376         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
20377
20378         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
20379
20380         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
20381
20382 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
20383
20384         PR debug/48253
20385         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
20386         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
20387         dw_fde_unlikely_section_end_label, cold_in_std_section,
20388         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
20389         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
20390         fields.
20391         (output_fde): Use dw_fde_second_{begin,end} if second is
20392         true, otherwise dw_fde_{begin,end}.
20393         (output_call_frame_info): Test dw_fde_second_begin != NULL
20394         instead of dw_fde_switched_sections.
20395         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
20396         fields, initialize new fields.  Initialize in_std_section
20397         unconditionally from the first partition.
20398         (dwarf2out_end_epilogue): Don't override dw_fde_end when
20399         dw_fde_second_begin is non-NULL.
20400         (dwarf2out_switch_text_section): Stop initializing removed
20401         dw_fde_struct fields, initialize new fields, initialize
20402         also dw_fde_end here.  Set dw_fde_switch_cfi even when
20403         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
20404         (struct var_loc_list_def): Add last_before_switch field.
20405         (arange_table, arange_table_allocated, arange_table_in_use,
20406         ARANGE_TABLE_INCREMENT, add_arange): Removed.
20407         (size_of_aranges): Count !in_std_section and !second_in_std_section
20408         hunks in fdes, instead of looking at arange_table_in_use.
20409         (output_aranges): Add aranges_length argument, don't call
20410         size_of_aranges here.  Instead of using aranges_table*
20411         emit ranges for fdes when !in_std_section resp.
20412         !second_in_std_section.
20413         (dw_loc_list): Break ranges crossing section switch.
20414         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
20415         use dw_fde_second_end instead of dw_fde_end as end of last range.
20416         (gen_subprogram_die): Don't call add_arange.  Use
20417         dw_fde_{begin,end} for first partition and if switched
20418         section dw_fde_second_{begin,end} for the second.
20419         (var_location_switch_text_section_1,
20420         var_location_switch_text_section): New functions.
20421         (dwarf2out_begin_function): Initialize cold_text_section even
20422         when function_section () isn't text_section.
20423         (prune_unused_types): Don't walk arange_table.
20424         (dwarf2out_finish): Don't needlessly test
20425         flag_reorder_blocks_and_partition when testing cold_text_section_used.
20426         If info_section_emitted, call size_of_aranges and if it indicates
20427         non-empty .debug_aranges, call output_aranges with the computed
20428         size.  Stop using removed dw_fde_struct fields, use
20429         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
20430         for second.
20431
20432         PR debug/48203
20433         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
20434         create ENTRY_VALUE if incoming or address of incoming's MEM
20435         is a hard REG.
20436         * dwarf2out.c (mem_loc_descriptor): Don't emit
20437         DW_OP_GNU_entry_value of DW_OP_fbreg.
20438         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
20439         on ENTRY_VALUE is able to find the canonical parameter VALUE.
20440         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
20441         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
20442         ENTRY_VALUE_EXPs.
20443         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
20444         is a REG_P or MEM_P with REG_P address, compute hash directly
20445         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
20446         (preserve_only_constants): Don't clear VALUES forwaring
20447         ENTRY_VALUE to some other VALUE.
20448
20449 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
20450
20451         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
20452         instead of GEN_INT.
20453
20454 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
20455
20456         * cfgexpand.c (expand_gimple_cond): Always set the source location and
20457         block before expanding the statement.
20458         (expand_gimple_stmt_1): Likewise.  Set them here...
20459         (expand_gimple_stmt): ...and not here.  Tidy.
20460         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
20461         unknown.
20462
20463 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
20464
20465         * Makefile.in: New rule for cprop.o.
20466         * gcse.c: Move constant/copy propagation to cprop.c.
20467         (compute_local_properties): Only handle expression tables.
20468         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
20469         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
20470         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
20471         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
20472         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
20473         compute_cprop_data, find_used_regs, try_replace_reg,
20474         find_avail_set, cprop_jump, constprop_register, cprop_insn,
20475         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
20476         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
20477         find_bypass_set, reg_killed_on_edge, bypass_block,
20478         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
20479         execute_rtl_cprop, pass_rtl_cprop): Move to...
20480         * cprop.c: ...here.  New file, constant/copy propagation for RTL
20481         moved from gcse.c to here with minor cleanups in duplicated code.
20482
20483 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
20484
20485         * config/i386/i386.c (flag_opts): Fix a typo in
20486         -mavx256-split-unaligned-store.
20487
20488 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
20489
20490         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
20491         LIBCALL_VALUE): Remove macros.
20492         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20493         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20494         (h8300_function_value, h8300_libcall_value,
20495         h8300_function_value_regno_p): New functions.
20496
20497 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
20498
20499         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
20500
20501 2011-03-28  Jeff Law  <law@redhat.com>
20502
20503         * tree-ssa-threadupdate.c (redirect_edges): Call
20504         create_edge_and_update_destination_phis as needed.
20505         (create_edge_and_update_destination_phis): Accept new BB argument.
20506         All callers updated.
20507         (thread_block): Do not update the profile when threading around
20508         intermediate blocks.
20509         (thread_single_edge): Likewise.
20510         (determine_bb_domination_status): If BB is not a successor of the
20511         loop header, return NONDOMINATING.
20512         (register_jump_thread): Note when we register a jump thread around
20513         an intermediate block.
20514         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
20515         (thread_across_edge): Use it.
20516
20517 2011-03-28  Tristan Gingold  <gingold@adacore.com>
20518
20519         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
20520         when for_return is 2.
20521
20522 2011-03-28  Jeff Law  <law@redhat.com>
20523
20524         * var-tracking.c (canonicalize_values_mark): Delete unused
20525         lhs assignment.
20526         (canonicalize_values_star, set_variable_part): Likewise.
20527         (clobber_variable_part, delete_variable_part): Likewise.
20528
20529 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
20530
20531         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
20532
20533 2011-03-28  Martin Jambor  <mjambor@suse.cz>
20534
20535         * tree-inline.c (expand_call_inline): Do not check that destination
20536         node is analyzed.
20537         (optimize_inline_calls): Assert that destination node is analyzed.
20538         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
20539         not call tree_lowering_passes.
20540         * cgraph.h (cgraph_analyze_function): Declare.
20541         * cgraphunit.c (cgraph_analyze_function): Make public.
20542
20543 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
20544
20545         * config/sparc/sparc-opts.h: New.
20546         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
20547         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
20548         (sparc_option_override): Store processor_type enumeration rather
20549         than string in cpu_default.  Remove name and enumeration from
20550         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
20551         without using sparc_select.  Use target_flags_explicit instead of
20552         fpu_option_set.
20553         * config/sparc/sparc.h (enum processor_type): Move to
20554         sparc-opts.h.
20555         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
20556         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
20557         HeaderInclude entry.
20558         (mcpu=, mtune=): Use Var and Enum.
20559         (sparc_processor_type): New Enum and EnumValue entries.
20560
20561 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20562             Iain Sandoe  <iains@gcc.gnu.org>
20563
20564         PR target/48245
20565         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
20566
20567 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
20568
20569         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
20570         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
20571         Insert new statements at it in lieu of STMT.
20572         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
20573         * tree-vect-stmts.c (vectorizable_store): Likewise.
20574         (vectorizable_load): Likewise.
20575
20576 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
20577
20578         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
20579         (divtf3): Ditto.
20580         (multf3): Ditto.
20581         (subtf3): Ditto.
20582
20583 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20584
20585         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
20586         unaligned 256bit load/store.
20587         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
20588         (*avx_movdqu<avxmodesuffix>): Likewise.
20589
20590 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20591
20592         PR target/48288
20593         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
20594         * config/pa/pa.md (iordi3): Use new predicate in expander.
20595         (iorsi3): Likewise.
20596
20597 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
20598
20599         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
20600         FUNCTION_VALUE_REGNO_P): Remove macros.
20601         * config/mips/mips-protos.h (mips_function_value): Remove.
20602         * config/mips/mips.c (mips_function_value): Rename to...
20603         (mips_function_value_1): ... this. Make static.  Handle receiving
20604         the function type in 'fn_decl_or_type' argument.
20605         (mips_function_value, mips_libcall_value,
20606         mips_function_value_regno_p): New function.
20607         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20608         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20609
20610 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20611
20612         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
20613         and -mavx256-split-unaligned-store.
20614         (ix86_option_override_internal): Split 32-byte AVX unaligned
20615         load/store by default.
20616         (ix86_avx256_split_vector_move_misalign): New.
20617         (ix86_expand_vector_move_misalign): Use it.
20618
20619         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
20620         -mavx256-split-unaligned-store.
20621
20622         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
20623         256bit load/store.  Generate unaligned store on misaligned memory
20624         operand.
20625         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
20626         256bit load/store.
20627         (*avx_movdqu<avxmodesuffix>): Likewise.
20628
20629         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
20630         -mavx256-split-unaligned-store.
20631
20632 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
20633
20634         PR target/38598
20635         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
20636         Update commentary.
20637
20638 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
20639
20640         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
20641         opno arguments with an expand_operand.  Use create_input_operand.
20642         (mips_prepare_builtin_target): Delete.
20643         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
20644         functions.
20645         (mips_expand_builtin_direct): Use create_output_operand and
20646         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
20647         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
20648         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
20649
20650 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
20651
20652         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
20653         function.
20654         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
20655
20656 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
20657
20658         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
20659         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
20660         basic blocks and call commit_edge_insertions directly.
20661         (fixup_abnormal_edges): Move from here to...
20662         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
20663         on the edges and return whether some have actually been inserted.
20664         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
20665         compensation code.
20666
20667 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
20668
20669         PR rtl-optimization/48144
20670         * sel-sched-ir.c (merge_history_vect): Factor out from ...
20671         (merge_expr_data): ... here.
20672         (av_set_intersect): Rename to av_set_code_motion_filter.
20673         Update all callers.  Call merge_history_vect when an expression
20674         is found in both sets.
20675         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
20676
20677 2011-03-26  Alan Modra  <amodra@gmail.com>
20678
20679         * config/rs6000/predicates.md (word_offset_memref_op): Handle
20680         cmodel medium addresses.
20681         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
20682         64-bit gpr loads and stores.
20683         (rs6000_secondary_reload_ppc64): New function.
20684         * config/rs6000/rs6000-protos.h: Declare it.
20685         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
20686
20687 2011-03-26  Alan Modra  <amodra@gmail.com>
20688
20689         PR target/47487
20690         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
20691         GNU Go in traceback table.
20692
20693 2011-03-25  Richard Henderson  <rth@redhat.com>
20694
20695         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
20696         if there are exactly 6 operands.
20697         (set_storage_via_setmem): Similarly.
20698
20699 2011-03-25  Kai Tietz  <ktietz@redhat.com>
20700
20701         * collect2.c (write_c_file_stat): Handle backslash
20702         as right-hand directory separator.
20703         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
20704         checking just for slash.
20705         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
20706         instead of checking for trailing slash.
20707         * gcc.c (record_temp_file): Use filename_cmp instead
20708         of strcmp.
20709         (do_spec_1): Likewise.
20710         (replace_outfile_spec_function): Likewise.
20711         (is_directory): Use filename_ncmp instead of strncmp.
20712         (print_multilib_info): Likewise.
20713         * gcov.c (find_source): Use filename_cmp instead
20714         instead of strcmp.
20715         (make_gcov_file_name): Fix order of slash/backslash
20716         checks.
20717         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
20718         (add_standard_paths): Likewise.
20719         * mips-tfile.c (saber_stop): Handle backslash.
20720         * prefix.c (update_path): Use filename_ncmp instead of
20721         strncmp.
20722         * profile.c (output_location): Use filename_cmp instead
20723         of strcmp.
20724         * read-md.c (handle_toplevel_file): Handle backslash.
20725         * tlink.c (frob_extension):  Likewise.
20726         * tree-cfg.c (same_line_p): Use filename_cmp instead of
20727         strcmp.
20728         * tree-dump.c (dequeue_and_dump): Handle backslash.
20729         * tree.c (get_file_function_name): Likewise.
20730         * gengtype.c (read_input_list): Likewise.
20731         (get_file_realbasename): Likewise.
20732         (get_output_file_with_visibility): Use filename_cmp
20733         instead of strcmp.
20734
20735 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
20736
20737         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
20738         case to VFPv1.
20739
20740 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
20741
20742         * fold-const.c (expr_location_or): New function.
20743         (fold_truth_not_expr): Call it.
20744
20745 2011-03-25  Jeff Law  <law@redhat.com>
20746
20747         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
20748         va_end.
20749         * c-family/c-common.c (def_fn_type): Likewise.
20750         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
20751         * emit-rtl.c (gen_rtvec): Likewise.
20752         * lto/lto-lang.c (def_fn_type): Likewise.
20753
20754 2011-03-25  Richard Guenther  <rguenther@suse.de>
20755
20756         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
20757         also generate copies.
20758         (fini_copy_prop): Handle constant values properly.
20759
20760 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
20761
20762         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
20763         mode size instead of bitsize with DWARF2_ADDR_SIZE.
20764         (hash_loc_operands, compare_loc_operands): Handle
20765         DW_OP_GNU_entry_value.
20766
20767 2011-03-25  Kai Tietz  <ktietz@redhat.com>
20768
20769         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
20770         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
20771         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
20772         comment and use macro TARGET_64BIT_MS_ABI instead.
20773         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
20774         and change default behavior for 32-bit MS_ABI.
20775         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
20776         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
20777         32-bit, too.
20778         (ix86_cfun_abi): Likewise.
20779         (ix86_maybe_switch_abi): Adjust comment.
20780         (init_cumulative_args): Check for bit-ness in MS_ABI case.
20781         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
20782         instead of checking for SYSV_ABI.
20783         (ix86_nsaved_sseregs): Likewise.
20784         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
20785         to 16 bytes.
20786         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
20787         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
20788         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
20789         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
20790         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
20791
20792 2011-03-25  Richard Guenther  <rguenther@suse.de>
20793
20794         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
20795         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
20796         (verify_gimple): Remove.
20797         * tree-cfg.c (verify_gimple_call): Merge verification
20798         from verify_stmts.
20799         (verify_gimple_phi): Merge verification from verify_stmts.
20800         (verify_gimple_label): New function.
20801         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
20802         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
20803         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
20804         (verify_stmts): Rename to verify_gimple_in_cfg.
20805         (verify_gimple_in_cfg): New function.
20806         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
20807         * tree-ssa.c (verify_ssa): Likewise.
20808         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
20809
20810 2011-03-25  Richard Guenther  <rguenther@suse.de>
20811
20812         * passes.c (init_optimization_passes): Add FRE pass after
20813         early SRA.
20814
20815 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
20816             Andrew Stubbs  <ams@codesourcery.com>
20817
20818         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
20819         for Cortex-A8.
20820         (arm_movdi_vfp_cortexa8): New pattern.
20821         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
20822         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
20823         instructions when tuning for Cortex-A8.  Set attribute "arch".
20824         * config/arm/arm.md: Move include arm-tune.md up a bit.
20825         (define_attr "arch"): Add "onlya8" and "nota8" values.
20826         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
20827
20828 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
20829
20830         PR bootstrap/48282
20831         Revert:
20832         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
20833
20834         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
20835         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
20836         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
20837         * passes.c (init_optimization_passes): Move
20838         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
20839
20840 2011-03-25  Kai Tietz  <ktietz@redhat.com>
20841
20842         * c-typeck.c (comptypes_internal): Replace target
20843         hook call of comp_type_attributes by version in tree.c file.
20844         * gimple.c (gimple_types_compatible_p_1): Likewise.
20845         * tree-ssa.c (useless_type_conversion_p): Likewise.
20846         * tree.c (build_type_attribute_qual_variant): Likewise.
20847         (attribute_value_equal): New static helper function.
20848         (comp_type_attributes): New function.
20849         (merge_attributes): Use attribute_value_equal for comparison.
20850         (attribute_list_contained): Likewise.
20851         * tree.h (comp_type_attributes): New prototype.
20852
20853 2011-03-25  Richard Guenther  <rguenther@suse.de>
20854
20855         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
20856         of complex types at -O0.
20857         (verify_gimple_assign_binary): Likewise.
20858         (verify_gimple_assign_ternary): Likewise.
20859
20860 2011-03-24  Mark Wielaard  <mjw@redhat.com>
20861
20862         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
20863         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
20864
20865 2011-03-24  Mark Wielaard  <mjw@redhat.com>
20866
20867         PR debug/48041
20868         * dwarf2out.c (output_abbrev_section): Only write table when
20869         abbrev_die_table_in_use > 1.
20870
20871 2011-02-24  Richard Henderson  <rth@redhat.com>
20872
20873         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
20874         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
20875         (alpha_expand_unaligned_load_words): Use extql.
20876         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
20877         (emit_insxl): Handle all modes for consistency.
20878
20879 2011-02-24  Richard Henderson  <rth@redhat.com>
20880
20881         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
20882         (alpha_expand_unaligned_load): Likewise.
20883         (alpha_expand_unaligned_store): Likewise.
20884         (alpha_expand_unaligned_load_words): Likewise.
20885         (alpha_expand_unaligned_store_words): Likewise.
20886         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
20887         (alpha_split_lock_test_and_set_12): Likewise.
20888         (print_operand, alpha_fold_builtin_extxx): Likewise.
20889         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
20890         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
20891         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
20892         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
20893         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
20894         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
20895         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
20896         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
20897         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
20898         (extwl, extll, extql): Similarly.
20899         (inswh, inslh, insqh): Similarly.
20900         (mskbl, mskwl, mskll, mskql): Similarly.
20901         (mskwh, msklh, mskqh): Similarly.
20902
20903 2011-02-24  Richard Henderson  <rth@redhat.com>
20904
20905         * config/alpha/alpha.md (attribute isa): Add er, ner.
20906         (attribute enabled): Handle them.
20907         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
20908
20909 2011-02-24  Richard Henderson  <rth@redhat.com>
20910
20911         * config/alpha/alpha.md (attribute isa): Add vms.
20912         (attribute enabled): Handle it.
20913         (*movsf): Merge *movsf_{nofix,fix,nofp}.
20914         (*movdf): Merge *movdf_{nofix,fix,nofp}.
20915         (*movtf): Rename from *movtf_internal for consistency.
20916         (*movsi): Merge with *movsi_nt_vms.
20917         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
20918         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
20919         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
20920         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
20921
20922 2011-02-24  Richard Henderson  <rth@redhat.com>
20923
20924         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
20925         (extendqisi2, extendhisi2): Likewise.
20926         (extendqidi2): Simplify BWX/non-BWX expansions.
20927         (extendhidi2): Similarly.
20928
20929 2011-02-24  Richard Henderson  <rth@redhat.com>
20930
20931         * config/alpha/alpha.md (attribute isa): New.
20932         (attribute enabled): New.
20933         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
20934         (zero_extendqisi2, zero_extendqidi2): Similarly.
20935         (zero_extendhisi2, zero_extendhidi2): Similarly.
20936         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
20937
20938 2011-02-24  Richard Henderson  <rth@redhat.com>
20939
20940         * config/alpha/predicates.md (input_operand): Revert last change;
20941         update comment to mention 32-bit VMS rather than Windows.
20942
20943 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
20944
20945         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
20946         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
20947         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
20948         * passes.c (init_optimization_passes): Move
20949         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
20950
20951 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
20952
20953         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
20954
20955 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
20956
20957         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
20958         correctly.
20959
20960 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
20961
20962         PR debug/48204
20963         * simplify-rtx.c (simplify_const_unary_operation): Call
20964         real_convert when changing mode class with FLOAT_EXTEND.
20965
20966 2011-03-24  Nick Clifton  <nickc@redhat.com>
20967
20968         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
20969         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
20970         * config/rx/rx.c (rx_option_override): Set align_jumps,
20971         align_loops and align_labels if not set by the user.
20972         (rx_align_for_label): New function.
20973         (rx_max_skip_for_label): New function.
20974         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
20975         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
20976         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
20977         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
20978         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
20979
20980 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
20981
20982         PR rtl-optimization/48263
20983         * optabs.c (expand_binop_directly): Reinstate convert_modes code
20984         and original commutative_p handling.  Use maybe_gen_insn.
20985
20986 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20987
20988         * reload.c (find_reloads_subreg_address): Add address_reloaded
20989         parameter and return true there if the full address has been
20990         reloaded.
20991         (find_reloads_toplev): Pass address_reloaded flag.
20992         (find_reloads_address_1): Don't use address_reloaded parameter.
20993
20994 2011-03-24  Jeff Law  <law@redhat.com>
20995
20996         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
20997         unused variable "ann".
20998         (remove_unused_locals): Likewise.
20999
21000         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
21001         statement.
21002
21003         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
21004         after it is freed.
21005
21006 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21007
21008         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
21009         for invalid symbolic addresses.
21010         (s390_secondary_reload): Don't use s390_check_symref_alignment for
21011         larl operands.
21012
21013 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
21014
21015         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
21016         the argument in calls to fold_truth_not_expr.
21017
21018 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21019
21020         * tree.c (record_node_allocation_statistics): New function.
21021         (make_node_stat, copy_node_stat, build_string): Call it.
21022         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
21023         (build1_stat, build_omp_clause): Likewise.
21024
21025 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
21026
21027         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
21028         last commit.
21029
21030 2011-03-24  Richard Guenther  <rguenther@suse.de>
21031
21032         PR tree-optimization/48271
21033         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
21034         blocks that still exist.
21035
21036 2011-03-24  Richard Guenther  <rguenther@suse.de>
21037
21038         PR tree-optimization/48270
21039         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
21040         not free datarefs before ddrs.
21041
21042 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
21043
21044         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
21045         from the address built for a reference with variable offset.
21046
21047 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
21048
21049         PR target/48237
21050         * config/i386/i386.md (*movdf_internal_rex64): Do not split
21051         alternatives that can be handled with movq or movabsq insn.
21052         (*movdf_internal): Disable for !TARGET_64BIT.
21053         (*movdf_internal_nointeger): Ditto.
21054         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
21055
21056 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
21057
21058         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
21059         (FUNCTION_ARG_ADVANCE): Likewise.
21060         * tm.texi.in: Change references to them to hook references.
21061         * tm.texi: Regenerate.
21062         * targhooks.c (default_function_arg): Eliminate check for target macro.
21063         (default_function_incoming_arg): Likewise.
21064         (default_function_arg_advance): Likewise.
21065         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
21066         (function_arg_advance): Likewise.
21067         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
21068
21069 2011-03-24  Richard Guenther  <rguenther@suse.de>
21070
21071         PR middle-end/48269
21072         * tree-object-size.c (addr_object_size): Do not double-account
21073         for MEM_REF offsets.
21074
21075 2011-03-24  Diego Novillo  <dnovillo@google.com>
21076
21077         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
21078         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
21079         (lto_input_data_block): Move from lto-opts.c.  Make extern.
21080         Update all users.
21081         (lto_input_string): Rename from input_string.  Make extern.
21082         Update all users.
21083         * lto-streamer-out.c (lto_output_string_with_length): Rename from
21084         output_string_with_length.
21085         Output 0 to indicate a non-NULL string.  Update all callers to
21086         not emit 0.
21087         (lto_output_string): Rename from output_string.  Make extern.
21088         Update all users.
21089         (lto_output_decl_state_streams): Make extern.
21090         (lto_output_decl_state_refs): Make extern.
21091         * lto-streamer.h (lto_input_string): Declare.
21092         (lto_input_data_block): Declare.
21093         (lto_output_string): Declare.
21094         (lto_output_string_with_length): Declare.
21095         (lto_output_decl_state_streams): Declare.
21096         (lto_output_decl_state_refs): Declare.
21097
21098 2011-03-24  Richard Guenther  <rguenther@suse.de>
21099
21100         PR tree-optimization/46562
21101         * tree.c (build_invariant_address): New function.
21102         * tree.h (build_invariant_address): Declare.
21103         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
21104         a renamed function moved ...
21105         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
21106         Take valueization callback parameter.
21107         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
21108         * gimple-fold.h: New file.
21109         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
21110         (ccp_fold, fold_const_aggregate_ref,
21111         fold_ctor_reference, fold_nonarray_ctor_reference,
21112         fold_array_ctor_reference, fold_string_cst_ctor_reference,
21113         get_base_constructor): Move ...
21114         * gimple-fold.c: ... here.
21115         (gimple_fold_stmt_to_constant_1): New function
21116         split out from ccp_fold.  Take a valueization callback parameter.
21117         Valueize all operands.
21118         (gimple_fold_stmt_to_constant): New wrapper function.
21119         (fold_const_aggregate_ref_1): New function split out from
21120         fold_const_aggregate_ref.  Take a valueization callback parameter.
21121         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
21122         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
21123         invariant POINTER_PLUS_EXPRs to invariant form.
21124         (vn_valueize): New function.
21125         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
21126         * tree-vrp.c (vrp_valueize): New function.
21127         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
21128         to fold statements to constants.
21129         * tree-ssa-pre.c (eliminate): Properly guard propagation of
21130         function declarations.
21131         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
21132         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
21133
21134 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
21135
21136         * config/h8300/predicates.md (jump_address_operand): Fix register
21137         mode check.
21138
21139 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
21140
21141         * doc/invoke.texi (max-stores-to-sink): Document.
21142         * params.h (MAX_STORES_TO_SINK): Define.
21143         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
21144         if either vectorization or if-conversion is disabled.
21145         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
21146         tree-vect-data-refs.c vect_equal_offsets.
21147         (dr_equal_offsets_p): New function.
21148         (find_data_references_in_bb): Remove static.
21149         * tree-data-ref.h (find_data_references_in_bb): Declare.
21150         (dr_equal_offsets_p): Likewise.
21151         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
21152         (vect_drs_dependent_in_basic_block): Update calls to
21153         vect_equal_offsets.
21154         (vect_check_interleaving): Likewise.
21155         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
21156         (cond_if_else_store_replacement): Rename to...
21157         (cond_if_else_store_replacement_1): ... this.  Change arguments and
21158         documentation.
21159         (cond_if_else_store_replacement): New function.
21160         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
21161         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
21162
21163 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
21164
21165         PR target/46934
21166         * config/arm/arm.md (casesi): Use the gen_int_mode() function
21167         to subtract lower bound instead of GEN_INT().
21168
21169 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
21170
21171         PR other/48179
21172         PR other/48221
21173         PR other/48234
21174         * doc/extend.texi (Alignment): Move section to match order in TOC.
21175         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
21176         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
21177
21178 2011-03-23  Jeff Law  <law@redhat.com>
21179
21180         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
21181         before removing the edge.
21182
21183         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
21184         it may have been freed by redirect_branch_edge or
21185         redirect_edge_succ_nodup.
21186
21187 2011-03-23  Richard Guenther  <rguenther@suse.de>
21188
21189         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
21190         (check_va_list_escapes): Likewise.
21191         (check_all_va_list_escapes): Likewise.
21192
21193 2011-03-23  Richard Guenther  <rguenther@suse.de>
21194
21195         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
21196         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
21197         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
21198         (alias.o): Likewise.
21199         (ipa-type-escape.o): Remove.
21200         (ipa-struct-reorg.o): Likewise.
21201         (GTFILES): Remove ipa-struct-reorg.c.
21202         * alias.c: Do not include ipa-type-escape.h.
21203         * tree-ssa-alias.c: Likewise.
21204         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
21205         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
21206         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
21207         and ipa-type-escape passes.
21208         * tree-pass.h (pass_ipa_type_escape): Remove.
21209         (pass_ipa_struct_reorg): Likewise.
21210         * ipa-struct-reorg.h: Remove.
21211         * ipa-struct-reorg.c: Likewise.
21212         * ipa-type-escape.h: Likewise.
21213         * ipa-type-escape.c: Likewise.
21214         * doc/invoke.texi (-fipa-struct-reorg): Remove.
21215         (--param struct-reorg-cold-struct-ratio): Likewise.
21216         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
21217         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
21218         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
21219
21220 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21221
21222         * config/s390/2084.md: Enable all insn reservations also for z9_ec
21223         cpu attribute value.
21224         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
21225         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
21226         * config/s390/s390.c (processor_flags_table): New constant array.
21227         (s390_handle_arch_option): Remove.
21228         (s390_handle_option): Remove s390_handle_arch_option invocations
21229         and OPT_mwarn_framesize_ handling.
21230         (s390_option_override): Remove s390_handle_arch_option invocation.
21231         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
21232         warnings.
21233         * config/s390/s390.md (cpu attribute): Add z9_ec value.
21234         * config/s390/s390.opt (s390_tune, s390_arch)
21235         (march=): Replace s390_arch_option enum and values with
21236         processor_type.  Set variable name to s390_arch.  Set
21237         initialization value.
21238         (mtune=): Replace s390_arch_option with processor_type.  Set
21239         variable name to s390_tune.  Set initialization value.
21240
21241 2011-03-23  Julian Brown  <julian@codesourcery.com>
21242
21243         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
21244         accesses which are not naturally aligned.
21245
21246 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
21247
21248         PR target/47553
21249         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
21250
21251 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
21252
21253         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
21254         parameter from "int" to "enum insn_code".
21255         (expand_operand_type): New enum.
21256         (expand_operand): New structure.
21257         (create_expand_operand): New function.
21258         (create_fixed_operand, create_output_operand): Likewise
21259         (create_input_operand, create_convert_operand_to): Likewise.
21260         (create_convert_operand_from, create_address_operand): Likewise.
21261         (create_integer_operand): Likewise.
21262         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
21263         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
21264         (expand_insn, expand_jump_insn): Likewise.
21265         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
21266         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
21267         (expand_movstr, expand_builtin___clear_cache): Likewise.
21268         (expand_builtin_lock_release): Likewise.
21269         * explow.c (allocate_dynamic_stack_space): Likewise.
21270         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
21271         and use the default handling in that case.
21272         * expmed.c (check_predicate_volatile_ok): Delete.
21273         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
21274         (emit_cstore): Likewise.
21275         * expr.c (emit_block_move_via_movmem): Likewise.
21276         (set_storage_via_setmem, expand_assignment): Likewise.
21277         (emit_storent_insn, try_casesi): Likewise.
21278         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
21279         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
21280         (expand_vec_shift_expr, expand_binop_directly): Likewise.
21281         (expand_twoval_unop, expand_twoval_binop): Likewise.
21282         (expand_unop_direct, emit_indirect_jump): Likewise.
21283         (emit_conditional_move, vector_compare_rtx): Likewise.
21284         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
21285         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
21286         (expand_sync_lock_test_and_set): Likewise.
21287         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
21288         (emit_unop_insn): Likewise.
21289         (expand_copysign_absneg): Change icode to an insn_code.
21290         (create_convert_operand_from_type): New function.
21291         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
21292         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
21293         (expand_insn, expand_jump_insn): Likewise.
21294         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
21295         than const_int_operand for operand 2.
21296
21297 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21298
21299         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
21300         if possible.
21301
21302 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21303
21304         * emit-rtl.c (emit_pattern_before_noloc): New function.
21305         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
21306         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
21307         (emit_pattern_after_noloc): New function.
21308         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
21309         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
21310
21311 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21312
21313         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
21314         (__ffsDI2): Likewise.
21315
21316 2011-03-22  Richard Henderson  <rth@redhat.com>
21317
21318         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
21319         of !TARGET_ABI_OPEN_VMS.
21320         (alpha_trampoline_init, alpha_start_function): Likewise.
21321         (alpha_expand_epilogue, alpha_file_start): Likewise.
21322         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
21323         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
21324         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
21325         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
21326         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
21327
21328 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21329
21330         * config/s390/s390-opts.h: New.
21331         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
21332         s390_arch_flags, s390_warn_framesize, s390_stack_size,
21333         s390_stack_guard): Remove.
21334         (s390_handle_arch_option): Return void.  Take enum
21335         s390_arch_option value instead of string and searching array.
21336         (s390_handle_option): Don't assert that global structures are in
21337         use.  Access variables via opts pointer.  Use error_at.  Don't use
21338         sscanf for -mstack-guard= or -mstack-size=.  Update call to
21339         s390_handle_arch_option.
21340         (s390_option_override): Update call to s390_handle_arch_option.
21341         (s390_emit_prologue): Use %d format for s390_stack_size in
21342         diagnostic.  Use %wd for HOST_WIDE_INT.
21343         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
21344         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
21345         * config/s390/s390.opt (config/s390/s390-opts.h): New
21346         HeaderInclude entry.
21347         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
21348         s390_arch_flags, s390_warn_framesize): New Variable entries.
21349         (s390_arch_option): New Enum and EnumValue entries.
21350         (march=): Use Enum instead of Var.
21351         (mstack-guard=, mstack-size=): Use UInteger and Var.
21352         (mtune=): Use Enum.
21353
21354 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21355
21356         * config/score/score.c (score_handle_option): Don't assert that
21357         global structures are in use.  Access target_flags via opts
21358         pointer.  Use value of -march= option to determine target_flags
21359         settings.
21360         * config/score/score.opt (march=): Use Enum.
21361         (score_arch): New Enum and EnumValue entries.
21362
21363 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21364
21365         * config/mep/mep.c (option_mtiny_specified): Remove.
21366         (mep_option_override): Move register handling for -mivc2 from
21367         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
21368         instead of option_mtiny_specified.
21369         (mep_handle_option): Access target_flags via opts pointer.  Don't
21370         assert that global structures are in use.  Defer part of -mivc2
21371         handling and move it to mep_option_override.
21372         * config/mep/mep.opt (IVC2): New Mask entry.
21373         (mivc2): Use Var and Defer instead of Mask.
21374
21375 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21376
21377         * config/v850/v850-opts.h: New.
21378         * config/v850/v850.c (small_memory): Replace with
21379         small_memory_physical_max array.  Make that array static const.
21380         (v850_handle_memory_option): Take integer value of argument.  Take
21381         gcc_options pointer, option text and location.  Return void.
21382         Update for changes to small memory structures.
21383         (v850_handle_option): Access target_flags via opts pointer.  Don't
21384         assert that global structures are in use.  Update calls to
21385         v850_handle_memory_option.
21386         (v850_encode_data_area): Update references to small memory settings.
21387         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
21388         (enum small_memory_type): Move to v850-opts.h.
21389         * config/v850/v850.opt (config/v850/v850-opts.h): New
21390         HeaderInclude entry.
21391         (small_memory_max): New Variable entry.
21392         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
21393         (mtda, mzda): Likewise.
21394
21395 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21396
21397         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
21398         pointer.  Don't assert that global structures are in use.
21399
21400 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21401
21402         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
21403         via opts pointer.  Don't assert that global structures are in use.
21404
21405 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21406
21407         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
21408         (munix=93): Use Var.
21409         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
21410         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
21411         * config/pa/pa-opts.h: New.
21412         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
21413         (pa_handle_option): Don't assert that global structures are in
21414         use.  Access target_flags via opts pointer.  Don't handle
21415         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
21416         OPT_munix_98 here.
21417         (pa_option_override): Handle deferred OPT_mfixed_range_.
21418
21419 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21420
21421         * config/mn10300/mn10300-opts.h: New.
21422         * config/mn10300/mn10300.c (mn10300_processor,
21423         mn10300_tune_string): Remove.
21424         (mn10300_handle_option): Don't assert that global structures are
21425         in use.  Access mn10300_processor via opts pointer.  Don't handle
21426         OPT_mtune_ here.
21427         * config/mn10300/mn10300.h (enum processor_type): Move to
21428         mn10300-opts.h.
21429         (mn10300_processor): Remove.
21430         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
21431         HeaderInclude entry.
21432         (mn10300_processor): New Variable entry.
21433         (mtune=): Use Var.
21434
21435 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21436
21437         * config/microblaze/microblaze.c: Don't include opts.h.
21438         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
21439         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
21440         (mno-clearbss): Use Var and Warn.
21441
21442 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21443
21444         * config/m32r/m32r-opts.h: New.
21445         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
21446         (m32r_handle_option): Don't assert that global structures are in
21447         use.  Access target_flags and m32r_cache_flush_func via opts
21448         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
21449         OPT_mno_flush_trap here.
21450         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
21451         include of m32r-opts.h.
21452         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
21453         HeaderInclude entry.
21454         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
21455         (mmodel=): Use Enum and Var.
21456         (m32r_model): New Enum and EnumValue entries.
21457         (mno-flush-trap): Use Var.
21458         (msdata=): Use Enum and Var.
21459         (m32r_sdata): New Enum and EnumValue entries.
21460
21461 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21462
21463         * config/m32c/m32c.c: Don't include opts.h.
21464         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
21465         m32c_handle_option): Remove.
21466         (m32c_option_override): Check global_options_set.x_target_memregs
21467         instead of target_memregs_set.
21468         * config/m32c/m32c.h (target_memregs): Remove.
21469         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
21470         variable.
21471
21472 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21473
21474         * config/iq2000/iq2000-opts.h: New.
21475         * config/iq2000/iq2000.c: Don't include opts.h.
21476         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
21477         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
21478         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
21479         HeaderInclude entry.
21480         (iq2000_tune): New Variable entry.
21481         (march=): Add comment.  Use Enum.
21482         (iq2000_arch): New Enum and EnumValue entries.
21483         (mcpu=): Use Enum and Var.
21484         (iq2000_tune): New Enum and EnumValue entries.
21485
21486 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21487
21488         * config/ia64/ia64-opts.h: New.
21489         * config/ia64/ia64.c (ia64_tune): Remove.
21490         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
21491         here.  Use error_at.
21492         (ia64_option_override): Handle deferred OPT_mfixed_range_.
21493         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
21494         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
21495         HeaderInclude entry.
21496         (ia64_tune): New Variable entry.
21497         (mfixed-range=): Use Defer and Var.
21498         (mtune=): Use Enum and Var.
21499         (ia64_tune): New Enum and EnumValue entries.
21500
21501 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21502
21503         * config/frv/frv-opts.h: New.
21504         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
21505         frv-opts.h.
21506         (frv_cpu_type): Remove.
21507         * config/frv/frv.c: Don't include opts.h.
21508         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
21509         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
21510         (frv_cpu_type): New Variable entry.
21511         (frv_cpu): New Enum and EnumValue entries.
21512
21513 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21514
21515         * config/cris/cris.c (cris_handle_option): Access target_flags via
21516         opts pointer.  Don't assert that global structures are in use.
21517         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
21518         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
21519
21520 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21521
21522         * config/bfin/bfin-opts.h: New.
21523         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
21524         bfin_si_revision, bfin_workarounds): Remove.
21525         (bfin_cpus): Make static const.
21526         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
21527         not bfin_lib_id_given.
21528         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
21529         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
21530         pointer. Use error_at.  Don't assert that global structures are in use.
21531         * config/bfin/bfin.h: Include bfin-opts.h.
21532         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
21533         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
21534         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
21535         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
21536         entries.
21537
21538 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21539
21540         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
21541         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
21542         or -msoft-float here.
21543         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
21544         -msoft-float and -mhard-float.
21545         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
21546         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
21547         msoft-float.
21548         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
21549         -msoft-float.
21550         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
21551         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
21552         not mhard-float.
21553         (LIBGCC_SPEC): Don't handle -msoft-float.
21554         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
21555         -mhard-float.
21556         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
21557         msoft-float.
21558         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
21559         -mfloat-abi=*, not -msoft-float and -mhard-float.
21560         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
21561         -msoft-float.
21562         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
21563         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
21564         mhard-float and msoft-float.
21565         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
21566         mfloat-abi=soft in comments, not mhard-float and msoft-float.
21567         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
21568         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
21569         mhard-float.
21570         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
21571         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
21572         msoft-float.
21573         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
21574         not mhard-float.
21575         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
21576         not msoft-float.
21577
21578 2011-03-22  Richard Henderson  <rth@redhat.com>
21579
21580         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
21581         TARGET_ABI_WINDOWS_NT.
21582         (alpha_output_function_end_prologue): Likewise.
21583         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
21584         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
21585         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
21586         (trap, *movsi_nt_vms): Likewise.
21587         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
21588         (*tablejump_osf_nt_internal): Remove.
21589         * config/alpha/predicates.md (input_operand): Only test Pmode.
21590
21591 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21592
21593         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
21594         via opts pointer.  Use error_at.  Don't assert that global
21595         structures are in use.
21596
21597 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21598
21599         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
21600         (ix86_handle_option): Access ix86_isa_flags and
21601         ix86_isa_flags_explicit via opts pointer.  Don't assert that
21602         global structures are in use.
21603         (ix86_function_specific_save, ix86_function_specific_restore):
21604         Update ix86_isa_flags_explicit field name.
21605         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
21606         (ix86_isa_flags_explicit): Rename TargetSave entry to
21607         x_ix86_isa_flags_explicit.
21608
21609 2011-03-22  Richard Henderson  <rth@redhat.com>
21610
21611         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
21612         (alpha_option_override, direct_return): Likewise.
21613         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
21614         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
21615         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
21616         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
21617         (alpha_expand_epilogue, alpha_end_function): Likewise.
21618         (alpha_init_libfuncs): Likewise.
21619         (struct machine_function): Remove unicosmk members.
21620         (print_operand) ['t']: Remove.
21621         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
21622         unicosmk_output_module_name, unicosmk_output_common,
21623         current_section_align, unicosmk_output_text_section_asm_op,
21624         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
21625         unicosmk_section_type_flags, unicosmk_unique_section,
21626         unicosmk_asm_named_section, unicosmk_insert_attributes,
21627         unicosmk_output_align, unicosmk_defer_case_vector,
21628         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
21629         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
21630         unicosmk_output_ssib, unicosmk_add_call_info_word,
21631         unicosmk_extern_head, unicosmk_output_default_externs,
21632         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
21633         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
21634         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
21635         * config/alpha/alpha-protos.h: Update.
21636         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
21637         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
21638         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
21639         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
21640         (*mulsi_se, mulvsi3): Likewise.
21641         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
21642         (*divmodsi_internal, call, call_value, realign): Likewise.
21643         (moddi3, umoddi3): Likewise; remove duplicate expander.
21644         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
21645         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
21646         (*movdi_nofix): Remove r/U alternative.
21647         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
21648         * config/alpha/constraints.md ("U"): Remove.
21649         * config/alpha/predicates.md (call_operand"): Don't test
21650         TARGET_ABI_UNICOSMK.
21651
21652 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21653
21654         * target.def (handle_option): Take gcc_options and
21655         cl_decoded_option pointers and location_t.
21656         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
21657         * doc/tm.texi: Regenerate.
21658         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
21659         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
21660         * lto-opts.c (lto_reissue_options): Generate option structure for
21661         targetm.handle_option call.
21662         * opts.c (target_handle_option): Update call to
21663         targetm.handle_option.  Remove assertions about values now passed
21664         down to hook.
21665         * targhooks.c (default_target_handle_option): New.
21666         * targhooks.h (default_target_handle_option): Declare.
21667         * config/alpha/alpha.c: Include opts.h.
21668         (alpha_handle_option): Update to new hook interface.
21669         * config/arm/arm.c: Include opts.h.
21670         (arm_handle_option): Update to new hook interface.
21671         * config/arm/t-arm (arm.o): Update dependencies.
21672         * config/bfin/bfin.c: Include opts.h.
21673         (bfin_handle_option): Update to new hook interface.
21674         * config/cris/cris.c: Include opts.h.
21675         (cris_handle_option): Update to new hook interface.
21676         * config/frv/frv.c: Include opts.h.
21677         (frv_handle_option): Update to new hook interface.
21678         * config/i386/i386.c: Include opts.h.
21679         (ix86_handle_option): Update to new hook interface.
21680         (ix86_valid_target_attribute_inner_p): Generate option structure
21681         for call to ix86_handle_option.
21682         * config/i386/t-i386 (i386.o): Update dependencies.
21683         * config/ia64/ia64.c: Include opts.h.
21684         (ia64_handle_option): Update to new hook interface.
21685         * config/ia64/t-ia64 (ia64.o): Update dependencies.
21686         * config/iq2000/iq2000.c: Include opts.h.
21687         (iq2000_handle_option): Update to new hook interface.
21688         * config/m32c/m32c.c: Include opts.h.
21689         (m32c_handle_option): Update to new hook interface.
21690         * config/m32r/m32r.c: Include opts.h.
21691         (m32r_handle_option): Update to new hook interface.
21692         * config/m68k/m68k.c: Include opts.h.
21693         (m68k_handle_option): Update to new hook interface.
21694         * config/mep/mep.c: Include opts.h.
21695         (mep_handle_option): Update to new hook interface.
21696         * config/microblaze/microblaze.c: Include opts.h.
21697         (microblaze_handle_option): Update to new hook interface.
21698         * config/mips/mips.c: Include opts.h.
21699         (mips_handle_option): Update to new hook interface.
21700         * config/mn10300/mn10300.c: Include opts.h.
21701         (mn10300_handle_option): Update to new hook interface.
21702         * config/pa/pa.c: Include opts.h.
21703         (pa_handle_option): Update to new hook interface.
21704         * config/pdp11/pdp11.c: Include opts.h.
21705         (pdp11_handle_option): Update to new hook interface.
21706         * config/rs6000/rs6000.c: Include opts.h.
21707         (rs6000_handle_option): Update to new hook interface.
21708         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
21709         * config/rx/rx.c: Include opts.h.
21710         (rx_handle_option): Update to new hook interface.
21711         * config/s390/s390.c: Include opts.h.
21712         (s390_handle_option): Update to new hook interface.
21713         * config/score/score.c: Include opts.h.
21714         (score_handle_option): Update to new hook interface.
21715         * config/sh/sh.c: Include opts.h.
21716         (sh_handle_option): Update to new hook interface.
21717         * config/sparc/sparc.c: Include opts.h.
21718         (sparc_handle_option): Update to new hook interface.
21719         * config/v850/v850.c: Include opts.h.
21720         (v850_handle_option): Update to new hook interface.
21721
21722 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21723
21724         * gcc.c (driver_unknown_option_callback): Only permit and save
21725         unknown -Wno- options.
21726         (driver_wrong_lang_callback): Save options directly instead of via
21727         driver_unknown_option_callback.
21728
21729 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
21730
21731         * combine.c (simplify_set): Try harder to find the best CC mode when
21732         simplifying a nested COMPARE on the RHS.
21733
21734 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21735
21736         * config/alpha/gnu.h: Remove.
21737         * config/arc: Remove directory.
21738         * config/arm/netbsd.h: Remove.
21739         * config/arm/t-pe: Remove.
21740         * config/crx: Remove directory.
21741         * config/i386/netbsd.h: Remove.
21742         * config/m68hc11: Remove directory.
21743         * config/m68k/uclinux-oldabi.h: Remove.
21744         * config/mcore/mcore-pe.h: Remove.
21745         * config/mcore/t-mcore-pe: Remove.
21746         * config/netbsd-aout.h: Remove.
21747         * config/rs6000/gnu.h: Remove.
21748         * config/sh/sh-symbian.h: Remove.
21749         * config/sh/symbian-base.c: Remove.
21750         * config/sh/symbian-c.c: Remove.
21751         * config/sh/symbian-cxx.c: Remove.
21752         * config/sh/symbian-post.h: Remove.
21753         * config/sh/symbian-pre.h: Remove.
21754         * config/sh/t-symbian: Remove.
21755         * config/svr3.h: Remove.
21756         * config/vax/netbsd.h: Remove.
21757         * config.build: Don't handle i[34567]86-*-pe.
21758         * config.gcc: Remove handling of deprecations for most deprecated
21759         targets.
21760         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
21761         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
21762         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
21763         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
21764         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
21765         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
21766         Remove cases.
21767         * config.host: Don't handle i[34567]86-*-pe.
21768         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
21769         (ASM_SPEC32): Don't handle -mcall-gnu.
21770         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
21771         -mcall-gnu.
21772         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
21773         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
21774         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
21775         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
21776         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
21777         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
21778         conditional on SYMBIAN.
21779         * configure.ac: Don't handle powerpc*-*-gnu*.
21780         * configure: Regenerate.
21781         * doc/extend.texi (interrupt attribute): Don't mention CRX.
21782         * doc/install-old.texi (m6811, m6812): Don't mention.
21783         * doc/install.texi (arc-*-elf*): Don't document multilib option.
21784         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
21785         (m68k-uclinuxoldabi): Don't mention.
21786         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
21787         Remove.
21788         (-mcall-gnu): Remove.
21789         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
21790         families): Remove constraint documentation.
21791
21792 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
21793
21794         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
21795         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
21796         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
21797
21798 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
21799
21800         PR target/48226
21801         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
21802         vector when peeking at the next token for vector, don't expand the
21803         keywords.
21804
21805 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
21806
21807         * config/avr/avr-protos.h (expand_epilogue): Change prototype
21808         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
21809         * config/avr/avr.c (init_cumulative_args)
21810         (avr_function_arg_advance): Use it.
21811         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
21812         sibcall epilogues.
21813         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
21814         (avr_function_ok_for_sibcall): ...this new function.
21815         (avr_lookup_function_attribute1): New static Function.
21816         (avr_naked_function_p, interrupt_function_p)
21817         (signal_function_p, avr_OS_task_function_p)
21818         (avr_OS_main_function_p): Use it.
21819         * config/avr/avr.md ("sibcall", "sibcall_value")
21820         ("sibcall_epilogue"): New expander.
21821         ("*call_insn", "*call_value_insn"): New insn.
21822         ("call_insn", "call_value_insn"): Remove
21823         ("call", "call_value", "epilogue"): Change expander to handle
21824         sibling calls.
21825
21826 2011-03-21  Nick Clifton  <nickc@redhat.com>
21827
21828         * doc/invoke.texi (Overall Options): Move closing brace to end of
21829         options list.
21830         (Optimization Options): Add missing @gol.
21831         (Directory Options): Likewise.
21832         (i386 and x86-64 Options): Likewise.
21833         (RS6000 and PowerPC Options): Likewise.
21834         (i386 and x86-64 Windows Options): Likewise.
21835         (V850 Options): Add text missing from descriptions.
21836
21837 2011-03-22  Richard Henderson  <rth@redhat.com>
21838
21839         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
21840         (avr_incoming_return_addr_rtx): New.
21841         (emit_push_byte): New.
21842         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
21843         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
21844         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
21845         (emit_pop_byte): New.
21846         (expand_epilogue): Use it.  Pop frame pointer by bytes.
21847         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
21848         (INCOMING_RETURN_ADDR_RTX): New.
21849         (INCOMING_FRAME_SP_OFFSET): New.
21850         (ARG_POINTER_CFA_OFFSET): New.
21851         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
21852         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
21853         (pophi): Remove.
21854
21855         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
21856
21857 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21858
21859         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
21860         (FUNCTION_ARG_ADVANCE): Likewise.
21861         * tm.texi.in: Change references to them to hook references.
21862         * tm.texi: Regenerate.
21863         * targhooks.c (default_function_arg): Eliminate check for target
21864         macro.
21865         (default_function_incoming_arg): Likewise.
21866         (default_function_arg_advance): Likewise.
21867         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
21868         (function_arg_advance): Likewise.
21869         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
21870
21871 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21872
21873         * tree.c (build_call_1): New function.
21874         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
21875
21876 2011-03-22  Richard Guenther  <rguenther@suse.de>
21877
21878         PR tree-optimization/48228
21879         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
21880         for single-arg PHIs.
21881
21882 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
21883
21884         PR rtl-optimization/48143
21885         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
21886         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
21887         sse2_cvtps2pd): Likewise.
21888
21889 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21890
21891         * recog.c (canonicalize_change_group): Use validate_unshare_change.
21892
21893 2011-03-22  Richard Guenther  <rguenther@suse.de>
21894
21895         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
21896         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
21897         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
21898         and REALIGN_LOAD_EXPR.
21899         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
21900         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
21901         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
21902         DOT_PROD_EXPR case ...
21903         (expand_expr_real_2): ... here.
21904         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
21905         and REALIGN_LOAD_EXPR.
21906         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
21907         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
21908         (vect_create_epilog_for_reduction): Likewise.
21909         (vectorizable_reduction): Likewise.
21910         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
21911         * tree-vect-stmts.c (vectorizable_load): Likewise.
21912
21913 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
21914
21915         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
21916
21917 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21918
21919         * config/s390/s390.c (s390_delegitimize_address): Fix offset
21920         handling for PLTOFF/GOTOFF.
21921
21922 2011-03-22  Nick Clifton  <nickc@redhat.com>
21923
21924         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
21925         trailing backslash from the end of the macro definition.
21926
21927 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21928
21929         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
21930         and PLT unspecs.
21931
21932 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
21933
21934         * expr.h (prepare_operand): Move to...
21935         * optabs.h (prepare_operand): ...here and change the insn code
21936         parameter from "int" to "enum insn_code".
21937         (insn_operand_matches): Declare.
21938         * expr.c (init_expr_target): Use insn_operand_matches.
21939         (compress_float_constant): Likewise.
21940         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
21941         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
21942         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
21943         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
21944         Likewise.
21945         (gen_cond_trap): Likewise.
21946         (prepare_operand): Likewise.  Change icode to an insn_code.
21947         (insn_operand_matches): New function.
21948         * reload.c (find_reloads_address_1): Use insn_operand_matches.
21949         * reload1.c (gen_reload): Likewise.
21950         * targhooks.c (default_secondary_reload): Likewise.
21951
21952 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
21953
21954         * config/alpha/alpha.md (unspec): New define_c_enum.
21955         (unspecv): Ditto.
21956
21957 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
21958
21959         PR debug/48214
21960         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
21961         between a call and its CALL_ARG_LOCATION note.
21962
21963 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
21964
21965         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
21966
21967 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
21968
21969         PR c/42544
21970         PR c/48197
21971         * c-common.c (shorten_compare): If primopN is first sign-extended
21972         to opN and then zero-extended to result type, set primopN to opN.
21973
21974 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
21975
21976         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
21977         for barrier handlers.
21978
21979 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
21980
21981         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
21982         UNSPEC constants to be in the unspec enumeration, and redefine
21983         all UNSPECV constants to be in the unspecv enumeration, so that
21984         dumps print which unspec/unspec_volatile this is.
21985         * config/rs6000/vector.md (UNSPEC_*): Ditto.
21986         * config/rs6000/paired.md (UNSPEC_*): Ditto.
21987         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
21988         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
21989         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
21990
21991         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
21992         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
21993         UNSPECV_LWSYNC, since these are used as unspec_volatile.
21994         * config/rs6000/sync.md (isync, lwsync): Ditto.
21995
21996 2011-03-21  Richard Guenther  <rguenther@suse.de>
21997
21998         * params.def (lto-min-partition): Fix typo.
21999
22000 2011-03-21  Richard Guenther  <rguenther@suse.de>
22001
22002         PR c/47939
22003         * c-decl.c (grokdeclarator): Drop to the main variant only
22004         for array types.  Drop flag_gen_aux_info check.
22005
22006 2011-03-21  Richard Guenther  <rguenther@suse.de>
22007
22008         PR translation/47911
22009         * params.def (lto-partitions): Fix typo.
22010         (lto-min-partition): Fix wording.
22011
22012 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
22013
22014         * config/rs6000/t-freebsd: Remove duplication from file.
22015
22016 2011-03-21  Richard Guenther  <rguenther@suse.de>
22017
22018         PR middle-end/47661
22019         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
22020
22021 2011-03-21  Richard Guenther  <rguenther@suse.de>
22022
22023         PR lto/48210
22024         * params.def (lto-partitions): Require at least 1 partition.
22025
22026 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22027
22028         * gthr-solaris.h: Remove.
22029         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
22030         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
22031         (LIB_SPEC): Likewise.
22032         * config/sol2.opt (threads): Remove.
22033         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
22034         (sparc*-*-solaris2*): Likewise.
22035         * configure.ac (enable_threads): Enable solaris support.
22036         * configure: Regenerate.
22037         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
22038         * doc/install.texi (Configuration, --enable-threads=lib): Remove
22039         solaris.
22040
22041 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22042
22043         * config.gcc: Obsolete *-*-solaris2.8*.
22044         * doc/install.texi (Specific, *-*-solaris2*): Document it.
22045
22046 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22047
22048         PR bootstrap/48135
22049         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
22050         reference.  Solaris 8 perl works.
22051
22052 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22053
22054         PR bootstrap/48135
22055         * doc/install.texi (Prerequisites): Move jar etc. up.
22056         Explain support library version requirements.
22057
22058 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22059
22060         PR bootstrap/48135
22061         * doc/install.texi (Prerequisites): Move Perl to build
22062         requirements.  Always necessary on Solaris 2 with Sun ld.
22063
22064 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22065
22066         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
22067         binutils 2.21.
22068         (Specific, i?86-*-solaris2.[89]): Likewise.
22069         (Specific, i?86-*-solaris2.10): Likewise.
22070         (Specific, mips-sgi-irix6): Likewise.
22071         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
22072         Update for binutils 2.21.
22073
22074 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22075
22076         * configure.ac (gcc_cv_lto_plugin): Fix typo.
22077         Allow -fuse-linker-plugin for non-default plugin linker.
22078         * configure: Regenerate.
22079
22080 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
22081
22082         PR bootstrap/48167
22083         * gengtype.c (files_rules): Added rule for cp/parser.h.
22084
22085 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
22086
22087         PR target/48213
22088         * config/s390/s390.c (s390_delegitimize_address): Don't call
22089         lowpart_subreg if orig_x has BLKmode.
22090
22091 2011-03-21  Kai Tietz  <ktietz@redhat.com>
22092
22093         PR target/12171
22094         * doc/plugins.texi: Adjust documentation for plugin register_callback.
22095         * tree.h (attribute_spec): Add new member affects_type_identity.
22096         * attribs.c (empty_attribute_table): Adjust attribute_spec
22097         initializers.
22098         * config/alpha/alpha.c: Likewise.
22099         * config/arc/arc.c: Likewise.
22100         * config/arm/arm.c: Likewise.
22101         * config/avr/avr.c: Likewise.
22102         * config/bfin/bfin.c: Likewise.
22103         * config/crx/crx.c: Likewise.
22104         * config/darwin.h: Likewise.
22105         * config/h8300/h8300.c: Likewise.
22106         * config/i386/cygming.h: Likewise.
22107         * config/i386/i386.c: Likewise.
22108         * config/ia64/ia64.c: Likewise.
22109         * config/m32c/m32c.c: Likewise.
22110         * config/m32r/m32r.c: Likewise.
22111         * config/m68hc11/m68hc11.c: Likewise.
22112         * config/m68k/m68k.c: Likewise.
22113         * config/mcore/mcore.c: Likewise.
22114         * config/mep/mep.c: Likewise.
22115         * config/microblaze/microblaze.c: Likewise.
22116         * config/mips/mips.c: Likewise.
22117         * config/rs6000/rs6000.c: Likewise.
22118         * config/rx/rx.c: Likewise.
22119         * config/sh/sh.c: Likewise.
22120         * config/sol2.h: Likewise.
22121         * config/sparc/sparc.c: Likewise.
22122         * config/spu/spu.c: Likewise.
22123         * config/stormy16/stormy16.c: Likewise.
22124         * config/v850/v850.c: Likewise.
22125
22126 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
22127
22128         * simplify-rtx.c (simplify_binary_operation_1): Handle
22129         (xor (and A B) C) case when B and C are both constants.
22130
22131 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
22132
22133         * tree-dfa.c (add_referenced_var): Fix typo in comment.
22134
22135 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
22136
22137         PR bootstrap/48168
22138         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
22139
22140 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
22141
22142         PR rtl-optimization/48156
22143         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
22144         assume df and df_lr are not NULL.
22145
22146 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22147
22148         PR debug/48023
22149         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
22150         between a call and its CALL_ARG_LOCATION note.
22151
22152 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
22153
22154         PR debug/48178
22155         * config/sh/sh.c (find_barrier): Don't emit a constant pool
22156         between a call and its corresponding CALL_ARG_LOCATION note.
22157
22158 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
22159
22160         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
22161         instead of loop. Use HARD_REGISTER_NUM_P predicate.
22162         * haifa-sched.c (setup_ref_regs): Ditto.
22163         * caller-save.c (add_used_regs_1): Ditto.
22164         * dse.c (look_for_hardregs): Ditto.
22165         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
22166         * sched-rgn.c (check_live_1): Ditto.
22167
22168 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
22169
22170         * c-decl.c (diagnose_mismatched_decls): Give an error for
22171         redefining a typedef with variably modified type.
22172
22173 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
22174
22175         * c-decl.c (grokfield): Don't allow typedefs for structures or
22176         unions with no tag by default.
22177         * doc/extend.texi (Unnamed Fields): Update.
22178
22179 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
22180
22181         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
22182         Rewrite using indirect functions.
22183         (lwp_slwpcb): Ditto.
22184         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
22185         (avx_vinsertf128<mode>): Ditto.
22186
22187 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22188
22189         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
22190         unspecs.
22191
22192 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22193
22194         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
22195         splitting between a call and its corresponding CALL_ARG_LOCATION note.
22196
22197 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
22198
22199         PR rtl-optimization/48170
22200         * gcse.c (hoist_code): Remove bogus asserts.
22201
22202 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
22203
22204         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
22205         computation for prologue/epilogue.
22206
22207 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22208
22209         * Makefile.in (check-consistency): Remove.
22210
22211 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
22212
22213         PR debug/48176
22214         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
22215         arange_table_in_use is 0, but either text_section_used or
22216         cold_text_section_used is true.  Don't call it if
22217         !info_section_emitted.
22218
22219 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
22220
22221         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
22222         FUNCTION_VALUE_REGNO_P): Remove.
22223         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
22224         Remove.
22225         * config/avr/avr.c (avr_ret_register): Make static inline.
22226         (avr_function_value_regno_p): New function.
22227         (avr_libcall_value): Make static. Add 'func' argument.
22228         (avr_function_value): Make static. Rename 'func' argument to
22229         'fn_decl_or_type', forward it to avr_libcall_value. Call
22230         avr_ret_register function instead of RET_REGISTER macro.
22231         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22232
22233 2011-03-18  Jason Merrill  <jason@redhat.com>
22234
22235         PR c++/23372
22236         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
22237
22238 2011-03-18  Richard Guenther  <rguenther@suse.de>
22239
22240         * doc/install.texi (--enable-gold): Remove.
22241         (--with-plugin-ld): Document.
22242         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
22243
22244 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
22245
22246         PR middle-end/47790
22247         * expr.c (optimize_bitfield_assignment_op): Revamp to work
22248         again after expansion changes.
22249
22250 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
22251
22252         * combine.c (try_combine): Do simplification only call of
22253         subst() on i2 even when i1 is present. Update comments.
22254
22255 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
22256
22257         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
22258         and UNSPEC_PCREL_SYMOFF.
22259
22260 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22261
22262         * config/s390/s390.md: Use define_c_enum for the unspec constant
22263         definitions.
22264
22265 2011-03-18  Richard Henderson  <rth@redhat.com>
22266             Jakub Jelinek  <jakub@redhat.com>
22267
22268         PR bootstrap/48161
22269         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
22270         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
22271
22272 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
22273
22274         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22275         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
22276         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
22277         Change return type to bool.
22278         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22279
22280 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
22281
22282         PR debug/48163
22283         * var-tracking.c (prepare_call_arguments): If CALL target
22284         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
22285         pc instead of looking it up using cselib_lookup and use
22286         Pmode for it if x has VOIDmode.
22287         * dwarf2out.c (gen_subprogram_die): If also both first and
22288         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
22289
22290         PR debug/48163
22291         * function.c (assign_parms): For data.passed_pointer parms
22292         use MEM of data.entry_parm instead of data.entry_parm itself
22293         as DECL_INCOMING_RTL.
22294         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
22295         also when passed and declared mode is the same, DECL_RTL
22296         is a MEM with pseudo as address and DECL_INCOMING_RTL is
22297         a MEM too.
22298
22299 2011-03-16  Jeff Law  <law@redhat.com>
22300
22301         PR rtl-optimization/37273
22302         * ira-costs.c (scan_one_insn): Detect constants living in memory and
22303         handle them like argument loads from stack slots.  Do not double
22304         count memory for memory constants and argument loads from stack slots.
22305
22306 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
22307
22308         PR debug/48160
22309         * var-tracking.c (prepare_call_arguments): Check SUBREG.
22310
22311 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
22312
22313         PR target/48171
22314         * config/i386/i386.opt: Add Save to -mavx and -mfma.
22315
22316 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
22317
22318         PR bootstrap/48153
22319         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
22320         if dwarf_strict.
22321         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
22322         Clear call_arg_locations and call_arg_loc_last always.
22323
22324         PR middle-end/48152
22325         * var-tracking.c (prepare_call_arguments): If argument needs to be
22326         passed by reference, adjust argtype and mode.
22327
22328 2011-03-17  Richard Guenther  <rguenther@suse.de>
22329
22330         PR middle-end/48134
22331         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
22332         a value make sure to fold the statement.
22333
22334 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
22335
22336         PR target/43872
22337         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
22338         return condition with !cfun->calls_alloca.
22339
22340 2011-03-17  Richard Guenther  <rguenther@suse.de>
22341
22342         PR bootstrap/48148
22343         * lto-cgraph.c (input_overwrite_node): Clear the abstract
22344         origin for decls in other ltrans units.
22345         (input_varpool_node): Likewise.
22346
22347 2011-03-17  Richard Guenther  <rguenther@suse.de>
22348
22349         PR middle-end/48165
22350         * tree-object-size.c (compute_object_offset): Properly return
22351         the offset operand of MEM_REFs as sizetype.
22352
22353 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
22354
22355         PR rtl-optimization/48141
22356         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
22357         * dse.c: Include params.h.
22358         (active_local_stores_len): New variable.
22359         (add_wild_read, dse_step1): Clear it when setting active_local_stores
22360         to NULL.
22361         (record_store, check_mem_read_rtx): Decrease it when removing
22362         from the chain.
22363         (scan_insn): Likewise.  Increase it when adding to chain, if it
22364         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
22365         set active_local_stores to NULL before the addition.
22366         * Makefile.in (dse.o): Depend on $(PARAMS_H).
22367
22368         PR rtl-optimization/48141
22369         * dse.c (record_store): If no positions are needed in an insn
22370         that cannot be deleted, at least unchain it from active_local_stores.
22371
22372 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
22373
22374         PR debug/47510
22375         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
22376         (lookup_type_die_strip_naming_typedef): ... here.
22377         (get_context_die): Use it.
22378         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
22379         the anonymous struct named by the naming typedef.
22380
22381 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22382
22383         PR target/48154
22384         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
22385         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
22386
22387 2011-03-16  Jeff Law  <law@redhat.com>
22388
22389         * tree-vrp.c (identify_jump_threads): Slightly simplify type
22390         check for operands of conditional.  Allow type to be a pointer.
22391
22392 2011-03-16  Richard Guenther  <rguenther@suse.de>
22393
22394         PR tree-optimization/48149
22395         * fold-const.c (fold_binary_loc): Fold
22396         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
22397
22398 2011-03-16  Richard Guenther  <rguenther@suse.de>
22399
22400         PR tree-optimization/26134
22401         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
22402         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
22403         (non_rewritable_mem_ref_base): Handle complex type component
22404         accesses, constrain offsets for vector and complex extracts
22405         more properly.
22406
22407 2011-03-16  Richard Guenther  <rguenther@suse.de>
22408
22409         PR tree-optimization/48146
22410         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
22411         operands avoiding the need for renaming.
22412
22413 2011-03-16  Richard Guenther  <rguenther@suse.de>
22414
22415         * gimple-fold.c (maybe_fold_reference): Open-code relevant
22416         constant folding.  Move MEM_REF canonicalization first.
22417         Rely on fold_const_aggregate_ref for initializer folding.
22418         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
22419
22420 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
22421
22422         PR middle-end/48136
22423         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22424         arg0/arg1 or their arguments are always fold converted to matching
22425         types.
22426
22427         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
22428         to nargs.
22429
22430 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22431
22432         PR lto/46944
22433         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
22434         Handle in-tree gold.
22435         (ld_vers): Extract binutils version for gold.
22436         (gcc_cv_ld_hidden): Handle gold here.
22437         (gcc_cv_lto_plugin): Determine level of linker plugin support.
22438         * configure: Regenerate.
22439         * config.in: Regenerate.
22440         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
22441         -fuse-linker-plugin otherwise.
22442         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
22443         (LINK_COMMAND_SPEC): Use it.
22444         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
22445
22446 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
22447
22448         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
22449         * calls.c: Remove debug.h include.
22450         (emit_call_1): Don't call virtual_call_token debug hook.
22451         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
22452         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
22453         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
22454         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
22455         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
22456         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
22457         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
22458         dwarf2out_virtual_call): Remove.
22459         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
22460         copy_call_info and virtual_call hooks.
22461         (dwarf2out_init): Don't initialize vcall_insn_table,
22462         debug_dcall_section and debug_vcall_section.
22463         (prune_unused_types): Don't mark nodes from dcall_table.
22464         (dwarf2out_finish): Don't output dcall or vcall tables.
22465         * final.c (final_scan_insn): Don't call direct_call or
22466         virtual_call debug hooks.
22467         * debug.h (struct gcc_debug_hooks): Remove direct_call,
22468         virtual_call_token, copy_call_info and virtual_call hooks.
22469         (debug_nothing_uid): Remove prototype.
22470         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
22471         copy_call_info and virtual_call hooks.
22472         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
22473         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
22474         * debug.c (do_nothing_debug_hooks): Likewise.
22475         (debug_nothing_uid): Remove.
22476         * doc/invoke.texi (-fenable-icf-debug): Remove.
22477         * common.opt (-fenable-icf-debug): Likewise.
22478
22479         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
22480         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
22481         call's MEM.  Handle functions returning aggregate through a hidden
22482         first pointer.  For virtual calls add clobbered pc to call arguments
22483         chain.
22484         * dwarf2out.c (gen_subprogram_die): Emit
22485         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
22486         can't be emitted.
22487
22488         PR debug/45882
22489         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
22490         * rtl.h (ENTRY_VALUE_EXP): Define.
22491         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
22492         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
22493         * print-rtl.c (print_rtx): Likewise.
22494         * gengtype.c (adjust_field_rtx_def): Likewise.
22495         * var-tracking.c (vt_add_function_parameter): Adjust
22496         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
22497         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
22498         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
22499         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
22500         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
22501
22502         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
22503         Call var_location debug hook even on CALL_INSNs.
22504         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
22505         * rtl.def (ENTRY_VALUE): New.
22506         * dwarf2out.c: Include cfglayout.h.
22507         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
22508         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
22509         (struct call_arg_loc_node): New type.
22510         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
22511         tail_call_site_count): New variables.
22512         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
22513         DW_TAG_GNU_call_site_parameter.
22514         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
22515         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
22516         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
22517         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
22518         and DW_AT_GNU_all_source_call_sites.
22519         (mem_loc_descriptor): Handle ENTRY_VALUE.
22520         (add_src_coords_attributes): Don't add enything if
22521         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
22522         (dwarf2out_abstract_function): Save and clear call_arg_location,
22523         call_site_count and tail_call_site_count around dwarf2out_decl call.
22524         (gen_call_site_die): New function.
22525         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
22526         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
22527         (dwarf2out_function_decl): Clear call_arg_locations,
22528         call_arg_loc_last, set call_site_count and tail_call_site_count
22529         to -1 and free block_map.
22530         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
22531         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
22532         followed by any real instructions.
22533         (dwarf2out_begin_function): Set call_site_count and
22534         tail_call_site_count to 0.
22535         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
22536         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
22537         attempt to force a DIE for it and worst case remove the attribute.
22538         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
22539         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
22540         the decl itself.
22541         * var-tracking.c: Include tm_p.h.
22542         (vt_stack_adjustments): For calls call note_register_arguments.
22543         (argument_reg_set): New variable.
22544         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
22545         ensure the VALUE is resolved.
22546         (call_arguments): New variable.
22547         (prepare_call_arguments): New function.
22548         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
22549         (struct expand_loc_callback_data): Add ignore_cur_loc field.
22550         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
22551         always use the best expression.
22552         (vt_expand_loc): Add ignore_cur_loc argument.
22553         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
22554         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
22555         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
22556         note for all calls.
22557         (vt_add_function_parameter): Use cselib_lookup_from_insn.
22558         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
22559         argument.  Don't call cselib_preserve_only_values and
22560         cselib_reset_table.
22561         (note_register_arguments): New function.
22562         (vt_initialize): Compute argument_reg_set.  Call
22563         vt_add_function_parameters before processing basic blocks instead of
22564         afterwards.  For calls call prepare_call_arguments before calling
22565         cselib_process_insn.
22566         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
22567         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
22568         (var-tracking.o): Depend on $(TM_P_H).
22569         * cfglayout.h (insn_scope): New prototype.
22570         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
22571         * cfglayout.c (insn_scope): No longer static.
22572         * insn-notes.def (CALL_ARG_LOCATION): New.
22573         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
22574         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
22575         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
22576         nothing for DECL_EXTERNAL BLOCK_VARS.
22577
22578 2011-03-16  Alan Modra  <amodra@gmail.com>
22579
22580         PR target/45844
22581         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
22582         create invalid offset address for vsx splat insn.
22583         * config/rs6000/predicates.md (splat_input_operand): New.
22584         * config/rs6000/vsx.md (vsx_splat_*): Use it.
22585
22586 2011-03-15  Xinliang David Li  <davidxl@google.com>
22587
22588         PR c/47837
22589         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
22590         (normalize_preds): New function.
22591         (is_use_properly_guarded): Normalize def predicates.
22592
22593 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22594
22595         PR target/46788
22596         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
22597         in the output template.
22598
22599 2011-03-15  Richard Guenther  <rguenther@suse.de>
22600
22601         PR middle-end/47650
22602         * tree-pretty-print.c (dump_function_declaration): Properly
22603         dump unprototyped and varargs function types.
22604
22605 2011-03-15  Richard Guenther  <rguenther@suse.de>
22606
22607         PR tree-optimization/13954
22608         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
22609         and friends.
22610
22611 2011-03-15  Richard Guenther  <rguenther@suse.de>
22612
22613         PR tree-optimization/48037
22614         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
22615         selects into BIT_FIELD_REFs.
22616         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
22617         vector select.
22618
22619 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
22620
22621         PR tree-optimization/48129
22622         * builtins.c (fold_builtin_snprintf): Convert to type of
22623         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
22624         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
22625
22626 2011-03-15  Richard Guenther  <rguenther@suse.de>
22627
22628         PR tree-optimization/41490
22629         * tree-ssa-dce.c (propagate_necessity): Handle returns without
22630         value but with VUSE.
22631         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
22632         return statements.
22633         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
22634         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
22635         * tree-tailcall.c (find_tail_calls): Ignore returns.
22636
22637 2011-03-15  Richard Guenther  <rguenther@suse.de>
22638
22639         PR middle-end/48031
22640         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
22641         or variable-indexed array accesses when in gimple form.
22642
22643 2011-03-15  Richard Guenther  <rguenther@suse.de>
22644
22645         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
22646
22647 2011-03-15  Alan Modra  <amodra@gmail.com>
22648
22649         PR target/48032
22650         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
22651         presume symbol_refs without a symbol_ref_decl are suitably
22652         aligned, nor other trees we may see here.  Handle anchor symbols.
22653         (legitimate_constant_pool_address_p): Comment.  Add mode param.
22654         Check cmodel=medium addresses.  Adjust all calls.
22655         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
22656         creating cmodel=medium optimized access to locals.
22657         * config/rs6000/constraints.md (R): Pass QImode to
22658         legitimate_constant_pool_address_p.
22659         * config/rs6000/predicates.md (input_operand): Pass mode to
22660         legitimate_constant_pool_address_p.
22661         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
22662         Update prototype.
22663
22664 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
22665
22666         PR target/48053
22667         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
22668         64-bit constants being loaded into registers other than GPRs such
22669         as loading 0 into a VSX register.
22670
22671 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22672
22673         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
22674
22675 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
22676
22677         PR middle-end/47917
22678         * builtins.c (fold_builtin_snprintf): New function.
22679         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
22680         (fold_builtin_4): Likewise.
22681
22682         PR middle-end/38878
22683         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
22684         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
22685         and C - X == X also strip nops from +/-/p+ operand.
22686         When optimizing -X == C, fold C to arg0's type.
22687
22688         PR debug/47946
22689         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
22690         emit it as add_AT_int instead of add_AT_unsigned.
22691
22692 2011-03-14  Tom Tromey  <tromey@redhat.com>
22693
22694         * unwind-dw2.c: Include sys/sdt.h if it exists.
22695         (_Unwind_DebugHook): Use STAP_PROBE2.
22696         * config.in, configure: Rebuild.
22697         * configure.ac: Check for sys/sdt.h.
22698
22699 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
22700
22701         * config/i386/i386.md (ROUND_FLOOR): New constant.
22702         (ROUND_CEIL): Ditto.
22703         (ROUND_TRUNC): Ditto.
22704         (ROUND_MXCSR): Ditto.
22705         (ROUND_NO_EXC): Ditto.
22706         (rint<mode>2): Use new defines instead of numerical constants.
22707         (floor<mode>2): Ditto.
22708         (ceil<mode>2): Ditto.
22709         (btrunc<mode>2): Ditto.
22710         * config/i386/i386-builtin-types.def: Define ROUND function type
22711         aliases.
22712         * config/i386/i386.c (enum ix86_builtins): Add
22713         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
22714         (struct builtin_description): Add
22715         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
22716         (ix86_expand_sse_round): New static function.
22717         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
22718         function types.
22719         (ix86_builtin_vectorized_function): Handle
22720         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
22721
22722 2011-03-14  Tom Tromey  <tromey@redhat.com>
22723
22724         * c-parser.c (c_parser_asm_string_literal): Clear
22725         warn_overlength_strings.
22726
22727 2011-03-14  Tom Tromey  <tromey@redhat.com>
22728
22729         * c-parser.c (disable_extension_diagnostics): Save
22730         warn_overlength_strings.
22731         (restore_extension_diagnostics): Restore warn_overlength_strings.
22732
22733 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
22734
22735         * BASE-VER: Change to 4.7.0.
22736
22737 2011-03-14  Richard Guenther  <rguenther@suse.de>
22738
22739         PR middle-end/48098
22740         * tree.c (build_vector_from_val): Adjust assert to requirements
22741         and reality.
22742
22743 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
22744
22745         PR bootstrap/48102
22746         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
22747
22748 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
22749
22750         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
22751         terms of target_flags_explicit. Adjust copyright year.
22752
22753         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
22754         * config/rs6000/t-freebsd: New file. Add override for
22755         LIB2FUNCS_EXTRA.
22756
22757 2011-03-13  Chris Demetriou  <cgd@google.com>
22758
22759         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
22760         (-fno-diagnostics-show-option): this, to reflect current default.
22761         (-Werror=): Update text about -fno-diagnostics-show-option.
22762
22763 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
22764
22765         PR target/48053
22766         * config/rs6000/predicates.md (easy_vector_constant_add_self,
22767         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
22768         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
22769         mode is not V2DImode or V2DFmode.
22770         (vspltis_constant): Do not handle V2DImode and V2DFmode.
22771         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
22772         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
22773         registers to 0.
22774         (movdi_internal64): Likewise.
22775
22776 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
22777
22778         PR tree-optimization/47127
22779         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
22780         parameter.
22781         (set_cloog_options): Same.
22782         (scop_to_clast): Same.
22783         (print_clast_stmt): Do not call cloog_state_malloc and
22784         cloog_state_free.
22785         (print_generated_program): Same.
22786         (gloog): Same.
22787         * graphite-clast-to-gimple.h (cloog_state): Declared.
22788         (scop_to_clast): Adjust declaration.
22789         * graphite.c (cloog_state): Defined here.
22790         (graphite_initialize): Call cloog_state_malloc.
22791         (graphite_finalize): Call cloog_state_free.
22792
22793 2011-03-11  Jason Merrill  <jason@redhat.com>
22794
22795         * attribs.c (lookup_attribute_spec): Take const_tree.
22796         * tree.h: Adjust.
22797
22798 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
22799
22800         * config/sparc/sparc.c (sparc_option_override): Use
22801         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
22802
22803 2011-03-11  Richard Guenther  <rguenther@suse.de>
22804
22805         PR tree-optimization/48067
22806         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
22807         multiplication result will be only used once on the target
22808         stmt.
22809
22810 2011-03-11  Richard Guenther  <rguenther@suse.de>
22811
22812         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
22813
22814 2011-03-11  Richard Guenther  <rguenther@suse.de>
22815
22816         PR lto/48073
22817         * tree.c (find_decls_types_r): Do not walk types only reachable
22818         from IDENTIFIER_NODEs.
22819
22820 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
22821
22822         PR middle-end/48044
22823         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
22824         all vnode->force_output nodes as needed.
22825
22826 2011-03-11  Jason Merrill  <jason@redhat.com>
22827
22828         PR c++/48069
22829         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
22830         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
22831
22832 2011-03-11  Martin Jambor  <mjambor@suse.cz>
22833
22834         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
22835         cgraph_node.
22836
22837 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
22838
22839         PR tree-optimization/48063
22840         * ipa-inline.c (cgraph_decide_inlining): Don't try to
22841         inline functions called once if !tree_can_inline_p (node->callers).
22842
22843 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
22844
22845         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
22846         extra_objs.
22847         * config/score/score3.c: Delete.
22848         * config/score/score3.h: Delete.
22849         * config/score/mul-div.S: Delete.
22850         * config/score/sfp-machine.h: Add new file.
22851         * config/score/constraints.md: Add new file.
22852         * config/score/t-score-softfp: Add new file.
22853         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
22854         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
22855         (score7_extra_constraint): Delete.
22856         (score7_option_override): Remove unused code.
22857         * config/score/score.c: Remove score3 and score5 define and code.
22858         * config/score/score.h: Remove score3 and score5 define and code.
22859         * config/score/score.md: Remove score3 template and unusual insn.
22860         * config/score/score.opt: Remove score3 and score5 options.
22861
22862 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22863
22864         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
22865         when _HPUX_SOURCE is defined.
22866         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
22867
22868 2011-03-10  Jason Merrill  <jason@redhat.com>
22869
22870         PR c++/48029
22871         * stor-layout.c (layout_type): Don't set structural equality
22872         on arrays of incomplete type.
22873         * tree.c (type_hash_eq): Handle comparing them properly.
22874
22875 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
22876
22877         PR debug/48043
22878         * config/s390/s390.c (s390_delegitimize_address): Make sure the
22879         result mode matches original rtl mode.
22880
22881 2011-03-10  Nick Clifton  <nickc@redhat.com>
22882
22883         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
22884         (andsi3, andsi3_flags): Fix timings for three operand alternative.
22885
22886 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
22887
22888         PR rtl-optimization/47866
22889         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
22890         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
22891         if target wasn't scalar.
22892         * function.c (assign_stack_temp_for_type): Assert that neither
22893         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
22894         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
22895         macro.
22896         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
22897
22898 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22899
22900         * config/s390/s390-protos.h (s390_label_align): New prototype.
22901         * config/s390/s390.c (s390_label_align): New function.
22902         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
22903
22904 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
22905
22906         PR target/47755
22907         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
22908         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
22909         (output_vec_const_move): Ditto.
22910
22911 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
22912
22913         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
22914         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
22915         * config/mips/mips.c (mips_preferred_reload_class): Make static.
22916         Change 'rclass' argument and result type to reg_class_t.
22917         (TARGET_PREFERRED_RELOAD_CLASS): Define.
22918
22919 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
22920
22921         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
22922         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
22923         (TARGET_MEMORY_MOVE_COST): Define.
22924         (avr_register_move_cost, avr_memory_move_cost): New Functions.
22925
22926 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
22927
22928         PR debug/47881
22929         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
22930         removed anything.
22931
22932         PR tree-optimization/48022
22933         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
22934         for EQ/NE_EXPR.
22935
22936 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
22937
22938         PR debug/47991
22939         * var-tracking.c (find_use_val): Return NULL for
22940         cui->sets && cui->store_p BLKmode MEMs.
22941
22942 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
22943
22944         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
22945         Remove.
22946         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
22947         xstormy16_print_operand_address): Remove.
22948         * config/stormy16/stormy16.c (xstormy16_print_operand,
22949         xstormy16_print_operand_address): Make static.
22950         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22951
22952 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
22953
22954         PR target/47862
22955         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
22956         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
22957         before definition.
22958
22959 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
22960
22961         PR bootstrap/48000
22962         * cfgloopmanip.c (fix_bb_placements): Return immediately
22963         if FROM is BASE_LOOP's header.
22964
22965 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
22966
22967         * gimplify.c (gimplify_function_tree): Fix building calls
22968         to __builtin_return_address.
22969
22970 2011-03-07  Alan Modra  <amodra@gmail.com>
22971
22972         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
22973         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
22974         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
22975         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
22976         return_mode args.
22977         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
22978         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
22979         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
22980         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
22981         * config/rs6000/rs6000.c
22982         (rs6000_elf_end_indicate_exec_stack): Rename to..
22983         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
22984         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
22985         (rs6000_file_start): ..here.
22986         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
22987         file scope variables.
22988         (call_ABI_of_interest): New function.
22989         (init_cumulative_args): Set above vars when function return value
22990         is a float, vector, or small struct.
22991         (rs6000_function_arg_advance_1): Likewise for function args.
22992         (rs6000_va_start): Set rs6000_passes_float if variable arg function
22993         references float args.
22994
22995 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
22996
22997         * doc/cfg.texi: Remove "See" before @ref.
22998         * doc/invoke.texi: Likewise.
22999
23000 2011-03-05  Jason Merrill  <jason@redhat.com>
23001
23002         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
23003
23004 2011-03-05  Anthony Green  <green@moxielogic.com>
23005
23006         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
23007
23008 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
23009
23010         PR rtl-optimization/47899
23011         * cfgloopmanip.c (fix_bb_placements): Fix first argument
23012         to flow_loop_nested_p when moving the loop upward.
23013
23014 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
23015
23016         PR target/47719
23017         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
23018
23019 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
23020
23021         PR tree-optimization/47967
23022         * ipa-cp.c (build_const_val): Return NULL instead of creating
23023         VIEW_CONVERT_EXPR for mismatching sizes.
23024         (ipcp_create_replace_map): Return NULL if build_const_val failed.
23025         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
23026         give up on versioning.
23027
23028 2011-03-05  Alan Modra  <amodra@gmail.com>
23029
23030         PR target/47986
23031         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
23032         full cmodel medium/large lo_sum + high addresses.
23033
23034 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23035
23036         * config/s390/s390.c (s390_decompose_address): Reject non-literal
23037         pool references in UNSPEC_LTREL_OFFSET.
23038
23039 2011-03-04  Jan Hubicka  <jh@suse.cz>
23040
23041         PR lto/47497
23042         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
23043         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
23044         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
23045         Add node pointers.
23046         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
23047         cgraph_add_thunk): Add node pointers.
23048         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
23049         associated to right node.
23050         (input_node): Update use of cgraph_same_body_alias
23051         and cgraph_add_thunk.
23052
23053 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
23054
23055         * config/i386/i386.opt (mprefer-avx128): New flag.
23056         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
23057         modes when the flag -mprefer-avx128 is on.
23058
23059 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
23060
23061         * dwarf2out.c (compare_loc_operands): Fix address handling.
23062
23063 2011-03-04  Alan Modra  <amodra@gmail.com>
23064
23065         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
23066
23067 2011-03-04  Richard Guenther  <rguenther@suse.de>
23068
23069         PR middle-end/47968
23070         * expmed.c (extract_bit_field_1): Prefer vector modes that
23071         vec_extract patterns can handle.
23072
23073 2011-03-04  Richard Guenther  <rguenther@suse.de>
23074
23075         PR middle-end/47975
23076         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
23077
23078 2011-03-04  Richard Henderson  <rth@redhat.com>
23079
23080         * explow.c (emit_stack_save): Remove 'after' parameter.
23081         (emit_stack_restore): Likewise.
23082         * expr.h: Update to match.
23083         * builtins.c, calls.c, stmt.c: Likewise.
23084         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
23085         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
23086         * function.c (expand_function_end): Insert the emit_stack_save
23087         sequence before parm_birth_insn instead of after.
23088
23089 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
23090
23091         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
23092         (ssse3_pmaddubsw128): Ditto.
23093         (ssse3_pmaddubsw): Ditto.
23094
23095 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
23096
23097         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
23098
23099 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
23100
23101         PR c/47963
23102         * gimplify.c (omp_add_variable): Only call omp_notice_variable
23103         on TYPE_SIZE_UNIT if it is a DECL.
23104
23105         PR debug/47283
23106         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
23107         first operand is not is_gimple_mem_ref_addr, try to fold it.
23108         If the operand still isn't is_gimple_mem_ref_addr, clear
23109         MEM_EXPR on op0.
23110
23111 2011-03-03  Richard Guenther  <rguenther@suse.de>
23112
23113         PR middle-end/47283
23114         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
23115         match comment.
23116         (refs_may_alias_p_1): For release branches return true if
23117         we are confused by our input.
23118
23119 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23120
23121         * config/s390/s390.c (s390_function_value): Rename to ...
23122         (s390_function_and_libcall_value): ... this.
23123         (s390_function_value): New function.
23124         (s390_libcall_value): New function.
23125         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
23126         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
23127         target macro definitions.
23128         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
23129
23130 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
23131
23132         * config/i386/freebsd64.h (CC1_SPEC): Define.
23133         * config/i386/linux64.h (CC1_SPEC): Define.
23134         * config/i386/x86-64.h (CC1_SPEC): Don't define.
23135
23136 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
23137
23138         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
23139         Remove.
23140         * config/stormy16/stormy16.c: Include reload.h.
23141         (xstormy16_memory_move_cost): New function.
23142         (TARGET_MEMORY_MOVE_COST): Define.
23143
23144 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
23145
23146         PR rtl-optimization/47925
23147         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
23148         with side effects.  Remove the more-specific check for volatile asms.
23149
23150 2011-03-02  Alan Modra  <amodra@gmail.com>
23151
23152         PR target/47935
23153         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
23154         toc relative addresses for valid offsets.
23155
23156 2011-03-01  Richard Guenther  <rguenther@suse.de>
23157
23158         PR tree-optimization/47890
23159         * tree-vect-loop.c (get_initial_def_for_induction): Set
23160         related stmt properly.
23161
23162 2011-03-01  Richard Guenther  <rguenther@suse.de>
23163
23164         PR lto/47924
23165         * lto-streamer.c (lto_record_common_node): Also register
23166         the canonical type.
23167
23168 2011-03-01  Richard Guenther  <rguenther@suse.de>
23169
23170         PR lto/46911
23171         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
23172         Do not stream DECL_ABSTRACT_ORIGIN.
23173         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
23174         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
23175         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23176         Do not stream DECL_ABSTRACT_ORIGIN.
23177         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
23178         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
23179
23180 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
23181
23182         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
23183         FUNCTION_VALUE_REGNO_P): Remove.
23184         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
23185         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
23186         Add 'outgoing' argument.
23187         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
23188         function.
23189         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23190         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23191
23192 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
23193
23194         PR debug/28047
23195         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
23196         (lookup_filename): Likewise.
23197         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
23198
23199 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
23200             Jakub Jelinek  <jakub@redhat.com>
23201
23202         PR middle-end/47893
23203         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
23204         (assign_stack_local_1): Change last argument type to int.
23205         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
23206         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
23207         don't record padding space into frame_space_list nor use those areas.
23208         (assign_stack_local): Adjust caller.
23209         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
23210         of assign_stack_local, pass 0 as last argument.
23211         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
23212         callers.
23213
23214 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
23215
23216         PR debug/47283
23217         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
23218         Use target address_mode and pointer_mode hooks instead of hardcoded
23219         Pmode and ptr_mode.  Handle some simple cases of extending if
23220         POINTERS_EXTEND_UNSIGNED < 0.
23221         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
23222         Call convert_debug_memory_address.
23223         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
23224         convert_debug_memory_address.
23225
23226         PR middle-end/46790
23227         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
23228         * configure: Regenerated.
23229         * config.in: Regenerated.
23230         * varasm.c (default_function_section): Return NULL
23231         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
23232
23233 2011-02-28  Martin Jambor  <mjambor@suse.cz>
23234
23235         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
23236         the description to match the printed values.
23237
23238 2011-02-28  Richard Guenther  <rguenther@suse.de>
23239
23240         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
23241         of the copied scope tree.
23242
23243 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23244
23245         * doc/extend.texi (Function Attributes): Avoid deeply (and
23246         wrongly) nested tables.
23247
23248 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
23249
23250         PR middle-end/47903
23251         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
23252         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
23253         r isn't op0 nor op1.
23254
23255 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
23256
23257         * config/avr/avr.md: Remove magic comment for emacs.
23258
23259 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
23260
23261         PR target/45261
23262         * config/avr/avr.c (avr_option_override): Use error on bad options.
23263         (avr_help): New function.
23264         (TARGET_HELP): Define.
23265
23266 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
23267
23268         PR target/42240
23269         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
23270         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
23271
23272 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
23273
23274         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
23275         (ARM Options): Ditto.
23276         (i386 and x86-64 Options): Ditto.
23277         (RX Options): Ditto.
23278         (SPARC Options): Ditto.
23279
23280 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
23281
23282         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
23283         FreeBSD 6 and later.  Generally use cpu generic.
23284
23285 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
23286
23287         * doc/cpp.texi: Update copyright years.
23288
23289 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
23290
23291         PR target/46898
23292         * config/lm32/lm32.md (ashrsi3): Added needed variable.
23293
23294 2011-02-25  Jon Beniston  <jon@beniston.com>
23295
23296         PR target/46898
23297         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
23298         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
23299         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
23300         (lm32_block_move_inline): Add type cast to remove warning.
23301         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
23302         (gen_int_relational): Move declarations to start of function.
23303
23304 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
23305
23306         PR tree-optimization/45470
23307         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
23308         can throw internally only.
23309         * tree-vect-stmts.c (vectorizable_call): Likewise.
23310
23311 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
23312
23313         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
23314         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
23315         * config/stormy16/stormy16-protos.h
23316         (xstormy16_preferred_reload_class): Remove.
23317         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
23318         static. Change 'rclass' argument and return type to reg_class_t.
23319         (TARGET_PREFERRED_RELOAD_CLASS,
23320         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
23321
23322 2011-02-24  Richard Guenther  <rguenther@suse.de>
23323
23324         * lto-streamer-in.c (input_bb): Do not find referenced vars
23325         in debug statements.
23326
23327 2011-02-23  Jason Merrill  <jason@redhat.com>
23328
23329         * common.opt (fabi-version): Document v5 and v6.
23330
23331 2011-02-23  Richard Guenther  <rguenther@suse.de>
23332
23333         PR tree-optimization/47849
23334         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
23335
23336 2011-02-23  Jie Zhang  <jie@codesourcery.com>
23337
23338         * opts-common.c (decode_cmdline_option): Print empty string
23339         argument as "" in decoded->orig_option_with_args_text.
23340         * gcc.c (execute): Print empty string argument as ""
23341         in the verbose output.
23342         (do_spec_1): Keep empty string argument.
23343
23344 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
23345
23346         * config.gcc: Declare score-* and crx-* obsolete.
23347
23348 2011-02-23  Jie Zhang  <jie@codesourcery.com>
23349
23350         PR rtl-optimization/47763
23351         * web.c (web_main): Ignore naked clobber when replacing register.
23352
23353 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
23354
23355         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
23356         Remove.
23357
23358 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
23359
23360         PR doc/47848
23361         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
23362
23363 2011-02-22  Mike Stump  <mikestump@comcast.net>
23364
23365         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
23366         assembler.
23367         * configure: Regenerate.
23368
23369 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
23370
23371         PR rtl-optimization/46002
23372         * ira-color.c (update_copy_costs): Change class intersection
23373         test to reg_class_contents[] test of 'hard_regno'.
23374
23375 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
23376
23377         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
23378         than Driver option.
23379         * config/hpux11.opt (mt): Likewise.
23380         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
23381         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
23382         * config/vax/elf.opt (mno-asm-pic): Likewise.
23383         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
23384
23385 2011-02-21  Mike Stump  <mikestump@comcast.net>
23386
23387         PR target/47822
23388         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
23389         tree so we can get save the type.
23390         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
23391         for CFString instead of trying to use past the end of the builtins.
23392         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
23393         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
23394         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
23395         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
23396         Rename to darwin_builtin_cfstring.
23397         (darwin_init_cfstring_builtins): Return the built type.
23398
23399 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
23400
23401         PR target/47840
23402         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
23403         (_mm256_insert_epi64): Use _mm_insert_epi64.
23404
23405 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
23406
23407         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23408         * config/stormy16/stormy16-protos.h
23409         (xstormy16_mode_dependent_address_p): Remove.
23410         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
23411         Make static. Change return type to bool. Change argument type to
23412         const_rtx. Remove dead code.
23413         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23414
23415 2011-02-21  Richard Guenther  <rguenther@suse.de>
23416
23417         PR lto/47820
23418         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
23419         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
23420         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
23421         TUs context.
23422         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23423         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
23424
23425 2011-02-20  Richard Guenther  <rguenther@suse.de>
23426
23427         PR lto/47822
23428         * tree.c (free_lang_data_in_decl): Clean builtins from
23429         the TU decl BLOCK_VARS.
23430
23431 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
23432
23433         PR debug/47620
23434         PR debug/47630
23435         * haifa-sched.c (fix_tick_ready): Skip tick computation
23436         for debug insns.
23437
23438 2011-02-19  Richard Guenther  <rguenther@suse.de>
23439
23440         PR lto/47647
23441         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
23442         Remove lazy BLOCK_VARS streaming.
23443         (lto_input_ts_block_tree_pointers): Likewise.
23444         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
23445
23446 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
23447
23448         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
23449
23450 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
23451
23452         * config/i386/biarch32.h, config/i386/mach.h,
23453         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
23454
23455 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
23456
23457         PR target/47800
23458         * config/i386/i386.md (peephole2 for shift and plus): Use
23459         operands[1] original mode in the first insn.
23460
23461 2011-02-18  Mike Stump  <mikestump@comcast.net>
23462
23463         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
23464
23465 2011-02-18  Jan Hubicka  <jh@suse.cz>
23466
23467         PR middle-end/47788
23468         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
23469         to zero when the function is not inlinable at all.
23470
23471 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23472
23473         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
23474         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
23475         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
23476         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
23477         * config/pa/t-pa64: Likewise.
23478         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
23479
23480 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
23481
23482         PR driver/47787
23483         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
23484
23485 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23486
23487         PR target/47792
23488         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
23489
23490 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
23491
23492         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
23493         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
23494         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
23495         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23496         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
23497         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
23498         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
23499         m32r_load_postinc_p, m32r_store_preinc_predec_p,
23500         m32r_legitimate_address_p): New functions.
23501         * config/m32r/constraints.md (constraint "S"): Don't use
23502         STORE_PREINC_PREDEC_P.
23503         (constraint "U"): Don't use LOAD_POSTINC_P.
23504
23505 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
23506
23507         PR rtl-optimization/46178
23508         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
23509         compute ira_hard_regno_cover_class[].
23510
23511 2011-02-18  Richard Guenther  <rguenther@suse.de>
23512
23513         PR lto/47798
23514         * lto-streamer.h (lto_global_var_decls): Declare.
23515         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
23516         statics for global var processing.
23517
23518 2011-02-18  Richard Guenther  <rguenther@suse.de>
23519
23520         PR tree-optimization/47737
23521         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
23522         edge dominance check.
23523
23524 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
23525
23526         PR debug/47780
23527         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
23528         avoid invalid rtx sharing.
23529
23530 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
23531
23532         * doc/cpp.texi (Obsolete Features): Add background on the
23533         origin of assertions.
23534
23535 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
23536
23537         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23538         objc_abi == 2.
23539         * config/darwin.c (output_objc_section_asm_op): Added support for
23540         ABI v1 and v2.
23541         (is_objc_metadata): New.
23542         (darwin_objc2_section): New.
23543         (darwin_objc1_section): New.
23544         (machopic_select_section): Added support for ABI v1 and v2.
23545         (darwin_emit_objc_zeroed): New.
23546         (darwin_output_aligned_bss): Detect objc metadata and treat it
23547         appropriately.
23548         (darwin_asm_output_aligned_decl_common): Same.
23549         (darwin_asm_output_aligned_decl_local): Same.
23550         * config/darwin-sections.def: Updated for ABI v1 and v2.
23551         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
23552         compiling Objective-C code for the NeXT runtime, default to using
23553         ABI version 0 for 32-bit, and version 2 for 64-bit.
23554
23555 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23556
23557         * common.opt (optimize_fast): New Variable.
23558         * opts.c (default_options_optimization): Use opts->x_optimize_fast
23559         instead of local variable ofast.
23560
23561 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
23562
23563         * doc/invoke.texi (fobjc-abi-version): Documented.
23564         (fobjc-nilcheck): Documented.
23565         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
23566         version.
23567
23568 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23569
23570         PR driver/47390
23571         * common.opt (export-dynamic): New Driver option.
23572         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
23573
23574 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23575
23576         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
23577
23578 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
23579             Jan Hubicka  <jh@suse.cz>
23580
23581         PR debug/47106
23582         PR debug/47402
23583         * cfgexpand.c (account_used_vars_for_block): Remove.
23584         (estimated_stack_frame_size): Use referenced vars.
23585         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
23586         that were referenced in the original function.  Test src_fn
23587         rather than cfun.  Drop redundant get_var_ann.
23588         (setup_one_parameter): Drop redundant get_var_ann.
23589         (declare_return_variable): Likewise.
23590         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
23591         (copy_arguments_for_versioning): Drop redundant get_var_ann.
23592         * ipa-inline.c (compute_inline_parameters): Do not compute
23593         disregard_inline_limits here.
23594         (compute_inlinable_for_current, pass_inlinable): New.
23595         (pass_inline_parameters): Require PROP_referenced_vars.
23596         * cgraphunit.c (cgraph_process_new_functions): Don't run
23597         compute_inline_parameters explicitly unless function is in SSA form.
23598         (cgraph_analyze_function): Set .disregard_inline_limits.
23599         * tree-sra.c (convert_callers): Compute inliner parameters
23600         only for functions already in SSA form.
23601
23602 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23603
23604         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
23605         -mlittle-endian-data.
23606
23607 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23608
23609         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
23610         -mno-fpu, not -fpu and -no-fpu.
23611         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
23612         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
23613
23614 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
23615
23616         PR target/43653
23617         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
23618         input reload with PLUS RTX.
23619
23620 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23621
23622         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
23623         of InverseVar(MDMX).
23624
23625 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23626
23627         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
23628         --m4-340.
23629
23630 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23631
23632         * config/mn10300/mn10300.opt (mno-crt0): New.
23633
23634 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23635
23636         * config/m68k/uclinux.opt (static-libc): New Driver option.
23637
23638 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23639
23640         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
23641
23642 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23643
23644         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
23645         %{muser-extend-enabled}.
23646
23647 2011-02-16  Richard Guenther  <rguenther@suse.de>
23648
23649         PR tree-optimization/47738
23650         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
23651         the TODO from tree_predictive_commoning.
23652
23653 2011-02-15  Jeff Law  <law@redhat.com>
23654
23655         Revert
23656         2011-01-25  Jeff Law  <law@redhat.com>
23657
23658         PR rtl-optimization/37273
23659         * ira-costs.c (scan_one_insn): Detect constants living in memory and
23660         handle them like argument loads from stack slots.  Do not double
23661         count memory for memory constants and argument loads from stack slots.
23662
23663 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
23664
23665         PR target/47755
23666         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
23667         mode for vector constants.  Remove code that checks for TImode.
23668
23669 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
23670
23671         PR debug/47106
23672         PR debug/47402
23673         * cgraph.h (compute_inline_parameters): Return void.
23674         * ipa-inline.c (compute_inline_parameters): Adjust.
23675
23676 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
23677
23678         PR debug/47106
23679         PR debug/47402
23680         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
23681         rather than decl.
23682         * cfgexpand.c (estimated_stack_frame_size): Likewise.
23683         * ipa-inline.c (compute_inline_parameters): Adjust.
23684
23685 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
23686
23687         PR debug/47106
23688         PR debug/47402
23689         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
23690         Adjust all users.  Pass FN to...
23691         * tree-flow-inline.h (first_referenced_var): ... this.  Add
23692         fn argument.
23693         * ipa-struct-reorg.c: Adjust.
23694         * tree-dfa.c: Adjust.
23695         * tree-into-ssa.c: Adjust.
23696         * tree-sra.c: Adjust.
23697         * tree-ssa-alias.c: Adjust.
23698         * tree-ssa-live.c: Adjust.
23699         * tree-ssa.c: Adjust.
23700         * tree-ssanames.c: Adjust.
23701         * tree-tailcall.c: Adjust.
23702
23703 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
23704
23705         PR debug/47106
23706         PR debug/47402
23707         * tree-flow.h (referenced_var_lookup): Add fn parameter.
23708         Adjust all callers.
23709         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
23710         * tree-flow-inline.h: Adjust.
23711         * gimple-pretty-print.c: Adjust.
23712         * tree-into-ssa.c: Adjust.
23713         * tree-ssa.c: Adjust.
23714         * cfgexpand.c: Adjust.
23715
23716 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
23717
23718         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
23719         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23720         (EXTRA_CONSTRAINT): Delete.
23721         * config/iq2000/constraints.md: New file.
23722         * config/iq2000/iq2000.md: Include it.
23723         (define_insn ""): Delete.
23724         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
23725         unsupported constraint letters from patterns.
23726         (call_value, call_value_internal1): Likewise.
23727         (call_value_multiple_internal1): Likewise.
23728
23729 2011-02-15  Nick Clifton  <nickc@redhat.com>
23730
23731         * config/mn10300/mn10300.c: Include tm-constrs.h.
23732         (struct liw_data): New data structure describing an LIW candidate
23733         instruction.
23734         (extract_bundle): Use struct liw_data.  Allow small integer
23735         operands for some instructions.
23736         (check_liw_constraints): Use struct liw_data.  Remove swapped
23737         parameter.  Add comments describing the checks.  Fix bug when
23738         assigning the source of liw1 to the source of liw2.
23739         (liw_candidate): Delete.  Code moved into extract_bundle.
23740         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
23741         before swapping.
23742         * config/mn10300/predicates.md (liw_operand): New predicate.
23743         Allows registers and small integer constants.
23744         * config/mn10300/constraints.md (O): New constraint.  Accetps
23745         integers in the range -8 to +7 inclusive.
23746         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
23747         for moving a small integer into a register.  Give this alternative
23748         LIW attributes.
23749         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
23750         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
23751         using the J,K,L and M constraints,
23752         (liw): Remove SI mode on second operands to allow for HI and QI
23753         mode values.
23754         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
23755         instruction.
23756
23757 2011-02-15  Richard Guenther  <rguenther@suse.de>
23758
23759         PR tree-optimization/47743
23760         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
23761         for a non-type-compatible VN lookup bail out.
23762
23763 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
23764
23765         * config/fr30/constraints.md: New file.
23766         * config/fr30/fr30.md: Include it.
23767         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
23768         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23769         (EXTRA_CONSTRAINT): Delete.
23770
23771 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
23772
23773         * config/frv/constraints.md: New file.
23774         * config/frv/predicates.md: Include it.
23775         * config/frv/frv.c (reg_class_from_letter): Delete.
23776         (frv_option_override): Don't initialize it.
23777         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
23778         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
23779         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
23780         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
23781         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
23782         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23783         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
23784         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
23785         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
23786         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
23787         (REG_CLASS_FROM_CONSTRAINT): Delete.
23788
23789 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
23790
23791         PR middle-end/47581
23792         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
23793         if frame size is 0 in a leaf function.
23794
23795 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23796
23797         PR pch/14940
23798         * config/alpha/host-osf.c: New file.
23799         * config/alpha/x-osf: New file.
23800         * config.host (alpha*-dec-osf*): Use it.
23801
23802 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
23803
23804         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23805         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
23806         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
23807         (rx_mode_dependent_address_p): ...this. Make static. Change argument
23808         type to const_rtx.
23809         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23810
23811 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
23812
23813         * config/stormy16/constraints.md: New file.
23814         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
23815         Use satisfies_constraint_Q and satisfies_constraint_R.
23816         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
23817         Delete.
23818         (xstormy16_legitiamte_address_p): Declare.
23819         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
23820         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23821         (EXTRA_CONSTRAINT): Delete.
23822         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
23823         Un-staticize.
23824         (xstormy16_extra_constraint_p): Delete.
23825
23826 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
23827
23828         PR tree-optimization/46494
23829         * loop-unroll.c (split_edge_and_insert): Adjust comment.
23830         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
23831         (pass_rtl_loop_done): Add TODO_verify_flow.
23832         * fwprop.c (pass_rtl_fwprop): Likewise.
23833         * modulo-sched.c (pass_sms): Likewise.
23834         * tree-ssa-dom.c (pass_dominator): Likewise.
23835         * tree-ssa-loop-ch.c (pass_ch): Likewise.
23836         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
23837         (pass_tree_loop_done): Likewise.
23838         * tree-ssa-pre.c (execute_pre): Likewise.
23839         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
23840         * tree-ssa-sink.c (pass_sink_code): Likewise.
23841         * tree-vrp.c (pass_vrp): Likewise.
23842
23843 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
23844
23845         * config/v850/constraints.md: New file.
23846         * config/v850/v850.md: Include it.
23847         * config/v850/predicates.md (reg_or_0_operand): Use
23848         satisfies_constraint_G.
23849         (special_symbolref_operand): Use satisfies_constraint_K.
23850         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
23851         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
23852         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
23853         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
23854         (EXTRA_CONSTRAINT): Delete.
23855         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
23856         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
23857         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
23858
23859 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
23860
23861         PR target/47696
23862         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
23863         description.
23864
23865 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
23866
23867         * config/mcore/constraints.md: New file.
23868         * config/mcore/mcore.md: Include it.
23869         * config/mcore/mcore.c (reg_class_from_letter): Delete.
23870         * config/mcore/mcore.h (reg_class_from_letter): Delete.
23871         (REG_CLASS_FROM_LETTER): Delete.
23872         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
23873         insn_const_int_ok_for_constraint.
23874         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
23875         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
23876         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23877         (EXTRA_CONSTRAINT): Delete.
23878
23879 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23880
23881         PR ada/41929
23882         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
23883         (IS_SIGHANDLER): Define.
23884         (sparc64_is_sighandler): New function, split off from
23885         sparc64_fallback_frame_state.
23886         (sparc_is_sighandler): New function, split off from
23887         sparc_fallback_frame_state.
23888         (sparc64_fallback_frame_state): Merge with ...
23889         (sparc_fallback_frame_state): ... this into ...
23890         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
23891         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
23892         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
23893         stack instead of hardcoded offsets.
23894
23895 2011-02-14  Andriy Gapon  <avg@freebsd.org>
23896
23897         PR target/45808
23898         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
23899
23900 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23901
23902         * configure: Regenerate.
23903
23904 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
23905
23906         PR driver/45731
23907         * gcc.c (asm_options): Correct spec matching --target-help.
23908
23909 2011-02-12  Martin Jambor  <mjambor@suse.cz>
23910
23911         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
23912         to gimple call error.
23913
23914 2011-02-12  Mike Stump  <mikestump@comcast.net>
23915
23916         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
23917         comments in backslash regions.
23918
23919 2011-02-12  Mike Stump  <mikestump@comcast.net>
23920             Jakub Jelinek  <jakub@redhat.com>
23921             Iain Sandoe  <iains@gcc.gnu.org>
23922
23923         PR target/47324
23924         * dwarf2out.c (output_cfa_loc): When required, apply the
23925         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
23926         (output_loc_sequence): Likewise.
23927         (output_loc_operands_raw): Likewise.
23928         (output_loc_sequence_raw): Likewise.
23929         (output_cfa_loc): Likewise.
23930         (output_loc_list): Suppress register number adjustment when
23931         calling output_loc_sequence()
23932         (output_die): Likewise.
23933
23934 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
23935
23936         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
23937         Remove macros.
23938         * config/xtensa/xtensa.c (xtensa_register_move_cost,
23939         xtensa_memory_move_cost): New functions.
23940         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
23941
23942 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
23943
23944         PR lto/47225
23945         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
23946         in the current directory.
23947         * configure: Rebuilt.
23948
23949 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
23950
23951         * config/darwin.c (darwin_override_options): Add a hunk missed
23952         from the commit of r168571.  Trim comment line lengths and
23953         correct indents of the preceding block.
23954
23955 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
23956
23957         * gcc.c (driver_handle_option): Concatenate the argument to -F with
23958         the switch.
23959
23960 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
23961
23962         * common.opt (nostartfiles): New Driver option.
23963
23964 2011-02-11  Xinliang David Li  <davidxl@google.com>
23965
23966         PR tree-optimization/47707
23967         * tree-chrec.c (convert_affine_scev): Keep type precision.
23968
23969 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
23970
23971         PR tree-optimization/47420
23972         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
23973
23974 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
23975
23976         PR rtl-optimization/47614
23977         * rtl.h (check_for_inc_dec): Declare.
23978         * dse.c (check_for_inc_dec): Externalize...
23979         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
23980         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
23981
23982 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
23983
23984         PR driver/47678
23985         * gcc.c (main): Do not compile inputs if there were errors in
23986         option handling.
23987         * opts-common.c (read_cmdline_option): Check for wrong language
23988         after other error checks.
23989
23990 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
23991
23992         * cgraph.c: Fix comment typos.
23993         * cgraph.h: Likewise.
23994         * cgraphunit.c: Likewise.
23995         * ipa-cp.c: Likewise.
23996         * ipa-inline.c: Likewise.
23997         * ipa-prop.c: Likewise.
23998         * ipa-pure-const.c: Likewise.
23999         * ipa-ref.c: Likewise.
24000         * ipa-reference.c: Likewise.
24001
24002 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
24003
24004         PR debug/47684
24005         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
24006
24007 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24008
24009         PR testsuite/47400
24010         * doc/sourcebuild.texi (Require Support): Document
24011         dg-require-ascii-locale.
24012
24013 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
24014
24015         * doc/lto.texi (Write summary): Fix missing parentheses.
24016
24017 2011-02-10  DJ Delorie  <dj@redhat.com>
24018
24019         * config/m32c/m32c.c (m32c_option_override): Disable
24020         -fcombine-stack-adjustments until flag value tracking and compare
24021         optimization can be rewritten.
24022
24023 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
24024
24025         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
24026         PROCESSOR_POWER7.
24027         (PROCESSOR_DEFAULT64): Likewise.
24028
24029 2011-02-10  Richard Henderson  <rth@redhat.com>
24030
24031         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
24032         change from 2011-02-03.
24033         * config/rx/rx.c (flags_from_code): Likewise.
24034         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
24035         is valid, n/pz otherwise.
24036         (rx_select_cc_mode): Return CCmode if Y is not zero.
24037
24038 2011-02-10  Richard Guenther  <rguenther@suse.de>
24039
24040         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
24041
24042 2011-02-10  Richard Guenther  <rguenther@suse.de>
24043
24044         PR tree-optimization/47677
24045         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
24046
24047 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
24048
24049         PR target/47665
24050         * combine.c (make_compound_operation): Only change shifts into
24051         multiplication for SCALAR_INT_MODE_P.
24052
24053 2011-02-10  Jie Zhang  <jie@codesourcery.com>
24054
24055         PR testsuite/47622
24056         Revert
24057         2011-02-05  Jie Zhang  <jie@codesourcery.com>
24058         PR debug/42631
24059         * web.c (entry_register): Don't clobber the number of the
24060         first uninitialized reference in used[].
24061
24062 2011-02-09  Richard Guenther  <rguenther@suse.de>
24063
24064         PR tree-optimization/47664
24065         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
24066         all edges again.
24067
24068 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
24069
24070         PR target/46481
24071         PR target/47032
24072         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
24073         PROCESSOR_POWER7.
24074         (PROCESSOR_DEFAULT64): Same.
24075         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
24076
24077 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24078
24079         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
24080
24081 2011-02-09  Martin Jambor  <mjambor@suse.cz>
24082
24083         PR middle-end/45505
24084         * tree-sra.c (struct access): New flags grp_scalar_read and
24085         grp_scalar_write.  Changed description of assignment read and write
24086         flags.
24087         (dump_access): Dump new flags, reorder all of them.
24088         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
24089         to detect multiple scalar reads.
24090         (analyze_access_subtree): Use the new scalar read write flags instead
24091         of the old flags.  Adjusted comments.
24092
24093 2011-02-08  DJ Delorie  <dj@redhat.com>
24094
24095         PR target/47548
24096         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
24097         patterns.
24098
24099 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24100
24101         * config/m68k/uclinux.opt: New.
24102         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
24103
24104 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24105
24106         * config/cris/elf.opt (sim): New Driver option.
24107
24108 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24109
24110         * config/xtensa/elf.opt: New.
24111         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
24112
24113 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24114
24115         * config/vax/elf.opt: New.
24116         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
24117
24118 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24119
24120         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
24121
24122 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24123
24124         * config/gnu-user.opt: New.
24125         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
24126         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
24127         *-*-uclinux*): Use gnu-user.opt.
24128
24129 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
24130
24131         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
24132         * config/i386/gnu.h (CPP_SPEC): Likewise.
24133
24134 2011-02-08  Ian Lance Taylor  <iant@google.com>
24135
24136         * common.opt (fcx-limited-range): Add SetByCombined flag.
24137         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
24138         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
24139         (fassociative-math, freciprocal-math): Likewise.
24140         (funsafe-math-optimizations): Likewise.
24141         * opth-gen.awk: Handle SetByCombined.
24142         * optc-gen.awk: Likewise.
24143         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
24144         (set_unsafe_math_optimizations_flags): Likewise.
24145         * doc/options.texi (Option properties): Document SetByCombined.
24146
24147 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24148
24149         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
24150         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
24151         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
24152         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
24153         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
24154
24155 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
24156
24157         PR tree-optimization/46834
24158         PR tree-optimization/46994
24159         PR tree-optimization/46995
24160         * graphite-sese-to-poly.c (used_outside_reduction): New.
24161         (detect_commutative_reduction): Call used_outside_reduction.
24162         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
24163         translate_scalar_reduction_to_array only when at least one
24164         loop-phi/close-phi tuple has been detected.
24165
24166 2011-02-08  Richard Guenther  <rguenther@suse.de>
24167
24168         PR middle-end/47639
24169         * tree-vect-generic.c (expand_vector_operations_1): Update
24170         stmts here ...
24171         (expand_vector_operations): ... not here.  Cleanup EH info
24172         and the CFG if required.
24173
24174 2011-02-08  Richard Guenther  <rguenther@suse.de>
24175
24176         PR tree-optimization/47641
24177         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
24178         require type compatibility.
24179
24180 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24181
24182         * gimple-low.c (lower_function_body): Don't remove the location of
24183         the return statement here.
24184         (lower_gimple_return): Do it here instead but only if the return
24185         statement is actually used twice.
24186
24187 2011-02-08  Richard Guenther  <rguenther@suse.de>
24188
24189         PR tree-optimization/47632
24190         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
24191         unused up_to_stmt parameter, return whether cfg-cleanup is
24192         necessary, remove EH info properly.
24193         (forward_propagate_into_gimple_cond): Adjust caller.
24194         (forward_propagate_into_cond): Likewise.
24195         (forward_propagate_comparison): Likewise.
24196         (tree_ssa_forward_propagate_single_use_vars): Make
24197         forward_propagate_comparison case similar to the two others.
24198
24199 2011-02-08  Nick Clifton  <nickc@redhat.com>
24200
24201         * config/mn10300/mn10300.opt (mliw): New command line option.
24202         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
24203         (liw_bundling): New automaton.
24204         (liw): New attribute.
24205         (liw_op): New attribute.
24206         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
24207         (movsi_internal): Add LIW attributes.
24208         (andsi3): Likewise.
24209         (iorsi3): Likewise.
24210         (xorsi3): Likewise.
24211         (addsi3): Separate register and immediate alternatives.
24212         Add LIW attributes.
24213         (subsi3): Likewise.
24214         (cmpsi): Likewise.
24215         (aslsi3): Likewise.
24216         (lshrsi3): Likewise.
24217         (ashrsi3): Likewise.
24218         (liw): New pattern.
24219         * config/mn10300/mn10300.c (liw_op_names): New
24220         (mn10300_print_operand): Handle 'W' operand descriptor.
24221         (extract_bundle): New function.
24222         (check_liw_constraints): New function.
24223         (liw_candidate): New function.
24224         (mn10300_bundle_liw): New function.
24225         (mn10300_reorg): New function.
24226         (TARGET_MACHINE_DEPENDENT_REORG): Define.
24227         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
24228         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
24229         __LIW__ or __NO_LIW__.
24230         * doc/invoke.texi: Describe the -mliw command line option.
24231
24232 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24233
24234         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
24235         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24236         pthread_mutex_unlock): Remove.
24237         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
24238         * config/pa/t-pa64: Likewise.
24239         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
24240         shared libc if not linking against libpthread.
24241         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
24242
24243 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
24244
24245         PR target/47558
24246         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
24247         on 10.6 and later to ensure that we always use the unwinder from
24248         the system.  Only add -no_compact_unwind when tarteting darwin
24249         10.6 or later.
24250
24251 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
24252
24253         PR target/46997
24254         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
24255         (vec_interleave_lowv2sf): Ditto.
24256         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
24257         (vec_extract_oddv2sf): Ditto.
24258
24259 2011-02-07  Mike Stump  <mikestump@comcast.net>
24260
24261         PR target/42333
24262         Add __ieee_divdc3 entry point.
24263         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
24264         entry point.
24265         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
24266         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
24267         * config/darwin.c (darwin_rename_builtins): Add.
24268         * config/darwin-protos.h (darwin_rename_builtins): Add.
24269
24270 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
24271
24272         PR target/47636
24273         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
24274         for the condition.
24275
24276 2011-02-07  Mike Stump  <mikestump@comcast.net>
24277
24278         * config/darwin.opt (mmacosx-version-min): Update default OS version.
24279
24280 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
24281
24282         PR target/47534
24283         * config/avr/libgcc.S (exit): Move .endfunc
24284
24285 2011-02-07  Richard Guenther  <rguenther@suse.de>
24286
24287         PR tree-optimization/47615
24288         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
24289         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
24290         (run_scc_vn): Initialize it.
24291         (visit_reference_op_load): Use it.
24292         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
24293
24294 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24295
24296         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
24297         DImode trapping arithmetic libfuncs.
24298
24299 2011-02-07  Richard Guenther  <rguenther@suse.de>
24300
24301         PR tree-optimization/47621
24302         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
24303         two duplicates ...
24304         (execute_update_addresses_taken): ... here.  Make it more
24305         conservative in what we accept.
24306
24307 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
24308
24309         * config/sparc/freebsd.h (ASM_SPEC): Define.
24310         * config/sparc/vxworks.h (ASM_SPEC): Define.
24311
24312 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
24313
24314         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
24315
24316 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
24317
24318         * doc/invoke.texi: Remove reference to compiler internals from
24319         user documentation.
24320
24321         * reg-notes.def: Remove REG_VALUE_PROFILE.
24322         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
24323
24324 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
24325
24326         PR middle-end/47610
24327         * varasm.c (default_section_type_flags): If decl is NULL,
24328         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
24329
24330 2011-02-05  Jie Zhang  <jie@codesourcery.com>
24331
24332         PR debug/42631
24333         * web.c (entry_register): Don't clobber the number of the
24334         first uninitialized reference in used[].
24335
24336 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
24337
24338         PR tree-optimization/46194
24339         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
24340         (build_classic_dist_vector_1): Do not represent classic distance
24341         vectors when the access functions are variating in different loops.
24342
24343 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
24344
24345         * config/mips/iris6.opt: New.
24346         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
24347
24348 2011-02-04  Richard Henderson  <rth@redhat.com>
24349             Steve Ellcey  <sje@cup.hp.com>
24350
24351         PR target/46997
24352         * config/ia64/predicates.md (mux1_brcst_element): New.
24353         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
24354         * config/ia64/ia64.c (ia64_unpack_assemble): New.
24355         (ia64_unpack_sign): New.
24356         (ia64_expand_unpack): Rewrite using new routines.
24357         (ia64_expand_widen_sum): Ditto.
24358         (ia64_expand_dot_prod_v8qi): Ditto.
24359         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
24360         routines, add endian check.
24361         (pmpy2_even): Rename from pmpy2_r, add endian check.
24362         (pmpy2_odd): Rename from pmpy2_l, add endian check.
24363         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
24364         (vec_widen_smult_hi_v4hi): Ditto.
24365         (vec_widen_umult_lo_v4hi): Ditto.
24366         (vec_widen_umult_hi_v4hi): Ditto.
24367         (mulv2si3): Change endian checks.
24368         (sdot_prodv4hi): Rewrite with new calls.
24369         (udot_prodv4hi): New.
24370         (vec_pack_ssat_v4hi): Add endian check.
24371         (vec_pack_usat_v4hi): Ditto.
24372         (vec_pack_ssat_v2si): Ditto.
24373         (max1_even): Rename from max1_r, add endian check.
24374         (max1_odd): Rename from max1_l, add endian check.
24375         (*mux1_rev): Format change.
24376         (*mux1_mix): Ditto.
24377         (*mux1_shuf): Ditto.
24378         (*mux1_alt): Ditto.
24379         (*mux1_brcst_v8qi): Use new predicate.
24380         (vec_extract_evenv8qi): Remove endian check.
24381         (vec_extract_oddv8qi): Ditto.
24382         (vec_interleave_lowv4hi): Format change.
24383         (vec_interleave_highv4hi): Ditto.
24384         (mix2_even): Rename from mix2_r, add endian check.
24385         (mix2_odd): Rename from mux2_l, add endian check.
24386         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
24387         (vec_extract_evenodd_helper): Format change.
24388         (vec_extract_evenv4hi): Remove endian check.
24389         (vec_extract_oddv4hi): Remove endian check.
24390         (vec_interleave_lowv2si): Format change.
24391         (vec_interleave_highv2si): Format change.
24392         (vec_initv2si): Remove endian check.
24393         (vecinit_v2si): Add endian check.
24394         (reduc_splus_v2sf): Add endian check.
24395         (reduc_smax_v2sf): Ditto.
24396         (reduc_smin_v2sf): Ditto.
24397         (vec_initv2sf): Remove endian check.
24398         (fpack): Add endian check.
24399         (fswap): Add endian check.
24400         (vec_interleave_highv2sf): Add endian check.
24401         (vec_interleave_lowv2sf): Add endian check.
24402         (fmix_lr): Add endian check.
24403         (vec_setv2sf): Format change.
24404         (*vec_extractv2sf_0_be): Use shift to extract operand.
24405         (*vec_extractv2sf_1_be): New.
24406         (vec_pack_trunc_v4hi): Add endian check.
24407         (vec_pack_trunc_v2si): Format change.
24408
24409 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
24410
24411         PR inline-asm/23200
24412         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
24413         do bb, locus and block comparison and disallow loads if it is not set.
24414         (stmt_is_replaceable_p): New function.
24415         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
24416         callers.
24417         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
24418         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
24419         SSA_NAME_DEF_STMT.
24420         * tree-flow.h (stmt_is_replaceable_p): New prototype.
24421
24422 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
24423
24424         * config/rs6000/xilinx.opt: New.
24425         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
24426
24427 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
24428
24429         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
24430
24431 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
24432
24433         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
24434         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
24435         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
24436         secondary_reload_info, xtensa_secondary_reload): Remove.
24437         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
24438         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
24439         (xtensa_preferred_reload_class): Make static. Change return and
24440         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
24441         Use CONST_DOUBLE_P predicate.
24442         (xtensa_preferred_output_reload_class): New function.
24443         (xtensa_secondary_reload): Make static.
24444
24445 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
24446
24447         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
24448         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
24449         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
24450
24451 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
24452
24453         PR middle-end/31490
24454         * output.h (SECTION_RELRO): Define.
24455         (SECTION_MACH_DEP): Adjust.
24456         (get_variable_section): New prototype.
24457         * varpool.c (varpool_finalize_named_section_flags): New function.
24458         (varpool_assemble_pending_decls): Call it.
24459         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
24460         * cgraphunit.c (cgraph_output_in_order): Call
24461         varpool_finalize_named_section_flags.
24462         * varasm.c (get_section): Allow section flags conflicts between
24463         relro and read-only sections if the section hasn't been declared yet.
24464         Set SECTION_OVERRIDE after diagnosing section type conflict.
24465         (get_variable_section): No longer static.
24466         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
24467         readonly sections that need relocations.
24468         (decl_readonly_section_1): New function.
24469         (decl_readonly_section): Use it.
24470
24471         Revert:
24472         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
24473                     Steve Ellcey  <sje@cup.hp.com>
24474
24475         PR middle-end/31490
24476         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
24477         if section attribute used.
24478
24479 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
24480
24481         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
24482         * config/darwin.c (SECTION_NO_ANCHOR): Define.
24483         (darwin_init_sections): Remove assertion.
24484
24485 2011-02-03  Nick Clifton  <nickc@redhat.com>
24486
24487         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
24488         lt and ge.
24489         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
24490         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
24491         instead of "n" and "pz".
24492         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
24493         CC_FLAG_S.
24494
24495 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
24496
24497         PR target/47312
24498         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
24499         fma, expand FMA_EXPR as fma{,f,l} call.
24500
24501         PR lto/47274
24502         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
24503         copy them into a unsigned char variable and pass address of it to
24504         lto_output_data_stream.
24505
24506         PR target/47564
24507         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
24508         around backend_init_target and lang_dependent_init_target calls.
24509         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
24510         (verify_cgraph_node): Don't call set_cfun here.  Use
24511         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
24512         Set error_found for incorrectly represented calls to thunks.
24513
24514 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
24515
24516         PR debug/43092
24517         PR rtl-optimization/43494
24518         * rtl.h (for_each_inc_dec_fn): New type.
24519         (for_each_inc_dec): Declare.
24520         * rtlanal.c (struct for_each_inc_dec_ops): New type.
24521         (for_each_inc_dec_find_inc_dec): New fn.
24522         (for_each_inc_dec_find_mem): New fn.
24523         (for_each_inc_dec): New fn.
24524         * dse.c (struct insn_size): Remove.
24525         (replace_inc_dec, replace_inc_dec_mem): Remove.
24526         (emit_inc_dec_insn_before): New fn.
24527         (check_for_inc_dec): Use it, along with for_each_inc_dec.
24528         (canon_address): Pass mem modes to cselib_lookup.
24529         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
24530         (cselib_lookup_from_insn): Likewise.
24531         (cselib_subst_to_values): Likewise.
24532         * cselib.c (find_slot_memmode): New var.
24533         (cselib_find_slot): New fn.  Use it instead of
24534         htab_find_slot_with_hash everywhere.
24535         (entry_and_rtx_equal_p): Use find_slot_memmode.
24536         (autoinc_split): New fn.
24537         (rtx_equal_for_cselib_p): Rename and implement in terms of...
24538         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
24539         Deal with autoinc.  Special-case recursion into MEMs.
24540         (cselib_hash_rtx): Likewise.
24541         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
24542         address and MEM modes.
24543         (cselib_subst_to_values): Add memmode, pass it on.
24544         Deal with autoinc.
24545         (cselib_lookup): Add memmode argument, pass it on.
24546         (cselib_lookup_from_insn): Add memmode.
24547         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
24548         (struct cselib_record_autoinc_data): New.
24549         (cselib_record_autoinc_cb): New fn.
24550         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
24551         mode to cselib_lookup.  Reset autoinced REGs here instead of...
24552         (cselib_process_insn): ... here.
24553         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
24554         to cselib_lookup.
24555         (add_uses): Likewise, also to cselib_subst_to_values.
24556         (add_stores): Likewise.
24557         * sched-deps.c (add_insn_mem_dependence): Pass mode to
24558         cselib_subst_to_values.
24559         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
24560         * gcse.c (do_local_cprop): Adjusted.
24561         * postreload.c (reload_cse_simplify_set): Adjusted.
24562         (reload_cse_simplify_operands): Adjusted.
24563         * sel-sched-dump (debug_mem_addr_value): Pass mode.
24564
24565 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
24566
24567         PR tree-optimization/45122
24568         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
24569         unsafe assumptions when there's more than one loop exit.
24570
24571 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24572
24573         PR target/47272
24574         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24575         Document using vector double with the load/store builtins, and
24576         that the load/store builtins always use Altivec instructions.
24577
24578         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
24579         to use altivec memory instructions, even on VSX.
24580         (vector_altivec_store_<mode>): Ditto.
24581
24582         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
24583         function.
24584
24585         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24586         V2DF, V2DI support to load/store overloaded builtins.
24587
24588         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
24589         altivec load/store builtins for V2DF/V2DI types.
24590
24591         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24592         set avoid indexed addresses on power6 if -maltivec.
24593         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
24594         vector_altivec_load/vector_altivec_store builtins.
24595         (altivec_expand_st_builtin): Ditto.
24596         (altivec_expand_builtin): Add VSX memory builtins.
24597         (rs6000_init_builtins): Add V2DI types to internal types.
24598         (altivec_init_builtins): Add support for V2DF/V2DI altivec
24599         load/store builtins.
24600         (rs6000_address_for_altivec): Insure memory address is appropriate
24601         for Altivec.
24602
24603         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
24604         vec_vsx_ld and vec_vsx_st.
24605         (vsx_store_<mode>): Ditto.
24606
24607         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
24608         variables to hold long long types for VSX vector memory builtins.
24609         (RS6000_BTI_unsigned_long_long): Ditto.
24610         (long_long_integer_type_internal_node): Ditti.
24611         (long_long_unsigned_type_internal_node): Ditti.
24612
24613         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
24614         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
24615         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
24616
24617         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
24618         short cuts.
24619         (vec_vsx_st): Ditto.
24620
24621 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
24622
24623         * config/pa/pa-hpux10.opt: New.
24624         * config/hpux11.opt (pthread): New Driver option.
24625         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
24626         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
24627
24628 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
24629
24630         * config/ia64/vms.opt: New.
24631         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
24632
24633 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
24634
24635         PR target/47580
24636         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
24637         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
24638         generator functions.
24639         (vsx_floatuns<VSi><mode>2): Ditto.
24640         (vsx_fix_trunc<mode><VSi>2): Ditto.
24641         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
24642
24643 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
24644
24645         * config/i386/djgpp.opt (posix): New Driver option.
24646
24647 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
24648
24649         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
24650         Move to the unsupported targets list.
24651
24652 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
24653
24654         PR rtl-optimization/47525
24655         * df-scan.c: Update copyright years.
24656         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
24657         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
24658
24659 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24660
24661         * config/i386/sysv4.h (TARGET_VERSION): Remove.
24662         (SUBTARGET_RETURN_IN_MEMORY): Remove.
24663         (ASM_OUTPUT_ASCII): Remove.
24664         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
24665
24666 2011-02-02  Jeff Law  <law@redhat.com>
24667
24668         PR middle-end/47543
24669         * reload.c (find_reloads_address): Handle reg+d address where both
24670         components are invalid by reloading the entire address.
24671
24672 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
24673             Richard Guenther  <rguenther@suse.de>
24674
24675         PR tree-optimization/40979
24676         PR bootstrap/47044
24677         * passes.c (init_optimization_passes): After LIM call copy_prop
24678         and DCE to clean up.
24679         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
24680
24681 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
24682
24683         PR tree-optimization/47576
24684         PR tree-optimization/47555
24685         * doc/invoke.texi (scev-max-expr-complexity): Documented.
24686         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
24687         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
24688         * tree-scalar-evolution.c (follow_ssa_edge): Use
24689         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
24690
24691 2011-02-02  Richard Guenther  <rguenther@suse.de>
24692
24693         PR tree-optimization/47566
24694         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
24695
24696 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
24697
24698         PR debug/47106
24699         PR debug/47402
24700         * tree-inline.c (declare_return_variable): Remove unused caller
24701         variable.
24702
24703         PR debug/47106
24704         PR debug/47402
24705         * tree-flow-inline.h (clear_is_used, is_used_p): New.
24706         * cfgexpand.c (account_used_vars_for_block): Use them.
24707         * tree-nrv.c (tree_nrv): Likewise.
24708         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
24709         (dump_scope_block): Likewise.
24710         (remove_unused_locals): Likewise.
24711
24712         PR debug/47106
24713         PR debug/47402
24714         * tree-inline.c (declare_return_variable): Add result decl to
24715         local decls only once.
24716         * gimple-low.c (record_vars_into): Mark newly-created variables
24717         as referenced.
24718
24719 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
24720
24721         PR debug/47498
24722         PR debug/47501
24723         PR debug/45136
24724         PR debug/45130
24725         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
24726         debug insns.
24727         (no_real_insns_p, schedule_block, set_priorities): Drop special
24728         treatment of boundary debug insns.
24729         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
24730         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
24731         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
24732         (BOUNDARY_DEBUG_INSN_P): Likewise.
24733         (SCHEDULE_DEBUG_INSN_P): Likewise.
24734         * sched-rgn.c (init_ready_list): Drop special treatment of
24735         boundary debug insns.
24736         * final.c (rest_of_clean_state): Clear notes' BB.
24737
24738 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24739
24740         * config/openbsd.opt (assert=): New Driver option.
24741
24742 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24743
24744         * config/i386/nto.opt: New.
24745         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
24746
24747 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24748
24749         * config/i386/netware.opt: New.
24750         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
24751
24752 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24753
24754         * config/interix.opt (posix): New Driver option.
24755
24756 2011-02-01  DJ Delorie  <dj@redhat.com>
24757
24758         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
24759
24760         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
24761         class for A0/A1.
24762
24763 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
24764
24765         PR tree-optimization/47561
24766         * toplev.c (process_options): Print the Graphite flags.  Add
24767         flag_loop_flatten to the list of options requiring Graphite.
24768
24769 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24770
24771         * config/i386/cygming.opt (posix): New Driver option.
24772
24773 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24774
24775         * config/arm/vxworks.opt: New.
24776         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
24777
24778 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24779
24780         * config/alpha/elf.opt: New.
24781         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
24782         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
24783
24784 2011-02-01  Richard Guenther  <rguenther@suse.de>
24785
24786         PR tree-optimization/47559
24787         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
24788         store-motion on references that can throw.
24789
24790 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
24791
24792         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
24793         * tree-pass.h (TDF_CSELIB): New macro.
24794         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
24795         cselib_lookup): Check for it rather than for TDF_DETAILS.
24796
24797 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
24798
24799         PR driver/47547
24800         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
24801         is HOST_BIT_BUCKET.
24802
24803         * opts.c (finish_options): Don't add x_aux_base_name if it is
24804         HOST_BIT_BUCKET.
24805
24806 2011-02-01  Richard Guenther  <rguenther@suse.de>
24807
24808         PR tree-optimization/47555
24809         Revert
24810         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
24811
24812         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
24813
24814 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
24815
24816         PR gcc/46692
24817         * config/lm32/t-lm32: Add multilib for all CPU options.
24818
24819 2011-02-01  Richard Guenther  <rguenther@suse.de>
24820
24821         PR tree-optimization/47541
24822         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
24823         sure to have a field at offset zero.
24824
24825 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
24826
24827         * config/arc/arc.opt (EB, EL): New Driver options.
24828
24829 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
24830
24831         * config/alpha/osf5.opt: New.
24832         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
24833
24834 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
24835
24836         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
24837
24838 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
24839
24840         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
24841         -floop-interchange.
24842         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
24843         is an alias of -floop-interchange and that it requires the
24844         Graphite infrastructure.
24845         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
24846         flag_loop_interchange based on the value of flag_tree_loop_linear.
24847
24848 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
24849             Richard Guenther  <rguenther@suse.de>
24850
24851         PR tree-optimization/47538
24852         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
24853         type instead of r1type, except for comparisons.  For right
24854         shifts and comparisons punt if there are mismatches in
24855         sizetype vs. non-sizetype types.
24856
24857 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24858
24859         * doc/sourcebuild.texi (Effective-Target Keywords): Document
24860         avx_runtime.
24861
24862 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24863
24864         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
24865         version number.
24866         * configure: Regenerate.
24867
24868 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24869
24870         * configure.ac (gcc_cv_ld_static_option): Define.
24871         (gcc_cv_ld_dynamic_option): Define.
24872         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
24873         instead.
24874         (HAVE_LD_STATIC_DYNAMIC): Update message.
24875         (LD_STATIC_OPTION): Define.
24876         (LD_DYNAMIC_OPTION): Define.
24877         * configure: Regenerate.
24878         * config.in: Regenerate.
24879         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
24880         HAVE_LD_STATIC_DYNAMIC]: Use them.
24881
24882 2011-01-31  Nick Clifton  <nickc@redhat.com>
24883
24884         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
24885         registers inside interrupt handlers if the handler is not a leaf
24886         function.
24887
24888 2011-01-31  Nick Clifton  <nickc@redhat.com>
24889
24890         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
24891         reg_renumber returning an INVALID_REGNUM.
24892
24893 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
24894
24895         PR libgcj/44341
24896         * doc/install.texi: Document host options discarded when cross
24897         configuring target libraries.
24898
24899 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
24900
24901         Reverted:
24902         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
24903         PR debug/45136
24904         PR debug/45130
24905         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
24906         debug insns.
24907         (no_real_insns_p, schedule_block, set_priorities): Drop special
24908         treatment of boundary debug insns.
24909         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
24910         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
24911         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
24912         (BOUNDARY_DEBUG_INSN_P): Likewise.
24913         (SCHEDULE_DEBUG_INSN_P): Likewise.
24914         * sched-rgn.c (init_ready_list): Drop special treatment of
24915         boundary debug insns.
24916         * final.c (rest_of_clean-state): Clear notes' BB.
24917
24918 2011-01-31  Alan Modra  <amodra@gmail.com>
24919
24920         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
24921         toc relative expressions as we do in print_operand_address.
24922
24923 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
24924
24925         * doc/extend.texi: Follow spelling conventions.
24926         * doc/invoke.texi: Fix a typo.
24927
24928 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
24929
24930         * config/hpux11.opt: New.
24931         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
24932         ia64*-*-hpux*): Use hpux11.opt.
24933
24934 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
24935
24936         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
24937         to tmake_file.
24938
24939 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
24940
24941         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
24942         support sites.
24943
24944 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
24945
24946         * doc/install.texi (Binaries): Remove outdated reference for
24947         Motorola 68HC11/68HC12 downloads.
24948
24949 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
24950
24951         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
24952         Drepper's paper.
24953
24954 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
24955
24956         PR bootstrap/47147
24957         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
24958         used by NetBSD.
24959
24960 2011-01-28  Ahmad Sharif  <asharif@google.com>
24961
24962         * value-prof.c (check_counter): Corrected error message.
24963
24964 2011-01-29  Jie Zhang  <jie@codesourcery.com>
24965
24966         * config/arm/arm.c (arm_legitimize_reload_address): New.
24967         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
24968         arm_legitimize_reload_address.
24969         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
24970
24971 2011-01-28  Ian Lance Taylor  <iant@google.com>
24972
24973         * godump.c (go_define): Ignore macros whose definitions include
24974         two adjacent operands.
24975
24976 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
24977
24978         PR target/42894
24979         * varasm.c (force_const_mem): Store copy of x in desc->constant
24980         instead of x itself.
24981         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
24982         itself into REG_EQUAL note.
24983
24984 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
24985
24986         * config/freebsd.opt (posix, rdynamic): New Driver options.
24987
24988 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24989
24990         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
24991         -Bstatic/-Bdynamic.
24992         * configure: Regenerate.
24993
24994 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
24995
24996         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
24997         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
24998
24999 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
25000
25001         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
25002         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
25003         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
25004         (s390_preferred_reload_class): Make static. Change return and
25005         'rclass' argument type to reg_class_t.
25006
25007 2011-01-27  Jan Hubicka  <jh@suse.cz>
25008
25009         PR middle-end/46949
25010         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
25011         (process_function_and_variable_attributes): Check defined weakrefs.
25012
25013 2011-01-27  Martin Jambor  <mjambor@suse.cz>
25014
25015         PR tree-optimization/47228
25016         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
25017         build_ref_for_offset.
25018
25019 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25020
25021         * config/spu/spu-elf.h (ASM_SPEC): Remove.
25022
25023 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
25024
25025         PR rtl-optimization/46856
25026         * postreload.c (reload_combine_recognize_const_pattern): Do not
25027         separate cc0 setter and user on cc0 targets.
25028
25029 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
25030
25031         PR c/43082
25032         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
25033         passed a VOID_TYPE expression, immediately emit an error and
25034         return error_mark_node.
25035
25036 2011-01-26  Jeff Law  <law@redhat.com>
25037
25038         PR rtl-optimization/47464
25039         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
25040         rather than may_trap_p as needed.
25041
25042 2011-01-26  DJ Delorie  <dj@redhat.com>
25043
25044         PR rtl-optimization/46878
25045         * combine.c (insn_a_feeds_b): Check for the implicit cc0
25046         setter/user dependency as well.
25047
25048 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
25049
25050         PR rtl-optimization/44469
25051         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
25052         after removing trivially dead basic blocks.
25053
25054 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25055
25056         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
25057         * config/frv/frv.h (LINK_SPEC): Likewise.
25058         * config/i386/netware.h (LINK_SPEC): Likewise.
25059         * config/m68k/linux.h (ASM_SPEC): Likewise.
25060         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
25061         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
25062         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25063         * config/sparc/linux.h (ASM_SPEC): Likewise.
25064         * config/sparc/linux64.h (ASM_SPEC): Likewise.
25065         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25066
25067 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25068
25069         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
25070         * config/frv/frv.h (ASM_SPEC): Likewise.
25071         * config/m68k/linux.h (ASM_SPEC): Likewise.
25072         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
25073         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
25074         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25075         * config/sparc/linux.h (ASM_SPEC): Likewise.
25076         * config/sparc/linux64.h (ASM_SPEC): Likewise.
25077         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25078
25079 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25080
25081         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
25082         * config/frv/frv.h (LINK_SPEC): Likewise.
25083         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
25084
25085 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
25086
25087         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
25088         * config/frv/frv.h (ASM_SPEC): Likewise.
25089         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
25090         * config/m68k/linux.h (ASM_SPEC): Likewise.
25091         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
25092         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
25093         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25094         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
25095         * config/sparc/linux.h (ASM_SPEC): Likewise.
25096         * config/sparc/linux64.h (ASM_SPEC): Likewise.
25097         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25098         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
25099
25100 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
25101
25102         PR target/46997
25103         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
25104         (*mux2): Ditto.
25105         (vec_extract_evenodd_help): Ditto.
25106         (vec_extract_evenv4hi): Ditto.
25107         (vec_extract_oddv4hi): Ditto.
25108         (vec_interleave_lowv2si): Ditto.
25109         (vec_interleave_highv2si): Ditto.
25110         (vec_extract_evenv2si): Ditto.
25111         (vec_extract_oddv2si: Ditto.
25112         (vec_pack_trunc_v2si): Ditto.
25113
25114 2011-01-22  Jan Hubicka  <jh@suse.cz>
25115
25116         PR target/47237
25117         * cgraph.h (cgraph_local_info): New field can_change_signature.
25118         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
25119         signature can change.
25120         (ipcp_estimate_growth): Call sequence simplify only if calle signature
25121         can change.
25122         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
25123         (cgraph_function_versioning): We can not change signature of functions
25124         that don't allow that.
25125         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
25126         (lto_input_node): Likewise.
25127         * ipa-inline.c (compute_inline_parameters): Compute
25128         local.can_change_signature.
25129         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
25130         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
25131         functions that can not change signature.
25132         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
25133         init_cumulative_args): Do not use local calling conventions
25134         for functions that can not change signature.
25135
25136 2011-01-22  Jan Hubicka  <jh@suse.cz>
25137
25138         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
25139
25140 2011-01-26  Richard Guenther  <rguenther@suse.de>
25141
25142         PR tree-optimization/47190
25143         * cgraphunit.c (process_common_attributes): New function.
25144         (process_function_and_variable_attributes): Use it.
25145
25146 2011-01-26  Richard Guenther  <rguenther@suse.de>
25147
25148         PR lto/47423
25149         * cgraphbuild.c (record_eh_tables): Record reference to personality
25150         function.
25151
25152 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
25153
25154         PR debug/45454
25155         * sel-sched.c (moveup_expr): Don't let debug insns prevent
25156         non-debug insns from moving up.
25157
25158 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
25159
25160         PR target/40125
25161         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
25162         t-dlldir{,-x} fragment for build and add it to tmake_file.
25163         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
25164         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
25165         * config/i386/t-dlldir: New file.
25166         (SHLIB_DLLDIR): Define.
25167         * config/i386/t-dlldir-x: New file.
25168         (SHLIB_DLLDIR): Define.
25169         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
25170         (SHLIB_INSTALL): Use it.
25171
25172 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
25173
25174         PR target/47246
25175         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
25176         lower bound of the allowed Thumb-2 coprocessor load/store
25177         index range to -256. Add explaining comment.
25178
25179 2011-01-25  Ian Lance Taylor  <iant@google.com>
25180
25181         * godump.c (go_define): Improve lexing of macro expansion to only
25182         accept expressions which match Go spec.
25183
25184 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
25185
25186         PR c++/43601
25187         * tree.c (handle_dll_attribute): Handle it.
25188         * doc/extend.texi (@item dllexport): Mention it.
25189         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
25190
25191 2011-01-25  Ian Lance Taylor  <iant@google.com>
25192
25193         PR tree-optimization/26854
25194         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
25195         (decl_jump_unsafe): Move higher in file, with no other change.
25196         (bind): Set has_jump_unsafe_decl if appropriate.
25197         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
25198         (check_earlier_gotos): Likewise.
25199         (c_check_switch_jump_warnings): Likewise.
25200
25201 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
25202
25203         * doc/invoke.texi (Warning Options): Add missing hyphen.
25204         (-fprofile-dir): Minor grammatical fixes.
25205         (-fbranch-probabilities): Likewise.
25206
25207 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
25208
25209         PR debug/45136
25210         PR debug/45130
25211         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25212         debug insns.
25213         (no_real_insns_p, schedule_block, set_priorities): Drop special
25214         treatment of boundary debug insns.
25215         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25216         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
25217         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25218         (BOUNDARY_DEBUG_INSN_P): Likewise.
25219         (SCHEDULE_DEBUG_INSN_P): Likewise.
25220         * sched-rgn.c (init_ready_list): Drop special treatment of
25221         boundary debug insns.
25222         * final.c (rest_of_clean-state): Clear notes' BB.
25223
25224 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25225
25226         * Makefile.in (LAMBDA_H): Removed.
25227         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
25228         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
25229         lambda-trans.o, and tree-loop-linear.o.
25230         (lto-symtab.o): Remove dependence on LAMBDA_H.
25231         (tree-loop-linear.o): Remove rule.
25232         (lambda-mat.o): Same.
25233         (lambda-trans.o): Same.
25234         (lambda-code.o): Same.
25235         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
25236         (tree-vect-slp.o): Same.
25237         * hwint.h (gcd): Moved here.
25238         (least_common_multiple): Same.
25239         * lambda-code.c: Removed.
25240         * lambda-mat.c: Removed.
25241         * lambda-trans.c: Removed.
25242         * lambda.h: Removed.
25243         * tree-loop-linear.c: Removed.
25244         * lto-symtab.c: Do not include lambda.h.
25245         * omega.c (gcd): Removed.
25246         * passes.c (init_optimization_passes): Remove pass_linear_transform.
25247         * tree-data-ref.c (print_lambda_vector): Moved here.
25248         (lambda_vector_copy): Same.
25249         (lambda_matrix_copy): Same.
25250         (lambda_matrix_id): Same.
25251         (lambda_vector_first_nz): Same.
25252         (lambda_matrix_row_add): Same.
25253         (lambda_matrix_row_exchange): Same.
25254         (lambda_vector_mult_const): Same.
25255         (lambda_vector_negate): Same.
25256         (lambda_matrix_row_negate): Same.
25257         (lambda_vector_equal): Same.
25258         (lambda_matrix_right_hermite): Same.
25259         * tree-data-ref.h: Do not include lambda.h.
25260         (lambda_vector): Moved here.
25261         (lambda_matrix): Same.
25262         (dependence_level): Same.
25263         (lambda_transform_legal_p): Removed declaration.
25264         (lambda_collect_parameters): Same.
25265         (lambda_compute_access_matrices): Same.
25266         (lambda_vector_gcd): Same.
25267         (lambda_vector_new): Same.
25268         (lambda_vector_clear): Same.
25269         (lambda_vector_lexico_pos): Same.
25270         (lambda_vector_zerop): Same.
25271         (lambda_matrix_new): Same.
25272         * tree-flow.h (least_common_multiple): Removed declaration.
25273         * tree-parloops.c (lambda_trans_matrix): Moved here.
25274         (LTM_MATRIX): Same.
25275         (LTM_ROWSIZE): Same.
25276         (LTM_COLSIZE): Same.
25277         (LTM_DENOMINATOR): Same.
25278         (lambda_trans_matrix_new): Same.
25279         (lambda_matrix_vector_mult): Same.
25280         (lambda_transform_legal_p): Same.
25281         * tree-pass.h (pass_linear_transform): Removed declaration.
25282         * tree-ssa-loop.c (tree_linear_transform): Removed.
25283         (gate_tree_linear_transform): Removed.
25284         (pass_linear_transform): Removed.
25285         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
25286         flag_loop_interchange.
25287
25288 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
25289
25290         PR tree-optimization/47265
25291         PR tree-optimization/47443
25292         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
25293         if name still has some uses.
25294
25295 2011-01-25  Martin Jambor  <mjambor@suse.cz>
25296
25297         PR tree-optimization/47382
25298         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
25299         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
25300
25301 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
25302
25303         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
25304         sjlj_except_unwind_info.
25305
25306 2011-01-25  Richard Guenther  <rguenther@suse.de>
25307
25308         PR tree-optimization/47426
25309         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
25310         visible functions results escape.
25311
25312 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
25313
25314         PR target/45701
25315         * config/arm/arm.c (any_sibcall_uses_r3): New function.
25316         (arm_get_frame_offsets): Use it.
25317
25318 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25319             Jakub Jelinek  <jakub@redhat.com>
25320
25321         PR tree-optimization/47271
25322         * tree-if-conv.c (bb_postdominates_preds): New.
25323         (if_convertible_bb_p): Call bb_postdominates_preds.
25324         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
25325         (predicate_scalar_phi): Call bb_postdominates_preds.
25326
25327 2011-01-25  Nick Clifton  <nickc@redhat.com>
25328
25329         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
25330         * config/rx/rx.c (rx_function_value): Likewise.
25331         (rx_promote_function_mode): Likewise.
25332         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
25333         in order to make it legitimate.
25334         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
25335         make sure that the first operand is the same as the result register.
25336         (addsi3_unspec): Delete.
25337         (subdi3): Do not accept immediate operands.
25338         (subdi3_internal): Likewise.
25339
25340 2011-01-25  Jeff Law  <law@redhat.com>
25341
25342         PR rtl-optimization/37273
25343         * ira-costs.c (scan_one_insn): Detect constants living in memory and
25344         handle them like argument loads from stack slots.  Do not double
25345         count memory for memory constants and argument loads from stack slots.
25346
25347 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
25348
25349         PR tree-optimization/47427
25350         PR tree-optimization/47428
25351         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
25352         coalesce if the new root var would be TREE_READONLY.
25353
25354 2011-01-25  Richard Guenther  <rguenther@suse.de>
25355
25356         PR middle-end/47414
25357         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
25358         correct type for TBAA.
25359
25360 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25361
25362         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
25363         (close_phi_written_to_memory): Call for_each_index with
25364         dr_indices_valid_in_loop.
25365
25366 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25367
25368         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
25369         when it is initialized.
25370
25371 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25372
25373         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
25374         call to graphite_find_data_references_in_stmt.
25375         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
25376         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
25377         call to graphite_find_data_references_in_stmt.
25378         (analyze_drs_in_stmts): Same.
25379         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
25380         in which the scalar analysis of indices is performed.
25381         (create_data_ref): Same.  Update call to dr_analyze_indices.
25382         (find_data_references_in_stmt): Update call to create_data_ref.
25383         (graphite_find_data_references_in_stmt): Same.
25384         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
25385         declaration.
25386         (create_data_ref): Same.
25387         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
25388         call to create_data_ref.
25389
25390 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25391
25392         * graphite-sese-to-poly.c (build_poly_scop): Move
25393         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
25394
25395 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25396
25397         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
25398         VAR_DECL, PARM_DECL, and RESULT_DECL.
25399
25400 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25401
25402         * graphite-dependences.c (reduction_dr_1): Allow several reductions
25403         in a reduction PBB.
25404         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
25405         that have already been marked as PBB_IS_REDUCTION.
25406
25407 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25408
25409         * graphite-scop-detection.c (same_close_phi_node): New.
25410         (remove_duplicate_close_phi): New.
25411         (make_close_phi_nodes_unique): New.
25412         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
25413
25414 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25415
25416         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
25417         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
25418         of both data references to be the same.
25419
25420 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25421
25422         * graphite-dependences.c (build_lexicographical_constraint): Remove
25423         the gdim parameter.
25424         (build_lexicographical_constraint): Adjust call to
25425         ppl_powerset_is_empty.
25426         (dependence_polyhedron): Same.
25427         (graphite_legal_transform_dr): Same.
25428         (graphite_carried_dependence_level_k): Same.
25429         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
25430         parameter.
25431         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
25432
25433 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25434
25435         * graphite-sese-to-poly.c
25436         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
25437         (close_phi_written_to_memory): New.
25438         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
25439         and unshare_expr.
25440
25441 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25442
25443         * doc/install.texi: Update the expected version number of PPL to 0.11.
25444         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
25445         #if PPL_VERSION_MINOR < 11.
25446
25447 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25448
25449         * graphite-dependences.c: Include graphite-cloog-util.h.
25450         (new_poly_ddr): Inlined into dependence_polyhedron.
25451         (free_poly_ddr): Moved close by new_poly_ddr.
25452         (dependence_polyhedron_1): Renamed dependence_polyhedron.
25453         Early return NULL when ppl_powerset_is_empty returns true.
25454         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
25455         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
25456         (graphite_legal_transform_dr): Call new_poly_ddr.
25457         (graphite_carried_dependence_level_k): Same.
25458         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
25459         (dot_transformed_deps_stmt_1): Removed.
25460         (dot_deps_stmt_1): Call dot_deps_stmt_2.
25461         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
25462         (dot_deps_1): Call dot_deps_2.
25463         * Makefile.in (graphite-dependences.o): Add missing dependence on
25464         graphite-cloog-util.h.
25465
25466 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25467
25468         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
25469         (build_lexicographical_constraint): Same.
25470         (dependence_polyhedron_1): Same.
25471         (graphite_legal_transform_dr): Same.
25472         (graphite_carried_dependence_level_k): Same.
25473         * graphite-ppl.c (ppl_powerset_is_empty): New.
25474         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
25475         * tree-data-ref.c (dump_data_reference): Print the basic block index.
25476
25477 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25478
25479         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
25480         the "a followed by b" relation and document it.
25481
25482 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25483
25484         * graphite-dependences.c (build_lexicographical_constraint): Stop the
25485         iteration when the bag of constraints is empty.
25486
25487 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25488
25489         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
25490
25491 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25492
25493         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
25494         nest and two loop depths as parameters.
25495         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
25496         lst_perfect_nestify.
25497
25498 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25499
25500         * graphite-dependences.c (print_pddr): Call
25501         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
25502
25503 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25504
25505         * graphite-ppl.c (debug_gmp_value): New.
25506         * graphite-ppl.h (debug_gmp_value): Declared.
25507
25508 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
25509
25510         * doc/install.texi: Document availability of cloog-0.16.
25511
25512 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
25513
25514         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
25515         invalid postdominance info.
25516
25517 2011-01-24  Jan Hubicka  <jh@suse.cz>
25518
25519         PR c/21659
25520         * doc/extend.texi (weak pragma): Drop claim that it must
25521         appear before definition.
25522         * varasm.c (merge_weak, declare_weak): Only sanity check
25523         that DECL is not output at a time it is declared weak.
25524
25525 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
25526
25527         * machmode.def: Fixed comments.
25528
25529 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
25530
25531         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
25532
25533 2011-01-24  Paul Koning  <ni1d@arrl.net>
25534
25535         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
25536         WORDS_BIG_ENDIAN.
25537
25538 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
25539
25540         PR target/46519
25541         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
25542         (block_info): Add scanned and prev.
25543         (move_or_delete_vzeroupper_2): Return if the basic block
25544         has been scanned and the upper 128bit state is unchanged
25545         from the last scan.
25546         (move_or_delete_vzeroupper_1): Return true if the exit
25547         state is changed.
25548         (move_or_delete_vzeroupper): Visit basic blocks using the
25549         work-list based algorithm based on vt_find_locations in
25550         var-tracking.c.
25551
25552         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
25553
25554 2011-01-24  Nick Clifton  <nickc@redhat.com>
25555
25556         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
25557         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
25558         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
25559         then define __v850e1__.
25560         * doc/invoke.texi: Document -mv850es.
25561
25562 2011-01-24  Richard Henderson  <rth@redhat.com>
25563
25564         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
25565         compound unordered comparisons.
25566         * config/rx/rx.c (rx_split_fp_compare): Remove.
25567         * config/rx/rx-protos.h: Update.
25568         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
25569         (cbranchsf4): Don't call rx_split_fp_compare.
25570         (*cbranchsf4): Use rx_split_cbranch.
25571         (*cmpsf): Don't accept "i" constraint.
25572         (*conditional_branch): Only valid after reload.
25573         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
25574
25575 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
25576
25577         PR target/47385
25578         * config/rs6000/altivec.md (vector constant splitters): Add
25579         support for creating vector single precision constants if -mvsx is
25580         used and we would create the constant using Altivec primitives.
25581
25582 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
25583             Richard Sandiford  <rdsandiford@googlemail.com>
25584
25585         PR rtl-optimization/47166
25586         * reload1.c (emit_reload_insns): Disable the spill_reg_store
25587         mechanism for PRE_MODIFY and POST_MODIFY.
25588         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
25589         reloadreg.
25590
25591 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
25592
25593         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
25594
25595 2011-01-22  Jan Hubicka  <jh@suse.cz>
25596
25597         PR lto/47333
25598         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
25599
25600 2011-01-22  Jan Hubicka  <jh@suse.cz>
25601
25602         PR tree-optimization/43884
25603         PR lto/44334
25604         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
25605         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
25606
25607 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
25608
25609         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
25610         * config/s390/s390.c (s390_register_move_cost,
25611         s390_memory_move_cost): New.
25612         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
25613
25614 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25615
25616         PR middle-end/47401
25617         * except.c (sjlj_assign_call_site_values): Move setting the
25618         crtl->uses_eh_lsda flag to ...
25619         (sjlj_mark_call_sites): ... here.
25620         (sjlj_emit_function_enter): Support NULL dispatch label.
25621         (sjlj_build_landing_pads): In a function with no landing pads
25622         that still has must-not-throw regions, generate code to register
25623         a personality function with empty LSDA.
25624
25625 2011-01-21  Richard Henderson  <rth@redhat.com>
25626
25627         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
25628
25629         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
25630
25631         * compare-elim.c: New file.
25632         * Makefile.in (OBJS-common): Add it.
25633         (compare-elim.o): New.
25634         * common.opt (fcompare-elim): New.
25635         * opts.c (default_options_table): Add OPT_fcompare_elim.
25636         * tree-pass.h (pass_compare_elim_after_reload): New.
25637         * passes.c (init_optimization_passes): Add it.
25638         * recog.h: Protect against re-inclusion.
25639         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
25640         * doc/invoke.texi (-fcompare-elim): Document it.
25641         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
25642         * doc/tm.texi: Rebuild.
25643
25644 2011-01-22  Nick Clifton  <nickc@redhat.com>
25645
25646         * config/rx/rx.md (cstoresf4): Pass comparison operator to
25647         rx_split_fp_compare.
25648
25649 2011-01-22  Nick Clifton  <nickc@redhat.com>
25650
25651         * config/rx/rx.md (UNSPEC_CONST): New.
25652         (deallocate_and_return): Wrap the amount popped off the stack in
25653         an UNSPEC_CONST in order to stop it being rejected by
25654         -mmax-constant-size.
25655         (pop_and_return): Add a "(return)" rtx.
25656         (call): Drop the immediate operand.
25657         (call_internal): Likewise.
25658         (call_value): Likewise.
25659         (call_value_internal): Likewise.
25660         (sibcall_internal): Likewise.
25661         (sibcall_value_internal): Likewise.
25662         (sibcall): Likewise.  Generate an explicit call using
25663         sibcall_internal.
25664         (sibcall_value): Likewise.
25665         (mov<>): FAIL if a constant operand is not legitimate.
25666         (addsi3_unpsec): New pattern.
25667
25668         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
25669         (ok_for_max_constant): New function.
25670         (gen_safe_add): New function.
25671         (rx_expand_prologue): Use gen_safe_add.
25672         (rx_expand_epilogue): Likewise.
25673         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
25674         UNSPEC CONSTs.
25675
25676 2011-01-21  Jeff Law  <law@redhat.com>
25677
25678         PR tree-optimization/47053
25679         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
25680         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
25681         statements are deleted.
25682         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
25683         is nonempty, then purge dead edges and cleanup the CFG.
25684
25685 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
25686
25687         PR debug/47402
25688         Temporarily revert:
25689         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
25690         PR debug/47106
25691         * tree-dfa.c (create_var_ann): Mark variable as used.
25692
25693 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
25694
25695         PR middle-end/45566
25696         * except.c (convert_to_eh_region_ranges): Emit queued no-region
25697         notes from other section in hot/cold partitioning even if
25698         last_action is -3.  Increment call_site_base.
25699
25700         PR rtl-optimization/47366
25701         * fwprop.c (forward_propagate_into): Return bool.  If
25702         any changes are made, -fnon-call-exceptions is used and
25703         REG_EH_REGION note is present, call purge_dead_edges
25704         and return true if it purged anything.
25705         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
25706         any EH edges were purged.
25707
25708 2011-01-21  Jeff Law  <law@redhat.com>
25709
25710         PR rtl-optimization/41619
25711         * caller-save.c (setup_save_areas): Break out code to determine
25712         which hard regs are live across calls by examining the reload chains
25713         so that it is always used.
25714         Eliminate code which checked REG_N_CALLS_CROSSED.
25715
25716 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
25717
25718         PR tree-optimization/47355
25719         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
25720         NOP has non-debug uses beyond PHIs in new_bb.
25721
25722 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
25723
25724         PR debug/47106
25725         * cfgexpand.c (account_used_vars_for_block): Only account vars
25726         that are annotated as used.
25727         (estimated_stack_frame_size): Don't set TREE_USED.
25728         * tree-dfa.c (create_var_ann): Mark variable as used.
25729
25730 2011-01-21  Richard Guenther  <rguenther@suse.de>
25731
25732         PR middle-end/47395
25733         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
25734
25735 2011-01-21  Richard Guenther  <rguenther@suse.de>
25736
25737         PR tree-optimization/47365
25738         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
25739         (vn_reference_lookup_pieces): Adjust.
25740         (vn_reference_lookup): Likewise.
25741         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
25742         (vn_reference_lookup_3): Only look through kills if in
25743         VN_WALKREWRITE mode.
25744         (vn_reference_lookup_pieces): Adjust.
25745         (vn_reference_lookup): Likewise.
25746         (visit_reference_op_load): Likewise.
25747         (visit_reference_op_store): Likewise.
25748         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
25749         (compute_avail): Likewise.
25750         (eliminate): Likewise.
25751
25752 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
25753
25754         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
25755         DECL_IGNORED_P non-reg vars if they are used.
25756
25757         PR tree-optimization/47391
25758         * varpool.c (const_value_known_p): Return false if
25759         decl is volatile.
25760
25761 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
25762
25763         PR bootstrap/47215
25764         * config/i386/i386.c (ix86_local_alignment): Handle
25765         case for va_list_type_node is nil.
25766         (ix86_canonical_va_list_type): Likewise.
25767
25768 2011-01-21  Alan Modra  <amodra@gmail.com>
25769
25770         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
25771         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
25772
25773 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25774
25775         * config/arm/arm.md (define_attr type): Rename f_load
25776         and f_store to f_fpa_load and f_fpa_store. Update.
25777         (write_conflict): Deal with rename fallout.
25778         (*push_fp_multi): Likewise.
25779         * config/arm/fpa.md (f_load): Use f_fpa_load.
25780         (f_store): Use f_fpa_store.
25781         (*movsf_fpa): Likewise.
25782         (*movdf_fpa): Likewise.
25783         (*movxf_fpa): Likewise.
25784         (*thumb2_movsf_fpa): Likewise.
25785         (*thumb2_movdf_fpa): Likewise.
25786         (*thumb2_movxf_fpa): Likewise.
25787         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
25788         f_loadd and f_stored.
25789         (*thumb2_movdi_vfp): Likewise.
25790         (*thumb2_movsf_vfp): Fix attribute to f_loads.
25791         (*thumb2_movsi_vfp): Likewise.
25792         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
25793         Use f_loads instead of f_load.
25794         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
25795
25796 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
25797
25798         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25799         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
25800         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25801         (xtensa_mode_dependent_address_p): New function.
25802         (constantpool_address_p): Make static. Change return type to bool.
25803         Change argument type to const_rtx. Use CONST_INT_P predicate.
25804
25805 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
25806
25807         PR debug/46583
25808         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
25809
25810 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
25811
25812         PR debug/47283
25813         * cfgexpand.c (expand_debug_expr): Instead of generating
25814         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
25815         etc. handling.
25816
25817 2011-01-20  Richard Guenther  <rguenther@suse.de>
25818
25819         PR middle-end/47370
25820         * tree-inline.c (remap_gimple_op_r): Recurse manually for
25821         the pointer operand of MEM_REFs.
25822
25823 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
25824
25825         PR tree-optimization/46130
25826         * ipa-split.c (consider_split): If return_bb contains non-virtual
25827         PHIs other than for retval or if split_function would not adjust it,
25828         refuse to split.
25829
25830 2011-01-20  Richard Guenther  <rguenther@suse.de>
25831
25832         PR tree-optimization/47167
25833         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
25834         Revert previous change, only avoid enumeral type changes.
25835
25836 2011-01-19  Mike Stump  <mikestump@comcast.net>
25837
25838         * doc/tm.texi.in (BRANCH_COST): Englishify.
25839         * doc/tm.texi (BRANCH_COST): Likewise.
25840
25841 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
25842
25843         PR c++/47291
25844         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
25845         (gen_scheduled_generic_parms_dies): New functions.
25846         (gen_struct_or_union_type_die): Schedule template parameters DIEs
25847         generation for the end of CU compilation.
25848         (dwarf2out_finish): Generate template parameters DIEs here.
25849
25850 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
25851
25852         PR debug/46240
25853         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
25854         debug bind stmt on merge edges.
25855
25856 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
25857
25858         PR debug/47079
25859         PR debug/46724
25860         * function.c (instantiate_expr): Instantiate incoming rtl of
25861         implicit arguments, and recurse on VALUE_EXPRs.
25862         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
25863         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
25864
25865 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
25866
25867         * c-parser.c (c_parser_for_statement): Initialize
25868         collection_expression.
25869
25870 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
25871
25872         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
25873
25874 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
25875
25876         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
25877         (LINK_SHLIB_SPEC): Don't use %(link_path).
25878         (SUBTARGET_EXTRA_SPECS): Remove link_path.
25879
25880 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
25881
25882         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
25883         (NO_SHARED_LIB_SUPPORT): Remove.
25884         (LINK_SHLIB_SPEC): Remove one conditional definition.
25885
25886 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
25887
25888         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
25889         %{call_shared}.
25890         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
25891         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
25892         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
25893         %{call_shared} and conditionals on these options not being passed.
25894         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
25895         %{call_shared}.
25896
25897 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
25898
25899         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
25900         simplify.
25901
25902         * ipa-split.c: Spelling fixes.
25903
25904 2011-01-19  Richard Henderson  <rth@redhat.com>
25905
25906         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
25907         (*mulsi3): Likewise.
25908
25909         * longlong.h [__mn10300__] (count_leading_zeros): New.
25910         [__mn10300__] (umul_ppmm, smul_ppmm): New.
25911         [__mn10300__] (add_ssaaaa, subddmmss): New.
25912         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
25913         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
25914
25915 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25916
25917         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
25918
25919 2011-01-19  Richard Henderson  <rth@redhat.com>
25920
25921         * config/mn10300/mn10300.md (addsi3_flags): New.
25922         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
25923         (subsi3_flags, subc_internal, subdi3): New.
25924         (subdi3_internal, *subdi3_degenerate): New.
25925         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
25926
25927         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
25928         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
25929         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
25930         * config/mn10300/mn10300-protos.h: Update.
25931         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
25932         (return_ret): Likewise.  Rename from return_internal_regs.
25933         (return_internal): Remove.
25934
25935         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
25936         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
25937         (mn10300_legitimate_constant_p): Likewise.
25938         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
25939         (mn10300_frame_size): New.
25940         (mn10300_expand_prologue): Use it.
25941         (mn10300_expand_epilogue): Likewise.
25942         (mn10300_initial_offset): Likewise.
25943         * config/mn10300/mn10300-protos.h: Update.
25944         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
25945         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
25946         (prologue, epilogue, return_internal): Tidy output code.
25947         (mn10300_store_multiple_operation, return): Likewise.
25948         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
25949         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
25950         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
25951         (load_pic, am33_load_pic): New.
25952         (mn10300_load_pic0, mn10300_load_pic1): New.
25953
25954         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
25955         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
25956         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
25957         (cc_flags_for_mode, cc_flags_for_code): New.
25958         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
25959         overflow flag is not valid.  Validate that the flags we need
25960         for the comparison are valid.
25961         (mn10300_output_cmp): Remove.
25962         (mn10300_output_add): New.
25963         (mn10300_select_cc_mode): Use cc_flags_for_code.
25964         (mn10300_split_cbranch): New.
25965         (mn10300_match_ccmode): New.
25966         (mn10300_split_and_operand_count): New.
25967         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
25968         to the function.
25969         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
25970         (addsi3): ... here.  Use mn10300_output_add.
25971         (*addsi3_flags): New.
25972         (*am33_subsi3, *mn10300_subsi3): Merge...
25973         (subsi3): ... here.  Use attribute isa.
25974         (*subsi3_flags): New.
25975         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
25976         when possible.
25977         (*am33_andsi3, *mn10300_andsi3): Merge...
25978         (andsi3): ... here.
25979         (*andsi3_flags): New.
25980         (andsi3 splitters): New.
25981         (*am33_iorsi3, *mn10300_iorsi3): Merge...
25982         (iorsi3): ... here.
25983         (*iorsi3_flags): New.
25984         (*am33_xorsi3, *mn10300_xorsi3): Merge...
25985         (xorsi3): ... here.
25986         (*xorsi3_flags): New.
25987         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
25988         (one_cmplsi2): ... here.
25989         (*one_cmplsi2_flags): New.
25990         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
25991         instead of "dax" in constraints.  Use mn10300_split_cbranch.
25992         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
25993         use matching constraints to eliminate a self-comparison.
25994         (*integer_conditional_branch): Rename from integer_conditional_branch.
25995         Use int_mode_flags to match CC_REG.
25996         (*cbranchsi4_btst, *btstsi): New.
25997         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
25998         mn10300_split_cbranch.
25999         (*am33_cmpsf): Rename from am33_cmpsf.
26000         (*float_conditional_branch): Rename from float_conditional_branch.
26001         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
26002         (zero_extendqisi2): ... here.
26003         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
26004         (zero_extendhisi2): ... here.
26005         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
26006         (extendqisi2): ... here.
26007         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
26008         (extendhisi2): ... here.
26009         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
26010         (ashlsi3): ... here.
26011         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
26012         (lshrsi3): ... here.
26013         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
26014         (ashrsi3): ... here.
26015         (consecutive add peephole): Remove.
26016         * config/mn10300/predicates.md (label_ref_operand): New.
26017         (int_mode_flags): New.
26018         (CCZN_comparison_operator): New.
26019
26020         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
26021         (throughput_42_latency_43): New reservation.
26022         (mulsidi3, umulsidi3): New expanders.
26023         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
26024         the MDR register to allocation; separately allocate the low and
26025         high parts of the DImode result.
26026         (umulsidi3_internal): Similarly.
26027         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
26028         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
26029         (udivsi3, umodsi3): Remove.
26030         (udivmodsi4, divmodsi4): New expanders.
26031         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
26032         (*divmodsi4): Simiarly.
26033         (ext_internal): New.
26034
26035         * config/mn10300/constraints.md ("z"): New constraint.
26036         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
26037         (FIXED_REGISTERS): Don't fix MDR.
26038         (CALL_USED_REGSITERS): Reformat nicely.
26039         (REG_ALLOC_ORDER): Add MDR.
26040         (enum regclass): Add MDR_REGS.
26041         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
26042         (IRA_COVER_CLASSES): Add MDR_REGS.
26043         (REGNO_REG_CLASS): Handle MDR_REG.
26044         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
26045         (mn10300_register_move_cost): Likewise.
26046         * config/mn10300/mn10300.md (MDR_REG): New.
26047         (*movsi_internal): Handle moves to/from MDR_REGS.
26048
26049         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
26050         POST_MODIFY.
26051         (mn10300_secondary_reload): Tidy combination reload classes.
26052         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
26053         addresses for AM33.  Allow symbolic offsets for reg+imm.
26054         (mn10300_regno_in_class_p): New.
26055         (mn10300_legitimize_reload_address): New.
26056         * config/mn10300/mn10300.h (enum reg_class): Remove
26057         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
26058         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
26059         SP_OR_GENERAL_REGS.
26060         (REG_CLASS_NAMES): Update to match.
26061         (REG_CLASS_CONTENTS): Likewise.
26062         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
26063         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
26064         (REGNO_IN_RANGE_P): Remove.
26065         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
26066         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
26067         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
26068         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
26069         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
26070         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
26071         (REGNO_GENERAL_P): New.
26072         (HAVE_POST_MODIFY_DISP): New.
26073         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
26074         (LEGITIMIZE_RELOAD_ADDRESS): New.
26075         * config/mn10300/mn10300-protos.h: Update.
26076
26077         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
26078         DATA_REGS for AM33 stack-pointer destination.
26079         (mn10300_preferred_output_reload_class): Likewise.
26080         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
26081         into a form appropriate for ...
26082         (TARGET_SECONDARY_RELOAD): New.
26083         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
26084         * config/mn10300/mn10300-protos.h: Update.
26085         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
26086         reload_insi; use the "A" constraint for the scratch; handle AM33
26087         moves of sp to non-address registers.
26088
26089         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
26090         (*movqi_internal): ... here.
26091         (*am33_movhi, *mn10300_movhi): Merge into...
26092         (*movhi_internal): ... here.
26093         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
26094         as the source/destination of moves from/to SP.
26095         (movsf): Only allow for AM33-2.
26096         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
26097         any integer constant constraint.  Only allow for AM33-2.  Tidy
26098         all of the alternative outputs.
26099         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
26100         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
26101         for MN103.
26102         (udivsi3, umodsi3): New patterns for MN103 only.
26103
26104 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
26105
26106         * doc/tm.texi.in: Spell out that a lack of register class unions
26107         can lead to ICEs.
26108         * doc/tm.texi: Regenerate.
26109
26110 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
26111
26112         PR rtl-optimization/47337
26113         * dce.c (check_argument_store): New function.
26114         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
26115
26116         PR tree-optimization/47290
26117         * tree-eh.c (infinite_empty_loop_p): New function.
26118         (cleanup_empty_eh): Use it.
26119
26120 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
26121
26122         PR target/46997
26123         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
26124         (a64_expand_widen_sum): Ditto.
26125         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
26126         (vec_extract_evenodd_help): Ditto.
26127         (vec_extract_evenv4hi): Ditto.
26128         (vec_extract_oddv4hi): Ditto.
26129         (vec_extract_evenv2si): Ditto.
26130         (vec_extract_oddv2si): Ditto.
26131         (vec_extract_evenv2sf): Ditto.
26132         (vec_extract_oddv2sf): Ditto.
26133         (vec_pack_trunc_v4hi: Ditto.
26134         (vec_pack_trunc_v2si): Ditto.
26135         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
26136         (vec_interleave_highv8qi): Ditto.
26137         (mix1_r): Ditto.
26138         (vec_extract_oddv8qi): Ditto.
26139         (vec_interleave_lowv4hi): Ditto.
26140         (vec_interleave_highv4hi): Ditto.
26141         (vec_interleave_lowv2si): Ditto.
26142         (vec_interleave_highv2si): Ditto.
26143
26144 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26145
26146         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
26147         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
26148         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
26149         (pa_c_mode_for_suffix): New.
26150         (TARGET_EXPAND_BUILTIN): Define.
26151         (TARGET_C_MODE_FOR_SUFFIX): Define.
26152         (pa_builtins): Define.
26153         (pa_init_builtins): Register __float128 type and init new support
26154         builtins.
26155         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
26156         * config/pa/quadlib.c (_U_Qfcopysign): New.
26157
26158 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
26159
26160         PR middle-end/46894
26161         * explow.c (allocate_dynamic_stack_space): Do not assume more than
26162         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
26163         are defined.
26164
26165 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26166
26167         PR tree-optimization/47179
26168         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
26169         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
26170
26171 2011-01-18  Richard Guenther  <rguenther@suse.de>
26172
26173         PR rtl-optimization/47216
26174         * emit-rtl.c: Include tree-flow.h.
26175         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
26176         of replicating it with different semantics.
26177         * Makefile.in (emit-rtl.o): Adjust.
26178
26179 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26180
26181         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
26182         (cortex_a9_dp): Handle neon types correctly.
26183
26184 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
26185
26186         PR rtl-optimization/47299
26187         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
26188         subtarget.  Use normal multiplication if both operands are constants.
26189         * expmed.c (expand_widening_mult): Don't try to optimize constant
26190         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
26191         before using it.
26192
26193 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26194
26195         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
26196         spacing after 'e.g.', typos, comma, hyphenation.
26197
26198 2011-01-17  Richard Henderson  <rth@redhat.com>
26199
26200         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
26201         (rx_restricted_mem_operand): New.
26202         (rx_shift_operand): Use register_operand.
26203         (rx_source_operand, rx_compare_operand): Likewise.
26204         * config/rx/rx.md (addsi3_flags): New expander.
26205         (adddi3): Rewrite as expander.
26206         (adc_internal, *adc_flags, adddi3_internal): New patterns.
26207         (subsi3_flags): New expander.
26208         (subdi3): Rewrite as expander.
26209         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
26210
26211         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
26212         (rx_init_builtins): Remove sat builtin.
26213         (rx_expand_builtin): Likewise.
26214         * config/rx/rx.md (ssaddsi3): New.
26215         (*sat): Rename from sat.  Represent the CC_REG input.
26216
26217         * config/rx/predicates.md (rshift_operator): New.
26218         * config/rx/rx.c (rx_expand_insv): Remove.
26219         * config/rx/rx-protos.h: Update.
26220         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
26221         operand to the canonical position.
26222         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
26223         (*bitclr, *bitclr_in_memory): Similarly.
26224         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
26225         (insv): Retain the zero_extract in the expansion.
26226
26227         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
26228         (bswaphi2, bitinvert, revw): Likewise.
26229
26230         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
26231         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
26232         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
26233         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
26234         (bitset, bitset_in_memory): Likewise.
26235         (bitinvert, bitinvert_in_memory): Likewise.
26236         (bitclr, bitclr_in_memory): Likewise.
26237         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
26238         (rx_strend, rx_cmpstrn): Likewise.
26239         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
26240         (bitop peep2 patterns): Remove.
26241
26242         * config/rx/rx.c (rx_match_ccmode): New.
26243         * config/rx/rx-protos.h: Update.
26244         * config/rx/rx.md (abssi2): Clobber, don't set flags.
26245         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
26246         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
26247         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
26248         (fix_truncsfsi2, floatsisf2): Likewise.
26249         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
26250         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
26251         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
26252         (*subsi3_flags, *xorsi3_flags): New.
26253
26254         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
26255
26256         * config/rx/rx.c (rx_print_operand): Remove workaround for
26257         unsplit comparison operations.
26258
26259         * config/rx/rx.md (movsicc): Split after reload.
26260         (*movsicc): Merge *movsieq and *movsine via match_operator.
26261         (*stcc): New pattern.
26262
26263         * config/rx/rx.c (rx_float_compare_mode): Remove.
26264         * config/rx/rx.h (rx_float_compare_mode): Remove.
26265         * config/rx/rx.md (cstoresi4): Split after reload.
26266         (*sccc): New pattern.
26267
26268         * config/rx/predicates.md (label_ref_operand): New.
26269         (rx_z_comparison_operator): New.
26270         (rx_zs_comparison_operator): New.
26271         (rx_fp_comparison_operator): New.
26272         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
26273         Validate that the flags are set properly for the comparison.
26274         (rx_gen_cond_branch_template): Remove.
26275         (rx_cc_modes_compatible): Remove.
26276         (mode_from_flags): New.
26277         (flags_from_code): Rename from flags_needed_for_conditional.
26278         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
26279         (rx_select_cc_mode): Likewise.
26280         (rx_split_fp_compare): New.
26281         (rx_split_cbranch): New.
26282         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
26283         (*cbranchsi4): Use match_operator and rx_split_cbranch.
26284         (*cbranchsf4): Similarly.
26285         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
26286         match_operator and rx_split_cbranch.
26287         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
26288         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
26289         (*cmpsi): Rename from cmpsi.
26290         (*tstsi): Rename from tstsi.
26291         (*cmpsf): Rename from cmpsf; use CC_Fmode.
26292         (*conditional_branch): Rename from conditional_branch.
26293         (*reveresed_conditional_branch): Remove.
26294         (b<code>): Remove expander.
26295         * config/rx/rx-protos.h: Update.
26296
26297         * config/rx/rx.c (rx_compare_redundant): Remove.
26298         * config/rx/rx.md (cmpsi): Don't use it.
26299         * config/rx/rx-protos.h: Update.
26300
26301         * config/rx/rx-modes.def (CC_F): New mode.
26302         * config/rx/rx.c (rx_select_cc_mode): New.
26303         * config/rx/rx.h (SELECT_CC_MODE): Use it.
26304         * config/rx/rx-protos.h: Update.
26305
26306 2011-01-17  Richard Henderson  <rth@redhat.com>
26307
26308         * except.c (dump_eh_tree): Fix stray ; after for statement.
26309
26310 2011-01-17  Richard Guenther  <rguenther@suse.de>
26311
26312         PR tree-optimization/47313
26313         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
26314         handling before copying the body.  Properly deal with
26315         by-reference result in SSA form.
26316
26317 2011-01-17  Ian Lance Taylor  <iant@google.com>
26318
26319         PR target/47219
26320         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
26321         (struct_value_alias_set): Don't define.
26322         (sparc_option_override): Don't set sparc_sr_alias_set and
26323         struct_value_alias_set.
26324         (save_or_restore_regs): Use gen_frame_mem rather than calling
26325         set_mem_alias_set.
26326         (sparc_struct_value_rtx): Likewise.
26327
26328 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
26329
26330         PR target/47318
26331         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
26332         (_mm_maskstore_pd): Likewise.
26333         (_mm_maskload_ps): Likewise.
26334         (_mm_maskstore_ps): Likewise.
26335         (_mm256_maskload_pd): Change mask to __m256i.
26336         (_mm256_maskstore_pd): Likewise.
26337         (_mm256_maskload_ps): Likewise.
26338         (_mm256_maskstore_ps): Likewise.
26339
26340         * config/i386/i386-builtin-types.def: Updated.
26341         (ix86_expand_special_args_builtin): Likewise.
26342
26343         * config/i386/i386.c (bdesc_special_args): Update
26344         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
26345         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
26346         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
26347         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
26348
26349         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
26350         Use <avxpermvecmode> on mask register.
26351         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
26352
26353 2011-01-17  Olivier Hainque  <hainque@adacore.com>
26354             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26355             Eric Botcazou  <ebotcazou@adacore.com>
26356
26357         PR target/46655
26358         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
26359         if <= USHRT_MAX in 32-bit mode.
26360
26361 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26362
26363         * doc/install.texi (Configuration, Specific): Wrap long
26364         lines in examples.  Allow line wrapping in long options
26365         and URLs where beneficial for PDF output.
26366
26367 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
26368
26369         * config/mips/mips.c (mips_classify_symbol): Don't return
26370         SYMBOL_PC_RELATIVE for nonlocal labels.
26371
26372 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
26373
26374         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
26375
26376 2011-01-15  Jan Hubicka  <jh@suse.cz>
26377
26378         PR tree-optimization/47276
26379         * ipa.c (function_and_variable_visibility): Do not try to mark alias
26380         declarations as needed.
26381
26382 2011-01-15  Martin Jambor  <mjambor@suse.cz>
26383
26384         * common.opt (fdevirtualize): New flag.
26385         * doc/invoke.texi (Option Summary): Document it.
26386         * opts.c (default_options_table): Add devirtualize flag.
26387         * ipa-prop.c (detect_type_change): Return immediately if
26388         devirtualize flag is not set.
26389         (detect_type_change_ssa): Likewise.
26390         (compute_known_type_jump_func): Likewise.
26391         (ipa_analyze_virtual_call_uses): Likewise.
26392
26393 2011-01-14  Martin Jambor  <mjambor@suse.cz>
26394
26395         PR tree-optimization/45934
26396         PR tree-optimization/46302
26397         * ipa-prop.c (type_change_info): New type.
26398         (stmt_may_be_vtbl_ptr_store): New function.
26399         (check_stmt_for_type_change): Likewise.
26400         (detect_type_change): Likewise.
26401         (detect_type_change_ssa): Likewise.
26402         (compute_complex_assign_jump_func): Check for dynamic type change.
26403         (compute_complex_ancestor_jump_func): Likewise.
26404         (compute_known_type_jump_func): Likewise.
26405         (compute_scalar_jump_functions): Likewise.
26406         (ipa_analyze_virtual_call_uses): Likewise.
26407         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
26408
26409 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26410
26411         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
26412         * config/i386/i386.opt (msse5): New Alias.
26413
26414 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26415
26416         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
26417         * config/sparc/linux64.h (CC1_SPEC): Likewise.
26418         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
26419         * config/sparc/sparc.h (CC1_SPEC): Likewise.
26420
26421 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26422
26423         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
26424         -mcpu options.
26425         * config/sparc/linux64.h (CC1_SPEC): Likewise.
26426         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
26427         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
26428         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
26429         Likewise.
26430         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
26431
26432 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26433
26434         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
26435
26436 2011-01-14  Mike Stump  <mikestump@comcast.net>
26437
26438         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
26439         * config/fr30/fr30.md: Likweise
26440         (movsi_push): Likewise.
26441         (movsi_pop): Likewise.
26442         (enter_func): Likewise.
26443         * config/moxie/moxie.md (movsi_push): Likewise.
26444         (movsi_pop): Likewise.
26445
26446 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26447
26448         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
26449         %{no_archive} %{exact_version}.
26450         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
26451         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
26452         %{no_archive} %{exact_version}.
26453         * config/mips/openbsd.h (LINK_SPEC): Likewise.
26454         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
26455         * config/mips/vxworks.h: Likewise.
26456
26457 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26458
26459         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
26460
26461 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26462
26463         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
26464         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
26465
26466 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26467
26468         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
26469         -nodefaultlib.
26470
26471 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26472
26473         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
26474         for mcpu not cpu.
26475         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
26476         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
26477         not cpu.
26478         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
26479         Don't handle -shlib.
26480
26481 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26482
26483         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
26484         (CC1_SPEC): Don't handle -profile.
26485
26486 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26487
26488         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
26489         * config/mips/mips.h (CC1_SPEC): Likewise.
26490
26491 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26492
26493         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
26494         * config/mips/mips.h (CC1_SPEC): Likewise.
26495
26496 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26497
26498         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
26499         * config/m32r/linux.h (LINK_SPEC): Likewise.
26500         * config/mips/linux.h (LINK_SPEC): Likewise.
26501         * config/mips/linux64.h (LINK_SPEC): Likewise.
26502         * config/sparc/linux.h (LINK_SPEC): Likewise.
26503         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
26504         LINK_SPEC): Likewise.
26505         * config/xtensa/linux.h (LINK_SPEC): Likewise.
26506
26507 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26508
26509         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
26510         %{version:-v}.
26511         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
26512
26513 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26514
26515         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
26516         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
26517
26518 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26519
26520         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
26521
26522 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26523
26524         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
26525         supports -Bstatic/-Bdynamic.
26526         * configure: Regenerate.
26527
26528 2011-01-14  Jan Hubicka  <jh@suse.cz>
26529             Jack Howarth  <howarth@bromo.med.uc.edu>
26530
26531         PR target/46037
26532         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
26533         when checking debug_info_level. Test write_symbols instead of
26534         debug_hooks->var_location when setting flag_var_tracking_uninit.
26535
26536 2011-01-14  Richard Guenther  <rguenther@suse.de>
26537
26538         PR tree-optimization/47179
26539         * target.def (ref_may_alias_errno): New target hook.
26540         * targhooks.h (default_ref_may_alias_errno): Declare.
26541         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
26542         (default_ref_may_alias_errno): New function.
26543         * target.h (struct ao_ref_s): Declare.
26544         * tree-ssa-alias.c: Include target.h.
26545         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
26546         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
26547         (targhooks.o): Likewise.
26548         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
26549         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
26550
26551 2011-01-14  Richard Guenther  <rguenther@suse.de>
26552
26553         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
26554
26555 2011-01-14  Richard Guenther  <rguenther@suse.de>
26556
26557         PR tree-optimization/47280
26558         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
26559         return CFG changes.
26560         (tree_ssa_forward_propagate_single_use_vars): Deal with
26561         CFG changes from associate_plusminus.
26562
26563 2011-01-14  Richard Guenther  <rguenther@suse.de>
26564
26565         PR middle-end/47281
26566         Revert
26567         2011-01-11  Richard Guenther  <rguenther@suse.de>
26568
26569         PR tree-optimization/46076
26570         * tree-ssa.c (useless_type_conversion_p): Conversions from
26571         unprototyped to empty argument list function types are useless.
26572
26573 2011-01-14  Richard Guenther  <rguenther@suse.de>
26574
26575         PR tree-optimization/47286
26576         * tree-ssa-structalias.c (new_var_info): Register variables are global.
26577
26578 2011-01-14  Martin Jambor  <mjambor@suse.cz>
26579
26580         PR middle-end/46823
26581         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
26582
26583 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
26584
26585         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
26586         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26587         * config/xtensa/xtensa.c (xtensa_libcall_value,
26588         xtensa_function_value_regno_p): New functions.
26589         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
26590
26591 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
26592
26593         PR c++/47213
26594         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
26595         PE specific hook.
26596         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
26597         New function prototype.
26598         * config/i386/winnt.c (i386_pe_assemble_visibility):
26599         Warn only if attribute was specified by user.
26600
26601 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
26602
26603         PR target/47251
26604         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
26605         floating point.
26606         (floatunsdidf2_fcfidu): Ditto.
26607
26608 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26609
26610         * config/s390/s390.c (print_operand_address): Replace 'error' with
26611         'output_operand_lossage'.
26612         (print_operand): Likewise.
26613
26614 2011-01-13  Jeff Law  <law@redhat.com>
26615
26616         PR rtl-optimization/39077
26617         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
26618         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
26619         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
26620         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
26621         * gcse.c (prune_insertions_deletions): New function.
26622         (compute_pre_data): Use it.
26623
26624 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
26625
26626         PR debug/PR46973
26627         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
26628         static function.
26629         (prune_unused_types_mark): Use it.
26630
26631 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
26632
26633         PR rtl-optimization/45352
26634         * sel-sched.c: Update copyright years.
26635         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
26636         in the advancing loop when we have issued issue_rate insns.
26637
26638 2011-01-12  Richard Henderson  <rth@redhat.com>
26639
26640         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
26641         (TARGET_MD_ASM_CLOBBERS): New.
26642
26643         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
26644         (TARGET_DELEGITIMIZE_ADDRESS): New.
26645
26646         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
26647         (clzsi2, *bsch): New patterns.
26648
26649         * config/mn10300/mn10300.md (INT): New mode iterator.
26650         (*mov<INT>_clr): New pattern, and peep2 to generate it.
26651
26652         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
26653         flag_split_wide_types.
26654
26655         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
26656         (mn10300_trampoline_init): Rewrite without a template, an immediate
26657         load and a direct branch.
26658         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
26659
26660 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
26661
26662         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
26663         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
26664         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
26665         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
26666
26667 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
26668
26669         PR debug/47209
26670         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
26671         of type.
26672
26673 2011-01-12  Jan Hubicka  <jh@suse.cz>
26674
26675         PR driver/47244
26676         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
26677         (PLUGIN_COND_CLOSE): New macro.
26678         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
26679
26680 2011-01-12  Richard Guenther  <rguenther@suse.de>
26681
26682         PR lto/47259
26683         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
26684         register variables in a MEM_REF.
26685
26686 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
26687
26688         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
26689         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
26690         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
26691         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
26692         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
26693         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
26694         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
26695         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
26696         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
26697         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
26698         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
26699         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
26700         * config/gnu-user.h: New.  Copied from linux.h.
26701         (LINUX_TARGET_STARTFILE_SPEC): Rename to
26702         GNU_USER_TARGET_STARTFILE_SPEC.
26703         (LINUX_TARGET_ENDFILE_SPEC): Rename to
26704         GNU_USER_TARGET_ENDFILE_SPEC.
26705         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
26706         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
26707         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
26708         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
26709         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
26710         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
26711         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
26712         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
26713         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
26714         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
26715         * config/arm/linux-eabi.h (CC1_SPEC): Use
26716         GNU_USER_TARGET_CC1_SPEC.
26717         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
26718         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
26719         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
26720         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
26721         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
26722         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
26723         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
26724         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
26725
26726 2011-01-12  Richard Guenther  <rguenther@suse.de>
26727
26728         PR other/46946
26729         * doc/invoke.texi (ffast-math): Document it is turned on
26730         with -Ofast.
26731
26732 2011-01-12  Jan Hubicka  <jh@suse.cz>
26733
26734         PR tree-optimization/47233
26735         * opts.c (common_handle_option): Disable ipa-reference with profile
26736         feedback.
26737
26738 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
26739
26740         * c-parser.c (c_parser_objc_at_property_declaration): Improved
26741         error message.
26742
26743 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
26744
26745         * c-parser.c (c_lex_one_token): Updated and reindented some
26746         comments.  No changes in code.
26747
26748 2011-01-11  Ian Lance Taylor  <iant@google.com>
26749
26750         * godump.c (go_output_var): Don't output the variable if there is
26751         already a type with the same name.
26752
26753 2011-01-11  Ian Lance Taylor  <iant@google.com>
26754
26755         * godump.c (go_format_type): Don't generate float80.
26756
26757 2011-01-11  Richard Henderson  <rth@redhat.com>
26758
26759         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
26760         declaration.  Rewrite for both speed and size.
26761         (mn10300_address_cost_1): Remove.
26762         (mn10300_register_move_cost): New.
26763         (mn10300_memory_move_cost): New.
26764         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
26765         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
26766         extensions, shifts, BSWAP, CLZ.
26767         (mn10300_wide_const_load_uses_clr): Remove.
26768         (TARGET_REGISTER_MOVE_COST): New.
26769         (TARGET_MEMORY_MOVE_COST): New.
26770         * config/mn10300/mn10300-protos.h: Update.
26771         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
26772
26773         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
26774         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
26775         * config/mn10300/mn10300-protos.h: Update.
26776         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
26777         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
26778         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
26779         (*test_int_bitfield, *test_byte_bitfield): Remove.
26780         (*bit_test, *subreg_bit_test): Remove.
26781         * config/mn10300/predicates.md (const_8bit_operand): Remove.
26782
26783         * config/mn10300/constraints.md ("c"): Rename from "A".
26784         ("A", "D"): New constraint letters.
26785         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
26786         (fmssf4, fnmasf4, fnmssf4): Likewise.
26787
26788         * config/mn10300/mn10300.md (isa): New attribute.
26789         (enabled): New attribute.
26790
26791         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
26792         (abssf2, negsf2): Define only for hardware fp.
26793         (sqrtsf2): Reformat.
26794         (addsf3, subsf3, mulsf3): Merge expander and insn.
26795
26796         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
26797         (DEBUGGER_AUTO_OFFSET): Remove.
26798         (DEBUGGER_ARG_OFFSET): Remove.
26799
26800         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
26801         Emit register stores with the same offsets as the hardware.
26802         (mn10300_store_multiple_operation): Don't check that the register
26803         save offsets are monotonic.
26804         * config/mn10300/mn10300-protos.h: Update.
26805
26806         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
26807
26808         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
26809         in terms of the value on the stack, not the MDR register.
26810
26811 2011-01-11  Jan Hubicka  <jh@suse.cz>
26812
26813         PR lto/45721
26814         PR lto/45375
26815         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
26816         (symbol_alias_set_destroy, symbol_alias_set_contains,
26817         propagate_aliases_backward): Declare.
26818         * lto-streamer-out.c (struct sets): New sturcture.
26819         (trivally_defined_alias): New function.
26820         (output_alias_pair_p): Rewrite.
26821         (output_unreferenced_globals): Fix output of alias pairs.
26822         (produce_symtab): Likewise.
26823         * ipa.c (function_and_variable_visibility): Set weak alias destination
26824         as needed in lto.
26825         * varasm.c (symbol_alias_set_t): Remove.
26826         (symbol_alias_set_destroy): Export.
26827         (propagate_aliases_forward, propagate_aliases_backward): New functions
26828         based on ...
26829         (compute_visible_aliases): ... this one; remove.
26830         (trivially_visible_alias): New
26831         (trivially_defined_alias): New.
26832         (remove_unreachable_alias_pairs): Rewrite.
26833         (finish_aliases_1): Reorganize code checking if alias is defined.
26834         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
26835         in LTO mode.
26836
26837 2011-01-11  Richard Guenther  <rguenther@suse.de>
26838
26839         PR tree-optimization/46076
26840         * tree-ssa.c (useless_type_conversion_p): Conversions from
26841         unprototyped to empty argument list function types are useless.
26842
26843 2011-01-11  Richard Guenther  <rguenther@suse.de>
26844
26845         PR middle-end/45235
26846         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
26847         volatile MEMs as MEM_READONLY_P.
26848
26849 2011-01-11  Richard Guenther  <rguenther@suse.de>
26850
26851         PR tree-optimization/47239
26852         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
26853
26854 2011-01-11  Jeff Law  <law@redhat.com>
26855
26856         PR tree-optimization/47086
26857         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
26858         IVs from statements that might throw.
26859
26860 2011-01-10  Jan Hubicka  <jh@suse.cz>
26861
26862         PR lto/45375
26863         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
26864
26865 2011-01-10  Jan Hubicka  <jh@suse.cz>
26866
26867         PR lto/45375
26868         * profile.c (read_profile_edge_counts): Ignore profile inconistency
26869         when correcting profile.
26870
26871 2011-01-10  Jan Hubicka  <jh@suse.cz>
26872
26873         PR lto/46083
26874         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
26875         DECL_FINI_PRIORITY.
26876         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
26877         Restore DECL_FINI_PRIORITY.
26878
26879 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26880
26881         * doc/gimple.texi: Fix quoting of multi-word return values in
26882         @deftypefn statements.  Ensure presence of return value.  Wrap
26883         overlong @deftypefn lines.
26884         (is_gimple_operand, is_gimple_min_invariant_address): Remove
26885         descriptions of removed functions.
26886         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
26887         of multi-word return value in @deftypefn statement.
26888
26889 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26890
26891         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
26892         (Conditional Expressions, Logical Operators)
26893         (Statement and operand traversals): Do not indent smallexample
26894         code.  Fix duplicate function argument in example.
26895
26896 2011-01-10  Jeff Law  <law@redhat.com>
26897
26898         PR tree-optimization/47141
26899         * ipa-split.c (split_function): Handle case where we are
26900         returning a value and the return block has a virtual operand phi.
26901
26902 2011-01-10  Jan Hubicka  <jh@suse.cz>
26903
26904         PR tree-optimization/47234
26905         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
26906         (pass_feedback_split_functions): Declare.
26907         * passes.c (init_optimization_passes): Add ipa-split as subpass of
26908         tree-profile.
26909         * ipa-split.c (gate_split_functions): Update comments; disable
26910         split-functions for profile_arc_flag and branch_probabilities.
26911         (gate_feedback_split_functions): New function.
26912         (execute_feedback_split_functions): New function.
26913         (pass_feedback_split_functions): New global var.
26914
26915 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
26916
26917         PR lto/46760
26918         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
26919         calling gimple_call_set_cannot_inline.
26920
26921 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
26922
26923         * config/darwin-sections.def: Remove unused section.
26924
26925 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
26926
26927         PR c++/47218
26928         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
26929
26930 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
26931
26932         PR objc/47232
26933         * c-parser.c (c_parser_declaration_or_fndef): Improved
26934         error message.
26935
26936 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
26937
26938         * config/i386/winnt.c (i386_pe_start_function): Make sure
26939         to switch back to function's section.
26940
26941 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
26942
26943         PR gcc/46902
26944         PR testsuite/46912
26945         * plugin.c: Move include of dlfcn.h from here...
26946         * system.h: ... to here.
26947
26948 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26949
26950         * doc/cpp.texi (C++ Named Operators): Fix markup for header
26951         file name.
26952         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
26953         two extra empty pages in PDF output.
26954
26955 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
26956
26957         PR objc/47078
26958         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
26959         for error recovery purposes behave as if it was not specified so
26960         that the default type is usd.
26961
26962 2011-01-07  Jan Hubicka  <jh@suse.cz>
26963
26964         PR tree-optmization/46469
26965         * ipa.c (function_and_variable_visibility): Clear needed flags on
26966         nodes with external decls; handle weakrefs merging correctly.
26967
26968 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
26969
26970         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
26971         not false.
26972
26973 2011-01-07  Jan Hubicka  <jh@suse.cz>
26974
26975         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
26976         and no longer claim that gold is required for linker plugin.
26977         * configure: Regenerate.
26978         * gcc.c (PLUGIN_COND): New macro.
26979         (LINK_COMMAND_SPEC): Use it.
26980         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
26981         * config.in (HAVE_LTO_PLUGIN): New.
26982         * configure.ac (--with-lto-plugin): New parameter; autodetect
26983         HAVE_LTO_PLUGIN.
26984
26985 2011-01-07  Jan Hubicka  <jh@suse.cz>
26986
26987         PR tree-optimization/46367
26988         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
26989         when we can update original.
26990         (cgraph_mark_inline_edge): Sanity check.
26991         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
26992
26993 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26994
26995         * config/spu/spu.h (ASM_COMMENT_START): Define.
26996
26997 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
26998
26999         PR driver/42445
27000         * gcc.c (%>S): New.
27001         (SWITCH_KEEP_FOR_GCC): Likewise.
27002         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
27003         (do_spec_1): Handle "%>".
27004
27005         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
27006
27007 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
27008
27009         PR target/47201
27010         * config/i386/i386.c (ix86_delegitimize_address): If
27011         simplify_gen_subreg fails, return orig_x.
27012
27013         PR bootstrap/47187
27014         * value-prof.c (gimple_stringop_fixed_value): Handle
27015         lhs of the call properly.
27016
27017 2011-01-07  Jan Hubicka  <jh@suse.cz>
27018
27019         PR lto/45375
27020         * lto-opt.c (lto_reissue_options): Set flag_shlib.
27021
27022 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
27023
27024         * target.def (function_switched_text_sections): New hook.
27025         * doc/tm.texi: Regenerated.
27026         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
27027         * final.c (default_function_switched_text_sections): New.
27028         (final_scan_insn): Call function_switched_text_sections when a
27029         mid-function section change occurs.
27030         * output.h (default_function_switched_text_sections): Declare.
27031         * config/darwin-protos.h (darwin_function_switched_text_sections):
27032         Likewise.
27033         * config/darwin.c (darwin_function_switched_text_sections): New.
27034         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
27035
27036 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
27037
27038         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
27039         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
27040         the secondary code fragment when outputting for DWARF == 2.
27041
27042 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
27043
27044         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27045         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
27046         Remove.
27047         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
27048         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27049
27050 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
27051
27052         PR debug/46704
27053         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
27054         when it is not empty.
27055
27056 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
27057
27058         Bobcat Enablement
27059         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
27060         (case ${target}): Add btver1.
27061         * config/i386/driver-i386.c (host_detect_local_cpu): Let
27062         -march=native recognize btver1 processors.
27063         * config/i386/i386-c.c (ix86_target_macros_internal): Add
27064         btver1 def_and_undef
27065         * config/i386/i386.c (struct processor_costs btver1_cost): New
27066         btver1 cost table.
27067         (m_BTVER1): New definition.
27068         (m_AMD_MULTIPLE): Includes m_BTVER1.
27069         (initial_ix86_tune_features): Add btver1 tune.
27070         (processor_target_table): Add btver1 entry.
27071         (static const char *const cpu_names): Add btver1 entry.
27072         (software_prefetching_beneficial_p): Add btver1.
27073         (ix86_option_override_internal): Add btver1 instruction sets.
27074         (ix86_issue_rate): Add btver1.
27075         (ix86_adjust_cost): Add btver1.
27076         * config/i386/i386.h (TARGET_BTVER1): New definition.
27077         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
27078         (enum processor_type): Add PROCESSOR_BTVER1.
27079         * config/i386/i386.md (define_attr "cpu"): Add btver1.
27080
27081 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27082
27083         PR target/43309
27084         * config/i386/i386.c (legitimize_tls_address)
27085         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
27086         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
27087         (tls_initial_exec_64_sun): New pattern.
27088
27089 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
27090
27091         * doc/invoke.texi (Overall Options): Improve wording and markup
27092         of the description of -wrapper.
27093
27094 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
27095
27096         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
27097         rdynamic, threads): New Driver options.
27098
27099 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27100
27101         PR target/38118
27102         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
27103         if coming from .tdata.
27104         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
27105
27106 2011-01-06  Jan Hubicka  <jh@suse.cz>
27107
27108         PR lto/47188
27109         * collect2.c (main): Do not enable LTOmode when plugin is active.
27110
27111 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27112
27113         PR other/45915
27114         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
27115         --version output if supported.
27116         * configure: Regenerate.
27117
27118 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
27119
27120         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
27121         Driver options.
27122
27123 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
27124
27125         PR c/47150
27126         * c-convert.c (convert): When converting a complex expression
27127         other than COMPLEX_EXPR to a different complex type, ensure
27128         c_save_expr is called instead of save_expr, unless in_late_binary_op.
27129         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
27130         when converting COMPLEX_TYPE.
27131
27132 2011-01-06  Ira Rosen  <irar@il.ibm.com>
27133
27134         PR tree-optimization/47139
27135         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
27136         only the last reduction value is used outside the loop.  Update
27137         documentation.
27138
27139 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
27140
27141         * config/rtems.opt: New.
27142         * config.gcc (*-*-rtems*): Use rtems.opt.
27143
27144 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
27145
27146         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
27147         processors do not support 3DNow instructions.
27148
27149 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27150
27151         * config/spu/spu.c (spu_option_override): Set parameter
27152         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
27153
27154 2011-01-05  Jan Hubicka  <jh@suse.cz>
27155
27156         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
27157         at the command line.
27158
27159 2011-01-05  Martin Jambor  <mjambor@suse.cz>
27160
27161         PR lto/47162
27162         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
27163         deltas on streamed outgoing edges.
27164         (output_node_opt_summary): Output info for outgoing edges only when
27165         the node is in new parameter set.
27166         (output_cgraph_opt_summary): New parameter set, passed to the two
27167         aforementioned functions.  Update its forward declaration and its
27168         callee too.
27169
27170 2011-01-05  Tom Tromey  <tromey@redhat.com>
27171
27172         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
27173         operator to c_finish_omp_atomic.
27174         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
27175         (build_unary_op): Update.
27176         (build_modify_expr): Update.
27177         (build_asm_expr): Update.
27178
27179 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27180
27181         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
27182         newly inserted insns.
27183         (pad_bb): Likewise.
27184         (spu_emit_branch_hint): Likewise.
27185         (insert_hbrp_for_ilb_runout): Likewise.
27186         (spu_machine_dependent_reorg): Call df_finish_pass after
27187         schedule_insns returns.
27188
27189 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27190
27191         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
27192
27193 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
27194
27195         PR tree-optimization/47005
27196         * tree-sra.c (struct access): Add 'non_addressable' bit.
27197         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
27198         (decide_one_param_reduction): Return 0 if the parameter is passed by
27199         reference and one of the accesses in the group is non_addressable.
27200
27201 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
27202
27203         PR tree-optimization/47056
27204         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
27205         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
27206         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
27207
27208 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
27209
27210         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
27211         initializer.  Skip view conversions from aggregate types.
27212
27213 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
27214
27215         PR bootstrap/47055
27216         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
27217
27218 2011-01-04  Philipp Thomas  <pth@suse.de>
27219
27220         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
27221         obvious typo.
27222
27223 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27224
27225         * function.c (thread_prologue_and_epilogue_insns): Do not crash
27226         on empty epilogue sequences.
27227
27228 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
27229
27230         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
27231         non-static): New Driver options.
27232
27233 2011-01-04  Jie Zhang  <jie@codesourcery.com>
27234
27235         PR driver/47137
27236         * gcc.c (default_compilers[]): Set combinable field to 0
27237         for all assembly languages.
27238
27239 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
27240
27241         * config/mips/loongson3a.md: New file.
27242         * config/mips/mips.md: Include loongson3a.md.
27243         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
27244         TUNE_LOONGSON_3A.
27245
27246 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
27247
27248         PR middle-end/47017
27249         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
27250         instead of convert_memory_address_addr_space on the base expression.
27251
27252 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27253
27254         * config/spu/spu.c (spu_option_override): Update error text
27255         for bad -march= / -mtune= values.
27256
27257 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27258
27259         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
27260         if branch-hint optimization will be performed.
27261
27262 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
27263
27264         PR tree-optimization/47148
27265         * ipa-split.c (split_function): Convert arguments to
27266         DECL_ARG_TYPE if possible.
27267
27268         PR tree-optimization/47155
27269         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
27270         when computing uns.
27271
27272         PR rtl-optimization/47157
27273         * combine.c (try_combine): If undobuf.other_insn becomes
27274         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
27275         and set *new_direct_jump_p too.
27276
27277 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
27278
27279         PR tree-optimization/47021
27280         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
27281
27282 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
27283
27284         * gcc.c (process_command): Update copyright notice dates.
27285         * gcov.c (print_version): Likewise.
27286         * gcov-dump.c (print_version): Likewise.
27287         * mips-tfile.c (main): Likewise.
27288         * mips-tdump.c (main): Likewise.
27289
27290 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27291
27292         PR tree-optimization/46801
27293         * tree-sra.c (type_internals_preclude_sra_p): Check whether
27294         aggregate fields start at byte boundary instead of the bit-field flag.
27295
27296 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
27297
27298         PR driver/47137
27299         * gcc.c (main): Revert revision 168407.
27300
27301 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27302
27303         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
27304
27305 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27306
27307         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
27308         vector optab to expand vector/scalar shift, update gimple to vector.
27309
27310 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27311
27312         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
27313         a thunk.
27314
27315 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27316
27317         PR tree-optimization/46984
27318         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
27319         HOST_WIDE_INT.
27320         (cgraph_create_indirect_edge): Fixed line length.
27321         (cgraph_indirect_call_info): Declare.
27322         (cgraph_make_edge_direct) Update declaration.
27323         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
27324         (cgraph_create_indirect_edge): Use it.
27325         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
27326         callees.
27327         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
27328         the new thunk_delta representation.
27329         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
27330         HOST_WIDE_INT.
27331         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
27332         (ipa_read_indirect_edge_info): Likewise.
27333         * lto-cgraph.c (output_edge_opt_summary): New function.
27334         (output_node_opt_summary): Call it on all outgoing edges.
27335         (input_edge_opt_summary): New function.
27336         (input_node_opt_summary): Call it on all outgoing edges.
27337
27338 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
27339
27340         PR driver/47137
27341         * gcc.c (main): Don't check have_o when settting combine_inputs.
27342
27343 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
27344
27345         * regrename.c: Add general comment describing the pass.
27346         (struct du_head): Remove 'length' field.
27347         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
27348         (regrename_optimize): Do not sort chains.  Rework comments, add others.
27349         Force renaming to the preferred class (if any) in the first pass and do
27350         not consider registers that belong to it in the second pass.
27351         (create_new_chain): Do not set 'length' field.
27352         (scan_rtx_reg): Likewise.
27353
27354 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
27355
27356         PR tree-optimization/47140
27357         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
27358         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
27359         to bit_value_binop.
27360
27361         PR rtl-optimization/47028
27362         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
27363         parm_birth_insn instead of at the beginning of first bb.
27364
27365 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
27366
27367         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
27368         Remove the word "see" before "@pxref".
27369         * doc/rtl.texi: Remove the word "see" before "@pxref".
27370
27371 2011-01-01  Jan Hubicka  <jh@suse.cz>
27372
27373         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
27374         memory.
27375
27376 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
27377
27378         PR target/38662
27379         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
27380
27381 \f
27382 Copyright (C) 2011 Free Software Foundation, Inc.
27383
27384 Copying and distribution of this file, with or without modification,
27385 are permitted in any medium without royalty provided the copyright
27386 notice and this notice are preserved.