OSDN Git Service

2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
2
3         PR bootstrap/50218
4         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
5         comp.
6
7 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
8
9         * doc/rtl.texi (simple_return): Document.
10         (parallel, PATTERN): Here too.
11         * doc/md.texi (return): Mention it's allowed to expand to simple_return
12         in some cases.
13         (simple_return): Document standard pattern.
14         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
15         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
16         * reorg.c (function_return_label, function_simple_return_label):
17         New static variables, replacing...
18         (end_of_function_label): ... this.
19         (simplejump_or_return_p): New static function.
20         (optimize_skip, steal_delay_list_from_fallthrough,
21         fill_slots_from_thread): Use it.
22         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
23         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
24         (find_end_label): Take a new arg which is one of the two return
25         rtxs.  Depending on which, set either function_return_label or
26         function_simple_return_label.  All callers changed.
27         (make_return_insns): Make both kinds.
28         (dbr_schedule): Adjust for two kinds of end labels.
29         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
30         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
31         (gen_expand, gen_split): Use ANY_RETURN_P.
32         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
33         * rtl.def (SIMPLE_RETURN): New code.
34         * ifcvt.c (find_if_case_1): Be more careful about
35         redirecting jumps to the EXIT_BLOCK.
36         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
37         returnjump_p_1): Handle SIMPLE_RETURNs.
38         * print-rtl.c (print_rtx): Likewise.
39         * rtl.c (copy_rtx): Likewise.
40         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
41         * combine.c (simplify_set): Likewise.
42         * resource.c (find_dead_or_set_registers, mark_set_resources):
43         Likewise.
44         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
45         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
46         (init_emit_regs): Initialize simple_return_rtx.
47         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
48         force_nonfallthru_and_redirect.
49         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
50         (GR_SIMPLE_RETURN): New enum value.
51         (simple_return_rtx): New macro.
52         * basic-block.h (force_nonfallthru_and_redirect): Adjust
53         declaration.
54         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
55         argument.  All callers changed.  Be careful about what kinds of
56         returnjumps to generate.
57         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
58         ix86_pad_short_function): Likewise.
59         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
60         of return.
61         * config/mips/mips.md (any_return): New code_iterator.
62         (optab): Add cases for return and simple_return.
63         (return): Expand to a simple_return.
64         (simple_return): New pattern.
65         (*<optab>, *<optab>_internal for any_return): New patterns.
66         (return_internal): Remove.
67         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
68         a simple_return_internal.
69
70 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
71
72         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
73         (vec_extract_lo_<mode>): Prevent both operands in memory.
74         (vec_extract_lo_v16hi): Ditto.
75         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
76
77 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
78
79         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
80         (*sse2_mulv4si3): Ditto.
81         (mulv2di3): Ditto.
82         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
83         notes to REG_EQUAL.
84
85 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
86
87         PR target/50202
88         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
89         when all outputs are unused.
90         (sse4_2_pcmpistr): Ditto.
91
92 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
93
94         * config/i386/i386.md (round<mode>2): New expander.
95         * config/i386/i386.c (enum ix86_builtins): Add
96         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
97         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
98         descriptions.
99         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
100         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
101
102 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
103
104         PR middle-end/50083
105         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
106         only when TARGET_C99_FUNCTIONS.
107         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
108         <BUILT_IN_RINT{,F,L}>: Ditto.
109
110 2011-08-26  Michael Matz  <matz@suse.de>
111             Jakub Jelinek  <jakub@redhat.com>
112
113         PR lto/50165
114         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
115         don't call strlen twice, use memcpy.
116
117 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
118
119         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
120         * config/i386/bmiintrin.h: Likewise.
121         * config/i386/lzcntintrin.h: Likewise.
122
123         * config/i386/immintrin.h: Include <lzcntintrin.h>,
124         <bmiintrin.h> and <bmi2intrin.h>.
125
126 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
127
128         PR target/50166
129         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
130         * configure: Regenerate.
131
132 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
133
134         PR c/50179
135         * c-typeck.c (c_process_expr_stmt): Skip over nops and
136         call mark_exp_read even if exprv is ADDR_EXPR.
137
138 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
139
140         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
141         to df_set_dead_notes_for_mw.
142
143 2011-08-26  Richard Guenther  <rguenther@suse.de>
144
145         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
146
147 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
148             Tom de Vries  <tom@codesourcery.com>
149
150         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
151         (struct ivopts_data): Add loop_single_exit_p field.
152         (niter_for_exit): Change parameter desc_p into return value.  Return
153         desc if desc->may_be_zero.  Free desc if unused.
154         (niter_for_single_dom_exit): Change return type.
155         (find_induction_variables): Handle changed return type of
156         niter_for_single_dom_exit.  Dump may_be_zero.
157         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
158         (set_use_iv_cost): Add and handle comp parameter.
159         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
160         comp argument to set_use_iv_cost.
161         (strip_wrap_conserving_type_conversions, expr_equal_p)
162         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
163         (may_eliminate_iv): Add comp parameter.  Handle new return type of
164         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
165         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
166         and may_eliminate_iv.
167         (rewrite_use_compare): Move call to iv_elimination_compare to ...
168         (may_eliminate_iv): Here.
169         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
170
171 2011-08-26  Tom de Vries  <tom@codesourcery.com>
172
173         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
174         accessing TREE_TYPE.
175
176 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
177
178         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
179         (*ior_scc_scc_cmp): Likewise
180         (*and_scc_scc): Likewise.
181         (*and_scc_scc_cmp): Likewise.
182         (*and_scc_scc_nodom): Likewise.
183         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
184
185 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
186
187         * rtlanal.c (nonzero_bits1): Handle CLRSB.
188
189 2011-08-26  Richard Guenther  <rguenther@suse.de>
190
191         * expr.c (string_constant): Handle &MEM_REF.
192
193 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
194
195         * config/arm/arm.c (struct four_ints): New type.
196         (count_insns_for_constant): Delete function.
197         (find_best_start): Delete function.
198         (optimal_immediate_sequence): New function.
199         (optimal_immediate_sequence_1): New function.
200         (arm_gen_constant): Move constant splitting code to
201         optimal_immediate_sequence.
202         Rewrite constant negation/invertion code.
203
204 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
205
206         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
207         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
208         Remove prototype. Remove static function type.
209         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
210         Add arch attribute.
211         * config/arm/constraints.md (Pj, PJ): New constraints.
212
213 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
214
215         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
216         ("cortex_a9_multiply_long"): New and use above.  Handle all
217         long multiply cases.
218         ("cortex_a9_multiply"): Handle smmul and smmulr.
219         ("cortex_a9_mac"): Handle smmla.
220
221 2011-08-25  Richard Henderson  <rth@redhat.com>
222
223         PR 50132
224         PR 49864
225         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
226         non-constant stack adjutment.
227         * expr.c (find_args_size_adjust): Break out from ...
228         (fixup_args_size_notes): ... here.
229         * rtl.h (find_args_size_adjust): Declare.
230
231 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
232
233         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
234         sse4 and sse4_noavx.
235         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
236         (*pushdf_rex64): Change Y2 register constraint to x.
237         (*movdf_internal_rex64): Ditto.
238         (*zero_extendsidi2_rex64): Ditto.
239         (*movdi_internal): Change Y2 register constraint to x
240         and update "isa" attribute.
241         (*pushdf): Ditto.
242         (*movdf internal): Ditto.
243         (zero_extendsidi2_1): Ditto.
244         (*truncdfdf_mixed): Ditto.
245         (*truncxfdf2_mixed): Ditto.
246         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
247         register constraint to x.
248         (*movv2sf_internal_rex64): Ditto.
249         (*mov<mode>_internal): Change Y2 register constraint to x
250         and add "isa" attribute.
251         (*movv2sf_internal): Ditto.
252         (*vec_extractv2si_1): Ditto.
253         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
254         constraints to x and update "isa" attribute.
255         (*vec_interleave_highv2df): Change Y3 registerconstraint
256         to x and update "isa" attribute.
257         (*vec_interleave_lowv2df): Ditto.
258         (*vec_concatv2df): Change Y2 register constraint to x and
259         update "isa" attribute.
260         (sse2_loadld): Ditto.
261         (*vec_extractv2di_1): Ditto.
262         (*vec_dupv4si): Ditto.
263         (*vec_dupv2di): Ditto.
264         (*vec_concatv4si): Ditto.
265         (vec_concatv2di): Ditto.
266         * config/i386/constraints.md (Y2): Remove.
267         (Y3): Ditto.
268         (Y4): Ditto.
269
270 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
271
272         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
273         dump_def_use_chain): Don't declare.
274         (mark_conflict, create_new_chain): Move before users.
275         (regrename_optimize): Move to near end of file.
276
277 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
278
279         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
280         (secondary_input_reload_class): Remove Prototype.
281         * config/avr/avr.c (byte_immediate_operand): Remove Function.
282         * config/avr/avr.md (setmemhi): Use u8_operand.
283         (strlenhi): Use const0_rtx for comparison.
284         * config/avr/avr.h (avr_reg_order): Remove Declaration.
285
286 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
287
288         * config/avr/avr.c (reg_class_tab): Make local to
289         avr_regno_reg_class.  Return smallest register class available.
290
291 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
292
293         * config/avr/avr.c (STR_PREFIX_P): New Define.
294         (avr_asm_declare_function_name): Use it.
295         (avr_asm_named_section): Use it.
296         (avr_section_type_flags): Use it.
297
298 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
299
300         * doc/md.texi (automata_option): Document collapse-ndfa.
301         * genautomata.c (COLLAPSE_OPTION): New macro.
302         (collapse_flag): New static variable.
303         (struct description): New member normal_decls_num.
304         (struct automaton): New members advance_ainsn and collapse_ainsn.
305         (gen_automata_option): Check for COLLAPSE_OPTION.
306         (collapse_ndfa_insn_decl): New static variable.
307         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
308         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
309         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
310         necessary.  Use normal_decls_num rather than decls_num, remove
311         test for special decls.
312         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
313         (make_automaton); Likewise.  Use the new advance_cycle_insn member
314         of struct automaton.
315         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
316         is set.
317         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
318         transition.  Create the necessary transitions for it.
319         (create_ainsns): Return void.  Take an automaton_t argument, and
320         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
321         callers changed.
322         (COLLAPSE_NDFA_VALUE_NAME): New macro.
323         (output_tables): Output code to define it.
324         (output_internal_insn_code_evaluation): Output code to accept
325         const0_rtx as collapse-ndfa transition.
326         (output_default_latencies, output_print_reservation_func,
327         output_print_description): Reorganize loops to use normal_decls_num
328         as loop bound; remove special case for advance_cycle_insn_decl.
329         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
330         (check_automata_insn_issues): Check for collapse_ainsn.
331         (expand_automate): Allocate sufficient space.  Initialize
332         normal_decls_num.
333
334 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
335
336         * config/avr/avr.md: Fix indentation from r177991.
337
338 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
339
340         * regrename.c (struct du_head): Remove member terminated.
341         (create_new_chain): Don't initialize it.
342         (scan_rtx_reg): Don't set or test it, test the open_chains_set
343         bitmap instead.
344         (tick, this_tick): New global variables, moved out of
345         regrename_optimize.
346         (current_id, open_chains, closed_chains, open_chains_set,
347         live_in_chains, live_hard_regs): Reorder declarations.
348         (dump_def_use_chain): Move function earlier in the file.
349         (rename_chains): New static function, broken out of
350         regrename_optimize.
351         (regrename_optimize): Use it.  Remove #if 0'ed code.
352
353 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
354
355         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
356
357 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
358
359         PR target/50172
360         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
361
362 2011-08-24  Richard Guenther  <rguenther@suse.de>
363
364         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
365         ref in the basic-block case.  Move stripping array-refs
366         to the place we create an access-function for it.  Remove
367         bogus stripping down a MEM_REF to its base.
368
369 2011-08-24  Richard Guenther  <rguenther@suse.de>
370
371         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
372         with -fno-strict-overflow.
373
374 2011-08-24  Richard Guenther  <rguenther@suse.de>
375
376         * tree-vectorizer.c (vect_print_dump_info): Avoid the
377         file and location clutter when dumping to dump files.
378
379 2011-08-24  Simon Baldwin  <simonb@google.com>
380
381         * gengtype-state.c (write_state): Remove timestamped header line.
382
383 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
384
385         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
386         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
387         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
388         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
389         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
390         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
391         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
392         rules.
393         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
394
395 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
396
397         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
398
399 2011-08-24  Richard Guenther  <rguenther@suse.de>
400
401         PR tree-optimization/50067
402         * tree-data-ref.c (dr_analyze_indices): Do not add an access
403         function for a MEM_REF base that has no evolution in the loop
404         nest or that is not analyzable.
405
406 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
407
408         * ira.c (ira_init_register_move_cost): Check small subclasses
409         through ira_reg_class_max_nregs and ira_available_class_regs.
410
411 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
412
413         * config/i386/constraints.md (Yp): New register constraint.
414         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
415         Yp register constraint.
416         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
417         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
418         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
419
420 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
421
422         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
423
424 2011-08-23  Mark Heffernan  <meheff@google.com>
425
426         PR middle-end/38509
427         * common.opt (Wfree-nonheap-object): New option.
428         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
429         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
430         to warning.
431         (expand_builtin): Make warning conditional.
432
433 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
434
435         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
436         (length_immediate): Handle imulx, ishiftx and rotatex.
437         (imm_disp): Ditto.
438         (isa): Add bmi2.
439         (enabled): Handle bmi2.
440         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
441         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
442         (*bmi2_umulditi3_1): New insn pattern.
443         (*bmi2_umulsidi3_1): Ditto.
444         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
445         (*bmi2_ashl<mode>3_1): New insn pattern.
446         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
447         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
448         (*bmi2_ashlsi3_1_zext): New insn pattern.
449         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
450         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
451         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
452         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
453         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
454         flags dependency.
455         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
456         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
457         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
458         flags dependency.
459         (*bmi2_rorx<mode>3_1): New insn pattern.
460         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
461         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
462         (*rotatert<mode>3_1 splitter): Ditto.
463         (*bmi2_rorxsi3_1_zext): New insn pattern.
464         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
465         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
466         (*rotatertsi3_1_zext splitter): Ditto.
467
468 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
469
470         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
471         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
472         (ix86_handle_option): Handle OPT_mbmi2 case.
473         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
474         (x86_64-*-*): Likewise.
475         * config/i386/bmi2intrin.h: New file.
476         * config/i386/cpuid.h (bit_BMI2): New.
477         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
478         BMI2 feature.
479         * config/i386/i386-c.c (ix86_target_macros_internal):
480         Conditionally define __BMI2__.
481         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
482         Handle BMI2 option.
483         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
484         (print_reg): New code.
485         (ix86_print_operand): Likewise.
486         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
487         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
488         IX86_BUILTIN_PEXT64.
489         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
490         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
491         IX86_BUILTIN_PEXT64.
492         * config/i386/i386.h (TARGET_BMI2): New.
493         * config/i386/i386.md (UNSPEC_PDEP): New.
494         (UNSPEC_PEXT): Likewise.
495         (*bmi2_bzhi_<mode>3): Likewise.
496         (*bmi2_pdep_<mode>3): Likewise.
497         (*bmi2_pext_<mode>3): Likewise.
498         * config/i386/i386.opt (mbmi2): New.
499         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
500         is defined.
501         * doc/extend.texi: Document BMI2 built-in functions.
502         * doc/invoke.texi: Document -mbmi2.
503
504 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
505
506         PR middle-end/50161
507         * simplify-rtx.c (simplify_const_unary_operation): If
508         op is CONST_INT, don't look at op_mode, but use instead mode.
509         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
510         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
511         operation and TRUNCATE/ZERO_EXTEND if needed.
512         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
513         Document that operand mode must be same as operation mode,
514         or VOIDmode.
515         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
516         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
517         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
518         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
519         use the mode of operand for the operation and add truncate
520         or zero_extend around if needed.
521         * config/c6x/c6x.md (ctzdi2): Likewise.
522         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
523
524 2011-08-12  Michael Matz  <matz@suse.de>
525
526         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
527         (gimple_expand_cfg): Merge alignment info for coalesced pointer
528         SSA names.
529
530 2011-08-23  Richard Guenther  <rguenther@suse.de>
531
532         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
533         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
534         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
535         from ...
536         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
537         (mem_refs_may_alias_p): Adjust.
538         * tree-data-ref.h (dr_may_alias_p): Adjust.
539         * tree-data-ref.c: Include tree-affine.h.
540         (dr_analyze_indices): Do nothing for the non-loop case.
541         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
542         more cases in the non-loop case.
543         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
544         calls to dr_may_alias_p.
545         (write_alias_graph_to_ascii_ecc): Likewise.
546         (write_alias_graph_to_ascii_dot): Likewise.
547         (build_alias_set_optimal_p): Likewise.
548
549 2011-08-23  Richard Guenther  <rguenther@suse.de>
550
551         PR tree-optimization/50162
552         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
553
554 2011-08-23  Richard Guenther  <rguenther@suse.de>
555
556         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
557         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
558         (create_data_ref): Also dump access functions for the created data-ref.
559
560 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
561             Kirill Yukhin  <kirill.yukhin@intel.com>
562
563         PR target/50155
564         * config/i386/sse.md (VI_AVX2): New.
565         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
566         (*<plusminus_insn><mode>3): Ditto.
567         (<sse2_avx2>_andnot<mode>3): Ditto.
568         (*andnot<mode>3): Fix order of cond operands.
569         Add asserts for correct TARGET_xxx.
570         (*<any_logic:code><mode>3): Ditto.
571
572 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
573
574         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
575         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
576         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
577         regclass argument type to reg_class_t. Change 'max' and 'v' vars
578         and return types to unsigned char. Use reg_class_contents instead
579         of class_contents.
580         (TARGET_CLASS_MAX_NREGS): Define.
581
582 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
583
584         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
585         to make computed_jump_p return true.
586
587 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
588
589         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
590         (PICFLAG_FOR_TARGET): Substitute.
591         * aclocal.m4: Regenerate.
592         * configure: Regenerate.
593
594 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
595
596         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
597         after reading in the pch.
598
599 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
600
601         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
602         * configure: Regenerated.
603
604 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
605
606         PR tree-optimization/50133
607         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
608         from stmt instead of some statement around gsi.
609
610         PR middle-end/50141
611         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
612         innerdecl is a VAR_DECL.
613
614 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
615
616         * config/i386/avx2intrin.h: New file.
617         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
618         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
619         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
620         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
621         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
622         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
623         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
624         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
625         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
626         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
627         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
628         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
629         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
630         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
631         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
632         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
633         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
634         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
635         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
636         VOID_FTYPE_PV8SI_V8SI_V8SI,
637         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
638         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
639         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
640         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
641         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
642         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
643         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
644         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
645         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
646         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
647         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
648         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
649         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
650         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
651         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
652         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
653         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
654         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
655         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
656         V4DI_FTYPE_V4DI_INT_CONVERT,
657         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
658         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
659         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
660         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
661         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
662         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
663         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
664         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
665         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
666         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
667         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
668         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
669         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
670         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
671         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
672         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
673         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
674         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
675         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
676         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
677         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
678         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
679         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
680         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
681         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
682         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
683         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
684         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
685         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
686         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
687         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
688         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
689         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
690         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
691         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
692         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
693         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
694         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
695         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
696         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
697         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
698         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
699         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
700         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
701         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
702         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
703         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
704         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
705         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
706         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
707         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
708         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
709         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
710         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
711         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
712         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
713         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
714         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
715         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
716         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
717         IX86_BUILTIN_VBROADCASTSS_PS256,
718         IX86_BUILTIN_VBROADCASTSD_PD256,
719         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
720         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
721         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
722         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
723         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
724         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
725         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
726         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
727         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
728         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
729         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
730         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
731         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
732         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
733         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
734         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
735         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
736         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
737         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
738         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
739         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
740         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
741         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
742         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
743         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
744         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
745         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
746         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
747         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
748         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
749         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
750         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
751         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
752         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
753         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
754         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
755         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
756         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
757         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
758         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
759         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
760         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
761         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
762         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
763         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
764         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
765         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
766         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
767         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
768         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
769         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
770         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
771         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
772         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
773         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
774         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
775         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
776         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
777         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
778         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
779         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
780         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
781         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
782         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
783         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
784         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
785         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
786         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
787         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
788         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
789         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
790         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
791         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
792         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
793         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
794         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
795         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
796         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
797         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
798         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
799         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
800         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
801         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
802         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
803         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
804         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
805         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
806         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
807         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
808         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
809         IX86_BUILTIN_VBROADCASTSD_PD256,
810         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
811         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
812         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
813         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
814         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
815         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
816         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
817         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
818         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
819         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
820         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
821         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
822         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
823         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
824         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
825         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
826         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
827         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
828         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
829         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
830         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
831         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
832         IX86_BUILTIN_GATHERDIV8SI.
833         (ix86_preferred_simd_mode): Support AVX2 modes.
834         (ix86_expand_args_builtin): Support AVX2 builtins.
835         (ix86_expand_special_args_builtin): Likewise.
836         (ix86_expand_builtin): Likewise.
837         * config/i386/i386.md (UNSPEC_VPERMSI): New.
838         (UNSPEC_VPERMDF): Likewise.
839         (UNSPEC_VPERMSF): Likewise.
840         (UNSPEC_VPERMDI): Likewise.
841         (UNSPEC_VPERMTI): Likewise.
842         (UNSPEC_GATHER): Likewise.
843         (ssemodesuffix): Extend.
844         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
845         is defined.
846         * config/i386/predicates.md (const1248_operand): New.
847         * config/i386/sse.md (VI1_AVX2): New mode iterator.
848         (VI2_AVX2): Likewise.
849         (VI4_AVX2): Likewise.
850         (VI8_AVX2): Likewise.
851         (VIMAX_AVX2): Likewise.
852         (SSESCALARMODE): Likewise.
853         (VI12_AVX2): Likewise.
854         (VI24_AVX2): Likewise.
855         (VI124_AVX2): Likewise.
856         (VI248_AVX2): Likewise.
857         (VI48_AVX2): Likewise.
858         (VI4SD_AVX2): Likewise.
859         (V48_AVX2): Likewise.
860         (AVX256MODE2P): Likewise.
861         (AVXMODE48P_DI): Likewise.
862         (sse2_avx2): New mode attribute.
863         (ssse3_avx2): Likewise.
864         (sse4_1_avx2): Likewise.
865         (avx_avx2): Likewise.
866         (ssebytemode): Likewise.
867         (AVXTOSSEMODE): Likewise.
868         (AVXMODE48P_DI): Likewise.
869         (gthrfirstp): Likewise.
870         (gthrlastp): Likewise.
871         (lshift): New code_iterator
872         (lshift): New code attribute.
873         (lshift): Likewise.
874         (ssescalarmodesuffix): Update.
875         (sseunpackmode): Likewise.
876         (ssepackmode): Likewise.
877         (avx2_vec_dupv4sf): New insn pattern.
878         (avx2_vec_dupv8sf): Likewise.
879         (avx2_interleave_highv4di): Likewise.
880         (avx2_interleave_lowv4di): Likewise.
881         (avx2_umulv4siv4di3): Likewise
882         (*avx2_umulv4siv4di3): Likewise
883         (avx2_pmaddwd): Likewise.
884         (*avx2_pmaddwd): Likewise.
885         (avx2_lshrqv4di3): Likewise.
886         (avx2_lshlqv4di3): Likewise.
887         (avx2_lshl<mode>3): Likewise.
888         (avx2_<umaxmin:code><mode>3): Likewise.
889         (*avx2_<umaxmin:code><mode>3): Likewise.
890         (avx2_<smaxmin:code><mode>3): Likewise.
891         (*avx2_<smaxmin:code><mode>3): Likewise.
892         (avx2_eq<mode>3): Likewise.
893         (*avx2_eq<mode>3): Likewise.
894         (avx2_gt<mode>3): Likewise.
895         (avx2_interleave_highv32qi): New.
896         (avx2_interleave_lowv32qi): Likewise.
897         (avx2_interleave_highv16hi): Likewise.
898         (avx2_interleave_lowv16hi): Likewise.
899         (avx2_interleave_highv8si): Likewise.
900         (avx2_interleave_lowv8si): Likewise.
901         (avx2_pshufd): Likewise.
902         (avx2_pshufd_1): Likewise.
903         (avx2_pshuflwv3): Likewise.
904         (avx2_pshuflw_1): Likewise.
905         (avx2_pshufhwv3): Likewise.
906         (avx2_pshufhw_1): Likewise.
907         (avx2_uavgv32qi3): Likewise.
908         (*avx2_uavgv32qi3): Likewise.
909         (avx2_uavgv16hi3): Likewise.
910         (*avx2_uavgv16hi3): Likewise.
911         (avx2_pmovmskb): Likewise.
912         (avx2_phaddwv16hi3): Likewise.
913         (avx2_phadddv8si3): Likewise.
914         (avx2_phaddswv16hi3): Likewise.
915         (avx2_phsubwv16hi3): Likewise.
916         (avx2_phsubdv8si3): Likewise.
917         (avx2_phsubswv16hi3): Likewise.
918         (avx2_pmaddubsw256): Likewise.
919         (avx2_umulhrswv16hi3): Likewise.
920         (*avx2_umulhrswv16hi3): Likewise.
921         (avx2_packusdw): Likewise.
922         (avx2_pblendd<mode>): Likewise.
923         (avx2_<code>v16qiv16hi2): Likewise.
924         (avx2_<code>v8qiv8si2): Likewise.
925         (avx2_<code>v8hiv8si2): Likewise.
926         (avx2_<code>v4qiv4di2): Likewise.
927         (avx2_<code>v4hiv4di2): Likewise.
928         (avx2_<code>v4siv4di2): Likewise.
929         (avx2_pbroadcast<mode>): Likewise.
930         (avx2_permvarv8si): Likewise.
931         (avx2_permv4df): Likewise.
932         (avx2_permvarv8sf): Likewise.
933         (avx2_permv4di): Likewise.
934         (avx2_permv2ti): Likewise.
935         (avx2_vec_dupv4df): Likewise.
936         (avx2_vbroadcasti128_<mode>): Likewise.
937         (avx2_vec_set_lo_v4di): Likewise.
938         (avx2_vec_set_hi_v4di): Likewise.
939         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
940         (avx2_extracti128): Likewise.
941         (avx2_inserti128): Likewise.
942         (avx2_ashrvv8si): Likewise.
943         (avx2_ashrvv4si): Likewise.
944         (avx2_<lshift>vv8si): Likewise.
945         (avx2_<lshift>v<mode>): Likewise.
946         (avx2_<lshift>vv2di): Likewise.
947         (avx2_gathersi<mode>): Likewise.
948         (*avx2_gathersi<mode>): Likewise.
949         (avx2_gatherdi<mode>): Likewise.
950         (*avx2_gatherdi<mode>): Likewise.
951         (avx2_gatherdi<mode>256): Likewise.
952         (*avx2_gatherdi<mode>256): Likewise.
953         (<plusminus_insn><mode>3): Use VI mode iterator.
954         (*<plusminus_insn><mode>3): Use VI mode iterator.
955         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
956         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
957         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
958         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
959         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
960         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
961         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
962         Use VI2_AVX2 mode iterator.
963         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
964         Use VI2_AVX2 mode iterator.
965         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
966         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
967         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
968         Use VI4_AVX2 mode iterator.
969         (ashr<mode>3): Use VI24_AVX2 mode iterator.
970         (lshr<mode>3): Use VI248_AVX2 mode iterator.
971         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
972         Use VIMAX_AVX2 mode iterator.
973         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
974         Use VI mode iterator.
975         (*andnot<mode>3): Update for AVX2.
976         (*<any_logic:code><mode>3): Likewise.
977         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
978         Use VI1_AVX mode iterator.
979         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
980         Use VI2_AVX mode iterator.
981         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
982         Use VI1_AVX mode iterator.
983         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
984         Use VI8_AVX2 mode iterator.
985         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
986         Use VI1_AVX2 mode iterator.
987         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
988         Use VI124_AVX2 mode iterator.
989         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
990         Use SSESCALARMODE mode iterator.
991         (abs<mode>2): Use VI124_AVX2 mode iterator.
992         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
993         Use VI8_AVX2 mode iterator.
994         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
995         Use VI1_AVX2 mode iterator.
996         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
997         Use VI1_AVX2 mode iterator.
998         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
999         Use VI2_AVX2 mode iterator.
1000         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
1001         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
1002         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
1003         avx_maskstore<ssemodesuffix><avxsizesuffix>.
1004         Use V48_AVX2 mode iterator.
1005         * doc/extend.texi: Document AVX2 built-in functions.
1006         * doc/invoke.texi: Document -mavx2.
1007
1008 2011-08-22  Matthias Klose <doko@debian.org>
1009
1010         Revert:
1011         2011-07-11  Arthur Loiret  <aloiret@debian.org>
1012                     Matthias Klose <doko@debian.org>
1013         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1014         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1015         convention.
1016         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1017
1018 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
1019
1020         PR bootstrap/50146
1021         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
1022         to #ifndef HONOR_REG_ALLOC_ORDER block.
1023
1024 2011-08-21  Richard Henderson  <rth@redhat.com>
1025
1026         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
1027         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
1028         * resource.c (next_insn_no_annul): Likewise.
1029         (mark_set_resources): Likewise.
1030         * reorg.c (delete_from_delay_slot): Likewise.
1031         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
1032         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
1033
1034 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
1035
1036         * config/i386/i386.md (any_div): Remove.
1037         (sgnprefix): Update for removal.
1038         (u): Ditto.
1039
1040 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
1041
1042         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
1043         for ira_reg_class_max_nregs.  Increase pressure by 1.
1044         (mark_pseudo_regno_subword_dead): Use allocno class
1045         for ira_reg_class_max_nregs.
1046
1047 2011-08-20  Richard Henderson  <rth@redhat.com>
1048
1049         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
1050         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
1051         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
1052         config/c6x/ltf.c: Adjust include path for soft-fp.
1053
1054 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1055
1056         PR other/46770
1057         * config.gcc (tm_file): Add initfini-array.h if
1058         .init_arrary/.fini_array are supported.
1059
1060         * crtstuff.c: Don't generate .ctors nor .dtors sections if
1061         USE_INITFINI_ARRAY is defined.
1062
1063         * output.h (default_elf_init_array_asm_out_constructor): New.
1064         (default_elf_fini_array_asm_out_destructor): Likewise.
1065         * varasm.c (elf_init_array_section): Likewise.
1066         (elf_fini_array_section): Likewise.
1067         (get_elf_initfini_array_priority_section): Likewise.
1068         (default_elf_init_array_asm_out_constructor): Likewise.
1069         (default_elf_fini_array_asm_out_destructor): Likewise.
1070
1071         * config/initfini-array.h: New.
1072
1073 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
1074
1075         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
1076         OK for ST_REGS and FP_REGS before taking those classes into account.
1077
1078 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
1079
1080         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
1081         before checking for annulled branches.
1082
1083 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
1084
1085         * config/i386/i386.c (ix86_binary_operator_ok): Use
1086         satisfies_constraint_L.
1087
1088 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
1089             Michael Matz  <matz@suse.de>
1090
1091         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
1092         trunc (a + copysign (nextafter (0.5, 0.0), a)).
1093
1094 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
1095
1096         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1097         * doc/tm.texi: Regenerate.
1098         * targhooks.c (default_preferred_output_reload_class): Don't use
1099         PREFERRED_OUTPUT_RELOAD_CLASS macro.
1100         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
1101
1102 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
1103
1104         PR tree-optimization/48739
1105         * tree-ssa.c: Include cfgloop.h.
1106         (execute_update_addresses_taken): When updating ssa, if in loop closed
1107         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
1108         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
1109
1110 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
1111
1112         PR rtl-optimization/49936
1113         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
1114         for calculation of max register move costs.
1115
1116 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1117
1118         * c-parser.c (c_parser_postfix_expression): Convert operands of
1119         __builtin_complex to their semantic types.
1120
1121 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
1122
1123         PR middle-end/49721
1124         * explow.c (convert_memory_address_addr_space): Also permute the
1125         conversion and addition of constant for zero-extend.
1126
1127 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1128
1129         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
1130         * doc/extend.texi (__builtin_complex): Document.
1131
1132 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1133
1134         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
1135         beyond conversions.
1136         (convert_mult_to_widen): Convert constant inputs to the right type.
1137         (convert_plusminus_to_widen): Don't automatically reject inputs that
1138         are not an SSA_NAME.
1139         Convert constant inputs to the right type.
1140
1141 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1142
1143         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
1144         to the correct type.
1145
1146 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1147
1148         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
1149         unsigned inputs of different modes.
1150         (convert_plusminus_to_widen): Likewise.
1151
1152 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1153
1154         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
1155         'type'.
1156         Use 'type' from caller, not inferred from 'rhs'.
1157         Don't reject non-conversion statements. Do return lhs in this case.
1158         (is_widening_mult_p): Add new argument 'type'.
1159         Use 'type' from caller, not inferred from 'stmt'.
1160         Pass type to is_widening_mult_rhs_p.
1161         (convert_mult_to_widen): Pass type to is_widening_mult_p.
1162         (convert_plusminus_to_widen): Likewise.
1163
1164 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1165
1166         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
1167         Ensure the the larger type is the first operand.
1168
1169 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1170
1171         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
1172         unsupported unsigned multiplies to signed.
1173         (convert_plusminus_to_widen): Likewise.
1174
1175 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1176
1177         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
1178         conversion statement separating multiply-and-accumulate.
1179
1180 2011-08-19  Richard Guenther  <rguenther@suse.de>
1181
1182         PR tree-optimization/50067
1183         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
1184         offset only if we accounted for it.
1185
1186 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1187
1188         * config/arm/arm.md (maddhidi4): Remove '*' from name.
1189         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
1190         * optabs.c (find_widening_optab_handler_and_mode): New function.
1191         (expand_widen_pattern_expr): Use find_widening_optab_handler.
1192         (expand_binop_directly): Likewise.
1193         (expand_binop): Likewise.
1194         * optabs.h (find_widening_optab_handler): New macro define.
1195         (find_widening_optab_handler_and_mode): New prototype.
1196         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
1197         type precision rules.
1198         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
1199         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
1200         (is_widening_mult_rhs_p): Allow widening by more than one mode.
1201         Explicitly disallow mis-matched input types.
1202         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
1203         input types to fit the new handler.
1204         (convert_plusminus_to_widen): Likewise.
1205
1206 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
1207
1208         * expr.c (expand_expr_real_2): Use widening_optab_handler.
1209         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
1210         (gen_insn): $N now means $a must be wider than $b, not consecutive.
1211         * optabs.c (widened_mode): New function.
1212         (expand_widen_pattern_expr): Use widening_optab_handler.
1213         (expand_binop_directly): Likewise.
1214         (expand_binop): Likewise.
1215         * optabs.h (widening_optab_handlers): New struct.
1216         (optab_d): New member, 'widening'.
1217         (widening_optab_handler): New function.
1218         (set_widening_optab_handler): New function.
1219         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
1220         widening_optab_handler.
1221         (convert_plusminus_to_widen): Likewise.
1222
1223 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1224
1225         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
1226         pedantic.
1227         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
1228         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
1229
1230 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
1231
1232         * opth-gen.awk: Do not declare target save/restore structures and
1233         functions if IN_RTS defined.
1234
1235 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1236
1237         PR target/49437
1238         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
1239         when stack was realigned in interrupt handler prologue.
1240
1241 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
1242
1243         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
1244         (quals_from_declspecs): Assert _Noreturn not present.
1245         (grokdeclarator): Handle _Noreturn.
1246         (build_null_declspecs): Initialize noreturn_p.
1247         (declspecs_add_scspec): Handle RID_NORETURN.
1248         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
1249         (c_parser_attributes): Handle RID_NORETURN.
1250         * c-tree.h (struct c_declspecs): Add noreturn_p.
1251         * ginclude/stdnoreturn.h: New.
1252         * Makefile.in (USER_H): Add stdnoreturn.h.
1253
1254 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
1255
1256         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
1257         (OPTION_MASK_ISA_AVX_UNSET): Update.
1258         (OPTION_MASK_ISA_AVX2_UNSET): New.
1259         (ix86_handle_option): Handle OPT_mavx2 case.
1260         * config/i386/cpuid.h (bit_AVX2): New.
1261         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1262         AVX2 feature.
1263         * config/i386/i386-c.c (ix86_target_macros_internal):
1264         Conditionally define __AVX2__.
1265         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
1266         Define "core-avx2" processor alias.  Handle avx2 option.
1267         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
1268         * config/i386/i386.h (TARGET_AVX2): New.
1269         * config/i386/i386.opt (mavx2): New.
1270         * doc/invoke.texi: Document -mavx2.
1271
1272 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
1273
1274         PR rtl-optimization/49890
1275         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
1276         subclasses of class which is superset of a pressure class.
1277
1278 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1279             Igor Zamyatin <igor.zamyatin@intel.com>
1280
1281         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
1282         with HOST_WIDE_INT for isa_flag.
1283         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
1284         isa variables.
1285
1286         * config/i386/i386.c (ix86_target_string): Replace int with
1287         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
1288         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
1289         (pta_flags): Removed.
1290         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
1291         (pta): Use HOST_WIDE_INT on flags.
1292         (builtin_isa): Use HOST_WIDE_INT on isa.
1293         (ix86_add_new_builtins): Likewise.
1294         (def_builtin): Use HOST_WIDE_INT on mask.
1295         (def_builtin_const): Likewise.
1296         (builtin_description): Likewise.
1297
1298         * config/i386/i386.opt (ix86_isa_flags): Replace int with
1299         HOST_WIDE_INT.
1300         (ix86_isa_flags_explicit): Likewise.
1301         (x_ix86_isa_flags_explicit): Likewise.
1302
1303 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
1304
1305         PR rtl-optimization/50107
1306         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
1307         (ira_hard_reg_in_set_p): New.
1308
1309         * ira-color.c (calculate_saved_nregs): New.
1310         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
1311         hard regs.
1312         (allocno_reload_assign, fast_allocation): Use
1313         ira_hard_reg_set_intersection_p instead of
1314         ira_hard_reg_not_in_set_p.
1315
1316         * ira.c (setup_reg_renumber): Use
1317         ira_hard_reg_set_intersection_p instead of
1318         ira_hard_reg_not_in_set_p.
1319         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
1320         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
1321
1322         * ira-costs.c (ira_tune_allocno_costs): Use
1323         ira_hard_reg_set_intersection_p instead of
1324         ira_hard_reg_not_in_set_p.
1325
1326 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
1327             Igor Zamyatin <igor.zamyatin@intel.com>
1328
1329         * hwint.h (HOST_WIDE_INT_1): New.
1330
1331         * opt-functions.awk (switch_bit_fields): Initialize the
1332         host_wide_int field.
1333         (host_wide_int_var_name): New.
1334         (var_type_struct): Check and return HOST_WIDE_INT.
1335
1336         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
1337
1338         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
1339
1340         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
1341         check masks for HOST_WIDE_INT.
1342
1343         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
1344         (option_enabled): Likewise.
1345         (get_option_state): Likewise.
1346
1347         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
1348         to HOST_WIDE_INT.
1349
1350 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1351             Marc Glisse  <marc.glisse@normalesup.org>
1352
1353         PR libstdc++-v3/1773
1354         * target.def (decl_mangling_context): New C++ hook.
1355         * doc/tm.texi: Regenerate.
1356         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
1357         * config/sol2-protos.h: Group by source file.
1358         (solaris_cxx_decl_mangling_context): Declare.
1359         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
1360         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
1361         Use $<.
1362         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
1363         Add sol2-stubs.o to extra_objs.
1364
1365 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
1366
1367         PR target/50009
1368         * stor-layout.c (update_alignment_for_field): Don't ICE on
1369         packed flexible array members if ms_bitfield_layout_p.
1370
1371         PR target/50092
1372         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
1373         on the result before returning it.
1374
1375         PR debug/50017
1376         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
1377         is a debug stmt, use location of the first non-debug stmt after it.
1378
1379 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1380
1381         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
1382         (arm_size_rtx_costs): Likewise.
1383
1384 2011-08-18  Richard Guenther  <rguenther@suse.de>
1385
1386         * tree.h (tree_int_cst_msb): Remove.
1387         * tree.c (tree_int_cst_msb): Likewise.
1388         (tree_int_cst_sign_bit): Move from ...
1389         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
1390
1391 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1392
1393         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
1394         * doc/tm.texi: Regenerate.
1395         * target.def (rtx_costs): Add an opno parameter.
1396         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
1397         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
1398         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
1399         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
1400         * cse.c (COST_IN): Add an opno parameter.
1401         (notreg_cost): Likewise.  Update call to rtx_cost.
1402         (COST, fold_rtx): Update accordingly.
1403         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
1404         * expmed.c (emit_store_flag): Likewise.
1405         * optabs.c (avoid_expensive_constant): Add an opno parameter.
1406         Update call to rtx_cost.
1407         (expand_binop_directly, expand_binop): Likewise.
1408         (expand_twoval_binop, prepare_cmp_insn): Likewise.
1409         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
1410         (set_src_cost, get_full_set_src_cost): Update accordingly.
1411         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
1412         to target hook.
1413         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
1414         (default_adress_cost): Update calls to rtx_cost.
1415
1416         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
1417         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
1418         (arm_rtx_costs): Add an opno parameter.
1419         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
1420         adjust any recursive rtx-cost calls.
1421         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
1422         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
1423         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
1424         * config/cris/cris.c (cris_rtx_costs): Likewise.
1425         * config/frv/frv.c (frv_rtx_costs): Likewise.
1426         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
1427         * config/i386/i386.c (ix86_rtx_costs): Likewise.
1428         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
1429         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
1430         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
1431         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
1432         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
1433         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
1434         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
1435         * config/mep/mep.c (mep_rtx_cost): Likewise.
1436         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
1437         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
1438         (mips_zero_extend_cost): Add an opno parameter.
1439         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
1440         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
1441         to rtx_cost.
1442         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
1443         rtx-cost calls.
1444         * config/pa/pa.c (hppa_rtx_costs): Likewise.
1445         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
1446         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
1447         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
1448         (rs6000_debug_rtx_costs): Likewise.
1449         * config/s390/s390.c (s390_rtx_costs): Likewise.
1450         * config/score/score-protos.h (score_rtx_costs): Likewise.
1451         * config/score/score.c (score_rtx_costs): Likewise.
1452         * config/sh/sh.c (andcosts): Update call to rtx_cost.
1453         (sh_rtx_costs): Add an opno parameter.
1454         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
1455         * config/spu/spu.c (spu_rtx_costs): Likewise.
1456         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
1457         * config/v850/v850.c (v850_rtx_costs): Likewise.
1458         * config/vax/vax.c (vax_rtx_costs): Likewise.
1459         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
1460
1461 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1462
1463         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
1464         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
1465         rtx_cost.
1466         * calls.c (precompute_register_parameters): Likewise.
1467         * combine.c (expand_compound_operation, make_extraction): Likewise.
1468         (force_to_mode, distribute_and_simplify_rtx): Likewise.
1469         * dse.c (find_shift_sequence): Likewise.
1470         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
1471         * expr.c (compress_float_constant): Likewise.
1472         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
1473         * gcse.c (want_to_gcse_p): Likewise.
1474         * ifcvt.c (noce_try_sign_mask): Likewise.
1475         * loop-doloop.c (doloop_optimize): Likewise.
1476         * loop-invariant.c (create_new_invariant): Likewise.
1477         * optabs.c (avoid_expensive_constant): Likewise.
1478         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
1479         (try_replace_in_use, reload_cse_move2add): Likewise.
1480         * reload1.c (calculate_elim_costs_all_insns): Likewise.
1481         (note_reg_elim_costly): Likewise.
1482         * rtlanal.c (insn_rtx_cost): Likewise.
1483         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1484         * stmt.c (lshift_cheap_p): Likewise.
1485         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
1486         * config/avr/avr.c (final_prescan_insn): Likewise.
1487         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
1488         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
1489
1490 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
1491
1492         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
1493         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
1494         * cfgloopanal.c (seq_cost): Likewise.
1495         * loop-invariant.c (create_new_invariant): Likewise.
1496         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
1497         (reload_cse_move2add): Use get_full_set_rtx_cost.
1498
1499 2011-08-18  Richard Guenther  <rguenther@suse.de>
1500
1501         * expr.c (get_inner_reference): Fix typo in last change.
1502
1503 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
1504             Joseph Myers  <joseph@codesourcery.com>
1505
1506         PR tree-optimization/49963
1507         * hwint.c (absu_hwi): Define.
1508         * hwint.h (absu_hwi): Declare.
1509         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
1510         of abs_hwi.
1511         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
1512         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
1513
1514 2011-08-18  Richard Guenther  <rguenther@suse.de>
1515
1516         * expr.c (get_inner_reference): Sign-extend the constant
1517         twos-complement offset before doing arbitrary precision
1518         arithmetic on it.
1519         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
1520         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
1521         to get_constraint_for_ptr_offset.
1522
1523 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1524
1525         PR target/50068
1526         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
1527
1528 2011-08-17  Richard Guenther  <rguenther@suse.de>
1529
1530         * tree.h (convert_to_ptrofftype_loc): New function.
1531         (convert_to_ptrofftype): Define.
1532         * builtins.c (expand_builtin_bzero): Use size_type_node.
1533         (fold_builtin_bzero): Likewise.
1534         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
1535         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
1536         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
1537         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
1538         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
1539         * fold-const.c (build_range_check): Negate using the original type.
1540         (fold_unary_loc): Use fold_build_pointer_plus_loc.
1541         * gimple-fold.c (gimple_adjust_this_by_delta): Use
1542         convert_to_ptrofftype.
1543         * gimplify.c (gimplify_self_mod_expr): Likewise.
1544         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
1545         (graphite_create_new_loop_guard): Likewise.
1546         * graphite-sese-to-poly.c (my_long_long): Remove.
1547         (scop_ivs_can_be_represented): Adjust.
1548         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
1549         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
1550         * tree-loop-distribution.c (build_size_arg_loc): Use
1551         size_type_node.
1552         (generate_memset_zero): Simplify.
1553         * tree-mudflap.c: Use fold_convert, not convert.
1554         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
1555         its own type.
1556         (determine_offset): Likewise for DR_STEP.
1557         (valid_initializer_p): Likewise.
1558         * tree-profile.c (prepare_instrumented_value): Convert the pointer
1559         to an integer type of same size.
1560         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
1561         to sizetype without need.
1562         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
1563         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
1564         * tree-ssa-loop-manip.c (create_iv): Likewise.
1565         (determine_exit_conditions): Adjust comment.
1566         * tree-ssa-pre.c (create_expression_by_pieces): Use
1567         convert_to_ptrofftype.
1568         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
1569         * varasm.c (array_size_for_constructor): Compute using double_ints.
1570
1571 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1572
1573         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
1574         when generating an integer result where possible.  Short-cut
1575         comparison against 0 also for QImode.
1576
1577 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1578
1579         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
1580         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
1581         prototype.
1582         * config/spu/spu.c (spu_legitimize_reload_address): New function.
1583         (spu_legitimate_address_p): Do not check displacement if the base
1584         is an eliminable stack register.
1585
1586 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
1587
1588         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
1589         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
1590         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
1591         m32c_preferred_output_reload_class): Remove.
1592         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
1593         Change rclass argument and return types to reg_class_t. Use
1594         reg_class_subset_p instead of class_sizes.
1595         (m32c_preferred_output_reload_class): Make static. Change rclass
1596         argument and return types to reg_class_t.
1597         (TARGET_PREFERRED_RELOAD_CLASS,
1598         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1599
1600 2011-08-16  Kai Tietz  <ktietz@redhat.com>
1601
1602         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
1603
1604 2011-08-16  Richard GUenther  <rguenther@suse.de>
1605
1606         PR tree-optimization/50082
1607         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
1608         warnings here, instead of ...
1609         (ssa_forward_propagate_and_combine): ... here.
1610         (forward_propagate_into_comparison_1): Adjust.
1611         (forward_propagate_into_comparison): Likewise.
1612         (forward_propagate_into_gimple_cond): Likewise.
1613         (forward_propagate_into_cond): Likewise.
1614
1615 2011-08-16  Andreas Schwab  <schwab@redhat.com>
1616
1617         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
1618         instead of ggc_alloc_zone_vec_rtvec_def.
1619
1620 2011-08-16  Richard Guenther  <rguenther@suse.de>
1621
1622         * tree.h (ptrofftype_p): New helper function.
1623         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
1624         offset verification.
1625         (verify_gimple_assign_binary): Likewise.
1626         * tree.c (build2_stat): Likewise.
1627         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
1628         (reset_evolution_in_loop): Likewise.
1629         * tree-chrec.h (build_polynomial_chrec): Likewise.
1630
1631 2011-08-16  Liang Wang  <lwang1@marvell.com>
1632
1633         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
1634         ggc_alloc_zone_vec_rtvec_def.
1635
1636 2011-08-16  Richard Guenther  <rguenther@suse.de>
1637
1638         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
1639         helper factored out from ...
1640         (extract_range_from_binary_expr_1): ... here.  Re-structure
1641         to not glob handling too different tree codes.
1642
1643 2011-08-15  Richard Henderson  <rth@redhat.com>
1644
1645         PR middle-end/50006
1646         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
1647         setting out to include allocate_stack named pattern as well.
1648         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
1649         * stmt.c (expand_stack_restore): Likewise.
1650
1651 2011-08-15  Richard Guenther  <rguenther@suse.de>
1652
1653         PR middle-end/50082
1654         * fold-const.c (maybe_canonicalize_comparison_1): Properly
1655         convert the modified operand to the other operand type.
1656         (fold_comparison): Call maybe_canonicalize_comparison_1 with
1657         useless conversions stripped from comparison operands.
1658
1659 2011-08-15  Richard Guenther  <rguenther@suse.de>
1660
1661         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
1662         (extract_range_from_unary_expr_1): Restructure.
1663
1664 2011-08-15  Richard Guenther  <rguenther@suse.de>
1665
1666         PR tree-optimization/50058
1667         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
1668         copy matching.
1669
1670 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1671
1672         PR target/50022
1673         * config/arm/arm.c (output_move_double): Add 2 parameters
1674         to count the number of insns emitted and whether to emit or not.
1675         Use the flag to decide when to emit and count number of instructions
1676         that will be emitted.
1677         Handle case where output_move_double might be called for calculating
1678         lengths with an invalid constant.
1679         (arm_count_output_move_double_insns): Define.
1680         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
1681         (output_move_double): Adjust prototype.
1682         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
1683         output_move_double.
1684         ("*movdi_vfp_cortexa8"): Likewise and add attribute
1685         for ce_count.
1686         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
1687         ("*movdf_soft_insn"): Likewise.
1688         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
1689         ("*cirrus_thumb2_movdi"): Likewise.
1690         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
1691         ("*cirrus_movdf_hard_insn"): Likewise.
1692         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
1693         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
1694         ("mov<mode>_internal VMMX"): Likewise.
1695         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
1696
1697 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
1698
1699         * config/i386/i386.c (ix86_expand_round_sse4): New function.
1700         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
1701         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
1702         for TARGET_ROUND.
1703
1704         (rint<mode>2): Simplify TARGET_ROUND check.
1705         (floor<mode>2): Ditto.
1706         (ceil<mode>2): Ditto.
1707         (btrunc<mode>2): Ditto.
1708
1709 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
1710
1711         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
1712         as mmix_preferred_output_reload_class.
1713
1714 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
1715
1716         * PR target/49903
1717         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
1718         (branch_unspec): New insn.
1719         (branch): Beauty farm.
1720         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
1721         to be IF_THEN_ELSE.
1722         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
1723         New static functions.
1724         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
1725         Use CONST_INT_P.  Beauty.
1726
1727 2011-08-12  Richard Henderson  <rth@redhat.com>
1728
1729         PR rtl-opt/49994
1730         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
1731         * sched-deps.c (init_deps): Clear it.
1732         (deps_analyze_insn): Consume it.
1733         (sched_analyze_insn): Fill it.
1734
1735 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1736
1737         PR target/48328
1738         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
1739         for tbh instructions.
1740
1741 2011-08-12  Diego Novillo  <dnovillo@google.com>
1742
1743         * data-streamer.h (streamer_write_zero): Rename from output_zero.
1744         (streamer_write_uhwi): Rename from lto_output_uleb128.
1745         (streamer_write_hwi): Rename from output_sleb128.
1746         (streamer_write_string): Rename from lto_output_string.
1747         (streamer_string_index): Rename from lto_string_index.
1748         (streamer_write_string_with_length): Rename from
1749         lto_output_string_with_length.
1750         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
1751         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
1752         (streamer_read_string): Rename from lto_input_string.
1753         (streamer_read_indexed_string): Rename from input_string_internal.
1754         (streamer_read_uhwi): Rename from lto_input_uleb128.
1755         (streamer_read_hwi): Rename from lto_input_sleb128.
1756         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
1757         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
1758         (streamer_write_enum): Rename from lto_output_enum.
1759         (streamer_read_enum): Rename from lto_input_enum.
1760         (streamer_write_record_start): Rename from output_record_start.
1761         (streamer_read_record_start): Rename from input_record_start.
1762         (streamer_write_bitpack): Rename from lto_output_bitpack.
1763         (streamer_read_bitpack): Rename from lto_input_bitpack.
1764         (streamer_write_char_stream): Rename from lto_output_1_stream.
1765         (streamer_read_uchar): Rename from lto_input_1_unsigned.
1766         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
1767         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
1768         (streamer_read_string_cst): Rename from input_string_cst.
1769         (streamer_read_chain): Rename from lto_input_chain.
1770         (streamer_alloc_tree): Rename from lto_materialize_tree.
1771         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
1772         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
1773         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
1774         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
1775         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
1776         (streamer_write_chain): Rename from lto_output_chain.
1777         (streamer_write_tree_header): Rename from lto_output_tree_header.
1778         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
1779         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
1780         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
1781         (streamer_write_builtin): Rename from lto_output_builtin_tree.
1782         (streamer_check_handled_ts_structures): Rename from
1783         check_handled_ts_structures.
1784         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
1785         (streamer_tree_cache_insert_at): Rename from
1786         lto_streamer_cache_insert_at.
1787         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
1788         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
1789         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
1790         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
1791         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
1792         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
1793         (write_identifier): Rename from output_identifier.
1794         (write_ts_common_tree_pointers): Rename from
1795         lto_output_ts_common_tree_pointers.
1796         (write_ts_vector_tree_pointers): Rename from
1797         lto_output_ts_vector_tree_pointers.
1798         (write_ts_complex_tree_pointers): Rename from
1799         lto_output_ts_complex_tree_pointers.
1800         (write_ts_decl_minimal_tree_pointers): Rename from
1801         lto_output_ts_decl_minimal_tree_pointers.
1802         (write_ts_decl_common_tree_pointers): Rename from
1803         lto_output_ts_decl_common_tree_pointers.
1804         (write_ts_decl_non_common_tree_pointers): Rename from
1805         lto_output_ts_decl_non_common_tree_pointers.
1806         (write_ts_decl_with_vis_tree_pointers): Rename from
1807         lto_output_ts_decl_with_vis_tree_pointers.
1808         (write_ts_field_decl_tree_pointers): Rename from
1809         lto_output_ts_field_decl_tree_pointers.
1810         (write_ts_function_decl_tree_pointers): Rename from
1811         lto_output_ts_function_decl_tree_pointers.
1812         (write_ts_type_common_tree_pointers): Rename from
1813         lto_output_ts_type_common_tree_pointers.
1814         (write_ts_type_non_common_tree_pointers): Rename from
1815         lto_output_ts_type_non_common_tree_pointers.
1816         (write_ts_list_tree_pointers): Rename from
1817         lto_output_ts_list_tree_pointers.
1818         (write_ts_vec_tree_pointers): Rename from
1819         lto_output_ts_vec_tree_pointers.
1820         (write_ts_exp_tree_pointers): Rename from
1821         lto_output_ts_exp_tree_pointers.
1822         (write_ts_block_tree_pointers): Rename from
1823         lto_output_ts_block_tree_pointers.
1824         (write_ts_binfo_tree_pointers): Rename from
1825         lto_output_ts_binfo_tree_pointers.
1826         (write_ts_constructor_tree_pointers): Rename from
1827         lto_output_ts_constructor_tree_pointers.
1828         (write_ts_target_option): Rename from lto_output_ts_target_option.
1829         (write_ts_translation_unit_decl_tree_pointers): Rename from
1830         lto_output_ts_translation_unit_decl_tree_pointers.
1831         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
1832         Rename from lto_streamer_cache_add_to_node_array.
1833         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
1834         (record_common_node): Rename from lto_record_common_node.
1835
1836         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
1837         declarations.
1838         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
1839         function.
1840         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
1841         unused function.
1842         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
1843         (ipa-reference.o): Likewise.
1844         * lto-section-out.c: Include data-streamer.h.
1845         * ipa-reference.c: Include data-streamer.h.
1846
1847 2011-08-12  Nick Clifton  <nickc@redhat.com>
1848
1849         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
1850         * doc/md.texi (cmpstrn): Note that the comparison stops if both
1851         fetched bytes are zero.
1852         (cmpstr): Likewise.
1853         (cmpmem): Note that the comparison does not stop if both of the
1854         fetched bytes are zero.
1855
1856 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
1857
1858         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
1859         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
1860         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
1861         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
1862         to integer_type_node.
1863         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
1864         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
1865         * builtins.c (expand_builtin_in): Ditto.
1866         (mathfn_built_in_1): Ditto.
1867         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
1868         BUILT_IN_IFLOOR.
1869         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
1870         BUILT_IN_IROUND.
1871         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
1872         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
1873         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
1874
1875 2011-08-12  Richard Guenther  <rguenther@suse.de>
1876
1877         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
1878
1879 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
1880
1881         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
1882
1883 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
1884
1885         * config/arm/arm.c (get_label_padding): New function.
1886         (create_fix_barrier, arm_reorg): Use it.
1887
1888 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
1889
1890         PR target/49781
1891         * config/i386/i386.md (*lea_5_zext): New.
1892         (*lea_6_zext): Ditto.
1893         * config/i386/predicates.md (const_32bit_mask): New predicate.
1894         (lea_address_operand): Reject AND.
1895         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
1896         const_32bit_mask immediate.
1897         (ix86_print_operand_address): Handle AND.
1898         (memory_address_length): Ditto.
1899
1900 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
1901             Brian Hackett  <bhackett1024@gmail.com>
1902
1903         * plugin.def: Add event for finish_decl.
1904         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
1905         * c-decl.c (finish_decl): Invoke callbacks on above event.
1906         * doc/plugins.texi: Document above event.
1907
1908 2011-08-11  Richard Guenther  <rguenther@suse.de>
1909
1910         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
1911         lookups, make looking through aggregate copies stronger.
1912
1913 2011-08-11  Richard Henderson  <rth@redhat.com>
1914
1915         PR bootstrap/50018
1916         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
1917
1918 2011-08-11  Richard Guenther  <rguenther@suse.de>
1919
1920         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
1921         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
1922         (vrp_visit_stmt): Likewise.
1923
1924 2011-08-11  Richard Guenther  <rguenther@suse.de>
1925
1926         PR middle-end/50040
1927         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
1928         load of the other piece with TREE_NO_WARNING.
1929         * tree-flow.h (warn_uninit): Adjust prototype.
1930         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
1931         the base variable and the expression that is used separately.
1932         Properly query all TREE_NO_WARNING flags.
1933         (struct walk_data): Remove.
1934         (warn_uninitialized_var): Likewise.
1935         (warn_uninitialized_vars): Do not walk gimple pieces but simply
1936         look at all SSA uses of the statement.  Handle unused memory
1937         separately.
1938         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
1939
1940 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
1941
1942         * config/rx/rx.md (movsicc): Allow register to register transfers.
1943         (*movsicc): Likewise.
1944         (*stcc): Restrict this pattern to EQ and NE compares.
1945         (*stcc_reg): New pattern.  Works for any comparison but only for
1946         register transfers.
1947
1948 2011-08-11   Diego Novillo  <dnovillo@google.com>
1949
1950         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
1951         Call stream_write_tree instead of output_record_start.
1952         (lto_output_ts_binfo_tree_pointers): Likewise.
1953
1954         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
1955         Convert it to a macro.
1956         (stream_read_tree): Likewise.
1957
1958         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
1959         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
1960
1961         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
1962         and tree_read_bitfields.
1963         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
1964         (lto_write_tree): Call it.
1965         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
1966         * streamer-hooks.h (struct streamer_hooks): Remove fields
1967         name, is_streamable and alloc_tree. Update all users.
1968         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
1969         (lto_materialize_tree): ... here.
1970         Handle CALL_EXPR codes.
1971         Remove call to lto_streamer_cache_append.
1972         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
1973         * tree-streamer.h (tree_read_bitfields): Declare.
1974
1975         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
1976         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
1977         * tree-streamer.h (stream_read_tree): New.  Replace all calls
1978         to lto_input_tree with it.
1979         (stream_write_tree): New.  Replace all calls to lto_output_tree,
1980         lto_output_tree_ref and lto_output_tree_or_ref with it.
1981         * lto-streamer-in.c (lto_read_tree): Inline code from
1982         lto_streamer_read_tree.
1983         (lto_input_tree): Move from tree-streamer-in.c.
1984         * lto-streamer-out.c (lto_output_tree_ref): Make static.
1985         Remove handling of NULL values for EXPR.
1986         Do not handle EXPRs that are not indexable.
1987         (lto_write_tree): Move from tree-streamer-out.c.
1988         Inline lto_streamer_write_tree.
1989         (lto_output_tree): Move from tree-streamer-out.c.
1990         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
1991         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
1992         (lto_preload_common_nodes): Likewise.
1993         Remove assertions and adjustments for nodes
1994         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
1995         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
1996         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
1997         * lto-streamer.h (lto_input_tree): Declare.
1998         (lto_output_tree_ref): Remove.
1999         * streamer-hooks.h (struct streamer_hooks): Remove fields
2000         preload_common_nodes, indexable_with_decls_p,
2001         pack_value_fields, unpack_value_fields and output_tree_header.
2002         Update all users.
2003         * tree-streamer-in.c (lto_materialize_tree): Make extern.
2004         (lto_input_tree_pointers): Likewise.
2005         (lto_read_tree): Move to lto-streamer-in.c.
2006         (lto_input_integer_cst): Make extern.
2007         (lto_get_pickled_tree): Likewise.
2008         (lto_get_builtin_tree): Likewise.
2009         (lto_input_tree): Move to lto-streamer-in.c.
2010         * tree-streamer-out.c (pack_value_fields): Make extern.
2011         (lto_output_tree_or_ref): Remove.  Replace all callers with
2012         calls to stream_write_tree.
2013         (lto_output_builtin_tree): Make extern.
2014         (lto_streamer_write_tree): Inline into lto_write_tree.
2015         (lto_output_tree_pointers): Make extern.
2016         (lto_output_tree_header): Likewise.
2017         (lto_output_integer_cst): Likewise.
2018         (lto_write_tree): Move to lto-streamer-out.c.
2019         (lto_output_tree): Likewise.
2020         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
2021         (preload_common_nodes): Likewise.
2022         (lto_streamer_cache_create): Call it.
2023         * tree-streamer.h: Include streamer-hooks.h.
2024         (stream_write_tree): New.
2025         (stream_read_tree): New.
2026         (lto_input_tree): Remove.
2027         (lto_materialize_tree): Declare.
2028         (lto_input_tree_pointers): Declare.
2029         (lto_get_pickled_tree): Declare.
2030         (lto_get_builtin_tree): Declare.
2031         (lto_input_integer_cst): Declare.
2032         (lto_output_tree_header): Declare.
2033         (pack_value_fields): Declare.
2034         (lto_output_tree_pointers): Declare.
2035         (lto_output_integer_cst): Declare.
2036         (lto_output_builtin_tree): Declare.
2037
2038 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2039
2040         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
2041         only if producer writes to the register given by regno.
2042
2043 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2044             Alexander Monakov  <amonakov@ispras.ru>
2045
2046         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
2047         (sched_get_condition_with_rev_uncached): ... this.  Factor out
2048         condition caching logic into ...
2049         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
2050         attempt to use cache for instructions with zero luid.
2051         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
2052         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
2053
2054 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2055
2056         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
2057         get_seqno_for_a_jump.  Update the caller.
2058         (get_seqno_by_succs): New.  Use it ...
2059         (get_seqno_for_a_jump): ... here to find a seqno if looking at
2060         predecessors was not sufficient.
2061         (get_seqno_by_preds): Include head in iteration range, exclude insn.
2062
2063 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2064
2065         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
2066
2067 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2068
2069         * sel-sched-ir.h (register_unavailable_p): Declare.
2070         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
2071         (set_unavailable_target_for_expr): ... here to properly test
2072         availability of a register.
2073         (speculate_expr): Ditto.
2074         * sel-sched.c (substitute_reg_in_expr): Ditto.
2075         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
2076
2077 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
2078
2079         * sel-sched.c (verify_target_availability): Fix usage of
2080         hard_regno_nregs.
2081
2082 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2083
2084         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
2085         recognized by cannot_copy_insn_p hook and volatile instructions.
2086
2087 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
2088
2089         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
2090
2091 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
2092
2093         * doc/md.texi (define_bypass): Say that the instruction names can
2094         be filename-style globs.
2095         * Makefile.in (FNMATCH_H): Define.
2096         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
2097         * genattrtab.c: Include fnmatch.h.
2098         (bypass_list): Change field name from "insn" to "pattern".
2099         (gen_bypass_1): Update accordingly.
2100         (process_bypasses): Use fnmatch to check for matches between
2101         insn reservations and define_bypasses.
2102         * genautomata.c: Include fnmatch.h.
2103         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
2104         and out_pattern respectively.
2105         (gen_bypass, insert_bypass): Update accordingly.
2106         (for_each_matching_insn, process_bypass_2, process_bypass_1)
2107         (process_bypass): New functions.
2108         (process_decls): Use process_bypass.  Update after field name changes.
2109
2110 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
2111
2112         PR target/49687
2113         * config/avr/avr.md (smulqi3_highpart): New insn.
2114         (umulqi3_highpart): New insn.
2115         (*subqi3.ashiftrt7): New insn.
2116         (smulhi3_highpart): New expander.
2117         (umulhi3_highpart): Nex expander.
2118         (*smulhi3_highpart_call): New insn.
2119         (*umulhi3_highpart_call): New insn.
2120         (extend_u): New code attribute.
2121         (extend_prefix): Rename code attribute to extend_su.
2122         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
2123         widening QI/HI multiply.
2124
2125 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
2126
2127         PR tree-optimization/50039
2128         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
2129         that DEF_STMT has a stmt_vec_info.
2130
2131 2011-08-10  Richard Guenther  <rguenther@suse.de>
2132
2133         * tree.h (can_trust_pointer_alignment): Remove.
2134         * builtins.c (can_trust_pointer_alignment): Remove.
2135
2136 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2137
2138         * c-typeck.c (scalar_to_vector): New function. Try scalar to
2139         vector conversion.
2140         (stv_conv): New enum for scalar_to_vector return type.
2141         (build_binary_op): Adjust.
2142         * doc/extend.texi: Description of scalar to vector expansion.
2143
2144 2011-08-10  Richard Guenther  <rguenther@suse.de>
2145
2146         * tree.h (get_pointer_alignment): Remove max-align argument.
2147         (get_object_alignment): Likewise.
2148         * builtins.c (get_object_alignment_1): Adjust.
2149         (get_object_alignment): Remove max-align argument.
2150         (get_pointer_alignment): Likewise.
2151         (expand_builtin_strlen): Adjust.
2152         (expand_builtin_memcpy): Likewise.
2153         (expand_builtin_mempcpy_args): Likewise.
2154         (expand_builtin_strncpy): Likewise.
2155         (expand_builtin_memset_args): Likewise.
2156         (expand_builtin_memcmp): Likewise.
2157         (expand_builtin_strcmp): Likewise.
2158         (expand_builtin_strncmp): Likewise.
2159         (get_builtin_sync_mem): Likewise.
2160         (fold_builtin_memset): Likewise.
2161         (fold_builtin_memory_op): Likewise.
2162         (expand_builtin_memory_chk): Likewise.
2163         * emit-rtl.c (get_mem_align_offset): Likewise.
2164         (set_mem_attributes_minus_bitpos): Likewise.
2165         * expr.c (expand_assignment): Likewise.
2166         (expand_expr_real_1): Likewise.
2167         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
2168         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
2169         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
2170         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2171         * value-prof.c (gimple_stringops_transform): Likewise.
2172
2173 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
2174
2175         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
2176         * doc/tm.texi: Regenerate.
2177
2178 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
2179
2180         PR target/29560
2181         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
2182         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
2183         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
2184         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
2185         shift target is unused.
2186
2187 2011-08-10  Richard Guenther  <rguenther@suse.de>
2188
2189         PR tree-optimization/49937
2190         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
2191         using get_object_alignment_1.
2192
2193 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
2194
2195         * config/i386/i386.c (ix86_emit_i387_round): New function.
2196         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
2197         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
2198         Use ix86_emit_i387_round to expand round function for i387 math.
2199         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
2200         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
2201
2202 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2203
2204         * config/sync.c: Move to ../libgcc.
2205         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
2206         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
2207         Remove.
2208
2209 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
2210
2211         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
2212         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
2213         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
2214         Change 'from' and 'to' arguments type to reg_class_t.
2215         (TARGET_REGISTER_MOVE_COST): Define.
2216
2217 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
2218
2219         PR target/50026
2220         Revert:
2221         PR rtl-optimization/49990
2222         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
2223         ignore classes which can not change mode.
2224         (find_costs_and_classes): Ditto.
2225
2226 2011-08-09  Richard Guenther  <rguenther@suse.de>
2227
2228         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
2229         information for ranges with only negative values.
2230         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
2231         BIT_AND_EXPR handling to handle ranges with negative values.
2232
2233 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
2234
2235         * config/i386/i386.c: Remove traling spaces.
2236         * config/i386/sse.md: Likewise.
2237         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
2238         (*fma_fmsub_<mode>): Likewise.
2239         (*fma_fnmadd_<mode>): Likewise.
2240         (*fma_fnmsub_<mode>): Likewise.
2241
2242 2011-08-09  Nick Clifton  <nickc@redhat.com>
2243
2244         * config/rx/rx.md: Disable extender peepholes at -O3.
2245
2246 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
2247
2248         PR target/49781
2249         * config/i386/i386.md (reload_noff_load): New.
2250         (reload_noff_store): Ditto.
2251         * config/i386/i386.c (ix86_secondary_reload): Use
2252         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
2253         double-word moves from/to non-offsetable addresses instead of
2254         generating XMM temporary.
2255
2256 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
2257
2258         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
2259
2260 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
2261
2262         PR tree-optimization/50014
2263         * tree-vect-loop.c (vectorizable_reduction): Get def type before
2264         calling vect_get_vec_def_for_stmt_copy ().
2265
2266 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
2267
2268         PR rtl-optimization/49990
2269         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
2270         ignore classes which can not change mode.
2271         (find_costs_and_classes): Ditto.
2272
2273 2011-08-08  Richard Henderson  <rth@redhat.com>
2274
2275         PR middle-end/49990
2276         * config/i386/i386.c (ix86_expand_prologue): Call
2277         for SEH target gen_prologue_use instead of gen_blockage
2278         at prologue's end.
2279
2280 2011-08-08  Martin Jambor  <mjambor@suse.cz>
2281
2282         PR middle-end/49923
2283         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
2284         memory alignment.
2285
2286 2011-08-08   Diego Novillo  <dnovillo@google.com>
2287
2288         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
2289         (DATA_STREAMER_H): New.
2290         (GIMPLE_STREAMER_H): New.
2291         (TREE_STREAMER_H): New.
2292         (STREAMER_HOOKS_H): New.
2293         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
2294         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
2295         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
2296         (data-streamer.o): New.
2297         (data-streamer-in.o): New.
2298         (data-streamer-out.o): New.
2299         (gimple-streamer-in.o): New.
2300         (gimple-streamer-out.o): New.
2301         (streamer-hooks.o): New.
2302         (tree-streamer.o): New.
2303         (tree-streamer-in.o): New.
2304         (tree-streamer-out.o): New.
2305         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
2306         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
2307         GIMPLE_STREAMER_H and TREE_STREAMER_H.
2308         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
2309         GIMPLE_STREAMER_H and TREE_STREAMER_H.
2310         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
2311         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
2312         (ipa-inline-analysis.o): Likewise.
2313         (ipa-pure-const.o): Likewise.
2314         * data-streamer-in.c: New.
2315         * data-streamer-out.c: New.
2316         * data-streamer.c: New.
2317         * data-streamer.h: New.
2318         * gimple-streamer-in.c: New.
2319         * gimple-streamer-out.c: New.
2320         * gimple-streamer.h: New.
2321         * ipa-inline-analysis.c: Include data-streamer.h.
2322         * ipa-prop.c: Include data-streamer.h.
2323         * ipa-pure-const.c: Include data-streamer.h.
2324         * lto-cgraph.c: Include data-streamer.h.
2325         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
2326         (lto_input_widest_uint_uleb128): Likewise.
2327         (lto_input_sleb128): Likewise.
2328         (bp_unpack_var_len_unsigned): Likewise.
2329         (bp_unpack_var_len_int): Likewise.
2330         * lto-section-out.c (lto_output_uleb128_stream): Move to
2331         data-streamer-out.c.
2332         (lto_output_widest_uint_uleb128_stream): Likewise.
2333         (lto_output_sleb128_stream): Likewise.
2334         (bp_pack_var_len_unsigned): Likewise.
2335         (bp_pack_var_len_int): Likewise.
2336         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
2337         (struct string_slot): Remove.  Update all users.
2338         (lto_tag_check_set): Make extern.
2339         (lto_tag_check_range): Move to lto-streamer.h.
2340         (lto_tag_check): Likewise.
2341         (hash_string_slot_node): Remove.  Update all users.
2342         (eq_string_slot_node): Remove.  Update all users.
2343         (string_for_index): Move to data-streamer-in.c
2344         (input_string_internal): Likewise.
2345         (input_string_cst): Move to tree-streamer-in.c.
2346         (input_identifier): Likewise.
2347         (lto_input_string): Move to data-streamer-in.c
2348         (input_record_start): Move to data-streamer.h
2349         (canon_file_name): Use new definition of struct string_slot
2350         from data-streamer.h.  Set S_SLOT.LEN.
2351         (lto_input_location): Make extern.
2352         (lto_input_chain): Move to tree-streamer-in.c.
2353         (lto_init_eh): Make extern.
2354         (input_phi): Move to gimple-streamer-in.c.
2355         (input_gimple_stmt): Likewise.
2356         (input_bb): Likewise.
2357         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
2358         (unpack_ts_real_cst_value_fields): Likewise.
2359         (unpack_ts_fixed_cst_value_fields): Likewise.
2360         (unpack_ts_decl_common_value_fields): Likewise.
2361         (unpack_ts_decl_wrtl_value_fields): Likewise.
2362         (unpack_ts_decl_with_vis_value_fields): Likewise.
2363         (unpack_ts_function_decl_value_fields): Likewise.
2364         (unpack_ts_type_common_value_fields): Likewise.
2365         (unpack_ts_block_value_fields): Likewise.
2366         (unpack_ts_translation_unit_decl_value_fields): Likewise.
2367         (unpack_value_fields): Likewise.
2368         (lto_materialize_tree): Likewise.
2369         (lto_input_ts_common_tree_pointers): Likewise.
2370         (lto_input_ts_vector_tree_pointers): Likewise.
2371         (lto_input_ts_complex_tree_pointers): Likewise.
2372         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
2373         (lto_input_ts_decl_common_tree_pointers): Likewise.
2374         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
2375         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
2376         (lto_input_ts_field_decl_tree_pointers): Likewise.
2377         (lto_input_ts_function_decl_tree_pointers): Likewise.
2378         (lto_input_ts_type_common_tree_pointers): Likewise.
2379         (lto_input_ts_type_non_common_tree_pointers): Likewise.
2380         (lto_input_ts_list_tree_pointers): Likewise.
2381         (lto_input_ts_vec_tree_pointers): Likewise.
2382         (lto_input_ts_exp_tree_pointers): Likewise.
2383         (lto_input_ts_block_tree_pointers): Likewise.
2384         (lto_input_ts_binfo_tree_pointers): Likewise.
2385         (lto_input_ts_constructor_tree_pointers): Likewise.
2386         (lto_input_ts_target_option): Likewise.
2387         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
2388         (lto_input_tree_pointers): Likewise.
2389         (lto_get_pickled_tree): Likewise.
2390         (lto_get_builtin_tree): Likewise.
2391         (lto_read_tree): Likewise.
2392         (lto_input_integer_cst): Likewise.
2393         (lto_input_tree): Likewise.
2394         * lto-streamer-out.c: Include data-streamer.h,
2395         gimple-streamer.h and streamer-hooks.h.
2396         (struct string_slot): Move to data-streamer.h.
2397         (hash_string_slot_node): Likewise.
2398         (eq_string_slot_node): Likewise.
2399         (lto_string_index): Move to data-streamer-out.c.
2400         (lto_output_string_with_length): Likewise.
2401         (lto_output_string): Likewise.
2402         (output_string_cst): Move to tree-streamer-out.c.
2403         (output_identifier): Likewise.
2404         (output_zero): Move to data-streamer-out.c
2405         (output_uleb128): Likewise.
2406         (output_sleb128): Likewise.
2407         (output_record_start): Move to data-streamer.h
2408         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
2409         (pack_ts_real_cst_value_fields): Likewise.
2410         (pack_ts_fixed_cst_value_fields): Likewise.
2411         (pack_ts_decl_common_value_fields): Likewise.
2412         (pack_ts_decl_wrtl_value_fields): Likewise.
2413         (pack_ts_decl_with_vis_value_fields): Likewise.
2414         (pack_ts_function_decl_value_fields): Likewise.
2415         (pack_ts_type_common_value_fields): Likewise.
2416         (pack_ts_block_value_fields): Likewise.
2417         (pack_ts_translation_unit_decl_value_fields): Likewise.
2418         (pack_value_fields): Likewise.
2419         (lto_output_chain): Likewise.
2420         (lto_output_ts_common_tree_pointers): Likewise.
2421         (lto_output_ts_vector_tree_pointers): Likewise.
2422         (lto_output_ts_complex_tree_pointers): Likewise.
2423         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
2424         (lto_output_ts_decl_common_tree_pointers): Likewise.
2425         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
2426         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
2427         (lto_output_ts_field_decl_tree_pointers): Likewise.
2428         (lto_output_ts_function_decl_tree_pointers): Likewise.
2429         (lto_output_ts_type_common_tree_pointers): Likewise.
2430         (lto_output_ts_type_non_common_tree_pointers): Likewise.
2431         (lto_output_ts_list_tree_pointers): Likewise.
2432         (lto_output_ts_vec_tree_pointers): Likewise.
2433         (lto_output_ts_exp_tree_pointers): Likewise.
2434         (lto_output_ts_block_tree_pointers): Likewise.
2435         (lto_output_ts_binfo_tree_pointers): Likewise.
2436         (lto_output_ts_constructor_tree_pointers): Likewise.
2437         (lto_output_ts_target_option): Likewise.
2438         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
2439         (lto_output_tree_pointers): Likewise.
2440         (lto_output_tree_header): Likewise.
2441         (lto_output_builtin_tree): Likewise.
2442         (lto_write_tree): Likewise.
2443         (lto_output_integer_cst): Likewise.
2444         (lto_output_tree): Likewise.
2445         (output_phi): Move to gimple-streamer-out.c.
2446         (output_gimple_stmt): Likewise.
2447         (output_bb): Likewise.
2448         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
2449         (streamer_hooks): Move to streamer-hooks.c.
2450         (check_handled_ts_structures): Move to tree-streamer.c
2451         (lto_streamer_cache_add_to_node_array): Likewise.
2452         (lto_streamer_cache_insert_1): Likewise.
2453         (lto_streamer_cache_insert): Likewise.
2454         (lto_streamer_cache_insert_at): Likewise.
2455         (lto_streamer_cache_append): Likewise.
2456         (lto_streamer_cache_lookup): Likewise.
2457         (lto_streamer_cache_get): Likewise.
2458         (lto_record_common_node): Likewise.
2459         (lto_preload_common_nodes): Likewise.
2460         (lto_streamer_cache_create): Likewise.
2461         (lto_streamer_cache_delete): Likewise.
2462         (streamer_hooks_init): Move to streamer-hooks.c.
2463         * lto-streamer.h: Include diagnostic.h
2464         (struct output_block, struct lto_input_block,
2465         struct data_in, struct bitpack_d): Remove forward declarations.
2466         (struct bitpack_d): Move to data-streamer.h.
2467         (struct lto_streamer_cache_d): Move to tree-streamer.h.
2468         (struct streamer_hooks): Move to streamer-hooks.h.
2469         (bp_pack_var_len_unsigned): Move to data-streamer.h.
2470         (bp_pack_var_len_int): Likewise.
2471         (bp_unpack_var_len_unsigned): Likewise.
2472         (bp_unpack_var_len_int): Likewise.
2473         (lto_input_location): Declare.
2474         (lto_tag_check_set): Declare.
2475         (lto_init_eh): Declare.
2476         (lto_output_tree_ref): Declare.
2477         (lto_output_location): Declare.
2478         (bitpack_create): Move to data-streamer.h.
2479         (bp_pack_value): Likewise.
2480         (lto_output_bitpack): Likewise.
2481         (lto_input_bitpack): Likewise.
2482         (bp_unpack_value): Likewise.
2483         (lto_output_1_stream): Likewise.
2484         (lto_input_1_unsigned): Likewise.
2485         (lto_output_int_in_range): Likewise.
2486         (lto_input_int_in_range): Likewise.
2487         (bp_pack_int_in_range): Likewise.
2488         (bp_unpack_int_in_range): Likewise.
2489         (lto_output_enum): Likewise.
2490         (lto_input_enum): Likewise.
2491         (bp_pack_enum): Likewise.
2492         (bp_unpack_enum): Likewise.
2493         * streamer-hooks.c: New.
2494         * streamer-hooks.h: New.
2495         * tree-streamer-in.c: New.
2496         * tree-streamer-out.c: New.
2497         * tree-streamer.c: New.
2498         * tree-streamer.h: New.
2499
2500 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2501
2502         * gthr-posix95.h: Remove.
2503         * gthr.h [_PTHREADS95]: Remove.
2504         * configure.ac (enable_threads): Remove posix95.
2505         * configure: Regenerate.
2506         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
2507
2508 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
2509
2510         PR target/49781
2511         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
2512         SImode addresses.
2513         (ix86_print_operand_address): Handle zero-extended addresses.
2514         (memory_address_length): Add length of addr32 prefix for
2515         zero-extended addresses.
2516         (ix86_secondary_reload): Handle moves to/from double-word general
2517         registers from/to zero-extended addresses.
2518         * config/i386/predicates.md (lea_address_operand): Reject
2519         zero-extended operands.
2520
2521 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
2522
2523         PR other/48007
2524         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
2525
2526         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
2527         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
2528
2529         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
2530         (_Unwind_Context_Reg_Val): Likewise.
2531         (_Unwind_Get_Unwind_Word): Likewise.
2532         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
2533         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
2534         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
2535         for EXTENDED_CONTEXT_BIT.
2536         (__frame_state_for): Likewise.
2537         (uw_init_context_1): Likewise.
2538         (_Unwind_GetGR): Updated.
2539         (_Unwind_SetGR): Likewise.
2540         (_Unwind_GetGRPtr): Likewise.
2541         (_Unwind_SetGRPtr): Likewise.
2542         (_Unwind_SetGRValue): Likewise.
2543         (_Unwind_GRByValue): Likewise.
2544         (uw_install_context_1): Likewise.
2545
2546         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
2547         ASSUME_EXTENDED_UNWIND_CONTEXT.
2548         * doc/tm.texi: Regenerated.
2549
2550 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2551
2552         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
2553
2554 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2555
2556         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
2557         Linux/GNU-specific.
2558         (DEC Alpha Options, -mtune): Likewise.
2559         (MIPS Options, -march): native is supported on IRIX.
2560
2561 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2562
2563         * config/sparc/driver-sparc.c: New file.
2564         * config/sparc/x-sparc: New file.
2565         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
2566         * config/sparc/sparc.opt (native): New value for enum processor_type.
2567         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
2568         * config/sparc/sparc.c (sparc_option_override): Abort if
2569         PROCESSOR_NATIVE gets here.
2570         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
2571         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
2572         DRIVER_SELF_SPECS): Define.
2573         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
2574         (SPARC Options, -mtune): Likewise.
2575         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
2576         Substitute result.
2577         * configure: Regenerate.
2578         * Makefile.in (EXTRA_GCC_LIBS): Set.
2579         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
2580         (cpp$(exeext)): Likewise.
2581
2582 2011-08-08  Richard Guenther  <rguenther@suse.de>
2583
2584         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
2585         split out from ...
2586         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
2587         by composition.
2588
2589 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
2590
2591         PR tree-optimization/50005
2592         * ipa-inline-analysis (remap_predicate): Add cast to
2593         silence signed/unsigned comparison warning.
2594
2595 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
2596
2597         * modulo-sched.c (get_sched_window): Use a table for the debug output.
2598         Print the current ii.
2599         (sms_schedule_by_order): Reduce whitespace in dump line.
2600
2601 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
2602
2603         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
2604         and one loop for successors.  Fix upper bound of memory range.
2605
2606 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
2607
2608         PR target/50001
2609         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
2610         (TARGET_INSTANTIATE_DECLS): New define.
2611
2612 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
2613             Mikael Morin   <mikael.morin@sfr.fr>
2614
2615         * Makefile.in (INCLUDES_FOR_TARGET): New.
2616         (LIBGCC2_CFLAGS): Use it.
2617         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
2618
2619 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
2620
2621         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
2622         frame->save_regs_using_mov calculation.
2623
2624 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
2625
2626         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
2627         * config/i386/sse.md (castmode): New mode attribute.
2628         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
2629         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
2630
2631 2011-08-05  Jan Hubicka  <jh@suse.cz>
2632
2633         PR middle-end/49494
2634         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
2635
2636 2011-08-05  Jan Hubicka  <jh@suse.cz>
2637
2638         PR middle-end/49500
2639         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
2640         handle aliases.
2641         (create_emultls_var):New function.
2642         (ipa_lower_emutls): Handle aliases correctly.
2643
2644 2011-08-05  Jan Hubicka  <jh@suse.cz>
2645
2646         PR middle-end/49735
2647         * ipa-inline.c (recursive_inlining): Look through aliases.
2648
2649 2011-08-05  Jason Merrill  <jason@redhat.com>
2650
2651         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
2652         declarations to beginning of function.
2653
2654 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
2655
2656         PR rtl-optimization/49900
2657         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
2658         ensure basic blocks stay in the same order.
2659
2660 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
2661
2662         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
2663         store_bit_field.
2664         (s390_expand_atomic): Same.
2665
2666 2011-08-05  Richard Henderson  <rth@redhat.com>
2667
2668         PR rtl-opt/49977
2669         * dwarf2cfi.c (scan_insn_after): Split out of ...
2670         (scan_trace): ... here.  Correctly place notes wrt sequences.
2671
2672 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
2673             Richard Henderson  <rth@redhat.com>
2674
2675         PR rtl-opt/49982
2676         * expr.c (fixup_args_size_notes): Look through no-op moves.
2677
2678 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
2679
2680         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
2681         of "m" for operand 0.  Add type and mode attribute.
2682         (*pushxf_nointeger"): Use "<" constraint for operand 0.
2683         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
2684         constraint instead of "o" for opreand 1.
2685         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
2686         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
2687         operand 0, alternative 4.
2688         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
2689
2690 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
2691
2692         * config/i386/predicates.md (lea_address_operand): Rename from
2693         no_seg_address_operand.
2694         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
2695         (*lea_1_zext): Ditto.
2696         (*lea_2): Ditto.
2697         (*lea_2_zext): Ditto.
2698
2699 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
2700
2701         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
2702         parts.base and parts.index.
2703         * config/i386/predicates.md (aligned_operand): Ditto.
2704         (cmpxchg8b_pic_memory_operand): Ditto.
2705
2706 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2707
2708         * config/soft-fp: Move to ../libgcc.
2709         * Makefile.in (SFP_MACHINE): Remove.
2710         (libgcc-support): Remove $(SFP_MACHINE) dependency.
2711         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
2712         * config/arm/t-arm-softfp: Move to
2713         ../libgcc/config/arm/t-softfp.
2714         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
2715         * config/c6x/t-c6x-softfp: Remove.
2716         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
2717         * config/i386/t-fprules-softfp: Move to
2718         ../libgcc/config/t-softfp-tf.
2719         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
2720         * config/ia64/t-fprules-softfp: Remove.
2721         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
2722         * config/lm32/t-fprules-softfp: Remove.
2723         * config/moxie/sfp-machine.h: Remove.
2724         * config/moxie/t-moxie-softfp: Remove.
2725         * config/rs6000/darwin-ldouble-format: Move to
2726         ../libgcc/config/rs6000/ibm-ldouble-format.
2727         * config/rs6000/darwin-ldouble.c: Move to
2728         ../libgcc/config/rs6000/ibm-ldouble.c
2729         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
2730         * config/rs6000/libgcc-ppc64.ver: Likewise.
2731         * config/rs6000/sfp-machine.h: Likewise.
2732         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
2733         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
2734         (LIB2FUNCS_EXTRA): Remove.
2735         (TARGET_LIBGCC2_CFLAGS): Remove.
2736         * config/rs6000/t-aix52: Likewise
2737         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
2738         $(srcdir)/config/rs6000/darwin-ldouble.c.
2739         (SHLIB_MAPFILES): Remove.
2740         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
2741         $(srcdir)/config/rs6000/darwin-ldouble.c.
2742         * config/rs6000/t-fprules-softfp: Move to
2743         ../libgcc/config/t-softfp-sfdf.
2744         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
2745         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
2746         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
2747         $(srcdir)/config/rs6000/darwin-ldouble.c.
2748         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
2749         * config/score/t-score-softfp: Remove.
2750         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
2751         soft-fp/t-softfp from tmake_file.
2752         (arm*-*-uclinux*): Likewise.
2753         (arm*-*-ecos-elf): Likewise.
2754         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
2755         (arm*-*-rtems*): Likewise.
2756         (arm*-*-elf): Likewise.
2757         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
2758         tmake_file.
2759         (moxie-*-uclinux*): Likewise.
2760         (moxie-*-rtems*): Likewise.
2761         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
2762         tmake_file.
2763         (lm32-*-rtems*): Likewise.
2764         (lm32-*-uclinux*): Likewise.
2765         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
2766         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
2767         (powerpc-*-linux*, powerpc64-*-linux*): Remove
2768         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
2769         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
2770         tmake_file.
2771         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
2772         tmake_file.
2773         (tic6x-*-uclinux): Likewise.
2774         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
2775         soft-fp/t-softfp from tmake_file.
2776         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
2777         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
2778         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
2779         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
2780         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
2781
2782 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2783
2784         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
2785         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
2786         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
2787         TPBIT, TPBIT_FUNCS.
2788         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
2789         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
2790         Remove.
2791         * config/arm/t-vxworks: Likewise.
2792         * config/arm/t-wince-pe: Likewise.
2793         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
2794         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2795         * config/bfin/t-bfin-elf: Likewise.
2796         * config/bfin/t-bfin-linux: Likewise.
2797         * config/bfin/t-bfin-uclinux: Likewise.
2798         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
2799         Remove.
2800         * config/fr30/t-fr30: Likewise.
2801         * config/frv/t-frv: Likewise.
2802         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
2803         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2804         * config/m32c/t-m32c: Likewise.
2805         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
2806         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2807         * config/mcore/t-mcore: Likewise.
2808         * config/mep/t-mep: Likewise.
2809         * config/microblaze/t-microblaze: Likewise.
2810         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
2811         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2812         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
2813         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2814         * config/mn10300/t-linux: Remove.
2815         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2816         * config/pdp11/t-pdp11: Likewise.
2817         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
2818         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
2819         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2820         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
2821         * config/rs6000/t-aix52: Likewise.
2822         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
2823         $(srcdir)/config/rs6000/ppc64-fp.c.
2824         * config/rs6000/t-fprules-fpbit: Remove.
2825         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
2826         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2827         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
2828         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2829         * config/sparc/t-elf: Likewise.
2830         * config/sparc/t-leon: Likewise.
2831         * config/sparc/t-leon3: Likewise.
2832         * config/spu/t-spu-elf: Likewise.
2833         (DPBIT_FUNCS): Remove.
2834         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
2835         * config/v850/t-v850: Likewise.
2836         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
2837         (avr-*-*): Likewise.
2838         (h8300-*-rtems*): Set libgcc_tm_file.
2839         (h8300-*-elf*): Likewise.
2840         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
2841         tmake_file.
2842         (powerpc-*-eabisim*): Likewise.
2843         (powerpc-*-elf*): Likewise.
2844         (powerpc-*-eabialtivec*): Likewise.
2845         (powerpc-xilinx-eabi*): Likewise.
2846         (powerpc-*-eabi*): Likewise.
2847         (powerpc-*-rtems*): Likewise.
2848         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
2849         (powerpcle-*-elf*): Likewise.
2850         (powerpcle-*-eabisim*): Likewise.
2851         (powerpcle-*-eabi*): Likewise.
2852         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
2853         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
2854         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
2855         Remove.
2856
2857 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2858
2859         * Makefile.in (UNWIND_H): Remove.
2860         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
2861         ../libgcc/Makefile.in.
2862         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
2863         (LIBUNWINDDEP): Remove.
2864         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
2865         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
2866         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
2867         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
2868         Don't copy $(UNWIND_H).
2869         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
2870         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
2871         * aclocal.m4: Regenerate.
2872         * configure: Regenerate.
2873         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
2874         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
2875         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
2876         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
2877         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
2878         * config/arm/libunwind.S, config/arm/pr-support.c,
2879         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
2880         ../libgcc/config/arm.
2881         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
2882         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
2883         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
2884         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
2885         ($(T)frvend$(objext)): Likewise.
2886         * config/ia64/t-glibc (LIB2ADDEH): Remove.
2887         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
2888         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
2889         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
2890         ../libgcc/config/ia64.
2891         * config/ia64/t-hpux (LIB2ADDEH): Remove.
2892         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
2893         * config/ia64/t-vms (LIB2ADDEH): Remove.
2894         * config/ia64/vms.h (UNW_IVMS_MODE,
2895         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
2896         * config/picochip/t-picochip (LIB2ADDEH): Remove.
2897         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
2898         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
2899         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
2900         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
2901         $(srcdir)/../libgcc to refer to unwinder sources.
2902         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
2903         * config/t-darwin (LIB2ADDEH): Remove.
2904         * config/t-freebsd (LIB2ADDEH): Remove.
2905         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
2906         * config/t-libunwind-elf: Move to ../libgcc/config.
2907         * config/t-linux (LIB2ADDEH): Remove.
2908         * config/t-sol2 (LIB2ADDEH): Remove.
2909         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
2910         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
2911
2912 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
2913
2914         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
2915
2916         * doc/invoke.texi: Document core-avx-i.
2917
2918 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2919
2920         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
2921
2922 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
2923
2924         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
2925         result of multiple results reduction when extracting the final
2926         value using scalar code.
2927
2928 2011-08-05  Richard Guenther  <rguenther@suse.de>
2929
2930         PR tree-optimization/49984
2931         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
2932
2933 2011-08-05  Richard Guenther  <rguenther@suse.de>
2934
2935         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
2936         return true for constant integer ranges.
2937         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
2938         BIT_IOR_EXPR handling.
2939
2940 2011-08-04  Kai Tietz  <ktietz@redhat.com>
2941
2942         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
2943         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
2944
2945 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
2946
2947         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
2948         pattern def statement, and its access macro.
2949         (NUM_PATTERNS): Set to 5.
2950         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2951         pattern def statement.
2952         (vect_transform_loop): Likewise.
2953         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
2954         function vect_recog_over_widening_pattern ().
2955         (vect_operation_fits_smaller_type): New function.
2956         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
2957         Likewise.
2958         (vect_pattern_recog_1): Move the code that marks pattern
2959         statements to vect_mark_pattern_stmts (), and call it.  Update
2960         documentation.
2961         * tree-vect-stmts.c (vect_supportable_shift): New function.
2962         (vect_analyze_stmt): Handle pattern def statement.
2963         (new_stmt_vec_info): Initialize pattern def statement.
2964
2965 2011-08-04  Richard Henderson  <rth@redhat.com>
2966
2967         PR target/49964
2968         * config/i386/i386.c (ix86_expand_call): Don't create nested
2969         PARALLELs for TARGET_VZEROUPPER.
2970         (ix86_split_call_vzeroupper): Fix extraction of the original call.
2971         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
2972         recognize nested PARALLELs.
2973         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
2974         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
2975         *sibcall_value_pop_vzeroupper): Likewise.
2976
2977 2011-08-04  Richard Henderson  <rth@redhat.com>
2978
2979         PR middle-end/49968
2980         * calls.c (expand_call): Use fixup_args_size_notes for
2981         emit_stack_restore.
2982         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
2983         in non-standard modes.
2984
2985 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
2986
2987         * gcc.c (self_spec): New variable.
2988         (static_specs): Add self_spec.
2989         (main): Call do_self_spec on "self_spec" specs after reading
2990         user specs files.  Move compare_debug handling right after that.
2991
2992 2011-08-04  Richard Guenther  <rguenther@suse.de>
2993
2994         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
2995         (value_range_nonnegative_p): New function.
2996         (ssa_name_nonnegative_p): Use it.
2997         (value_range_constant_singleton): New function.
2998         (op_with_constant_singleton_value_range): Use it.
2999         (extract_range_from_binary_expr_1): New function, split out from ...
3000         (extract_range_from_binary_expr): ... this.  Remove fallback
3001         constant folding done here.
3002
3003 2011-08-04  Richard Guenther  <rguenther@suse.de>
3004
3005         PR tree-optimization/49806
3006         * tree-vrp.c (op_with_boolean_value_range_p): New function.
3007         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
3008         a new statement for a final conversion to bool.
3009
3010 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
3011
3012         * gengtype-state.c: Include "bconfig.h" if
3013         GENERATOR_FILE is defined, "config.h" otherwise.
3014         * gengtype.c: Likewise.
3015         * gengtype-lex.l: Likewise.
3016         * gengtype-parse.c: Likewise.
3017         * Makefile.in (gengtype-lex.o-warn): New variable.
3018         (plugin_resourcesdir): Likewise.
3019         (plugin_bindir): Likewise.
3020         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
3021         (MOSTLYCLEANFILES): Add gengtype$(exeext).
3022         (native): Depend on gengtype$(exeext) is $enable_plugin
3023         is set to "yes".
3024         (gtype.state): Depend on s-gtype. Use temporary file.
3025         (gengtype-lex.o): New rule.
3026         (gengtype-parse.o): Likewise.
3027         (gengtype-state.o): Likewise.
3028         (gengtype$(exeext)): Likewise.
3029         (install-gengtype): Likewise.
3030         (gengtype.o): Likewise.
3031         (build/gengtype.o): Depend on version.h.
3032         (build/gengtype-state): Depend on double-int.h, version.h,
3033         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
3034         (install-plugin): Depend on install-gengtype.
3035
3036 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
3037
3038         PR middle-end/49905
3039         * tree.h (init_attributes): New prototype.
3040         * attribs.c (init_attributes): No longer static.
3041
3042 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3043
3044         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
3045         maybe_suffix.
3046
3047 2011-08-03   David Li  <davidxl@google.com>
3048
3049         * tree-optimize.c (execute_fixup_cfg): Fix up entry
3050         outgoing edge counts after inlining.
3051
3052 2011-08-03   David Li  <davidxl@google.com>
3053
3054         * profile.c (compute_branch_probabilities): Compute
3055         function frequency after profile annotation.
3056
3057 2011-08-04  Alan Modra  <amodra@gmail.com>
3058
3059         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
3060         use_backchain_to_restore_sp initialisation.
3061         (rs6000_legitimate_offset_address_p): Simplify offset test.
3062
3063 2011-08-03  Richard Henderson  <rth@redhat.com>
3064
3065         * config/spu/spu.md: Use define_c_enum instead of define_constants.
3066         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
3067         (UNSPECV_NOP): New.
3068
3069 2011-08-03  Richard Henderson  <rth@redhat.com>
3070
3071         PR target/34888
3072         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
3073
3074 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
3075
3076         PR tree-optimization/49948
3077         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
3078
3079 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
3080
3081         * config/m32c/m32c.c (class_sizes): Remove.
3082         (reduce_class): Change arguments and return type to reg_class_t.
3083         Change type cc var to HARD_REG_SET. Change type best var to
3084         reg_class_t. Change type best_size var to unsigned int. Remove
3085         initialization class_sizes var. Use reg_class_size array instead
3086         of class_sizes. Use reg_class_contents array instead
3087         of class_contents.
3088
3089 2011-08-03  Richard Guenther  <rguenther@suse.de>
3090
3091         PR middle-end/49958
3092         * fold-const.c (fold_binary_loc): Only associate
3093         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
3094         overflow wraps.
3095
3096 2011-08-03  Alan Modra  <amodra@gmail.com>
3097
3098         PR rtl-optimization/49941
3099         * jump.c (mark_jump_label): Comment.
3100         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
3101         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
3102         (mark_used_flags): Don't mark RETURN.
3103
3104 2011-08-03  Richard Guenther  <rguenther@suse.de>
3105
3106         PR tree-optimization/49938
3107         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
3108         deal with a POLYNOMIAL_CHREC.
3109
3110 2011-08-03  Revital Eres  <revital.eres@linaro.org>
3111
3112         * modulo-sched.c (calculate_stage_count,
3113         calculate_must_precede_follow, get_sched_window,
3114         try_scheduling_node_in_cycle, remove_node_from_ps): Add
3115         declaration.
3116         (update_node_sched_params, set_must_precede_follow, optimize_sc):
3117         New functions.
3118         (reset_sched_times): Call update_node_sched_params.
3119         (sms_schedule): Call optimize_sc.
3120         (get_sched_window): Change function arguments.
3121         (sms_schedule_by_order): Update call to get_sched_window.
3122         Call set_must_precede_follow.
3123         (calculate_stage_count): Add function argument.
3124
3125 2011-08-02  Richard Henderson  <rth@redhat.com>
3126
3127         PR target/49864
3128         PR target/49879
3129         * reg-notes.def (REG_ARGS_SIZE): New.
3130         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
3131         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
3132         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
3133         different stack levels.
3134         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
3135         (maybe_move_args_size_note): New.
3136         (combine_stack_adjustments_for_block): Use it.
3137         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
3138         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
3139         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
3140         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
3141         (cur_cfa): New.
3142         (queued_args_size): Remove.
3143         (add_cfi_args_size): Assert size is non-negative.
3144         (stack_adjust_offset, dwarf2out_args_size): Remove.
3145         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
3146         (notice_args_size, notice_eh_throw): New.
3147         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
3148         (dwarf2out_frame_debug_adjust_cfa): Likewise.
3149         (dwarf2out_frame_debug_cfa_offset): Likewise.
3150         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
3151         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
3152         (change_cfi_row): Don't emit args_size.
3153         (maybe_record_trace_start_abnormal): Split out from ...
3154         (maybe_record_trace_start): Here.  Set args_size_undefined.
3155         (create_trace_edges): Update to match.
3156         (scan_trace): Handle REG_ARGS_SIZE.
3157         (connect_traces): Connect args_size between EH insns.
3158         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
3159         * explow.c (suppress_reg_args_size): New.
3160         (adjust_stack_1): Split out from ...
3161         (adjust_stack): ... here.
3162         (anti_adjust_stack): Use it.
3163         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
3164         * expr.c (mem_autoinc_base): New.
3165         (fixup_args_size_notes): New.
3166         (emit_single_push_insn_1): Rename from emit_single_push_insn.
3167         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
3168         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
3169         * reload1.c (reload_as_needed): Likewise.
3170         * rtl.h (fixup_args_size_notes): Declare.
3171
3172 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
3173
3174         PR bootstrap/49914
3175         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
3176         of abs.
3177         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3178         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
3179
3180 2011-08-02  Richard Henderson  <rth@redhat.com>
3181
3182         * config/h8300/h8300.c (push, pop): Return the insn.
3183         (h8300_swap_into_er6): Generate correct unwind info.
3184         (h8300_swap_out_of_er6): Likewise.
3185         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
3186         complex cfa expression.
3187         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
3188
3189 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
3190
3191         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3192
3193 2011-08-02  Richard Henderson  <rth@redhat.com>
3194
3195         PR target/49878
3196         * config/h8300/h8300.c (h8300_move_ok): New.
3197         * config/h8300/h8300-protos.h: Declare it.
3198         * config/h8300/h8300.md (P): New mode iterator.
3199         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
3200         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
3201         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
3202         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
3203         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
3204         and pushqi1_h8300hs_normal; use PRE_MODIFY and
3205         register_no_sp_elim_operand.
3206         (*pushhi1_h8300hs_<P>): Similarly.
3207         (pushqi1, pushhi1, pushhi1_h8300): Remove.
3208         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
3209
3210 2011-08-02  Richard Henderson  <rth@redhat.com>
3211
3212         PR target/49881
3213         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
3214
3215 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
3216
3217         * c-parser.c (enum c_parser_prec): New enum, moved from within
3218         c_parser_binary_expression.
3219         (c_parser_binary_expression): Add PREC argument.  Stop parsing
3220         if operator has lower or equal precedence than PREC.
3221         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
3222         callers.
3223         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
3224         Adjust c_finish_omp_atomic caller.
3225         (c_parser_omp_taskyield): New function.
3226         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
3227         (c_parser_omp_clause_name): Handle final and mergeable clauses.
3228         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
3229         functions.
3230         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
3231         and PRAGMA_OMP_CLAUSE_MERGEABLE.
3232         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
3233         (c_parser_omp_clause_reduction): Handle min and max.
3234         * c-typeck.c (c_finish_omp_clauses): Don't complain about
3235         const qualified predetermined vars in firstprivate clause.
3236         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3237         Handle MIN_EXPR and MAX_EXPR.
3238         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
3239         and OMP_CLAUSE_MERGEABLE.
3240         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
3241         and OMP_ATOMIC_CAPTURE_NEW.
3242         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
3243         OMP_CLAUSE_MERGEABLE.
3244         (omp_clause_code_name): Likewise.
3245         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3246         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
3247         and OMP_CLAUSE_MERGEABLE.
3248         (OMP_CLAUSE_FINAL_EXPR): Define.
3249         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
3250         OMP_CLAUSE_MERGEABLE.
3251         (expand_task_call): Likewise.
3252         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
3253         (expand_omp_atomic_fetch_op): Handle cases where old or new
3254         value is needed afterwards.
3255         (expand_omp_atomic): Call expand_omp_atomic_load resp.
3256         expand_omp_atomic_store.
3257         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
3258         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
3259         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
3260         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3261         * tree-nested.c (convert_nonlocal_omp_clauses,
3262         convert_local_omp_clauses): Likewise.
3263         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
3264         OMP_ATOMIC_CAPTURE_NEW): New.
3265         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
3266         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
3267         New inlines.
3268         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
3269         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
3270         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
3271
3272 2011-08-02  Kai Tietz  <ktietz@redhat.com>
3273
3274         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
3275         boolean-type.
3276         (ssa_forward_propagate_and_combine): Interprete result of
3277         forward_propagate_comparison.
3278         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
3279         boolean-typed operands for comparisons.
3280
3281 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
3282
3283         * config/avr/libgcc.S: Gather related function in the
3284         same input section.
3285         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
3286         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
3287         references.
3288         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
3289         __udivmodsi4, __divmodsi4, __prologue_saves__,
3290         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
3291         __do_copy_data, __do_clear_bss, __do_global_ctors,
3292         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
3293
3294 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
3295
3296         PR target/47766
3297         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
3298         (stack_protect_test): The pattern compares ptr_mode value.
3299
3300 2011-08-02  Alan Modra  <amodra@gmail.com>
3301
3302         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
3303         note for save_LR_around_toc_setup sequence.
3304
3305 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3306
3307         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
3308
3309 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
3310             Joseph Myers  <joseph@codesourcery.com>
3311
3312         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
3313         * hwint.c: Include diagnostic-core.h.
3314         (abs_hwi): New.
3315         (gcd): Moved here...
3316         (pos_mul_hwi): New.
3317         (mul_hwi): New.
3318         (least_common_multiple): Moved here...
3319         * hwint.h (gcd): ... from here.
3320         (least_common_multiple): ... from here.
3321         (HOST_WIDE_INT_MIN): New.
3322         (HOST_WIDE_INT_MAX): New.
3323         (abs_hwi): Declared.
3324         (gcd): Declared.
3325         (pos_mul_hwi): Declared.
3326         (mul_hwi): Declared.
3327         (least_common_multiple): Declared.
3328         * omega.c (check_pos_mul): Removed.
3329         (check_mul): Removed.
3330         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
3331         mul_hwi instead of check_mul.
3332
3333 2011-08-01  Richard Henderson  <rth@redhat.com>
3334
3335         PR target/49881
3336         * config/avr/avr.h (PUSH_ROUNDING): New.
3337         * config/avr/avr.md (pushqi1): Rename from *pushqi.
3338         (*pushhi, *pushsi, *pushsf): Remove.
3339         (MPUSH): New mode iterator.
3340         (push<MPUSH>1): New expander.
3341
3342 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
3343
3344         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
3345         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
3346         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
3347         mmix_preferred_output_reload_class): Remove.
3348         * config/mmix/mmix.c (mmix_preferred_reload_class,
3349         mmix_preferred_output_reload_class): Make static. Change rclass
3350         argument and return type to reg_class_t.
3351         (TARGET_PREFERRED_RELOAD_CLASS,
3352         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3353
3354 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
3355
3356         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
3357         handling.
3358
3359 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3360
3361         PR target/47766
3362         * config/i386/i386.md (PTR): New.
3363         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
3364         (stack_protect_test): Likewise.
3365         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
3366         (stack_tls_protect_set_<mode>): Likewise.
3367         (stack_tls_protect_test_<mode>): Likewise.
3368
3369 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
3370
3371         PR target/49927
3372         * config/i386/i386.c (ix86_address_subreg_operand): New.
3373         (ix86_decompose_address): Use ix86_address_subreg_operand.
3374         (ix86_legitimate_address_p): Do not assert that subregs satisfy
3375         register_no_elim_operand in DImode.
3376
3377 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
3378
3379         PR tree-optimization/49926
3380         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
3381         in a chain doesn't have uses both inside and outside the loop.
3382
3383 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
3384
3385         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
3386         * config/avr/avr-devices.c (avr_mcu_types): Use it.
3387         * config/avr/avr-mcus.def (AVR_MCU): Use it.
3388         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
3389         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
3390         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
3391         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
3392         to detect if XJMP must not be skipped.
3393
3394 2011-08-02  Alan Modra  <amodra@gmail.com>
3395
3396         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
3397         Delete.
3398         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
3399         (rs6000_emit_prologue): Don't prematurely return when
3400         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
3401         save_toc_in_prologue case.
3402         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
3403         calls_alloca.
3404
3405 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
3406
3407         * config/avr/avr-devices.c: Delete SVN property svn:executable.
3408         * config/avr/predicates.md: Ditto.
3409         * config/avr/driver-avr.c: Ditto.
3410         * config/avr/genopt.sh: Set SVN property svn:executable to *.
3411
3412 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3413
3414         * calls.c (emit_library_call_value_1): Declare size only if
3415         BLOCK_REG_PADDING is defined.
3416
3417 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
3418
3419         PR target/49547
3420         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
3421         (x86_64-*-*): Likewise.
3422         * config/i386/i386.opt (mlzcnt): New.
3423         * config/i386/abmintrin.h: File removed.
3424         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
3425         * config/i386/lzcntintrin.h: ... here.  New file.
3426         (__lzcnt): Rename to ...
3427         (__lzcnt32): ... this.
3428         * config/i386/bmiintrin.h (head): Update copyright year.
3429         (__lzcnt_u16): Removed.
3430         (__lzcnt_u32): Likewise.
3431         (__lzcnt_u64): Likewise.
3432         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
3433         is defined, remove abmintrin.h.
3434         * config/i386/cpuid.h (bit_LZCNT): New.
3435         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3436         LZCNT feature.
3437         * config/i386/i386-c.c (ix86_target_macros_internal): Define
3438         __LZCNT__ if needed.
3439         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
3440         (ix86_option_override_internal): Handle LZCNT option.
3441         (ix86_valid_target_attribute_inner_p): Likewise.
3442         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
3443         * config/i386/i386.h (TARGET_LZCNT): New.
3444         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
3445         * config/i386/i386.md (clz<mode>2): Update insn constraint.
3446         (clz<mode>2_lzcnt): Likewise.
3447         * doc/invoke.texi: Mention -mlzcnt option.
3448         * doc/extend.texi: Likewise.
3449
3450 2011-08-01  Julian Brown  <julian@codesourcery.com>
3451
3452         * configure.ac (fixed-point): Add ARM support.
3453         * configure: Regenerate.
3454         * config/arm/arm.c (arm_fixed_mode_set): New struct.
3455         (arm_set_fixed_optab_libfunc): New.
3456         (arm_set_fixed_conv_libfunc): New.
3457         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
3458         ARM-specific names.
3459         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
3460         return values in SImode.
3461         (arm_return_in_msb): Return fixed-point types in the msb.
3462         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
3463         upwards.
3464         (arm_scalar_mode_supported_p): Support fixed-point modes.
3465         (arm_vector_mode_supported_p): Support vector fixed-point modes.
3466         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
3467         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
3468         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
3469         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
3470         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
3471         New mode iterators.
3472         (qaddsub_suf): New mode attribute.
3473         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
3474         vector modes.
3475         * config/arm/predicates.md (sat_shift_operator): New predicate.
3476         * config/arm/arm-fixed.md: New.
3477         * config/arm/arm.md: Include arm-fixed.md.
3478         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
3479
3480 2011-08-01  Julian Brown  <julian@codesourcery.com>
3481
3482         * calls.c (emit_library_call_value_1): Support padding for libcall
3483         arguments and return values.
3484         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
3485         downwards in big-endian mode.
3486
3487 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3488
3489         PR debug/49887
3490         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
3491         * config/sol2-protos.h: Likewise.
3492         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
3493         solaris_code_end.
3494         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
3495         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
3496         solaris_file_end.
3497         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
3498
3499 2011-08-01  Julian Brown  <julian@codesourcery.com>
3500
3501         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
3502
3503 2011-08-01  Julian Brown  <julian@codesourcery.com>
3504
3505         * final.c (output_addr_const): Print fixed-point constants as
3506         decimal not hex.
3507
3508 2011-08-01  Richard Guenther  <rguenther@suse.de>
3509
3510         * stor-layout.c (initialize_sizetypes): Properly sign-extend
3511         bitsiztype TYPE_MAX_VALUE.
3512
3513 2011-08-01  Julian Brown  <julian@codesourcery.com>
3514
3515         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
3516         comparison helpers.
3517
3518 2011-07-31  Richard Henderson  <rth@redhat.com>
3519
3520         * config/h8300/crti.asm: Add flags to .section directive.
3521         * config/h8300/crtn.asm: Likewise.
3522
3523 2011-07-31  Richard Henderson  <rth@redhat.com>
3524
3525         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
3526         * tree.c (build_common_tree_nodes): Likewise.
3527
3528 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
3529
3530         PR target/49880
3531         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
3532         (divsi3_i1): Likewise.
3533
3534 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3535
3536         PR tree-optimization/49749
3537         * tree-ssa-reassoc.c (get_rank): New forward declaration.
3538         (PHI_LOOP_BIAS): New macro.
3539         (phi_rank): New function.
3540         (loop_carried_phi): Likewise.
3541         (propagate_rank): Likewise.
3542         (get_rank): Add calls to phi_rank and propagate_rank.
3543
3544 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
3545
3546         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
3547         of TARGET_64BIT.
3548         (PTRDIFF_TYPE): Likewise.
3549
3550 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
3551
3552         PR target/49920
3553         * config/i386/i386.md (strset): Do not expand strset_singleop
3554         when %eax or $edi are fixed.
3555         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
3556         (*strsetsi_1): Ditto.
3557         (*strsethi_1): Ditto.
3558         (*strsetqi_1): Ditto.
3559         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
3560         (*rep_stossi): Ditto.
3561         (*rep_stosqi): Ditto.
3562         (*strlenqi_1): Ditto.
3563         (cmpstrnsi): Also fail when %ecx is fixed.
3564         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
3565         (*cmpstrnqi_1): Ditto.
3566         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
3567         (*strmovsi_1): Ditto.
3568         (*strmovhi_1): Ditto.
3569         (*strmovqi_1): Ditto.
3570         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
3571         (*rep_movsi): Ditto.
3572         (*rep_movqi): Ditto.
3573
3574 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
3575
3576         PR target/47908
3577         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
3578         Disable instruction scheduling for non-ColdFire targets.
3579         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3580
3581 2011-07-31  Revital Eres  <revital.eres@linaro.org>
3582
3583         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
3584         of anti-dep edge from a branch.
3585         (add_cross_iteration_register_deps): Create anti-dep edge from
3586         a branch.
3587
3588 2011-07-31  Revital Eres  <revital.eres@linaro.org>
3589
3590         * modulo-sched.c: Change comment.
3591         (reset_sched_times): Fix print message.
3592         (print_partial_schedule): Add print info.
3593
3594 2011-07-31  Tom de Vries  <tom@codesourcery.com>
3595
3596         PR middle-end/43513
3597         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
3598         get_object_alignment and TYPE_ALIGN.
3599
3600 2011-07-30  Tom de Vries  <tom@codesourcery.com>
3601
3602         PR middle-end/43513
3603         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
3604         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
3605
3606 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3607
3608         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
3609         <sys/sbd.h>.
3610         (cpu_types): New array.
3611         (cputype): New function.
3612         (host_detect_local_cpu): Only define buf, f if !__sgi__.
3613         Use scaninvent instead of /proc/cpuinfo if __sgi__.
3614         * config.host: Also use driver-native.o, mips/x-native on
3615         mips-sgi-irix*.
3616         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
3617         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
3618         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
3619
3620 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
3621
3622         PR middle-end/49897
3623         PR middle-end/49898
3624         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
3625         in nested parallel and outer is a gimple_reg, mark it as addressable
3626         and set its bit in task_shared_vars bitmap too.
3627
3628 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
3629
3630         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
3631
3632 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3633
3634         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
3635         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
3636         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
3637         AMASK_LOCKPFTCHOK): Define.
3638         (host_detect_local_cpu): Remove buf, f, cpu_names.
3639         Define cpu_types, implver, amask.
3640         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
3641         native CPU.
3642         * config.host: Also use driver-alpha.o, alpha/x-alpha on
3643         alpha*-dec-osf*.
3644         * config/alpha/osf5.h [__alpha__ || __alpha]
3645         (host_detect_local_cpu): Declare.
3646         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
3647         (DRIVER_SELF_SPECS): Define.
3648
3649 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
3650
3651         PR target/47715
3652         * config/i386/i386.md (*load_tp_x32): New.
3653         (*load_tp_x32_zext): Ditto.
3654         (*add_tp_x32): Ditto.
3655         (*add_tp_x32_zext): Ditto.
3656         (*load_tp_<mode>): Disable for TARGET_X32 targets.
3657         (*add_tp_<mode>): Ditto.
3658         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
3659         ptr_mode and convert to Pmode if needed.
3660
3661 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
3662
3663         PR target/49687
3664         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
3665         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
3666         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
3667         Add X to register footprint: Clobber r26/r27.
3668
3669 2011-07-29  Richard Guenther  <rguenther@suse.de>
3670
3671         * builtins.c (fold_builtin_signbit): Build the comparison
3672         with a proper type.
3673
3674 2011-07-29  Richard Guenther  <rguenther@suse.de>
3675
3676         PR tree-optimization/49893
3677         * tree-predcom.c (suitable_reference_p): Volatile references
3678         are not suitable.
3679
3680 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
3681
3682         PR target/49313
3683         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
3684         (__ctzsi2): Result for 0 may be undefined.
3685         (__ctzhi2): Result for 0 may be undefined.
3686         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
3687         (__popcountsi2): Ditto. And don't clobber r26.
3688         (__popcountdi2): Ditto. And don't clobber r27.
3689         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
3690         (parityhi2): New expand.
3691         (paritysi2): New expand.
3692         (popcounthi2): New expand.
3693         (popcountsi2): New expand.
3694         (clzhi2): New expand.
3695         (clzsi2): New expand.
3696         (ctzhi2): New expand.
3697         (ctzsi2): New expand.
3698         (ffshi2): New expand.
3699         (ffssi2): New expand.
3700         (copysignsf3): New insn.
3701         (bswapsi2): New expand.
3702         (*parityhi2.libgcc): New insn.
3703         (*parityqihi2.libgcc): New insn.
3704         (*paritysihi2.libgcc): New insn.
3705         (*popcounthi2.libgcc): New insn.
3706         (*popcountsi2.libgcc): New insn.
3707         (*popcountqi2.libgcc): New insn.
3708         (*popcountqihi2.libgcc): New insn-and-split.
3709         (*clzhi2.libgcc): New insn.
3710         (*clzsihi2.libgcc): New insn.
3711         (*ctzhi2.libgcc): New insn.
3712         (*ctzsihi2.libgcc): New insn.
3713         (*ffshi2.libgcc): New insn.
3714         (*ffssihi2.libgcc): New insn.
3715         (*bswapsi2.libgcc): New insn.
3716
3717 2011-07-29  Richard Guenther  <rguenther@suse.de>
3718
3719         * tree-vrp.c (get_value_range): Only set parameter default
3720         definitions to varying, leave others at undefined.
3721         (extract_range_from_binary_expr): Fix undefined handling.
3722         (vrp_visit_phi_node): Handle merged undefined state.
3723
3724 2011-07-29  Wei Guozhi  <carrot@google.com>
3725
3726         PR rtl-optimization/49799
3727         * combine.c (make_compound_operation): Check if the bit field is valid
3728         before change it to bit field extraction.
3729
3730 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
3731
3732         PR rtl-optimization/49891
3733         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
3734         newly created returnjumps.
3735
3736 2011-07-28  DJ Delorie  <dj@redhat.com>
3737
3738         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
3739         local frame in a naked function, and produce a suitable error for
3740         that specific case.
3741
3742         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
3743         registers to be reloaded in HI classes when the target is HI.
3744
3745 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
3746
3747         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
3748         bound_one, bound_two.
3749
3750 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
3751
3752         PR middle-end/48648
3753         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
3754         CLAST assignments.
3755         (translate_clast): Same.
3756         (translate_clast_assignment): New.
3757
3758 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
3759
3760         PR tree-optimization/49876
3761         * sese.c (rename_uses): Do not return false on gloog_error: set
3762         the new_expr to integer_zero_node and continue code generation.
3763         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
3764
3765 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
3766
3767         PR debug/49846
3768         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
3769         arguments also check if they aren't initialized with a MODE_INT
3770         mode of the same size.
3771
3772 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
3773
3774         * expr.c (get_bit_range): Handle *MEM_REF's.
3775
3776 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
3777
3778         * rtlanal.c (tablejump_p): False for returns.
3779         * reorg.c (first_active_target_insn): New static function.
3780         (find_end_label): Set JUMP_LABEL for a new returnjump.
3781         (optimize_skip, get_jump_flags, rare_destination,
3782         mostly_true_jump, get_branch_condition,
3783         steal_delay_list_from_target, own_thread_p,
3784         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
3785         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
3786         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
3787         * jump.c (delete_related_insns): Likewise.
3788         (jump_to_label_p): New function.
3789         (redirect_target): New static function.
3790         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
3791         (redirect_jump_1): Assert that the new label is nonnull.
3792         (redirect_jump): Likewise.
3793         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
3794         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
3795         exit block.
3796         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
3797         changed.  Ensure that the right label is passed to redirect_jump.
3798         * function.c (emit_return_into_block,
3799         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
3800         ret_rtx in their JUMP_LABEL.
3801         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
3802         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
3803         pass ret_rtx as label.
3804         * cfglayout.c (fixup_reorder_chain): Use
3805         force_nonfallthru_and_redirect rather than force_nonfallthru.
3806         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
3807         * rtl.h (ANY_RETURN_P): New macro.
3808         (jump_to_label_p): Declare.
3809         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
3810         JUMP_LABELs.
3811         (mark_target_live_regs): Likewise.
3812         * basic-block.h (force_nonfallthru_and_redirect): Declare.
3813         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
3814         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
3815         alpha_tablejump_best_label): Remove functions.
3816         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
3817         alpha_tablejump_best_label): Remove declarations.
3818         * config/sh/sh.c (barrier_align, split_branches): Adjust for
3819         ret_rtx in JUMP_LABELs.
3820         * config/arm/arm.c (is_jump_table): Likewise.
3821
3822 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
3823
3824         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
3825         special predicate.  Remove explicit mode checks.
3826
3827 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
3828
3829         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
3830         DW_AT_data_member_location containing just DW_OP_plus_uconst.
3831
3832         PR debug/49871
3833         * dwarf2out.c (size_of_die, value_format, output_die): Use
3834         DW_FORM_udata instead of DW_FORM_data[48] for
3835         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
3836
3837 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
3838
3839         * config/i386/i386.md (*tls_global_dynamic_64): Update
3840         length attribute.
3841
3842 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
3843
3844         PR target/47715
3845         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
3846         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
3847         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
3848         (tls_dynamic_gnu2_64): Ditto.
3849         (*tls_dynamic_gnu2_lea_64): Ditto.
3850         (*tls_dynamic_gnu2_call_64): Ditto.
3851         (*tls_dynamic_gnu2_combine_64): Ditto.
3852
3853 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
3854
3855         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
3856
3857 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
3858
3859         PR target/47364
3860         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
3861
3862 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3863
3864         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
3865         before the core constraints. Adjust attributes.
3866         ("*thumb2_movdf_vfp"): Likewise.
3867
3868 2011-07-28  Kai Tietz  <ktietz@redhat.com>
3869
3870         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
3871         (simplify_truth_ops_using_ranges): Likewise.
3872         (build_assert_expr_for): Likewise.
3873         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
3874         and handle BIT_NOT_EXPR for truth-operation.
3875
3876 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
3877
3878         PR target/49313
3879         Undo r176835 from trunk
3880         2011-07-27  Georg-Johann Lay
3881
3882 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
3883
3884         PR target/49687
3885         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
3886         Add _muluhisi3, _mulshisi3, _usmulhisi3.
3887         * config/avr/libgcc.S (__mulsi3): Rewrite.
3888         (__mulhisi3): Rewrite.
3889         (__umulhisi3): Rewrite.
3890         (__usmulhisi3): New.
3891         (__muluhisi3): New.
3892         (__mulshisi3): New.
3893         (__mulohisi3): New.
3894         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
3895         declare.
3896         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
3897         (pseudo_register_or_const_int_operand): New.
3898         (combine_pseudo_register_operand): New.
3899         (u16_operand): New.
3900         (s16_operand): New.
3901         (o16_operand): New.
3902         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
3903         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
3904         (any_extend, any_extend2): New code iterators.
3905         (extend_prefix): New code attribute.
3906         (mulsi3): Rewrite. Turn insn to expander.
3907         (mulhisi3): Ditto.
3908         (umulhisi3): Ditto.
3909         (usmulhisi3): New expander.
3910         (*mulsi3): New insn-and-split.
3911         (mulu<mode>si3): New insn-and-split.
3912         (muls<mode>si3): New insn-and-split.
3913         (mulohisi3): New insn-and-split.
3914         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
3915         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
3916         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
3917         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
3918         insn-and-split.
3919         (*mulsi3_call): Rewrite.
3920         (*mulhisi3_call): Rewrite.
3921         (*umulhisi3_call): Rewrite.
3922         (*usmulhisi3_call): New insn.
3923         (*muluhisi3_call): New insn.
3924         (*mulshisi3_call): New insn.
3925         (*mulohisi3_call): New insn.
3926         (extendqihi2): Use combine_pseudo_register_operand as predicate
3927         for operand 1.
3928         (extendqisi2): Ditto.
3929         (zero_extendqihi2): Ditto.
3930         (zero_extendqisi2): Ditto.
3931         (zero_extendhisi2): Ditto.
3932         (extendhisi2): Ditto. Don't early-clobber operand 0.
3933
3934 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
3935
3936         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
3937
3938 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
3939
3940         PR tree-optimization/49471
3941         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
3942         iv only when the largest type is unsigned.  Do not call
3943         lang_hooks.types.type_for_size.
3944
3945 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
3946
3947         PR middle-end/45450
3948         * graphite-poly.c (apply_poly_transforms): Disable legality check
3949         after an openscop read.
3950
3951 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
3952
3953         PR middle-end/47691
3954         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
3955         copy_bb_and_scalar_dependences.
3956         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
3957         (graphite_copy_stmts_from_block): Update call to rename_uses.
3958         (copy_bb_and_scalar_dependences): Update call to
3959         graphite_copy_stmts_from_block.
3960         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
3961
3962 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
3963
3964         PR target/49313
3965         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
3966         (__ctzsi2): Result for 0 may be undefined.
3967         (__ctzhi2): Result for 0 may be undefined.
3968         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
3969         (__popcountsi2): Ditto. And don't clobber r26.
3970         (__popcountdi2): Ditto. And don't clobber r27.
3971         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
3972         (parityhi2): New expand.
3973         (paritysi2): New expand.
3974         (popcounthi2): New expand.
3975         (popcountsi2): New expand.
3976         (clzhi2): New expand.
3977         (clzsi2): New expand.
3978         (ctzhi2): New expand.
3979         (ctzsi2): New expand.
3980         (ffshi2): New expand.
3981         (ffssi2): New expand.
3982         (copysignsf3): New insn.
3983         (bswapsi2): New expand.
3984         (*parityhi2.libgcc): New insn.
3985         (*parityqihi2.libgcc): New insn.
3986         (*paritysihi2.libgcc): New insn.
3987         (*popcounthi2.libgcc): New insn.
3988         (*popcountsi2.libgcc): New insn.
3989         (*popcountqi2.libgcc): New insn.
3990         (*popcountqihi2.libgcc): New insn-and-split.
3991         (*clzhi2.libgcc): New insn.
3992         (*clzsihi2.libgcc): New insn.
3993         (*ctzhi2.libgcc): New insn.
3994         (*ctzsihi2.libgcc): New insn.
3995         (*ffshi2.libgcc): New insn.
3996         (*ffssihi2.libgcc): New insn.
3997         (*bswapsi2.libgcc): New insn.
3998
3999 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
4000
4001         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
4002         the mode of symbolic_opreand RTXes.
4003
4004 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
4005
4006         * config/i386/predicates.md (x86_64_movabs_operand): Return false
4007         for pic_32bit_operand RTXes.
4008         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
4009         in DImode.
4010
4011 2011-07-27  Kai Tietz  <ktietz@redhat.com>
4012
4013         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
4014         for 32-bit, too.
4015         (ix86_handle_abi_attribute): Allow function attributes
4016         ms_abi/sysv_abi in 32-bit mode, too.
4017         * doc/extend.texi: Adjust attribute documentation.
4018
4019         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
4020         expression handling.
4021         (and_var_with_comparison_1): Likewise.
4022
4023 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
4024
4025         * params.h (ALLOW_STORE_DATA_RACES): New.
4026         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
4027         * Makefile.in (expr.o): Depend on PARAMS_H.
4028         * machmode.h (get_best_mode): Add argument.
4029         * fold-const.c (optimize_bit_field_compare): Add argument to
4030         get_best_mode.
4031         (fold_truthop): Same.
4032         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
4033         * expr.c (emit_group_store): Same.
4034         (copy_blkmode_from_reg): Same.
4035         (write_complex_part): Same.
4036         (optimize_bitfield_assignment_op): Add argument.
4037         Add argument to get_best_mode.
4038         (get_bit_range): New.
4039         (expand_assignment): Calculate maxbits and pass it down accordingly.
4040         (store_field): New argument.
4041         (expand_expr_real_2): New argument to store_field.  Include params.h.
4042         * expr.h (store_bit_field): New argument.
4043         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
4044         into account maxbits.
4045         * calls.c (store_unaligned_arguments_into_pseudos): New argument
4046         to store_bit_field.
4047         * expmed.c (store_bit_field_1): New argument.  Use it.
4048         (store_bit_field): Same.
4049         (store_fixed_bit_field): Same.
4050         (store_split_bit_field): Same.
4051         (extract_bit_field_1): Pass new argument to get_best_mode.
4052         (extract_bit_field): Same.
4053         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
4054         * doc/invoke.texi: Document parameter allow-store-data-races.
4055
4056 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
4057
4058         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
4059
4060 2011-07-27  Kai Tietz  <ktietz@redhat.com>
4061
4062         * tree-vrp.c (extract_range_from_binary_expr): Remove
4063         TRUTH-binary cases and add new bitwise-cases.
4064         (extract_range_from_assignment): Likewise.
4065         (register_edge_assert_for_1): Likeiwise.
4066         (register_edge_assert_for): Likewise.
4067         (simplify_truth_ops_using_ranges): Likewise.
4068         (simplify_stmt_using_ranges): Likewise.
4069
4070 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
4071
4072         PR target/47372
4073         * config/i386/i386.c (ix86_delegitimize_address): Call
4074         simplify_gen_subreg for PIC with mode of x only if modes of
4075         x and orig_x are different.
4076
4077 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
4078
4079         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
4080         to GC allocated copy of the string.
4081         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
4082         before .debug_line, not after it.
4083
4084 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4085
4086         PR middle-end/47046
4087         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
4088         evolution_function_is_affine_p on CHREC_RIGHT.
4089
4090 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4091
4092         * tree-data-ref.c (max_stmt_executions_tree): Do not call
4093         lang_hooks.types.type_for_size.
4094
4095 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4096
4097         PR middle-end/47653
4098         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
4099         loops using wrapping semantics.
4100
4101 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
4102
4103         PR middle-end/48805
4104         * tree-scalar-evolution.c (instantiate_scev_r): Return
4105         chrec_dont_know for ADDR_EXPR.
4106
4107 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4108             H.J. Lu  <hongjiu.lu@intel.com>
4109
4110         PR target/47369
4111         PR target/49853
4112         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
4113         if legitimize_tls_address returned operand in wrong mode. Allow
4114         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
4115         if legitimize_pic_address returned operand in wrong mode.
4116
4117 2011-07-26  Martin Jambor  <mjambor@suse.cz>
4118
4119         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
4120         return false for invariants.
4121
4122 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4123
4124         * config/i386/i386.md (add->lea splitter): Implement using SWI
4125         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
4126         (add->lea zext splitter): Change operand 2 predicate to
4127         x86_64_nonmemory_operand.
4128
4129 2011-07-26  Richard Guenther  <rguenther@suse.de>
4130
4131         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
4132         frequency makes everything hot.
4133
4134 2011-07-26  Richard Guenther  <rguenther@suse.de>
4135
4136         PR tree-optimization/49840
4137         * tree-vrp.c (range_fits_type_p): Properly handle full
4138         double-int precision.
4139
4140 2011-07-26  Martin Jambor  <mjambor@suse.cz>
4141
4142         PR bootstrap/49786
4143         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
4144         counts.
4145         (update_specialized_profile): Likewise.
4146
4147 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
4148             H.J. Lu  <hongjiu.lu@intel.com>
4149
4150         PR target/47381
4151         PR target/49832
4152         PR target/49833
4153         * config/i386/i386.md (i): Change SImode attribute to "e".
4154         (g): Change SImode attribute to "rme".
4155         (di): Change SImode attribute to "nF".
4156         (general_operand): Change SImode attribute to x86_64_general_operand.
4157         (general_szext_operand): Change SImode attribute to
4158         x86_64_szext_general_operand.
4159         (immediate_operand): Change SImode attribute to
4160         x86_64_immediate_operand.
4161         (nonmemory_operand): Change SImode attribute to
4162         x86_64_nonmemory_operand.
4163         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
4164         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
4165         (*lea_1): Use SWI48 mode iterator.
4166         (*lea_1_zext): New insn pattern.
4167         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
4168         (*bt<mode>): Ditto.
4169         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
4170         Update operand constraints.
4171         (addsi_1_zext): Ditto.
4172         (*add<mode>2): Ditto.
4173         (*addsi_3_zext): Ditto.
4174         (*subsi_1_zext): Ditto.
4175         (*subsi_2_zext): Ditto.
4176         (*subsi_3_zext): Ditto.
4177         (*addsi3_carry_zext): Ditto.
4178         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
4179         (*mulsi3_1_zext): Ditto.
4180         (*andsi_1): Ditto.
4181         (*andsi_1_zext): Ditto.
4182         (*andsi_2_zext): Ditto.
4183         (*<any_or:code>si_1_zext): Ditto.
4184         (*<any_or:code>si_2_zext): Ditto.
4185         (*test<mode>_1): Use <general_operand> predicate for operand 1.
4186         (*and<mode>_2): Ditto.
4187         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
4188         (add->lea splitter): Check operand modes in insn constraint.  Extend
4189         operands less than SImode wide to SImode.
4190         (add->lea zext splitter): Do not extend input operands to DImode.
4191         (*lea_general_1): Handle only QImode and HImode operands.
4192         (*lea_general_2): Ditto.
4193         (*lea_general_3): Ditto.
4194         (*lea_general_1_zext): Remove.
4195         (*lea_general_2_zext): Ditto.
4196         (*lea_general_3_zext): Ditto.
4197         (*lea_general_4): Check operand modes in insn constraint.  Extend
4198         operands less than SImode wide to SImode.
4199         (ashift->lea splitter): Ditto.
4200         * config/i386/i386.c (ix86_print_operand_address): Print address
4201         registers with 'q' modifier on 64bit targets.
4202         * config/i386/predicates.md (pic_32bit_opreand): Define as special
4203         predicate.  Reject non-SI and non-DI modes.
4204
4205 2011-07-25  Andrew Pinski  <apinski@cavium.com>
4206
4207         PR tree-opt/49671
4208         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
4209         TREE_THIS_NOTRAP into the inner most MEM_REF.
4210         Always copy TREE_THIS_VOLATILE.
4211         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
4212         arguments are not volatile references.
4213
4214 2011-07-25  Richard Henderson  <rth@redhat.com>
4215
4216         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
4217         * final.c (final_scan_insn): Don't test for it.
4218         (rest_of_clean_state): Likewise.
4219
4220 2011-07-25  Richard Henderson  <rth@redhat.com>
4221
4222         PR debug/49841
4223         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
4224         (emit_frame_save): Likewise.
4225         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
4226         insn onto a dummy blockage insn after the join label.
4227
4228 2011-07-25  Richard Henderson  <rth@redhat.com>
4229
4230         * dwarf2cfi.c (dw_trace_info): Add ID member.
4231         (get_trace_index): Remove.  Change users to use ID member.
4232         (before_next_cfi_note): New.
4233         (connect_traces): Remove unreachable traces before the main loop.
4234         Look across one trace and generate remember/restore_state if needed.
4235
4236 2011-07-25  Richard Henderson  <rth@redhat.com>
4237
4238         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
4239
4240 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
4241
4242         * genattr.c (write_upcase, gen_attr <enum definition writing>):
4243         Move to ...
4244         * genattr-common.c ... here.
4245         (main): Call gen_attr.
4246         * optc-gen.awk: Make generated program include insn-attr-common.h .
4247         * Makefile.in (oprions.o): Depend on insn-attr-common.h
4248
4249 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
4250
4251         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4252         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
4253         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
4254         m32c_print_operand, m32c_print_operand_address): Remove.
4255         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
4256         Change return type to bool. Change argument type to bool.
4257         (m32c_print_operand, m32c_print_operand_address): Make static.
4258         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
4259         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4260
4261 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4262
4263         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
4264         attributes): Document mmap.
4265
4266 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
4267
4268         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4269         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
4270         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
4271         mmix_print_operand, mmix_print_operand_address): Remove.
4272         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
4273         Change return type to bool. Change argument type to bool.
4274         (mmix_print_operand, mmix_print_operand_address): Make static.
4275         (mmix_intval, mmix_output_condition): Change 'x' argument type
4276         to const_rtx.
4277         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
4278         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4279
4280 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
4281
4282         PR target/39386
4283         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
4284         shift counter for x << x and x >> x shifts.
4285
4286 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4287
4288         PR target/47124
4289         * config.gcc: Reject *-*-solaris2 configuration.
4290
4291 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
4292
4293         PR tree-optimization/49809
4294         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
4295         gimple_get_lhs instead of gimple_assign_lhs.
4296
4297 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4298
4299         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
4300
4301 2011-07-25  Richard Guenther  <rguenther@suse.de>
4302
4303         PR tree-optimization/49822
4304         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
4305         more.  Make sure to preserve stmts with side-effects.  Properly
4306         handle virtual defs, follow a longer def chain.
4307
4308 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
4309
4310         PR plugins/45348
4311         PR plugins/48425
4312         PR plugins/46577
4313         * Makefile.in: Do not flatten c-family directory when installing
4314         plugin headers.
4315
4316 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
4317
4318         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
4319         original nodes if we are dealing with virtual clones.
4320
4321 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
4322
4323         * common/config/c6x/c6x-common.c: New file.
4324
4325 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
4326
4327         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
4328
4329 2011-07-25  Richard Guenther  <rguenther@suse.de>
4330
4331         PR tree-optimization/49715
4332         * tree-vrp.c: Include expr.h and optabs.h.
4333         (range_fits_type_): New function.
4334         (simplify_float_conversion_using_ranges): Likewise.
4335         (simplify_stmt_using_ranges): Call it.
4336         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
4337         * optabs.c (can_float_p): Export.
4338         * optabs.h (can_float_p): Declare.
4339
4340 2011-07-25  Richard Guenther  <rguenther@suse.de>
4341
4342         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
4343         (get_value_range): For out-of-range SSA names or names created
4344         after propagation return a read-only varying range.
4345         (dump_all_value_ranges): Adjust.
4346         (vrp_initialize): Likewise.
4347         (vrp_finalize): Likewise.
4348
4349 2011-07-24  Richard Henderson  <rth@redhat.com>
4350
4351         PR debug/49831
4352         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
4353         them entirely.
4354
4355 2011-07-24  Richard Henderson  <rth@redhat.com>
4356
4357         PR debug/49825
4358         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
4359         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
4360
4361 2011-07-24  Richard Henderson  <rth@redhat.com>
4362
4363         PR debug/49827
4364         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
4365
4366 2011-07-24  Richard Henderson  <rth@redhat.com>
4367
4368         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
4369         Zero args_size for abnormal edges.  Adjust all callers.
4370
4371 2011-07-24  Richard Henderson  <rth@redhat.com>
4372
4373         PR debug/49825
4374         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
4375
4376 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
4377
4378         PR bootstrap/49835
4379         * collect2.c (demangle_flag): Removed.
4380
4381 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
4382
4383         * configure.ac (demangler_in_ld): Default to yes.
4384         * configure: Regenerated.
4385         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
4386         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
4387         --no-demangle options straight through to ld.  When
4388         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
4389         way that has the intended effect on Windows.
4390
4391 2011-07-23  Richard Henderson  <rth@redhat.com>
4392
4393         * dwarf2cfi.c: Include basic-block.h.
4394         (dw_label_info): Remove.
4395         (trace_work_list, trace_index): New.
4396         (remember_row, emit_cfa_remember): Remove.
4397         (dw_trace_info_hash, dw_trace_info_eq): New.
4398         (get_trace_index, get_trace_info): New.
4399         (save_point_p): New.
4400         (free_cfi_row): Remove.
4401         (add_cfi): Do not emit DW_CFA_remember_state.
4402         (cfa_row_equal_p): New.
4403         (barrier_args_size): Remove.
4404         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
4405         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
4406         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
4407         (dwarf2out_cfi_begin_epilogue): Remove.
4408         (dwarf2out_frame_debug_restore_state): Remove.
4409         (connect_traces, create_pseudo_cfg): New.
4410         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
4411         * Makefile.in (dwarf2cfi.o): Update.
4412
4413 2011-07-23  Richard Henderson  <rth@redhat.com>
4414
4415         * dwarf2cfi.c (dw_trace_info): New.
4416         (dw_label_info): New.
4417         (cie_return_save): New.
4418         (cur_trace): New.
4419         (queued_args_size): Rename from args_size.  Update all users.
4420         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
4421         (def_cfa_1): Use cur_trace instead of cfa_*.
4422         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
4423         (clobbers_queued_reg_save, reg_saved_in): Likewise.
4424         (dwarf2out_frame_debug_expr): Likewise.
4425         (create_cie_data): Split out from ...
4426         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
4427
4428 2011-07-23  Richard Henderson  <rth@redhat.com>
4429
4430         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
4431         Update all users to match.
4432         (execute_dwarf2_frame): Free reg_saved_in_data.
4433
4434 2011-07-23  Richard Henderson  <rth@redhat.com>
4435
4436         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
4437         (queued_reg_saves): Don't GTY.  Change to a VEC.
4438         (queue_reg_save): Update to match.
4439         (dwarf2out_flush_queued_reg_saves): Likewise.
4440         (clobbers_queued_reg_save): Likewise.
4441         (reg_saved_in): Likewise.
4442         (execute_dwarf2_frame): Free queued_reg_saves.
4443
4444 2011-07-23  Richard Henderson  <rth@redhat.com>
4445
4446         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
4447
4448 2011-07-23  Richard Henderson  <rth@redhat.com>
4449
4450         * dwarf2cfi.c (add_cfi_args_size): Split out from...
4451         (dwarf2out_args_size): ... here.
4452         (add_cfi_restore): Split out from ...
4453         (dwarf2out_frame_debug_cfa_restore): ... here.
4454         (def_cfa_0): Split out from ...
4455         (def_cfa_1): ... here.
4456         (cfi_oprnd_equal_p, cfi_equal_p): New.
4457         (change_cfi_row): New.
4458         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
4459         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
4460         (output_cfis): Remove.
4461         * dwarf2out.c (output_fde): Simplify output_cfi loop.
4462         (dwarf2out_switch_text_section): Don't call output_cfis.
4463         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
4464         * dwarf2out.h: Update decls.
4465         (enum dw_val_class): Add dw_val_class_none.
4466
4467 2011-07-23  Richard Henderson  <rth@redhat.com>
4468
4469         * dwarf2cfi.c (update_row_reg_save): New.
4470         (dwarf2out_frame_debug_cfa_expression): Use it.
4471         (dwarf2out_frame_debug_cfa_restore): Likewise.
4472         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
4473
4474 2011-07-23  Richard Henderson  <rth@redhat.com>
4475
4476         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
4477
4478 2011-07-23  Richard Henderson  <rth@redhat.com>
4479
4480         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
4481         (cie_cfi_row): New.
4482         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
4483         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
4484         (cur_row, remember_row): New.
4485         (def_cfa_1): Use cur_row instead of the old_* variables.
4486         (dwarf2out_frame_debug_restore_state): Similarly.
4487         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
4488         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
4489         (dwarf2out_frame_debug_adjust_cfa): Likewise.
4490         (dwarf2out_frame_debug_cfa_offset): Likewise.
4491         (dwarf2out_frame_debug_expr): Likewise.
4492         (execute_dwarf2_frame): Set up cur_row.
4493         * dwarf2out.h (struct cfa_loc): Mark for GTY.
4494
4495 2011-07-23  Richard Henderson  <rth@redhat.com>
4496
4497         * basic-block.h (EDGE_PRESERVE): New.
4498         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
4499         * bb-reorder.c: Include except.h.
4500         (fix_up_crossing_landing_pad): New.
4501         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
4502         landing pads in the right partition.  Duplicate as necessary.
4503         (partition_hot_cold_basic_blocks): Fix up DF info after
4504         duplicating landing pads.
4505         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
4506         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
4507         is set properly.  Validate that EH edges are not CROSSING.
4508         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
4509         (dw2_build_landing_pads): ... here.
4510         (convert_to_eh_region_ranges): Remove code to fixup crossing
4511         landing pads.
4512         * except.h (expand_dw2_landing_pad_for_region): Declare.
4513         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
4514
4515 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
4516
4517         PR target/49816
4518         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
4519
4520 2011-07-22  Jason Merrill  <jason@redhat.com>
4521
4522         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
4523
4524 2011-07-22  Richard Henderson  <rth@redhat.com>
4525
4526         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
4527
4528 2011-07-22  Richard Henderson  <rth@redhat.com>
4529
4530         * jump.c (maybe_propagate_label_ref): Split out of...
4531         (mark_all_labels): ... here.  Do not attempt label_ref
4532         propagation while in cfglayout mode.
4533
4534 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
4535
4536         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
4537         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
4538         (dwarf_attr_name): Handle DW_AT_GNU_macros.
4539         (dwarf2out_define): If the vector is empty and
4540         lineno is 0, emit a dummy entry first.
4541         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
4542         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
4543         optimize_macinfo_range): New functions.
4544         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
4545         mergeable, optimize longer strings using
4546         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
4547         optimize longer sequences of define/undef ops from headers
4548         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
4549         emit a section headers.
4550         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
4551         and macinfo_section_label to DEBUG_MACRO_SECTION
4552         resp. DEBUG_MACRO_SECTION_LABEL.
4553         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
4554         instead of DW_AT_macro_info.
4555
4556         PR other/32998
4557         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
4558         options.
4559         * dwarf2out.c: Include opts.h.
4560         (dchar_p): New typedef.  Define heap VEC for it.
4561         (producer_string): New variable.
4562         (gen_producer_string): New function.
4563         (gen_compile_unit_die): Use it.
4564         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
4565         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
4566         * doc/invoke.texi: Document -grecord-gcc-switches and
4567         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
4568         to -frecord-gcc-switches description.
4569
4570 2011-07-22  Jason Merrill  <jason@redhat.com>
4571
4572         PR c++/30112
4573         * c-decl.c (c_linkage_bindings): Define.
4574
4575 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
4576
4577         PR debug/49815
4578         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
4579
4580 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
4581
4582         * config/i386/i386.c (ix86_option_override_internal): Disallow
4583         MS ABI in x32 mode.
4584         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
4585         only for TARGET_LP64.
4586         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
4587
4588 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
4589
4590         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
4591         avoid warnings when GCC is built with a C++ compiler.
4592
4593 2011-07-22  Martin Jambor  <mjambor@suse.cz>
4594
4595         PR lto/49796
4596         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
4597         if decl node is in another partition, call cgraph_get_node only once.
4598
4599 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
4600
4601         * config.gcc (x86_64-*-linux*): Set
4602         default_gnu_indirect_function to yes.
4603
4604 2011-07-22  Richard Guenther  <rguenther@suse.de>
4605
4606         PR tree-optimization/45819
4607         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
4608         preserve volatile and notrap flags.
4609
4610 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4611             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4612
4613         PR bootstrap/49794
4614         * configure.ac: Test AM_ICONV with CXX.
4615         * configure: Regenerate.
4616         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
4617
4618 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4619
4620         PR bootstrap/49797
4621         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
4622         (set_cloog_options): Use it.
4623
4624 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
4625
4626         PR c++/49756
4627         * gcc.c (main): Call stack_limit_increase (64MB).
4628         * toplev.c (toplev_main): Likewise.
4629
4630 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
4631
4632         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
4633         instead of force_reg.
4634
4635 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
4636
4637         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
4638         needed and use force_reg after convert.
4639         (ix86_expand_call): Likewise.
4640         (ix86_expand_special_args_builtin): Likewise.
4641         (ix86_expand_builtin): Likewise.
4642
4643 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4644
4645         PR middle-end/47654
4646         PR middle-end/49649
4647         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
4648         in parameter.  Initialize v1 and v2 based on the values returned
4649         by clast_name_to_lb_ub.
4650         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
4651         values.
4652         (type_for_clast_bin): Same.
4653         (type_for_clast_expr): Same.
4654         (type_for_clast_eq): Update calls to type_for_clast_expr.
4655         (type_for_clast_for): Same.
4656         (build_iv_mapping): Same.
4657         * graphite-ppl.h (value_min): New.
4658
4659 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4660
4661         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
4662         types whenever possible.
4663
4664 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4665
4666         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
4667         and ub fields.
4668         (new_clast_name_index): Add lb and ub parameters.
4669         (free_clast_name_index): New.
4670         (clast_name_to_lb_ub): New.
4671         (save_clast_name_index): Add lb and ub parameters.
4672         (compute_bounds_for_param): New.
4673         (type_for_level): Removed.
4674         (type_for_clast_for): Removed level parameter.  Do not call
4675         type_for_level.
4676         (graphite_create_new_loop): Store the lb and ub for the clast_name
4677         of the iterator of the loop that has been generated.
4678         (graphite_create_new_loop_guard): Remove parameter level.
4679         (create_params_index): Store the lb and ub of each parameter.
4680         (gloog): Use free_clast_name_index.  Pass to create_params_index
4681         the current scop.
4682
4683 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4684
4685         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
4686         (max_precision_type): Inline max_signed_precision_type.
4687         (type_for_clast_red): Use max_precision_type.
4688         (type_for_clast_bin): Same.
4689         (type_for_clast_for): Same.
4690
4691 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4692
4693         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
4694         type_for_interval.
4695         (gcc_type_for_value): Renamed type_for_value.
4696         (gcc_type_for_clast_term): Renamed type_for_clast_term.
4697         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
4698         (gcc_type_for_clast_red): Renamed type_for_clast_red.
4699         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
4700         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
4701         (graphite_translate_clast_equation): Update calls.
4702         (compute_type_for_level): Renamed type_for_level.
4703         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
4704         (build_iv_mapping): Update calls.
4705         (graphite_create_new_loop_guard): Same.
4706
4707 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4708
4709         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
4710         comment.
4711
4712 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4713
4714         * graphite-clast-to-gimple.c (struct ivs_params): New.
4715         (clast_name_to_gcc): Use ivs_params to pass around parameters.
4716         (clast_to_gcc_expression): Same.
4717         (clast_to_gcc_expression_red): Same.
4718         (gcc_type_for_clast_term): Same.
4719         (gcc_type_for_clast_expr): Same.
4720         (gcc_type_for_clast_red): Same.
4721         (gcc_type_for_clast_bin): Same.
4722         (gcc_type_for_clast_eq): Same.
4723         (graphite_translate_clast_equation): Same.
4724         (graphite_create_guard_cond_expr): Same.
4725         (graphite_create_new_guard): Same.
4726         (graphite_create_new_loop): Same.
4727         (build_iv_mapping): Same.
4728         (translate_clast_user): Same.
4729         (graphite_create_new_loop_guard): Same.
4730         (translate_clast): Same.
4731         (translate_clast_for_loop): Same.
4732         (translate_clast_for): Same.
4733         (translate_clast_guard): Same.
4734         (initialize_cloog_names): Fix typo.
4735         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
4736
4737 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4738
4739         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
4740         (new_clast_name_index): Add level parameter.
4741         (clast_name_to_level): New.
4742         (save_clast_name_index): Add level parameter.
4743         (newivs_to_depth_to_newiv): Removed.
4744         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
4745         (graphite_create_new_loop): Add level parameter.  Pass level to
4746         save_clast_name_index.
4747         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
4748         (create_params_index): Pass level to save_clast_name_index.
4749
4750 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4751
4752         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
4753         recompute type, lb, and ub.  Get them from...
4754         (graphite_create_new_loop_guard): ...here.  Pass in parameter
4755         pointers to type, lb, and ub.
4756         (translate_clast_for_loop): Update function calls.
4757         (translate_clast_for): Same.
4758
4759 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
4760
4761         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
4762         psct_dynamic_dim.
4763         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
4764         (gcc_type_for_iv_of_clast_loop): Update use of level.
4765         (gloog): Start counting nesting level from 0.
4766         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
4767         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
4768         psct_dynamic_dim on level.
4769
4770 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
4771
4772         * config/i386/i386.c (ix86_legitimize_address): Convert to
4773         Pmode if needed.
4774
4775 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
4776
4777         * config/i386/i386.c (function_value_64): Always return pointers
4778         in Pmode.
4779         (ix86_promote_function_mode): New.
4780         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
4781
4782 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4783
4784         PR tree-optimization/49749
4785         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
4786         remove no-longer-used maxrank variable.
4787
4788 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
4789
4790         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
4791
4792 2011-07-21  Jason Merrill  <jason@redhat.com>
4793
4794         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
4795         * recog.h (struct insn_data_d): Check it instead of
4796         HAVE_DESIGNATED_INITIALIZERS.
4797         * genoutput.c (output_insn_data): Likewise.
4798
4799 2011-07-21  Richard Guenther  <rguenther@suse.de>
4800
4801         PR tree-optimization/49770
4802         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
4803         valueized any operand.  Renamed from ...
4804         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
4805         (valueize_shared_reference_ops_from_ref): Return whether we
4806         valueized any operand.
4807         (vn_reference_lookup): Only when we valueized any operand
4808         use the valueized reference for alias analysis.  Do not preserve
4809         the original reference tree in this case.
4810
4811 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
4812
4813         * config/i386/i386.c (ix86_decompose_address): Reject all but
4814         register operands and subregs of DImode hard registers in index.
4815
4816 2011-07-21  Kai Tietz  <ktietz@redhat.com>
4817
4818         * fold-const.c (fold_unary_loc): Preserve indirect
4819         comparison cast to none-boolean type.
4820         * tree-ssa.c (useless_type_conversion_p): Preserve cast
4821         from/to boolean-type.
4822         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
4823         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
4824         * tree-cfg.c (verify_gimple_comparison): Check result
4825         type of comparison expression.
4826         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
4827         of condition result and disallow type-cast sinking into comparison.
4828
4829 2011-07-21  Richard Guenther  <rguenther@suse.de>
4830
4831         * tree-ssa-forwprop.c (combine_conversions): Return whether
4832         we have to run cfg-cleanup.  Properly remove dead stmts.
4833         (ssa_forward_propagate_and_combine): Adjust.
4834
4835 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
4836
4837         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
4838
4839 2011-07-21  Kai Tietz  <ktietz@redhat.com>
4840
4841         * tree-ssa-propagate.c (substitute_and_fold): Use
4842         do_dce flag to deside, if BB's statements are scanned
4843         in last to first, or first to last order.
4844
4845 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
4846
4847         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
4848
4849 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
4850             Uros Bizjak  <ubizjak@gmail.com>
4851             Richard Henderson  <rth@redhat.com>
4852
4853         * config/i386/constraints.md (w): New.
4854
4855         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
4856         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
4857
4858         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
4859         instead of TARGET_64BIT.
4860
4861         * config/i386/i386.md (indirect_jump): Replace
4862         nonimmediate_operand with indirect_branch_operand.
4863         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
4864         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
4865         Convert operand 0 to Pmode for x32 if not PIC.
4866         (*tablejump_1): Replace nonimmediate_operand with
4867         indirect_branch_operand.  Replace constraint "m" with "w".
4868         (*call_vzeroupper): Replace constraint "m" with "w".
4869         (*call): Likewise.
4870         (*call_rex64_ms_sysv_vzeroupper): Likewise.
4871         (*call_rex64_ms_sysv): Likewise.
4872         (*call_value_vzeroupper): Likewise.
4873         (*call_value): Likewise.
4874         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
4875         (*call_value_rex64_ms_sysv): Likewise.
4876         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
4877
4878         * config/i386/predicates.md (indirect_branch_operand): New.
4879         (call_insn_operand): Support x32.
4880
4881 2011-07-20  Michael Eager  <eager@eagercon.com>
4882
4883         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
4884
4885 2011-07-20  Richard Henderson  <rth@redhat.com>
4886
4887         * cfg.c (dump_bb_info): Dump basic_block->flags.
4888         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
4889
4890 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
4891
4892         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
4893         of DImode hard registers in index.
4894         (ix86_legitimate_address_p): Allow subregs of base and index to span
4895         more than a word.  Assert that subregs of base and index satisfy
4896         register_no_elim_operand predicates.  Reject addresses where
4897         base and index have different modes.
4898
4899 2011-07-20  Robert Millan  <rmh@gnu.org>
4900
4901         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
4902
4903 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4904
4905         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
4906         removing now-unnecessary assignment.
4907
4908 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4909
4910         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
4911         memory address space to the type's address space.
4912
4913 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
4914
4915         PR target/36467
4916         PR target/49687
4917         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
4918         and expand appropriately if there is a CONST_INT in operand2.
4919         (usmulqihi3): New insn.
4920         (*sumulqihi3): New insn.
4921         (*osmulqihi3): New insn.
4922         (*oumulqihi3): New insn.
4923         (*muluqihi3.uconst): New insn_and_split.
4924         (*muluqihi3.sconst): New insn_and_split.
4925         (*mulsqihi3.sconst): New insn_and_split.
4926         (*mulsqihi3.uconst): New insn_and_split.
4927         (*mulsqihi3.oconst): New insn_and_split.
4928         (*ashifthi3.signx.const): New insn_and_split.
4929         (*ashifthi3.signx.const7): New insn_and_split.
4930         (*ashifthi3.zerox.const): New insn_and_split.
4931         (mulsqihi3): New insn.
4932         (muluqihi3): New insn.
4933         (muloqihi3): New insn.
4934         * config/avr/predicates.md (const_2_to_7_operand): New.
4935         (const_2_to_6_operand): New.
4936         (u8_operand): New.
4937         (s8_operand): New.
4938         (o8_operand): New.
4939         (s9_operand): New.
4940         (register_or_s9_operand): New.
4941
4942 2011-07-20  Kai Tietz  <ktietz@redhat.com>
4943
4944         * builtins.c (fold_builtin_expect): See through the cast
4945         from truthvalue_type_node to long.
4946
4947 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
4948
4949         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
4950         where we can use them from the standard and altivec instruction
4951         sets, instead of always using the 3 operand VSX forms that require
4952         the destination to overlap one of the inputs.
4953         (vsx_fms*): Ditto.
4954         (vsx_fnma*): Ditto.
4955         (vsx_fnms*): Ditto.
4956
4957         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
4958         for DF types.
4959         (fmsdf4_fpr): Ditto.
4960         (nfmadf4_fpr): Ditto.
4961         (nfmsdf4_fpr): Ditto.
4962
4963 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
4964
4965         * genrecog.c (make_insn_sequence): Correct position numbering
4966         when filtering out match_scratch and match_dup.
4967
4968 2011-07-20  Richard Guenther  <rguenther@suse.de>
4969
4970         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
4971         against already removed statements.
4972         (forward_propagate_into_comparison): Remove dead defining stmts.
4973         (forward_propagate_into_gimple_cond): Likewise.
4974         (forward_propagate_into_cond): Simplify.
4975         (ssa_forward_propagate_and_combine): Handle changed cfg from
4976         forward_propagate_into_comparison.
4977         * tree-ssa-phiopt.c (conditional_replacement): Use proper
4978         locations for newly built statements.
4979
4980 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
4981
4982         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
4983
4984 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4985
4986         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
4987         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
4988
4989 2011-07-20  Richard Guenther  <rguenther@suse.de>
4990
4991         PR middle-end/18908
4992         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
4993         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
4994         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
4995
4996 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
4997
4998         * config/frv/frv.c (frv_register_move_cost): Define explicitly
4999         costs for subclasses of GR_REGS.
5000
5001 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
5002
5003         PR target/49780
5004         * config/i386/predicates.md (no_seg_addres_operand): No more special.
5005         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5006         of DImode hard registers in base.
5007         (ix86_legitimate_address_p): Allow SImode and DImode base and index
5008         registers.
5009
5010 2011-07-20  Richard Guenther  <rguenther@suse.de>
5011
5012         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
5013         (unify_nodes): Deal with that.
5014         (solve_graph): Likewise.
5015
5016 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
5017
5018         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
5019         canonicalize left operand from ZERO_EXTEND to AND.
5020
5021 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
5022
5023         * target.def (class_max_nregs): New hook.
5024         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
5025         * doc/tm.texi: Regenerate.
5026         * targhooks.c (default_class_max_nregs): New function.
5027         * targhooks.h (default_class_max_nregs): Declare.
5028         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
5029         x_ira_reg_class_min_nregs arrays to unsigned char.
5030         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
5031         hook instead of CLASS_MAX_NREGS macro.
5032         * reginfo.c (restore_register_info): Ditto.
5033         * ira-conflicts.c (process_regs_for_copy): Use
5034         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
5035         Change type rclass and aclass vars to reg_class_t.
5036         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
5037         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
5038         reg_class_t.
5039         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
5040         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
5041
5042         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
5043         * config/i386/i386.c (ix86_class_max_nregs): New function.
5044         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
5045         instead of CLASS_MAX_NREGS macro.
5046         (TARGET_CLASS_MAX_NREGS): Define.
5047         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
5048         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
5049         * config/avr/avr.c (class_max_nregs): Remove function.
5050         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
5051         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
5052         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
5053         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
5054         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
5055         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
5056         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
5057         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
5058         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
5059         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
5060         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
5061         * config/score/score.h (CLASS_MAX_NREGS): Remove.
5062         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
5063         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
5064         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
5065
5066 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
5067
5068         * cif-code.def (OVERWRITABLE): Fix typo and move around.
5069         (TARGET_OPTIMIZATION_MISMATCH): Delete.
5070         (EH_PERSONALITY): Fix typo.
5071         (NON_CALL_EXCEPTIONS): Fix message.
5072         (OPTIMIZATION_MISMATCH): Adjust message.
5073         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
5074
5075 2011-07-19  Ian Lance Taylor  <iant@google.com>
5076
5077         * doc/install.texi (Configuration): Document
5078         --enable-build-poststage1-with-cxx.
5079
5080 2011-07-19  Robert Millan  <rmh@gnu.org>
5081
5082         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
5083         (GLIBC_DYNAMIC_LINKER): Remove.
5084
5085         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
5086         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
5087         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
5088         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
5089         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
5090         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
5091
5092         * config/mips/linux.h: Remove everything except for ...
5093         (GLIBC_DYNAMIC_LINKER): ... this macro.
5094
5095         * config/mips/linux64.h: Remove everything except for ...
5096         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
5097         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
5098         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
5099         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
5100         (GNU_USER_LINK_EMULATIONN32): New macros.
5101
5102         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
5103         Use the new headers.
5104
5105 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5106
5107         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
5108         Add offset_known_p and size_known_p fields.
5109         (MEM_OFFSET_KNOWN_P): Update accordingly.
5110         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
5111         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
5112         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
5113         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
5114         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
5115         (init_emit_regs): Likewise.
5116
5117 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5118
5119         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
5120         (MEM_OFFSET): Change from returning an rtx to returning a
5121         HOST_WIDE_INT.
5122         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
5123         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
5124         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
5125         (clear_mem_offset): Declare.
5126         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
5127         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
5128         MEM_OFFSET to get a HOST_WIDE_INT offset.
5129         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
5130         (adjust_offset_for_component_ref): Take a bool "known_p"
5131         parameter and a HOST_WIDE_INT "offset" parameter.
5132         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
5133         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
5134         than an rtx.  Use clear_mem_offset to clear the offset.
5135         * cfgcleanup.c (merge_memattrs): Likewise.
5136         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
5137         * function.c (assign_parm_find_stack_rtl): Likewise.
5138         (assign_parm_setup_stack): Likewise.
5139         * print-rtl.c (print_rtx): Likewise.
5140         * reload.c (find_reloads_subreg_address): Likewise.
5141         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5142         * var-tracking.c (INT_MEM_OFFSET): Likewise.
5143         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
5144         (get_mem_align_offset): Likewise.
5145         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
5146         (clear_mem_offset): New function.
5147         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
5148         offset rather than an rtx.  Assume both the expressio and offset
5149         are available.
5150         (r10k_needs_protection_p_1): Update accordingly, checking the
5151         expression and offset availability here instead.
5152
5153 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5154
5155         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
5156         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
5157         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
5158         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
5159         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
5160         (clear_mem_size): Declare.
5161         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
5162         (clear_mem_size): New function.
5163         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
5164         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
5165         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
5166         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
5167         to clear the size.
5168         (nonoverlapping_memrefs_p): Likewise.
5169         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
5170         (expand_builtin_init_trampoline): Likewise.
5171         * calls.c (compute_argument_addresses): Likewise.
5172         * cfgcleanup.c (merge_memattrs): Likewise.
5173         * dce.c (find_call_stack_args): Likewise.
5174         * dse.c (record_store, scan_insn): Likewise.
5175         * dwarf2out.c (dw_sra_loc_expr): Likewise.
5176         * expr.c (emit_block_move_hints): Likewise.
5177         * function.c (assign_parm_find_stack_rtl): Likewise.
5178         * print-rtl.c (print_rtx): Likewise.
5179         * reload.c (find_reloads_subreg_address): Likewise.
5180         * rtlanal.c (may_trap_p_1): Likewise.
5181         * var-tracking.c (track_expr_p): Likewise.
5182         * varasm.c (assemble_trampoline_template): Likewise.
5183         * config/arm/arm.c (arm_print_operand): Likewise.
5184         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
5185         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
5186         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
5187         (expand_constant_setmem_prologue): Likewise.
5188         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
5189         * config/rs6000/rs6000.c (expand_block_move): Likewise.
5190         (adjacent_mem_locations): Likewise.
5191         * config/s390/s390.c (s390_expand_setmem): Likewise.
5192         (s390_expand_insv): Likewise.
5193         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
5194         (*extendqi<mode>2_short_displ): Likewise.
5195         * config/sh/sh.c (expand_block_move): Likewise.
5196         * config/sh/sh.md (extv, extzv): Likewise.
5197
5198 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5199
5200         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
5201         (mem_attrs_htab_eq): ...here.
5202         (find_mem_attrs): Replace with...
5203         (set_mem_attrs): ...this function.  Take a mem_attrs structure
5204         rather than individual fields.
5205         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
5206         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
5207         (set_mem_size, change_address, adjust_address_1, offset_address)
5208         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
5209         Update accordingly.
5210
5211 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5212
5213         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
5214         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
5215         Provide a dummy definition of MEM_ADDR_SPACE for generators.
5216         (target_rtl): Add x_mode_mem_attrs.
5217         (mode_mem_attrs): New macro.
5218         (get_mem_attrs): New function.
5219         * emit-rtl.c (get_mem_attrs): Rename to...
5220         (find_mem_attrs): ...this.
5221         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
5222         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
5223         (set_mem_size, change_address, adjust_address_1, offset_address)
5224         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
5225         Update accordingly.
5226         (init_emit_regs): Initialize mode_mem_attrs.
5227
5228 2011-07-19  Richard Guenther  <rguenther@suse.de>
5229
5230         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
5231         TRUTH_*_EXPR handling.
5232         * tree-ssa-operands.c (get_expr_operands): Likewise.
5233         * tree-ssa-pre.c (fully_constant_expression): Likewise.
5234         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
5235         Likewise.
5236         (is_and_or_or): Likewise.
5237         (is_norm_cond_subset_of): Likewise.
5238
5239 2011-07-19  Richard Guenther  <rguenther@suse.de>
5240
5241         * tree.h (fold_build_pointer_plus_loc): New helper function.
5242         (fold_build_pointer_plus_hwi_loc): Likewise.
5243         (fold_build_pointer_plus): Define.
5244         (fold_build_pointer_plus_hwi): Likewise.
5245         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
5246         (fold_builtin_memory_op): Likewise.
5247         (fold_builtin_stpcpy): Likewise.
5248         (fold_builtin_memchr): Likewise.
5249         (fold_builtin_strstr): Likewise.
5250         (fold_builtin_strchr): Likewise.
5251         (fold_builtin_strrchr): Likewise.
5252         (fold_builtin_strpbrk): Likewise.
5253         (fold_builtin_strcat): Likewise.
5254         (expand_builtin_memory_chk): Likewise.
5255         (fold_builtin_memory_chk): Likewise.
5256         * c-typeck.c (build_unary_op): Likewise.
5257         * cgraphunit.c (thunk_adjust): Likewise.
5258         * fold-const.c (build_range_check): Likewise.
5259         (fold_binary_loc): Likewise.
5260         * omp-low.c (extract_omp_for_data): Likewise.
5261         (expand_omp_for_generic): Likewise.
5262         (expand_omp_for_static_nochunk): Likewise.
5263         (expand_omp_for_static_chunk): Likewise.
5264         * tree-affine.c (add_elt_to_tree): Likewise.
5265         * tree-data-ref.c (split_constant_offset_1): Likewise.
5266         * tree-loop-distribution.c (generate_memset_zero): Likewise.
5267         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
5268         * tree-predcom.c (ref_at_iteration): Likewise.
5269         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
5270         (add_to_parts): Likewise.
5271         (create_mem_ref): Likewise.
5272         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
5273         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
5274         (number_of_iterations_le): Likewise.
5275         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
5276         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5277         (vect_create_addr_base_for_vector_ref): Likewise.
5278         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
5279         (vect_create_cond_for_alias_checks): Likewise.
5280         * tree-vrp.c (extract_range_from_assert): Likewise.
5281         * config/alpha/alpha.c (alpha_va_start): Likewise.
5282         (alpha_gimplify_va_arg_1): Likewise.
5283         * config/i386/i386.c (ix86_va_start): Likewise.
5284         (ix86_gimplify_va_arg): Likewise.
5285         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
5286         * config/mep/mep.c (mep_expand_va_start): Likewise.
5287         (mep_gimplify_va_arg_expr): Likewise.
5288         * config/mips/mips.c (mips_va_start): Likewise.
5289         (mips_gimplify_va_arg_expr): Likewise.
5290         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
5291         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
5292         (rs6000_gimplify_va_arg): Likewise.
5293         * config/s390/s390.c (s390_va_start): Likewise.
5294         (s390_gimplify_va_arg): Likewise.
5295         * config/sh/sh.c (sh_va_start): Likewise.
5296         (sh_gimplify_va_arg_expr): Likewise.
5297         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
5298         * config/spu/spu.c (spu_va_start): Likewise.
5299         (spu_gimplify_va_arg_expr): Likewise.
5300         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
5301         Likewise.
5302         (xstormy16_gimplify_va_arg_expr): Likewise.
5303         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
5304         (xtensa_gimplify_va_arg_expr): Likewise.
5305
5306 2011-07-19  Richard Guenther  <rguenther@suse.de>
5307
5308         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
5309         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
5310         handling.
5311
5312         PR middle-end/18908
5313         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
5314         result of BIT_*_EXPR to bitfield precision.
5315
5316 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
5317
5318         PR tree-optimization/49742
5319         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
5320         as a potential write.
5321
5322 2011-07-19  Richard Guenther  <rguenther@suse.de>
5323
5324         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
5325         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
5326         (forward_propagate_comparison): Simplify, remove obsolete code.
5327
5328 2011-07-19  Richard Guenther  <rguenther@suse.de>
5329
5330         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
5331         BIT_XOR_EXPR, same as the RTL expander does.
5332         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
5333         (verify_gimple_assign_unary): Likewise.
5334         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
5335         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
5336         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
5337
5338 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
5339
5340         PR tree-optimization/49768
5341         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
5342         if offset is smaller than bitoffset, but offset+size is bigger
5343         than bitoffset.
5344
5345 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
5346
5347         PR tree-optimization/49771
5348         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
5349         zero step, set segment length to the size of the data-ref's type.
5350
5351 2011-07-18  Martin Jambor  <mjambor@suse.cz>
5352
5353         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
5354         comments.
5355         (ipcp_values_pool): Declare.
5356         (ipcp_sources_pool): Likewise.
5357         (ipcp_lattice): Changed to forward declaration.
5358         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
5359         cannot_devirtualize.
5360         (ipa_node_params): New fields descriptors, lattices, known_vals,
5361         clone_for_all_contexts and node dead, removed fields params and
5362         count_scale.
5363         (ipa_set_param_count): Removed.
5364         (ipa_get_param_count): Made to work with descriptors vector.
5365         (ipa_get_param): Updated.
5366         (ipa_param_cannot_devirtualize_p): Removed.
5367         (ipa_param_types_vec_empty): Likewise.
5368         (ipa_set_param_used): New function.
5369         (ipa_get_param_used): Updated to use descriptors vector.
5370         (ipa_func_list): Removed.
5371         (ipa_init_func_list): Removed declaration.
5372         (ipa_push_func_to_list_1): Likewise.
5373         (ipa_pop_func_from_list): Likewise.
5374         (ipa_push_func_to_list): Removed.
5375         (ipa_lattice_from_jfunc): Remove declaration.
5376         (ipa_get_jf_pass_through_result): Declare.
5377         (ipa_get_jf_ancestor_result): Likewise.
5378         (ipa_value_from_jfunc): Likewise.
5379         (ipa_get_lattice): Update.
5380         (ipa_lat_is_single_const): New function.
5381         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
5382         (ipa_init_func_list): Likewise.
5383         (ipa_pop_func_from_list): Likewise.
5384         (ipa_get_param_decl_index): Fix coding style.
5385         (count_formal_params): Removed.
5386         (count_formal_params_1): Renamed to count_formal_params.
5387         (ipa_populate_param_decls): Update to use descriptors vector.
5388         (ipa_initialize_node_params): Likewise.
5389         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
5390         (ipa_analyze_params_uses): Likewise.
5391         (ipa_free_node_params_substructures): Likewise and free also lattices
5392         and known values.
5393         (duplicate_array): Removed.
5394         (ipa_edge_duplication_hook): Add the new edge to the list of edge
5395         clones.
5396         (ipa_node_duplication_hook): Update to use new lattices.
5397         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
5398         (ipa_free_all_structures_after_iinln): Likewise.
5399         (ipa_write_node_info): Update to use new lattices.
5400         (ipa_read_node_info): Likewise.
5401         (ipa_get_jf_pass_through_result): New function.
5402         (ipa_get_jf_ancestor_result): Likewise.
5403         (ipa_value_from_jfunc): Likewise.
5404         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
5405         * ipa-cp.c: Reimplemented.
5406         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
5407         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
5408         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
5409         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
5410         * doc/invoke.texi (devirt-type-list-size): Removed description.
5411         (ipa-cp-value-list-size): Added description.
5412
5413 2011-07-18  Richard Henderson  <rth@redhat.com>
5414
5415         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
5416         before calling create_basic_block.
5417
5418 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
5419
5420         PR middle-end/49675
5421         * tree.c (build_common_builtin_nodes): Register
5422         __builtin_return_address, __cyg_profile_func_enter
5423         and __cyg_profile_func_exit.
5424
5425 2011-07-18  Richard Henderson  <rth@redhat.com>
5426
5427         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
5428         (add_labels_and_missing_jumps): ... here.
5429         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
5430
5431 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
5432
5433         PR target/47744
5434         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
5435         of DImode hard registers in PLUS address chains.
5436
5437 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5438
5439         PR bootstrap/49769
5440         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
5441         (alpha*-*-freebsd*): Likewise.
5442         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
5443         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
5444         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
5445         crtprec80.o, crtfastmath.o to extra_parts for all targets.
5446         (ia64*-*-elf*): Remove extra_parts.
5447         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
5448         (sparc64-*-linux*): Likewise.
5449         (sparc64-*-freebsd*): Likewise.
5450
5451         Revert:
5452         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
5453         (ia64*-*-linux*): Likewise.
5454         (mips64*-*-linux*): Likewise.
5455         (mips*-*-linux*): Likewise.
5456
5457 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
5458
5459         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
5460
5461 2011-07-18  Richard Guenther  <rguenther@suse.de>
5462
5463         * gimplify.c (gimplify_expr): Use input_location, not saved_location
5464         when building new trees.
5465
5466 2011-07-18  Richard Guenther  <rguenther@suse.de>
5467
5468         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
5469         expansion result to bitfield precision if required.
5470
5471 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5472
5473         * config.gcc (i[3456x]86-*-netware*): Remove.
5474
5475         * gthr-nks.h: Remove.
5476         * configure.ac (enable_threads): Remove nks.
5477         * configure: Regenerate.
5478
5479         * config/i386/i386.c (ix86_encode_section_info): Remove netware
5480         reference.
5481         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
5482         <netware.h> reference.
5483
5484         * config/i386/netware-libgcc.c,
5485         gcc/config/i386/netware-libgcc.def,
5486         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
5487         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
5488         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
5489         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
5490
5491         * doc/extend.texi (Function Attributes,
5492         callee_pop_aggregate_return): Remove i?86-netware reference.
5493         * doc/install.texi (Configuration, --enable-threads): Remove nks.
5494
5495 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5496
5497         PR target/49746
5498         Revert:
5499         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5500
5501         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
5502         patterns.
5503
5504 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
5505
5506         PR middle-end/49732
5507         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
5508
5509 2011-07-16  Matthias Klose  <doko@ubuntu.com>
5510
5511         * doc/install.texi: Document --enable-static-libjava.
5512
5513 2011-07-15  Richard Henderson  <rth@redhat.com>
5514
5515         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
5516         Replace all three arguments by returning a VEC of edges.
5517         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
5518         pointers and counts.
5519         (fix_edges_for_rarely_executed_code): Merge ...
5520         (rest_of_handle_partition_blocks): ... into...
5521         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
5522         any work was performed.
5523         (pass_partition_blocks): Clear todo_flags_finish.
5524
5525 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
5526             Jakub Jelinek  <jakub@redhat.com>
5527             Jonathan Wakely  <jwakely.gcc@gmail.com>
5528
5529         PR libstdc++/49745
5530         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
5531         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
5532
5533 2011-07-15  Jason Merrill  <jason@redhat.com>
5534
5535         PR testsuite/49741
5536         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
5537         rather than --tool_opts.
5538
5539 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
5540
5541         * doc/plugins.texi (Building GCC plugins): gengtype needs its
5542         corresponding gtype.state.
5543
5544 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5545
5546         PR target/49723
5547         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
5548
5549 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
5550
5551         PR target/48220
5552         * doc/md.texi (Standard Names): Document window_save.
5553         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
5554         expand_debug_expr and expand_debug_source_expr.  If the target has
5555         a window_save instruction, adjust the ENTRY_VALUE_EXP.
5556         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
5557         SSA_NAME_VAR is a parameter.
5558         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
5559         * var-tracking.c (parm_reg_t): New type and associated vector type.
5560         (windowed_parm_regs): New variable.
5561         (adjust_insn): If the target has a window_save instruction and this
5562         is the instruction, make its effect on parameter registers explicit.
5563         (next_non_note_insn_var_location): New function.
5564         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
5565         (vt_add_function_parameter): If the target has a window_save insn,
5566         adjust the incoming RTL and record that in windowed_parm_regs.
5567         (vt_finalize): Free windowed_parm_regs.
5568
5569 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
5570
5571         * doc/invoke.texi (C6X Options): New section.
5572         * doc/md.texi (TI C6X family): New section.
5573         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
5574         tic6x-*-uclinux.
5575         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
5576         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
5577         Provide C6X definitions.
5578         * config/c6x/c6x.md: New file.
5579         * config/c6x/constraints.md: New file.
5580         * config/c6x/predicates.md: New file.
5581         * config/c6x/c6x-sched.md.in: New file.
5582         * config/c6x/c6x-sched.md: New file.
5583         * config/c6x/gensched.sh: New file.
5584         * config/c6x/c6x-mult.md.in: New file.
5585         * config/c6x/genmult.sh: New file.
5586         * config/c6x/c6x-mult.md: New file.
5587         * config/c6x/sync.md: New file.
5588         * config/c6x/c6x-protos.h: New file.
5589         * config/c6x/sfp-machine.h: New file.
5590         * config/c6x/c6x.c: New file.
5591         * config/c6x/c6x.h: New file.
5592         * config/c6x/crti.s: New file.
5593         * config/c6x/crtn.s: New file.
5594         * config/c6x/lib1funcs.asm: New file.
5595         * config/c6x/c6x-modes.def: New file.
5596         * config/c6x/genopt.sh: New file.
5597         * config/c6x/c6x.opt: New file.
5598         * config/c6x/c6x-tables.opt: New file.
5599         * config/c6x/c6x-opts.h: New file.
5600         * config/c6x/c6x-isas.def: New file.
5601         * config/c6x/elf.h: New file.
5602         * config/c6x/elf-common.h: New file.
5603         * config/c6x/uclinux-elf.h: New file.
5604         * config/c6x/t-c6x: New file.
5605         * config/c6x/t-c6x-elf: New file.
5606         * config/c6x/t-c6x-uclinux: New file.
5607         * config/c6x/t-c6x-softfp: New file.
5608         * config/c6x/gtd.c: New file.
5609         * config/c6x/gtf.c: New file.
5610         * config/c6x/ltd.c: New file.
5611         * config/c6x/ltf.c: New file.
5612         * config/c6x/ged.c: New file.
5613         * config/c6x/gef.c: New file.
5614         * config/c6x/led.c: New file.
5615         * config/c6x/lef.c: New file.
5616         * config/c6x/eqd.c: New file.
5617         * config/c6x/eqf.c: New file.
5618         * config/c6x/libgcc-c6xeabi.ver: New file.
5619
5620         Revert
5621         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
5622         PR rtl-optimization/11320
5623         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
5624         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
5625         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
5626         current_sched_info->compute_jump_reg_dependencies. Record which
5627         registers are used and which registers are set by the jump.
5628         Clear deps->reg_conditional_sets after a barrier.
5629         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
5630         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
5631         (init_deps): Initialize reg_conditional_sets.
5632         (free_deps): Clear reg_conditional_sets.
5633         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
5634         Mark registers live on entry of the fallthrough block and conditionally
5635         set as set by the jump. Mark registers live on entry of non-fallthrough
5636         blocks as used by the jump.
5637         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
5638         Mark new parameters as unused.
5639
5640 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
5641
5642         PR tree-opt/49309
5643         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
5644         Use fold_build2_loc instead of build2.
5645         Use the correct type for the new tree.
5646
5647 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
5648
5649         PR rtl-optimization/11320
5650         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
5651         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
5652
5653 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
5654
5655         PR target/49487
5656         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
5657         of REG.
5658         (*rotw<mode>): Use const_int_operand for operand2.
5659         Use match_scatch for operand3.
5660         (*rotb<mode>): Ditto
5661         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
5662
5663 2011-07-14  Richard Guenther  <rguenther@suse.de>
5664
5665         PR tree-optimization/49651
5666         * tree-ssa-structalias.c (get_constraint_for_1): Properly
5667         handle dereferences with subvariables.
5668
5669 2011-07-14  Richard Guenther  <rguenther@suse.de>
5670
5671         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
5672         (fold_stmt_1): Do it here directly on gimple and as a first thing.
5673
5674 2011-07-14  Richard Guenther  <rguenther@suse.de>
5675
5676         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
5677         not bool_var when folding bool_var != 1 or bool_var == 0.
5678
5679 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
5680
5681         * haifa-sched.c (schedule_insns): Remove outdated comment.
5682         (schedule_block): When computing a known value for TODO_SPEC,
5683         just set it rather than using logical operations.
5684         (try_ready): Likewise.  Use a local variable rather than a
5685         pointer to TODO_SPEC.  Reorder an if statement to move the
5686         easy case to the then block.
5687         * sched-deps.c (dep_spec_p): New static function.
5688         (update_dep): Use it to decide whether to call
5689         change_spec_dep_to_hard.
5690         (get_back_and_forw_lists): Use it.
5691         (sd_resolve_dep): Likewise.
5692         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
5693         (haifa_note_mem_dep): Likewise.
5694         (check_dep): Likewise.
5695         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
5696         (sched_free_deps): Free in two passes.
5697
5698 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
5699
5700         PR middle-end/49736
5701         * expr.c (all_zeros_p): Undo bogus part of last change.
5702
5703 2011-07-14  Matthias Klose <doko@ubuntu.com>
5704
5705         * doc/extend.texi (optimize attribute): Fix typo.
5706
5707 2011-07-14  Richard Guenther  <rguenther@suse.de>
5708
5709         * gimplify.c (gimplify_expr): Only do required conversions.
5710
5711 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
5712
5713         PR target/43746
5714         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
5715         i.e. use default_elf_select_section.
5716         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
5717         (READONLY_DATA_SECTION_ASM_OP): Remove.
5718         (TARGET_ASM_NAMED_SECTION): Move from here...
5719         * config/avr/avr.c: ...to here.
5720         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
5721         (avr_asm_named_section): Make static.
5722
5723 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5724
5725         PR bootstrap/49739
5726         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
5727         and crtfastmath.o for Linux/x86.
5728
5729 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
5730
5731         * haifa-sched.c: Include "hashtab.h"
5732         (sched_no_dce): New global variable.
5733         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
5734         SHADOW_P): New macros.
5735         (last_clock_var, cycle_issued_insns): Move declarations.
5736         (must_backtrack): New static variable.
5737         (struct delay_pair): New structure.
5738         (delay_htab, delay_htab_i2): New static variables.
5739         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
5740         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
5741         functions.
5742         (dep_cost_1): If delay pairs exist, try to look up the insns and
5743         use the correct pair delay if we find them.
5744         (rank-for_schedule): Tweak priority for insns that must be scheduled
5745         soon to avoid backtracking.
5746         (queue_insn): Detect conditions which force backtracking.
5747         (ready_add): Likewise.
5748         (struct sched_block_state): Add member shadows_only_p.
5749         (struct haifa_save_data): New structure.
5750         (backtrack_queue): New static variable.
5751         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
5752         unschedule_insns_until, restore_last_backtrack_point,
5753         free_topmost_backtrack_point, free_backtrack_queue,
5754         estimate_insn_tick, estimate_shadow_tick): New functions.
5755         (prune_ready_list): New arg shadows_only_p.  All callers changed.
5756         If true, remove everything that isn't SHADOW_P.  Look up delay
5757         pairs and estimate ticks to avoid scheduling the first insn too early.
5758         (verify_shadows): New function.
5759         (schedule_block): Add machinery to enable backtracking.
5760         (sched_init): Take sched_no_dce into account when setting
5761         DF_LR_RUN_DCE.
5762         (free_delay_pairs): New function.
5763         (init_h_i_d): Initialize INSN_EXACT_TICK.
5764         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
5765         * sched-deps.c (sd_unresolve_dep): New function.
5766         * sched-int. (struct haifa_sched_info): New fields save_state
5767         and restore_state.
5768         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
5769         feeds_backtrack_insn and shadow_p.
5770         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
5771         (sched_no_dce): Declare variable.
5772         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
5773         sd_unresolve_dep): Declare functions.
5774         * modulo-sched.c (sms_sched_info): Clear the two new fields.
5775         * sched-rgn.c (rgn_const_sched_info): Likewise.
5776         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5777         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
5778         (ebb_sched_info): Add them for the two new fields.
5779         (add_deps_for_risky_insns): Call add_delay_dependencies.
5780
5781 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
5782
5783         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
5784         Rename -mr11.
5785         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
5786         (rs6000_call_indirect_aix): Ditto.
5787         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
5788         (call_indirect_aix<ptrsize>_internal): Ditto.
5789         (call_indirect_aix<ptrsize>_nor11): Ditto.
5790         (call_indirect_aix<ptrsize>_internal2): Ditto.
5791         (call_value_indirect_aix<ptrsize>): Ditto.
5792         (call_value_indirect_aix<ptrsize>_internal): Ditto.
5793         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
5794         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
5795         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
5796
5797 2011-07-13  Jason Merrill  <jason@redhat.com>
5798
5799         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
5800
5801 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5802
5803         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
5804         * config/spu/spu.md ("clrsb<mode>2"): New expander.
5805
5806 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
5807
5808         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
5809         * configure: Regenerate.
5810
5811 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5812
5813         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
5814         (asm_file_start): Remove.
5815         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
5816         free_bb_for_insn around code that modifies insns before
5817         restarting df analysis.
5818
5819 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5820
5821         PR target/49541
5822         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
5823         (LINK_SPEC): ... here.
5824
5825 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
5826
5827         * haifa-sched.c (struct sched_block_state): New.
5828         (schedule_block): Move some local variables into such a structure.
5829
5830 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5831
5832         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
5833         * config/i386/t-crtpc: Remove.
5834         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
5835         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
5836         tmake_file.
5837         (x86_64-*-darwin*): Likewise.
5838         (i[34567]86-*-linux*): Likewise.
5839         (x86_64-*-linux*): Likewise.
5840
5841         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
5842         Handle -mpc32, -mpc64, -mpc80.
5843
5844 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5845
5846         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
5847         * config/alpha/t-crtfm: Remove.
5848         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
5849         * config/i386/t-crtfm: Remove.
5850         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
5851         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
5852         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
5853         * config/sparc/t-crtfm: Remove.
5854
5855         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
5856         (alpha*-*-freebsd*): Likewise.
5857         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
5858         (x86_64-*-darwin*): Likewise.
5859         (i[34567]86-*-linux*): Likewise.
5860         (x86_64-*-linux*): Likewise.
5861         (x86_64-*-mingw*): Likewise.
5862         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
5863         (ia64*-*-freebsd*): Likewise.
5864         (ia64*-*-linux*): Likewise.
5865         (mips64*-*-linux*): Likewise.
5866         (mips*-*-linux*): Likewise.
5867         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
5868         (sparc64-*-linux*): Likewise.
5869         (sparc64-*-freebsd*): Likewise.
5870
5871 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5872
5873         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
5874         * config/darwin-crt3.c: Move to ../libgcc/config.
5875         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
5876         ($(T)crt3$(objext)): Remove.
5877         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
5878         ($(T)crt2$(objext)): Remove.
5879         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
5880         (powerpc64-*-darwin*): Likewise.
5881
5882 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
5883
5884         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
5885
5886         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
5887         (addsi_1_zext): This.
5888
5889 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
5890
5891         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
5892         * doc/tm.texi: Regenerate.
5893         * target.def (mergeable_rodata_prefix): New defhookpod.
5894         * varasm.c (mergeable_string_section, mergeable_constant_section):
5895         Use it. Allocate name with alloca.
5896
5897 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
5898
5899         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
5900
5901 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
5902
5903         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
5904         overlap check.
5905
5906 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
5907
5908         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
5909         (count_type_elements): Delete.
5910         (complete_ctor_at_level_p): Declare.
5911         * expr.c (flexible_array_member_p): New function, split out from...
5912         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
5913         parameter with for_ctor_p.  When for_ctor_p is true, return the
5914         number of elements that should appear in the top-level constructor,
5915         otherwise return an estimate of the number of scalars.
5916         (categorize_ctor_elements): Replace p_must_clear with p_complete.
5917         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
5918         (complete_ctor_at_level_p): New function, borrowing union logic
5919         from old categorize_ctor_elements_1.
5920         (mostly_zeros_p): Return true if the constructor is not complete.
5921         (all_zeros_p): Update call to categorize_ctor_elements.
5922         * gimplify.c (gimplify_init_constructor): Update call to
5923         categorize_ctor_elements.  Don't call count_type_elements.
5924         Unconditionally prevent clearing for variable-sized types,
5925         otherwise rely on categorize_ctor_elements to detect
5926         incomplete initializers.
5927
5928 2011-07-13  Richard Guenther  <rguenther@suse.de>
5929
5930         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
5931         the final type is integral.
5932
5933 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
5934
5935         * sched-int.h (struct _dep): Add member cost.
5936         (DEP_COST, UNKNOWN_DEP_COST): New macros.
5937         * sched-deps.c (init_dep_1): Initialize DEP_COST.
5938         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
5939         (sched_change_pattern): Reset it for dependent insns.
5940
5941 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5942
5943         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
5944         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
5945         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
5946         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
5947         (CRT0_S, MCRT0_S): Remove.
5948         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
5949         Remove.
5950         (s-crt0): Remove.
5951         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
5952
5953 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
5954
5955         * cse.c (insert_with_costs): Put semi-colon after empty loop body
5956         on the next line.
5957         * emit-rtl.c (push_to_sequence): Likewise.
5958         * haifa-sched.c (max_issue): Likewise.
5959         * matrix-reorg.c (add_allocation_site): Likewise.
5960         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
5961         * reload.c (alternative_allows_const_pool_ref): Likewise.
5962         * sched-rgn.c (rgn_add_block): Likewise.
5963         (rgn_fix_recovery_cfg): Likewise.
5964         * tree.c (attribute_list_contained): Likewise.
5965
5966 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
5967
5968         * config/i386/i386.c: Tidy processor feature bitmasks.
5969         (m_P4_NOCONA): New.
5970
5971 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
5972
5973         PR rtl-opt/49474
5974         * cprop.c (find_implicit_sets): Correct the condition.
5975
5976 2011-07-12  Richard Henderson  <rth@redhat.com>
5977
5978         PR target/49713
5979         * dwarf2out.h (dwarf_frame_regnum): Remove.
5980         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
5981         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
5982         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
5983         (execute_dwarf2_frame): Initialize them.
5984         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
5985         users of the macros with the variables.
5986         (expand_builtin_dwarf_sp_column): Revert last change.
5987         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
5988         result of DWARF_FRAME_REGNUM into a local variable.
5989
5990 2011-07-12  Richard Henderson  <rth@redhat.com>
5991
5992         PR target/49714
5993         * config/i386/i386.c (x86_output_mi_thunk): Use
5994         machopic_indirect_call_target instead of machopic_indirection_name
5995         directly.
5996
5997 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
5998             Eric Botcazou  <ebotcazou@adacore.com>
5999
6000         * prefix.h: Wrap up in extern "C" block.
6001
6002 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
6003
6004         AMD bdver2 Enablement
6005         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
6006         (case ${target}): Add bdver2.
6007         * config/i386/driver-i386.c (host_detect_local_cpu): Let
6008         -march=native recognize bdver2 processors.
6009         * config/i386/i386-c.c (ix86_target_macros_internal): Add
6010         bdver2 def_and_undef
6011         * config/i386/i386.c (struct processor_costs bdver2_cost): New
6012         bdver2 cost table.
6013         (m_BDVER2): New definition.
6014         (m_AMD_MULTIPLE): Includes m_BDVER2.
6015         (initial_ix86_tune_features): Add bdver2 tuning.
6016         (processor_target_table): Add bdver2 entry.
6017         (static const char *const cpu_names): Add bdver2 entry.
6018         (ix86_option_override_internal): Add bdver2 instruction sets.
6019         (ix86_issue_rate): Add bdver2.
6020         (ix86_adjust_cost): Add bdver2.
6021         (has_dispatch): Add bdver2.
6022         * config/i386/i386.h (TARGET_BDVER2): New definition.
6023         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
6024         (enum processor_type): Add PROCESSOR_BDVER2.
6025         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
6026         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
6027         description.
6028
6029 2011-07-12  Richard Henderson  <rth@redhat.com>
6030
6031         PR target/49714
6032         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
6033         destination address in memory on some paths.
6034
6035 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
6036
6037         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
6038         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
6039         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
6040         * function.c (locate_and_pad_parm): Take it into account.
6041         * target.def (function_arg_round_boundary): New hook.
6042         * targhooks.c (default_function_arg_round_boundary): New function.
6043         * targhooks.h (default_function_arg_round_boundary): Declare.
6044         * doc/tm.texi: Regenerate.
6045
6046 2011-07-12  Richard Guenther  <rguenther@suse.de>
6047
6048         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
6049         Do not perform no-op changes.
6050
6051 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
6052
6053         * config/arm/predicates.md (neon_struct_operand): Make a normal
6054         predicate.
6055         (neon_struct_or_register_operand): New predicate.
6056         * config/arm/neon.md (movmisalign<mode>): Replace predicates
6057         with neon_struct_or_register_operand.
6058         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
6059         neon_struct_operand instead of memory_operand.
6060
6061 2011-07-12  Martin Jambor  <mjambor@suse.cz>
6062
6063         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
6064         * cgraph.c (cgraph_get_node_or_alias): Removed.
6065         (change_decl_assembler_name): Changed all calls to
6066         cgraph_get_node_or_alias to a call to cgraph_get_node.
6067         (cgraph_make_decl_local): Likewise.
6068         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
6069         * varasm.c (default_binds_local_p_1): Likewise.
6070         (decl_binds_to_current_def_p): Likewise.
6071
6072 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
6073
6074         PR tree-optimization/49712
6075         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
6076
6077 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
6078
6079         * genautomata.c (add_arc): Return void.  All callers changed.
6080         (make_automaton): Remove dead code.
6081
6082 2011-07-11  Richard Henderson  <rth@redhat.com>
6083
6084         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
6085         (DW_FRAME_POINTER_REGNUM): New.
6086         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
6087         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
6088         (dwf_regno): New.
6089         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
6090         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
6091         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
6092         Use it.
6093         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
6094         * dwarf2out.h (dwarf_frame_regnum): New.
6095         (struct cfa_loc): Document the domain of the reg member.
6096
6097 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
6098
6099         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
6100         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
6101
6102 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
6103
6104         PR debug/49676
6105         * dwarf2out.c (int_shift_loc_descriptor): New function.
6106         (int_loc_descriptor): If shorter, emit i as
6107         (i >> shift), shift, DW_OP_shl for suitable shift value.
6108         Similarly, try to optimize large negative values using
6109         DW_OP_neg of a positive value if shorter.
6110         (size_of_int_shift_loc_descriptor): New function.
6111         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
6112         changes.
6113         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
6114         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
6115         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
6116         is shorter.
6117         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
6118         addend as added DW_OP_plus if it is shorter.
6119
6120 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6121
6122         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
6123         (DTORS_SECTION_ASM_OP): Define.
6124
6125 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6126
6127         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
6128         * config/t-dfprules: Move to ../libgcc/config.
6129         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6130         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6131         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
6132         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
6133         Likewise.
6134         (i[34567]86-*-cygwin*): Likewise.
6135         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
6136         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
6137         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
6138         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
6139         D64PBIT_FUNCS, D128PBIT_FUNCS.
6140
6141 2011-07-11  Richard Guenther  <rguenther@suse.de>
6142
6143         * tree-vrp.c (simplify_conversion_using_ranges): Manually
6144         translate the source value-range through the conversion chain.
6145
6146 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
6147
6148         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
6149
6150 2011-07-11  Arthur Loiret  <aloiret@debian.org>
6151
6152         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
6153         a bi-arch compiler defaulting to 31-bit. In this case:
6154         (tmake_file): Add s390/t-linux64.
6155         * doc/install.texi: Add s390-linux to the list of targets supporting
6156         --enable-targets=all.
6157
6158 2011-07-11  Arthur Loiret  <aloiret@debian.org>
6159             Matthias Klose <doko@debian.org>
6160
6161         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
6162         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
6163         (tm_file): Add mips/linux64.h.
6164         (tmake_file): Add mips/t-linux64.
6165         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
6166         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
6167         instead of hardcoded mabi=n32.
6168         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
6169         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
6170         convention.
6171
6172 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6173
6174         * passes.c (init_optimization_passes): Add invariant motion pass
6175         after induction variable optimization.
6176
6177 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
6178
6179         PR target/39633
6180         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
6181         offsets 1..5 set cc0 in a usable way.
6182
6183 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
6184
6185         * tree.h (call_expr_arg): Remove.
6186         (call_expr_argp): Likewise.
6187
6188 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
6189
6190         * config/sparc/sparc.md (save_register_window_1): Rename to...
6191         (window_save): ...this.
6192         * config/sparc/sparc.c (emit_save_register_window): Rename to...
6193         (emit_window_save): ...this.
6194         (sparc_expand_prologue): Adjust to above renaming.
6195
6196 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
6197
6198         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
6199         of movabs for x32.
6200
6201 2011-07-10  Richard Henderson  <rth@redhat.com>
6202
6203         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
6204         run final, instead of emitting text directly.
6205
6206 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
6207
6208         * config/i386/i386.c (ix86_option_override_internal): Turn on
6209         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
6210         small PIC models for TARGET_X32.
6211
6212 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
6213
6214         PR target/49684
6215         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
6216         $(LIBGCC2_CFLAGS).
6217
6218         PR bootstrap/49680
6219         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
6220         stray notes and debug insns by using prev_nonnote_nondebug_insn
6221         instead of PREV_INSN.
6222
6223 2011-07-09  Richard Henderson  <rth@redhat.com>
6224
6225         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
6226         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
6227         * dwarf2out.c: ... here.
6228         (output_all_cfis): Remove.
6229         (dwarf2out_switch_text_section): Use output_cfis directly.
6230         (size_of_locs): Export.
6231         (output_loc_sequence, output_loc_sequence_raw): Export.
6232         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
6233         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
6234         output_cfa_loc_raw): Move to ...
6235         * dwarfcfi.c: ... here.
6236         * dwarf2out.h: Update decls.
6237
6238 2011-07-09  Richard Henderson  <rth@redhat.com>
6239
6240         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
6241         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
6242         * dwarf2cfi.c: ... here.
6243         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
6244         (DWARF_ROUND, DWARF_CIE_ID): Remove.
6245         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
6246         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
6247         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
6248
6249 2011-07-09  Richard Henderson  <rth@redhat.com>
6250
6251         * dwarf2cfi.c (cie_return_save): New.
6252         (queue_reg_save): Use compare_reg_or_pc.
6253         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
6254         (dwarf2out_frame_debug_expr): Likewise.
6255         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
6256         (initial_return_save): Likewise.
6257         (execute_dwarf2_frame): Save and restore initial return save from
6258         the cie to the fde.
6259         * config/mips/mips.c (mips_frame_set): Remove special case for
6260         DWARF_FRAME_RETURN_COLUMN.
6261
6262 2011-07-09  Richard Henderson  <rth@redhat.com>
6263
6264         * dwarf2cfi.c (lookup_cfa): Remove.
6265         (execute_dwarf2_frame): Assert queues are empty on entry.
6266         Setup initial cfa directly, not via lookup_cfa.
6267         Don't clear args_size state here.
6268
6269 2011-07-09  Richard Henderson  <rth@redhat.com>
6270
6271         * dwarf2cfi.c (add_cfi_vec): New.
6272         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
6273         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
6274         (execute_dwarf2_frame): Set add_cfi_vec.
6275
6276 2011-07-09  Richard Henderson  <rth@redhat.com>
6277
6278         * defaults.h (ASM_COMMENT_START): Move here...
6279         * dwarf2asm.c: ... from here.
6280         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
6281         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
6282         * varasm.c: Likewise.
6283
6284 2011-07-09  Richard Henderson  <rth@redhat.com>
6285
6286         PR debug/49686
6287         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
6288         (create_cfi_notes): ... do it here instead.
6289
6290 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
6291
6292         PR debug/49676
6293         * dwarf2out.c (size_of_int_loc_descriptor): New function.
6294         (address_of_int_loc_descriptor): Use it.
6295         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
6296
6297 2011-07-09  Richard Henderson  <rth@redhat.com>
6298
6299         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
6300         (prologue, epilogue): New.
6301         (return, *rts): New.
6302         (blockage, setd, seti): New.
6303         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
6304         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
6305         (pdp11_saved_regno): New.
6306         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
6307         generate rtl instead of text.
6308         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
6309         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
6310         * config/pdp11/pdp11-protos.h: Update.
6311
6312 2011-07-09  Richard Henderson  <rth@redhat.com>
6313
6314         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
6315         try to insert an rtl prologue here.
6316         (rs6000_output_function_epilogue): Similarly.
6317         * config/rs6000/rs6000.md (prologue): Emit a barrier to
6318         satisfy !TARGET_SCHED_PROLOG.
6319         (epilogue, sibcall_epilogue): Likewise.
6320
6321 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
6322
6323         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
6324         (FP_REG_P): Delete.
6325         (IN_OR_GLOBAL_P): Likewise.
6326
6327 2011-07-08  Jason Merrill  <jason@redhat.com>
6328
6329         PR c++/45437
6330         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
6331         compound assignment.
6332
6333         * cgraph.c (cgraph_add_to_same_comdat_group): New.
6334         * cgraph.h: Declare it.
6335         * ipa.c (function_and_variable_visibility): Make sure thunks
6336         have the right visibility.
6337
6338 2011-07-08  Richard Henderson  <rth@redhat.com>
6339
6340         PR bootstrap/49680
6341         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
6342         any tablejump vector.
6343
6344         PR bootstrap/49680
6345         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
6346         end of the prologue.
6347
6348 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
6349
6350         PR target/49621
6351         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
6352         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
6353         * config/rs6000/vector.md (vector_select_<mode>,
6354         vector_select_<mode>_uns): Change second operand of NE to
6355         CONST0_RTX (<MODE>mode) instead of const0_rtx.
6356         * config/rs6000/altivec.md (*altivec_vsel<mode>,
6357         *altivec_vsel<mode>_uns): Expect second operand of NE to be
6358         zero_constant of the corresponding vector mode.
6359         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
6360         Likewise.
6361
6362 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
6363
6364         * graphite-dependences.c (build_alias_set_powerset): Remove
6365         continue from loop, add one more assert.
6366
6367 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
6368
6369         PR target/46779
6370         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
6371         In particular, allow 8-bit values in r28 and r29.
6372         (avr_hard_regno_scratch_ok): Disallow any register that might be
6373         part of the frame pointer.
6374         (avr_hard_regno_rename_ok): Same.
6375         (avr_legitimate_address_p): Don't allow SUBREGs.
6376
6377 2011-07-08  Julian Brown  <julian@codesourcery.com>
6378
6379         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
6380         big-endian mode.
6381         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
6382         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
6383         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
6384         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
6385         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
6386         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
6387         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
6388         registers in big-endian mode.
6389
6390 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
6391
6392         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
6393         in terms of another.
6394         (write_attr_value): Write a cast if necessary.
6395
6396         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
6397         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
6398         (REG_WORDS_BIG_ENDIAN): Document.
6399         * doc/tm.texi: Regenerate.
6400         * reload.c (operands_match_p): Take it into account.
6401         (reload_adjust_reg_for_mode): Likewise.
6402         * rtlanal.c (subreg_get_info): Likewise.
6403
6404 2011-07-08  Richard Guenther  <rguenther@suse.de>
6405
6406         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
6407         folding.
6408
6409 2011-07-08  Kai Tietz  <ktietz@redhat.com>
6410
6411         * fold-const.c (fold_truth_andor): Factored out truth_andor
6412         label from fold_binary as function.
6413         (fold_binary_loc): Replace truth_andor lable
6414         by function fold_truth_andor.
6415
6416 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
6417
6418         PR middle-end/49519
6419         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
6420         check if address is stored in register. If so - give up.
6421         (check_sibcall_argument_overlap_1): Do not perform check of
6422         overlapping when it is call to address.
6423
6424 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
6425
6426         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
6427         of magic '31'.
6428
6429 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
6430
6431         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
6432         GET_MODE_BITSIZE where appropriate.
6433         (widen_leading, expand_parity, expand_ctz, expand_ffs,
6434         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
6435         expand_float, expand_fix): Likewise.
6436         * expr.c (convert_move, convert_modes, expand_expr_real_2,
6437         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
6438         * stor-layout.c (get_mode_bounds): Likewise.
6439         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
6440         Likewise.
6441         * convert.c (convert_to_integer): Likewise.
6442         * expmed.c (expand_shift_1): Likewise.
6443
6444         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
6445         a bitsize.
6446
6447         * optabs.c (expand_binop): Tighten conditions for doubleword
6448         expansions.
6449         (widen_bswap): Assert that mode bitsize and precision are the same.
6450         * stor-layout.c (get_best_mode): Skip modes that have lower
6451         precision than bitsize.
6452         * recog.c (simplify_while_replacing): Assert that bitsize and
6453         precision are the same.
6454
6455 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6456
6457         * Makefile.in (LIBGCOV): Remove.
6458         (libgcc.mvars): Remove LIBGCOV.
6459         * libgov.c: Move to ../libgcc.
6460
6461 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6462
6463         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
6464
6465 2011-07-08  Martin Jambor  <mjambor@suse.cz>
6466
6467         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
6468         is too big for total scalarization.
6469
6470 2011-07-07  Richard Henderson  <rth@redhat.com>
6471
6472         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
6473         (DBX_DEBUGGING_INFO): Undef.
6474
6475 2011-07-07  Richard Henderson  <rth@redhat.com>
6476
6477         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
6478         Handle some opcodes specially for debugging.
6479         * print-rtl.c: Include dwarf2out.h
6480         (print_rtx): Handle NOTE_INSN_CFI.
6481         * Makefile.in (print-rtl.o): Update.
6482
6483 2011-07-07  Richard Henderson  <rth@redhat.com>
6484
6485         * tree-pass.h (pass_dwarf2_frame): Declare.
6486         * passes.c (init_optimization_passes): Add it.
6487         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
6488         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
6489         make static, do not call add_cfis_to_fde.
6490         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
6491         dwarf2out_frame_init): Merge into...
6492         (execute_dwarf2_frame): ... here.  New function.
6493         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
6494         saved_do_cfi_asm to a tri-state variable.
6495         (gate_dwarf2_frame, pass_dwarf2_frame): New.
6496         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
6497         if it has yet to be done.  Don't call dwarf2cfi_function_init.
6498         * dwarf2out.h, debug.h: Update decls.
6499         * final.c (final_start_function): Don't call
6500         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
6501         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
6502         * toplev.c (lang_dependent_init): Likewise.
6503
6504 2011-07-07  Richard Henderson  <rth@redhat.com>
6505
6506         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
6507         FDE_TABLE_INCREMENT): Replace with...
6508         (fde_vec): ... this, a new vector.
6509         (current_fde): Remove.  Replace all users with cfun->fde.
6510         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
6511         (size_of_aranges, dwarf2out_finish): Likewise.
6512         (dwarf2out_alloc_current_fde): Break out from ...
6513         (dwarf2out_begin_prologue): ... here.
6514         (dwarf2out_frame_init): Remove.
6515         * dwarf2cfi.c: Update all users of current_fde.
6516         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
6517         * dwarf2out.h: Update decls.
6518         (dw_fde_node): Add fde_index member.
6519         * function.h (struct function): Add fde member.
6520
6521 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6522             Richard Henderson  <rth@redhat.com>
6523
6524         * dwarf2cfi.c (add_cfi): Remove.
6525         (dwarf2out_cfi_label): Remove force argument.  Only generate the
6526         label name.
6527         (add_fde_cfi): Simplify the different code paths.
6528         (add_cie_cfi): New.
6529         (old_cfa, old_cfa_remember): New.
6530         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
6531         (last_reg_save_label): Remove.
6532         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
6533         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
6534         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
6535         dwarf2out_frame_debug_cfa_expression,
6536         dwarf2out_frame_debug_cfa_restore,
6537         dwarf2out_frame_debug_cfa_window_save,
6538         dwarf2out_frame_debug_expr): Remove label parameter.
6539         (cfi_label_required_p, add_cfis_to_fde): New.
6540         (dwarf2out_frame_debug_after_prologue): New.
6541         (dwarf2cfi_frame_init): Initialize old_cfa.
6542         (dwarf2out_frame_debug_restore_state): Likewise.
6543         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
6544         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
6545         * final.c (final_start_function): Call
6546         dwarf2out_frame_debug_after_prologue.
6547
6548 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6549             Richard Henderson  <rth@redhat.com>
6550
6551         * dwarf2cfi.c (cfi_insn): New.
6552         (dwarf2out_cfi_label): Don't emit cfi label here.
6553         (add_fde_cfi): Create a NOTE_INSN_CFI.
6554         (dwarf2out_frame_debug): Setup cfi_insn.
6555         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
6556         (dwarf2out_cfi_begin_epilogue): Make static.
6557         (dwarf2out_frame_debug_restore_state): Make static.
6558         * dwarf2out.c (output_cfi_directive): Make static.
6559         (dwarf2out_emit_cfi): New.
6560         * dwarf2out.h: Update.
6561         * final.c (final): Remove CFI notes.
6562         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
6563         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
6564         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
6565         * insn-notes.def (NOTE_INSN_CFI): New.
6566         (NOTE_INSN_CFI_LABEL): New.
6567         * rtl.h (union rtunion_def): Add rt_cfi member.
6568         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
6569
6570 2011-07-07  Richard Henderson  <rth@redhat.com>
6571
6572         * dwarf2cfi.c: New file.
6573         * Makefile.in (OBJS): Add it.
6574         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
6575         * gengtype.c (open_base_files): Include dwarf2out.h.
6576         * coretypes.h (enum var_init_status): Move from ...
6577         * rtl.h: ... here.
6578         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
6579         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
6580         expand_builtin_dwarf_sp_column, init_return_column_size,
6581         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
6582         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
6583         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
6584         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
6585         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
6586         compute_barrier_args_size, dwarf2out_args_size,
6587         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
6588         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
6589         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
6590         queue_reg_save, dwarf2out_flush_queued_reg_saves,
6591         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
6592         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
6593         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
6594         dwarf2out_frame_debug_cfa_expression,
6595         dwarf2out_frame_debug_cfa_restore,
6596         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
6597         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
6598         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
6599         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
6600         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
6601         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
6602         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
6603         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
6604         dw_loc_descr_node): Move to dwarf2out.h.
6605         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
6606         mem_loc_descriptor): Export.
6607         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
6608         (dwarf2out_frame_init): Extract CIE generation code to
6609         dwarf2cfi_frame_init.
6610
6611 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
6612
6613         PR target/49660
6614         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
6615         MASK_V8PLUS, remove commented out flag and reorder.
6616
6617 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
6618
6619         PR c/49644
6620         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
6621         one non-complex and one complex argument, call c_save_expr on both
6622         operands.
6623
6624 2011-07-07  Martin Jambor  <mjambor@suse.cz>
6625
6626         PR middle-end/49495
6627         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
6628         (verify_cgraph_node): Some functinality moved to
6629         verify_edge_corresponds_to_fndecl, call it.
6630
6631 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
6632
6633         * config.gcc (*local*): Remove.
6634         * doc/install-old.texi: Don't mention local configurations.
6635
6636 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
6637
6638         PR debug/49522
6639         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
6640         referencing debug insns that have been reset.
6641         (dead_debug_insert_before): Don't assert reg is non-NULL,
6642         instead return immediately if it is NULL.
6643
6644 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
6645
6646         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
6647
6648 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6649
6650         * hw-doloop.c: New file.
6651         * hw-doloop.h: New file.
6652         * Makefile.in (OBJS): Add hw-doloop.o.
6653         (hw-doloop.o): New rule.
6654         ($(obj_out_file)): Add hw-doloop.h dependency.
6655         * config/bfin/bfin.c: Include "hw-doloop.h".
6656         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
6657         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
6658         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
6659         type changed to hwloop_info.  Return bool, true if the loop was
6660         successfully optimized.  Remove code that was moved to
6661         hw-doloop.c, and adjust other parts.
6662         (hwloop_fail): New static function, containing parts that used
6663         to be in bfin_optimize_loop.
6664         (bfin_discover_loop, bfin_discover_loops, free_loops,
6665         bfin_reorder_loops): Remove.
6666         (hwloop_pattern_reg): New static function.
6667         (bfin_doloop_hooks): New variable.
6668         (bfin_reorg_loops): Remove most code, call reorg_loops.
6669         * config/bfin/bfin.md (doloop_end splitter): Also enable if
6670         loop counter is a memory_operand.
6671
6672 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
6673
6674         * config.gcc: Support --with-multilib-list for x86 Linux targets.
6675
6676         * configure.ac: Mention x86-64 for --with-multilib-list.
6677         * configure: Regenerated.
6678
6679         * config/i386/gnu-user64.h (SPEC_64): Support x32.
6680         (SPEC_32): Likewise.
6681         (ASM_SPEC): Likewise.
6682         (LINK_SPEC): Likewise.
6683         (TARGET_THREAD_SSP_OFFSET): Likewise.
6684         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
6685         (SPEC_X32): New.
6686
6687         * config/i386/i386.h (TARGET_X32): New.
6688         (TARGET_LP64): New.
6689         (LONG_TYPE_SIZE): Likewise.
6690         (POINTER_SIZE): Likewise.
6691         (POINTERS_EXTEND_UNSIGNED): Likewise.
6692         (OPT_ARCH64): Support x32.
6693         (OPT_ARCH32): Likewise.
6694
6695         * config/i386/i386.opt (mx32): New.
6696
6697         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
6698         (GLIBC_DYNAMIC_LINKERX32): Likewise.
6699         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
6700         (GLIBC_DYNAMIC_LINKERX32): Likewise.
6701
6702         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
6703         (BIONIC_DYNAMIC_LINKERX32): Likewise.
6704         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
6705
6706         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
6707
6708         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
6709
6710         * doc/invoke.texi: Document -mx32.
6711
6712 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
6713
6714         * doc/invoke.texi (mwords-little-endian): Deprecate.
6715         * config/arm/arm.opt (mwords-little-endian): Likewise.
6716         * config/arm/arm.c (arm_option_override): Warn about the deprecation
6717         of -mwords-little-endian.
6718
6719 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
6720
6721         * reload1.c (choose_reload_regs): Use mode sizes to check whether
6722         an old reload register completely defines the required value.
6723
6724 2011-07-07  Richard Guenther  <rguenther@suse.de>
6725
6726         * fold-const.c (fold_unary_loc): Do not strip sign-changes
6727         for NEGATE_EXPR.
6728
6729 2011-07-07  Richard Guenther  <rguenther@suse.de>
6730
6731         * tree-vrp.c (simplify_conversion_using_ranges): New function.
6732         (simplify_stmt_using_ranges): Call it.
6733
6734 2011-07-07  Kai Tietz  <ktietz@redhat.com>
6735
6736         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
6737         (lookup_logical_inverted_value): Likewise.
6738         (simplify_bitwise_binary_1): Likewise.
6739         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
6740
6741 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
6742
6743         * gcc.c (%[Spec]): Don't document.
6744         (struct spec_list): Update comment.
6745         (do_spec_1): Don't handle %[Spec].
6746         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
6747
6748 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
6749
6750         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
6751         default based on TARGET_ASM_NAMED_SECTION.
6752         * common/common-target.def (have_named_sections): Default to true.
6753         * common/config/default-common.c: Don't include tm.h.
6754         * common/config/picochip/picochip-common.c
6755         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
6756         * common/config/m32c/m32c-common.c: Remove.
6757         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
6758         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6759         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6760         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6761         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6762         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6763         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
6764
6765 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
6766
6767         PR middle-end/49640
6768         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
6769         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
6770
6771 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6772
6773         PR libmudflap/49550
6774         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
6775
6776 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6777
6778         PR target/39150
6779         * configure.ac (gcc_cv_as_hidden): Also accept
6780         x86_64-*-solaris2.1[0-9]*.
6781         (gcc_cv_as_cfi_directive): Likewise.
6782         (gcc_cv_as_comdat_group_group): Likewise.
6783         (set_have_as_tls): Likewise.
6784         * configure: Regenerate.
6785         * config.gcc (i[34567]86-*-solaris2*): Also handle
6786         x86_64-*-solaris2.1[0-9]*.
6787         * config.host (i[34567]86-*-solaris2*): Likewise.
6788         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
6789         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
6790         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
6791         (TARGET_LD_EMULATION): Use it.
6792         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
6793         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
6794         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
6795         (ASM_CPU64_DEFAULT_SPEC): Define.
6796         (ASM_CPU_SPEC): Use %(asm_cpu_default).
6797         (ASM_SPEC): Redefine.
6798         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
6799         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
6800         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
6801         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
6802         configuration.
6803         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
6804
6805 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6806
6807         * config/sol2.h (ASM_SPEC): Split into ...
6808         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
6809         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
6810         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
6811         (ASM_SPEC): Use ASM_SPEC_BASE.
6812         * config/sparc/sol2.h (ASM_SPEC): Redefine.
6813
6814 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
6815
6816         * config/avr/avr.md (*reload_insi): Change predicate #1 to
6817         const_int_operand.  Ditto for peep2 producing this insn.
6818         Add argument to output_reload_insisf call.
6819         (*movsi,*movsf): Add argument to output_movsisf call.
6820         (*reload_insf): New insn and new peep2 to produce it.
6821         * config/avr/avr-protos.h (output_movsisf): Change prototype.
6822         (output_reload_insisf): Change prototype.
6823         * config/avr/avr.c (avr_asm_len): New function.
6824         (output_reload_insisf): Rewrite.
6825         (output_movsisf): Change prototype.  output_reload_insisf for
6826         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
6827         (adjust_insn_length): Add argument to output_movsisf and
6828         output_reload_insisf call.
6829
6830 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6831
6832         * emit-rtl.c (paradoxical_subreg_p): New function.
6833         * rtl.h (paradoxical_subreg_p): Declare.
6834         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
6835         apply_distributive_law, simplify_comparison, simplify_set): Use it.
6836         * cse.c (record_jump_cond, cse_insn): Likewise.
6837         * expr.c (force_operand): Likewise.
6838         * rtlanal.c (num_sign_bit_copies1): Likewise.
6839         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
6840         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
6841         (push_reload): Use precision to check for paradoxical subregs.
6842         * expmed.c (extract_bit_field_1): Likewise.
6843
6844         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
6845         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
6846         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
6847         simplify_set, simplify_logical, expand_compound_operation,
6848         make_extraction, force_to_mode, if_then_else_cond, extended_count,
6849         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
6850         record_value_for_reg): Likewise.
6851         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
6852         * simplify-rtx. c (simplify_unary_operation_1,
6853         simplify_binary_operation_1, simplify_const_relational_operation):
6854         Likewise.
6855
6856         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
6857         instead of GET_MODE_BITSIZE where appropriate.
6858         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
6859         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
6860         init_num_sign_bit_copies_in_rep): Likewise.
6861         * cse.c (fold_rtx, cse_insn): Likewise.
6862         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
6863         * simplify-rtx.c (simplify_unary_operation_1,
6864         simplify_const_unary_operation, simplify_binary_operation_1,
6865         simplify_const_binary_operation, simplify_ternary_operation,
6866         simplify_const_relational_operation, simplify_subreg): Likewise.
6867         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
6868         simplify_if_then_else, simplify_set, expand_compound_operation,
6869         expand_field_assignment, make_extraction, if_then_else_cond,
6870         make_compound_operation, force_to_mode, make_field_assignment,
6871         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
6872         extended_count, try_widen_shift_mode, simplify_shift_const_1,
6873         simplify_comparison, record_promoted_value, simplify_compare_const,
6874         record_dead_and_set_regs_1): Likewise.
6875
6876         Revert:
6877         * simplify-rtx.c (simplify_const_binary_operation): Use the
6878         shift_truncation_mask hook instead of performing modulo by width.
6879         Compare against mode precision, not bitsize.
6880         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
6881         Use shift_truncation_mask instead of constructing the value manually.
6882
6883 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
6884
6885         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
6886         declaration.
6887         (rs6000_save_toc_in_prologue_p): Ditto.
6888
6889         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
6890         up the static chain (r11) during indirect function calls.
6891         (-msave-toc-indirect): New undocumented debug switch.
6892
6893         * config/rs6000/rs6000.c (struct machine_function): Add
6894         save_toc_in_prologue field to note whether the prologue needs to
6895         save the TOC value in the reserved stack location.
6896         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
6897         to save the TOC in the prologue, do so.
6898         (rs6000_trampoline_init): Don't allow creating AIX style
6899         trampolines if -mno-r11 is in effect.
6900         (rs6000_call_indirect_aix): New function to create AIX style
6901         indirect calls, adding support for -mno-r11 to suppress loading
6902         the static chain, and saving the TOC in the prologue instead of
6903         the call body.
6904         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
6905         TOC in the prologue.
6906
6907         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
6908         register numbers.
6909         (TOC_REGNUM): Ditto.
6910         (STATIC_CHAIN_REGNUM): Ditto.
6911         (ARG_POINTER_REGNUM): Ditto.
6912         (SFP_REGNO): Delete, unused.
6913         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
6914         function descriptor offsets.
6915         (TOC_SAVE_OFFSET_64BIT): Ditto.
6916         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
6917         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
6918         (AIX_FUNC_DESC_SC_32BIT): Ditto.
6919         (AIX_FUNC_DESC_SC_64BIT): Ditto.
6920         (ptrload): New mode attribute for the appropriate load of a pointer.
6921         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
6922         (call_indirect_aix64): Ditto.
6923         (call_value_indirect_aix32): Ditto.
6924         (call_value_indirect_aix64): Ditto.
6925         (call_indirect_nonlocal_aix32_internal): Ditto.
6926         (call_indirect_nonlocal_aix32): Ditto.
6927         (call_indirect_nonlocal_aix64_internal): Ditto.
6928         (call_indirect_nonlocal_aix64): Ditto.
6929         (call): Rewrite AIX indirect function calls.  Add support for
6930         eliminating the static chain, and for moving the save of the TOC
6931         to the function prologue.
6932         (call_value): Ditto.
6933         (call_indirect_aix<ptrsize>): Ditto.
6934         (call_indirect_aix<ptrsize>_internal): Ditto.
6935         (call_indirect_aix<ptrsize>_internal2): Ditto.
6936         (call_indirect_aix<ptrsize>_nor11): Ditto.
6937         (call_value_indirect_aix<ptrsize>): Ditto.
6938         (call_value_indirect_aix<ptrsize>_internal): Ditto.
6939         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
6940         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
6941         (call_nonlocal_aix32): Relocate in the rs6000.md file.
6942         (call_nonlocal_aix64): Ditto.
6943
6944         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
6945         -mno-r11 documentation.
6946
6947 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6948
6949         PR other/49658
6950         * doc/extend.texi (Compound Literals): Fix typo.
6951
6952 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
6953
6954         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
6955
6956 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
6957
6958         * configure.ac (plugin-version.h): Generate
6959         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
6960         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
6961         macros.
6962
6963         * configure: Regenerate.
6964
6965         * doc/plugins.texi (Building GCC plugins): Mention
6966         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
6967
6968 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
6969
6970         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
6971         * combine.c (make_extraction, gen_lowpart_or_truncate,
6972         apply_distributive_law, simplify_comparison,
6973         reg_truncated_to_mode, record_truncated_value): Use it.
6974         * cse.c (notreg_cost): Likewise.
6975         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
6976         * expr.c (convert_move, convert_modes): Likewise.
6977         * optabs.c (expand_binop, expand_unop): Likewise.
6978         * postreload.c (move2add_last_label): Likewise.
6979         * regmove.c (optimize_reg_copy_3): Likewise.
6980         * rtlhooks.c (gen_lowpart_general): Likewise.
6981         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
6982
6983 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
6984
6985         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
6986
6987 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
6988
6989         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
6990         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
6991         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
6992         (simplify_const_unary_operation, simplify_binary_operation_1,
6993         simplify_const_binary_operation, simplify_const_relational_operation):
6994         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
6995         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
6996         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
6997         simplify_shift_const_1, simplify_comparison): Likewise.
6998         * expr.c (convert_modes): Likewise.
6999         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
7000         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
7001         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
7002
7003         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
7004
7005 2011-07-06  Richard Guenther  <rguenther@suse.de>
7006
7007         PR tree-optimization/49645
7008         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
7009         register variables.
7010         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
7011         in type qualification here ...
7012         (copy_reference_ops_from_ref): ... not here.
7013         (vn_reference_lookup_3): ... or here.
7014         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
7015         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
7016
7017 2011-07-06  Ian Lance Taylor  <iant@google.com>
7018
7019         * doc/install.texi (Configuration): It's
7020         --enable-gnu-indirect-function, not --enable-indirect-function.
7021
7022 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
7023
7024         * simplify-rtx.c (simplify_const_binary_operation): Use the
7025         shift_truncation_mask hook instead of performing modulo by width.
7026         Compare against mode precision, not bitsize.
7027         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
7028         Use shift_truncation_mask instead of constructing the value manually.
7029
7030 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
7031
7032         PR middle-end/47383
7033         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
7034         address computation and convert to address_mode if needed.
7035
7036 2011-07-06  Richard Guenther  <rguenther@suse.de>
7037
7038         * tree.c (build_common_tree_nodes_2): Merge with
7039         build_common_tree_nodes.
7040         * tree.h (build_common_tree_nodes): Adjust prototype.
7041         (build_common_tree_nodes_2): Remove.
7042         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
7043         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
7044
7045 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
7046
7047         PR tree-optimization/49618
7048         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
7049         t recurse on the decl.
7050         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
7051         return true if expr isn't known to be defined in current
7052         TU or some other LTO partition.
7053
7054 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
7055
7056         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
7057         override CASE_VALUES_THRESHOLD.
7058
7059         * stmt.c (toplevel): Include params.h.
7060         (case_values_threshold): Use the --param case-values-threshold
7061         value if non-zero, otherwise use machine dependent value.
7062         (expand_case): Use case_values_threshold.
7063
7064         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
7065
7066         * doc/invoke.texi (--param case-values-threshold): Document.
7067
7068 2011-07-05  Richard Henderson  <rth@redhat.com>
7069
7070         * dwarf2out.c (dwarf2out_cfi_label): Make static.
7071         (dwarf2out_flush_queued_reg_saves): Make static.
7072         (dwarf2out_reg_save): Remove.
7073         (dwarf2out_return_save): Remove.
7074         (dwarf2out_return_reg): Remove.
7075         (dwarf2out_reg_save_reg): Remove.
7076         (dwarf2out_def_cfa): Merge into ...
7077         (dwarf2out_frame_init): ... here.
7078         * dwarf2out.h, tree.h: Remove declarations as necessary.
7079
7080 2011-07-05  Richard Henderson  <rth@redhat.com>
7081
7082         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
7083         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7084         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
7085         the alloc insn.
7086
7087         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
7088         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
7089         (process_epilogue): Don't call dwarf2out_def_cfa.
7090
7091         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
7092         indicate the return address save.
7093         (process_cfa_register): Likewise.
7094
7095         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
7096         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
7097
7098         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
7099         for ar.pfs save at alloc insn.
7100
7101 2011-07-05  Richard Henderson  <rth@redhat.com>
7102
7103         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
7104         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7105         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
7106         stack pointer save.
7107         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
7108         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
7109         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
7110         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
7111
7112 2011-07-05  Richard Henderson  <rth@redhat.com>
7113
7114         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
7115         VUNSPEC_* constants here instead of via define_constants.
7116         (VUNSPEC_PEM): New constant.
7117         (procedure_entry_mask): New insn.
7118         (prologue): New expander.
7119         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
7120         (vax_expand_prologue): Rename from vax_output_function_prologue;
7121         emit rtl instead of text.
7122         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7123         (print_operand): Add 'x' prefix.
7124
7125 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
7126
7127         PR middle-end/47715
7128         * calls.c (precompute_register_parameters): Promote the function
7129         argument before checking non-legitimate constant.
7130
7131 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7132
7133         PR tree-optimization/47654
7134         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
7135         (lst_do_strip_mine_loop): Return an int.
7136         (lst_do_strip_mine): Same.
7137         (scop_do_strip_mine): Same.
7138         (scop_do_block): Loop blocking should strip-mine at least two loops.
7139         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
7140         (scop_do_interchange): Same.
7141         * graphite-poly.h (scop_do_interchange): Update declaration.
7142         (scop_do_strip_mine): Same.
7143
7144 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7145
7146         * graphite-clast-to-gimple.c (precision_for_value): Removed.
7147         (precision_for_interval): Removed.
7148         (gcc_type_for_interval): Use mpz_sizeinbase.
7149
7150 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7151
7152         * graphite-ppl.h (value_max): Correct computation of max.
7153
7154 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
7155
7156         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
7157
7158 2011-07-05  Richard Guenther  <rguenther@suse.de>
7159
7160         * c-decl.c (c_init_decl_processing): Defer building common
7161         tree nodes to c_common_nodes_and_builtins.
7162
7163 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
7164
7165         PR tree-optimization/49580
7166         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
7167         the loop's number of iterations.
7168         * tree-parloops.c (transform_to_exit_first_loop): Add the
7169         handling of the loop's number of iterations before the call
7170         to gimple_duplicate_sese_tail.
7171         Insert the stmt caclculating the new rhs of the loop's
7172         condition stmt to the preheader instead of iters_bb.
7173
7174 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
7175
7176         PR rtl-optimization/47449
7177         * fwprop.c (forward_propagate_subreg): Don't propagate hard
7178         register nor zero/sign extended hard register.
7179
7180 2011-07-05  Richard Guenther  <rguenther@suse.de>
7181
7182         PR tree-optimization/49518
7183         PR tree-optimization/49628
7184         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
7185         irrelevant and invariant data-references.
7186         (vect_analyze_data_ref_access): For invariant loads clear the
7187         group association.
7188
7189 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
7190
7191         PR rtl-optimization/49619
7192         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
7193         pass VOIDmode as op0_mode to recursive call, and return temp even
7194         when different from tor, just if it is not IOR of the original
7195         PLUS arguments.
7196
7197         PR rtl-optimization/49472
7198         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
7199         negating MULT, negate the second operand instead of first.
7200         (simplify_binary_operation_1) <case MULT>: If one operand is
7201         a NEG and the other is MULT, don't attempt to optimize by negation
7202         of the MULT operand if it only moves the NEG operation around.
7203
7204         PR debug/49602
7205         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
7206         get_current_def return value if it can't be trusted to be
7207         the current value of the variable in the current bb.
7208
7209 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
7210
7211         PR target/49600
7212         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
7213         general register to memory for !TARGET_INTER_UNIT_MOVES.
7214
7215 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
7216
7217         PR target/44643
7218         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
7219         instead of TREE_READONLY.
7220
7221 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
7222
7223         * doc/extend.texi (AVR Built-in Functions): Update documentation
7224         of __builtin_avr_fmul*.
7225         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
7226         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
7227         * config/avr/avr.md (fmul): Rename to fmul_insn.
7228         (fmuls): Rename to fmuls_insn.
7229         (fmulsu): Rename to fmulsu_insn.
7230         (fmul,fmuls,fmulsu): New expander.
7231         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
7232         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
7233         * config/avr/libgcc.S (__fmul): New function.
7234         (__fmuls): New function.
7235         (__fmulsu,__fmulsu_exit): New function.
7236
7237 2011-07-04  Richard Guenther  <rguenther@suse.de>
7238
7239         PR tree-optimization/49615
7240         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
7241         basic-block index check.
7242
7243 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
7244
7245         * longlong.h (count_leading_zeros, count_trailing_zeros,
7246         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
7247         resp. 64.
7248
7249 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
7250
7251         PR tree-optimization/49610
7252         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
7253         a basic block.
7254
7255 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
7256             Olivier Hainque  <hainque@adacore.com>
7257             Nicolas Setton  <setton@adacore.com>
7258
7259         * tree.h (TYPE_ARTIFICIAL): New flag.
7260         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
7261         the DIE of the type if it is artificial.
7262         (gen_array_type_die): Likewise.
7263         (gen_enumeration_type_die): Likewise.
7264         (gen_struct_or_union_type_die): Likewise.
7265         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
7266         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
7267
7268 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
7269
7270         * tree-object-size.c (pass_through_call): Handle
7271         BUILT_IN_ASSUME_ALIGNED.
7272
7273 2011-07-01  Martin Jambor  <mjambor@suse.cz>
7274
7275         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
7276
7277 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
7278
7279         PR middle-end/48016
7280         * explow.c (update_nonlocal_goto_save_area): Use proper mode
7281         for stack save area.
7282         * function.c (expand_function_start): Likewise.
7283
7284 2011-07-01  Richard Guenther  <rguenther@suse.de>
7285
7286         PR middle-end/49596
7287         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
7288         may have unknown refs.
7289
7290 2011-07-01  Kai Tietz  <ktietz@redhat.com>
7291
7292         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
7293
7294 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7295
7296         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
7297         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
7298         (Specific, mips-sgi-irix6): Likewise.
7299
7300 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7301
7302         PR libmudflap/49549
7303         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
7304
7305 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
7306
7307         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
7308         [idx]= and [idx1 ... idx2]= before initializers if needed for
7309         array initializers.
7310
7311 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
7312
7313         * config.gcc (score-*-elf): Remove score7.o.
7314         * config/score/t-score-elf: Likewise.
7315         * config/score/score.c: Merge score7 to score.c and
7316         remove forwarding functions.
7317         * config/score/score7.c: Deleted.
7318         * config/score/score7.h: Deleted.
7319
7320 2011-07-01  Richard Guenther  <rguenther@suse.de>
7321
7322         PR tree-optimization/49603
7323         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
7324
7325 2011-06-30  Martin Jambor  <mjambor@suse.cz>
7326
7327         * tree-sra.c (struct access): Rename total_scalarization to
7328         grp_total_scalarization
7329         (completely_scalarize_var): New function.
7330         (sort_and_splice_var_accesses): Set total_scalarization in the
7331         representative access.
7332         (analyze_access_subtree): Propagate total scalarization accross the
7333         tree, no holes in totally scalarized trees, simplify coverage
7334         computation.
7335         (analyze_all_variable_accesses): Call completely_scalarize_var instead
7336         of completely_scalarize_record.
7337
7338 2011-06-30  Richard Henderson  <rth@redhat.com>
7339
7340         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
7341         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
7342         * config/i386/i386.c: Don't include dwarf2out.h.
7343         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
7344         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
7345         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
7346         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
7347         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
7348
7349 2011-06-30  Richard Henderson  <rth@redhat.com>
7350
7351         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
7352         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
7353         * final.c (final_scan_insn): Look for it, and invoke
7354         dwarf2out_frame_debug before the insn if found.
7355
7356 2011-06-30  Richard Henderson  <rth@redhat.com>
7357
7358         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
7359         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
7360
7361 2011-06-30  Richard Henderson  <rth@redhat.com>
7362
7363         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
7364         Define a vector of this type.
7365         (regs_saved_in_regs): Use a VEC.
7366         (num_regs_saved_in_regs): Remove.
7367         (compare_reg_or_pc): New.
7368         (record_reg_saved_in_reg): Split out from...
7369         (dwarf2out_flush_queued_reg_saves): ... here.
7370         (clobbers_queued_reg_save): Update for VEC.
7371         (reg_saved_in): Likewise.
7372         (dwarf2out_frame_debug_init): Likewise.
7373         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
7374         (dwarf2out_frame_debug_cfa_register): Likewise.
7375
7376 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
7377
7378         PR tree-optimization/49572
7379         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
7380         type of the RHS instead of that of the LHS for the expression type.
7381
7382 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
7383
7384         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
7385         unconditionally.
7386
7387 2011-06-30  Richard Guenther  <rguenther@suse.de>
7388
7389         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
7390         * tree-ssa-structalias.c (create_variable_info_for): Do not
7391         add initial constraints for non-var-decls.  Properly handle
7392         globals in other ltrans partitions.
7393         (intra_create_variable_infos): Manually create constraints for
7394         the fake no-alias parameter.
7395         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
7396         and assert there are no clones.
7397
7398 2011-06-30  Richard Guenther  <rguenther@suse.de>
7399
7400         PR tree-optimization/46787
7401         * tree-data-ref.c (dr_address_invariant_p): Remove.
7402         (find_data_references_in_stmt): Invariant accesses are ok now.
7403         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
7404         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
7405         invariant loads.
7406
7407 2011-06-30  Martin Jambor  <mjambor@suse.cz>
7408
7409         PR tree-optimization/49094
7410         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
7411         (build_accesses_from_assign): Use it.
7412
7413 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
7414
7415         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
7416         handling of BUILT_IN_ASSUME_ALIGNED.
7417
7418         PR debug/49364
7419         * dwarf2out.c (output_abbrev_section): Don't return early
7420         if abbrev_die_table_in_use is 1.
7421         (dwarf2out_finish): Instead don't call output_abbrev_section
7422         nor emit abbrev_section_label in that case.
7423
7424 2011-06-30  Nick Clifton  <nickc@redhat.com>
7425
7426         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
7427         for the V850E.
7428
7429 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
7430
7431         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
7432         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
7433
7434 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
7435
7436         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
7437         both pattern and original statements if necessary.
7438         (vect_transform_loop): Likewise.
7439         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
7440         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
7441         Mark the pattern statement only if the original statement doesn't
7442         have its own uses.
7443         (process_use): Call vect_mark_relevant with additional parameter.
7444         (vect_mark_stmts_to_be_vectorized): Likewise.
7445         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
7446         (vect_analyze_stmt): Handle both pattern and original statements
7447         if necessary.
7448         (vect_transform_stmt): Don't store vectorized pattern statement
7449         in the original statement.
7450         (vect_is_simple_use_1): Use related pattern statement only if the
7451         original statement is irrelevant.
7452         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
7453
7454 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
7455
7456         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
7457         option.
7458         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
7459         entry.
7460         (TARGET_AVX128_OPTIMAL): New definition.
7461         * config/i386/i386.c (initial_ix86_tune_features): Initialize
7462         X86_TUNE_AVX128_OPTIMAL entry.
7463         (ix86_option_override_internal): Enable the generation
7464         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
7465         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
7466         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
7467
7468 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
7469
7470         PR tree-optimization/49539
7471         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
7472         names by means of stmt_references_abnormal_ssa_name.
7473         (associate_plusminus): Call can_propagate_from before propagating
7474         from definition statements.
7475         (ssa_forward_propagate_and_combine): Remove superfluous newline.
7476
7477 2011-06-29  Richard Guenther  <rguenther@suse.de>
7478
7479         * doc/invoke.texi: Document -scev dump modifier.
7480         * tree-pass.h (TDF_SCEV): New dump flag.
7481         * tree-dump.c (dump_option_value_in): Add scev.
7482         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
7483         * tree-scalar-evolution.c: Likewise.
7484
7485 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
7486
7487         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
7488         (cxa_type_match): Correct declaration.
7489         (__gnu_unwind_pr_common): Reconstruct additional indirection
7490         when __cxa_type_match returns succeeded_with_ptr_to_base.
7491
7492 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7493
7494         PR rtl-optimization/49114
7495         * reload.c (struct replacement): Remove SUBREG_LOC member.
7496         (push_reload): Do not set it.
7497         (push_replacement): Likewise.
7498         (subst_reload): Remove dead code.
7499         (copy_replacements): Remove assertion.
7500         (copy_replacements_1): Do not handle SUBREG_LOC.
7501         (move_replacements): Likewise.
7502         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
7503         Detect subregs via recursive descent instead of via SUBREG_LOC.
7504
7505 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
7506
7507         * config/avr/avr.c (avr_encode_section_info): Dispatch to
7508         default_encode_section_info.
7509
7510 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
7511
7512         PR tree-optimization/49545
7513         * builtins.c (get_object_alignment_1): Update function comment.
7514         Do not use DECL_ALIGN for functions, but test
7515         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
7516         * fold-const.c (get_pointer_modulus_and_residue): Don't check
7517         for functions here.
7518         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
7519
7520 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
7521
7522         PR debug/49567
7523         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
7524         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
7525
7526 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
7527
7528         PR target/34734
7529         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
7530         about uninitialized data attributed 'progmem' from here...
7531         (avr_encode_section_info): ...to this new function.
7532         (TARGET_ENCODE_SECTION_INFO): New define.
7533         (avr_section_type_flags): For data in ".progmem.data", remove
7534         section flag SECTION_WRITE.
7535
7536 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
7537
7538         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
7539         _xmulhisi3_exit.
7540         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
7541         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
7542         (__umulhisi3): Ditto.
7543         * config/avr/avr.md (mulhisi3): New insn expender.
7544         (umulhisi3): New insn expender.
7545         (*mulhisi3_call): New insn.
7546         (*umulhisi3_call): New insn.
7547
7548 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
7549
7550         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
7551
7552 2011-06-28  Richard Henderson  <rth@redhat.com>
7553
7554         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
7555         all code and arguments that handled pushes.  Update all callers.
7556
7557 2011-06-28  Richard Henderson  <rth@redhat.com>
7558
7559         * config/arm/arm.c (arm_output_function_prologue): Don't call
7560         thumb1_output_function_prologue.
7561         (arm_expand_prologue): Avoid dead store.
7562         (number_of_first_bit_set): Use ctz_hwi.
7563         (thumb1_emit_multi_reg_push): New.
7564         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
7565         to emit the entire prologue as rtl.
7566         (thumb1_output_interwork): Split out from
7567         thumb1_output_function_prologue.
7568         (thumb1_output_function_prologue): Remove.
7569         (arm_attr_length_push_multi): Handle thumb1.
7570         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
7571         (prologue_thumb1_interwork): New.
7572         (*push_multi): Allow thumb1; use push_mult_memory_operand.
7573         * config/arm/predicates.md (push_mult_memory_operand): New.
7574
7575 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
7576
7577         * config/sparc/sync.md (*stbar): Delete.
7578         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
7579
7580 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
7581
7582         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
7583
7584 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7585
7586         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
7587         (TARGET_64BIT_DEFAULT): Define.
7588         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
7589         of tm_file.
7590         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
7591
7592 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
7593
7594         * common.opt (in_lto_p): New Variable entry.
7595         * flags.h (in_lto_p): Move to common.opt.
7596         * gcc.c: Include params.h.
7597         (set_option_handlers): Also use common_handle_option and
7598         target_handle_option.
7599         (main): Call global_init_params, finish_params and init_options_struct.
7600         * opts.c (debug_type_names): Move from toplev.c.
7601         (print_filtered_help): Access quiet_flag through opts pointer.
7602         (common_handle_option): Return early in the driver for some options.
7603         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
7604         opts pointer.
7605         * toplev.c (in_lto_p): Move to common.opt.
7606         (debug_type_names): Move to opts.c.
7607         * Makefile.in (OBJS): Remove opts.o.
7608         (OBJS-libcommon-target): Add opts.o.
7609         (gcc.o): Update dependencies.
7610
7611 2011-06-28  Kai Tietz  <ktietz@redhat.com>
7612
7613         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
7614
7615 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7616
7617         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
7618         with '=' constraint modifier.
7619         (*divdf3_vfp): Likewise.
7620         ("*mulsf3_vfp"): Likewise.
7621         ("*muldf3_vfp"): Likewise.
7622         ("*mulsf3negsf_vfp"): Likewise.
7623         ("*muldf3negdf_vfp"): Likewise.
7624
7625 2011-06-28  Nick Clifton  <nickc@redhat.com>
7626
7627         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
7628         relaxation when performing an incremental link.
7629
7630 2011-06-28  Kai Tietz  <ktietz@redhat.com>
7631
7632         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
7633         within BB from last to first.
7634
7635 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
7636
7637         * genattr-common.c: New.  Based on genattr.c.
7638         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
7639         (MOSTLYCLEANFILES): Add insn-attr-common.h.
7640         (opts.o): Update dependencies.
7641         (.PRECIOUS): Add insn-attr-common.h.
7642         (simple_rtl_generated_h): Add insn-attr-common.h.
7643         (build/genattr-common.o): New.
7644         (genprogrtl): Add attr-common.
7645         * genattr.c (main): Include insn-attr-common.h.  Don't generate
7646         definitions of DELAY_SLOTS or INSN_SCHEDULING.
7647         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
7648
7649 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
7650
7651         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
7652         avr-*-* and avr-*-rtems* targets.
7653
7654         * config/avr/elf.h: New file.
7655         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
7656         (TARGET_ASM_SELECT_SECTION): Define.
7657         (INIT_SECTION_ASM_OP): Undefine.
7658         (FINI_SECTION_ASM_OP): Undefine.
7659         (READONLY_DATA_SECTION_ASM_OP): Undefine.
7660         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
7661         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
7662         * config/avr/avr.h:
7663         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
7664         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
7665         (MAX_OFILE_ALIGNMENT): Move to elf.h.
7666         (STRING_LIMIT): Move to elf.h.
7667         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
7668         (ASM_DECLARE_OBJECT_NAME): Remove.
7669         (ESCAPES): Remove.
7670         (ASM_OUTPUT_SKIP): Remove.
7671         (DWARF2_DEBUGGING_INFO): Remove.
7672         (OBJECT_FORMAT_ELF): Remove.
7673         (USER_LABEL_PREFIX): Remove.
7674         (ASM_OUTPUT_EXTERNAL): Remove.
7675         (ASM_OUTPUT_ASCII): Remove.
7676         (TYPE_ASM_OP): Remove.
7677         (SIZE_ASM_OP): Remove.
7678         (WEAK_ASM_OP): Remove.
7679         (STRING_ASM_OP): Remove.
7680         (SET_ASM_OP): Remove.
7681         (ASM_WEAKEN_LABEL): Remove.
7682         (TYPE_OPERAND_FMT): Remove.
7683         (ASM_DECLARE_FUNCTION_SIZE): Remove.
7684         (ASM_FINISH_DECLARE_OBJECT): Remove.
7685         (NO_DOLLAR_IN_LABEL): Remove.
7686         (ASM_GENERATE_INTERNAL_LABEL): Remove.
7687         (ASM_OUTPUT_CASE_LABEL): Remove.
7688         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
7689         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
7690         (gas_output_ascii): Remove.
7691         (gas_output_limited_string): Remove.
7692         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
7693         * config/avr/avr-protos.h
7694         (gas_output_ascii): Remove prototye.
7695         (gas_output_limited_string): Remove prototype.
7696
7697 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
7698
7699         PR target/48637
7700         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
7701         asm operands.
7702
7703 2011-06-27  Jan Hubicka  <jh@suse.cz>
7704
7705         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
7706         node instead of references in node.
7707
7708 2011-06-27  Richard Henderson  <rth@redhat.com>
7709
7710         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
7711         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
7712         inside ifdef.
7713
7714 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
7715
7716         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
7717
7718         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
7719         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
7720         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
7721         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
7722         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
7723         (evaluate_stmt, execute_fold_all_builtins): Handle
7724         BUILT_IN_ASSUME_ALIGNED.
7725         * tree-ssa-dce.c (propagate_necessity): Likewise.
7726         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
7727         call_may_clobber_ref_p_1): Likewise.
7728         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
7729         (expand_builtin_assume_aligned): New function.
7730         * doc/extend.texi (__builtin_assume_aligned): Document.
7731
7732         PR debug/49544
7733         * cselib.c (promote_debug_loc): If cselib_preserve_constants
7734         and l has two DEBUG_INSN owned locs instead of just one, adjust
7735         the second location's setting_insn too.
7736
7737 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7738
7739         PR libmudflap/38738
7740         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
7741
7742 2011-06-27  Nick Clifton  <nickc@redhat.com>
7743
7744         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
7745         bit position of highest bit set into a count of the high zero bits.
7746
7747 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
7748
7749         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
7750
7751 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
7752
7753         PR lto/48492
7754         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
7755         to a NULL parent.
7756
7757 2011-06-27  Richard Guenther  <rguenther@suse.de>
7758
7759         PR tree-optimization/49394
7760         * passes.c (execute_one_pass): Restore current_pass after
7761         applying IPA transforms.
7762
7763 2011-06-27  Kai Tietz  <ktietz@redhat.com>
7764
7765         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
7766         out of type precision after operation.
7767         (find_bswap): Take for limit value the integer auto-promotion
7768         into account.
7769
7770 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
7771
7772         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
7773         forward scan as well.
7774
7775 2011-06-27  Tristan Gingold  <gingold@adacore.com>
7776
7777         PR target/44241
7778         * config/vms/vms-protos.h: New file.
7779         * config/vms/vms-crtlmap.map: New file.
7780         * config/vms/vms.c: New file.
7781         * config/vms/make-crtlmap.awk: New file.
7782         * config/vms/vms-crtl.h: File removed.
7783         * config/vms/vms-crtl-64.h: File removed.
7784         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
7785         * config/alpha/vms64.h: Do not include vms-crtl-64.h
7786         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
7787         clear some builtins on VMS.  Calls vms_patch_builtins.
7788         (avms_asm_output_external): Remove.
7789         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
7790         (struct crtl_name_spec): Remove
7791         (DO_CTRL_NAMES): Remove.
7792         * config/ia64/vms.h (struct crtl_name_spec): Remove
7793         (DO_CTRL_NAMES): Remove.
7794         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
7795         clear some builtins on VMS.  Calls vms_patch_builtins.
7796         (ia64_asm_output_external): Remove DO_CRTL_NAME.
7797         * config/ia64/vms64.h: Do not include vms-crtl-64.h
7798         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
7799
7800 2011-06-27  Tristan Gingold  <gingold@adacore.com>
7801
7802         * config/alpha/alpha.c (alpha_end_function): Always generate .end
7803         directive on VMS.
7804
7805 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
7806
7807         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
7808         the function receives nonlocal gotos.
7809
7810 2011-06-27  Richard Guenther  <rguenther@suse.de>
7811
7812         PR tree-optimization/49536
7813         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
7814         For non-scalar inner types use a scalar type according to
7815         the scalar inner mode.
7816
7817 2011-06-27  Richard Guenther  <rguenther@suse.de>
7818
7819         PR tree-optimization/49365
7820         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
7821
7822 2011-06-27  Richard Guenther  <rguenther@suse.de>
7823
7824         PR tree-optimization/49169
7825         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
7826         the alignment of function decls.
7827
7828 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
7829
7830         PR target/47997
7831         * config/darwin.c (darwin_mergeable_string_section): Place string
7832         constants in '.cstring' rather than '.const' when CF/NSStrings are
7833         active.
7834
7835 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
7836
7837         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
7838         (emit_save_register_window): Likewise.
7839         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
7840         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
7841         Swap back %o7/%i7 in register naming.
7842
7843 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
7844
7845         PR driver/49371
7846         * config/darwin.c (darwin_override_options): Improve warning when
7847         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
7848         is given with fpie/fPIE.
7849         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
7850         * config/darwin9.h (PIE_SPEC): New.
7851
7852 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
7853
7854         * timevar.c (timevar_print): Increase width for display of timevar
7855         name.
7856
7857 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
7858
7859         PR c++/46400
7860         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
7861         instead of TYPE_CHAIN for chain_next for types.
7862
7863 2011-06-24  Richard Henderson  <rth@redhat.com>
7864
7865         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
7866         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
7867         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
7868         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
7869         (sparc_flat_expand_prologue): Emit individual instructions
7870         instead of one of the above.
7871
7872 2011-06-24  Easwaran Raman  <eraman@google.com>
7873
7874         PR rtl-optimization/49429
7875         PR target/49454
7876         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
7877         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
7878         used to copy y into x.
7879         * calls.c (initialize_argument_information): Mark
7880         an argument addressable if it is passed by invisible reference.
7881         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
7882         if it is passed by reference.
7883
7884 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
7885
7886         PR rtl-optimization/49504
7887         * rtlanal.c (nonzero_bits1): Properly handle addition or
7888         subtraction of a pointer in Pmode if pointers extend unsigned.
7889         (num_sign_bit_copies1): Likewise.
7890
7891 2011-06-24  Martin Jambor  <mjambor@suse.cz>
7892
7893         PR tree-optimizations/49516
7894         * tree-sra.c (sra_modify_assign): Choose the safe path for
7895         aggregate copies if we also did scalar replacements.
7896
7897 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7898
7899         PR target/49335
7900         * config/arm/predicates.md (add_operator): New.
7901         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
7902
7903 2011-06-24  Andi Kleen  <ak@linux.intel.com>
7904
7905         * tree-sra.c (type_internals_preclude_sra_p): Add msg
7906         parameter. Split up ifs and report reason in *msg.
7907         (reject): Add.
7908         (find_var_candiate): Add msg variable.
7909         Split up ifs and report reason to reject.
7910         (find_param_candidates): Add msg variable.
7911         Pass msg to type_internals_preclude_sra_p.
7912
7913 2011-06-23  Jeff Law  <law@redhat.com>
7914
7915         PR middle-end/48770
7916         * reload.h (reload): Change to return a bool.
7917         * ira.c (ira): If requested by reload, run a fast DCE pass after
7918         reload has completed.  Fix comment typo.
7919         * reload1.c (need_dce): New file scoped static.
7920         (reload): Set reload_completed here.  Return whether or not a DCE
7921         pass after reload is needed.
7922         (delete_dead_insn): Set need_dce as needed.
7923
7924         PR middle-end/49465
7925         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
7926         to detect threading through joiner block.  If there was already
7927         an edge to the new target, then do not change the PHI nodes.
7928
7929 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
7930
7931         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
7932         get_pointer_alignment to see if base isn't sufficiently aligned.
7933
7934 2011-06-23  Jan Hubicka  <jh@suse.cz>
7935
7936         PR tree-optimize/49373
7937         * tree-pass.h (all_late_ipa_passes): Declare.
7938         * cgraphunit.c (init_lowered_empty_function): Fix properties.
7939         (cgraph_optimize): Execute late passes; remove unreachable funcions
7940         after materialization.
7941         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
7942         LTOing.
7943         * passes.c (all_late_ipa_passes): Declare.
7944         (dump_passes, register_pass): Handle late ipa passes.
7945         (init_optimization_passes): Move ipa_pta to late passes; schedule
7946         fixup_cfg at beggining of all_passes.
7947         (apply_ipa_transforms): New function.
7948         (execute_one_pass): When doing simple ipa pass, apply all transforms.
7949
7950 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
7951
7952         * params.c: Include common/common-target.h.  Don't include tm.h.
7953         (lang_independent_params): Move from toplev.c.
7954         (global_init_params): New.
7955         * params.h (global_init_params): Declare.
7956         * target.def (default_params): Move to common-target.def.
7957         * toplev.c (lang_independent_options): Remove.
7958         (lang_independent_params): Move to params.c.
7959         (general_init): Use global_init_params.
7960         * common/common-target.def (option_default_params): Move from
7961         target.def.
7962         * common/config/ia64/ia64-common.c: Include params.h.
7963         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
7964         from ia64.c.
7965         * common/config/rs6000/rs6000-common.c: Include params.h.
7966         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
7967         from rs6000.c.
7968         * common/config/sh/sh-common.c: Include params.h.
7969         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
7970         from sh.c.
7971         * common/config/spu/spu-common.c: Include params.h.
7972         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
7973         from spu.c.
7974         * config/ia64/ia64.c (ia64_option_default_params,
7975         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
7976         * config/rs6000/rs6000.c (rs6000_option_default_params,
7977         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
7978         * config/sh/sh.c (sh_option_default_params,
7979         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
7980         * config/spu/spu.c (spu_option_default_params,
7981         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
7982         * Makefile.in (OBJS): Remove params.o.
7983         (OBJS-libcommon-target): Add params.o.
7984         (params.o, $(common_out_object_file)): Update dependencies.
7985         * doc/tm.texi: Regenerate.
7986
7987 2011-06-23  Alan Modra  <amodra@gmail.com>
7988
7989         PR bootstrap/49383
7990         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
7991         invocation for 2011-06-09 changes.
7992
7993 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
7994
7995         PR libgomp/49490
7996         * omp-low.c (expand_omp_for_static_nochunk): Only
7997         use n ceil/ nthreads size for the first n % nthreads threads in the
7998         team instead of all threads except for the last few ones which
7999         get less work or none at all.
8000
8001         PR debug/49496
8002         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
8003         uses.
8004
8005 2011-06-22  Richard Guenther  <rguenther@suse.de>
8006
8007         PR tree-optimization/49493
8008         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
8009         Refer to the alias target of variables.
8010         (associate_varinfo_to_alias_1): Remove.
8011         (ipa_pta_execute): Do not associate aliases with anything.
8012         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
8013         (cgraph_function_node): Likewise.
8014         (cgraph_function_or_thunk_node): Likewise.
8015         (varpool_variable_node): Likewise.
8016
8017 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
8018
8019         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
8020         * config.gcc (arm*-*-linux*): Default to gnu tls.
8021         (arm*-*-*): Add --with-tls option.
8022         (all_defaults): Add 'tls'.
8023
8024 2011-06-22  Richard Henderson  <rth@redhat.com>
8025
8026         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
8027         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8028         (dwarf2out_frame_debug_cfa_window_save): Rename from
8029         dwarf2out_window_save; make static.
8030         * tree.h (dwarf2out_window_save): Don't declare.
8031
8032         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
8033         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8034         (emit_save_register_window): Rename from gen_save_register_window;
8035         emit the insn and add REG_CFA_* notes.
8036         (sparc_expand_prologue): Update to match.
8037         * config/sparc/sparc.md (save_register_window_1): Simplify from
8038         save_register_window<P:mode>.
8039
8040 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8041
8042         PR target/49497
8043         * config/i386/i386.md (*lea_general_2): Always allow SImode.
8044         (*lea_general_2_zext): Likewise.
8045         (imul to lea peepholes): Use const359_operand and check
8046         TARGET_PARTIAL_REG_STALL.
8047
8048         * config/i386/predicates.md (const359_operand): New.
8049
8050 2011-06-22  Michael Matz  <matz@suse.de>
8051
8052         * cgraphunit.c (assemble_thunk): Use correct return type.
8053
8054 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
8055             Dmitry Melnik  <dm@ispras.ru>
8056
8057         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
8058         (neon_output_shift_immediate): Ditto.
8059         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
8060         prototype.
8061         (neon_output_shift_immediate): Ditto.
8062         * config/arm/neon.md (vashl<mode>3): Modified constraint.
8063         (vashr<mode>3_imm): New insn pattern.
8064         (vlshr<mode>3_imm): Ditto.
8065         (vashr<mode>3): Modified constraint.
8066         (vlshr<mode>3): Ditto.
8067         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
8068         predicate.
8069         (imm_for_neon_rshift_operand): Ditto.
8070         (imm_lshift_or_reg_neon): Ditto.
8071         (imm_rshift_or_reg_neon): Ditto.
8072
8073         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
8074
8075 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
8076
8077         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
8078         builtin calls even if likelyvalue is not CONSTANT.
8079         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
8080         Return get_value_for_expr of first operand
8081         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
8082         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8083         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
8084         their non-checking counterparts.
8085         (call_may_clobber_ref_p_1): Likewise.
8086         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
8087         like their non-checking counterparts.
8088         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8089         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
8090         like their non-checking counterparts.
8091         (find_func_clobbers): Likewise.
8092         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
8093         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
8094
8095         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
8096         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
8097         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
8098         of base type reference as argument.
8099         (resolve_addr_in_expr): Likewise.  Fix keep computation.
8100         (convert_descriptor_to_signed): Renamed to...
8101         (convert_descriptor_to_mode): ... this.  For wider types convert to
8102         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
8103         (typed_binop): New function.
8104         (scompare_loc_descriptor, ucompare_loc_descriptor,
8105         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
8106         default to unsigned type instead of signed.
8107
8108         PR debug/47858
8109         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
8110         (gimple_build_debug_source_bind_stat): New prototype.
8111         (gimple_build_debug_source_bind): Define.
8112         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
8113         gimple_debug_source_bind_get_value,
8114         gimple_debug_source_bind_get_value_ptr,
8115         gimple_debug_source_bind_set_var,
8116         gimple_debug_source_bind_set_value): New inlines.
8117         * gimple.c (gimple_build_debug_source_bind_stat): New function.
8118         * gimple-pretty-print.c (dump_gimple_debug): Handle
8119         GIMPLE_DEBUG_SOURCE_BIND.
8120         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
8121         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8122         * tree-parloops.c (eliminate_local_variables,
8123         separate_decls_in_region): Likewise.
8124         (separate_decls_in_region_debug): Renamed from
8125         separate_decls_in_region_debug_bind.  Handle
8126         gimple_debug_source_bind_p.
8127         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
8128         prototypes.
8129         (DECL_HAS_DEBUG_ARGS_P): Define.
8130         (struct tree_function_decl): Add has_debug_args_flag field.
8131         * tree.c (debug_args_for_decl): New variable.
8132         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
8133         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
8134         (rewrite_debug_stmt_uses): New function.
8135         (rewrite_stmt): Use it to rewrite debug stmt uses.
8136         * rtl.def (DEBUG_PARAMETER_REF): New.
8137         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
8138         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
8139         DEBUG_PARAMETER_REF.
8140         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
8141         * print-rtl.c (print_rtx): Likewise.
8142         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
8143         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
8144         debug stmts in the first bb.
8145         * tree-inline.c (remap_ssa_name): If remapping default def
8146         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
8147         a source bind debug stmt.
8148         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
8149         (maybe_move_debug_stmts_to_successors): Likewise.
8150         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
8151         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
8152         debug args vector from old_decl to new_decl.
8153         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
8154         or modified parameters, add debug bind stmts before call
8155         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
8156         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
8157         on DECL_DEBUG_EXPRs from debug args vector.
8158         (expand_debug_source_expr): New function.
8159         (expand_debug_locations): Use it for source bind insns.
8160         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
8161         * var-tracking.c (prepare_call_arguments): Add debug args
8162         to call_arguments if any.
8163         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
8164         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
8165         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
8166         (get_ref_die_offset, parameter_ref_descriptor): New functions.
8167         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
8168         (gen_subprogram_die): Handle parameters identified by
8169         DEBUG_PARAMETER_REF.
8170
8171 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
8172
8173         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
8174         * doc/install.texi (Configuration): Document --with-tls.
8175         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
8176         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
8177         (arm_tls_descseq_addr): New.
8178         (legitimize_tls_address): Add tlsdesc support.
8179         (arm_cannot_copy_insn_p): Check for tlscall.
8180         (arm_emit_tls_decoration): Likewise.
8181         * config/arm/arm.h (TARGET_GNU2_TLS): New.
8182         (OPTION_DEFAULT_SPECS): Add with-tls support.
8183         * config/arm/arm.md (R1_REGNUM): Define.
8184         (tlscall): New.
8185         * config/arm/arm.opt (tls_type): New enumeration type and values.
8186         (mtls-dialect): New switch.
8187         * config/arm/arm-opts.h (enum tls_type): New.
8188
8189 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8190
8191         * attribs.c (register_attribute): Added assert to check that all
8192         attribute specs are registered with a name that is not empty and
8193         does not start with '_'.
8194         (decl_attributes): Avoid the lookup of the "naked" attribute spec
8195         if the function has no attributes.
8196         * tree.c (is_attribute_with_length_p): Removed.
8197         (is_attribute_p): Removed.
8198         (private_is_attribute_p): New.
8199         (private_lookup_attribute): New.
8200         (lookup_attribute): Removed.
8201         (lookup_ident_attribute): New.
8202         (remove_attribute): Require the first argument to be in the form
8203         'text', not '__text__'.  Updated asserts.
8204         (merge_attributes): Use lookup_ident_attributes instead of
8205         lookup_attribute.
8206         (merge_dllimport_decl_attributes): Use remove_attribute.
8207         (attribute_list_contained): Likewise.
8208         (attribute_list_equal): Immediately return 1 if the arguments are
8209         identical pointers.
8210         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
8211         'int'.  Require the first argument to be in the form 'text', not
8212         '__text__'.  Require the second argument to be an identifier.
8213         (lookup_attribute): Made inline.  Require the first argument to be
8214         in the form 'text', not '__text__'.
8215         (private_is_attribute_p, private_lookup_attribute): New.
8216         Updated comments.
8217
8218 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
8219
8220         * builtins.c: Add sync_ or SYNC__ to builtin names.
8221         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
8222         * omp-low.c: Add sync_ or SYNC__ to builtin names.
8223
8224 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
8225
8226         PR target/33049
8227         * config/avr/avr.md (extzv): New expander.
8228         (*extzv): New insn.
8229         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
8230         * config/avr/constraints.md (C04): New constraint.
8231         * doc/md.texi (Machine Constraints): Document it.
8232
8233 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
8234
8235         PR middle-end/49489
8236         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
8237         unsignedp argument instead of 1 for clrsb_optab.
8238         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
8239         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
8240         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
8241         * optabs.c (widen_leading): Call widen_operand and expand_unop
8242         with 0 as unsignedp argument instead of 1 for clrsb_optab.
8243         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
8244
8245 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
8246
8247         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
8248
8249 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
8250
8251         * gensupport.c (add_define_attr): New static function.
8252         (is_predicable): Allow multi-alternative lists for the "predicable"
8253         attribute.
8254         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
8255         (process_one_cond_exec): Call alter_attrs_for_insn.
8256         * doc/md.texi (Defining Attributes): Mention some standard names.
8257         (Conditional Execution): Update documentation for "predicable".
8258
8259         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
8260         __builtin_clrsbll): Document.
8261         * doc/rtl.texi (clrsb): New entry.
8262         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
8263         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
8264         (expand_unop): Handle clrsb_optab.
8265         (init_optabs): Initialize it.
8266         * optabs.h (enum optab_index): New entry OTI_clrsb.
8267         (clrsb_optab): Define.
8268         * genopinit.c (optabs): Add an entry for it.
8269         * builtins.c (expand_builtin): Handle clrsb builtin functions.
8270         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
8271         BUILT_IN_CLRSBLL): New.
8272         * rtl.def (CLRSB): New code.
8273         * dwarf2out.c (mem_loc_descriptor): Handle it.
8274         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
8275         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
8276         and popcount.
8277         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
8278         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
8279         (__ctzDI2): Move declaration.
8280         * config/bfin/bfin.md (clrsbsi2): New expander.
8281         (signbitssi2): Use the CLRSB rtx.
8282         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
8283         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
8284
8285 2011-06-21  Richard Guenther  <rguenther@suse.de>
8286
8287         * ipa-inline-transform.c (inline_transform): Fix previous change.
8288
8289 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
8290
8291         PR tree-optimization/49478
8292         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
8293         with constant operand.
8294
8295 2011-06-21  Richard Guenther  <rguenther@suse.de>
8296
8297         * ipa-inline-transform.c (inline_transform): Fix typo.
8298
8299 2011-06-21  Richard Guenther  <rguenther@suse.de>
8300
8301         PR tree-optimization/49483
8302         * tree-vect-stmts.c (vectorizable_assignment): Also handle
8303         VIEW_CONVERT_EXPR conversions.
8304
8305 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
8306
8307         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
8308         * config/avr/avr-tables.opt: New file (generated).
8309         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
8310         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
8311         avr-mcus.def.
8312         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
8313         (avr_option_override): Don't process -mmcu= argument here.  Set
8314         avr_current_device using avr_mcu_index.
8315         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
8316         * config/avr/avr.opt (mmcu=): Use Enum.
8317         * config/avr/t-avr (avr-devices.o): Update dependencies.
8318         ($(srcdir)/config/avr/avr-tables.opt): New.
8319         * target.def (help): Remove.
8320         * doc/tm.texi.in (TARGET_HELP): Remove.
8321         * doc/tm.texi: Regenerate.
8322         * opts.c: Don't include target.h.
8323         (common_handle_option): Don't call targetm.help.
8324         * system.h (TARGET_HELP): Poison.
8325         * Makefile.in (opts.o): Update dependencies.
8326
8327 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8328
8329         * config/usegld.h: New file.
8330         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
8331         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
8332         (LIB_SPEC): Likewise.  Search /lib.
8333         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
8334         (RDYNAMIC_SPEC): Handle GNU ld.
8335         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
8336         Define.
8337         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
8338         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
8339         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
8340         (STACK_CHECK_STATIC_BUILTIN): Define.
8341         * config/sol2.opt (compat-bsd): Remove.
8342         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
8343         * config/sol2-bi.h: New file.
8344         * config/sol2-gld.h: Remove.
8345         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
8346         (NO_DBX_BNSYM_ENSYM): Remove.
8347         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
8348         (STACK_CHECK_STATIC_BUILTIN): Remove.
8349         Test USE_GLD instead of TARGET_GNU_LD.
8350         * config/i386/sol2-10.h: Rename to ...
8351         * config/i386/sol2-bi.h .. this.
8352         (SUBTARGET_EXTRA_SPECS): Redefine.
8353         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
8354         (MULTILIB_DEFAULTS): Remove.
8355         (DEFAULT_ARCH32_P): Define.
8356         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
8357         (ARCH64_SUBDIR): Define.
8358         Test USE_GLD instead of TARGET_GNU_LD.
8359         (I386_EMULATION): Rename to ...
8360         (ARCH32_EMULATION): ... this.
8361         (X86_64_EMULATION): Rename to ...
8362         (ARCH64_EMULATION): ... this.
8363         (TARGET_LD_EMULATION): Remove.
8364         (LINK_ARCH_SPEC): Remove.
8365         * config/i386/sol2-gas.h: Remove.
8366         * config/i386/t-sol2-10: Rename to ...
8367         * config/i386/t-sol2-64: ... this.
8368         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
8369         (AS_SPARC64_FLAG): Define.
8370         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
8371         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
8372         depending on TARGET_CPU_DEFAULT.
8373         (CPP_CPU_SPEC): Redefine.
8374         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
8375         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
8376         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
8377         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
8378         ASM_ARCH_DEFAULT_SPEC): Redefine.
8379         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
8380         LINK_ARCH_DEFAULT_SPEC.
8381         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
8382         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
8383         (ARCH64_SUBDIR): Define.
8384         (LINK_ARCH64_SPEC): Redefine.
8385         (CC1_SPEC): Redefine.
8386         (OPTION_DEFAULT_SPECS): Redefine.
8387         (MULTILIB_DEFAULTS): Define.
8388         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
8389         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
8390         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
8391         (NO_DBX_BNSYM_ENSYM): Remove.
8392         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
8393         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
8394         (TARGET_ASM_NAMED_SECTION): Likewise.
8395         (STACK_CHECK_STATIC_BUILTIN): Remove.
8396         * config/sparc/sol2-bi.h: Remove.
8397         * config/sparc/sol2-gas-bi.h: Remove.
8398         * config/sparc/sol2-gas.h: Remove.
8399         * config/sparc/sol2-gld-bi.h: Remove.
8400         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
8401         common parts ...
8402         (*-*-solaris2*): ... here.
8403
8404 2011-06-21  Christian Bruel  <christian.bruel@st.com>
8405
8406         PR other/43564
8407         * ipa-inline.c (can_inline_edge_p): Check
8408         !DECL_DISREGARD_INLINE_LIMITS.
8409
8410 2011-06-21  Christian Bruel  <christian.bruel@st.com>
8411
8412         PR middle-end/49139
8413         * cgraphunit.c (process_function_and_variable_attributes): warn when
8414         always_inline functions that are not inline.
8415         * ipa-inline-transform.c (inline_transform): Always call
8416         optimize_inline.
8417         * tree-inline.c (tree_inlinable_function_p): Use error instead
8418         of sorry.
8419         (expand_call_inline): Likewise.
8420
8421 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
8422
8423         * Makefile.in (dg_target_exps): Set.
8424         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
8425         instead of 7, try to divide it more evenly.
8426
8427 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
8428
8429         PR target/49089
8430         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
8431         (avx256_split_unaligned_store): New definition.
8432         (ix86_option_override_internal): Enable avx256 unaligned load/store
8433         splitting only when avx256_split_unaligned_load/store is set.
8434
8435 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
8436
8437         * regrename.c (scan_rtx_reg): Handle the case where we write to an
8438         open chain in a smaller mode without failing the entire block.
8439
8440 2011-06-21  Alan Modra  <amodra@gmail.com>
8441
8442         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
8443         CONST high part large-toc address.
8444         (rs6000_tls_referenced_p): Make static.
8445         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
8446
8447 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8448
8449         PR target/49385
8450         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
8451         one of the operands is a register.
8452
8453 2011-06-20  Kai Tietz  <ktietz@redhat.com>
8454
8455         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
8456         operations in combination with binary and.
8457
8458 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
8459
8460         * regrename.c (do_replace): Don't update notes.
8461
8462 2011-06-20  Alan Modra  <amodra@gmail.com>
8463
8464         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
8465         of toc-relative address in CONST.
8466         (rs6000_delegitimize_address): Recognize changed address.
8467         (rs6000_legitimize_reload_address): Likewise.
8468         (rs6000_emit_move): Don't force these constants to memory.
8469         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
8470         toc-relative address in CONST.
8471         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
8472         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
8473
8474 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8475
8476         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
8477         (count_trailing_zeros): Likewise.
8478
8479 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8480
8481         PR other/49325
8482         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
8483         .init_array can be used with .ctors on targets.
8484         * configure: Regenerated.
8485
8486 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
8487
8488         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
8489         if the element type is volatile.
8490
8491 2011-06-18  Jan Hubicka  <jh@suse.cz>
8492
8493         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
8494         extra name aliases.
8495         (lto_symtab_resolve_can_prevail_p): Likewise.
8496         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
8497         * cgraphbuild.c (record_reference): Remove extra body alias code.
8498         (mark_load): Likewise.
8499         (mark_store): Likewise.
8500         * cgraph.h (varpool_node): Remove extra_name filed;
8501         add alias_of and extraname_alias.
8502         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
8503         (varpool_alias_aliased_node): New inline function.
8504         (varpool_variable_node): New function.
8505         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
8506         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
8507         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
8508         (input_varpool_node): Likewise.
8509         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
8510         (varpool_externally_visible_p): Remove extra body alias code.
8511         (function_and_variable_visibility): Likewise.
8512         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
8513         (ipa_pta_execute): Use it.
8514         * varpool.c (varpool_remove_node): Remove extra name alias code.
8515         (varpool_mark_needed_node): Likewise.
8516         (varpool_analyze_pending_decls): Analyze aliases.
8517         (assemble_aliases): New functoin.
8518         (varpool_assemble_decl): Use it.
8519         (varpool_create_variable_alias): New function.
8520         (varpool_extra_name_alias): Rewrite.
8521         (varpool_for_node_and_aliases): New function.
8522
8523 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
8524
8525         PR target/49411
8526         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
8527         last_arg_constant and last argument doesn't match its predicate,
8528         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
8529         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
8530         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
8531         spelling of error message.
8532         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
8533         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
8534         const_0_to_255_operand instead of const_int_operand.
8535
8536         Revert:
8537         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
8538
8539         * config/i386/sse.md (blendbits): Remove mode attribute.
8540         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
8541         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
8542         Check integer value of operand 3 in insn constraint.
8543
8544 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
8545
8546         PR rtl-optimization/48542
8547         * reload.c (find_equiv_reg): Stop looking when finding a
8548         setjmp-type call.
8549         * reload1.c (reload_as_needed): Invalidate all reload
8550         registers when crossing a setjmp-type call.
8551
8552 2011-06-16  Jeff Law  <law@redhat.com>
8553
8554         * tree-ssa-threadupdate.c (struct redirection_data): New field
8555         intermediate_edge.
8556         (THREAD_TARGET2): Define.
8557         (redirection_data_eq): Also check that the intermediate edge is equal.
8558         (lookup_redirection_data): Drop useless argument.  Extract the
8559         outgoing_edge and intermediate edge from E.  Callers updated.
8560         (copy_phi_args, update_destination_phis): New functions.
8561         (fix_duplicate_block_edges): Likewise.
8562         (create_edge_and_update_destination_phis): Duplicate all the edges
8563         hung off e->aux.  Use copy_phi_args.
8564         (create_duplicates): Use fix_duplicate_block_edges.
8565         (fixup_template_block): Likewise.
8566         (redirect_edges): If necessary, redirect the joiner block's incoming
8567         edge to the duplicate of the joiner block.
8568         (thread_block): Don't muck up loops when threading through a joiner
8569         block.
8570         (thread_through_loop_header): Handle threading through a joiner block.
8571         (mark_threaded_blocks, register_jump_thread): Likewise.
8572         * tree-flow.h (register_jump_thread): Add new argument.  Callers
8573         updated.
8574         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
8575         (thread_across_edge): Handle threading through a joiner block.
8576
8577 2011-06-16  Martin Jambor  <mjambor@suse.cz>
8578
8579         PR tree-optimization/49343
8580         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
8581         calculate offset, provide 2nd operand for the new COMPONENT_REF.
8582
8583 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
8584
8585         * config/darwin-protos.h (machopic_select_rtx_section): Move to
8586         inside RTX_CODE ifdef.
8587
8588 2011-06-16  Tom de Vries  <tom@codesourcery.com>
8589
8590         PR target/45098
8591         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
8592         Disallow NULL pointer for pointer arithmetic.
8593
8594 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8595
8596         PR target/49398
8597         Revert.
8598         2011-06-10  Wei Guozhi  <carrot@google.com>
8599
8600         PR target/45335
8601         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
8602         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
8603         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
8604         related peephole2.
8605         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
8606         related peephole2.
8607         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
8608         (arm_legitimate_ldrd_p): New prototype.
8609         (arm_output_ldrd): New prototype.
8610         * config/arm/arm.c (arm_check_ldrd_operands): New function.
8611         (arm_legitimate_ldrd_p): New function.
8612         (arm_output_ldrd): New function.
8613
8614 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
8615
8616         PR middle-end/46500
8617         * doc/tm.texi.in: Update Copyright date.
8618         * doc/tm.texi: Regenerate.
8619         * targhooks.c (default_setup_incoming_varargs): Replace
8620         CUMULATIVE_ARGS* argument type with cumulative_args_t.
8621         (default_pretend_outgoing_varargs_named): Likewise.
8622         (hook_pass_by_reference_must_pass_in_stack): Likewise.
8623         (hook_callee_copies_named): Likewise.
8624         (default_function_arg_advance): Likewise.
8625         (default_function_arg): Likewise.
8626         (default_function_incoming_arg): Likewise.
8627         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
8628         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
8629         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
8630         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
8631         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
8632         * targhooks.h (default_setup_incoming_varargs): Likewise.
8633         (default_pretend_outgoing_varargs_named): Likewise.
8634         (hook_pass_by_reference_must_pass_in_stack): Likewise.
8635         (hook_callee_copies_named): Likewise.
8636         (default_function_arg_advance): Likewise.
8637         (default_function_arg): Likewise.
8638         (default_function_incoming_arg): Likewise.
8639         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
8640         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
8641         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
8642         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
8643         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
8644         * target.def (pass_by_reference): Likewise.
8645         (setup_incoming_varargs, strict_argument_naming): Likewise.
8646         (pretend_outgoing_varargs_named, callee_copies): Likewise.
8647         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
8648         (function_incoming_arg): Likewise.
8649         * target.h: Don't include "tm.h" .
8650         (cumulative_args_t): New typedef.
8651         [GCC_TM_H] (get_cumulative_args): New static inline function.
8652         [GCC_TM_H] (pack_cumulative_args): Likewise.
8653         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
8654         argument type with cumulative_args_t.
8655         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
8656         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
8657         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
8658         (frv_arg_partial_bytes, frv_function_arg): Likewise.
8659         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
8660         (frv_function_arg_1): Likewise.
8661         * config/s390/s390.c (s390_pass_by_reference): Likewise.
8662         (s390_function_arg_advance, s390_function_arg): Likewise.
8663         * config/m32c/m32c.c (m32c_function_arg): Likewise.
8664         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
8665         (m32c_strict_argument_naming): Likewise.
8666         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
8667         (spu_function_arg_advance): Likewise.
8668         (spu_setup_incoming_varargs): Likewise.  Make static.
8669         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
8670         Remove prototype.
8671         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
8672         CUMULATIVE_ARGS* argument type with cumulative_args_t.
8673         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
8674         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
8675         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
8676         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
8677         (mep_pass_by_reference, mep_function_arg): Likewise.
8678         (mep_function_arg_advance): Likewise.
8679         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
8680         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
8681         (m32r_function_arg, m32r_function_arg_advance): Likewise.
8682         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
8683         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
8684         (ix86_function_arg, ix86_pass_by_reference): Likewise.
8685         (ix86_setup_incoming_varargs): Likewise.
8686         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
8687         (sh_strict_argument_naming): Likewise.
8688         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
8689         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
8690         (sh_function_arg_advance, sh_function_arg): Likewise.
8691         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
8692         (pdp11_function_arg_advance): Likewise.
8693         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
8694         Likewise.
8695         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
8696         * config/avr/avr.c (avr_function_arg): Likewise.
8697         (avr_function_arg_advance): Likewise.
8698         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
8699         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
8700         (xtensa_function_arg_1): Likewise.
8701         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
8702         Likewise.
8703         (xstormy16_function_arg): Likewise.
8704         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
8705         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
8706         (fr30_function_arg_advance): Likewise.
8707         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
8708         (lm32_function_arg, lm32_function_arg_advance): Likewise.
8709         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
8710         (moxie_function_arg, moxie_function_arg_advance): Likewise.
8711         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
8712         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
8713         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
8714         (cris_function_arg, cris_function_incoming_arg): Likewise.
8715         (cris_function_arg_advance, cris_function_arg_1): Likewise.
8716         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
8717         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
8718         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
8719         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
8720         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
8721         (mn10300_arg_partial_bytes): Likewise.
8722         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
8723         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
8724         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
8725         (ia64_function_arg_1): Likewise.
8726         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
8727         (m68k_function_arg): Likewise.
8728         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
8729         (rs6000_function_arg, setup_incoming_varargs): Likewise.
8730         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
8731         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
8732         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
8733         (picochip_arg_advance): Likewise.
8734         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
8735         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
8736         (mcore_function_arg_advance): Likewise.
8737         * config/score/score.c (score_pass_by_reference): Likewise.
8738         (score_function_arg_advance): Likewise.
8739         (score_arg_partial_bytes): Likewise.  Make static.
8740         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
8741         * config/arm/arm.c (arm_arg_partial_bytes): Replace
8742         CUMULATIVE_ARGS* argument type with cumulative_args_t.
8743         (arm_function_arg, arm_function_arg_advance): Likewise.
8744         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
8745         * config/pa/pa.c (pa_pass_by_reference): Likewise.
8746         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
8747         (pa_function_arg): Likewise.
8748         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
8749         (mips_function_arg, mips_function_arg_advance): Likewise.
8750         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
8751         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
8752         * config/vax/vax.c (vax_function_arg): Likewise.
8753         (vax_function_arg_advance): Likewise.
8754         * config/h8300/h8300.c (h8300_function_arg): Likewise.
8755         (h8300_function_arg_advance): Likewise.
8756         * config/v850/v850.c (v850_pass_by_reference): Likewise.
8757         (v850_strict_argument_naming, v850_function_arg): Likewise.
8758         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
8759         (v850_setup_incoming_varargs): Likewise.
8760         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
8761         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
8762         (mmix_function_arg, mmix_pass_by_reference): Likewise.
8763         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
8764         with const void *.
8765         * config/bfin/bfin.c (setup_incoming_varargs): Replace
8766         CUMULATIVE_ARGS* argument type with cumulative_args_t.
8767         (bfin_function_arg_advance, bfin_function_arg): Likewise.
8768         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
8769         * calls.c (emit_call_1): Change type of args_so_far to
8770         cumulative_args_t.  Changed all callers.
8771         (initialize_argument_information): Likewise.
8772         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
8773         * dse.c (get_call_args): Likewise.
8774         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
8775         * function.c (pass_by_reference, reference_callee_copied): Likewise.
8776         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
8777         New member args_so_far_v.  Changed all users.
8778         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
8779         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
8780         * config/mips/mips.c (mips_output_args_xfer): Likewise.
8781         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
8782         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
8783         * config/microblaze/microblaze.c (microblaze_expand_prologue):
8784         Likewise.
8785         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
8786         m32r_pass_by_reference.
8787
8788 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
8789
8790         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
8791         argument to be a VEC of statements.
8792         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
8793         assert that pattern statements have to have their vector type set.
8794         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
8795         Change the first argument to be a VEC of statements.  Update
8796         documentation.
8797         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
8798         (vect_handle_widen_mult_by_const): New function.
8799         (vect_recog_widen_mult_pattern):  Change the first argument to be a
8800         VEC of statements.  Update documentation.  Check that the constant is
8801         INTEGER_CST.  Support multiplication by a constant that fits an
8802         intermediate type - call vect_handle_widen_mult_by_const.
8803         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
8804         call.  Handle additional pattern statements if necessary.
8805
8806 2011-06-16  Nick Clifton  <nickc@redhat.com>
8807
8808         PR target/49427
8809         * config.gcc: Set cpu_type to v850 for any V850 architecture.
8810         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
8811         md_file, extra_modes, out_file and extra_options are these are all
8812         deduced from cpu_type.
8813
8814 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
8815
8816         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
8817         truncation mask to 63.
8818
8819 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
8820
8821         PR target/49313
8822         PR target/29524
8823         * longlong.h: Add AVR support:
8824         (count_leading_zeros): New macro.
8825         (count_trailing_zeros): New macro.
8826         (COUNT_LEADING_ZEROS_0): New macro.
8827         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
8828         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
8829         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
8830         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
8831         (LIB2FUNCS_EXCLUDE): Add _clz.
8832         * config/avr/libgcc.S (XCALL): Move up in file.
8833         (XJMP): New C Macro.
8834         (DEFUN): New asm macro.
8835         (ENDF): New asm macro.
8836         (__ffssi2): New function.
8837         (__ffshi2): New function.
8838         (__loop_ffsqi2): New function.
8839         (__ctzsi2): New function.
8840         (__ctzhi2): New function.
8841         (__clzdi2): New function.
8842         (__clzsi2): New function.
8843         (__clzhi2): New function.
8844         (__paritydi2): New function.
8845         (__paritysi2): New function.
8846         (__parityhi2): New function.
8847         (__parityqi2): New function.
8848         (__popcounthi2): New function.
8849         (__popcountsi2): New function.
8850         (__popcountdi2): New function.
8851         (__popcountqi2): New function.
8852         (__bswapsi2): New function.
8853         (__bswapdi2): New function.
8854         (__ashldi3): New function.
8855         (__ashrdi3): New function.
8856         (__lshrdi3): New function.
8857         Fix suspicous lines.
8858
8859 2011-06-16  Richard Guenther  <rguenther@suse.de>
8860
8861         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
8862         the same as x != 0.
8863         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
8864         to (bool) X & 1.
8865         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
8866         equality compares against zero for the lower bit.
8867
8868 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
8869
8870         PR tree-optimization/49419
8871         * tree-vrp.c (execute_vrp): Call init_range_assertions
8872         before estimate_numbers_of_iterations, call
8873         free_number_of_iterations_estimates before calling
8874         remove_range_assertions.
8875
8876 2011-06-16  Revital Eres  <revital.eres@linaro.org>
8877
8878         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
8879         (struct partial_schedule): Add rows_length field.
8880         (verify_partial_schedule): Check rows_length.
8881         (ps_insert_empty_row): Handle rows_length.
8882         (create_partial_schedule): Likewise.
8883         (free_partial_schedule): Likewise.
8884         (reset_partial_schedule): Likewise.
8885         (create_ps_insn): Remove rest_count argument.
8886         (remove_node_from_ps): Update rows_length.
8887         (add_node_to_ps): Update rows_length and call create_ps_insn
8888         without passing row_rest_count.
8889         (rotate_partial_schedule): Update rows_length.
8890
8891 2011-06-16  Revital Eres  <revital.eres@linaro.org>
8892
8893         * ddg.c (add_intra_loop_mem_dep): New function.
8894         (build_intra_loop_deps): Call it.
8895
8896 2011-06-13  Jeff Law  <law@redhat.com>
8897
8898         * df-problems.c (df_lr_local_compute): Manually CSE
8899         PIC_OFFSET_TABLE_REGNUM.
8900         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
8901         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
8902
8903 2011-06-13  Jan Hubicka  <jh@suse.cz>
8904
8905         * cgraphunit.c (handle_alias_pairs): New function.
8906         (cgraph_finalize_compilation_unit): Use it.
8907         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
8908         as externally visible.
8909
8910 2011-06-15  Richard Guenther  <rguenther@suse.de>
8911
8912         * expr.c (expand_expr_real_2): Reduce all integral types to
8913         bitfield precision.
8914         (expand_expr_real_1): Likewise.
8915
8916 2011-06-15  Martin Jambor  <mjambor@suse.cz>
8917
8918         PR tree-optimization/48613
8919         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
8920         ipa_node_params_vector is NULL.
8921
8922 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
8923
8924         PR debug/49382
8925         * dwarf2out.c (dw_loc_list_node): Add force field.
8926         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
8927         location in the list, even if it is modified before first real insn.
8928         (output_loc_list): Emit empty ranges with force flag set.
8929         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
8930
8931 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
8932
8933         PR target/49349
8934         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
8935         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
8936         above a fence.  Update comments.
8937         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
8938         placed just above it.  Do not allow NULL place_to_insert.
8939
8940 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
8941
8942         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
8943         (slpeel_tree_peel_loop_to_edge): Don't call
8944         remove_dead_stmts_from_loop.
8945         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
8946         remove irrelevant pattern statements.  For irrelevant statements
8947         check if it is the last statement of a detected pattern, use
8948         corresponding pattern statement instead.
8949         (destroy_loop_vec_info): No need to remove pattern statements,
8950         only free stmt_vec_info.
8951         (vect_transform_loop): For irrelevant statements check if it is
8952         the last statement of a detected pattern, use corresponding
8953         pattern statement instead.
8954         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
8955         pattern statements.  Set basic block for the new statement.
8956         (vect_pattern_recog): Update documentation.
8957         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
8958         operands of pattern statements.
8959         (vectorizable_call): Fix printing.  In case of a pattern statement
8960         use the lhs of the original statement when creating a dummy
8961         statement to replace the original call.
8962         (vect_analyze_stmt): For irrelevant statements check if it is
8963         the last statement of a detected pattern, use corresponding
8964         pattern statement instead.
8965         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
8966         statements use gsi of the original statement.
8967
8968 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
8969
8970         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
8971         common/common-target-def.h.
8972         * target.def (default_target_flags, handle_option,
8973         supports_split_stack, optimization_table, init_struct,
8974         except_unwind_info, unwind_tables_default, have_named_sections):
8975         Move to common/common-target.def.
8976         * target.h (enum opt_levels, struct default_options): Move to
8977         common/common-target.h.
8978         * targhooks.c (default_except_unwind_info,
8979         dwarf2_except_unwind_info, sjlj_except_unwind_info,
8980         default_target_handle_option, empty_optimization_table): Move to
8981         common/common-targhooks.c.
8982         * targhooks.h (default_except_unwind_info,
8983         dwarf2_except_unwind_info, sjlj_except_unwind_info,
8984         default_target_handle_option, empty_optimization_table): Move to
8985         common/common-targhooks.h.
8986         * common/common-target-def.h: Include common/common-targhooks.h.
8987         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
8988         defined.
8989         * common/common-target.def (handle_option, option_init_struct,
8990         option_optimization_table, default_target_flags,
8991         except_unwind_info, supports_split_stack, unwind_tables_default,
8992         have_named_sections): Move from target.def.
8993         (HOOK_PREFIX): Undefine at end of file.
8994         * common/common-target.h: Include input.h.
8995         (enum opt_levels, struct default_options): Move from target.h.
8996         * common/common-targhooks.c, common/common-targhooks.h: New.
8997         * config.gcc (target_has_targetm_common): Default to yes.
8998         (moxie*): Set target_has_targetm_common=no.
8999         (hppa*-*-*): Don't set target_has_targetm_common=yes.
9000         * doc/tm.texi: Regenerate.
9001         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
9002         (C_TARGET_DEF_H): Add common/common-targhooks.h.
9003         (GCC_OBJS): Remove vec.o.
9004         (OBJS): Remove hooks.o and vec.o.
9005         (OBJS-libcommon-target): Add vec.o, hooks.o and
9006         common/common-targhooks.o.
9007         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
9008         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
9009         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
9010         cfglayout.o, $(out_object_file), $(common_out_object_file)):
9011         Update dependencies.
9012         (common/common-targhooks.o): New.
9013         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
9014         * common/config/pa/pa-common.c: Include more headers.  Take
9015         copyright dates from pa.c.
9016         (pa_option_optimization_table, pa_handle_option,
9017         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
9018         TARGET_HANDLE_OPTION): Move from pa.c.
9019         * common/config/alpha/alpha-common.c,
9020         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
9021         common/config/bfin/bfin-common.c,
9022         common/config/cris/cris-common.c,
9023         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
9024         common/config/h8300/h8300-common.c,
9025         common/config/i386/i386-common.c,
9026         common/config/ia64/ia64-common.c,
9027         common/config/iq2000/iq2000-common.c,
9028         common/config/lm32/lm32-common.c,
9029         common/config/m32c/m32c-common.c,
9030         common/config/m32r/m32r-common.c,
9031         common/config/m68k/m68k-common.c,
9032         common/config/mcore/mcore-common.c,
9033         common/config/mep/mep-common.c,
9034         common/config/microblaze/microblaze-common.c,
9035         common/config/mips/mips-common.c,
9036         common/config/mmix/mmix-common.c,
9037         common/config/mn10300/mn10300-common.c,
9038         common/config/pdp11/pdp11-common.c,
9039         common/config/picochip/picochip-common.c,
9040         common/config/rs6000/rs6000-common.c,
9041         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
9042         common/config/score/score-common.c, common/config/sh/sh-common.c,
9043         common/config/sparc/sparc-common.c,
9044         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
9045         common/config/vax/vax-common.c,
9046         common/config/xstormy16/xstormy16-common.c,
9047         common/config/xtensa/xtensa-common.c: New.
9048         * config/alpha/alpha.c: Include common/common-target.h.
9049         (alpha_option_optimization_table, alpha_handle_option,
9050         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9051         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
9052         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
9053         * config/arm/arm.c (arm_option_optimization_table,
9054         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9055         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
9056         arm-common.c.
9057         * config/avr/avr.c (avr_option_optimization_table,
9058         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
9059         to avr-common.c.
9060         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
9061         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
9062         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
9063         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
9064         * config/cris/cris.c (cris_option_optimization_table,
9065         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9066         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
9067         cris-common.c.
9068         * config/fr30/fr30.c (fr30_option_optimization_table,
9069         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
9070         to fr30-common.c.
9071         * config/frv/frv.c (frv_option_optimization_table,
9072         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
9073         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
9074         * config/h8300/h8300.c (h8300_option_optimization_table,
9075         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9076         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
9077         * config/i386/i386-protos.h (ix86_handle_option): Declare.
9078         * config/i386/i386.c: Include common/common-target.h.
9079         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
9080         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
9081         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
9082         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
9083         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
9084         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
9085         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
9086         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
9087         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
9088         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
9089         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
9090         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
9091         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
9092         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
9093         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
9094         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
9095         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
9096         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
9097         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
9098         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
9099         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
9100         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
9101         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
9102         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
9103         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
9104         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
9105         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
9106         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
9107         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
9108         ix86_option_optimization_table, ix86_option_init_struct,
9109         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
9110         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9111         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
9112         i386-common.c.
9113         * config/i386/t-i386 (i386.o): Update dependencies.
9114         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
9115         * config/ia64/ia64.c (ia64_option_optimization_table,
9116         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
9117         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9118         ia64_handle_option): Move to ia64-common.c.
9119         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
9120         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
9121         * config/lm32/lm32.c (lm32_option_optimization_table,
9122         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
9123         to lm32-common.c.
9124         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
9125         m32c-common.c.
9126         * config/m32r/m32r.c (m32r_option_optimization_table,
9127         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9128         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
9129         m32r_handle_option): Move to m32r-common.c.
9130         (m32r_memory_move_cost): Remove comment referring to
9131         TARGET_HANDLE_OPTION.
9132         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
9133         Move to m68k-common.c.
9134         * config/mcore/mcore.c (mcore_option_optimization_table,
9135         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9136         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
9137         * config/mep/mep.c (mep_option_optimization_table,
9138         mep_handle_option, TARGET_HANDLE_OPTION,
9139         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
9140         Move to mep-common.c.
9141         * config/microblaze/microblaze.c
9142         (microblaze_option_optimization_table,
9143         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
9144         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
9145         * config/mips/mips.c (mips_handle_option,
9146         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
9147         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
9148         mips-common.c.
9149         * config/mmix/mmix.c (mmix_option_optimization_table,
9150         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
9151         Move to mmix-common.c.
9152         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
9153         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
9154         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9155         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
9156         * config/pa/pa.c: Include common/common-target.h.
9157         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
9158         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9159         pa_handle_option): Move to pa-common.c.
9160         (pa_option_override): Use targetm_common.except_unwind_info.
9161         (pa_asm_output_mi_thunk, pa_function_section): Use
9162         targetm_common.have_named_sections.
9163         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
9164         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9165         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
9166         pdp11_handle_option, pdp11_option_init_struct): Move to
9167         pdp11-common.c.
9168         * config/picochip/picochip.c (picochip_option_optimization_table,
9169         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
9170         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
9171         * config/rs6000/rs6000.c: Include common/common-target.h.
9172         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
9173         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
9174         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
9175         rs6000_handle_option): Move to rs6000-common.c.
9176         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9177         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
9178         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9179         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
9180         * config/s390/s390.c (processor_flags_table,
9181         s390_option_optimization_table, s390_option_init_struct,
9182         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
9183         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
9184         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
9185         * config/s390/s390.h (processor_flags_table): Declare.
9186         * config/score/score.c (score_option_optimization_table,
9187         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9188         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
9189         score_handle_option): Move to score-common.c.
9190         * config/sh/sh.c (sh_option_optimization_table,
9191         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
9192         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
9193         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
9194         * config/sparc/sparc.c: Include common/common-target.h.
9195         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
9196         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
9197         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
9198         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
9199         spu_option_init_struct): Move to spu-common.c.
9200         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
9201         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
9202         * config/v850/v850.c (small_memory_physical_max,
9203         v850_handle_memory_optionn v850_handle_option,
9204         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
9205         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
9206         v850-common.c.
9207         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
9208         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
9209         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
9210         Move to xtensa-common.c.
9211         * cfglayout.c: Include common/common-target.h.
9212         (fixup_reorder_chain): Use targetm_common.have_named_sections.
9213         * cfgrtl.c: Include common/common-target.h.
9214         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
9215         targetm_common.have_named_sections.
9216         * dbxout.c: Include common/common-target.h.
9217         (dbxout_function_end): Use targetm_common.have_named_sections.
9218         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
9219         targetm_common.except_unwind_info.
9220         * dwarf2out.c: Include common/common-target.h.
9221         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
9222         dwarf2out_begin_prologue, dwarf2out_frame_init,
9223         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
9224         targetm_common.except_unwind_info.
9225         * except.c: Include common/common-target.h.
9226         (init_eh, finish_eh_generation,
9227         output_one_function_exception_table): Use
9228         targetm_common.except_unwind_info.
9229         (switch_to_exception_section): Use targetm_common.have_named_sections.
9230         * explow.c: Include common/common-target.h.
9231         * expr.c: Include common/common-target.h.
9232         (build_personality_function): Use targetm_common.except_unwind_info.
9233         * function.c: Include common/common-target.h.
9234         (expand_function_end): Use targetm_common.except_unwind_info.
9235         * haifa-sched.c: Include common/common-target.h.
9236         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
9237         * lto-opts.c: Include common/common-target.h instead of target.h.
9238         (lto_reissue_options): Use targetm_common.handle_option.
9239         * opts.c: Include common/common-target.h.
9240         (target_handle_option): Use targetm_common.handle_option.
9241         (init_options_struct): Update comment referring to
9242         targetm.target_option.optimization.  Use
9243         targetm_common.default_target_flags,
9244         targetm_common.unwind_tables_default and
9245         targetm_common.option_init_struct.
9246         (default_options_optimization): Use
9247         targetm_common.option_optimization_table.
9248         (finish_options): Use targetm_common.except_unwind_info,
9249         targetm_common.unwind_tables_default,
9250         targetm_common.have_named_sections and
9251         targetm_common.supports_split_stack.
9252         * toplev.c: Include common/common-target.h.
9253         (process_options): Use targetm_common.have_named_sections.
9254         * tree-tailcall.c: Include common/common-target.h.
9255         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
9256         * tree.c: Include common/common-target.h.
9257         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
9258         * varasm.c: Include common/common-target.h.
9259         (resolve_unique_section, hot_function_section,
9260         default_function_section): Use targetm_common.have_named_sections.
9261
9262 2011-06-14  Easwaran Raman  <eraman@google.com>
9263
9264         PR rtl-optimization/44194
9265         * dse.c: Include tree-flow.h
9266         (insn_info): Add new field non_frame_wild_read.
9267         (group_info): Add new fields escaped_n and escaped_p.
9268         (kill_on_calls): New variable.
9269         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
9270         (dse_step0): Initialize kill_on_calls.
9271         (can_escape): New function.
9272         (set_usage_bits): Add additional parameter; record information
9273         about escaped locations.
9274         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
9275         (dse_step2_nospill): Set kill_on_calls based on
9276         group->escaped_n and group->escaped_n.
9277         (add_wild_read): Refactor into...
9278         (reset_active_stores): ... New function, and
9279         (free_read_records): ... New function.
9280         (add_non_frame_wild_read): New function.
9281         (scan_insn): Call add_non_frame_wild_read on non-const calls.
9282         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
9283         (dse_step5_nospill): Call scan_reads_nospill for instructions
9284         marked as non_frame_wild_read.
9285         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
9286
9287 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
9288
9289         * common/common-target-def.h, common/common-target.def,
9290         common/common-target.h, common/config/default-common.c,
9291         common/config/pa/pa-common.c: New files.
9292         * Makefile.in (common_out_file, common_out_object_file,
9293         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
9294         (OBJS-libcommon-target): Include $(common_out_object_file).
9295         (prefix.o): Update dependencies.
9296         ($(common_out_object_file), common/common-target-hooks-def.h,
9297         s-common-target-hooks-def-h): New.
9298         (s-tm-texi): Also check timestamp on common-target.def.
9299         (build/genhooks.o): Update dependencies.
9300         * config.gcc (common_out_file, target_has_targetm_common): Define.
9301         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
9302         TARGET_ALWAYS_STRIP_DOTDOT.
9303         * configure.ac (common_out_object_file): Define.
9304         (common_out_file, common_out_object_file): Substitute.
9305         (common): Create directory.
9306         * configure: Regenerate.
9307         * doc/tm.texi.in (targetm_common): Document.
9308         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
9309         * doc/tm.texi: Regenerate.
9310         * genhooks.c (hook_array): Also include common/common-target.def.
9311         * prefix.c (tm.h): Don't include.
9312         (common/common-target.h): Include.
9313         (ALWAYS_STRIP_DOTDOT): Don't define.
9314         (update_path): Use targetm_common.always_strip_dotdot instead of
9315         ALWAYS_STRIP_DOTDOT.
9316         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
9317
9318 2011-06-14  David Li  <davidxl@google.com>
9319
9320         * passes.c (execute_function_todo): Remove TODO_dump_func.
9321         (execute_one_pass): Remove TODO_dump_func.
9322         (execute_function_dump): New function.
9323         * tree-vrp.c: Remove TODO_dump_func.
9324         * regrename.c: Remove TODO_dump_func.
9325         * fwprop.c: Remove TODO_dump_func.
9326         * tree-into-ssa.c: Remove TODO_dump_func.
9327         * tree-complex.c: Remove TODO_dump_func.
9328         * tracer.c: Remove TODO_dump_func.
9329         * tree-loop-distribution.c: Remove TODO_dump_func.
9330         * postreload-gcse.c: Remove TODO_dump_func.
9331         * postreload.c: Remove TODO_dump_func.
9332         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
9333         * tree-tailcall.c: Remove TODO_dump_func.
9334         * ipa-cp.c: Remove TODO_dump_func.
9335         * final.c: Remove TODO_dump_func.
9336         * tree-emutls.c: Remove TODO_dump_func.
9337         * omp-low.c: Remove TODO_dump_func.
9338         * tree-ssa-dse.c: Remove TODO_dump_func.
9339         * tree-ssa-uncprop.c: Remove TODO_dump_func.
9340         * auto-inc-dec.c: Remove TODO_dump_func.
9341         * reorg.c: Remove TODO_dump_func.
9342         * tree-ssa-copyrename.c: Remove TODO_dump_func.
9343         * tree-ssa-ccp.c: Remove TODO_dump_func.
9344         * compare-elim.c: Remove TODO_dump_func.
9345         * mode-switching.c: Remove TODO_dump_func.
9346         * modulo-sched.c: Remove TODO_dump_func.
9347         * tree-call-cdce.c: Remove TODO_dump_func.
9348         * cse.c: Remove TODO_dump_func.
9349         * web.c: Remove TODO_dump_func.
9350         * tree-stdarg.c: Remove TODO_dump_func.
9351         * lto-streamer-out.c: Remove TODO_dump_func.
9352         * tree-ssa-math-opts.c: Remove TODO_dump_func.
9353         * tree-ssa-dom.c: Remove TODO_dump_func.
9354         * tree-nrv.c: Remove TODO_dump_func.
9355         * loop-init.c: Remove TODO_dump_func.
9356         * gimple-low.c: Remove TODO_dump_func.
9357         * ipa-inline.c: Remove TODO_dump_func.
9358         * tree-ssa-sink.c: Remove TODO_dump_func.
9359         * jump.c: Remove TODO_dump_func.
9360         * ifcvt.c: Remove TODO_dump_func.
9361         * tree-ssa-loop.c: Remove TODO_dump_func.
9362         * recog.c: Remove TODO_dump_func.
9363         * dse.c: Remove TODO_dump_func.
9364         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
9365         * matrix-reorg.c: Remove TODO_dump_func.
9366         * tree-eh.c: Remove TODO_dump_func.
9367         * regmove.c: Remove TODO_dump_func.
9368         * function.c: Remove TODO_dump_func.
9369         * tree-vectorizer.c: Remove TODO_dump_func.
9370         * ipa-split.c: Remove TODO_dump_func.
9371         * gcse.c: Remove TODO_dump_func.
9372         * tree-if-conv.c: Remove TODO_dump_func.
9373         * init-regs.c: Remove TODO_dump_func.
9374         * tree-ssa-phiopt.c: Remove TODO_dump_func.
9375         * implicit-zee.c: Remove TODO_dump_func.
9376         * lower-subreg.c: Remove TODO_dump_func.
9377         * bt-load.c: Remove TODO_dump_func.
9378         * tree-dfa.c: Remove TODO_dump_func.
9379         * except.c: Remove TODO_dump_func.
9380         * emit-rtl.c: Remove TODO_dump_func.
9381         * store-motion.c: Remove TODO_dump_func.
9382         * cfgexpand.c: Remove TODO_dump_func.
9383         * tree-cfgcleanup.c: Remove TODO_dump_func.
9384         * cfgcleanup.c: Remove TODO_dump_func.
9385         * tree-ssa-pre.c: Remove TODO_dump_func.
9386         * tree-sra.c: Remove TODO_dump_func.
9387         * tree-mudflap.c: Remove TODO_dump_func.
9388         * tree-ssa-copy.c: Remove TODO_dump_func.
9389         * cfglayout.c: Remove TODO_dump_func.
9390         * tree-ssa-forwprop.c: Remove TODO_dump_func.
9391         * tree-ssa-dce.c: Remove TODO_dump_func.
9392         * ira.c: Remove TODO_dump_func.
9393         * tree-ssa.c: Remove TODO_dump_func.
9394         * integrate.c: Remove TODO_dump_func.
9395         * tree-optimize.c: Remove TODO_dump_func.
9396         * tree-ssa-phiprop.c: Remove TODO_dump_func.
9397         * tree-object-size.c: Remove TODO_dump_func.
9398         * combine.c: Remove TODO_dump_func.
9399         * bb-reorder.c: Remove TODO_dump_func.
9400         * cprop.c: Remove TODO_dump_func.
9401         * var-tracking.c: Remove TODO_dump_func.
9402         * tree-profile.c: Remove TODO_dump_func.
9403         * tree-vect-generic.c: Remove TODO_dump_func.
9404         * reg-stack.c: Remove TODO_dump_func.
9405         * sched-rgn.c: Remove TODO_dump_func.
9406         * tree-ssa-structalias.c: Remove TODO_dump_func.
9407         * tree-switch-conversion.c: Remove TODO_dump_func.
9408         * tree-cfg.c: Remove TODO_dump_func.
9409         * tree-ssa-reassoc.c: Remove TODO_dump_func.
9410         * combine-stack-adj.c: Remove TODO_dump_func.
9411         * dce.c: Remove TODO_dump_func.
9412         * tree-ssanames.c: Remove TODO_dump_func.
9413         * regcprop.c: Remove TODO_dump_func.
9414
9415 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
9416
9417         PR middle-end/47364
9418         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
9419         and properly handle result not in Pmode.
9420
9421 2011-06-14  Robert Millan  <rmh@gnu.org>
9422
9423         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
9424         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
9425         `config/linux.h'.
9426
9427         * config/i386/kfreebsd-gnu64.h: New file.
9428         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
9429         with `i386/kfreebsd-gnu64.h'.
9430
9431         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
9432         (GNU_USER_LINK_EMULATION64): New macros.
9433         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
9434         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
9435         of hardcoding `elf_i386' and `elf_x86_64'.
9436
9437 2011-06-14  Nick Clifton  <nickc@redhat.com>
9438
9439         PR target/49403
9440         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
9441
9442         PR target/49402
9443         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
9444
9445 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
9446
9447         PR fortran/49103
9448         * tree.h (DECL_NONSHAREABLE): Define.
9449         (struct tree_decl_common): Change decl_common_unused to
9450         decl_nonshareable_flag.
9451         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
9452         Ignore vars with DECL_NONSHAREABLE bit set.
9453         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
9454         on stores to automatic aggregate vars.
9455
9456         PR rtl-optimization/49390
9457         Revert:
9458         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
9459
9460         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
9461         MEM_ALIAS_SET.
9462
9463 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
9464             Tom de Vries  <tom@codesourcery.com>
9465
9466         PR target/45098
9467         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
9468         Document changed semantics.
9469         (max_stmt_executions, max_stmt_executions_int): Declare.
9470         * tree-data-ref.c (estimated_loop_iterations)
9471         (estimated_loop_iterations_int): Move functions...
9472         * tree-ssa-loop-niter.c (estimated_loop_iterations)
9473         (estimated_loop_iterations_int): here.
9474         (record_estimate): Change nb_iterations_upper_bound and
9475         nb_iterations_estimate semantics.
9476         (max_stmt_executions, max_stmt_executions_int): New function.
9477         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
9478         (max_stmt_executions_tree): this.
9479         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
9480         estimated_loop_iterations_tree.
9481         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
9482         max_stmt_executions_int instead of estimated_loop_iterations_int.
9483         * predict.c (predict_loops): Idem.
9484         * tree-parloops.c (parallelize_loops): Idem.
9485         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
9486         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
9487         (init_omega_for_ddr_1): Idem.
9488         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
9489         (loop_prefetch_arrays): Idem
9490         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
9491         max_stmt_executions instead of estimated_loop_iterations.
9492         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
9493         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
9494         instead of nb_iterations_upper_bound.
9495
9496 2011-06-13  Jan Hubicka  <jh@suse.cz>
9497
9498         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
9499
9500 2011-06-14  Richard Henderson  <rth@redhat.com>
9501
9502         PR debug/48459
9503         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
9504         (based_loc_descr): Assert it's true.
9505         (compute_frame_pointer_to_fb_displacement): Set it, rather than
9506         aborting immediately.
9507
9508 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
9509             Mingfeng Wu  <mingfeng@faraday-tech.com>
9510
9511         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
9512
9513 2011-06-13  Jan Hubicka  <jh@suse.cz>
9514
9515         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
9516
9517 2011-06-13  Jan Hubicka  <jh@suse.cz>
9518
9519         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
9520         similarly to DECL_COMDAT.
9521         * cgraphunit.c (cgraph_analyze_function): Likewise.
9522         * ipa.c (function_and_variable_visibility): Likewise.
9523
9524 2011-06-13  Jan Hubicka  <jh@suse.cz>
9525
9526         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
9527         BINFO_VIRTUALS when streaming for ltrans unit.
9528
9529 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
9530
9531         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
9532         (movdi_internal64): Same.
9533
9534 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
9535
9536         PR target/44618
9537         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
9538         a set of similar patterns, where the MATCH_OPERAND for the function
9539         argument is replaced with individual references to hardware registers.
9540         (save_fpregs_<mode>): Ditto
9541         (restore_gpregs_<mode>): Ditto
9542         (return_and_restore_gpregs_<mode>): Ditto
9543         (return_and_restore_fpregs_<mode>): Ditto
9544         (return_and_restore_fpregs_aix_<mode>): Ditto
9545
9546 2011-06-13  Jan Hubicka  <jh@suse.cz>
9547
9548         * ipa-utils.c (postorder_stack): New structure.
9549         (ipa_reverse_postorder): Handle aliases.
9550
9551 2011-06-13  Jan Hubicka  <jh@suse.cz>
9552
9553         * ipa-inline.c (reset_edge_caches): Walk aliases.
9554         (update_caller_keys): Do not test inlinability of aliases.
9555         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
9556         (do_estimate_growth): Fix typo.
9557
9558 2011-06-13  Jan Hubicka  <jh@suse.cz>
9559
9560         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
9561         (can_remove_node_now_p): ... here; handle same comdat groups.
9562         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
9563         (inline_call): Update use of can_remove_node_now_p.
9564
9565 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
9566
9567         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
9568         condition to disallow non-identical memory locations.
9569         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
9570         preference to bit manipulation instructions.
9571
9572 2011-06-13  Jan Hubicka  <jh@suse.cz>
9573
9574         * cgraph.c (cgraph_for_node_thunks_and_aliases,
9575         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
9576         (nonremovable_p): New function.
9577         (cgraph_can_remove_if_no_direct_calls_p): New function.
9578         (used_from_object_file_p): New functoin.
9579         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
9580         references from aliases.
9581         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
9582         * ipa-inline.c (check_caller_edge): New function.
9583         (want_inline_function_called_once_p): Use it; accept aliases called
9584         once, too.
9585         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
9586
9587 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9588
9589         PR target/48454
9590         * config/arm/neon.md (vec_pack_trunc): Set the lengths
9591         correctly for the case with Quad vectors.
9592
9593 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
9594            Ira Rosen  <ira.rosen@linaro.org>
9595
9596         PR tree-optimization/49352
9597         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
9598         all, make sure loop_use_stmt after the loop is a def stmt of a used
9599         SSA_NAME that is the only one defined inside of the loop.  Don't
9600         check for COND_EXPR and GIMPLE_BINARY_RHS.
9601         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
9602         check_reduction is true.
9603
9604 2011-06-11  Jan Hubicka  <jh@suse.cz>
9605
9606         PR middle-end/49373
9607         * ipa.c (cgraph_externally_visible_p): Check resolution info.
9608
9609 2011-06-11  Jan Hubicka  <jh@suse.cz>
9610
9611         PR middle-end/48836
9612         * ipa-inline-transform.c: Include tree-pass.h
9613         (inline_transform): Set TODO_update_ssa_only_virtuals.
9614         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
9615
9616 2011-06-11  Jan Hubicka  <jh@suse.cz>
9617
9618         PR middle-end/49378
9619         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
9620         aliases and thunks.
9621
9622 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
9623
9624         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
9625         Take number of iterations to peel into account for equally frequent
9626         misalignment values.
9627
9628 2011-06-11  Jan Hubicka  <jh@suse.cz>
9629
9630         * lto-streamer-out.c (produce_symtab): Stream out the newly
9631         represented aliases.
9632
9633 2011-06-11  Jan Hubicka  <jh@suse.cz>
9634
9635         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
9636         varying args.
9637         (ipa_update_after_lto_read): Likewise.
9638         (ipa_write_node_info): Do not sream call_with_var_arguments.
9639         (ipa_read_node_info): Likewise.
9640
9641 2011-06-11  Jan Hubicka  <jh@suse.cz>
9642
9643         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
9644
9645 2011-06-11  Jan Hubicka  <jh@suse.cz>
9646
9647         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
9648         (lto_symtab_resolve_can_prevail_p): Likewise.
9649         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
9650         * cgraph.c (same_body_aliases_done): New global var.
9651         (cgraph_same_body_alias_1): Rename to ...
9652         (cgraph_create_function_alias): ... this one; reorg to new
9653         representation.
9654         (cgraph_same_body_alias): Use cgraph_create_function_alias;
9655         record references when asked to.
9656         (cgraph_add_thunk): Fix formating.
9657         (cgraph_get_node): Kill same body alias code.
9658         (cgraph_node_for_asm): Likewise.
9659         (cgraph_remove_same_body_alias): Remove.
9660         (cgraph_remove_node): Kill same body alias code.
9661         (cgraph_mark_address_taken_node): Mark also the aliased function
9662         as having address taken.
9663         (dump_cgraph_node): Dump same body aliases.
9664         (cgraph_for_node_thunks_and_aliases): Update for new alias
9665         representation.
9666         (cgraph_for_node_and_aliases): Likewise.
9667         * cgraph.h (same_body): Kll pointer.
9668         (same_body_alias): Update comment.
9669         (same_body_aliases_done): Declare.
9670         (cgraph_remove_same_body_alias): Remove declaration.
9671         (cgraph_create_function_alias): Declare.
9672         (cgraph_process_same_body_aliases): Declare.
9673         (cgraph_function_with_gimple_body_p): Check for alias.
9674         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
9675         (cgraph_alias_aliased_node): New function.
9676         (cgraph_function_node): Update for new aliases.
9677         (cgraph_function_or_thunk_node): Likewise.
9678         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
9679         (inline_call): Remove dead aliases.
9680         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
9681         name hack for same body aliases.
9682         (clone_of_p): Look through aliases.
9683         (verify_cgraph_node): Verify aliases.
9684         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
9685         (cgraph_process_same_body_aliases): New function.
9686         (process_function_and_variable_attributes): Disable weakref warning on
9687         alias.
9688         (cgraph_analyze_functions): Handle aliases.
9689         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
9690         (assemble_thunks): Rename to ...
9691         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
9692         (cgraph_expand_function): Remove alias output code.
9693         (cgraph_output_in_order): Skip aliases.
9694         (cgraph_preserve_function_body_p): Aliases don't need preserving.
9695         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
9696         (ipa_record_reference): Do not assert on alias references.
9697         (ipa_ref_has_aliases_p): New function.
9698         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
9699         (ipa_ref_has_aliases_p): Declare.
9700         * lto-cgraph.c (lto_output_node): Handle aliases.
9701         (input_node): Likewise.
9702         * lto-streamer-out.c (lto_output): Skip aliases.
9703         (produce_symtab): Kill same_body_alias code.
9704         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
9705         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
9706         * ipa-inline.c (update_caller_keys): Walk aliases.
9707         (inline_small_functions): Fix thinko in previous patch.
9708         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
9709         (function_and_variable_visibility): Do not walk same body aliases.
9710         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
9711         (ipa_pta_execute): Use it.
9712
9713 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
9714
9715         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
9716         (*vec_dupv2df): Rename from vec_dupv2df.
9717         (vec_dupv2df): New expander.
9718
9719 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
9720
9721         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
9722
9723 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
9724
9725         * config/i386/i386.md: Use default value in "isa" attribute.
9726         * config/i386/sse.md: Ditto.
9727         * config/i386/mmx.md: Ditto.
9728
9729 2011-06-10  Wei Guozhi  <carrot@google.com>
9730
9731         PR target/45335
9732         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
9733         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
9734         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
9735         related peephole2.
9736         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
9737         related peephole2.
9738         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
9739         (arm_legitimate_ldrd_p): New prototype.
9740         (arm_output_ldrd): New prototype.
9741         * config/arm/arm.c (arm_check_ldrd_operands): New function.
9742         (arm_legitimate_ldrd_p): New function.
9743         (arm_output_ldrd): New function.
9744
9745 2011-06-10  David Li  <davidxl@google.com>
9746
9747         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
9748         * passes.c (passr_eq): New function.
9749         (create_pass_tab): New function.
9750         (pass_traverse): New function.
9751         (dump_one_pass): New function.
9752         (dump_pass_list): New function.
9753         (dump_passes): New function.
9754
9755 2011-06-10  Jan Hubicka  <jh@suse.cz>
9756
9757         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
9758         setting the nothrow flag.
9759         * ipa-reference.c (propagate): Skip aliases.
9760         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
9761         (propagate_nothrow): Skip aliases; do not update cgraph.
9762         (local_pure_const): Do not update cgraph.
9763         * tree-profile.c (tree_profiling): Do fixup_cfg.
9764
9765 2011-06-10  Jan Hubicka  <jh@suse.cz>
9766
9767         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
9768         (cgraph_local_node_p): ... here; handle aliases.
9769         (has_addr_references_p): Break out from ...;
9770         (cgraph_remove_unreachable_nodes) ... here.
9771
9772 2011-06-10  Jan Hubicka  <jh@suse.cz>
9773
9774         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9775         * common.opt (flag_inline_functions_called_once): Do not
9776         initialize to 1.
9777
9778 2011-06-10  Jan Hubicka  <jh@suse.cz>
9779
9780         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9781         (ipcp_initialize_node_lattices): Do not deal with aliases;
9782         Do not try to propagate through thunks.
9783         (ipcp_change_tops_to_bottom): Do not deal with aliases.
9784
9785 2011-06-10  Jan Hubicka  <jh@suse.cz>
9786
9787         * ipa-prop.c (ipa_write_node_info): Stream jump functions
9788         for indirect calls.
9789         (ipa_read_node_info): Likewise.
9790
9791 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9792
9793         PR lto/49302
9794         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
9795         (build_and_insert_call): Likewise.
9796         (build_and_insert_ref): New.
9797         (gimple_expand_builtin_pow): Minor cleanup.
9798         (gimple_expand_builtin_cabs): New.
9799         (execute_cse_sincos): Add case for BUILT_IN_CABS.
9800
9801 2011-06-10  Jan Hubicka  <jh@suse.cz>
9802
9803         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
9804         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
9805         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
9806         (ipcp_propagate_stage): Skip aliases when propagating.
9807         (ipcp_need_redirect_p): Skip aliases.
9808         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
9809         collect_callers_of_node.
9810         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
9811         for aliases.
9812         (ipa_compute_jump_functions): Look through aliases.
9813
9814 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9815
9816         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
9817
9818 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
9819
9820         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
9821         Adjust comments.
9822         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
9823
9824 2011-06-10  Jan Hubicka  <jh@suse.cz>
9825
9826         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
9827         Update call of gimple_get_virt_method_for_binfo.
9828         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
9829         refuse_thunks parameter.
9830         (gimple_fold_call): Update.
9831         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
9832
9833 2011-06-10  Jan Hubicka  <jh@suse.cz>
9834
9835         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
9836         (not_all_callers_have_enough_arguments_p): ... this one; turn into
9837         worker for cgraph_for_node_and_aliases.
9838         (convert_callers_for_node): Break out from ...
9839         (convert_callers): ... here.
9840         (modify_function): Use collect_callers_of_node.
9841         (ipa_early_sra): Use cgraph_for_node_and_aliases.
9842
9843 2011-06-10  Richard Guenther  <rguenther@suse.de>
9844
9845         PR tree-optimization/49361
9846         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
9847         when not already in gimple form.
9848
9849 2011-06-10  Richard Guenther  <rguenther@suse.de>
9850
9851         PR bootstrap/49344
9852         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
9853         FOR_EACH_PHI_OR_STMT_USE.
9854
9855 2011-06-10  Jan Hubicka  <jh@suse.cz>
9856
9857         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
9858         (clone_inlined_nodes): ... here.
9859         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
9860         to real destination prior inlining.
9861         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
9862         can_early_inline_edge_p, want_early_inline_function_p,
9863         want_early_inline_function_p, want_inline_small_function_p,
9864         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
9865         edge_badness, update_all_callee_keys, lookup_recursive_calls,
9866         add_new_edges_to_heap, inline_small_functions, flatten_function,
9867         inline_always_inline_functions, early_inline_small_functions): Use
9868         cgraph_function_or_thunk_node.
9869         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
9870         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
9871         (do_estimate_edge_growth_1): Break out from ...
9872         (do_estimate_growth) ... here; walk aliases.
9873         (inline_generate_summary): Skip aliases.
9874
9875 2011-06-10  Richard Guenther  <rguenther@suse.de>
9876
9877         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
9878         forward when combining, visit inserted stmts when a stmt was changed.
9879
9880 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
9881
9882         * tree.h (error_operand_p): Add.
9883         * dbxout.c (dbxout_type_fields): Use the latter.
9884         * c-decl.c (add_stmt): Likewise.
9885         * gimplify.c (omp_add_variable, omp_notice_variable,
9886         gimplify_scan_omp_clauses): Likewise.
9887
9888 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
9889
9890         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
9891         when a value is actually passed in regs.
9892
9893 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
9894             Laurent Rougé  <laurent.rouge@menta.fr>
9895
9896         * doc/invoke.texi (SPARC options): Add -mflat.
9897         * config/sparc/sparc.opt: Likewise.
9898         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
9899         (sparc_flat_expand_prologue): Declare.
9900         (sparc_flat_expand_epilogue): Likewise.
9901         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
9902         (CPP_ENDIAN_SPEC): Replace with...
9903         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
9904         (CPP_SPEC): Adjust to above change.
9905         (EXTRA_SPECS): Likewise.
9906         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
9907         (INCOMING_REGNO): Likewise.
9908         (OUTGOING_REGNO): Likewise.
9909         (LOCAL_REGNO): Likewise.
9910         (SETUP_FRAME_ADDRESSES): Likewise.
9911         (FIXED_REGISTERS): Set 0 for %fp.
9912         (CALL_USED_REGISTERS): Likewise.
9913         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
9914         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
9915         (RETURN_ADDR_REGNUM): Define.
9916         (RETURN_ADDR_RTX): Use it.
9917         (INCOMING_RETURN_ADDR_REGNUM): Define.
9918         (INCOMING_RETURN_ADDR_RTX): Use it.
9919         (DWARF_FRAME_RETURN_COLUMN): Likewise.
9920         (EH_RETURN_REGNUM): Define.
9921         (EH_RETURN_STACKADJ_RTX): Use it.
9922         (EH_RETURN_HANDLER_RTX): Delete.
9923         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
9924         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
9925         Delete.
9926         (struct machine_function): Add frame_size, apparent_frame_size,
9927         frame_base_reg, frame_base_offset, n_global_fp_regs and
9928         save_local_in_regs_p fields.
9929         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
9930         sparc_frame_base_offset, sparc_n_global_fp_regs,
9931         sparc_save_local_in_regs_p): New macros.
9932         (sparc_option_override): Error out if -fcall-saved-REG is specified
9933         for Out registers.
9934         (eligible_for_restore_insn): Fix formatting.
9935         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
9936         (eligible_for_sibcall_delay): Likewise.
9937         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
9938         (sparc_legitimate_address_p): Adjust to above change.
9939         (save_global_or_fp_reg_p): New predicate.
9940         (return_addr_reg_needed_p): Likewise.
9941         (save_local_or_in_reg_p): Likewise.
9942         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
9943         (SORR_SAVE, SORR_RESTORE): Delete.
9944         (sorr_pred_t): New typedef.
9945         (sorr_act_t): New enum.
9946         (save_or_restore_regs): Rename to...
9947         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
9948         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
9949         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
9950         mechanism.  Add CFI information for double-word saves in 32-bit mode.
9951         (emit_adjust_base_to_offset): New function extracted from...
9952         (emit_save_or_restore_regs): ...this.  Rename the rest to...
9953         (emit_save_or_restore_regs_global_fp_regs): ...this.
9954         (emit_save_or_restore_regs_local_in_regs): New function.
9955         (gen_create_flat_frame_[123]): New functions.
9956         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
9957         (sparc_flat_expand_prologue): New function.
9958         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
9959         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
9960         (sparc_flat_expand_epilogue): New function.
9961         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
9962         (output_return): Likewise.
9963         (output_sibcall): Likewise.
9964         (sparc_output_mi_thunk): Likewise.
9965         (sparc_frame_pointer_required): Likewise.
9966         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
9967         function optimization.
9968         * config/sparc/sparc.md (flat): New attribute.
9969         (prologue): Add TARGET_FLAT handling.
9970         (save_register_window): Disable if TARGET_FLAT.
9971         (create_flat_frame_[123]): New patterns.
9972         (epilogue): Add TARGET_FLAT handling.
9973         (sibcall_epilogue): Likewise.
9974         (eh_return): New expander.
9975         (eh_return_internal): New insn and splitter.
9976         (return_internal): Add TARGET_FLAT handling.
9977         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
9978         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
9979         (nonlocal_goto): Add TARGET_FLAT handling.
9980         * config/sparc/t-elf: Add -mflat multilib.
9981         * config/sparc/t-leon: Likewise.
9982
9983 2011-06-10  Jan Hubicka  <jh@suse.cz>
9984
9985         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
9986         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
9987         (self_recursive_p): Use cgraph_function_node.
9988         (propagate_pure_const): Likewise.
9989         (propagate_nothrow): Likewise.
9990         * ipa-reference.c (ipa_reference_get_not_read_global): Use
9991         cgraph_function_node.
9992         (propagate_bits): Likewise.
9993         (propagate): Likewise.
9994
9995 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9996             Richard Earnshaw  <rearnsha@arm.com>
9997
9998         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
9999         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
10000         (*thumb2_movdi_vfp): Delete.
10001         (*arm_movdi_vfp_cortexa8): Delete.
10002         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
10003         (*movdi_vfp_cortexa8): Likewise.
10004
10005 2011-06-10  Richard Guenther  <rguenther@suse.de>
10006
10007         * stor-layout.c (initialize_sizetypes): Give names to all
10008         sizetype kinds.
10009
10010 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
10011
10012         PR tree-optimization/49318
10013         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
10014         irrelevant pattern statements.
10015
10016 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10017
10018         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
10019
10020         PR bootstrap/49354
10021         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
10022         to last assignment.
10023
10024 2011-06-09  Jan Hubicka  <jh@suse.cz>
10025
10026         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
10027         do not recompute reachable flag.
10028         (cgraph_finalize_function, cgraph_analyze_functions): Set
10029         redefined_extern_inline here.
10030
10031 2011-06-09  Jan Hubicka  <jh@suse.cz>
10032
10033         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
10034         (cgraph_only_called_directly_p): ... this one; bring offline.
10035         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
10036         varpool_used_from_object_file_p): Drop names from the declaratoin.
10037         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
10038         collect_callers_of_node): New.
10039         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
10040         (cgraph_edge_recursive_p): Use cgraph_function_node.
10041         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
10042         (cgraph_node_cannot_be_local_p_1): Break out from ...
10043         (cgraph_node_can_be_local_p): ... here; walk aliases.
10044         (cgraph_for_node_thunks_and_aliases): New function.
10045         (cgraph_for_node_and_aliases): New function.
10046         (cgraph_make_node_local_1): Break out from ...
10047         (cgraph_make_node_local) ... here; use
10048         cgraph_for_node_thunks_and_aliases.
10049         (cgraph_set_nothrow_flag_1): Break out from ...
10050         (cgraph_set_nothrow_flag) ... here;
10051         use cgraph_for_node_thunks_and_aliases.
10052         (cgraph_set_const_flag_1): Break out from ...
10053         (cgraph_set_const_flag) ... here;
10054         use cgraph_for_node_thunks_and_aliases.
10055         (cgraph_set_pure_flag_1): Break out from ...
10056         (cgraph_set_pure_flag) ... here;
10057         use cgraph_for_node_thunks_and_aliases.
10058         (cgraph_propagate_frequency_1): Break out from ...
10059         (cgraph_propagate_frequency) ... here; use
10060         cgraph_for_node_thunks_and_aliases.
10061         (cgraph_used_from_object_file_p): Do not care about aliases.
10062         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
10063         New functions.
10064         (collect_callers_of_node_1, collect_callers_of_node): New functions.
10065
10066 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10067
10068         PR rtl-optimization/49154
10069         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
10070         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
10071         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
10072         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
10073         * config/cris/cris.h (cris_register_move_cost): Remove
10074         !TARGET_V32 code.  Tweak comments.
10075
10076 2011-06-09  Jan Hubicka  <jh@suse.cz>
10077
10078         * cgraphbuild.c (record_eh_tables): Mark personality function as having
10079         address taken.
10080
10081 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
10082
10083         PR rtl-optimization/49154
10084         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
10085         is a matching slot in the hashtable, assign it to classes_ptr.
10086
10087         PR rtl-optimization/49154
10088         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
10089         register classes.
10090         * doc/tm.texi: Regenerate.
10091
10092 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
10093
10094         PR target/49307
10095         * config/sh/sh.md (UNSPEC_CHKADD): New.
10096         (chk_guard_add): New define_insn_and_split.
10097         (symGOT_load): Use chk_guard_add instead of blockage.
10098
10099 2011-06-09  Kai Tietz  <ktietz@redhat.com>
10100
10101         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
10102
10103 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
10104
10105         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
10106
10107 2011-06-09  Wei Guozhi  <carrot@google.com>
10108
10109         PR target/46975
10110         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
10111         (peephole2 for conditional move): Generate 16 bit instructions.
10112
10113 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
10114
10115         * config/i386/i386.md (*movdi_internal_rex64): Merge
10116         alternatives 6 and 8.
10117
10118 2011-06-09  David Li  <davidxl@google.com>
10119
10120         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
10121         * passes.c (passr_eq): New function.
10122         (create_pass_tab): New function.
10123         (pass_traverse): New function.
10124         (dump_one_pass): New function.
10125         (dump_pass_list): New function.
10126         (dump_passes): New function.
10127
10128 2011-06-09  David Li  <davidxl@google.com>
10129
10130         * tree-complex.c (tree_lower_complex): Gate cleanup.
10131         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
10132         (execute_optimize_stdarg): Ditto.
10133         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
10134         (execute_cleanup_eh_1): Ditto.
10135         (execute_cleanup_eh): Ditto.
10136         * gcse.c (gate_rtl_pre): Ditto.
10137         (execute_rtl_pre): Ditto.
10138         * except.c (finish_eh_generation): Ditto.
10139         (convert_to_eh_region_ranges): Ditto.
10140         * cprop.c (one_cprop_pass): Ditto.
10141
10142 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
10143
10144         PR target/48673
10145         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
10146         in all basic blocks.
10147
10148 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10149
10150         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
10151         (HAVE_ENABLE_EXECUTE_STACK): Define.
10152         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
10153         (HAVE_ENABLE_EXECUTE_STACK): Define.
10154         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
10155         (HAVE_ENABLE_EXECUTE_STACK): Define.
10156         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
10157         (ENABLE_EXECUTE_STACK): Remove.
10158         (HAVE_ENABLE_EXECUTE_STACK): Define.
10159         [IN_LIBGCC2]: Don't include <windows.h>.
10160         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
10161         (HAVE_ENABLE_EXECUTE_STACK): Define.
10162         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
10163         (HAVE_ENABLE_EXECUTE_STACK): Define.
10164         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
10165         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
10166         (HAVE_ENABLE_EXECUTE_STACK): Define.
10167         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
10168         (HAVE_ENABLE_EXECUTE_STACK): Define.
10169         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
10170         (HAVE_ENABLE_EXECUTE_STACK): Define.
10171         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
10172         (HAVE_ENABLE_EXECUTE_STACK): Define.
10173         * config/alpha/alpha.c (alpha_trampoline_init): Test
10174         HAVE_ENABLE_EXECUTE_STACK.
10175         * config/i386/i386.c (ix86_trampoline_init): Likewise.
10176         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10177         (sparc64_initialize_trampoline): Likewise.
10178         * libgcc2.c [L_enable_execute_stack]: Remove.
10179         * system.h (ENABLE_EXECUTE_STACK): Poison.
10180         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
10181         * doc/tm.texi: Regenerate.
10182         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
10183
10184 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
10185
10186         PR middle-end/49308
10187         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
10188         variable.  After resetting and rescanning insn continue with previous
10189         statement.
10190
10191 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10192
10193         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
10194         (gcc_cv_ld_hidden): Likewise.
10195         * configure: Regenerate.
10196         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
10197         (ix86_stack_protect_fail): Mark unused.
10198         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
10199         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
10200         [TARGET_MACHO]: Don't define.
10201         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
10202         (TARGET_STACK_PROTECT_FAIL): Likewise.
10203         (rs6000_stack_protect_fail): Mark unused.
10204         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
10205         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
10206
10207 2011-06-08  Andi Kleen  <ak@linux.intel.com>
10208
10209         * varasm.c (get_section): Print location of other conflict
10210         for section conflicts.
10211
10212 2011-06-08  Andi Kleen  <ak@linux.intel.com>
10213
10214         * config/i386/driver-i386.c (host_detect_local_cpu):
10215         Add model 0x2d Intel CPU.
10216
10217 2011-06-08  Andi Kleen  <ak@linux.intel.com>
10218
10219         * reginfo.c (global_regs_decl): Add.
10220         (globalize_reg): Add decl parameter. Compute location.  Pass location
10221         to warnings and add inform. Store decl in global_regs_decl.
10222         * rtl.h (globalize_reg): Update prototype.
10223         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
10224
10225 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
10226
10227         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
10228
10229 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
10230
10231         PR target/49305
10232         * config/sh/predicates.md (general_movsrc_operand): Check
10233         mode for memory with indexed address for QI and HImode.
10234         (general_movdst_operand): Likewise.
10235
10236 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
10237
10238         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
10239
10240 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
10241
10242         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
10243         (num_ssa_operands): Likewise.
10244         (op_iter_init_phiuse): Forward-declare.
10245         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
10246
10247 2011-06-08  Nick Clifton  <nickc@redhat.com>
10248
10249         * doc/invoke.texi (ARM Options): Update description of
10250         -mthumb-interwork.
10251
10252 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
10253
10254         * config/i386/driver-i386.c (host_detect_local_cpu): Support
10255         unknown Intel family 0x6 CPUs.
10256
10257 2011-06-08  Martin Jambor  <mjambor@suse.cz>
10258
10259         * tree-sra.c (mark_rw_status): Removed.
10260         (analyze_access_subtree): New parameter parent instead of
10261         mark_read and mark_write, propagate from that.
10262
10263 2011-06-08  Julian Brown  <julian@codesourcery.com>
10264
10265         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
10266         for double-precision helper functions in hard-float mode if only
10267         single-precision arithmetic is supported in hardware.
10268
10269 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
10270
10271         PR rtl-optimization/49303
10272         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
10273         code_motion_path_driver returned 0 or 1.
10274         (sel_region_finish): Clear h_d_i_d.
10275
10276 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
10277
10278         * config/sh/sh.c (prepare_move_operands): Set pic register
10279         appropriately for global and local dynamic tls models even
10280         if flag_pic is unset.
10281
10282 2011-06-07  Jason Merrill  <jason@redhat.com>
10283
10284         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
10285
10286 2011-06-07  Xinliang David Li  <davidxl@google.com>
10287         * passes.c (enable_disable_pass): Handle assembler name.
10288         (is_pass_explicitly_enabled_or_disabled): Ditto.
10289
10290 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10291
10292         PR tree-optimization/48497
10293         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
10294
10295 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10296
10297         PR tree-optimization/46728
10298         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
10299         to use gimple_val_nonnegative_real_p.
10300         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
10301         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
10302
10303 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
10304
10305         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
10306
10307 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
10308
10309         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
10310         constant vectors.
10311
10312 2011-06-07  Richard Guenther  <rguenther@suse.de>
10313
10314         * stor-layout.c (initialize_sizetypes): Initialize all
10315         sizetypes based on target definitions.
10316         (set_sizetype): Remove.
10317         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
10318         * tree.h (set_sizetype): Remove.
10319
10320 2011-06-07  Nick Clifton  <nickc@redhat.com>
10321
10322         * config.gcc: Unify V850 architecture options and add support for
10323         newer V850 architectures.
10324         * config/v850/t-v850e: Delete.
10325
10326 2011-06-07  Richard Guenther  <rguenther@suse.de>
10327
10328         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
10329         Call set_sizetype from here.
10330
10331 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
10332
10333         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
10334         (*maddhisi4tb, *maddhisi4tt): New define_insns.
10335
10336 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
10337             Andrew Stubbs  <ams@codesourcery.com>
10338
10339         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
10340         multiplies.
10341         * doc/md.texi (Canonicalization of Instructions): Document widening
10342         multiply canonicalization.
10343
10344 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
10345
10346         PR gcov-profile/49299
10347         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
10348
10349 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
10350
10351         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
10352         a pointer.
10353         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
10354         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
10355         vect_recog_pow_pattern): Likewise.
10356         (vect_pattern_recog_1): Remove declaration.
10357         (widened_name_p): Remove declaration.  Add new argument to specify
10358         whether to check that both types are either signed or unsigned.
10359         (vect_recog_widen_mult_pattern): Update documentation.  Handle
10360         unsigned patterns and multiplication by constants.
10361         (vect_pattern_recog_1): Update vect_recog_func references.  Use
10362         statement information from the statement returned from pattern
10363         detection functions.
10364         (vect_pattern_recog): Update vect_recog_func reference.
10365         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
10366         multiplication by a constant use the type of the other operand.
10367
10368 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
10369
10370         PR rtl-optimization/49145
10371         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
10372
10373 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
10374
10375         PR debug/49262
10376         * dwarf2out.c (native_encode_initializer): Decrement count in each
10377         iteration.
10378
10379         PR debug/49294
10380         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
10381         non-MODE_INT modes.
10382
10383         PR c++/49264
10384         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
10385         if stmt folded into nothing.
10386         * tree-inline.c (fold_marked_statements): If a builtin at the end of
10387         a bb folded into nothing, just update cgraph edges and move to next bb.
10388         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
10389         to be NULL.  Don't compute count and frequency if new_call is NULL.
10390
10391 2011-06-04  Diego Novillo  <dnovillo@google.com>
10392
10393         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
10394         (cgraph.o): Likewise.
10395         (cgraphunit.o): Likewise.
10396         * cgraphunit.c: Include lto-streamer.h
10397         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
10398         if LTO is enabled.
10399         * lto-streamer-in.c (unpack_value_fields): Call
10400         streamer_hooks.unpack_value_fields if set.
10401         (lto_materialize_tree): For unhandled nodes, first try to
10402         call lto_streamer_hooks.alloc_tree, if it exists.
10403         (lto_input_ts_decl_common_tree_pointers): Move reading of
10404         DECL_INITIAL to lto_streamer_read_tree.
10405         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
10406         (lto_streamer_read_tree): New.
10407         (lto_reader_init): Rename from lto_init_reader.
10408         Move initialization code to lto/lto.c.
10409         * lto-streamer-out.c (pack_value_fields): Call
10410         streamer_hooks.pack_value_fields if set.
10411         (lto_output_tree_ref): For tree nodes that are not normally indexable,
10412         call streamer_hooks.indexable_with_decls_p before giving up.
10413         (lto_output_ts_decl_common_tree_pointers): Move handling
10414         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
10415         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
10416         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
10417         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
10418         (lto_streamer_write_tree): New.
10419         (lto_output): Call lto_streamer_init directly.
10420         (lto_writer_init): Remove.
10421         * lto-streamer.c (streamer_hooks): New.
10422         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
10423         instead of lto_preload_common_nodes.
10424         (lto_is_streamable): Move from lto-streamer.h
10425         (lto_streamer_hooks_init): New.
10426         (streamer_hooks): New.
10427         (streamer_hooks_init): New.
10428         * lto-streamer.h (struct output_block): Forward declare.
10429         (struct lto_input_block): Likewise.
10430         (struct data_in): Likewise.
10431         (struct bitpack_d): Likewise.
10432         (struct streamer_hooks): Declare.
10433         (streamer_hooks): Declare.
10434         (lto_streamer_hooks_init): Declare.
10435         (lto_streamer_write_tree): Declare.
10436         (lto_streamer_read_tree): Declare.
10437         (streamer_hooks_init): Declare.
10438         (lto_is_streamable): Move to lto-streamer.c
10439
10440 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10441
10442         * longlong.h (smul_ppmm): The resulting register pair contains the
10443         higher order word first.
10444
10445 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10446
10447         PR tree-optimization/46728
10448         * builtins.c (powi_table): Remove.
10449         (powi_lookup_cost): Remove.
10450         (powi_cost): Remove.
10451         (expand_powi_1): Remove.
10452         (expand_powi): Remove.
10453         (expand_builtin_pow_root): Remove.
10454         (expand_builtin_pow): Remove.
10455         (expand_builtin_powi): Eliminate handling of constant exponent.
10456         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
10457
10458 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10459
10460         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
10461
10462 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10463
10464         * dce.c (reset_unmarked_insns_debug_uses): New.
10465         (delete_unmarked_insns): Skip debug insns.
10466         (prescan_insns_for_dce): Likewise.
10467         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
10468         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
10469         active reg can be found.
10470         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
10471         (convert_regs_1): Use it.
10472
10473 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10474
10475         * tree-pretty-print.c (dump_function_header): Add flags.
10476         Don't dump decl_uid with nouid.
10477         * tree-pretty-print.h (dump_function_header): Adjust.
10478         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
10479         * passes.c (pass_init_dump_file): Pass dump_flags on.
10480         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
10481
10482 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
10483
10484         PR bootstrap/49270
10485         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
10486
10487 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
10488
10489         PR tree-optimization/49243
10490         * calls.c (setjmp_call_p): Also check if fndecl has the
10491         returns_twice attribute.
10492
10493 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10494
10495         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
10496         -ffast-math etc.
10497
10498 2011-06-06  Richard Henderson  <rth@redhat.com>
10499             Georg-Johann Lay  <avr@gjlay.de>
10500
10501         PR target/42210
10502         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
10503         New predicates.
10504         * config/avr/avr.md ("insv"): New insn expander.
10505         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
10506         "*insv.not.io", "*insv.reg"): New insns.
10507
10508 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
10509
10510         PR target/49285
10511         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
10512         to nonimmediate_operand from memory_operand for the operand that is to
10513         be forced to memory by the expander.  Lose the constraints.
10514
10515 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
10516
10517         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
10518         EH return when delayed branches are disabled.
10519
10520 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
10521
10522         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
10523         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
10524         calculation.
10525         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
10526         Simplify MODE_V1DF and MODE_V2SF handling.
10527         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
10528         Simplify MODE_SF handling.
10529
10530 2011-06-04  Jan Hubicka  <jh@suse.cz>
10531
10532         PR tree-optimization/48893
10533         PR tree-optimization/49091
10534         PR tree-optimization/49179
10535         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
10536         Bounds check.
10537
10538 2011-06-04  Jan Hubicka  <jh@suse.cz>
10539
10540         PR lto/48954
10541         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
10542         bitmaps.
10543
10544 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
10545
10546         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
10547
10548 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
10549
10550         PR target/49281
10551         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
10552         to be strictly smaller than 1 << shiftcount.
10553
10554 2011-06-04  Jan Hubicka  <jh@suse.cz>
10555
10556         PR tree-optimize/48929
10557         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
10558         of empty predicate.
10559
10560 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
10561
10562         PR debug/48333
10563         * calls.c (emit_call_1): Prefer the __builtin declaration of
10564         builtin functions.
10565
10566 2011-06-03   Diego Novillo  <dnovillo@google.com>
10567
10568         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
10569         (lto_input_tree_pointers): Likewise.
10570         * lto-streamer-out.c (pack_value_fields): Likewise.
10571         (lto_output_tree_pointers): Likewise.
10572         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
10573         and OPTIMIZATION_NODE.
10574
10575 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10576
10577         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
10578         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
10579         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
10580         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
10581         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
10582         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
10583         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
10584         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
10585         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
10586         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
10587         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
10588         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
10589         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
10590         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
10591         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
10592         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
10593         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
10594         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
10595         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
10596         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
10597         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
10598         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
10599         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
10600         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
10601         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
10602         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
10603         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
10604         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
10605         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
10606         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
10607         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
10608         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
10609         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
10610         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
10611         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
10612         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
10613         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
10614         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
10615         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
10616         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
10617         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
10618         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
10619         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
10620         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
10621         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
10622         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
10623         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
10624         * system.h (MD_UNWIND_SUPPORT): Poison.
10625         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
10626         * doc/tm.texi: Regenerate.
10627         * unwind-dw2.c: Include md-unwind-support.h instead of
10628         MD_UNWIND_SUPPORT.
10629         * config/ia64/unwind-ia64.c: Likewise.
10630         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
10631
10632 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
10633
10634         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
10635
10636 2011-06-03  Richard Henderson  <rth@redhat.com>
10637             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10638
10639         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
10640         (sigill_hdlr): Correct insn, insn size.
10641         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
10642
10643 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10644
10645         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
10646         t-slibgcc-dummy.
10647         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
10648         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
10649         * config/mips/t-iris: Remove.
10650         * config/mips/t-irix6: New file.
10651         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
10652
10653 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10654
10655         * Makefile.in (LIB2ADDEHDEP): Remove.
10656         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
10657         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
10658         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
10659         * config/t-darwin (LIB2ADDEHDEP): Remove.
10660         * config/t-freebsd (LIB2ADDEHDEP): Remove.
10661         * config/t-linux (LIB2ADDEHDEP): Remove.
10662
10663 2011-06-03  Diego Novillo  <dnovillo@google.com>
10664
10665         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
10666         (lto_register_var_decl_in_symtab): Likewise.
10667         (lto_register_function_decl_in_symtab): Likewise.
10668         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
10669         logic to uniquify_nodes.
10670
10671 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10672
10673         * config/alpha/t-osf5: Remove.
10674         * config/alpha/t-osf-pthread: Remove.
10675         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
10676         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
10677
10678 2011-06-03  Julian Brown  <julian@codesourcery.com>
10679
10680         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
10681         (strongarm1110): Use strongarm tuning.
10682         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
10683         * config/arm/arm.c (arm_strongarm_tune): New.
10684         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
10685         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
10686         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
10687         setting, using previous defaults or 1 for Cortex-A5.
10688         (arm_option_override): Set max_insns_skipped from current tuning.
10689
10690 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
10691
10692         * doc/install.texi (Options specification): Document --with-specs.
10693
10694 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10695
10696         * config/arm/neon.md (orndi3_neon): Actually split it.
10697
10698 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
10699
10700         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
10701         * var-tracking.c (reverse_op): Limite recurse depth to 5.
10702
10703 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
10704
10705         PR debug/47590
10706         * target.def (delay_sched2, delay_vartrack): New.
10707         * doc/tm.texi.in: Update.
10708         * doc/tm.texi: Rebuild.
10709         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
10710         * var-tracking.c (gate_handle_var_tracking): Likewise.
10711         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
10712         (bfin_flag_var_tracking): Drop.
10713         (output_file_start): Don't save and override flag_var_tracking.
10714         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
10715         (bfin_reorg): Test original variables.
10716         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
10717         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
10718         (ia64_flag_var_tracking): Drop.
10719         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
10720         (ia64_file_start): Don't save and override flag_var_tracking.
10721         (ia64_override_options_after_change): Ditto
10722         flag_schedule_insns_after_reload.
10723         (ia64_reorg): Test original variables.
10724         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
10725         (picochip_flag_var_tracking): Drop.
10726         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
10727         (picochip_option_override): Don't save and override
10728         flag_schedule_insns_after_reload.
10729         (picochip_asm_file_start): Ditto flag_var_tracking.
10730         (picochip_reorg): Test original variables.
10731         * config/spu/spu.c (spu_flag_var_tracking): Drop.
10732         (TARGET_DELAY_VARTRACK): Define.
10733         (spu_var_tracking): New.
10734         (spu_machine_dependent_reorg): Call it.
10735         (asm_file_start): Don't save and override flag_var_tracking.
10736
10737 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
10738
10739         PR target/49163
10740         * config/sh/predicates.md (general_movsrc_operand): Return 0
10741         for memory and memory subreg of which address is an invalid
10742         indexed address for QI and HImode.
10743         (general_movdst_operand): Likewise.
10744
10745 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
10746
10747         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
10748         edges only, when there is a non-local label in the function.
10749         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
10750
10751 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
10752
10753         * config/i386/constraints.md (Y3): New register constraint.
10754         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
10755         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
10756         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
10757         *sse2_interleave_lowv2df.
10758
10759 2011-06-02  Julian Brown  <julian@codesourcery.com>
10760
10761         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
10762         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
10763         (arm_cortex_a5_tune): New.
10764
10765 2011-06-02  Julian Brown  <julian@codesourcery.com>
10766
10767         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
10768         * config/arm/arm.c (arm_default_branch_cost): New.
10769         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
10770         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
10771         (arm_fa726_tune): Set branch_cost field using
10772         arm_default_branch_cost.
10773         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
10774         current_tune structure.
10775         * dojump.c (tm_p.h): Include file.
10776
10777 2011-06-02  Julian Brown  <julian@codesourcery.com>
10778
10779         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
10780         tuning.
10781         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
10782         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
10783         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
10784         field.
10785         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
10786         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
10787         (arm_fa726te_tune): Add prefer_constant_pool setting.
10788         (arm_v6t2_tune, arm_cortex_tune): New.
10789         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
10790         prefer_constant_pool setting.
10791
10792 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
10793
10794         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
10795         switch statement.
10796         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
10797         (*movdf_internal) <case 6,7,8>: Ditto.
10798
10799         * config/i386/constraints.md (Y4): New register constraint.
10800         * config/i386/sse.md (vec_set<mode>_0): Merge with
10801         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
10802         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
10803         *vec_extractv2di_1_sse.
10804         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
10805         and *vec_concatv2di_rex64_sse.
10806
10807 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
10808
10809         PR target/48807
10810         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
10811         of cgraph_local_info for null before attempting to use it.
10812
10813 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
10814
10815         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
10816         (current_function_dynamic_alloc_count): Delete.
10817         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
10818         (expand_builtin_nonlocal_goto): Remove obsolete comment.
10819         (expand_builtin_update_setjmp_buf): Remove dead code.
10820         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
10821         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
10822         support.
10823         * function.c (instantiate_virtual_regs): Likewise.
10824         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
10825         for a block with a single abnormal incoming edge.
10826         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
10827         (SETJMP_VIA_SAVE_AREA): Delete.
10828         * config/sparc/sparc-protos.h (load_got_register): Declare.
10829         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
10830         (load_got_register): Make global.
10831         (sparc_frame_pointer_required): Add 'static'.
10832         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
10833         (sparc_builtin_setjmp_frame_value): New function.
10834         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
10835         (save_stack_nonlocal): New expander.
10836         (restore_stack_nonlocal): Likewise.
10837         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
10838         (nonlocal_goto_internal): New insn.
10839         (goto_handler_and_restore): Delete.
10840         (builtin_setjmp_setup): Likewise.
10841         (do_builtin_setjmp_setup): Likewise.
10842         (setjmp): Likewise.
10843         (builtin_setjmp_receiver): New expander.
10844
10845 2011-06-01  David Li  <davidxl@google.com>
10846
10847         PR middle-end/49261
10848         * tree-pretty-print.c (dump_function_header): Format cleanup.
10849
10850 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
10851
10852         PR target/49238
10853         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
10854         needed when original operands are used for msw_skip comparison.
10855
10856 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
10857
10858         PR debug/49250
10859         * var-tracking.c (add_uses, add_stores): Don't call
10860         cselib_subst_to_values on ENTRY_VALUE.
10861
10862 2011-06-01  Diego Novillo  <dnovillo@google.com>
10863
10864         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
10865         output_record_start with LTO_null instead of output_zero.
10866         (lto_output_ts_binfo_tree_pointers): Likewise.
10867         (lto_output_tree): Likewise.
10868         (output_eh_try_list): Likewise.
10869         (output_eh_region): Likewise.
10870         (output_eh_lp): Likewise.
10871         (output_eh_regions): Likewise.
10872         (output_bb): Likewise.
10873         (output_function): Likewise.
10874         (output_unreferenced_globals): Likewise.
10875         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
10876         instead of NUM_TREE_CODES.
10877         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
10878         (lto_output_int_in_range): Change << to >> when shifting VAL.
10879
10880 2011-06-01  Diego Novillo  <dnovillo@google.com>
10881
10882         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
10883         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
10884
10885 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
10886
10887         PR target/45074
10888         * optabs.h (valid_multiword_target_p): Declare.
10889         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
10890         doing multi-word operations.
10891         * optabs.c (expand_binop): Likewise.
10892         (expand_doubleword_bswap): Likewise.
10893         (expand_absneg_bit): Likewise.
10894         (expand_unop): Likewise.
10895         (expand_copysign_bit): Likewise.
10896         (multiword_target_p): New function.
10897
10898 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
10899
10900         PR rtl-optimization/48830
10901         PR rtl-optimization/48808
10902         PR rtl-optimization/48792
10903         * reload.c (push_reload): Check contains_reg_of_mode.
10904         * reload1.c (strip_paradoxical_subreg): New function.
10905         (gen_reload_chain_without_interm_reg_p): Use it to handle
10906         paradoxical subregs.
10907         (emit_output_reload_insns, gen_reload): Likewise.
10908
10909 2011-06-01  David Li  <davidxl@google.com>
10910
10911         * predict.c : Change pass name
10912         * ipa.c: Ditto.
10913         * dce.c: Ditto.
10914         * tree-profile.c: Ditto.
10915         * except.c: Ditto.
10916
10917 2011-06-01  David Li  <davidxl@google.com>
10918
10919         * tree-pretty-print.c (dump_function_header): New function.
10920         * final.c (rest_of_clean_state): Use header dumper.
10921         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
10922         * passes.c (pass_init_dump_file): Use header dumper.
10923
10924 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
10925
10926         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
10927         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
10928         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
10929         New functions.
10930         (mem_loc_descriptor): Use them.
10931
10932         * var-tracking.c (create_entry_value): New function.
10933         (vt_add_function_parameter): Use it.
10934
10935 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10936
10937         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
10938         Include <signal.h>, <ucontext.h>.
10939         (sigill_caught): Define.
10940         (sigill_hdlr): New function.
10941         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
10942         insns can be executed.
10943         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
10944         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
10945
10946 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10947
10948         * config/t-slibgcc-darwin: Move to ...
10949         * config/t-slibgcc-dummy: ... this.  Clarify comments.
10950         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
10951         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
10952         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
10953         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
10954         Remove i386/t-crtstuff from tmake_file.
10955         (i[34567]86-*-solaris2*): Remove t-svr4,
10956         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
10957         t-slibgcc-dummy.
10958         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
10959         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
10960         sparc/t-crtfm from tmake_file.
10961         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
10962         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
10963         Remove extra_parts.
10964         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
10965         * config/i386/t-nwld (SHLIB_LINK): Remove.
10966         * config/i386/t-rtems-i386: Rename to ...
10967         * config/i386/t-rtems: ... this.
10968         ($(T)crti.o, $(T)crtn.o): Remove.
10969         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
10970         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
10971         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
10972         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
10973         EXTRA_MULTILIB_PARTS): Remove.
10974         * config/sparc/t-sol2-64: Likewise.
10975         * config/sparc/t-sol2: Remove.
10976         * config/sparc/t-crtin: Remove.
10977         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
10978         * config/i386/gmon-sol2.c: Remove.
10979         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
10980         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
10981         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
10982         * config/i386/sol2-gc1.asm: Remove.
10983         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
10984         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
10985         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
10986         * config/t-slibgcc-sld: Remove.
10987
10988 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
10989
10990         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
10991         base_type_for_mode with op_mode instead of mode.
10992
10993 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
10994
10995         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
10996         Cortex-A15.
10997         * config/arm/arm-tune.md: Regenerate.
10998         * config/arm/arm-tables.opt: Regenerate.
10999         * config/arm/arm.c (FL_DIV): Rename...
11000         (FL_THUMB_DIV): ... to this.
11001         (FL_ARM_DIV): Define.
11002         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
11003         (arm_arch_hwdiv): Remove.
11004         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
11005         (arm_issue_rate): Add cortexr5.
11006         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
11007         __ARM_ARCH_EXT_IDIV__.
11008         (TARGET_IDIV): Define.
11009         (arm_arch_hwdiv): Remove.
11010         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
11011         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
11012         (divsi3, udivsi3): New patterns.
11013         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
11014         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
11015
11016 2011-06-01  Martin Jambor  <mjambor@suse.cz>
11017
11018         * ipa-utils.c (ipa_dfs_info): New field scc_no.
11019         * ipa-utils.c (searchc): Set scc_no.
11020
11021 2011-06-01  Martin Jambor  <mjambor@suse.cz>
11022
11023         * ipa-utils.c (searchc_env): New field allow_overwritable.
11024         (searchc): do not ignore edges to overwritable nodes if indicated
11025         by env->allow_overwritable.
11026         (ipa_reduced_postorder): Set env.allow_overwritable.
11027
11028 2011-06-01  Richard Guenther  <rguenther@suse.de>
11029
11030         * tree.c (free_lang_data): Do not reset boolean_type_node nor
11031         char_type_node.
11032         * lto-streamer.c (lto_record_common_node): Take node pointer,
11033         do not register types.
11034         (lto_preload_common_nodes): Explicitly skip preloading nodes
11035         that differ between frontends.
11036
11037 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
11038
11039         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
11040         NON_FLOAT_REGS.
11041
11042 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
11043
11044         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
11045         parameter value for dump. Dump cost on outermost call only.
11046         (rs6000_memory_move_cost): Dump cost on outermost call only.
11047
11048 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
11049
11050         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
11051         DW_OP_GNU_convert ops.
11052
11053         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
11054         cselib_preserve_constants.
11055         (cselib_lookup_1): If cselib_preserve_constants,
11056         a new VALUE is being created for REG and there is a VALUE for the
11057         same register in wider mode, add another loc with lowpart SUBREG of
11058         the wider VALUE.
11059         (cselib_subst_to_values): Handle ENTRY_VALUE.
11060         * var-tracking.c  (replace_expr_with_values): Return NULL for
11061         ENTRY_VALUE too.
11062         * dwarf2out.c (convert_descriptor_to_signed): New function.
11063         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
11064         instead of two shifts.
11065         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
11066         the right mode if needed.
11067         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
11068         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
11069         convert_descriptor_to_signed.
11070         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
11071         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
11072
11073         PR target/48688
11074         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
11075
11076 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11077
11078         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
11079         of X87MODEI12 and SWI48x instead of SSEMODEI24.
11080         (SWI248x): New mode iterator, rename from X87MODEI.
11081         (X87MODEI): Remove mode iterator.
11082         (X87MODEI12): Ditto.
11083         (SSEMODEI24): Ditto.
11084
11085 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11086
11087         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
11088         * doc/invoke.texi: Document max-vartrack-expr-depth.
11089         * var-tracking.c (EXPR_DEPTH): New.
11090         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
11091
11092 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11093
11094         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
11095         * config/i386/sse.md: Add n to negated FMA pattern names.
11096
11097 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11098
11099         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
11100
11101 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
11102
11103         * gengtype-state.c (read_state_params_structs): Initialize previous.
11104
11105 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11106
11107         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
11108         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
11109
11110 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
11111
11112         * config/i386/i386.md (*movtf_internal): Avoid allocating general
11113         registers.  Penalize F*r->o alternative to prevent partial memory
11114         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
11115         CONST_DOUBLE immediates when optimizing function for size.  Do not move
11116         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
11117         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
11118         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
11119         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
11120         alternatives.
11121         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
11122
11123         (fp_register_operand splitters): Use fp_register_operand
11124         constraint.  Do not use FP_REG_P in insn condition.
11125         (any_fp_register_operand splitters): Use any_fp_register_operand
11126         constraint.  Do not use ANY_FP_REG_P in insn condition.
11127
11128 2011-05-31  Jan Hubicka  <jh@suse.cz>
11129
11130         * cgraph.h (cgraph_inline_failed_t): Give enum a name
11131         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
11132         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
11133         (lto_output_edge): Use output_enum and var_len_unsigned.
11134         (lto_output_varpool_node): Likewise.
11135         (input_overwrite_node): Do not take resolution parameter;
11136         extract it from a bitpack.
11137         (input_node): Do not read resolution; use input_enum and
11138         var_len_unsigned.
11139         (input_varpool_node): Likewise.
11140         (input_edge): Likewise.
11141         (input_cgraph_1): Likewise.
11142
11143 2011-05-31  Richard Guenther  <rguenther@suse.de>
11144
11145         * gimple.c (gimple_register_canonical_type): Do not register
11146         any types via gimple_register_type.
11147
11148 2011-05-31  Jan Hubicka  <jh@suse.cz>
11149
11150         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
11151         of thunks.
11152
11153 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
11154
11155         PR rtl-optimization/49235
11156         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
11157         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
11158
11159 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
11160
11161         PR tree-optimization/49093
11162         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
11163         data references.
11164
11165 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
11166
11167         PR debug/49047
11168         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
11169         for concrete functions containing the code of cloned functions.
11170
11171 2011-05-31  Richard Guenther  <rguenther@suse.de>
11172
11173         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
11174         to ...
11175         (forward_propagate_into_comparison_1): ... this.
11176         (forward_propagate_comparison): Rename to ...
11177         (forward_propagate_into_comparison): ... this.  Split out
11178         real forward propagation code to ...
11179         (forward_propagate_comparison): ... this.
11180         (forward_propagate_into_gimple_cond): Remove looping.
11181         (forward_propagate_into_cond): Likewise.
11182         (simplify_not_neg_expr): Return whether we have done something.
11183         (simplify_gimple_switch): Likewise.
11184         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
11185         (ssa_forward_propagate_and_combine): ... this.  Re-structure
11186         to do a forward forward-propagation walk on BBs and a backward
11187         stmt combining walk on BBs.  Consistently re-scan changed statements.
11188         (pass_forwprop): Adjust.
11189
11190 2011-05-30  Ian Lance Taylor  <iant@google.com>
11191
11192         * godump.c (go_format_type): Correct length of name added to
11193         obstack for anonymous field.
11194
11195 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
11196
11197         PR target/49186
11198         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
11199         part of the second operand is 0.
11200
11201 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
11202
11203         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
11204         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
11205         to memory for !TARGET_MEMORY_MISMATCH_STALL.
11206         (*movdf_internal_rex64): Do not penalize F->r alternative.
11207         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
11208         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
11209         when optimizing function for size.  Do not move CONST_DOUBLEs
11210         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
11211         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
11212         SUBREGs.  Do not check for MEM_P operands in the insn condition,
11213         check for ANY_FP_REGNO_P instead.
11214         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
11215         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
11216         function for speed.
11217         * config/i386/i386.c (ix86_option_override_internal): Do not
11218         set TARGET_INTEGER_DFMODE_MOVES here.
11219
11220 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
11221
11222         PR target/49168
11223         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
11224
11225 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
11226
11227         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
11228         DW_TAG_rvalue_reference_type even for
11229         -gdwarf-4 -fno-debug-types-section.
11230
11231 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11232
11233         PR tree-optimization/46728
11234         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
11235         (build_and_insert_binop): New.
11236         (gimple_expand_builtin_pow): Reorder args for
11237         build_and_insert_call; use build_and_insert_binop; add more
11238         optimizations for fractional exponents.
11239
11240 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
11241
11242         PR bootstrap/49190
11243
11244         Revert:
11245         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11246
11247         * tree.h (struct tree_identifier): Inherit from tree_typed, not
11248         tree_common.
11249         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
11250         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
11251         TS_BASE instead of TS_COMMON.
11252         * varasm.c (assemble_name): Remove assert.
11253
11254 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
11255
11256         * config.gcc: Keep obselete list sorted.
11257
11258 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
11259             Eric Botcazou  <ebotcazou@adacore.com>
11260
11261         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
11262         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
11263         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
11264         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
11265         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
11266
11267 2011-05-30  Richard Guenther  <rguenther@suse.de>
11268
11269         * gimple.c (gimple_types_compatible_p_1): Compare record
11270         and union type members properly.
11271
11272 2011-05-30  Richard Guenther  <rguenther@suse.de>
11273
11274         PR tree-optimization/49210
11275         * ipa-split.c (split_function): Care for the case where the call
11276         result is not trivially convertible to the result holding variable.
11277
11278 2011-05-30  Richard Guenther  <rguenther@suse.de>
11279
11280         PR tree-optimization/49218
11281         * tree-vrp.c (adjust_range_with_scev): Properly check whether
11282         overflow occured.
11283
11284 2011-05-30  Richard Guenther  <rguenther@suse.de>
11285
11286         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
11287         New function split out from ...
11288         (forward_propagate_into_gimple_cond): ... here.  Adjust.
11289         (forward_propagate_into_cond): Likewise.
11290         (forward_propagate_comparison): Also propagate into
11291         comparisons on assignment RHS.  Change return value to
11292         behave similar to forward_propagate_into_cond.
11293         (tree_ssa_forward_propagate_single_use_vars): Handle
11294         strict-overflow warnings properly for forward_propagate_comparison.
11295
11296 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11297
11298         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
11299         from plugin linker.
11300         * configure: Regenerate.
11301
11302 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
11303
11304         PR tree-optimization/49199
11305         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
11306         non-reduction operands are either defined in the loop or by induction.
11307
11308 2011-05-29  Xinliang David Li  <davidxl@google.com>
11309
11310         * opts-global.c (handle_common_deferred_options): Handle new options.
11311         * passes.c (register_one_dump_file): Call register_pass_name.
11312         (execute_one_pass): Check explicit enable/disable flag.
11313         (passr_hash): New function.
11314         (passr_eq): Ditto.
11315         (register_pass_name): Ditto.
11316         (get_pass_by_name): Ditto.
11317         (pass_hash): Ditto.
11318         (pass_eq): Ditto.
11319         (enable_pass): Ditto.
11320         (disable_pass): Ditto.
11321         (is_pass_explicitly_enabled_or_disabled): Ditto.
11322
11323 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
11324
11325         * config/i386/i386.md (*movoi_internal_avx): Use
11326         standard_sse_constant_opcode for alternative 0.
11327         (*movti_internal_sse): Ditto.
11328         (*movti_internal_rex64): Use standard_sse_constant_opcode for
11329         alternative 2.
11330         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
11331         sselog1 type moves.
11332         (*movsi_internal): Ditto.
11333         (*movdi_internal): Ditto.  Add ssecvt type moves.
11334
11335 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
11336
11337         PR target/48830
11338         * rtlanal.c (simplify_subreg_regno): Adjust comment.
11339
11340 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
11341
11342         PR rtl-optimization/49095
11343         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
11344         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
11345
11346 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
11347
11348         PR target/43995
11349         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
11350         recurse_p argument.  Only follow register copies if it is set,
11351         and prevent mips_find_pic_call_symbol from recursing.
11352         (mips_find_pic_call_symbol): Add a recurse_p argument.
11353         Pass it to mips_pic_call_symbol_from_set.
11354         (mips_annotate_pic_calls): Update accordingly.
11355
11356 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
11357
11358         * emit-rtl.c (try_split): Use a loop to search for
11359         NOTE_INSN_CALL_ARG_LOCATIONs.
11360
11361 2011-05-29  Richard Guenther  <rguenther@suse.de>
11362
11363         PR tree-optimization/49217
11364         * ipa-pure-const.c (propagate_pure_const): Fix typos.
11365
11366 2011-05-28  Jan Hubicka  <jh@suse.cz>
11367
11368         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
11369         length.
11370         (string_slot_free): Remove
11371         (create_output_block): Initialize obstack.
11372         (destroy_output_block): Free obstack.
11373         (lto_string_index): Add PERSISTENT parameter; do not duplicate
11374         the string unless it needs to be added into the hash.
11375         (lto_output_string_with_length): Add persistent attribute;
11376         handle NULL strings.
11377         (lto_output_string): Add PERSISTENT parameter.
11378         (output_string_cst, output_identifier): Simplify.
11379         (lto_output_location_bitpack): Update.
11380         (lto_output_builtin_tree): Update.
11381         * lto-streamer.h (struct output_block): Add obstack.
11382         (lto_output_string, lto_output_string_with_length): Remove
11383         declarations; functions are static now.
11384
11385 2011-05-28  Jan Hubicka  <jh@suse.cz>
11386
11387         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
11388         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
11389         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
11390         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
11391         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
11392         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
11393         unpack_ts_decl_with_vis_value_fields,
11394         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
11395         lto_get_builtin_tree): Use enum and variable length i/o.
11396         * basic-block.h (profile_status_d): Add PROFILE_LAST.
11397         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
11398         New functions.
11399         (bp_pack_enum, bp_unpack_enum): New macros.
11400
11401 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
11402
11403         * genrecog.c: Remove redundant forward declarations.
11404
11405 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
11406
11407         * config.gcc: Deprecate mips*-*-openbsd*.
11408
11409 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
11410
11411         PR bootstrap/49195
11412         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
11413         for match_op_dup.
11414
11415 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
11416
11417         PR middle-end/48981
11418         * gengtype.c (vec_prefix_type): New function.
11419         (note_def_vec): Use vec_prefix_type and change the length
11420         attribute to be based on the prefix.
11421         * vec.c: Include coretypes.h before vec.h.
11422         (struct vec_prefix): Remove.
11423         (vec_gc_p_reserve): Change the offsetof to sizeof.
11424         (vec_gc_p_reserve_exact): Likewise.
11425         (vec_heap_p_reserve): Likewise.
11426         (vec_heap_p_reserve_exact): Likewise.
11427         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
11428         (vec_stack_p_reserve): Change the offsetof to sizeof.
11429         (vec_stack_p_reserve_exact): Likewise.
11430         * vec.h (struct vec_prefix): New struct definition.
11431         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
11432         (VEC_T_GTY(T,B)): Likewise.
11433         (DEF_VEC_FUNC_P(T)): Use prefix field.
11434         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
11435         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
11436
11437 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11438
11439         PR tree-optimization/46728
11440         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
11441         (powi_as_mults): Add gimple_set_location.
11442         (build_and_insert_call): New.
11443         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
11444         0.5, 0.25, 0.75, 1./3., or 1./6.
11445
11446 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
11447
11448         * doc/contrib.texi: Update copyright years.
11449         (Contributors): Add Zdenek Sojka.
11450
11451 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
11452
11453         * c-decl.c (c_push_function_context): Copy the current statement
11454         list stack.
11455         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
11456         (finish_struct): Call building_stmt_list_p instead of checking
11457         cur_stmt_list.
11458         * c-parser.c (c_parser_postfix_expression): Likewise.
11459         * c-typeck.c (c_end_compound_stmt): Likewise.
11460         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
11461         * tree-iterator.c (stmt_list_cache): Change to a VEC.
11462         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
11463         (free_stmt_list): Likewise.
11464         * tree.h (struct tree_statement_list): Include typed_tree instead
11465         of tree_common.
11466         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
11467         as TS_TYPED instead of TS_COMMON.
11468
11469 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11470             Uros Bizjak  <ubizjak@gmail.com>
11471
11472         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
11473         (HAVE_AS_IX86_TLSGDPTL): Define.
11474         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
11475         (HAVE_AS_IX86_TLSLDMPLT): Define.
11476         * configure: Regenerate.
11477         * config.in: Regenerate.
11478         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
11479         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
11480         TARGET_SUN_TLS, use @tlsgdplt or @plt.
11481         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
11482         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
11483         @tlsldmplt or @plt.
11484         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
11485
11486 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
11487
11488         * sched-int.h (struct _haifa_deps_insn_data): New members cond
11489         and reverse_cond.
11490         (INSN_COND, INSN_REVERSE_COND): New macros.
11491         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
11492         once.
11493         (sched_get_condition_with_rev): Cache the results, and look them up
11494         if possible.
11495         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
11496         are clobbered by the current insn.
11497         * target.def (exposed_pipline): New sched data hook.
11498         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
11499         * doc/tm.texi: Regenerate.
11500
11501 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11502
11503         PR tree-optimization/49170
11504         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
11505         sincos or cexp.
11506
11507 2011-05-27  Richard Guenther  <rguenther@suse.de>
11508
11509         PR middle-end/49189
11510         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
11511         of comparisons.
11512
11513 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
11514
11515         * haifa-sched.c (sched_scan_info): Remove.
11516         (schedule_block): Call sched_extend_luids rather than sched_init_luids
11517         with NULL args.
11518         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
11519         Remove functions.
11520         (sched_scan): Remove.
11521         (sched_extend_luids): Renamed from luids_extend_insn and no longer
11522         static.  All callers changed.
11523         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
11524         static.  All callers changed.
11525         (sched_init_luids): Remove all arguments except the first.  All
11526         callers changed.  Don't use sched_scan.
11527         (haifa_init_h_i_d): Likewise.
11528         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
11529         manually rather than using sched_init_luids.  Likewise with
11530         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
11531         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
11532         rather than sched_init_luids with NULL args.
11533         * sel-sched-ir.c (new_insns): Remove variable.
11534         (sched_scan): New static function, previously in haifa-sched.c.  Remove
11535         all arguments but the first two; all callers changed.
11536         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
11537         rather than sched_init_luids.
11538         (sel_init_bbs): Remove second argument.  All callers changed.
11539         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
11540         with NULL arguments.
11541         (create_insn_rtx_from_pattern): Likewise.
11542         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
11543         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
11544         (sched_init_insn_luid, sched_extend_luids): Declare.
11545         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
11546         declarations.
11547
11548 2011-05-27  Richard Guenther  <rguenther@suse.de>
11549
11550         PR middle-end/49177
11551         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
11552         A CMP B ? (T) true : (T) false for non-integral types T again.
11553
11554 2011-05-27  Jan Hubicka  <jh@suse.cz>
11555
11556         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
11557         so 0 means NULL string.
11558         (lto_output_string_with_length): ... here.
11559         (lto_output_string, output_string_cst, output_identifier): Update
11560         handling of NULL strings.
11561         (lto_output_location_bitpack): New function.
11562         (lto_output_location): Use it.
11563         (lto_output_tree_ref): Use output_record_start.
11564         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
11565         len values.
11566         * lto-streamer-in.c (string_for_index): Break out from ...; offset
11567         values by 1.
11568         (input_string_internal): ... here;
11569         (input_string_cst, input_identifier, lto_input_string): Update handling
11570         of NULL strings.
11571         (lto_input_location_bitpack): New function
11572         (lto_input_location): Use it.
11573         (unpack_ts_type_common_value_fields): Pack align & alias in var len
11574         values.
11575         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
11576         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
11577         (bp_pack_value): Sanity check the value range.
11578         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
11579         New functions.
11580         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
11581         New functions.
11582
11583 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
11584
11585         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
11586         call_arg_location instructions down the floor.
11587
11588 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
11589
11590         PR rtl-optimization/49154
11591         * ira.c (setup_pressure_classes): Process class without sublcasses
11592         as a candidate for pressure classes.
11593
11594 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
11595
11596         PR rtl-optimization/48575
11597         * genrecog.c (position_type): New enum.
11598         (position): New structure.
11599         (decision): Use position structure instead of a string.
11600         (root_pos, peep2_insn_pos_list): New variables.
11601         (next_position, compare_positions): New functions.
11602         (new_decision): Use position structures instead of strings.
11603         (maybe_both_true): Likewise.
11604         (change_state): Likewise.
11605         (write_tree): Likewise.
11606         (make_insn_sequence): Likewise.
11607
11608 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11609
11610         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
11611         TS_BASE instead of TS_COMMON.
11612         (find_decls_types_r): Check for TS_TYPED structure before looking at
11613         TREE_TYPE.
11614         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
11615         Add chain field.
11616         (BLOCK_CHAIN): Use new chain field.
11617
11618 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
11619
11620         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
11621         moves expensive on Power7 also.
11622
11623 2011-05-26  Richard Guenther  <rguenther@suse.de>
11624
11625         * fold-const.c (fold_unary_loc): Remove bogus code.
11626
11627 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
11628
11629         * tree.h (struct tree_identifier): Inherit from tree_typed, not
11630         tree_common.
11631         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
11632         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
11633         TS_BASE instead of TS_COMMON.
11634         * varasm.c (assemble_name): Remove assert.
11635
11636 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
11637
11638         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
11639         substituted first.
11640         * libgcc-std.ver: Delete file.
11641
11642 2011-05-26  Richard Guenther  <rguenther@suse.de>
11643
11644         PR tree-optimization/48702
11645         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
11646         only when we know the base address is within bounds.
11647         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
11648         assume the base address of TARGET_MEM_REFs is in bounds.
11649
11650 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11651
11652         PR target/49099
11653         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
11654         declaration in TARGET_SOLARIS.
11655
11656 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
11657
11658         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
11659         The instruction is then expanded explicitly.
11660         (supported_compare): Callable instruction.
11661         (compare): Likewise.
11662
11663 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
11664
11665         PR c++/49165
11666         * gimplify.c (shortcut_cond_r): Don't special case
11667         COND_EXPRs if they have void type on one of their arms.
11668
11669 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
11670
11671         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
11672         to reduce duplication, and to achieve a slightly more logical order
11673         of operations.
11674
11675 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
11676
11677         PR tree-optimization/49161
11678         * tree-vrp.c (struct case_info): New type.
11679         (compare_case_labels): Sort case_info structs instead of
11680         trees, and not primarily by CASE_LABEL uids but by
11681         label_for_block indexes.
11682         (find_switch_asserts): Put case labels into struct case_info
11683         array instead of TREE_VEC, adjust sorting, compare label_for_block
11684         values instead of CASE_LABELs.
11685
11686 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11687
11688         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
11689         ("orndi3_neon"): Likewise.
11690         ("bic<mode>3_neon"): Likewise.
11691
11692 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
11693
11694         PR tree-optimization/49038
11695         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
11696         Ensure at least one epilogue iteration if required by data
11697         accesses with gaps.
11698         * tree-vectorizer.h (struct _loop_vec_info): Add new field
11699         to mark loops that require peeling for gaps.
11700         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
11701         (vect_get_known_peeling_cost): Take peeling for gaps into
11702         account.
11703         (vect_transform_loop): Generate epilogue if required by data
11704         access with gaps.
11705         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
11706         loop as requiring an epilogue if there are gaps in the end of
11707         the strided group.
11708
11709 2011-05-25  Ian Lance Taylor  <iant@google.com>
11710
11711         * godump.c (go_format_type): Output the first field with a usable
11712         Go type, if any.
11713
11714 2011-05-25  Ian Lance Taylor  <iant@google.com>
11715
11716         * godump.c (go_format_type): Check for invalid type names, pointer
11717         target types, and struct field types.
11718
11719 2011-05-25  Jason Merrill  <jason@redhat.com>
11720
11721         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
11722
11723 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
11724
11725         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
11726
11727 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11728
11729         * config/i386/i386.md (*movqi_extv_1)): Put back
11730         "register_operand" check in "type" calculation.
11731         (*movqi_extzv_2): Likewise.
11732
11733 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11734
11735         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
11736
11737 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
11738
11739         PR bootstrap/49160
11740         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
11741         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
11742         __divxc3, __divtc3): Wrap definitions in #ifndef.
11743
11744 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11745
11746         PR target/49142
11747         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
11748         "register_operand" check and replace q_regs_operand with
11749         QIreg_operand in "type" calculation.
11750         (*movqi_extv_1): Likewise.
11751         (*movqi_extzv_2_rex64): Likewise.
11752         (*movqi_extzv_2): Likewise.
11753
11754         * config/i386/predicates.md (QIreg_operand): New.
11755
11756 2011-05-25  Richard Guenther  <rguenther@suse.de>
11757
11758         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
11759         type-based offset disambiguation, streamline MEM_REF and
11760         TARGET_MEM_REF handling.
11761
11762 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11763
11764         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
11765         (bdesc_special_args): Add pause intrinsic.
11766
11767         * config/i386/i386.md (UNSPEC_PAUSE): New.
11768         (pause): Likewise.
11769         (*pause): Likewise.
11770         * config/i386/ia32intrin.h (__pause): Likewise.
11771
11772         * doc/extend.texi (X86 Built-in Functions): Add documentation for
11773         pause intrinsic.
11774
11775 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11776
11777         PR tree-optimization/46728
11778         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
11779         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
11780
11781 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
11782
11783         * tree.h (struct tree_exp): Inherit from struct tree_typed.
11784         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
11785         instead of TS_COMMON.
11786
11787 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
11788
11789         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
11790         LIBGCC2_GNU_PREFIX is defined.
11791         (__N): New macro.
11792         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
11793         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
11794         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
11795         __clz_tab): Define using __N.
11796         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
11797         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
11798         * target.def (libfunc_gnu_prefix): New hook.
11799         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
11800         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
11801         * doc/tm.texi: Regenerate.
11802         * system.h (LIBGCC2_GNU_PREFIX): Poison.
11803         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
11804         account.
11805         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
11806         (init_optabs): Likewise for the bswap libfuncs.
11807         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
11808         and divide.
11809         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
11810         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
11811         * libgcc-std.ver: Remove.
11812         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
11813         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
11814         libgcc-std.ver.
11815         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
11816         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
11817         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
11818         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
11819         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
11820         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
11821         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
11822         * config/fixed-bit.h (FIXED_OP): Define differently depending on
11823         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
11824         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
11825
11826 2011-05-25  Jan Hubicka  <jh@suse.cz>
11827
11828         * lto-streamer-out.c (output_record_start): Use lto_output_enum
11829         (lto_output_tree): Use output_record_start.
11830         * lto-streamer-in.c (input_record_start): Use lto_input_enum
11831         (lto_get_pickled_tree): Use input_record_start.
11832         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
11833         (lto_value_range_error): New function.
11834         * lto-streamer.h (lto_value_range_error): Declare.
11835         (lto_output_int_in_range, lto_input_int_in_range): New functions.
11836         (lto_output_enum, lto_input_enum): New macros.
11837
11838 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
11839
11840         * common.opt (flag_stack_usage_info): New variable.
11841         (-Wstack-usage): New option.
11842         * doc/invoke.texi (Warning options): Document -Wstack-usage.
11843         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
11844         <OPT_fstack_usage>: Likewise.
11845         * toplev.c (output_stack_usage): Handle -Wstack-usage.
11846         * calls.c (expand_call): Test flag_stack_usage_info variable instead
11847         of flag_stack_usage.
11848         (emit_library_call_value_1): Likewise.
11849         * explow.c (allocate_dynamic_stack_space): Likewise.
11850         * function.c (instantiate_virtual_regs ): Likewise.
11851         (prepare_function_start): Likewise.
11852         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
11853         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
11854         * config/arm/arm.c (arm_expand_prologue): Likewise.
11855         (thumb1_expand_prologue): Likewise.
11856         * config/avr/avr.c (expand_prologue): Likewise.
11857         * config/i386/i386.c (ix86_expand_prologue): Likewise.
11858         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
11859         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
11860         * config/mips/mips.c (mips_expand_prologue): Likewise.
11861         * config/pa/pa.c (hppa_expand_prologue): Likewise.
11862         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
11863         * config/s390/s390.c (s390_emit_prologue): Likewise.
11864         * config/sh/sh.c (sh_expand_prologue): Likewise.
11865         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
11866         * config/spu/spu.c (spu_expand_prologue): Likewise.
11867
11868 2011-05-25  Richard Guenther  <rguenther@suse.de>
11869
11870         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
11871         (gimple_canonical_types_compatible_p): Likewise.
11872
11873 2011-05-25  Jan Hubicka  <jh@suse.cz>
11874
11875         PR middle-end/49062
11876         * ipa.c (function_and_variable_visibility): Only add to same
11877         comdat group list if DECL_ONE_ONLY.
11878
11879 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
11880
11881         PR rtl-optimization/49014
11882         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
11883
11884 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
11885
11886         PR target/49128
11887         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
11888
11889 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
11890
11891         PR rtl-optimization/48757
11892         * ira-build.c (loop_with_eh_edge_p): Rename to
11893         loop_with_complex_edge_p, check edges on complexity, make function
11894         conditional.
11895         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
11896         conditional.
11897
11898 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
11899
11900         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
11901         force flag_ira_share_save_slots to 0.
11902
11903 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
11904
11905         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
11906         (vt_initialize): Set PROLOGUE_BB unconditionally.
11907         Add block comment about CFA_BASE_RTX machinery.
11908         Reset FP_CFA_OFFSET to -1 on all invalid paths.
11909         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
11910
11911 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
11912
11913         PR objc/48187
11914         * c-parser.c (c_parser_objc_class_instance_variables): More robust
11915         parsing of syntax error in ObjC instance variable lists.  In
11916         particular, avoid an infinite loop if there is a stray ']'.
11917         Updated error message.
11918
11919 2011-05-24  Ian Lance Taylor  <iant@google.com>
11920
11921         * godump.c (go_define): Don't accept a string immediately after
11922         another operand.
11923
11924 2011-05-24  Ian Lance Taylor  <iant@google.com>
11925
11926         * godump.c (struct godump_container): Add invalid_hash field.
11927         (go_format_type): Return false if type is found in invalid_hash.
11928         (go_output_typedef): Add invalid type to invalid_hash.
11929         (go_finish): Create and delete invalid_hash.
11930
11931 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11932
11933         PR tree-optimization/46728
11934         * tree-ssa-math-opts.c (powi_table): New.
11935         (powi_lookup_cost): New.
11936         (powi_cost): New.
11937         (powi_as_mults_1): New.
11938         (powi_as_mults): New.
11939         (gimple_expand_builtin_powi): New.
11940         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
11941         (gate_cse_sincos): Remove sincos/cexp restriction.
11942
11943 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11944
11945         PR target/3746
11946         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
11947         mips-tdump native.
11948         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
11949         * mips-tdump.c: Likewise.
11950
11951 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
11952
11953         PR target/49128
11954         * config/i386/driver-i386.c (host_detect_local_cpu): Always
11955         add -mno-XXX.  Handle FMA.
11956
11957 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
11958
11959         PR rtl-optimization/48633
11960         * ira-build.c (loop_with_eh_edge_p): New function.
11961         (mark_loops_for_removal): Use it.
11962
11963 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
11964
11965         PR rtl-optimization/48971
11966         * ira.c (setup_pressure_classes): Don't check register move cost
11967         for classes with one registers.  Don't add pressure class if there
11968         is a pressure class with the same available hard registers.
11969         Check contains_reg_of_mode.  Fix a typo in collecting
11970         temp_hard_regset.  Ignore hard registers not belonging to a class.
11971
11972 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
11973
11974         PR target/49133
11975         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
11976
11977 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
11978             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11979
11980         PR gcov-profile/48845
11981         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
11982
11983 2011-05-24  Richard Guenther  <rguenther@suse.de>
11984
11985         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
11986         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
11987         (gimple_types_compatible_p_1): Adjust.
11988         (iterative_hash_canonical_type): Do not bother about complete vs.
11989         incomplete types.
11990         (gimple_canonical_types_compatible_p): Likewise.
11991
11992 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11993
11994         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
11995
11996 2011-05-24  Richard Guenther  <rguenther@suse.de>
11997
11998         PR bootstrap/49078
11999         * gimple.c (gimple_register_canonical_type): Revert
12000         previous change.
12001         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
12002         does not for a tree for the case where it matters.  Cache
12003         pointer-type alias-sets.
12004
12005 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
12006
12007         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
12008         (OBJS): Remove options.o, opts-common.o and prefix.o.
12009         (OBJS-libcommon-target): New.
12010         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
12011         (BACKEND): Include libcommon-target.a.
12012         (MOSTLYCLEANFILES): Include libcommon-target.a.
12013         (libcommon-target.a): New.
12014         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
12015         prefix.o.
12016
12017 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
12018
12019         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
12020         parts of output shared with the driver.
12021         * optc-gen.awk: Don't generate parts of output not shared with the
12022         driver.
12023         * opth-gen.awk: Remove GCC_DRIVER conditionals.
12024         * doc/options.texi (SourcerInclude): Mention options-save.c.
12025         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
12026         (OBJS): Add options-save.o.
12027         (options-save.c, options-save.o): New.
12028         (options.o): Update dependencies.
12029         (gcc-options.o): Remove.
12030         (mostlyclean): Remove options-save.c.
12031
12032 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12033
12034         PR debug/49032
12035         * dbxout.c: Include cgraph.h.
12036         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
12037         and without value expr, return NULL if no varpool node exists for
12038         it or if it is not needed.
12039         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
12040
12041         PR c/49120
12042         * c-decl.c (start_decl): Convert expr to void_type_node.
12043
12044 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
12045
12046         PR rtl-optimization/48826
12047         * emit-rtl.c (try_split): When splitting a call that is followed
12048         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
12049
12050 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12051
12052         * cfgexpand.c (expand_debug_expr): For unused non-addressable
12053         parameters passed in memory prefer using DECL_INCOMING_RTL over
12054         the pseudos it will be copied into.
12055
12056 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
12057
12058         PR target/47315
12059         * config/i386/i386.c (ix86_option_override_internal): Save the
12060         initial options after checking vzeroupper.
12061
12062 2011-05-23  David Li  <davidxl@google.com>
12063
12064         PR tree-optimization/48988
12065         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
12066         Initialize has_valid_pred for each pred chain.
12067
12068 2011-05-23  Richard Guenther  <rguenther@suse.de>
12069
12070         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
12071         (iterative_hash_gimple_type): Always hash type names.
12072
12073 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
12074
12075         * c-typeck.c (build_function_call_vec): Tweak call to
12076         check_function_arguments.
12077
12078 2011-05-23  Richard Guenther  <rguenther@suse.de>
12079
12080         PR tree-optimization/49115
12081         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
12082         is not necessarily carried out, do not claim it kills the ref.
12083         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
12084
12085 2011-05-23  Richard Guenther  <rguenther@suse.de>
12086
12087         PR middle-end/15419
12088         * builtins.c (fold_builtin_memory_op): Be less restrictive about
12089         what pointer types we accept for folding.
12090
12091 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12092
12093         * gthr-gnat.c: Remove.
12094         * gthr-gnat.h: Remove.
12095         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
12096         * config/t-freebsd (LIB2ADDEH): Likewise.
12097         * config/t-linux (LIB2ADDEH): Likewise.
12098         * config/t-sol2 (LIB2ADDEH): Likewise.
12099         * config/ia64/t-vms (LIB2ADDEH): Likewise.
12100         * configure.ac (target_thread_file): Remove gnat handling.
12101         * configure: Regenerate.
12102         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
12103
12104 2011-05-23  Tristan Gingold  <gingold@adacore.com>
12105             Eric Botcazou  <ebotcazou@adacore.com>
12106
12107         * gcov.c (create_file_names): If no object directory is specified,
12108         keep the directory of the file.
12109
12110 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12111
12112         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
12113         * configure: Regenerate.
12114
12115 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
12116
12117         PR middle-end/48973
12118         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
12119         failed and the comparison has a single bit signed type, use
12120         constm1_rtx instead of const1_rtx for true value.
12121         (do_store_flag): If ops->type is single bit signed type, disable
12122         signel bit test optimization and pass -1 instead of 1 as last
12123         parameter to emit_store_flag_force.
12124
12125 2011-05-23  Tom de Vries  <tom@codesourcery.com>
12126
12127         PR target/45098
12128         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
12129         function.
12130         (infer_loop_bounds_from_undefined): Use new function.
12131
12132 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
12133
12134         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
12135         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
12136         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
12137         and -O0 otherwise.
12138         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
12139
12140 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12141
12142         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
12143         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
12144         returns true.
12145
12146 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
12147
12148         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
12149
12150 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12151
12152         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
12153         UNSPEC_MOVE_PIC pattern.
12154
12155 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
12156
12157         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
12158         (sparc-*-rtems*): Likewise.
12159         (sparc64-*-elf*): Likewise.
12160         (sparc64-*-rtems*): Likewise.
12161         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
12162         * config/sparc/t-crtin: New file.
12163         * config/sparc/t-sol2 (crti.o): Delete rule.
12164         (crtn.o): Likewise.
12165         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
12166         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
12167         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
12168         (ENDFILE_SPEC): Add crtn.o.
12169
12170 2011-05-22  Tom de Vries  <tom@codesourcery.com>
12171
12172         PR middle-end/48689
12173         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
12174         CODE_CONTAINS_STRUCT (TS_COMMON).
12175
12176 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
12177
12178         PR middle-end/49029
12179         * expmed.c (extract_fixed_bit_field): Test whether target can be used
12180         only after deciding which mode to use.
12181
12182 2011-05-22  Tom de Vries  <tom@codesourcery.com>
12183
12184         PR target/45098
12185         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
12186         for call to get_shiftadd_cost.
12187
12188 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
12189
12190         PR target/49104
12191         * config/i386/cpuid.h (bit_MMXEXT): New define.
12192
12193 2011-05-22  Nick Clifton  <nickc@redhat.com>
12194
12195         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
12196         initialisation of non-existant args[2] element.  Use args[] array
12197         not arg[] array to pass arguments to build_function_type_list.
12198
12199 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
12200
12201         PR tree-optimization/49087
12202         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
12203
12204 2011-05-21  Jason Merrill  <jason@redhat.com>
12205
12206         PR c++/49092
12207         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
12208         static storage duration.
12209
12210 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
12211
12212         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
12213         frame pointer.
12214
12215 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
12216
12217         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
12218         false if there are call-saved registers here...
12219         (sparc_can_use_return_insn_p): ...but here instead.
12220         (save_or_restore_regs): Fix thinko.
12221         (sparc_expand_prologue): Use current_function_is_leaf.
12222         (sparc_frame_pointer_required): Likewise.
12223
12224 2011-05-21  Nick Clifton  <nickc@redhat.com>
12225
12226         PR target/49098
12227         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
12228
12229 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
12230
12231         * gengtype.c (walk_type): Implemented "atomic" GTY option.
12232         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
12233
12234 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
12235
12236         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
12237         * optc-gen.awk: Move common code to opt-read.awk.
12238         * opth-gen.awk: Likewise.
12239         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
12240
12241 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
12242
12243         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
12244
12245 2011-05-20  Tom de Vries  <tom@codesourcery.com>
12246
12247         PR target/45098
12248         * tree-ssa-loop-ivopts.c: Include expmed.h.
12249         (get_shiftadd_cost): New function.
12250         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
12251
12252 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
12253
12254         PR bootstrap/49086
12255         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
12256         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
12257
12258 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
12259
12260         * Makefile.in: Update comment referring to $(OBJS-common).
12261
12262 2011-05-20  Ian Lance Taylor  <iant@google.com>
12263
12264         * godump.c (go_output_typedef): Put enum constants in the macro
12265         hash table to avoid duplicate Go const definitions.
12266
12267 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
12268
12269         * Makefile.in (LIBDEPS): Add libcommon.a.
12270         (LIBS): Likewise.
12271         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
12272         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
12273         pretty-print.o and version.o.
12274         (OBJS-libcommon): New.
12275         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
12276         (BACKEND): Add libcommon.a.
12277         (MOSTLYCLEANFILES): Likewise.
12278         (libcommon.a): New.
12279         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
12280         (cpp$(exeext)): Likewise.
12281         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
12282         pretty-print.o and input.o.
12283         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
12284         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
12285         (errors.o): Remove.
12286         (mips-tfile): Don't explicitly use version.o.
12287         (mips-tdump): Likewise.
12288         (gcov.o): Depend on $(DIAGNOSTIC_H).
12289         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
12290         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
12291         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
12292         * gcov-dump.c: Include intl.h and diagnostic.h.
12293         (main): Initialize diagnostics.
12294         * gcov.c: Include diagnostic.h.
12295         (fnotice): Remove.
12296         (main): Initialize diagnostics.
12297         * lto-wrapper.c: Include diagnostic.h.
12298         (main): Initialize diagnostics.
12299
12300 2011-05-20  Michael Matz  <matz@suse.de>
12301
12302         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
12303
12304 2011-05-20  Michael Matz  <matz@suse.de>
12305             Richard Guenther  <rguenther@suse.de>
12306
12307         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
12308         use lto_streamer_cache_append directly instead of returning a VEC.
12309         (preload_common_node): Remove.
12310         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
12311         track seen nodes.
12312         (lto_streamer_cache_create): Call lto_preload_common_nodes.
12313
12314 2011-05-20  Richard Guenther  <rguenther@suse.de>
12315
12316         PR tree-optimization/49079
12317         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
12318         MEM_REFs correctly for the trailing array access detection.
12319         Special case constants the same way as decls for overall size
12320         constraining.
12321
12322 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
12323
12324         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
12325         argument expansion.
12326
12327 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
12328
12329         PR tree-optimization/49073
12330         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
12331         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
12332         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
12333
12334 2011-05-20  Richard Guenther  <rguenther@suse.de>
12335
12336         PR middle-end/48849
12337         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
12338         of pointer types the same way the middle-end does.
12339
12340 2011-05-20  Richard Guenther  <rguenther@suse.de>
12341
12342         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
12343         or pointer-to chains.  Delay all fixup to uniquify_nodes.
12344
12345 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
12346
12347         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
12348         (fma4_fmaddsub): Likewise
12349
12350 2011-05-19  Jan Hubicka  <jh@suse.cz>
12351
12352         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
12353         (GIMPLE_TYPE_PAIR_SIZE): New macro.
12354         (type_pair_cache): New static var.
12355         (lookup_type_pair): Use fixed sized custom hash; make inline.
12356         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
12357         calls of lookup_type_pair.
12358         (print_gimple_types_stats): Remove cache stats.
12359         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
12360         and gtc_ob.
12361
12362 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
12363
12364         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
12365         when TARGET_RDRND is active.
12366         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
12367         Generate dummy SImode target register when target is NULL.
12368
12369 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
12370
12371         * config/arm/arm-fpus.def: New.
12372         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
12373         arm-fpus.def.
12374         * config/arm/arm-tables.opt: Regenerate.
12375         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
12376         (arm_option_override): Don't decode FPU name to string here.
12377         * config/arm/arm.opt (mfpu=): Use Enum.
12378         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
12379         Update dependencies.
12380
12381 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
12382
12383         * collect2.c: Include diagnostic.h.
12384         (fatal_perror, fatal, error, fancy_abort): Remove.
12385         (main): Set progname.  Call xmalloc_set_program_name and
12386         diagnostic_initialize.
12387         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
12388         scan_libraries, resolve_lib_name): Call fatal_error instead of
12389         fatal and fatal_perror.
12390         * collect2.h (error, fatal, fatal_perror): Don't declare.
12391         * tlink.c: Include diagnostic-core.h.
12392         (recompile_files): Call fatal_error instead of fatal_perror.
12393         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
12394         pretty-print.o and input.o.
12395         (collect2.o, tlink.o): Update dependencies.
12396
12397 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12398
12399         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
12400
12401 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12402
12403         PR target/40483
12404         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
12405         COMDAT group syntax, both SPARC and x86 variants.
12406         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
12407         * configure: Regenerate.
12408         * config/sol2.h (TARGET_SOLARIS): Define.
12409         (PUSHSECTION_FORMAT): Remove.
12410         (SECTION_NAME_FORMAT): Define.
12411         * config/sol2.c: Include hashtab.h.
12412         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
12413         expansion, using SECTION_NAME_FORMAT.
12414         (solaris_comdat_htab): New variable.
12415         (struct comdat_entry): Define.
12416         (comdat_hash): New function.
12417         (comdat_eq): New function.
12418         (solaris_elf_asm_comdat_section): New function.
12419         (solaris_define_comdat_signature): New function.
12420         (solaris_code_end): New function.
12421         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
12422         (solaris_code_end): Declare.
12423         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
12424         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
12425         solaris_code_end.
12426         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
12427         Remove ATTRIBUTE_UNUSED.
12428         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
12429         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
12430         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
12431         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
12432         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
12433         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
12434         (PUSHSECTION_FORMAT): Remove.
12435         (SECTION_NAME_FORMAT): Redefine.
12436
12437 2011-05-19  Kai Tietz  <ktietz@redhat.com>
12438
12439         * tree-cfg.c (verify_gimple_assign_binary): Barf on
12440         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
12441         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
12442
12443 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
12444             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12445
12446         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
12447
12448 2011-05-19  Richard Guenther  <rguenther@suse.de>
12449
12450         PR middle-end/48985
12451         * tree-object-size.c (addr_object_size): If the pointed-to
12452         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
12453
12454 2011-05-19  Richard Guenther  <rguenther@suse.de>
12455
12456         * gimple.c (gimple_types_compatible_p_1): Compare names of
12457         the types themselves.
12458         (iterative_hash_gimple_type): And hash them that way.
12459         (gimple_register_type_1): If we register a main variant properly
12460         initialize the leader to ourselves.
12461
12462 2011-05-19  Tom de Vries  <tom@codesourcery.com>
12463
12464         PR target/45098
12465         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
12466         get_loop_invariant_expr_id.
12467         (get_loop_invariant_expr_id): Use get_expr_id.
12468         (parm_decl_cost): New function.
12469         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
12470         Improve bound cost estimation.  Use different inv_expr_id for elim and
12471         express cases.
12472
12473 2011-05-19  Tom de Vries  <tom@codesourcery.com>
12474
12475         PR target/45098
12476         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
12477         cost_base.cost == 0.
12478
12479 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
12480
12481         PR target/49002
12482         * config/i386/sse.md
12483         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
12484         load cast.
12485
12486 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
12487
12488         PR tree-optimization/49039
12489         * tree-vrp.c (extract_range_from_binary_expr): For
12490         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
12491         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
12492
12493 2011-05-18  Tom de Vries  <tom@codesourcery.com>
12494
12495         PR target/45098
12496         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
12497
12498 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
12499
12500         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
12501         (*tls_global_dynamic_64): Ditto.
12502         (*tls_local_dynamic_base_32_gnu): Ditto.
12503         (*tls_local_dynamic_base_64): Ditto.
12504         (tls_initial_exec_64_sun): Ditto.
12505
12506 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
12507
12508         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
12509         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
12510         bf592-none.
12511         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
12512         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
12513         * config/bfin/bfin.c (bfin_cpus): Add bf592.
12514         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
12515         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
12516         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
12517         * config/bfin/elf.h (LIB_SPEC): Add bf592.
12518
12519 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
12520
12521         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
12522         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
12523         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
12524         target_thread_pointer, arm_structure_size_boundary, struct
12525         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
12526         struct abi_name, arm_all_abis): Remove.
12527         (arm_option_override) Don't process most enumerated option values here.
12528         Don't process target_fpe_name here.  Work with integer not string for
12529         structure size boundary; use separate diagnostics for each case.
12530         * config/arm/arm.h (enum float_abi_type, enum
12531         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
12532         to arm-opts.h.
12533         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
12534         arm_structure_size_boundary): Remove.
12535         * config/arm/arm.opt (mabi=): Use Enum and Init.
12536         (arm_abi_type): New Enum and EnumValue entries.
12537         (mfloat-abi=): Use Enum and Init.
12538         (float_abi_type): New Enum and EnumValue entries.
12539         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
12540         (mfp16-format=): Use Enum and Init.
12541         (arm_fp16_format_type): New Enum and EnumValue entries.
12542         (mstructure-size-boundary=): Use UInteger and Init.
12543         (mtp=): Use Enum and Init.
12544         (arm_tp_type): New Enum and EnumValue entries.
12545
12546 2011-05-18  Richard Guenther  <rguenther@suse.de>
12547
12548         PR tree-optimization/49018
12549         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
12550         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
12551         gimple_has_side_effects.
12552
12553 2011-05-18  Richard Guenther  <rguenther@suse.de>
12554
12555         * gimple.c (gimple_register_type_1): New function, split out from ...
12556         (gimple_register_type): ... here.  Avoid infinite recursion.
12557
12558 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
12559
12560         PR tree-optimization/41881
12561         * tree-vectorizer.h (struct _loop_vec_info): Add new field
12562         reduction_chains along with a macro for its access.
12563         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
12564         (destroy_loop_vec_info): Free reduction chains.
12565         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
12566         (vect_is_slp_reduction): New function.
12567         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
12568         (vect_create_epilog_for_reduction): Support SLP reduction chains.
12569         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
12570         definition types for reduction chains.
12571         (vect_supported_load_permutation_p): Don't allow permutations for
12572         reduction chains.
12573         (vect_analyze_slp_instance): Support reduction chains.
12574         (vect_analyze_slp): Try to build SLP instance from reduction chains.
12575         (vect_get_constant_vectors):  Handle reduction chains.
12576         (vect_schedule_slp_instance): Mark the first statement of the
12577         reduction chain as reduction.
12578
12579 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
12580
12581         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
12582         names for group elements access.
12583         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
12584         reduction chains as well.  Remove data reference and interleaving
12585         related words from the fields names.
12586         * tree-vect-loop.c (vect_transform_loop): Use new names for group
12587         elements access.
12588         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
12589         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
12590         vect_update_interleaving_chain, vect_same_range_drs,
12591         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
12592         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
12593         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
12594         vect_analyze_group_access, vect_analyze_data_ref_access,
12595         vect_create_data_ref_ptr, vect_transform_strided_load,
12596         vect_record_strided_load_vectors): Likewise.
12597         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
12598         vect_model_load_cost, vectorizable_store, vectorizable_load,
12599         vect_remove_stores, new_stmt_vec_info): Likewise.
12600         * tree-vect-slp.c (vect_build_slp_tree,
12601         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
12602
12603 2011-05-18  Richard Guenther  <rguenther@suse.de>
12604
12605         PR middle-end/48989
12606         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
12607         operand verification.
12608         (verify_gimple_assign_binary): Likewise.
12609         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
12610         to non-1-precision BOOLEAN_TYPEs.
12611
12612 2011-05-18  Tom de Vries  <tom@codesourcery.com>
12613
12614         PR target/45098
12615         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
12616
12617 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
12618
12619         PR tree-optimization/49000
12620         * tree-ssa.c (execute_update_addresses_taken): Call
12621         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
12622         be rewritten and decl has been marked for renaming, reset
12623         the debug stmt.
12624
12625 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
12626
12627         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
12628         enum_opts_set when testing if attributes have set -mfpmath=.
12629
12630 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
12631
12632         * config/mips/mips.c (mips_handle_option): Remove unused variable.
12633
12634 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
12635
12636         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
12637         info->entry with 0
12638         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
12639         id.transform_lang_insert_block with NULL.
12640
12641 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
12642
12643         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
12644         (output_fp_compare): Change args 3 and 4 to bool.
12645         (ix86_expand_call): Change arg 6 to bool.
12646         (ix86_attr_length_immediate_default): Change arg 2 to bool.
12647         (ix86_attr_length_vex_default): Change arg 3 to bool.
12648         * config/i386/i386.md: Update all uses.
12649         * config/i386/i386.c: Ditto.
12650         (ix86_flags_dependent): Change return type to bool.
12651
12652 2011-05-17  Richard Guenther  <rguenther@suse.de>
12653
12654         * gimple.c (type_hash_pair_compare): Fix comparison.
12655
12656 2011-05-17  Richard Guenther  <rguenther@suse.de>
12657
12658         * gimple.c (iterative_hash_gimple_type): Simplify singleton
12659         case some more, fix final hash value of the non-singleton case.
12660
12661 2011-05-17  Richard Guenther  <rguenther@suse.de>
12662
12663         PR bootstrap/49013
12664         Revert
12665         2011-05-16  Richard Guenther  <rguenther@suse.de>
12666
12667         * gimple.c (gimple_types_compatible_p_1): Use names of the
12668         type itself, not its main variant.
12669         (iterative_hash_gimple_type): Likewise.
12670
12671 2011-05-17  Richard Guenther  <rguenther@suse.de>
12672
12673         * gimple.c (gimple_register_canonical_type): Use the main-variant
12674         leader for computing the canonical type.
12675
12676 2011-05-17  Nick Clifton  <nickc@redhat.com>
12677
12678         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
12679         moves.
12680
12681         * config/rx/rx.md: Add peephole to remove redundant extensions
12682         after loads.
12683         (bitset_in_memory): Use rx_restricted_mem_operand.
12684         (bitinvert_in_memory): Likewise.
12685         (bitclr_in_memory): Likewise.
12686
12687 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
12688             Nick Clifton  <nickc@redhat.com>
12689
12690         * config/rx/rx.md: Add peepholes to match a register move followed
12691         by a comparison of the moved register.  Replace these with an
12692         addition of zero that does both actions in one instruction.
12693
12694 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
12695
12696         PR target/48986
12697         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
12698         predicate to allow CONST_INT.
12699         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
12700
12701 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
12702
12703         * opts-common.c (opt_enum_arg_to_value): New.
12704         * opts.h (opt_enum_arg_to_value): Declare.
12705         * config/i386/i386.opt (fpmath): Remove.
12706         (mfpmath=): Use Enum, Init and Save.
12707         (fpmath_unit): New Enum and EnumValue entries.
12708         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
12709         name for function fpmath state.
12710         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
12711         * config/i386/i386.c: Include diagnostic.h.
12712         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
12713         (ix86_target_string): Take enum fpmath_unit value instead of string.
12714         (ix86_debug_options): Update call to ix86_target_string.
12715         (ix86_option_override_internal): Don't process fpmath strings here.
12716         (x86_function_specific_save, ix86_function_specific_restore):
12717         Don't handle fpmath state specially.
12718         (ix86_function_specific_print): Pass fpmath state to
12719         ix86_target_string instead of printing in this function.
12720         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
12721         Handle enum attributes.
12722         (IX86_ATTR_ENUM, ix86_opt_enum): New.
12723         (ix86_valid_target_attribute_tree): Update option_strings
12724         handling.  Handle fpmath as enum option.
12725         (ix86_can_inline_p): Update field names for function fpmath state.
12726         (ix86_expand_builtin): Update call to ix86_target_string.
12727         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
12728         (ix86_fpmath): Remove.
12729         * config/i386/t-i386 (i386.o): Update dependencies.
12730
12731 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
12732
12733         PR preprocessor/48677
12734         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
12735         from decoded_options[0], not from itself.
12736
12737 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
12738
12739         * config/i386/constraints.md (z): New constraint.
12740         * config/i386/i386.c (c): New mode attribute.
12741         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
12742         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
12743         constraint for operand 0.
12744         (*call_vzeroupper): Ditto.
12745         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
12746         (*call_rex64_ms_sysv_vzeroupper): Ditto.
12747         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
12748         Use "lzm" constraint for operand 0.
12749         (*call_pop_vzeroupper): Ditto.
12750         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
12751         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
12752         constraint for operand 0.
12753         (*sibcall_vzeroupper): Ditto.
12754         (*sibcall_rex64_ms_sysv): Ditto.
12755         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
12756         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
12757         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
12758         (*sibcall_pop_vzeroupper): Ditto.
12759         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
12760         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
12761         mode iterator.  Use "<c>zm" constraint for operand 1.
12762         (*call_value_vzeroupper): Ditto.
12763         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
12764         for operand 1.
12765         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
12766         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
12767         *call_value_pop_1.  Use "lzm" constraint for operand 1.
12768         (*call_value_pop_vzeroupper): Ditto.
12769         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
12770         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
12771         mode iterator.  Use "Uz" constraint for operand 1.
12772         (*sibcall_value_vzeroupper): Ditto.
12773         (*sibcall_value_rex64_ms_sysv): Ditto.
12774         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
12775         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
12776         constraint for operand 1.
12777         (*sibcall_value_pop_vzeroupper): Ditto.
12778         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
12779         and "z" constraint for operand 2.
12780         (*tls_global_dynamic_32_gnu): Ditto.
12781         (*tls_local_dynamic_base_32_gnu): Ditto.
12782         (*tls_local_dynamic_base_64): Ditto.
12783         (*tls_local_dynamic_32_once): Ditto.
12784         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
12785         Update all callers.
12786         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
12787
12788 2011-05-16  Richard Guenther  <rguenther@suse.de>
12789
12790         * gimple.c (gimple_types_compatible_p_1): Use names of the
12791         type itself, not its main variant.
12792         (iterative_hash_gimple_type): Likewise.
12793
12794 2011-05-16  Richard Guenther  <rguenther@suse.de>
12795
12796         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
12797         always visit pointer target and function result and argument types.
12798
12799 2011-05-16  Jason Merrill  <jason@redhat.com>
12800
12801         PR c++/48999
12802         * tree-inline.c (copy_statement_list): Put back recursion.
12803
12804 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
12805
12806         PR target/27663
12807         PR target/41076
12808         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
12809         * config/avr/avr.md ("*ior<mode>qi.byte0",
12810         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
12811
12812 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
12813
12814         PR target/45099
12815         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
12816         register is needed for a function argument.
12817
12818 2011-05-16  Richard Guenther  <rguenther@suse.de>
12819
12820         * gimple.c (struct type_hash_pair): New type.
12821         (type_hash_pair_compare): New function.
12822         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
12823
12824 2011-05-16  Revital Eres  <revital.eres@linaro.org>
12825
12826         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
12827
12828 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
12829
12830         * config/i386/i386.md (floating point move splitters): Fix
12831         usage of standard_80387_constant_p.
12832         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
12833
12834 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
12835
12836         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
12837
12838 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
12839
12840         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
12841         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
12842         (tree_ssa_lim_finalize): Likewise.
12843
12844 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
12845
12846         * config/i386/constraint.md (Yd, Yx): New register constraints.
12847         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
12848         Yd conditional register constraint.
12849         (*movtf_internal): Use standard_sse_constant_opcode.
12850         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
12851         Yx conditional register constraint.
12852         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
12853         Yd conditional register constraint.  Use standard_sse_constant_p to
12854         check for valid SSE constants and call standard_sse_constant_opcode to
12855         output SSE insn.
12856         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
12857         constants and call standard_sse_constant_opcode to output SSE insn.
12858         * config/i386/i386.c (ix86_option_ovverride_internal): Set
12859         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
12860         optimize_size is set.
12861         (standard_sse_constant_opcode): Output conditional AVX insn templates.
12862
12863 2011-05-14  Tobias Burnus  <burnus@net-b.de>
12864
12865         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
12866
12867 2011-05-13  Martin Jambor  <mjambor@suse.cz>
12868
12869         * ipa-prop.c (ipa_cst_from_jfunc): New function.
12870         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
12871         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
12872         (evaluate_conditions_for_ipcp_clone): Removed.
12873         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
12874         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
12875         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
12876
12877 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
12878
12879         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
12880         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
12881         lieu of MAY_HAVE_DEBUG_STMTS.
12882         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
12883         debug statements if !MAY_HAVE_DEBUG_STMTS.
12884
12885 2011-05-13  Martin Thuresson  <martint@google.com>
12886
12887         PR gcov-profile/47793
12888         * libgcov.c (gcov_exit): Support relative profile paths.
12889         * doc/invoke.texi (-fprofile-dir): Update for above change.
12890
12891 2011-05-13  Richard Guenther  <rguenther@suse.de>
12892
12893         * gimple.c (gimple_canonical_types_compatible_p): Do not use
12894         type-pair caching, do not compare hashes.
12895
12896 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
12897
12898         PR middle-end/48965
12899         * tree-cfg.c (edge_to_cases_cleanup): Return true.
12900         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
12901
12902 2011-05-13  Kai Tietz  <ktietz@redhat.com>
12903
12904         * gimplify.c (gimplify_expr): Make sure operand is boolified.
12905         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
12906         compatible type for TRUTH_NOT_EXPR.
12907
12908 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
12909
12910         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
12911         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
12912         can_create_pseudo_p ().
12913
12914 2011-05-13  Richard Guenther  <rguenther@suse.de>
12915
12916         PR lto/48978
12917         * gimple.c (iterative_hash_gimple_type): Revert change in
12918         pointer target and function result and argument hashing.
12919
12920 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
12921
12922         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
12923         (*movxf_internal_nointeger): Ditto.
12924         (*movdf_internal_rex64): Ditto.
12925         (*movdf_internal): Ditto.
12926         (*movdf_internal_nointeger): Ditto.
12927         (*movsf_internal): Ditto.
12928         (sincos splitters): Use can_create_pseudo ().
12929
12930 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
12931
12932         * config/i386/i386-opts.h: New.
12933         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
12934         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
12935         ix86_section_threshold): Remove.
12936         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
12937         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
12938         OPT_mbranch_cost_.
12939         (ix86_option_override_internal): Don't decode strings for options
12940         other than -march=, -mtune= and -mfpmath=.  Don't allow for
12941         __attribute__ uses in remaining diagnostics for options with
12942         string arguments.  Don't check for integer arguments being negative.
12943         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
12944         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
12945         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
12946         ix86_branch_cost, ix86_section_threshold): Remove.
12947         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
12948         HeaderInclude.
12949         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
12950         but not Var.
12951         (masm=): Use Enum and Init.
12952         (asm_dialect): New Enum and EnumValue entries.
12953         (mbranch-cost=): Use UInteger.
12954         (mlarge-data-threshold=): Use UInteger and Init.
12955         (mcmodel=): Use Enum and Init.
12956         (cmodel): New Enum and EnumValue entries.
12957         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
12958         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
12959         mregparm=): Use UInteger.
12960         (mstringop-strategy=): Use Enum and Init.
12961         (stringop_alg): New Enum and EnumValue entries.
12962         (mtls-dialect=): Use Enum and Init.
12963         (tls_dialect): New Enum and EnumValue entries.
12964         (mabi=): Use Enum and Init.
12965         (calling_abi): New Enum and EnumValue entries.
12966         (mveclibabi=): Use Enum and Init.
12967         (ix86_veclibabi): New Enum and EnumValue entries.
12968
12969 2011-05-13  Nick Clifton  <nickc@redhat.com>
12970
12971         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
12972         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
12973
12974 2011-05-13  Kai Tietz  <ktietz@redhat.com>
12975
12976         PR middle-end/48984
12977         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
12978         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
12979         (gimple_boolify): Check for cast for boolean_type_node instead for
12980         BOOLEAN_TYPE.
12981
12982 2011-05-13  Richard Guenther  <rguenther@suse.de>
12983
12984         PR tree-optimization/48172
12985         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
12986         multiplying by number of iterations for equal step.
12987         (vect_create_cond_for_alias_checks): Likewise.
12988
12989 2011-05-13  Andreas Schwab  <schwab@redhat.com>
12990
12991         * configure.ac: Use AS_HELP_STRING throughout.
12992         * configure: Regenerate.
12993
12994 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
12995
12996         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
12997         (ix86_emit_restore_regs_using_mov): Likewise.
12998         (ix86_emit_restore_sse_regs_using_mov): Likewise.
12999
13000 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
13001
13002         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
13003         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
13004         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
13005         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
13006         RTX_OK_FOR_OLO10_P): ...here.
13007         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
13008         SYMBOLIC_CONST.
13009
13010 2011-05-12  Kai Tietz  <ktietz@redhat.com>
13011
13012         * gimplify.c (gimple_boolify): Re-boolify expression
13013         arguments even if expression type is of kind BOOLEAN_TYPE.
13014         (gimplify_boolean_expr): Removed.
13015         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
13016         and XOR. Additional take care that we keep expression's type.
13017         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
13018         of TRUTH_AND|OR|XOR_EXPR.
13019
13020 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
13021
13022         PR tree-optimization/48975
13023         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
13024         on all bbs here and free and clear ifc_bbs at the end.
13025
13026 2011-05-12  Richard Guenther  <rguenther@suse.de>
13027
13028         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
13029         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
13030         until after simple checks.
13031         (gimple_types_compatible_p): Likewise.
13032         (iterative_hash_gimple_type): Always hash pointer targets
13033         and function return and argument types.
13034         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
13035         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
13036         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
13037         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
13038         completely in the simple compare section.
13039         (gimple_register_canonical_type): Query the cache again after
13040         registering.
13041
13042 2011-05-12  Richard Guenther  <rguenther@suse.de>
13043
13044         PR tree-optimization/48172
13045         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
13046         the number of iterations from the segment size calculation.
13047         (vect_create_cond_for_alias_checks): Adjust.
13048
13049 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
13050
13051         PR debug/48967
13052         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
13053         if validate_subreg fails.
13054
13055 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
13056
13057         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
13058         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
13059         early.
13060
13061 2011-05-12  DJ Delorie  <dj@redhat.com>
13062
13063         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
13064         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
13065         created builtin into rx_builtins array.
13066         (rx_builtin_decl): New function.
13067         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
13068
13069 2011-05-12  DJ Delorie  <dj@redhat.com>
13070             Nick Clifton  <nickc@redhat.com>
13071
13072         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
13073         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
13074         (rx_is_legitimate_address): Add pre-decrement and post-increment
13075         addressing in HImode and QImode.  Fix test for out of range
13076         REG+INT addressing.
13077         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
13078         (rx_align_for_label): Test label before extracting its usage count.
13079         (rx_adjust_insn_lengths): Fix selection of insn codes.
13080         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
13081
13082 2011-05-11  Jason Merrill  <jason@redhat.com>
13083
13084         * tree.c (type_hash_canon): Use struct tree_type_non_common.
13085
13086 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
13087
13088         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
13089         reindent the subsequent block.
13090
13091 2011-05-11  Satoru Takabayashi  <satorux@google.com>
13092             Paul Pluzhnikov  <ppluzhnikov@google.com>
13093
13094         * doc/install.texi (Configuration): Document --with-linker-hash-style.
13095         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
13096         * config.in: Add LINKER_HASH_STYLE.
13097         * configure.ac: Add --with-linker-hash-style.
13098         * configure: Regenerate.
13099
13100 2011-05-11  Richard Guenther  <rguenther@suse.de>
13101
13102         PR middle-end/48964
13103         * gimple.c (iterative_hash_canonical_type): Fix typo.
13104
13105 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
13106
13107         * config/i386/i386.c (legitimize_tls_address)
13108         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
13109         expanders directly for TARGET_GNU2_TLS.  Determine pic and
13110         __tls_get_addr symbol reference here.  Update call to
13111         gen_tls_global_dynamic_{32,64} for added arguments.
13112         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
13113         expanders directly for TARGET_GNU2_TLS.  Determine
13114         __tls_get_addr symbol reference here.  Update call to
13115         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
13116         unique UNSPEC REG_EQUIV to libcall block.
13117         (ix86_tls_get_addr): Declare static.
13118         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
13119         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
13120         Do not determine pic and __tls_get_addr symbol reference here. Do not
13121         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
13122         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
13123         (tls_global_dynamic_64): Add operand 2.  Do not determine
13124         __tls_get_addr symbol reference here.  Do not call
13125         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
13126         (tls_local_dynamic_base64): Ditto for operand 1.
13127
13128 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
13129
13130         * function.c (expand_function_start): Initialize stack_check_probe_note
13131         only if the generic stack checking mechanism is used.
13132
13133 2011-05-11  Richard Guenther  <rguenther@suse.de>
13134
13135         PR tree-optimization/15256
13136         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
13137         (A & B) | C, combine (A op CST1) op CST2.
13138         (tree_ssa_forward_propagate_single_use_vars): Only bother to
13139         visit assigns that have uses.
13140
13141 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
13142
13143         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
13144         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
13145         (unpack_ts_type_common_value_fields): ...this.  Update comment.
13146         (unpack_value_fields): Adjust for renaming.
13147         (lto_input_ts_type_tree_pointers): Split into...
13148         (lto_input_ts_type_common_tree_pointer): ...this and...
13149         (lto_input_ts_type_non_common_tree_pointers): ...this.
13150         (lto_input_tree_pointers): Adjust for above split.
13151         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
13152         (pack_ts_type_common_value_fields): ...this.  Update comment.
13153         (lto_output_ts_type_tree_pointers): Split into...
13154         (lto_output_ts_type_common_tree_pointers): ...this and...
13155         (lto_output_ts_type_non_common_tree_pointers): ...this.
13156         (lto_output_tree_pointers): Adjust for above split.
13157         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
13158         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
13159         * stor-layout.c (vector_type_mode): Adjust location of mode field.
13160         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
13161         Define.
13162         (struct tree_type): Split into...
13163         (struct tree_type_common: ...this and...
13164         (struct tree_type_with_lang_specific): ...this and...
13165         (struct tree_type_non_common): ...this.  Adjust accessor macros
13166         accordingly.
13167         (TYPE_VALUES_RAW): Define.
13168         (union tree_node): Update for above changes.
13169         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
13170         TS_TYPE_NON_COMMON.
13171         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
13172         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
13173         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
13174         * treestructu.def (TS_TYPE): Remove.
13175         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
13176         Define.
13177
13178 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
13179
13180         PR debug/48159
13181         * tree-ssa.c (reset_debug_uses): New function.
13182         * tree-flow.h (reset_debug_uses): New prototype.
13183         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
13184         * tree-loop-distribution.c (generate_loops_for_partition): Call
13185         reset_debug_uses on the stmts that will be removed.  Keep around
13186         all debug stmts, don't count them as bits in partition bitmap.
13187         (generate_builtin): Don't count debug stmts or labels as bits in
13188         partition bitmap.
13189
13190 2011-05-11  Richard Guenther  <rguenther@suse.de>
13191
13192         * gimple.c (gimple_type_hash_1): Merge with ...
13193         (gimple_type_hash): ... this.
13194         (gtc_visit): Remove mode parameter and simplify accordingly.
13195         (gimple_types_compatible_p_1): Likewise.
13196         (gimple_types_compatible_p): Likewise.
13197         (iterative_hash_gimple_type): Likewise.
13198         (visit): Likewise.
13199         (gimple_type_eq): Adjust.
13200
13201 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13202
13203         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
13204         enters the branch create an anti edge in the opposite direction
13205         to prevent the creation of reg-moves.
13206         * modulo-sched.c: Adjust comment to reflect the fact we are
13207         scheduling closing branch.
13208         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
13209         (stage_count): New field in struct partial_schedule.
13210         (calculate_stage_count): New function.
13211         (normalize_sched_times): Rename to reset_sched_times and handle
13212         incrementing the sched time of the nodes by a constant value
13213         passed as parameter.
13214         (duplicate_insns_of_cycles): Skip closing branch.
13215         (sms_schedule_by_order): Schedule closing branch.
13216         (ps_insn_find_column): Handle closing branch.
13217         (sms_schedule): Call reset_sched_times and adjust the code to
13218         support scheduling of the closing branch.
13219         (ps_insert_empty_row): Update calls to normalize_sched_times
13220         and rotate_partial_schedule functions.
13221
13222 2011-05-11  Richard Guenther  <rguenther@suse.de>
13223
13224         PR middle-end/48953
13225         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
13226
13227 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
13228
13229         * opts.c (finish_options): Move warning settings from process_options.
13230         * toplev.c (process_options): Move warning settings to finish_options.
13231
13232 2011-05-11  Richard Guenther  <rguenther@suse.de>
13233
13234         PR tree-optimization/18041
13235         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
13236         (simplify_bitwise_binary): ... this.  Handle operand conversions
13237         by applying them to the result instead.
13238         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
13239
13240 2011-05-11  Richard Guenther  <rguenther@suse.de>
13241
13242         * gimple.c (gimple_canonical_types_compatible_p): Split out
13243         from gimple_types_compatible_p and friends.  Do not recurse
13244         to pointed-to types.
13245         (gimple_canonical_type_eq): Use it.
13246         (iterative_hash_canonical_type): Split out from
13247         iterative_hash_gimple_type and friends.  Do not recurse
13248         to pointed-to types.
13249         (gimple_canonical_type_hash): Use it, allocate the hash here.
13250
13251 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13252
13253         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
13254         recognizing doloop.
13255
13256 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13257
13258         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
13259         instead of PREV_INSN.
13260
13261 2011-05-11  Revital Eres  <revital.eres@linaro.org>
13262
13263         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
13264         * loop-doloop.c (doloop_condition_get): Likewise.
13265         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
13266         (doloop_end): New.
13267         * config/arm/arm.md (*addsi3_compare0): Remove "*".
13268
13269 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
13270
13271         * tree.def (CASE_LABEL_EXPR): Add an operand.
13272         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
13273
13274 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13275
13276         * c-decl.c (c_override_global_bindings_to_false): Remove.
13277         (global_bindings_p): Don't check
13278         c_override_global_bindings_to_false.
13279         * c-tree.h (c_override_global_bindings_to_false): Remove.
13280         * c-typeck.c (composite_type): Don't set
13281         c_override_global_bindings_to_false.
13282
13283 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
13284
13285         PR target/48857, 48495
13286         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
13287         (VSX_MODE): Ditto.
13288         (VSX_MOVE_MODE): Ditto.
13289         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
13290         VSX vector types.  Add V2DImode.
13291         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
13292         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
13293         (MODES_TIEABLE_P): Ditto.
13294
13295         * config/rs6000/rs6000.c (rs6000_emit_move): Use
13296         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
13297         VSX_VECTOR_MODE.
13298         (init_cumulative_args): Ditto.
13299         (rs6000_function_arg_boundary): Ditto.
13300         (rs6000_function_arg_advance_1): Ditto.
13301         (rs6000_function_arg): Ditto.
13302         (rs6000_function_ok_for_sibcall): Ditto.
13303         (emit_frame_save): Ditto.
13304         (rs6000_function_value): Ditto.
13305         (rs6000_libcall_value): Ditto.
13306
13307 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13308
13309         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
13310         i386/darwin-lib.h to $libgcc_tm_file.
13311         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
13312
13313 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13314
13315         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
13316
13317 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13318
13319         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
13320         * config/rs6000/rs6000-tables.opt: New file (generated).
13321         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
13322         rs6000/rs6000-tables.opt to extra_options.
13323         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
13324         * config/rs6000/rs6000.c (rs6000_select): Remove.
13325         (processor_target_table): Move contents to rs6000-cpus.def.
13326         (darwin_rs6000_override_options): Check
13327         global_options_set.x_rs6000_cpu_index instead of
13328         rs6000_select[1].string.
13329         (rs6000_option_override_internal): Likewise.
13330         (rs6000_handle_option): Don't assert that global structures are in
13331         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
13332         (rs6000_default_cpu): New variable.
13333         (rs6000_file_start): Set it instead of local default_cpu.  Check
13334         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
13335         global_options_set.x_rs6000_tune_index instead of rs6000_select.
13336         (rs6000_darwin_file_start): Check rs6000_default_cpu and
13337         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
13338         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
13339         rs6000_select): Remove.
13340         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
13341         Remove.
13342         (mcpu=, mtune=): Use Var, Init, Enum and Save.
13343         * config/rs6000/t-rs6000
13344         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
13345         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
13346         global_options_set.x_rs6000_cpu_index instead of
13347         rs6000_select[1].string.
13348         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
13349         global_options_set.x_rs6000_cpu_index instead of
13350         rs6000_select[1].string.
13351
13352 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
13353
13354         * config.gcc (libgcc_tm_file): Define instead of including files
13355         from ../../libgcc/config/ in tm_file.
13356         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
13357         * configure: Regenerate.
13358         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
13359         libgcc_tm.h, cs-libgcc_tm.h): New.
13360         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
13361         (clean): Remove libgcc_tm.h.
13362         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
13363         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
13364         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
13365
13366 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
13367
13368         PR target/48896
13369         * config/avr/avr.c (avr_ret_register): Return unsigned int
13370         instead of int.
13371         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
13372         it to avr_libcall_value.
13373         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
13374         expand_expr.
13375         (avr_expand_binop_builtin): Ditto.
13376         (avr_expand_unop_builtin): Ditto.
13377
13378 2011-05-10  DJ Delorie  <dj@redhat.com>
13379
13380         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
13381         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
13382         * config/rx/rx.c (rx_align_for_label): Add label and
13383         uses_threshold parameters.  Do not align when the label is not
13384         used enough.
13385         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
13386
13387 2011-05-10  Richard Guenther  <rguenther@suse.de>
13388
13389         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
13390         a series of conversions and apply foldings similar to what
13391         fold-const does.
13392         (tree_ssa_forward_propagate_single_use_vars): Call it.
13393
13394 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
13395
13396         PR tree-optimization/48611
13397         PR tree-optimization/48794
13398         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
13399         referenced from RESX or EH_DISPATCH arguments.
13400
13401         PR debug/48928
13402         * dfp.c (decimal_to_decnumber): Handle conversion from
13403         dconst{1,2,m1,half}.
13404
13405 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13406
13407         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
13408         for !flag_prefer_avx128.
13409         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
13410
13411 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
13412
13413         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
13414         (fold_ternary_loc): Use expr_location_or.
13415
13416 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
13417
13418         PR debug/48853
13419         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
13420         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
13421         Pmode and mem_mode is not VOIDmode.
13422
13423 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
13424
13425         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
13426         TYPE_QUAL_RESTRICT): Convert to enum.
13427
13428 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13429
13430         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
13431         (const_pow2_1_to_8_operand): Ditto.
13432         (const_pow2_1_to_128_operand): Ditto.
13433         (const_pow2_1_to_32768_operand): Ditto.
13434         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
13435         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
13436         in insn constraint to check integer value of operand 3.
13437         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
13438
13439         (PINSR_MODE): New mode iterator.
13440         (sse2p4_1): New mode attribute.
13441         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
13442         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
13443         iterator.  Use const_int_operand instead of
13444         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
13445         exact_log2 in insn constraint to check integer value of operand 3.
13446
13447 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13448
13449         * config/i386/sse.md (blendbits): Remove mode attribute.
13450         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
13451         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
13452         Check integer value of operand 3 in insn constraint.
13453
13454 2011-05-09  Richard Guenther  <rguenther@suse.de>
13455
13456         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
13457         for diagnostics.
13458         (lto_symtab_merge): Likewise.  Do not register types here.
13459         (lto_symtab_merge_decls_2): Likewise.
13460         (lto_symtab_merge_decls_1): Likewise.
13461         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
13462         * gimple.c (enum gtc_mode): Declare.
13463         (gimple_types_compatible_p): Make static.
13464
13465 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13466
13467         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
13468         temporary register to match Pmode.
13469
13470 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13471
13472         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
13473         and *vec_concatv4si_1_avx.
13474
13475 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13476
13477         PR rtl-optimization/48927
13478         * ira-conflicts.c (commutative_constraint_p): Use
13479         recog_data.alternative_enabled_p to disable alternatives where
13480         "enabled" attribute is false.
13481         (get_dup_num): Ditto.
13482         * ira-lives.c (single_reg_class): Ditto.
13483         (ira_implicitly_set_insn_hard_regs): Ditto.
13484
13485 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
13486
13487         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
13488         (dataflow_set_preserve_mem_locs): Likewise.
13489
13490 2011-05-09  Philipp Thomas  <pth@suse.de>
13491
13492         * config/mep/mep.c (mep_validate_vliw): Syntax description
13493         should not be translated.
13494
13495 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
13496
13497         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
13498         * config/mips/mips-tables.opt: New file (generated).
13499         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
13500         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
13501         MIPS_ARCH_OPTION_NATIVE): Define.
13502         * config/mips/mips.c (mips_cpu_info_table): Move contents to
13503         mips-cpus.def.
13504         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
13505         mips_parse_cpu): Remove.
13506         (mips_cpu_info_from_opt, mips_default_arch): New.
13507         (mips_handle_option): Don't assert that global structures are in
13508         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
13509         (mips_option_override): Use new variables and functions to set
13510         state of these options.  Use strcmp to check for individual CPU names.
13511         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
13512         definition.
13513         * config/mips/mips.opt (march=): Use ToLower and Enum.
13514         (mips): Use ToLower, Enum and Var.
13515         (mtune=): Use ToLower and Enum.
13516         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
13517
13518 2011-05-08  Jan Hubicka  <jh@suse.cz>
13519
13520         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
13521         Arrange type pairs to be UID ordered.
13522         (gimple_lookup_type_leader): Make inline.
13523
13524 2011-05-09  Nick Clifton  <nickc@redhat.com>
13525
13526         PR target/48899
13527         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
13528         PROCESSOR_DEFAULT.
13529
13530         PR target/48897
13531         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
13532         variable 's'.
13533
13534 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
13535
13536         * combine.c (simplify_comparison): Abstract out parts into...
13537         (simplify_compare_const): ... new function.
13538         (try_combine): Generalize parallel arithmetic/compare combining
13539         to call simplify_compare_const() and CANONICALIZE_COMPARE().
13540
13541 2011-05-08  Jan Hubicka  <jh@suse.cz>
13542
13543         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
13544         (cgraph_create_virtual_clone): Call hooks once virtual clone
13545         is finished.
13546         * cgraph.h (cgraph_clone_node): Update prototype.
13547         * ipa-cp.c (ipcp_estimate_growth): Use
13548         estimate_ipcp_clone_size_and_time.
13549         * ipa-inline-transform.c (clone_inlined_nodes): Update.
13550         * lto-cgraph.c (input_node): Update.
13551         * ipa-inline.c (recursive_inlining): Update.
13552         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
13553         (evaluate_conditions_for_known_args): Break out from ...
13554         (evaluate_conditions_for_edge): ... here.
13555         (evaluate_conditions_for_ipcp_clone): New function.
13556         (inline_node_duplication_hook): Update clone summary based
13557         on parameter map.
13558         (estimate_callee_size_and_time): Rename to ...
13559         (estimate_node_size_and_time): take NODE instead of EDGE;
13560         take POSSIBLE_TRUTHS as argument.
13561         (estimate_callee_size_and_time): Update.
13562         (estimate_ipcp_clone_size_and_time): New function.
13563         (do_estimate_edge_time): Update.
13564
13565 2011-05-08  Richard Guenther  <rguenther@suse.de>
13566
13567         PR middle-end/48908
13568         PR middle-end/48905
13569         * expmed.c (expand_shift_1): Compute adjusted constant shift
13570         amount manually.
13571
13572 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
13573
13574         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
13575
13576 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
13577
13578         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
13579
13580 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
13581
13582         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
13583
13584 2011-05-07  Jan Hubicka  <jh@suse.cz>
13585
13586         * ipa-inline-transform.c (inline_call): Account when program size
13587         decreases.
13588         * ipa-inline.c (relative_time_benefit): New function.
13589         (edge_badness): Reorganize to be power 2 based; fix thinko when
13590         computing badness for negative growth; update comments to match
13591         reality; better dumps.
13592
13593 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
13594
13595         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
13596         type to bool and adjust comment.
13597         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
13598         (fold_mathfn_compare): Remove calls to global_bindings_p.
13599         (fold_inf_compare): Likewise.
13600         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
13601         * c-tree.h (global_bindings_p): Adjust prototype.
13602         * c-decl.c (global_bindings_p): Return bool and simplify.
13603
13604 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
13605
13606         PR tree-optimization/48837
13607         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
13608         when accumulator transformation is performed.
13609
13610 2011-05-06  Jan Hubicka  <jh@suse.cz>
13611
13612         * i386.h (ix86_tune_indices): Add
13613         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
13614         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
13615         * i386.c (initial_ix86_tune_features): Add
13616         X86_SOFTARE_PREFETCHING_BENEFICIAL.
13617         (software_prefetching_beneficial_p): Remove predicate.
13618         (ix86_option_override_internal): Use new macro.
13619
13620 2011-05-06  Jan Hubicka  <jh@suse.cz>
13621
13622         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
13623
13624 2011-05-06  Jan Hubicka  <jh@suse.cz>
13625
13626         * cgraph.c (cgraph_add_thunk): Create real function node instead
13627         of alias node; finalize it and mark needed/reachale; arrange visibility
13628         to be right and add it into the corresponding same comdat group list.
13629         (dump_cgraph_node): Dump thunks.
13630         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
13631         cgraph_function_with_gimple_body_p,
13632         cgraph_first_function_with_gimple_body,
13633         cgraph_next_function_with_gimple_body): New functions.
13634         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
13635         New macros.
13636         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
13637         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
13638         * cgraphunit.c (cgraph_finalize_function): Only look into possible
13639         devirtualization when optimizing.
13640         (verify_cgraph_node): Verify thunks.
13641         (cgraph_analyze_function): Analyze thunks.
13642         (cgraph_mark_functions_to_output): Output thunks only in combination
13643         with function they are assigned to.
13644         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
13645         alias into normal node.
13646         (assemble_thunks): New functoin.
13647         (cgraph_expand_function): Use it.
13648         * lto-cgraph.c (lto_output_node): Stream thunks.
13649         (input_overwrite_node): Stream in thunks.
13650         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
13651         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
13652         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
13653         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
13654         (inline_analyze_function): Do not care about thunk jump functions.
13655         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
13656         * ipa-prop.c (ipa_prop_write_jump_functions): Use
13657         cgraph_function_with_gimple_body_p.
13658         * passes.c (do_per_function_toporder): Use
13659         cgraph_function_with_gimple_body_p.
13660         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
13661         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
13662         (function_called_by_processed_nodes_p): Likewise.
13663
13664 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
13665
13666         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
13667         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
13668         entries.
13669         (mabi=): Replace with separate entries for mabi=altivec,
13670         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
13671         mabi=ieeelongdouble and mabi=ibmlongdouble.
13672         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
13673         check for -mabi=spe without SPE ABI support here.
13674         (rs6000_handle_option): Replace OPT_mabi_ handling with
13675         OPT_mabi_altivec and OPT_mabi_spe handling.
13676
13677 2011-05-06  Cary Coutant  <ccoutant@google.com>
13678
13679         * dwarf2out.c (contains_subprogram_definition): New function.
13680         (should_move_die_to_comdat): Call it.
13681
13682 2011-05-06  Jeff Law  <law@redhat.com>
13683
13684         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
13685         remove_ctrl_stmt_and_useless_edges.
13686         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
13687         (fixup_template_block, thread_single_edge): Likewise.
13688         (mark_threaded_blocks): Use THREAD_TARGET.
13689
13690 2011-05-06  Alan Modra  <amodra@gmail.com>
13691
13692         PR target/48900
13693         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
13694         const0_rtx as the arg to the dummy __tls_get_addr libcall.
13695
13696 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
13697
13698         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
13699         constraint modifier to "r".
13700
13701 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
13702
13703         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
13704         fall through for OPT_mcmodel_.
13705
13706 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13707
13708         * config/s390/s390.c (s390_asm_trampoline_template): Comment
13709         instruction sizes.
13710         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
13711
13712 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13713
13714         PR target/47930
13715         * config/arm/arm.opt (marm): Document it.
13716         (mthumb): Reject negative variant.
13717
13718 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
13719
13720         PR target/48898
13721         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
13722         Fix typo in "ccvt" variable name.
13723
13724 2011-05-06  Tristan Gingold  <gingold@adacore.com>
13725
13726         PR target/48895
13727         * config/vms/vms-ar.c (main): Remove cwd variable.
13728
13729 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
13730
13731         PR debug/48902
13732         * var-tracking.c (prepare_call_arguments): Move else before #endif.
13733
13734 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
13735
13736         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
13737         * gimplify.c (gimplify_switch_expr): Likewise.
13738         * omp-low.c (expand_omp_sections): Likewise.
13739         * tree-eh.c (lower_try_finally_switch): Likewise.
13740         (lower_eh_dispatch): Likewise.
13741         * tree.h (build_case_label): Declare.
13742         * tree.c (build_case_label): Define.
13743
13744 2011-05-05  Jason Merrill  <jason@redhat.com>
13745
13746         PR c++/40975
13747         * tree-inline.c (copy_tree_r): Use copy_statement_list.
13748         (copy_statement_list): Don't recurse.
13749         * stor-layout.c (copy_self_referential_tree_r): Don't allow
13750         STATEMENT_LIST.
13751
13752 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
13753
13754         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
13755         through from -mfpu= handling.
13756         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
13757
13758 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
13759
13760         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
13761         POST_MODIFY.
13762
13763 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
13764
13765         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
13766         for 11.31.
13767         (hppa[12]*-*-hpux11*): Ditto.
13768         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
13769         * config/ia64/hpux-unix2003.h: New.
13770         * config/pa/pa-hpux1131.opt: New.
13771         * config/pa/pa-hpux1131.h: New.
13772         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
13773         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
13774         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
13775
13776 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
13777
13778         PR debug/48853
13779         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
13780         instead of mode as 3rd argument to recursive call.
13781         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
13782         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
13783         VOIDmode.
13784         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
13785         don't give up if mode is Pmode and mem_mode is not VOIDmode.
13786         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
13787         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
13788
13789 2011-05-05  Julian Brown  <julian@codesourcery.com>
13790
13791         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
13792         parenthesis in D-register case.
13793
13794 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
13795
13796         * opt-functions.awk (var_type_struct): Handle Enum options.
13797         * optc-gen.awk: Don't check range of variables of character type.
13798         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
13799         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
13800         rs6000_sdata_name, rs6000_explicit_options): Remove.
13801         (rs6000_option_override_internal): Check for -malign-power here.
13802         Use global_options_set instead of rs6000_explicit_options.
13803         (rs6000_parse_fpu_option): Remove.
13804         (rs6000_handle_option): Access variables via opts and opts_set
13805         pointers.  Use error_at and warning_at.  Add fall-through
13806         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
13807         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
13808         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
13809         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
13810         here.  Don't use rs6000_parse_fpu_option.
13811         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
13812         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
13813         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
13814         (mrecip=): Use Var.
13815         (mspe): Use Var and Save.
13816         (mtraceback=): Use Enum and Var.
13817         (rs6000_traceback_type): New Enum and EnumValue entries.
13818         (mfloat-gprs=): Use Enum, Var and Save.
13819         (rs6000_float_gprs): New Enum and EnumValue entries.
13820         (mlong-double-): use Var and Save.
13821         (msched-costly-dep=, minsert-sched-nops=): Use Var.
13822         (malign-): Use Enum and Var.
13823         (rs6000_alignment_flags): New Enum and EnumValue entries.
13824         (mfpu=): Use Enum.
13825         (fpu_type_t): New Enum and EnumValue entries.
13826         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13827         global_options_set instead of rs6000_explicit_options.
13828         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13829         global_options_set instead of rs6000_explicit_options.
13830         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13831         global_options_set instead of rs6000_explicit_options.
13832         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
13833         global_options_set instead of rs6000_explicit_options.
13834         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
13835         global_options_set instead of rs6000_explicit_options.
13836         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13837         global_options_set instead of rs6000_explicit_options.
13838         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
13839         definition.
13840         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13841         global_options_set instead of rs6000_explicit_options.
13842         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
13843         (rs6000_cmodel): New Enum and EnumValue entries.
13844         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13845         global_options_set instead of rs6000_explicit_options.
13846         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
13847         (mtls-size=): Use Enum and Var.
13848         (rs6000_tls_size): New Enum and EnumValue entries.
13849
13850 2011-05-05  Michael Matz  <matz@suse.de>
13851
13852         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
13853         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
13854         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
13855         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
13856         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
13857         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
13858         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
13859         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
13860         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
13861         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
13862         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
13863         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
13864         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
13865         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
13866         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
13867         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
13868
13869 2011-05-05  Richard Guenther  <rguenther@suse.de>
13870
13871         * expmed.c (expand_variable_shift): Rename to ...
13872         (expand_shift_1): ... this.  Take an expanded shift amount.
13873         For rotates recurse directly not building trees for the shift amount.
13874         (expand_variable_shift): Wrap around expand_shift_1.
13875         (expand_shift): Adjust.
13876
13877 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
13878
13879         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
13880
13881 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
13882
13883         * tree.h (get_pending_sizes): Remove prototype.
13884         (put_pending_size): Likewise.
13885         (put_pending_sizes): Likewise.
13886         * stor-layout.c (pending_sizes): Delete.
13887         (get_pending_sizes): Likewise.
13888         (put_pending_size): Likewise.
13889         (put_pending_sizes): Likewise.
13890         (variable_size): Do not call put_pending_size and tidy up.
13891         * function.h (struct function): Remove dont_save_pending_sizes_p.
13892         * lto-streamer-in.c (input_function): Do not stream it.
13893         * lto-streamer-out.c (output_function): Likewise.
13894         * tree-inline.c (initialize_cfun): Do not copy it.
13895         * c-decl.c (store_parm_decls): Do not set it.
13896         * omp-low.c (create_task_copyfn): Likewise.
13897         * tree-optimize.c (tree_rest_of_compilation): Likewise.
13898
13899 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
13900
13901         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
13902         conditions.
13903         (*movdf_internal): Ditto.
13904         (*movdf_internal_nointeger): Ditto.
13905         (*movsf_internal): Ditto.
13906
13907 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
13908
13909         * c-decl.c (finish_decl): Don't call get_pending_sizes.
13910         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
13911         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
13912         (c_variable_size): Remove.
13913         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
13914         call put_pending_sizes.
13915         (get_parm_info): Add parameter expr.  Use it to set
13916         arg_info->pending_sizes.
13917         (store_parm_decls): Use arg_info->pending_sizes instead or calling
13918         get_pending_sizes.
13919         * c-parser.c (c_parser_parms_declarator): Update call to
13920         c_parser_parms_list_declarator.
13921         (c_parser_parms_list_declarator): Take parameter expr.  Update
13922         call to push_parm_decl.  Update recursive call.  Don't call
13923         get_pending_sizes.  Update calls to get_parm_info.
13924         (c_parser_objc_method_definition): Update calls to
13925         c_parser_objc_method_decl and objc_start_method_definition.
13926         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
13927         (c_parser_objc_method_decl): Add parameter expr.  Update call to
13928         grokparm.
13929         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
13930         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
13931         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
13932
13933 2011-05-05  Michael Hope  <michael.hope@linaro.org>
13934
13935         PR pch/45979
13936         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
13937         __ARM_EABI__ hosts.
13938
13939 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13940
13941         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
13942         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
13943         (spu_output_mi_thunk): New function.
13944
13945 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13946
13947         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
13948         targetm.asm_out.print_operand.
13949         * config/sol2.c: Include target.h.
13950
13951 2011-05-04  Jan Hubicka  <jh@suse.cz>
13952
13953         * ipa-inline.c (reset_edge_caches): New function.
13954         (update_caller_keys): Add check_inlinablity_for; do not
13955         reset edge caches; remove now unnecesary loop.
13956         (update_callee_keys): Add comments; reset node_growth_cache of callee.
13957         (update_all_callee_keys): Likewise.
13958         (inline_small_functions): Sanity check cache; update code
13959         recomputing it.
13960
13961 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
13962
13963         PR rtl-optimization/47612
13964         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
13965         as the last insn of the sequence to be moved.
13966
13967 2011-05-04  Tobias Burnus  <burnus@net-b.de>
13968
13969         PR fortran/48864
13970         * doc/invoke.texi (Ofast): Document that it
13971         enables Fortran's -fno-protect-parens.
13972
13973 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
13974
13975         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
13976
13977 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
13978
13979         * stor-layout.c (variable_size): Do not issue errors.
13980
13981 2011-05-04  Richard Guenther  <rguenther@suse.de>
13982
13983         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
13984         for array-ref indices.
13985         (tree_coverage_counter_addr): Likewise.
13986         (build_fn_info_type): Use size_int for index types.
13987         (build_gcov_info): Likewise.
13988
13989 2011-05-04  Richard Guenther  <rguenther@suse.de>
13990
13991         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
13992         to build_int_cst.
13993         * c-typeck.c (really_start_incremental_init): Use bitsize_int
13994         for constructor indices.
13995         (push_init_level): Likewise.
13996
13997 2011-05-04  Richard Guenther  <rguenther@suse.de>
13998
13999         * explow.c (promote_mode): Move variable declarations before code.
14000
14001 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
14002
14003         * tree.h (build_function_type_array): Declare.
14004         (build_varargs_function_type_array): Declare.
14005         (build_function_type_vec, build_varargs_function_type_vec): Define.
14006         * tree.c (build_function_type_array_1): New function.
14007         (build_function_type_array): New function.
14008         (build_varargs_function_type_array): New function.
14009
14010 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
14011
14012         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
14013         before setting STMT_VINFO_TYPE.
14014
14015 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14016
14017         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
14018         instead of spu_pass_by_reference.
14019
14020 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14021
14022         * calls.c (emit_library_call_value_1): Invoke
14023         promote_function_mode hook on libcall arguments.
14024         * explow.c (promote_function_mode, promote_mode): Handle TYPE
14025         argument being NULL.
14026         * targhooks.c (default_promote_function_mode): Lisewise.
14027         * config/s390/s390.c (s390_promote_function_mode): Likewise.
14028         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
14029
14030         * doc/tm.texi: Document that TYPE argument might be NULL.
14031
14032 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14033
14034         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
14035
14036 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14037
14038         From Bernd Schmidt
14039         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
14040
14041 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14042
14043         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
14044         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
14045         Move ...
14046         * mips-tfile.c: ... here.
14047         Don't include coretypes.h, tm.h, filenames.h.
14048         (saber_stop): Remove definition and all calls.
14049         [__SABER__]: Remove.
14050         (__LINE__): Remove default.
14051         (Size_t, Ptrdiff_t): Remove definitions.
14052         Replace by size_t, ptrdiff_t.
14053         [!MIPS_DEBUGGING_INFO]: Remove.
14054         (SHASH_SIZE, THASH_SIZE): Remove defaults.
14055         (progname): Add const.
14056         (STATIC): Remove.
14057         Replace all uses by static.
14058         (ALIGN_SYMTABLE_OFFSET): Remove default.
14059         * mips-tdump.c: Don't include coretypes.h, tm.h.
14060         Remove !MIPS_IS_STAB guard.
14061         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
14062         $(TM_H), filenames.h dependencies.
14063         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
14064
14065 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14066
14067         From Jie Zhang
14068         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
14069         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
14070
14071 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14072
14073         From Bernd Schmidt
14074         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
14075         account and save/restore RETS.
14076         (PROFILE_BEFORE_PROLOGUE): Define.
14077         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
14078         the push insn to use predecrement.
14079
14080 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
14081
14082         From Jie Zhang
14083         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
14084
14085 2011-05-04  Nick Clifton  <nickc@redhat.com>
14086
14087         * config/mn10300/mn10300.c: Include cfgloop.h.
14088         (DUMP): New macro.
14089         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
14090         Lcc or a FLcc insn into the instruction stream.
14091         (mn10300_block_contains_call): New function.  Returns true if the
14092         given basic block contains a CALL insn.
14093         (mn10300_loop_contains_call_insn): New function.  Returns true if
14094         the given loop contains a CALL insn.
14095         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
14096         to use the SETLB and Lcc or FLcc insns.
14097         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
14098         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
14099         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
14100         disable the SETLB optimization.
14101         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
14102         __SETLB__ or __NO_SETLB__.
14103         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
14104         (movsf_internal): Handle MDR register.
14105         (cmpsi): Make visible.
14106         (setlb): New pattern.
14107         (Lcc): New pattern.
14108         (FLcc): New pattern.
14109
14110 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
14111
14112         PR target/48860
14113         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
14114         for reg<->xmm moves.
14115         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
14116         (vec_concatv2di_rex64_sse): Ditto.
14117         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
14118         (*vec_extractv2di_1_rex64): Ditto.
14119
14120         Revert:
14121         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
14122
14123         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
14124         reg<->xmm moves.
14125         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
14126
14127 2011-05-04  Richard Guenther  <rguenther@suse.de>
14128
14129         * tree.h (int_const_binop): Remove notrunc argument.
14130         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
14131         create integer constants that are properly truncated.
14132         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
14133         (const_binop): Remove zero notrunc argument to int_const_binop.
14134         (size_binop_loc): Likewise.
14135         (fold_div_compare): Likewise.
14136         (maybe_canonicalize_comparison_1): Likewise.
14137         (fold_comparison): Likewise.
14138         (fold_binary_loc): Likewise.
14139         (multiple_of_p): Likewise.
14140         * expr.c (store_constructor): Likewise.
14141         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
14142         (maybe_fold_stmt_addition): Likewise.
14143         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
14144         * stor-layout.c (layout_type): Likewise.
14145         * tree-data-ref.c (tree_fold_divides_p): Likewise.
14146         * tree-sra.c (build_ref_for_offset): Likewise.
14147         (build_user_friendly_ref_for_offset): Likewise.
14148         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
14149         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
14150         * tree-ssa-loop-niter.c (inverse): Likewise.
14151         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
14152         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
14153         * tree-switch-conversion.c (check_range): Likewise.
14154         (build_constructors): Likewise.
14155         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
14156         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
14157         (extract_range_from_assert): Likewise.
14158         (vrp_int_const_binop): Likewise.
14159         (extract_range_from_binary_expr): Likewise.
14160         (extract_range_from_unary_expr): Likewise.
14161         (check_array_ref): Likewise.
14162         (find_case_label_range): Likewise.
14163         (simplify_div_or_mod_using_ranges): Likewise.
14164         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
14165         comparing case labels for merging.
14166
14167 2011-05-03  Mark Wielaard  <mjw@redhat.com>
14168
14169         * dwarf2out.c (debug_str_hash_forced): Removed.
14170         (gen_label_for_indirect_string): Removed.
14171         (get_debug_string_label): Removed.
14172         (AT_string_form): Generate label directly.
14173         (output_indirect_string): Test indirect_string_node for
14174         DW_FORM_strp instead of checking label and refcount.
14175         (prune_indirect_string): Removed.
14176         (prune_unused_types): Don't check debug_str_hash_forced or
14177         call prune_indirect_string.
14178
14179 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
14180
14181         PR other/48093
14182         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
14183
14184 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
14185
14186         PR debug/47994
14187         PR debug/47919
14188         * combine.c (try_combine): Skip debug insns at m_split tests.
14189
14190 2011-04-26  Mark Wielaard  <mjw@redhat.com>
14191
14192         PR42288
14193         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
14194         when info_section_emitted.
14195
14196 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
14197
14198         * config/mips/mips-opts.h: New.
14199         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
14200         to mips-opts.h.
14201         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
14202         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
14203         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
14204         via opts pointer.
14205         * config/mips/mips.h (enum mips_code_readable_setting): Move to
14206         mips-opts.h.
14207         (mips_abi, mips_code_readable): Don't declare.
14208         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
14209         (mabi=): Use Enum and Var.
14210         (mips_abi): New Enum and EnumValue entries.
14211         (mcode-readable=): Use Enum and Var.
14212         (mips_code_readable_setting): New Enum and EnumValue entries.
14213         (mr10k-cache-barrier=): Use Enum and Var.
14214         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
14215
14216 2011-05-03  Jan Hubicka  <jh@suse.cz>
14217
14218         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
14219         replace hash by pointer map.
14220         (cgraph_node_set_element_def, cgraph_node_set_element,
14221         const_cgraph_node_set_element, varpool_node_set_element_def,
14222         varpool_node_set_element, const_varpool_node_set_element): Remove.
14223         (free_cgraph_node_set, free_varpool_node_set): New function.
14224         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
14225         * tree-emutls.c: Free varpool node set.
14226         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
14227         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
14228         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
14229         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
14230         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
14231         Move here from ipa.c; implement using pointer_map
14232         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
14233         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
14234         debug_cgraph_node_set, varpool_node_set_new,
14235         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
14236         dump_varpool_node_set, debug_varpool_node_set):
14237         Move to ipa-uitls.c.
14238         * passes.c (ipa_write_summaries): Update.
14239
14240 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14241
14242         From Mike Frysinger:
14243         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
14244         bf542/bf544/bf547/bf548/bf549.
14245
14246 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
14247
14248         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
14249
14250 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14251
14252         From Bernd Schmidt:
14253         * config/bfin/bfin.md (MOVCC): New mode_macro.
14254         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
14255         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
14256         comments from generated assembly.
14257
14258 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14259
14260         From Bernd Schmidt
14261         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
14262         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
14263         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
14264         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
14265         * config/bfin/lib1funcs.asm (___muldi3): New function.
14266
14267 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14268
14269         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
14270         build_function_type_list instead of build_function_type.
14271         Rearrange initialization of `args' to do so.
14272
14273 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14274
14275         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
14276         instead of build_function_type.
14277
14278 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14279
14280         * config/rs6000/rs6000.c (spe_init_builtins): Call
14281         build_function_type_list instead of build_function_type.
14282         (paired_init_builtins, altivec_init_builtins): Likewise.
14283         (builtin_function_type): Likewise.
14284
14285 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14286
14287         * config/sh/sh.c (sh_media_init_builtins): Call
14288         build_function_type_list instead of build_function_type.
14289
14290 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14291
14292         * config/sparc/sparc.c (sparc_file_end): Call
14293         build_function_type_list instead of build_function_type.
14294
14295 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14296
14297         * config/alpha/alpha.c (alpha_init_builtins): Call
14298         build_function_type_list instead of build_function_type.
14299
14300 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14301
14302         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
14303         build_function_type_list instead of build_function_type.
14304
14305 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14306
14307         * config/iq2000/i2000.c (iq2000_init_builtins): Call
14308         build_function_type_list instead of build_function_type.
14309         Delete `endlink' variable.
14310
14311 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14312
14313         * config/avr/avr.c (avr_init_builtins): Call
14314         build_function_type_list instead of build_function_type.
14315
14316 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14317
14318         * config/picochip/picochip.c (picochip_init_builtins): Call
14319         build_function_type_list instead of build_function_type.
14320         Delete `endlink' variable.
14321
14322 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
14323
14324         * config/bfin/bfin.c (bfin_init_builtins): Call
14325         build_function_type_list instead of build_function_type.
14326
14327 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14328
14329         From Bernd Schmidt
14330         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
14331         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
14332
14333 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14334
14335         From Jie Zhang:
14336         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
14337         libbffastfp overrides libgcc when -mfast-fp.
14338
14339 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14340
14341         Originally from Bernd Schmidt
14342         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
14343         * config/bfin/bfin.c (override_options): Test it and error if
14344         TARGET_FDPIC.
14345
14346 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
14347
14348         Originally From Bernd Schmidt
14349         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
14350         FD-PIC.
14351
14352 2011-05-03  Jeff Law  <law@redhat.com>
14353
14354         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
14355         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
14356         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
14357         than accessing AUX field directly.  Free the AUX field before
14358         clearing it.
14359         (thread_block, thread_through_loop_header): Likewise.
14360         (thread_single_edge, mark_threaded_blocks): Likewise.
14361         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
14362         (register_jump_thread): Do not attempt to thread to a NULL edge.
14363
14364 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
14365
14366         * function.c (init_function_start): Call decide_function_section.
14367         * varasm.c (decide_function_section): New function.
14368         (assemble_start_function): When not using
14369         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
14370         or first_function_block_is_cold.
14371         * rtl.h (decide_function_section): Declare.
14372
14373 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
14374             Jakub Jelinek  <jakub@redhat.com>
14375
14376         PR target/48774
14377         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
14378         only succeed if req_mode is the same as set_mode.
14379
14380 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
14381
14382         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
14383         * genemit.c (gen_exp): Handle RETURN.
14384         * emit-rtl.c (verify_rtx_sharing): Likewise.
14385         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
14386         * rtl.c (copy_rtx): RETURN is shared.
14387         * rtl.h (enum global_rtl_index): Add GR_RETURN.
14388         (ret_rtx): New.
14389         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
14390         * config/s390/s390.c (s390_emit_epilogue): Likewise.
14391         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
14392         * config/cris/cris.c (cris_expand_return): Likewise.
14393         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
14394         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
14395         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
14396         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
14397         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
14398         Likewise.
14399         * config/v850/v850.c (expand_epilogue): Likewise.
14400         * config/bfin/bfin.c (bfin_expand_call): Likewise.
14401         * config/arm/arm.md (epilogue): Likewise.
14402         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
14403         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
14404         variable to ret_reg.
14405
14406 2011-05-03  Richard Guenther  <rguenther@suse.de>
14407
14408         PR lto/48846
14409         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
14410         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
14411         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
14412
14413 2011-05-03  Richard Guenther  <rguenther@suse.de>
14414
14415         * c-decl.c (grokdeclarator): Instead of looking at
14416         TREE_OVERFLOW check if the constant fits in the index type.
14417
14418 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
14419
14420         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
14421         (vec_store_lanes<mode><mode>): Likewise.
14422
14423 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
14424
14425         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
14426         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
14427         convert_optab_index values.
14428         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
14429         * genopinit.c (optabs): Initialize the new optabs.
14430         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
14431         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
14432         (expand_STORE_LANES): New functions.
14433         * tree.h (build_array_type_nelts): Declare.
14434         * tree.c (build_array_type_nelts): New function.
14435         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
14436         (vect_model_load_cost): Likewise.
14437         (vect_store_lanes_supported, vect_load_lanes_supported)
14438         (vect_record_strided_load_vectors): Declare.
14439         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
14440         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
14441         (vect_transform_strided_load): Split out statement recording into...
14442         (vect_record_strided_load_vectors): ...this new function.
14443         * tree-vect-stmts.c (create_vector_array, read_vector_array)
14444         (write_vector_array, create_array_ref): New functions.
14445         (vect_model_store_cost): Add store_lanes_p argument.
14446         (vect_model_load_cost): Add load_lanes_p argument.
14447         (vectorizable_store): Try to use store-lanes functions for
14448         interleaved stores.
14449         (vectorizable_load): Likewise load-lanes and loads.
14450         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
14451         to vect_model_store_cost.
14452         (vect_build_slp_tree): Likewise vect_model_load_cost.
14453
14454 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
14455
14456         * hooks.h (hook_bool_mode_uhwi_false): Declare.
14457         * hooks.c (hook_bool_mode_uhwi_false): New function.
14458         * target.def (array_mode_supported_p): New hook.
14459         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
14460         * doc/tm.texi: Regenerate.
14461         * stor-layout.c (mode_for_array): New function.
14462         (layout_type): Use it.
14463         * config/arm/arm.c (arm_array_mode_supported_p): New function.
14464         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
14465
14466 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
14467
14468         PR target/48723
14469         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
14470         for -fstack-check if the size to allocate is negative.
14471
14472 2011-05-02  Lawrence Crowl  <crowl@google.com>
14473
14474         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
14475         (timevar_cond_start): New for starting a timer only when it is not
14476         already running.
14477         (timevar_cond_stop): New for stopping a timer when it was not already
14478         running.
14479
14480         * timevar.c (timevar_stop): Enable start/stop timers to start again.
14481         (timevar_cond_start): New as above.
14482         (timevar_cond_stop): New as above.
14483
14484         * timevar.def: Add start/stop timers for compiler phases,
14485         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
14486         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
14487         and TV_PHASE_FINALIZE.
14488         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
14489         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
14490         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
14491         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
14492         Make unused TV_OVERLOAD into a start/stop timer.
14493
14494         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
14495         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
14496         to indicate that they are start/stop timers.
14497
14498         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
14499         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
14500         Move initialization to do_compile.
14501         (do_compile): Add initialization from above.
14502         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
14503
14504         * c-decl.c (c_write_global_declarations): Add start/stop of
14505         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
14506
14507         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
14508         or TV_PARSE_INLINE, as appropriate.
14509         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
14510         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
14511
14512 2011-05-02  Jason Merrill  <jason@redhat.com>
14513
14514         PR c++/40975
14515         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
14516
14517 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
14518
14519         PR c/35445
14520         * c-decl.c (finish_decl): Only create a composite if the types are
14521         compatible.
14522
14523 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
14524
14525         * config/fr30/fr30-protos.h (Mmode): Don't define.
14526         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
14527         definition where used.
14528         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
14529         define.  Expand definitions where used.
14530         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
14531         Expand definitions where used.
14532         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
14533         rx_function_arg, rx_function_arg_advance,
14534         rx_function_arg_boundary): Expand definitions of those macros.
14535         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
14536         definition where used.
14537
14538 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
14539
14540         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
14541         reg<->xmm moves.
14542         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
14543         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
14544         with *movv2sf_internal_rex64_avx.
14545         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
14546         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
14547         Use %v prefix in insn mnemonic to handle TARGET_AVX.
14548         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
14549         "vex" in "prefix" attribute calculation.
14550         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
14551
14552 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
14553
14554         PR target/47951
14555         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
14556         inputs match the output.
14557
14558 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
14559
14560         PR target/47955
14561         * config/m68k/m68k.c (m68k_expand_prologue): Set
14562         current_function_static_stack_size.
14563
14564 2011-05-02   Jan Hubicka  <jh@suse.cz>
14565
14566         * lto-streamer.c (lto_streamer_cache_insert_1,
14567         lto_streamer_cache_lookup, lto_streamer_cache_create,
14568         lto_streamer_cache_delete): Use pointer map instead of hashtable.
14569         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
14570
14571 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
14572
14573         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
14574         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
14575         config/m68k/t-opts: New files.
14576         * config/m68k/m68k-tables.opt: New file (generated).
14577         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
14578         extra_options and m68k/t-opts to tmake_file.
14579         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
14580         (all_isas): Initialize using m68k-isas.def.
14581         (all_microarchs): Initialize using m68k-microarchs.def.
14582         (m68k_find_selection): Remove.
14583         (m68k_handle_option): Don't assert that global structures are in
14584         use.  Use error_at.  Access variables via opts pointer.  Don't
14585         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
14586         directly for -m68020-40 and -m68020-60.
14587         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
14588         m68k_tune_entry here.
14589         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
14590         to m68k-opts.h.
14591         (m68k_library_id_string): Remove declaration.
14592         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
14593         (m68k_library_id_string): New Variable.
14594         (march=, mcpu=, mtune=): Use Enum and Var.
14595
14596 2011-05-02  Richard Guenther  <rguenther@suse.de>
14597
14598         * varasm.c (output_constructor_regular_field): Compute zero-based
14599         index with double-ints.  Make sure to ICE instead of producing
14600         wrong code.
14601         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
14602         in asserts.  Properly use a signed type.
14603
14604 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
14605
14606         * config/i386/sse.md (V): New mode iterator.
14607         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
14608         TARGET_SSE2.
14609         (V_256): Rename from AVX256MODE.
14610         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
14611         condition to all users.
14612         (VF1): Ditto.
14613         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
14614         condition to all users.
14615         (VF_128): Make V4SF mode unconditional.
14616         (VF_256): Rename from AVX256MODEF2P.
14617         (VI4F_128): Rename from SSEMODE4S.
14618         (VI8F_128): Rename from SSEMODE2D.
14619         (VI4F_256): Rename from AVX256MODE8P.
14620         (VI8F_256): Rename from AVX256MODE4P.
14621         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
14622         (ssescalarmodesuffix): Remove SF and DF modes.
14623         (SSEMODE124): Remove.
14624         (SSEMODE1248): Ditto.
14625         (SSEMODEF2P): Ditto.
14626         (AVXMODEF2P): Ditto.
14627         (AVXMODEFDP): Ditto.
14628         (AVXMODEFSP): Ditto.
14629         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
14630         unconditional.
14631         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
14632         unconditional.
14633         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
14634         xop_pcmov_<mode>256.  Use V mode iterator.
14635
14636         Adjust RTX patterns globally for renamed mode attributes.
14637
14638 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14639
14640         * haifa-sched.c (sched_emit_insn): Emit insn before first
14641         non-scheduled insn.  Inform back-end about new insn.  Add
14642         new insn to scheduled_insns list.
14643
14644 2011-05-02  Richard Guenther  <rguenther@suse.de>
14645
14646         PR tree-optimization/48822
14647         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
14648         (process_scc): Indicate which iteration we start.
14649
14650 2011-05-02  Jan Hubicka  <jh@suse.cz>
14651
14652         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
14653         (lto_section_overrun): New.
14654         * lto-section-out.c (append_block): Rename to ...
14655         (lto_append_block): ... this one; export.
14656         (lto_output_1_stream): Move lto lto-streamer.h
14657         (lto_output_data_stream): Update.
14658         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
14659         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
14660         functions.
14661
14662 2011-05-02  Richard Guenther  <rguenther@suse.de>
14663
14664         * tree.c (tree_code_counts): New global array.
14665         (record_node_allocation_statistics): Count individual tree codes.
14666         (dump_tree_statistics): Dump individual code stats.
14667
14668 2011-05-01  Jan Hubicka  <jh@suse.cz>
14669
14670         * ipa-inline.c (caller_growth_limits): Fix thinko when
14671         looking for largest stack frame.
14672         * ipa-inline.h (dump_inline_summary): Declare.
14673         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
14674         on stack usage.
14675         (dump_inline_summary): Export.
14676         (debug_inline_summary): Declare as DEBUG_FUNCTION.
14677
14678 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
14679
14680         * reginfo.c (memory_move_cost): Change rclass argument type form
14681         'enum reg_class' to reg_class_t.
14682         * reload.h (memory_move_cost): Update prototype.
14683         * postreload.c reload_cse_simplify_set): Change type dclass var to
14684         reg_class_t.
14685         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
14686         Update prototype.
14687         (ira_allocate_and_set_costs): Change aclass argument type form
14688         'enum reg_class' to reg_class_t.
14689         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
14690         Change aclass argument type to reg_class_t.
14691         (update_conflict_hard_reg_costs): Change type aclass and pref vars
14692         to reg_class_t.
14693         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
14694         memory_move_cost call.
14695
14696         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
14697         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
14698         Change type tmp var to reg_class_t.
14699
14700 2011-04-30  Jan Hubicka  <jh@suse.cz>
14701
14702         * ipa-inline.c (can_inline_edge_p): Disregard limits when
14703         inlining into function with flatten attribute.
14704         (want_inline_small_function_p): Be more realistic about inlining
14705         cold calls where callee size grows.
14706
14707 2011-04-30  Jan Hubicka  <jh@suse.cz>
14708
14709         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
14710         flags.
14711
14712 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
14713
14714         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
14715         PRINT_OPERAND_PUNCT_VALID_P): Remove.
14716         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
14717         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
14718         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14719         (print_operand): Rename to...
14720         (sparc_print_operand): ...this. Make static. Adjust
14721         sparc_print_operand function call.
14722         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
14723         functions.
14724
14725 2011-04-30  Jan Hubicka  <jh@suse.cz>
14726
14727         PR middle-end/48752
14728         * ipa-inline.c (early_inliner): Disable when doing late
14729         addition of function.
14730
14731 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
14732
14733         * dwarf2out.c (get_address_mode): New inline.
14734         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
14735         if not dwarf_strict emit
14736         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
14737         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
14738         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
14739         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
14740         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
14741         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
14742         mem_loc_descriptor callers.
14743         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14744         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
14745         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
14746         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
14747         (base_types): New variable.
14748         (get_base_type_offset, calc_base_type_die_sizes,
14749         base_type_for_mode, mark_base_types, base_type_cmp,
14750         move_marked_base_types): New functions.
14751         (calc_die_sizes): Assert that die_offset is 0 or equal to
14752         next_die_offset.
14753         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
14754         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
14755         callers.  If not dwarf_strict, call mem_loc_descriptor even for
14756         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
14757         (gen_subprogram_die): Don't give up on call site parameters
14758         with non-integral or large integral modes.  Adjust
14759         mem_loc_descriptor callers.
14760         (prune_unused_types): Call prune_unused_types_mark on base_types
14761         vector entries.
14762         (resolve_addr): Call mark_base_types.
14763         (dwarf2out_finish): Call move_marked_base_types.
14764
14765         PR tree-optimization/48809
14766         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
14767         type.
14768         (gen_inbound_check): Don't compute index_expr - range_min in utype
14769         again, instead reuse SSA_NAME initialized in build_arrays.
14770         Remove two useless gsi_for_stmt calls.
14771
14772 2011-04-29  Jeff Law  <law@redhat.com>
14773
14774         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
14775
14776 2011-04-29  Martin Jambor  <mjambor@suse.cz>
14777
14778         * cgraph.h (cgraph_postorder): Remove declaration.
14779         * ipa-utils.h (ipa_free_postorder_info): Declare.
14780         (ipa_reverse_postorder): Likewise.
14781         * cgraphunit.c: Include ipa-utils.h.
14782         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
14783         * ipa-inline.c: Include ipa-utils.h.
14784         (ipa_inline): Update call to ipa_reverse_postorder.
14785         * ipa-pure-const.c (propagate_pure_const): Update call to
14786         ipa_reduced_postorder and ipa_print_order.  Call
14787         ipa_free_postorder_info to clean up.
14788         (propagate_nothrow): Likewise.
14789         * ipa-reference.c (propagate): Removed a useless call to
14790         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
14791         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
14792         * ipa.c: Include ipa-utils.h.
14793         (ipa_profile): Update call to ipa_reverse_postorder.
14794         (cgraph_postorder): Moved to...
14795         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
14796         (ipa_utils_print_order): Renamed to ipa_print_order.
14797         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
14798         comments.
14799         (ipa_free_postorder_info): New function.
14800         * passes.c: Include ipa-utils.h.
14801         (do_per_function_toporder): Update call to ipa_reverse_postorder.
14802         (ipa_write_summaries): Likewise.
14803         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
14804         (cgraphunit.o): Likewise.
14805         (ipa.o): Likewise.
14806         (ipa-inline.o): Likewise.
14807
14808 2011-04-29  Jan Hubicka  <jh@suse.cz>
14809
14810         * gcc.dg/tree-ssa/inline-10.c: New testcase.
14811         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
14812         * ipa-inline.h (clause_t): Turn into unsigned int.
14813         * ipa-inline-analysis.c (add_clause): Do more simplification.
14814         (and_predicates): Shortcut more cases.
14815         (predicates_equal_p): Move forward; check that clauses are properly
14816         ordered.
14817         (or_predicates): Shortcut more cases.
14818         (edge_execution_predicate): Rewrite as...
14819         (set_cond_stmt_execution_predicate): ... this function; handle
14820         __builtin_constant_p.
14821         (set_switch_stmt_execution_predicate): New .
14822         (compute_bb_predicates): New.
14823         (will_be_nonconstant_predicate): Update TODO.
14824         (estimate_function_body_sizes): Use compute_bb_predicates
14825         and free them later, always try to estimate if stmt is constant.
14826         (estimate_time_after_inlining, estimate_size_after_inlining):
14827         Gracefully handle optimized out edges.
14828         (read_predicate): Fix off by one error.
14829
14830 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
14831
14832         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
14833
14834 2011-04-27  Xinliang David Li  <davidxl@google.com>
14835
14836         * tree-profile.c (init_ic_make_global_vars): Set
14837         tls attribute on ic vars.
14838         * coverage.c (coverage_end_function): Initialize
14839         function_list with zero.
14840
14841 2011-04-29  Richard Guenther  <rguenther@suse.de>
14842
14843         * builtins.c (fold_builtin_classify_type): Use integer_type_node
14844         for the type of the result.
14845         (fold_builtin_isascii): Likewise.
14846         (fold_builtin_toascii): Use integer_type_node where appropriate.
14847         (fold_builtin_logb): Likewise.
14848         (fold_builtin_frexp): Likewise.
14849         (fold_builtin_strstr): Likewise.
14850         (fold_builtin_strpbrk): Likewise.
14851         (fold_builtin_fputs): Likewise.
14852         (fold_builtin_sprintf): Likewise.
14853         (fold_builtin_snprintf): Likewise.
14854         (fold_builtin_printf): Likewise.
14855         (do_mpfr_remquo): Use a proper type for the assigned constant.
14856         (do_mpfr_lgamma_r): Likewise.
14857         * dwarf2out.c (resolve_one_addr): Use size_int.
14858         * except.c (init_eh): Likewise.
14859         (assign_filter_values): Use integer_type_node for filter values.
14860         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
14861         indices.
14862         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
14863         for EH region numbers.
14864         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
14865         for the shift amount.
14866
14867 2011-04-29  Richard Guenther  <rguenther@suse.de>
14868
14869         * expr.h (expand_shift): Rename to ...
14870         (expand_variable_shift): ... this.
14871         (expand_shift): Take a constant shift amount.
14872         * expmed.c (expand_shift): Rename to ...
14873         (expand_variable_shift): ... this.
14874         (expand_shift): New wrapper around expand_variable_shift.
14875         * expr.c (convert_move, emit_group_load_1, emit_group_store,
14876         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
14877         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
14878         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
14879         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
14880         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
14881         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
14882         emit_store_flag_1, emit_store_flag): Likewise.
14883         * builtins.c (expand_builtin_signbit): Likewise.
14884         * calls.c (load_register_parameters): Likewise.
14885         * function.c (assign_parm_setup_block): Likewise.
14886         * lower-subreg.c (resolve_shift_zext): Likewise.
14887         * optabs.c (widen_bswap, expand_abs_nojump,
14888         expand_one_cmpl_abs_nojump, expand_float): Likewise.
14889         * spu/spu.c (spu_expand_extv): Likewise.
14890         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
14891
14892 2011-04-29  Richard Guenther  <rguenther@suse.de>
14893
14894         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
14895         for the remapped region number.
14896         * predict.c (build_predict_expr): Use integer_type_node for the
14897         predict kind.
14898         * fold-const.c (fold_binary_loc): Use integer_type_node for
14899         the shift amount.  Use a proper type for the PLUS_EXPR operand.
14900
14901 2011-04-29  Michael Matz  <matz@suse.de>
14902
14903         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
14904         other trees that just builtins.
14905         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
14906
14907 2011-04-29  Richard Guenther  <rguenther@suse.de>
14908
14909         * tree-nested.c (get_trampoline_type): Use size_int.
14910         (get_nl_goto_field): Likewise.
14911         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
14912         for all indexes.
14913         (lower_eh_constructs_2): Likewise.
14914         (lower_resx): Likewise.
14915         (lower_eh_dispatch): Likewise.
14916         * tree-mudflap.c (mf_build_string): Use size_int.
14917         (mudflap_register_call): Use integer_type_node for the flag.
14918         (mudflap_enqueue_constant): Use size_int.
14919         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
14920         instead of rebuilding it.
14921
14922 2011-04-29  Richard Guenther  <rguenther@suse.de>
14923
14924         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
14925         Handle OBJ_TYPE_REF.
14926         (find_func_aliases_for_call): Use it more consistently.
14927
14928 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
14929
14930         * haifa-sched.c (last_nondebug_scheduled_insn): New.
14931         (rank_for_schedule): Use it.
14932         (schedule_block): Set it.
14933
14934 2011-04-28  David Li  <davidxl@google.com>
14935
14936         * tree.c (crc32_string): Use crc32_byte.
14937         (crc32_byte): New function.
14938         * tree.h (crc32_byte): New function.
14939         * gcov.c (read_graph_file): Handle new cfg_cksum.
14940         (read_count_file): Ditto.
14941         * profile.c (instrument_values): Ditto.
14942         (get_exec_counts): Ditto.
14943         (read_profile_edge_counts): Ditto.
14944         (compute_branch_probabilities): Ditto.
14945         (compute_value_histograms): Ditto.
14946         (branch_prob): Ditto.
14947         (end_branch_prob): Ditto.
14948         * coverage.c (read_counts_file): Ditto.
14949         (get_coverage_counts): Ditto.
14950         (tree_coverage_counter_addr): Ditto.
14951         (coverage_checksum_string): Ditto.
14952         (coverage_begin_output): Ditto.
14953         (coverage_end_function): Ditto.
14954         (build_fn_info_type): Ditto.
14955         (build_fn_info_value): Ditto.
14956         * libgcov.c (gcov_exit): Ditto.
14957         * gcov-dump.c (tag_function): Ditto.
14958         (compute_checksum): Remove.
14959
14960 2011-04-29  Alan Modra  <amodra@gmail.com>
14961
14962         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14963         unspec plus offset.  Tidy macho code.
14964
14965 2011-04-29  Martin Jambor  <mjambor@suse.cz>
14966
14967         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
14968         node instead of a decl.  Update all callers.
14969         * cgraph.h: Update declaration.
14970
14971 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
14972
14973         PR tree-optimization/48765
14974         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
14975         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
14976         to indicate if loop aware SLP is being used.  Scan the statements
14977         and update the vectorization factor according to the type of
14978         vectorization before statement analysis.
14979         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
14980         pass it to vect_analyze_loop_operations.
14981         (vectorizable_reduction): Set number of copies to 1 in case of pure
14982         SLP statement.
14983         * tree-vect-stmts.c (vectorizable_conversion,
14984         vectorizable_assignment, vectorizable_shift,
14985         vectorizable_operation, vectorizable_type_demotion,
14986         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
14987         Likewise.
14988         (vectorizable_condition): Move the check that it is not SLP
14989         vectorization before the number of copies check.
14990         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
14991         to vectorize the loop using SLP.
14992
14993 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
14994
14995         PR middle-end/48597
14996         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
14997         inline asm.
14998
14999 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
15000
15001         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
15002         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
15003         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15004         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15005         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
15006         linux*.h headers.
15007         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
15008         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15009         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15010         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15011         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
15012         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
15013         REG_NAME.
15014         * config/i386/linux.h (REG_NAME): Don't define.
15015         * config/i386/linux64.h (REG_NAME): Don't define.
15016         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
15017         Undefine before defining.
15018
15019 2011-04-28  Jan Hubicka  <jh@suse.cz>
15020
15021         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
15022         nonconstant_names array.
15023         (estimate_function_body_sizes): Build nonconstant_names array; handle
15024         BUILT_IN_CONSTANT_P.
15025
15026 2011-04-28  Richard Guenther  <rguenther@suse.de>
15027
15028         PR bootstrap/48804
15029         Revert
15030         2011-04-28  Richard Guenther  <rguenther@suse.de>
15031
15032         * tree-ssa-structalias.c (solve_constraints): Build succ graph
15033         as late as possible.
15034
15035 2011-04-28  Richard Guenther  <rguenther@suse.de>
15036
15037         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
15038         (debug_constraint): Do it here.
15039         (dump_constraints): And here.
15040         (rewrite_constraints): And here.
15041         (dump_constraint_edge): Remove.
15042         (dump_constraint_graph): Rewrite to produce DOT output.
15043         (solve_constraints): Build succ graph as late as possible.
15044         Dump constraint graphs before and after solving.
15045
15046 2011-04-28  Richard Guenther  <rguenther@suse.de>
15047
15048         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15049         New function split out from ...
15050         (find_func_aliases): ... here.  Call it.
15051         (find_func_aliases_for_call): Likewise.
15052
15053 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
15054
15055         * internal-fn.h (internal_fn_name_array): Declare.
15056         (internal_fn_flags_array): Likewise.
15057
15058 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
15059
15060         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
15061         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
15062         Move from sse.md.
15063         (ssemodefsuffix): Remove.
15064         (ssevecmodesuffix): New mode attribute.
15065         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
15066         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
15067         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
15068         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
15069         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
15070         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
15071         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
15072         ssemodesuffix mode attribute.
15073         (float splitters): Use ssevecmodesuffix mode attribute.
15074         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
15075         (sseinsmode): Rename from avxvecmode.
15076         (avxsizesuffix): Rename from avxmodesuffix.
15077         (sseintvecmode): Rename from avxpermvecmode.
15078         (ssedoublevecmode): Rename from ssedoublesizemode.
15079         (ssehalfvecmode): Rename from avxhalfvecmode.
15080         (ssescalarmode): Rename from avxscalarmode.
15081         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
15082         templates for ssemodesuffix mode attribute.
15083         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
15084         mode attribute.
15085
15086         Adjust RTX patterns globally for renamed mode attributes.
15087
15088 2011-04-27  Jan Hubcika  <jh@suse.cz>
15089
15090         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
15091         * ipa-inline-analysis.c: Include alloc-pool.h.
15092         (edge_predicate_pool): New.
15093         (trye_predicate_p): New function
15094         (false_predicate_p): New function.
15095         (add_clause): Sanity check that false clauses are "optimized";
15096         never add clauses to predicate that is already known to be false.
15097         (and_predicate): Use flase_predicate_p.
15098         (evaulate_predicate): Rename to ...
15099         (evaluate_predicate): ... this one; update all callers; assert
15100         that false is not listed among possible truths.
15101         (dump_predicate): Use true_predicate_p.
15102         (account_size_time): Use false_predicate_p.
15103         (evaulate_conditions_for_edge): Rename to ...
15104         (evaluate_conditions_for_edge) ... this one.
15105         (edge_set_predicate): New function.
15106         (inline_edge_duplication_hook): Duplicate edge predicates.
15107         (inline_edge_removal_hook): Free edge predicates.
15108         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
15109         (dump_inline_summary): Update.
15110         (estimate_function_body_sizes): Set edge predicates.
15111         (estimate_calls_size_and_time): Handle predicates.
15112         (estimate_callee_size_and_time): Update.
15113         (remap_predicate): Add toplev_predicate; update comment.
15114         (remap_edge_predicates): New function.
15115         (inline_merge_summary): Compute toplev predicate; update.
15116         (read_predicate): New function.
15117         (read_inline_edge_summary): Use it.
15118         (inline_read_section): Likewise.
15119         (write_predicate): New function.
15120         (write_inline_edge_summary): Use it.
15121         (inline_write_summary): Likewise.
15122         (inline_free_summary): Free alloc pool and edge summary vec.
15123
15124 2011-04-27  Richard Guenther  <rguenther@suse.de>
15125
15126         * tree-ssa-structalias.c (changed_count): Remove.
15127         (changed): Use a bitmap.
15128         (unify_nodes): Adjust.
15129         (do_sd_constraint): Likewise.
15130         (do_ds_constraint): Likewise.
15131         (do_complex_constraint): Likewise.
15132         (solve_graph): Likewise.
15133
15134 2011-04-27  Jan Hubicka  <jh@suse.cz>
15135
15136         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
15137
15138 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
15139
15140         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
15141         (avx_vperm2f128_*_operand): Ditto.
15142         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
15143         Use avx_vpermilp_parallel in insn condition.
15144         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
15145         Use avx_vperm2f128_parallel in insn condition.
15146
15147 2011-04-27  Richard Guenther  <rguenther@suse.de>
15148
15149         * Makefile.in (tree-ssa-structalias.o): Remove
15150         gt-tree-ssa-structalias.h dependency.
15151         (GTFILES): Remove tree-ssa-structalias.c.
15152         * tree.c (allocate_decl_uid): New function.
15153         (make_node_stat): Use it.
15154         (copy_node_stat): Likewise.
15155         * tree.h (allocate_decl_uid): Declare.
15156         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
15157         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
15158         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
15159         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
15160         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
15161         (struct heapvar_map): Likewise.
15162         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
15163         heapvar_insert): Likewise.
15164         (make_heapvar_for): Rename to ...
15165         (make_heapvar): ... this.  Simplify.
15166         (fake_var_decl_obstack): New global var.
15167         (build_fake_var_decl): New function.
15168         (make_constraint_from_heapvar): Adjust.
15169         (handle_lhs_call): Likewise.
15170         (create_function_info_for): Likewise.
15171         (intra_create_variable_infos): Likewise.
15172         (init_alias_vars): Allocate fake_var_decl_obstack.
15173         (init_alias_heapvars, delete_alias_heapvars): Remove.
15174         (compute_points_to_sets): Do not call init_alias_heapvars.
15175         (ipa_pta_execute): Likewise.
15176         (delete_points_to_sets): Free fake_var_decl_obstack.
15177
15178 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15179
15180         * config/spu/divmovti4.c (union qword_UTItype): New data type.
15181         (si_from_UTItype, si_to_UTItype): New functions.
15182         (__udivmodti4): Use them to implement type-punning.
15183         * config/spu/multi3.c (union qword_TItype): New data type.
15184         (si_from_TItype, si_to_TItype): New functions.
15185         (__multi3): Use them to implement type-punning.
15186
15187 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15188
15189         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
15190
15191 2011-04-27  Jan Hubicka  <jh@suse.cz>
15192
15193         * ipa-prop.c (function_insertion_hook_holder): New holder.
15194         (ipa_add_new_function): New function.
15195         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
15196         Register/deregister holder.
15197
15198 2011-04-27  Richard Guenther  <rguenther@suse.de>
15199
15200         PR tree-optimization/48772
15201         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
15202
15203 2011-04-27  Richard Guenther  <rguenther@suse.de>
15204
15205         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
15206         TARGET_MEM_REF handling.
15207
15208 2011-04-27  Nick Clifton  <nickc@redhat.com>
15209
15210         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
15211         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
15212         (REG_CLASS_NAMES): Likewise.
15213         (REG_CLASS_CONTENTS): Likewise.
15214         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
15215         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
15216         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
15217         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
15218         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
15219         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
15220         duplicate register classes.
15221         (frv_class_likely_spilled_p): Likewise.
15222         (frv_register_move_cost): Likewise.
15223
15224         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
15225         end of the regno_reg_class array.
15226
15227 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
15228
15229         PR c/48742
15230         * c-typeck.c (build_binary_op): Don't wrap arguments if
15231         int_operands is true.
15232
15233 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
15234
15235         PR target/48767
15236         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
15237         targetm.calls.must_pass_in_stack for void type.
15238
15239 2011-04-26  Jan Hubicka  <jh@suse.cz>
15240
15241         * cgraphbuild.c (build_cgraph_edges): Update call
15242         of cgraph_create_edge and cgraph_create_indirect_edge.
15243         * cgraph.c (cgraph_create_edge_including_clones,
15244         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
15245         cgraph_update_edges_for_call_stmt_node): Do not take nest
15246         argument; do not initialize call_stmt_size/time.
15247         (dump_cgraph_node): Do not dump nest.
15248         (cgraph_clone_edge): Do not take loop_nest argument;
15249         do not propagate it; do not clone call_stmt_size/time.
15250         (cgraph_clone_node): Likewise.
15251         (cgraph_create_virtual_clone): Update.
15252         * cgraph.h (struct cgraph_edge): Remove
15253         call_stmt_size/call_stmt_time/loop_nest.
15254         (cgraph_create_edge, cgraph_create_indirect_edge,
15255         cgraph_create_edge_including_clones, cgraph_clone_node): Update
15256         prototype.
15257         * tree-emutls.c (gen_emutls_addr): Update.
15258         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
15259         loop_nest; handle indirect calls, too.
15260         (clone_inlined_nodes): Do not care about updating inline summaries.
15261         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
15262         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
15263         stream call_stmt_size/call_stmt_time/loop_nest.
15264         * ipa-inline.c (edge_badness): Update.
15265         (ipa_inline): dump summaries after inlining.
15266         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
15267         New.
15268         (inline_edge_summary): New function.
15269         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
15270         (inline_edge_removal_hook): Handle edge summaries.
15271         (inline_edge_duplication_hook): New hook.
15272         (inline_summary_alloc): Alloc hooks.
15273         (initialize_growth_caches): Do not register removal hooks.
15274         (free_growth_caches); Do not free removal hook.
15275         (dump_inline_edge_summary): New function.
15276         (dump_inline_summary): Use it.
15277         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
15278         (inline_update_callee_summaries): New function.
15279         (inline_merge_summary): Use it.
15280         (do_estimate_edge_time, do_estimate_edge_growth): Update.
15281         (read_inline_edge_summary): New function.
15282         (inline_read_section): Use it.
15283         (write_inline_edge_summary): New function.
15284         (inline_write_summary): Use it.
15285         (inline_free_summary): Free edge new holders.
15286         * tree-inline.c (copy_bb): Update.
15287
15288 2011-04-26  Jason Merrill  <jason@redhat.com>
15289
15290         * tree-eh.c (lower_try_finally_switch): Create the label along with
15291         the CASE_LABEL_EXPR.
15292
15293 2011-04-26  David S. Miller  <davem@davemloft.net>
15294             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15295
15296         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
15297         * configure: Regenerate.
15298
15299 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
15300
15301         PR target/48258
15302         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
15303         reduction.
15304         (VEC_reduc): New code iterator and splitters for vector reduction.
15305         (VEC_reduc_name): Ditto.
15306         (VEC_reduc_rtx): Ditto.
15307         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
15308         (reduc_<VEC_reduc_name>_v4sf): Ditto.
15309
15310         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15311         support for extracting SF on VSX.
15312
15313         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
15314         generating xscvspdp.
15315         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
15316         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
15317         double add, minimum, maximum vector reduction.
15318         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
15319         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
15320         optimize double vector reduction.
15321         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
15322
15323 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
15324
15325         * config/fr30/fr30.h (inhibit_libc): Don't define.
15326         * config/m32r/m32r-protos.h: Correct comment.
15327         * config/v850/v850.h (GHS_default_section_names,
15328         GHS_current_section_names): Use tree, not union tree_node *.
15329
15330 2011-04-26  Xinliang David Li  <davidxl@google.com>
15331
15332         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
15333         * c-family/c-opts.c (c_common_handle_option): Set
15334         warn_maybe_uninitialized.
15335         * opts.c (common_handle_option): Ditto.
15336         * common.opt:  New option.
15337         * tree-ssa.c (warn_uninit): Add one more parameter.
15338         (warn_uninitialized_var): Pass warning code.
15339         * tree-flow.h: Interface change.
15340
15341 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15342
15343         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
15344         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
15345         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
15346
15347 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15348
15349         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
15350         * config/mips/mips.opt (mmips-tfile): Remove.
15351
15352         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
15353         mips-tdump reference to ...
15354         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
15355         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
15356         reference by Tru64 UNIX.
15357
15358 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
15359
15360         PR debug/48768
15361         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
15362         is error_mark_node, set value to NULL.
15363
15364         PR tree-optimization/48734
15365         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
15366         if return value from maybe_fold_*_comparsions isn't something
15367         the code is prepared to handle.
15368
15369 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
15370
15371         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
15372         mode check.
15373         (ext_QIreg_nomode_operands): Remove.
15374         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
15375         (*andsi_1): Ditto.
15376         (*andhi_1): Ditto.
15377
15378 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
15379
15380         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
15381
15382 2011-04-26  Richard Guenther  <rguenther@suse.de>
15383
15384         * c-typeck.c (build_unary_op): Do not expand array-refs via
15385         pointer arithmetic.  Only adjust qualifiers for function types.
15386
15387 2011-04-26  Richard Guenther  <rguenther@suse.de>
15388
15389         PR middle-end/48694
15390         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
15391         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
15392         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
15393         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
15394
15395 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
15396
15397         * doc/extend.texi: Document __underlying_type.
15398
15399 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
15400
15401         * config/rs6000/titan.md (automata_option "progress"): Remove.
15402
15403 2011-04-25  Jeff Law  <law@redhat.com>
15404
15405         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
15406
15407 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
15408
15409         * system.h (ENUM_BITFIELD): Remove.
15410
15411 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
15412             Eric Botcazou  <ebotcazou@adacore.com>
15413
15414         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
15415         for STORE_FLAG_VALUE==-1 case.
15416
15417 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
15418
15419         PR target/43804
15420         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
15421         LEGITIMATE_PIC_OPERAND_P.
15422
15423 2011-04-24  Jan Hubicka  <jh@suse.cz>
15424
15425         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
15426         WPA hack.
15427         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
15428         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
15429         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
15430         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
15431         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
15432         Sanity check predicate length.
15433         (remap_predicate): Likewise; sanity check jump functions.
15434         (inline_read_section, inline_write_summary): Sanity check
15435         predicate length.
15436
15437 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
15438
15439         PR other/48748
15440         * doc/extend.texi (Type Traits): Document __is_standard_layout,
15441         __is_literal_type, and __is_trivial; update throughout about
15442         possibly cv-qualified void types.
15443
15444 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
15445
15446         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
15447         testsuite and make it version agnostic.
15448
15449 2011-04-22  Jan Hubicka  <jh@suse.cz>
15450
15451         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
15452
15453 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
15454
15455         PR c/48685
15456         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
15457         to VOID_TYPE even around MODIFY_EXPR.
15458
15459 2011-04-22  Mike Stump  <mikestump@comcast.net>
15460
15461         * gensupport.c (read_md_rtx): Fix typo in comment.
15462         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
15463         comment.
15464
15465 2011-04-22  Jan Hubicka  <jh@suse.cz>
15466
15467         * gengtype.c (open_base_files): Add ipa-inline.h include.
15468         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
15469         ipa-prop.c; update all uses.
15470         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
15471         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
15472         merge summary of inlined function into former caller.
15473         * ipa-inline.c (max_benefit): Remove.
15474         (edge_badness): Compensate for removal of benefits.
15475         (update_caller_keys): Use
15476         reset_node_growth_cache/reset_edge_growth_cache.
15477         (update_callee_keys): Likewise.
15478         (update_all_callee_keys): Likewise.
15479         (inline_small_functions): Do not collect max_benefit; do not reset
15480         estimated_growth; call free_growth_caches and initialize_growth_caches.
15481         * ipa-inline.h (struct condition, type clause_t, struct predicate,
15482         struct size_time_entry): New structures.
15483         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
15484         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
15485         and estimated_growth.
15486         (edge_growth_cache_entry): New structure.
15487         (node_growth_cache, edge_growth_cache): New global vars.
15488         (estimate_growth): Turn into inline.
15489         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
15490         initialize_growth_caches, free_growth_caches): Declare.
15491         (estimate_edge_growth): Rewrite.
15492         (estimate_edge_time): Implement as inline cache lookup.
15493         (reset_node_growth_cache, reset_edge_growth_cache): New inline
15494         functions.
15495         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
15496         (NUM_CONDITIONS): New constant.
15497         (predicate_conditions): New enum.
15498         (IS_NOT_CONSTANT): New constant.
15499         (edge_removal_hook_holder): New var.
15500         (node_growth_cache, edge_growth_cache): New global vars.
15501         (true_predicate, single_cond_predicate, false_predicate,
15502         not_inlined_predicate, add_condition, add_clause, and_predicates,
15503         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
15504         dump_clause, dump_predicate, account_size_time,
15505         evaulate_conditions_for_edge): New functions.
15506         (inline_summary_alloc): Move to heap.
15507         (inline_node_removal_hook): Clear condition and entry vectors.
15508         (inline_edge_removal_hook): New function.
15509         (initialize_growth_caches, free_growth_caches): New function.
15510         (dump_inline_summary): Update.
15511         (edge_execution_predicate): New function.
15512         (will_be_nonconstant_predicate): New function.
15513         (estimate_function_body_sizes): Compute BB and constantness predicates.
15514         (compute_inline_parameters): Do not clear estimated_growth.
15515         (estimate_edge_size_and_time): New function.
15516         (estimate_calls_size_and_time): New function.
15517         (estimate_callee_size_and_time): New function.
15518         (remap_predicate): New function.
15519         (inline_merge_summary): New function.
15520         (do_estimate_edge_time): New function based on...
15521         (estimate_edge_time): ... this one.
15522         (do_estimate_edge_growth): New function.
15523         (do_estimate_growth): New function based on....
15524         (estimate_growth): ... this one.
15525         (inline_analyze_function): Analyze after deciding on jump functions.
15526         (inline_read_section): New function.
15527         (inline_read_summary): Use it.
15528         (inline_write_summary): Write all the new data.
15529         * ipa-prop.c (ipa_get_param_decl_index): Export.
15530         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
15531         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
15532         Declare.
15533         (ipa_get_lattice): Move here from ipa-cp.c
15534         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
15535         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
15536         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
15537         cgraph_edge_inlinable_p): Remove.
15538         * cgraphunit.c: Include ipainline.h
15539         (cgraph_process_new_functions): Update call of
15540         compute_inline_parameters.
15541
15542 2011-04-22  Richard Guenther  <rguenther@suse.de>
15543
15544         * tree.c (build_int_cst): Properly create canonicalized integer
15545         constants.
15546         (build_int_cst_type): Remove scary comments.
15547
15548 2011-04-22  Xinliang David Li  <davidxl@google.com>
15549
15550         * toplev.c (process_options): Enable -Werror=coverage-mismatch
15551         by default when -Wno-error is not specified.
15552         * opts-global.c (decode_options): Remove call to
15553         control_warning_options.
15554
15555 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
15556
15557         PR tree-optimization/48717
15558         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
15559         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
15560
15561 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
15562
15563         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
15564         definition where used.
15565
15566 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
15567
15568         PR c/48716
15569         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
15570         TREE_STATIC variables declared inside of some OpenMP construct.
15571
15572 2011-04-22  Martin Jambor  <mjambor@suse.cz>
15573
15574         PR middle-end/48585
15575         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
15576
15577 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
15578
15579         PR c/36750
15580         * c-typeck.c (pop_init_level): Do not warn about initializing
15581         with ` = {0}'.
15582
15583 2011-04-22  Alan Modra  <amodra@gmail.com>
15584
15585         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
15586         when returning call_cookie.
15587         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
15588         pointers, to functions with no more vector args than the current
15589         function, and some non-local calls for ABI_V4.
15590         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
15591         sibcall_nonlocal_aix64): Combine to ..
15592         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
15593         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
15594         (sibcall_value_nonlocal_aix<mode>): ..likewise.
15595         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
15596         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
15597         operand.
15598         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
15599         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
15600         sibcall_value_symbolic_64): Delete.
15601
15602 2011-04-21  Xinliang David Li  <davidxl@google.com>
15603
15604         * cgraph.h: Remove pid.
15605         * cgraph.c: Remove pid.
15606         * value-prof.c (init_node_map): New function.
15607         (del_node_map): New function.
15608         (find_func_by_funcdef_no): New function.
15609         (gimple_ic_transform): Call new function.
15610         * cgraphunit.c (cgraph_finalize_function): Remove pid.
15611         * function.c (get_last_funcdef_no): New function.
15612         * function.h (get_last_funcdef_no): New function.
15613         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
15614         to libgcov function.
15615         (tree-profiling): Call node map init and delete function.
15616
15617 2011-04-21  Ian Lance Taylor  <iant@google.com>
15618
15619         * godump.c (go_format_type): Use exported Go name for anonymous
15620         field name.
15621
15622 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
15623
15624         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
15625         Call builtin_function_type_list instead of builtin_function_type.
15626         (UNARY, BINARY, TRINARY, QUAD): Likewise.
15627
15628 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
15629
15630         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
15631         build_function_type_list instead of build_function_type.
15632         Delete variable `endlink'.
15633
15634 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
15635
15636         * config/s390/s390.c (s390_init_builtins): Call
15637         build_function_type_list instead of build_function_type.
15638
15639 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
15640
15641         * config/ia64/ia64.c (ia64_init_builtins): Call
15642         build_function_type_list instead of builtin_function_type.
15643
15644 2011-04-21  Easwaran Raman  <eraman@google.com>
15645
15646         * cfgexpand.c (stack_var): Remove OFFSET...
15647         (add_stack_var): ...and its reference here...
15648         (expand_stack_vars): ...and here.
15649         (stack_var_cmp): Sort by descending order of size.
15650         (partition_stack_vars): Change heuristic.
15651         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
15652         (dump_stack_var_partition): Add newline after each partition.
15653
15654 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
15655             Jeff Law  <law@redhat.com>
15656
15657         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
15658         * gengtype.c (matching_file_name_substitute): Likewise.
15659
15660 2011-04-21  Richard Guenther  <rguenther@suse.de>
15661
15662         PR lto/48703
15663         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
15664
15665 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
15666
15667         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
15668
15669 2011-04-21  Richard Guenther  <rguenther@suse.de>
15670
15671         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
15672         file name.
15673
15674 2011-04-21  Richard Guenther  <rguenther@suse.de>
15675
15676         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
15677         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
15678         Use DECL_P, not SSA_VAR_P.
15679         (ptr_derefs_may_alias_p): Likewise.
15680         (ptr_deref_may_alias_ref_p_1): Likewise.
15681         (decl_refs_may_alias_p): Likewise.
15682         (refs_may_alias_p_1): Likewise.
15683         (ref_maybe_used_by_call_p_1): Likewise.
15684         (call_may_clobber_ref_p_1): Likewise.
15685         (indirect_ref_may_alias_decl_p): Assume indirect refrences
15686         are either MEM_REF or TARGET_MEM_REF.
15687         (indirect_refs_may_alias_p): Likewise.
15688         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
15689         for MEM_EXPR of indirect calls.
15690
15691 2011-04-21  Tristan Gingold  <gingold@adacore.com>
15692
15693         * vmsdbgout.c (write_srccorr): Compute file length from the string.
15694         (dst_file_info_struct): Remove flen field.
15695         (lookup_filename): Remove code that set flen field.
15696
15697 2011-04-21  Tristan Gingold  <gingold@adacore.com>
15698
15699         * config/ia64/ia64.c (ia64_start_function): Add a guard.
15700
15701 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
15702
15703         PR target/48708
15704         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
15705         vec_extract and vec_concat for non-SSE4_1 targets.
15706
15707 2011-04-21  Richard Guenther  <rguenther@suse.de>
15708
15709         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
15710         return statements.
15711
15712 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
15713
15714         * config/i386/cygming.h (union tree_node, TREE): Don't define or
15715         undefine.
15716         (FILE): Don't undefine.
15717
15718 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
15719
15720         * config/alpha/alpha.c (struct machine_function): Use rtx, not
15721         struct rtx_def *.
15722         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
15723         struct rtx_def *.
15724         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
15725         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
15726         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
15727         rtx_def *.
15728         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
15729         definitions where used.
15730         * config/microblaze/microblaze.h (struct microblaze_args): Use
15731         rtx, not struct rtx_def *.
15732         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
15733         rtx_def *.
15734         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
15735         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
15736         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
15737         not struct rtx_def *.
15738         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
15739         struct rtx_def *.
15740         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
15741         rtx_def *.
15742         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
15743
15744 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
15745
15746         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
15747         operand_equal_p to compare DR_BASE_ADDRESSes.
15748         (vect_check_interleaving): Likewise.
15749
15750 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
15751
15752         PR target/46329
15753         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
15754         for all Neon struct constants.
15755
15756 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
15757
15758         * target.def (legitimate_constant_p): New hook.
15759         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
15760         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
15761         * doc/tm.texi: Regenerate.
15762         * hooks.h (hook_bool_mode_rtx_true): Declare.
15763         * hooks.c (hook_bool_mode_rtx_true): Define.
15764         * system.h (LEGITIMATE_CONSTANT_P): Poison.
15765         * calls.c (precompute_register_parameters): Replace uses of
15766         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
15767         (emit_library_call_value_1): Likewise.
15768         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
15769         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
15770         * ira-costs.c (scan_one_insn): Likewise.
15771         * recog.c (general_operand, immediate_operand): Likewise.
15772         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
15773         * reload1.c (init_eliminable_invariants): Likewise.
15774
15775         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
15776         mode argument.
15777         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
15778         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
15779         argument.
15780         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15781         * config/alpha/predicates.md (input_operand): Update call to
15782         alpha_legitimate_constant_p.
15783
15784         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
15785         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
15786         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
15787         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15788         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
15789         (arm_legitimate_constant_p): New functions.
15790         (arm_cannot_force_const_mem): Make static.
15791
15792         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
15793
15794         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
15795         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
15796         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
15797         instead of bfin_legitimate_constant_p.
15798         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
15799         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15800
15801         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
15802
15803         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
15804
15805         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
15806         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
15807         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15808         (frv_legitimate_constant_p): Make static.  Add a mode argument.
15809
15810         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
15811         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
15812         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
15813
15814         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
15815         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
15816         * config/i386/i386.c (legitimate_constant_p): Rename to...
15817         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
15818         argument.
15819         (ix86_cannot_force_const_mem): Update accordingly.
15820         (ix86_legitimate_address_p): Likewise.
15821         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15822         * config/i386/i386.md: Update commentary.
15823
15824         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
15825         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
15826         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15827         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
15828
15829         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
15830
15831         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
15832         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
15833         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15834         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
15835
15836         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
15837         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
15838         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
15839
15840         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
15841         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15842         (m32r_legitimate_constant_p): New function.
15843
15844         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
15845         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
15846         LEGITIMATE_CONSTANT_P.
15847         (LEGITIMATE_CONSTANT_P): Delete.
15848         * config/m68k/m68k.c (m68k_expand_prologue): Call
15849         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
15850         (m68k_legitimate_constant_p): New function.
15851         * config/m68k/m68k.md: Update comments.
15852
15853         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
15854         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15855         (mcore_legitimate_constant_p): New function.
15856
15857         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
15858         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
15859         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
15860         Add a mode argument.
15861         (mep_legitimate_address): Update accordingly.
15862         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15863
15864         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
15865         Delete.
15866         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
15867         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
15868         static.  Check OP's mode for VOIDmode.
15869         (microblaze_legitimate_constant_p): New function.
15870         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15871
15872         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
15873         * config/mips/mips.c (mips_legitimate_constant_p): New function.
15874         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
15875         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15876         * config/mips/predicates.md: Update comments.
15877
15878         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
15879         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
15880         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15881         (mmix_legitimate_constant_p): Make static, return a bool, and take
15882         a mode argument.
15883         (mmix_print_operand_address): Update accordingly.
15884
15885         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
15886         Delete.
15887         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
15888         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
15889         static.  Add a mode argument.
15890         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15891
15892         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
15893
15894         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
15895         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15896         (pa_legitimate_constant_p): New function.
15897
15898         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
15899
15900         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
15901         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15902         (pdp11_legitimate_constant_p): New function.
15903
15904         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
15905         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15906         (rs6000_legitimate_constant_p): New function.
15907
15908         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
15909         (rx_legitimate_constant_p): ...this.
15910         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
15911         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
15912         (rx_legitimate_constant_p): ...this.
15913         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15914         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
15915
15916         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
15917         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
15918         * config/s390/s390.c (legitimate_constant_p): Rename to...
15919         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
15920         and add a mode argument.
15921         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15922
15923         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
15924
15925         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
15926         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15927         (sh_legitimate_constant_p): New function.
15928
15929         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
15930         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
15931         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15932         (legitimate_constant_p): Rename to...
15933         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
15934         argument.
15935         (constant_address_p): Update accordingly.
15936
15937         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
15938         argument and return a bool.
15939         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
15940         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15941         (spu_legitimate_constant_p): Add a mode argument and return a bool.
15942         (spu_rtx_costs): Update accordingly.
15943         * config/spu/predicates.md (vec_imm_operand): Likewise.
15944
15945         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
15946
15947         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
15948         * config/v850/v850.c (v850_legitimate_constant_p): New function.
15949         (TARGET_LEGITIMATE_CONSTANT_P): Define.
15950
15951         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
15952         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
15953         * config/vax/vax.c (legitimate_constant_p): Likewise.
15954
15955         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
15956         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
15957         (xtensa_legitimate_constant_p): New function.
15958
15959 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
15960
15961         * target.def (cannot_force_const_mem): Add a mode argument.
15962         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
15963         * doc/tm.texi: Regenerate.
15964         * hooks.h (hook_bool_mode_rtx_false): Declare.
15965         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
15966         (hook_bool_mode_const_rtx_true): Likewise.
15967         (hook_bool_mode_rtx_false): New function.
15968         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
15969         to be non-VOID.  Update call to cannot_force_const_mem.
15970         (find_reloads): Update accordingly.
15971         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
15972         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
15973         argument.
15974         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
15975         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
15976         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
15977         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
15978         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
15979         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
15980         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
15981         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
15982         (m68k_cannot_force_const_mem): ...this new function.
15983         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
15984         argument.
15985         (mips_const_insns, mips_legitimize_const_move): Update calls.
15986         (mips_secondary_reload_class): Likewise.
15987         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
15988         (pa_cannot_force_const_mem): ...this new function.
15989         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
15990         (rs6000_cannot_force_const_mem): ...this new function.
15991         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
15992         argument.
15993         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
15994         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
15995         to...
15996         (xtensa_cannot_force_const_mem): ...this new function.
15997
15998 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
15999
16000         * config/mips/mips.c (mips16_build_function_stub): Call
16001         build_function_type_list instead of build_function_type.
16002         (mips16_build_call_stub): Likewise.
16003
16004 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
16005
16006         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
16007         instead of build_function_type.
16008
16009 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
16010
16011         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
16012         instead of build_function_type.
16013
16014 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
16015
16016         PR target/48678
16017         * config/i386/i386.md (insv): Change operand 0 constraint to
16018         "register_operand".  Change operand 1 and 2 constraint to
16019         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
16020         * config/i386/sse.md (sse4_1_pinsrb): Export.
16021         (sse2_pinsrw): Ditto.
16022         (sse4_1_pinsrd): Ditto.
16023         (sse4_1_pinsrq): Ditto.
16024         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
16025         * config/i386/i386.c (ix86_expand_pinsr): New.
16026
16027 2011-04-20  Easwaran Raman  <eraman@google.com>
16028
16029         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
16030         containing union type only with -fstrict-aliasing.
16031
16032 2011-04-20  Jim Meyering  <meyering@redhat.com>
16033
16034         Remove useless if-before-free tests.
16035         * calls.c (expand_call, save_area): Likewise.
16036         * cfgcleanup.c (try_forward_edges): Likewise.
16037         * collect2.c (collect_execute): Likewise.
16038         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
16039         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
16040         * coverage.c (coverage_checksum_string): Likewise.
16041         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
16042         * cselib.c (cselib_init): Likewise.
16043         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
16044         (df_set_clean_cfg): Likewise.
16045         * function.c (free_after_compilation): Likewise.
16046         * gcc.c (do_spec_1, main): Likewise.
16047         * gcov.c (create_file_names): Likewise.
16048         * gensupport.c (identify_predicable_attribute): Likewise.
16049         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
16050         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
16051         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
16052         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
16053         * ipa-pure-const.c (local_pure_const): Likewise.
16054         * ipa-reference.c (propagate): Likewise.
16055         * ira-costs.c (free_ira_costs): Likewise.
16056         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
16057         * matrix-reorg.c (mat_free): Likewise.
16058         * prefix.c (get_key_value): Likewise.
16059         * profile.c (compute_value_histograms): Likewise.
16060         * reload1.c (free_reg_equiv): Likewise.
16061         * sched-deps.c (free_deps): Likewise.
16062         * sel-sched-ir.c (fence_clear): Likewise.
16063         * sese.c (set_rename, if_region_set_false_region): Likewise.
16064         * tree-data-ref.c (free_rdg): Likewise.
16065         * tree-eh.c (lower_try_finally): Likewise.
16066         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
16067         * tree-ssa-live.c (delete_var_map): Likewise.
16068         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
16069         * tree-ssa-pre.c (phi_trans_add): Likewise.
16070
16071 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
16072
16073         PR tree-optimization/48611
16074         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
16075         beyond ERT_MUST_NOT_THROW region.
16076
16077 2011-04-20  Catherine Moore  <clm@codesourcery.com>
16078
16079         * config/mips/mips.opt (mfix-24k): New.
16080         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
16081         * config/mips/mips.md (length): Increase by 4 for stores if
16082         fixing 24K errata.
16083         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
16084         all noreorder if fixing 24K errata.
16085         * doc/invoke.texi: Document mfix-24k.
16086
16087 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
16088
16089         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
16090         quad-word modes, reduce to 9-bit index range when above 1016 limit.
16091
16092 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
16093
16094         * config/arm/arm.c (arm_gen_constant): Move movw support ....
16095         (const_ok_for_op): ... to here.
16096
16097 2011-04-20  Kai Tietz  <ktietz@redhat.com>
16098
16099         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
16100         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
16101
16102 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
16103
16104         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
16105
16106 2011-04-20  Richard Guenther  <rguenther@suse.de>
16107
16108         PR tree-optimization/47892
16109         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
16110         are if-convertible.
16111
16112 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
16113
16114         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
16115
16116 2011-04-20  Tristan Gingold  <gingold@adacore.com>
16117
16118         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
16119
16120 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
16121
16122         PR target/18145
16123
16124         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
16125         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
16126         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
16127         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
16128         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
16129
16130         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
16131         New prototype.
16132
16133         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
16134         (avr_asm_named_section, avr_asm_output_aligned_common,
16135         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
16136         New functions to update...
16137         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
16138         (avr_asm_init_sections): Overwrite section callbacks for
16139         data_section, bss_section.
16140         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
16141         from here to...
16142         (avr_file_end): ...here.
16143
16144 2011-04-20  Richard Guenther  <rguenther@suse.de>
16145
16146         PR middle-end/48695
16147         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
16148         objects and types here.  Adjust for their offset before comparing.
16149
16150 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
16151
16152         * tree-vect-stmts.c (vectorizable_store): Only chain one related
16153         statement per copy.
16154
16155 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
16156
16157         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
16158         (GIMPLE_H): Include $(INTERNAL_FN_H).
16159         (OBJS-common): Add internal-fn.o.
16160         (internal-fn.o): New rule.
16161         * internal-fn.def: New file.
16162         * internal-fn.h: Likewise.
16163         * internal-fn.c: Likewise.
16164         * gimple.h: Include internal-fn.h.
16165         (GF_CALL_INTERNAL): New gf_mask.
16166         (gimple_statement_call): Put fntype into a union with a new
16167         internal_fn field.
16168         (gimple_build_call_internal): Declare.
16169         (gimple_build_call_internal_vec): Likewise.
16170         (gimple_call_same_target_p): Likewise.
16171         (gimple_call_internal_p): New function.
16172         (gimple_call_internal_fn): Likewise.
16173         (gimple_call_fntype): Return null for internal calls.
16174         (gimple_call_set_fntype): Assert that the function is not internal.
16175         (gimple_call_set_fn): Likewise.
16176         (gimple_call_set_fndecl): Likewise.
16177         (gimple_call_set_internal_fn): New function.
16178         (gimple_call_addr_fndecl): Handle null functions.
16179         (gimple_call_return_type): Likewise null types.
16180         * gimple.c (gimple_build_call_internal_1): New function.
16181         (gimple_build_call_internal): Likewise.
16182         (gimple_build_call_internal_vec): Likewise.
16183         (gimple_call_same_target_p): Likewise.
16184         (gimple_call_flags): Handle calls to internal functions.
16185         (gimple_call_fnspec): New function.
16186         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
16187         (gimple_has_side_effects): Handle null functions.
16188         (gimple_rhs_has_side_effects): Likewise.
16189         (gimple_call_copy_skip_args): Handle calls to internal functions.
16190         * cfgexpand.c (expand_call_stmt): Likewise.
16191         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
16192         * gimple-fold.c (gimple_fold_call): Handle null functions.
16193         (gimple_fold_stmt_to_constant_1): Don't fold
16194         calls to internal functions.
16195         * gimple-low.c (gimple_check_call_args): Handle calls to internal
16196         functions.
16197         * gimple-pretty-print.c (dump_gimple_call): Likewise.
16198         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
16199         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
16200         (do_warn_unused_result): Likewise.
16201         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
16202         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
16203         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
16204         the target of a call.
16205         (initialize_hash_element): Update accordingly.
16206         (hashable_expr_equal_p): Use gimple_call_same_target_p.
16207         (iterative_hash_hashable_expr): Handle calls to internal functions.
16208         (print_expr_hash_elt): Likewise.
16209         * tree-ssa-pre.c (can_value_number_call): Likewise.
16210         (eliminate): Handle null functions.
16211         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
16212         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
16213         (find_func_aliases): Likewise.
16214         * value-prof.c (gimple_ic_transform): Likewise.
16215         (gimple_indirect_call_to_profile): Likewise.
16216         * lto-streamer-in.c (input_gimple_stmt): Likewise.
16217         * lto-streamer-out.c (output_gimple_stmt): Likewise.
16218
16219 2011-04-19  Jan Hubicka  <jh@suse.cz>
16220
16221         * ipa-inline-transform.c (save_inline_function_body): Add comments.
16222         * ipa-inline.c (inline_small_functions): Compute summaries first,
16223         populate heap later.
16224
16225 2011-04-19  Jan Hubicka  <jh@suse.cz>
16226
16227         * cgraph.h (save_inline_function_body): Remove.
16228         * ipa-inline-transform.c: New file, broke out of...
16229         * ipa-inline.c: ... this one; Update toplevel comment.
16230         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
16231         make global.
16232         (update_noncloned_frequencies): Move to ipa-inline-transform.c
16233         (cgraph_mark_inline_edge): Rename to inline_call; move to
16234         ipa-inline-transform.c.
16235         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
16236         move to ipa-inline-transform.c
16237         (recursive_inlining, inline_small_functions, flatten_function,
16238         ipa_inline, inline_always_inline_functions,
16239         early_inline_small_functions): Update.
16240         (inline_transform): Move to ipa-inline-transform.c.
16241         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
16242         Declare.
16243         * Makefile.in (ipa-inline-transform.o): New file.
16244         * cgraphunit.c (save_inline_function_body): Move to
16245         ipa-inline-transform.c
16246
16247 2011-04-19  DJ Delorie  <dj@redhat.com>
16248
16249         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
16250         registers if we already know there aren't any.
16251         (m32c_emit_epilogue): Don't emit a barrier here.
16252         (m32c_emit_eh_epilogue): Likewise.
16253         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
16254         operands at expand time.
16255         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
16256         int" wchar type.
16257         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
16258         duplicates.  Provide aliases instead.
16259         * config/m32c/prologue.md (eh_return): Emit a barrier here.
16260         (eh_epilogue): Add a "(return)" here as a hint to other parts of
16261         the compiler.
16262
16263 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
16264
16265         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
16266         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
16267         (general_or_i64_p, sparc_register_move_cost): New function.
16268
16269 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16270
16271         * doc/install.texi (Configuration, --enable-threads): Remove mach.
16272         Add lynx, mipssde.  Sort table.
16273
16274 2011-04-19  Xinliang David Li  <davidxl@google.com>
16275
16276         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
16277         not negative.
16278
16279 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
16280
16281         PR target/48678
16282         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
16283         is a SUBREG with non-MODE_INT mode inside of it.
16284
16285 2011-04-19  Martin Jambor  <mjambor@suse.cz>
16286
16287         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
16288         also according to actual contants.
16289         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
16290         (gimple_fold_call): Use it.
16291         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
16292
16293 2011-04-19  Martin Jambor  <mjambor@suse.cz>
16294
16295         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
16296         non-pointer assignments.
16297
16298 2011-04-19  Martin Jambor  <mjambor@suse.cz>
16299
16300         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
16301         account anc_offset and otr_type from the indirect edge info.
16302         * ipa-prop.c (get_ancestor_addr_info): New function.
16303         (compute_complex_ancestor_jump_func): Assignment analysis moved to
16304         get_ancestor_addr_info, call it.
16305         (ipa_note_param_call): Do not initialize information about polymorphic
16306         calls, return the indirect call graph edge.  Remove the last
16307         parameter, adjust all callers.
16308         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
16309         parameters.  Initialize polymorphic information in the indirect edge.
16310
16311 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
16312
16313         PR lto/48148
16314         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
16315         the types if they have different enumeration identifiers.
16316
16317 2011-04-19  Jan Hubicka  <jh@suse.cz>
16318
16319         * cgraph.h (cgraph_optimize_for_size_p): Declare.
16320         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
16321         * predict.c (cgraph_optimize_for_size_p): Break out from ...
16322         (optimize_function_for_size_p) ... here.
16323
16324 2011-04-19  Richard Guenther  <rguenther@suse.de>
16325
16326         PR lto/48207
16327         * tree.c (free_lang_data): Do not reset the decl-assembler-name
16328         langhook.
16329
16330 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
16331
16332         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
16333         if DECL_NO_INLINE_WARNING_P is set on the function.
16334
16335 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
16336
16337         PR fortran/47976
16338         * reload1.c (inc_for_reload): Return void. All callers changed.
16339         (emit_input_reload_insns): Don't try to delete previous output
16340         reloads to a register, or record spill_reg_store for autoincs.
16341
16342 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
16343
16344         * gengtype.h: Updated copyright year.
16345         (struct input_file_st): Add inpisplugin field.
16346         (type_fileloc): New function.
16347         * gengtype.c
16348         (write_typed_struct_alloc_def): Add gcc_assert.
16349         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
16350         (write_typed_alloc_defns): Don't output for plugin files.
16351         (input_file_by_name): Clear inpisplugin field.
16352         (main): Set inpisplugin field for plugin files.
16353
16354 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
16355
16356         * gengtype-state.c (string_eq): New.
16357         (read_state): Use string_eq instead of strcmp when creating the
16358         state_ident_tab.
16359
16360 2011-04-19  Wei Guozhi  <carrot@google.com>
16361
16362         PR target/47855
16363         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
16364         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
16365         linkage.
16366         * config/arm/constraints.md (Uu): New constraint.
16367         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
16368
16369 2011-04-19  Tristan Gingold  <gingold@adacore.com>
16370
16371         * config.gcc (-*-*-*vms): Added.
16372         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
16373         definitions moved.
16374         * config/vms/vms-ld.c: New file.
16375         * config/vms/vms-ar.c: New file.
16376         * config/vms/t-vmsnative: New file.
16377
16378 2011-04-18  Xinliang David Li  <davidxl@google.com>
16379
16380         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
16381
16382 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
16383
16384         PR middle-end/48661
16385         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
16386         if TREE_TYPE (v) is non-NULL.
16387
16388         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
16389         gimple_get_virt_mehtod_for_binfo.
16390         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
16391         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
16392         callers.
16393         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16394
16395 2011-04-18  Michael Matz  <matz@suse.de>
16396             Steve Ellcey  <sje@cup.hp.com>
16397
16398         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
16399         use its mode as source mode if it isn't VOIDmode.
16400
16401 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
16402
16403         * doc/passes.texi: Fill crossref nodes.
16404
16405 2011-04-18  Jim Meyering  <meyering@redhat.com>
16406
16407         Fix doubled-word typos in comments and strings
16408         * config/alpha/vms-unwind.h: s/for for/for/
16409         * config/arm/unwind-arm.h: Likewise.
16410         * config/microblaze/microblaze.c: Likewise.
16411         * config/sh/constraints.md: s/in in/in/
16412         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
16413
16414 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
16415
16416         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
16417         (AVX_FLOAT_MODE_P): Ditto.
16418         (AVX128_VEC_FLOAT_MODE_P): Ditto.
16419         (AVX256_VEC_FLOAT_MODE_P): Ditto.
16420         (AVX_VEC_FLOAT_MODE_P): Ditto.
16421         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
16422         (UNSPEC_MASKSTORE): Ditto.
16423         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
16424         Merge from <sse>_movmsk<ssemodesuffix> and
16425         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
16426         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
16427         iterator.
16428         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
16429         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
16430         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
16431
16432 2011-04-18  Jan Hubicka  <jh@suse.cz>
16433
16434         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
16435
16436         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
16437         (want_inline_function_called_once_p): Break out the logic from
16438         ipa_inline.
16439         (edge_badness): Ensure that profile is not misupdated.
16440         (lookup_recursive_calls): Prioritize by call frequencies.
16441         (inline_small_functions): Move program size estimates here;
16442         actually process whole queue even when unit growth has been
16443         met. (to properly compute inline_failed reasons and for the
16444         case unit size decrease.) Revisit comments on recursive inlining.
16445         (ipa_inline): Remove unit summary code; first inline hot calls
16446         of functions called once, cold calls next.
16447         (order, nnodes): Remove unused variables.
16448         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
16449         (GTFILES): Remove ipa-inline.c
16450         * sel-sched.c (fill_insns): Silence uninitialized var warning.
16451
16452 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
16453
16454         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
16455
16456 2011-04-18  Jie Zhang  <jie@codesourcery.com>
16457             Richard Earnshaw  <rearnsha@arm.com>
16458
16459         * arm.c (neon_builtin_type_bits): Remove.
16460         (typedef enum neon_builtin_mode): New.
16461         (T_MAX): Don't define.
16462         (typedef enum neon_builtin_datum): Remove bits, codes[],
16463         num_vars and base_fcode.  Add mode, code and fcode.
16464         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
16465         VAR10): Change accordingly.
16466         (neon_builtin_data[]): Change accordingly
16467         (arm_init_neon_builtins): Change accordingly.
16468         (neon_builtin_compare): Remove.
16469         (locate_neon_builtin_icode): Remove.
16470         (arm_expand_neon_builtin): Change accordingly.
16471
16472         * arm.h (enum arm_builtins): Move to ...
16473         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
16474
16475         * arm.c (arm_builtin_decl): Declare.
16476         (TARGET_BUILTIN_DECL): Define.
16477         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
16478         (arm_builtin_decls[]): New.
16479         (arm_init_neon_builtins): Store builtin declarations in
16480         arm_builtin_decls[].
16481         (arm_init_tls_builtins): Likewise.
16482         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
16483         (arm_builtin_decl): New.
16484
16485 2011-04-18  Richard Guenther  <rguenther@suse.de>
16486
16487         * tree.c (upper_bound_in_type): Build properly canonicalized
16488         INTEGER_CSTs.
16489         (lower_bound_in_type): Likewise.
16490
16491 2011-04-18  Richard Guenther  <rguenther@suse.de>
16492
16493         * gimple.h (gimple_call_addr_fndecl): New function.
16494         (gimple_call_fndecl): Use it.
16495         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
16496         for direct calls.
16497         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
16498         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
16499
16500 2011-04-18  Richard Guenther  <rguenther@suse.de>
16501
16502         PR middle-end/48650
16503         * tree.c (build_string): STRING_CST is now derived from tree_typed.
16504
16505 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
16506
16507         PR lto/48492
16508         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
16509         DECL_IN_CONSTANT_POOL without RTL.
16510
16511 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
16512             Ira Rosen  <ira.rosen@linaro.org>
16513
16514         PR target/48252
16515         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
16516         to match neon_vzip/vuzp/vtrn_internal.
16517         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
16518         outputs explicitly dependent on both inputs.
16519         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
16520
16521 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
16522
16523         PR tree-optimization/48616
16524         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
16525         whether the shift is by scalar or vector based on whether all SLP
16526         scalar stmts have the same rhs.
16527
16528 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
16529
16530         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
16531         memory operands.
16532
16533 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
16534
16535         PR target/43700
16536         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
16537         registers.
16538
16539 2011-04-17  Jan Hubicka  <jh@suse.cz>
16540
16541         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
16542         * cgrpahunit.c (cgraph_finalize_function): Do not set
16543         finalized_by_frontend.
16544         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
16545         finalized_by_frontend.
16546
16547 2011-04-17  Jan Hubicka  <jh@suse.cz>
16548
16549         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
16550         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
16551         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
16552         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
16553         method.
16554         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
16555         gimple-fold.c
16556         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
16557
16558 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
16559
16560         PR lto/48538
16561         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
16562         is non-null before accessing it.
16563         (input_cgraph): Remove trailing spaces.
16564
16565 2011-04-17  Revital Eres  <revital.eres@linaro.org>
16566
16567         * params.def (sms-min-sc): New param flag.
16568         * modulo-sched.c (sms_schedule): Use it.
16569         * doc/invoke.texi (sms-min-sc): Document it.
16570
16571 2011-04-17  Jan Hubicka  <jh@suse.cz>
16572
16573         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
16574         present, also set gimple_call_set_cannot_inline.
16575         * ipa-inline.c: Update toplevel comment.
16576         (MAX_TIME): Remove.
16577         (cgraph_clone_inlined_nodes): Fix linebreaks.
16578         (cgraph_check_inline_limits): Restructure to ...
16579         (caller_growth_limits): ... this one; be more tolerant
16580         on growth in nested inline chains; add explanatory comment;
16581         fix stack accounting thinko introduced by previous patch.
16582         (cgraph_default_inline_p): Remove.
16583         (report_inline_failed_reason): New function.
16584         (can_inline_edge_p): New function.
16585         (can_early_inline_edge_p): New function.
16586         (leaf_node_p): Move upwards in file.
16587         (want_early_inline_function_p): New function.
16588         (want_inline_small_function_p): New function.
16589         (want_inline_self_recursive_call_p): New function.
16590         (cgraph_edge_badness): Rename to ...
16591         (edge_badness) ... this one; fix linebreaks.
16592         (update_edge_key): Update call of edge_baddness; add
16593         detailed dump about queue updates.
16594         (update_caller_keys): Use can_inline_edge_p and
16595         want_inline_small_function_p.
16596         (cgraph_decide_recursive_inlining): Rename to...
16597         (recursive_inlining): Use can_inline_edge_p and
16598         want_inline_self_recursive_call_p; simplify and remove no longer
16599         valid FIXME.
16600         (cgraph_set_inline_failed): Remove.
16601         (add_new_edges_to_heap): Use can_inline_edge_p and
16602         want_inline_small_function_p.
16603         (cgraph_decide_inlining_of_small_functions): Rename to ...
16604         (inline_small_functions): ... this one; cleanup; use
16605         can/want predicates; cleanup debug ouput; work edges till fibheap
16606         is exhausted and do not stop once unit growth is reached; remove
16607         later loop processing remaining edges.
16608         (cgraph_flatten): Rename to ...
16609         (flatten_function): ... this one; use can_inline_edge_p
16610         and can_early_inline_edge_p predicates.
16611         (cgraph_decide_inlining): Rename to ...
16612         (ipa_inline): ... this one; remove unreachable nodes before
16613         inlining functions called once; simplify the pass.
16614         (cgraph_perform_always_inlining): Rename to ...
16615         (inline_always_inline_functions): ... this one; use
16616         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
16617         (cgraph_decide_inlining_incrementally): Rename to ...
16618         (early_inline_small_functions): ... this one; simplify
16619         using new predicates; cleanup; make dumps prettier.
16620         (cgraph_early_inlining): Rename to ...
16621         (early_inliner): newer inline regular functions into always-inlines;
16622         fix updating of call stmt summaries.
16623         (pass_early_inline): Update for new names.
16624         (inline_transform): Fix formating.
16625         (gate_cgraph_decide_inlining): Rename to ...
16626         (pass_ipa_inline): ... this one.
16627         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
16628         * ipa-inline-analysis.c (dump_inline_summary): Update.
16629         (compute_inline_parameters): Do not compute disregard_inline_limits;
16630         look for mismatching arguments.
16631         (estimate_growth): Fix handlig of non-trivial self recursion.
16632         (inline_read_summary): Do not read info->disregard_inline_limits.
16633         (inline_write_summary): Do not write info->disregard_inline_limits.
16634         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
16635         and move all checks into can_inline_edge_p predicate; re-enable code
16636         comparing optimization levels.
16637         (expand_call_inline): Do not test inline_forbidden_into_p.
16638         * Makefile.in (ipa-inline.o): Update arguments.
16639
16640 2011-04-17  Revital Eres  <revital.eres@linaro.org>
16641
16642         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
16643
16644 2011-04-17  Revital Eres  <revital.eres@linaro.org>
16645
16646         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
16647
16648 2011-04-17  Michael Matz  <matz@suse.de>
16649
16650         PR tree-optimization/48622
16651         PR lto/48645
16652         * ipa-inline-analysis.c (inline_read_summary): Read size/time
16653         in same order as they're written.
16654
16655 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16656
16657         * config/pa/predicates.md: Reorganize and simplify predicates.
16658         Eliminate duplicate code checks.
16659         (arith_operand): Rename to arith14_operand
16660         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
16661         * config/pa/pa.md: Use renamed operands.
16662         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
16663         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
16664         arith11_operand, adddi3_operand, indexed_memory_operand,
16665         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
16666         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
16667         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
16668         move_dest_operand, move_src_operand, prefetch_cc_operand,
16669         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
16670         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
16671         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
16672         div_operand, int5_operand, movb_comparison_operator,
16673         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
16674         arith_double_operand, ireg_operand, lhs_lshift_operand,
16675         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
16676         integer_store_memory_operand): Likewise.
16677         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
16678         (integer_store_memory_operand, read_only_operand,
16679         function_label_operand, borx_reg_operand,
16680         non_hard_reg_operand): Likewise.
16681         (eq_neq_comparison_operator): Delete unused operator.
16682         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
16683         function_label_operand.
16684         (emit_move_sequence): Likewise.
16685
16686 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
16687
16688         * config/i386/sse.md (sseunpackmode): New mode attribute.
16689         (ssepackmode): Ditto.
16690         (vec_pack_trunc_<mode>): Macroize expander from
16691         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
16692         (vec_unpacks_lo_<mode>): Macroize expander from
16693         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16694         (vec_unpacks_hi_<mode>): Macroize expander from
16695         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16696         (vec_unpacku_lo_<mode>): Macroize expander from
16697         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16698         (vec_unpacku_hi_<mode>): Macroize expander from
16699         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
16700         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
16701         ix86_expand_sse4_unpack.
16702         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
16703
16704 2011-04-16  Jan Hubicka  <jh@suse.cz>
16705
16706         * cgraphbuild.c: Include ipa-inline.h.
16707         (reset_inline_failed): Use initialize_inline_failed.
16708         * cgraph.c: Include ipa-inline.h.
16709         (cgraph_create_node_1): Do not initialize estimated_growth.
16710         (initialize_inline_failed): More to ipa-inline-analysis.c
16711         (dump_cgraph_node): Do not dump inline flags.
16712         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
16713         and disregard_inline_limits flags.
16714         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
16715         time, size, estimated_growth.
16716         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
16717         Update.
16718         * cgraphunit.c (cgraph_decide_is_function_needed): Use
16719         DECL_DISREGARD_INLINE_LIMITS.
16720         (cgraph_analyze_function): Do not initialize
16721         node->local.disregard_inline_limits.
16722         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
16723         inlinable, versionable and disregard_inline_limits.
16724         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
16725         cgraph_check_inline_limits, cgraph_default_inline_p,
16726         cgraph_edge_badness, update_caller_keys, update_callee_keys,
16727         add_new_edges_to_heap): Update.
16728         (cgraph_decide_inlining_of_small_function): Update; set
16729         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
16730         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
16731         cgraph_decide_inlining_incrementally): Update.
16732         * ipa-inline.h (inline_summary): Add inlinable, versionable,
16733         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
16734         time, size and estimated_growth parameters.
16735         (estimate_edge_growth): Update.
16736         (initialize_inline_failed): Declare.
16737         * ipa-split.c: Include ipa-inline.h
16738         (execute_split_functions): Update.
16739         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
16740         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
16741         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
16742         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
16743         estimated_growth to INT_MIN.
16744         (inline_node_duplication_hook): Likewise.
16745         (dump_inline_summary): Dump new fields.
16746         (compute_inline_parameters): Update.
16747         (estimate_edge_time, estimate_time_after_inlining,
16748         estimate_size_after_inlining, estimate_growth, inline_read_summary,
16749         inline_write_summary):
16750         (initialize_inline_failed): Move here from cgraph.c.
16751         * tree-sra.c: Include ipa-inline.h.
16752         (ipa_sra_preliminary_function_checks): Update.
16753         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
16754         ipa-inline.h.
16755
16756 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
16757
16758         * config/i386/sse.md (V16): New mode iterator.
16759         (VI1, VI8): Ditto.
16760         (AVXMODEQI, AVXMODEDI): Remove.
16761         (sse2, sse3): New mode attribute.
16762         (mov<mode>): Use V16 mode iterator.
16763         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
16764         (push<mode>1): Use V16 mode iterator.
16765         (movmisalign<mode>): Ditto.
16766         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
16767         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
16768         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
16769         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
16770         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
16771         avx_movdqu<avxmodesuffix>.
16772         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
16773         *avx_movdqu<avxmodesuffix>.
16774         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
16775         avx_lddqu<avxmodesuffix>.
16776         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
16777         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
16778         avx_movnt<AVXMODEDI:mode>.
16779         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
16780         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
16781
16782 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
16783
16784         PR target/48629
16785         * haifa-sched.c (prune_ready_list, schedule_block): Use
16786         sched_pressure_p rather than flag_sched_pressure.
16787
16788 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
16789
16790         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
16791         cgraph_get_node instead of cgraph_get_create_node.
16792
16793 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
16794
16795         * cfgexpand.c (expand_debug_expr): Use
16796         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
16797
16798 2011-04-15  Michael Matz  <matz@suse.de>
16799
16800         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
16801         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
16802         * function.c (gimplify_parameters): Ditto.
16803         * gimplify.c (gimplify_vla_decl): Ditto.
16804
16805         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
16806         (gimple_call_set_alloca_for_var): New inline function.
16807         (gimple_call_alloca_for_var_p): Ditto.
16808         * gimple.c (gimple_build_call_from_tree): Remember
16809         CALL_ALLOCA_FOR_VAR_P state.
16810         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
16811
16812         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
16813         calls if they were for VLA objects.
16814
16815 2011-04-15  Martin Jambor  <mjambor@suse.cz>
16816
16817         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
16818         of ADR_EXPRs.
16819
16820 2011-04-15  Martin Jambor  <mjambor@suse.cz>
16821
16822         PR middle-end/48601
16823         * tree-emutls.c (lower_emutls_function_body): Call
16824         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
16825         result is non-NULL.
16826
16827 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
16828
16829         * c-decl.c (detect_field_duplicates): Call
16830         objc_detect_field_duplicates instead of objc_get_interface_ivars.
16831
16832 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
16833
16834         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
16835         * gimple.c (gimple_asm_clobbers_memory_p): Define.
16836         * ipa-pure-const.c (check_stmt): Call it.
16837         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
16838
16839 2011-04-15  Richard Guenther  <rguenther@suse.de>
16840
16841         PR tree-optimization/48290
16842         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
16843         Properly decide inhibiting propagation based on the valueized
16844         operand.  Do loop-closed SSA form preserving here ...
16845         (init_copy_prop): ... not here.
16846
16847 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
16848
16849         PR target/48612
16850         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
16851         (*ieee_smax<mode>3): Likewise.
16852
16853 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16854
16855         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
16856         Replace match_operand with match_dup for the third operand in
16857         these expanders.
16858
16859 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
16860
16861         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
16862         to track processing of conditionals.  Update all callers.
16863         (try_combine, simplify_if_then_else): Update.
16864
16865 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
16866
16867         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
16868         -fsched-pressure.
16869
16870 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
16871
16872         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
16873         instead of match_operand for operand 3.
16874
16875 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
16876
16877         * recog.h (insn_operand_data): Add an "allows_mem" field.
16878         * genoutput.c (output_operand_data): Initialize it.
16879         * optabs.c (maybe_legitimize_operand_same_code): New function.
16880         (maybe_legitimize_operand): Use it when matching the original
16881         op->value.
16882
16883 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
16884
16885         * gimplify.c: Fix issues in comments throughout.
16886         (voidify_wrapper_expr): Fix long line.
16887         (build_stack_save_restore): Likewise.
16888         (gimplify_loop_expr): Likewise.
16889         (gimplify_compound_lval): Likewise.
16890         (gimplify_init_ctor_eval): Likewise.
16891         (gimplify_modify_expr_rhs): Likewise.
16892         (omp_notice_threadprivate_variable): Likewise.
16893
16894 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
16895
16896         * cfgexpand.c (expand_call_stmt): Convert the function type to the
16897         original one if this is not a builtin function.
16898
16899 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
16900
16901         PR target/48605
16902         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
16903         offset it as needed based on top 2 bits in operands[3], change
16904         MEM mode to SFmode and mask those 2 bits away from operands[3].
16905
16906 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
16907
16908         * c-parser.c (c_parser_objc_protocol_definition): Updated for
16909         change from objc_declare_protocols() to objc_declare_protocol().
16910
16911 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
16912
16913         * config/i386/sse.md (sse4_1): New mode attribute.
16914         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
16915         avx_blend<ssemodesuffix><avxmodesuffix> and
16916         sse4_1_blend<ssemodesuffix> using VF mode iterator.
16917         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
16918         avx_blendv<ssemodesuffix><avxmodesuffix> and
16919         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
16920         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
16921         avx_dp<ssemodesuffix><avxmodesuffix> and
16922         sse4_1_dp<ssemodesuffix> using VF mode iterator.
16923         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
16924         (sse4_1_packusdw): Merge with *avx_packusdw.
16925         (sse4_1_pblendvb): Merge with *avx_pblendvb.
16926         (sse4_1_pblendw): Merge with *avx_pblendw.
16927         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
16928         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
16929         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
16930         VF mode iterator.
16931         (sse4_1_round<ssescalarmodesuffix>): Merge with
16932         *avx_round<ssescalarmodesuffix>.
16933         (aesenc): Merge with *avx_aesenc.
16934         (aesenclast): Merge with *avx_aesenclast.
16935         (aesdec): Merge with *avx_aesdec.
16936         (aesdeclast): Merge with *avx_aesdeclast.
16937         (pclmulqdq): Merge with *pclmulqdq.
16938         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
16939         New predicate.
16940         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
16941
16942 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
16943
16944         PR middle-end/48608
16945         * cfgexpand.c (get_decl_align_unit): Renamed to ...
16946         (align_local_variable): This.  Update DECL_ALIGN.
16947         (add_stack_var): Updated.
16948         (expand_one_stack_var): Likewise.
16949
16950 2011-04-14  Richard Guenther  <rguenther@suse.de>
16951
16952         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
16953         Remove.
16954         (dse_initialize_block_local_data, dse_leave_block,
16955         record_voperand_set, get_stmt_uid): Likewise.
16956         (dse_possible_dead_store_p): Allow any kind of killing stmt.
16957         (dse_optimize_stmt): Remove voperand set handling code.
16958         Simplify and improve to handle any kind of killing stmt.
16959         (dse_record_phi): Remove.
16960         (dse_enter_block): Simplify.
16961         (tree_ssa_dse): Likewise.
16962         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
16963
16964 2011-04-14  Jan Hubicka  <jh@suse.cz>
16965
16966         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
16967         * cgraph.h (struct inline_summary): Move to ipa-inline.h
16968         (cgraph_local_info): Remove inline_summary.
16969         * ipa-cp.c: Include ipa-inline.h.
16970         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
16971         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
16972         accesor.
16973         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
16974         (input_overwrite_node): Do not set inline summary.
16975         (input_node): Do not stream inline summary.
16976         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
16977         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
16978         growth; we do not have inline parameters computed for that anyway.
16979         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
16980         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
16981         (inline_summary_t): New type and VECtor.
16982         (debug_inline_summary, dump_inline_summaries): Declare.
16983         (inline_summary): Use VOCtor.
16984         (estimate_edge_growth): Kill hack computing call stmt size directly.
16985         * lto-section-in.c (lto_section_name): Add inline section.
16986         * ipa-inline-analysis.c: Include lto-streamer.h
16987         (node_removal_hook_holder, node_duplication_hook_holder): New holders
16988         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
16989         (inline_summary_vec): Define.
16990         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
16991         dump_inline_summaries): New functions.
16992         (estimate_function_body_sizes): Properly compute size/time of outgoing
16993         calls.
16994         (compute_inline_parameters): Alloc inline_summary; do not compute
16995         size/time of incomming calls.
16996         (estimate_edge_time): Avoid missing time summary hack.
16997         (inline_read_summary): Read inline summary info.
16998         (inline_write_summary): Write inline summary info.
16999         (inline_free_summary): Free all hooks and inline summary vector.
17000         * lto-streamer.h: Add LTO_section_inline_summary section.
17001         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
17002         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
17003
17004 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17005
17006         * tree-vectorizer.h (vect_strided_store_supported): Add a
17007         HOST_WIDE_INT argument.
17008         (vect_strided_load_supported): Likewise.
17009         (vect_permute_store_chain): Return void.
17010         (vect_transform_strided_load): Likewise.
17011         (vect_permute_load_chain): Delete.
17012         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
17013         count argument.  Check that the count is a power of two.
17014         (vect_strided_load_supported): Likewise.
17015         (vect_permute_store_chain): Return void.  Update after above changes.
17016         Assert that the access is supported.
17017         (vect_permute_load_chain): Likewise.
17018         (vect_transform_strided_load): Return void.
17019         * tree-vect-stmts.c (vectorizable_store): Update calls after
17020         above interface changes.
17021         (vectorizable_load): Likewise.
17022         (vect_analyze_stmt): Don't check for strided powers of two here.
17023
17024 2011-04-14  Richard Guenther  <rguenther@suse.de>
17025
17026         PR tree-optimization/48590
17027         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17028         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
17029         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
17030         BUILT_IN_STACK_SAVE.
17031         * tree-ssa-dce.c (propagate_necessity): Handle
17032         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
17033
17034 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
17035
17036         * c-parser.c (c_parser_objc_class_declaration): Updated call to
17037         objc_declare_class.
17038
17039 2011-04-14  Richard Guenther  <rguenther@suse.de>
17040
17041         * tree.h (get_object_alignment_1): Declare.
17042         * builtins.c (get_object_alignment_1): Split out worker from ...
17043         (get_object_alignment): ... here.
17044         * fold-const.c (get_pointer_modulus_and_residue): Use
17045         get_object_alignment_1.
17046
17047 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17048
17049         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
17050         type parameter.
17051         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
17052         parameter.  Generalise code to handle arrays as well as vectors.
17053         (vect_setup_realignment): Update accordingly.
17054         * tree-vect-stmts.c (vectorizable_store): Likewise.
17055         (vectorizable_load): Likewise.
17056
17057 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17058
17059         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
17060         within the per-copy loop.
17061
17062 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17063
17064         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
17065         in the dump file.
17066
17067 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
17068
17069         * doc/options.texi (Negative): Explicitly mention that the
17070         Negative chain must be circular.
17071
17072 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
17073
17074         * function.h (block_chainon): Declare.
17075         * function.c (block_chainon): Define.
17076
17077 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
17078             Eric Weddington  <eric.weddington@atmel.com>
17079             Georg-Johann Lay  <avr@gjlay.de>
17080
17081         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
17082         New Includes
17083         (avr_init_builtins, avr_expand_builtin,
17084         avr_expand_delay_cycles, avr_expand_unop_builtin,
17085         avr_expand_binop_builtin ): New functions.
17086         (avr_builtin_id): New enum
17087         (struct avr_builtin_description): New struct
17088         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
17089         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
17090
17091         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
17092         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
17093         UNSPECV_DELAY_CYCLES): new enumeration values
17094         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
17095         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
17096         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
17097         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
17098         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
17099         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
17100         "fmulsu"): New insns
17101
17102         * config/avr/avr-c.c: fix line endings
17103         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
17104         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
17105         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
17106         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
17107         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
17108
17109         * doc/extend.texi (AVR Built-in Functions): New node
17110         (Target Builtins): Add documentation of AVR
17111         built-in functions.
17112
17113 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
17114
17115         PR target/44643
17116         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
17117         alone. Error if non-const data has attribute progmem.
17118
17119 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17120
17121         * tree.h (struct tree_constructor): Include tree_typed instead of
17122         tree_common.
17123         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
17124         TS_TYPED instead of TS_COMMON.
17125
17126 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
17127
17128         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
17129         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
17130         (sse2_psadbw): Merge with *avx_psadbw.
17131         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
17132         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
17133         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
17134         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
17135         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
17136         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
17137         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
17138         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
17139         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
17140         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
17141         (ssse3_palignrti): Merge with *avx_palignrti.
17142
17143 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17144
17145         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
17146         * tree-ssanames.c (fini_ssanames): VEC_free it.
17147         (make_ssa_name_fn): Update for VECness of free_ssanames.
17148         (release_ssa_name, release_dead_ssa_names): Likewise.
17149         * tree.h (struct tree_ssa_name): Include tree_typed instead of
17150         tree_common.
17151         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
17152         TS_TYPED instead of TS_COMMON.
17153
17154 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17155
17156         * postreload-gcse.c (gcse_after_reload_main): Add calls to
17157         statistics_counter_event.
17158         * tree-ssa-copyrename.c (stats): Define.
17159         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
17160         statistics_counter_event.
17161         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
17162         (bswap_stats, widen_mul_stats): Define.
17163         (insert_reciprocals): Increment rdivs_inserted.
17164         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
17165         rfuncs_inserted.  Add calls to statistics_counter_event.
17166         (execute_cse_sincos_1): Increment inserted.
17167         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
17168         statistics_counter_event.
17169         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
17170         of bswap_stats.  Add calls to statistics_counter_event.
17171         (convert_mult_to_widen): Increment widen_mults_inserted.
17172         (convert_plusminus_to_widen): Increment maccs_inserted.
17173         (convert_mult_to_fma): Increment fmas_inserted.
17174         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
17175         calls to statistics_counter_event.
17176
17177 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
17178
17179         PR rtl-optimization/48455
17180         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
17181         `temp_costs->mem_cost'.
17182
17183 2011-04-13  Jan Hubicka  <jh@suse.cz>
17184
17185         * ipa-inline.h: New file.
17186         * ipa-inline-analysis.c: New file. Broken out of ...
17187         * ipa-inline.c: ... this file; update toplevel comment;
17188         include ipa-inline.h
17189         (inline_summary): Move to ipa-inline.h
17190         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
17191         ipa-inline-analysis.c.
17192         (cgraph_estimate_time_after_inlining): Rename to
17193         estiamte_time_after_inlining; move to ipa-inline-analysis.c
17194         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
17195         to estimate_edge_growth.
17196         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
17197         rename to estimate_size_after_inlining.
17198         (cgraph_mark_inline_edge): Update for new naming convention.
17199         (cgraph_check_inline_limits): Likewise.
17200         (cgraph_edge_badness): Likewise.
17201         (cgraph_decide_recursive_inlining): Likewise.
17202         (cgraph_decide_inlining_of_small_functions): Likewise.
17203         (cgraph_decide_inlining_incrementally): Likewise.
17204         (cgraph_estimate_growth): Rename to estimate_growth; move to
17205         ipa-inline-analysis.c.
17206         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
17207         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
17208         (compute_inline_parameters): Likewise.
17209         (compute_inline_parameters_for_current): Likewise.
17210         (pass_inline_parameters): Likewise.
17211         (inline_indirect_intraprocedural_analysis): Likewise.
17212         (analyze_function): Rename to inline_analyze_function; likewise.
17213         (add_new_function): Move to ipa-inline-analysis.c.
17214         (inline_generate_summary): Likewise.
17215         (inline_read_summary): Likewise.
17216         (inline_write_summary): Likewise.
17217         * Makefile.in (ipa-inline-analysis.c): New file.
17218
17219 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17220
17221         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
17222         * configure: Regenerate.
17223
17224 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
17225
17226         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
17227         instead of tree_common.
17228         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
17229         Likewise.
17230         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
17231         TS_TYPED rather than TS_COMMON.
17232         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
17233
17234 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
17235
17236         PR target/45263
17237         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
17238         r20 around calls of __tablejump_elpm__
17239
17240 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
17241
17242         PR middle-end/48591
17243         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
17244         NULL.
17245         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
17246
17247 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
17248
17249         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
17250         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
17251         (cfi_vec): New typedef.
17252         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
17253         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
17254         (cie_cfi_vec): New static variable.
17255         (cie_cfi_head): Delete.
17256         (add_cfi): Accept a cfi_vec * as first argument. All callers and
17257         declaration changed. Use vector rather than list operations.
17258         (new_cfi): Don't initialize the dw_cfi_next field.
17259         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
17260         rather than list operations.
17261         (lookup_cfa): Use vector rather than list operations.
17262         (output_cfis): New argument upto. Accept a cfi_vec rather than
17263         a dw_cfi_ref list head as argument. All callers changed.
17264         Iterate over the vector using upto as a maximum index.
17265         (output_all_cfis): New static function.
17266         (output_fde): Use vector rather than list operations. Use the
17267         new upto argument for output_cfis rather than manipulating a
17268         list.
17269         (dwarf2out_begin_prologue): Change initializations to match
17270         new struct members.
17271         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
17272         from the vector length rather than searching for the end of a list.
17273         Use output_all_cfis.
17274         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
17275
17276 2011-04-13  Nick Clifton  <nickc@redhat.com>
17277
17278         * config/rx/rx.md (movmemsi): Do not use this pattern when
17279         volatile pointers are involved.
17280
17281 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
17282
17283         * config/i386/sse.md (pinsrbits): Remove.
17284         (sse2_packsswb): Merge with *avx_packsswb.
17285         (sse2_packssdw): Merge with *avx_packssdw.
17286         (sse2_packuswb): Merge with *avx_packuswb.
17287         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
17288         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
17289         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
17290         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
17291         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
17292         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
17293         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
17294         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
17295         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
17296         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
17297         (sse2_loadld): Merge with *avx_loadld.
17298         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
17299         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
17300         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
17301         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
17302         (vec_concatv2di): Merge with *vec_concatv2di_avx.
17303
17304 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
17305
17306         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
17307         calling TREE_CHAIN.
17308         * print-tree.c (print_node): Likewise.
17309         * tree-inline.c (copy_tree_r): Likewise.
17310         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
17311         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
17312         instead of TS_COMMON.
17313         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
17314         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
17315         (copy_node_stat): Zero TREE_CHAIN only if necessary.
17316         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
17317         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
17318         ...and these...
17319         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
17320         * tree.h: ...here.
17321         (TREE_CHAIN): Check for a TS_COMMON structure.
17322         (TREE_TYPE): Check for a TS_TYPED structure.
17323
17324 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
17325
17326         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
17327         cgraph_get_create_node instead of cgraph_node.
17328
17329 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
17330
17331         * c-parser.c (c_parser_initelt): Updated call to
17332         objc_build_message_expr.
17333         (c_parser_postfix_expression): Likewise.
17334
17335 2011-04-12  Kai Tietz  <ktietz@redhat.com>
17336
17337         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
17338         MASK_MS_BITFIELD_LAYOUT bit.
17339
17340 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
17341
17342         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
17343         assert it is always true.
17344         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
17345         moves.
17346
17347 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
17348
17349         * c-parser.c (c_lex_one_token): Rewritten conditional used when
17350         compiling Objective-C to be more efficient.
17351
17352 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
17353
17354         * opts-common.c (decode_cmdline_options_to_array): Remove variable
17355         argv_copied.
17356
17357 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17358
17359         * recog.h, genoutput.c, optabs.c: Revert last patch.
17360
17361 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17362
17363         PR target/48090
17364         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
17365
17366 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17367
17368         * recog.h (insn_operand_data): Add an "allows_mem" field.
17369         * genoutput.c (output_operand_data): Initialize it.
17370         * optabs.c (maybe_legitimize_operand_same_code): New function.
17371         (maybe_legitimize_operand): Use it when matching the original
17372         op->value.
17373
17374 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17375
17376         * genpreds.c (process_define_predicate): Move most processing
17377         to gensupport.c.  Continue to validate the expression.
17378         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
17379         (process_define_predicate): Move processing to gensupport.c.
17380         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
17381         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
17382         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
17383         argument.
17384         (valid_predicate_name_p): New function, split out from old
17385         genpreds.c:process_define_predicate.
17386         (process_define_predicate): New function, combining code from
17387         old genpreds.c and genrecog.c functions.
17388         (process_rtx): Call it for DEFINE_PREDICATE and
17389         DEFINE_SPECIAL_PREDICATE.
17390
17391 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
17392
17393         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
17394         size of a '%A' memory reference.
17395         (T_DREG, T_QREG): New neon_builtin_type_bits.
17396         (arm_init_neon_builtins): Assert that the load and store operands
17397         are neon_struct_operands.
17398         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
17399         (NEON_ARG_MEMORY): New builtin_arg.
17400         (neon_dereference_pointer): New function.
17401         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
17402         Handle NEON_ARG_MEMORY.
17403         (arm_expand_neon_builtin): Update after above interface changes.
17404         Use NEON_ARG_MEMORY for loads and stores.
17405         * config/arm/predicates.md (neon_struct_operand): New predicate.
17406         * config/arm/iterators.md (V_two_elem): Tweak formatting.
17407         (V_three_elem): Use BLKmode for accesses that have no associated mode.
17408         (V_four_elem): Tweak formatting.
17409         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
17410         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
17411         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
17412         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
17413         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
17414         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
17415         (neon_vst4<mode>): Replace pointer operand with a memory operand.
17416         Use %A in the output template.
17417         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
17418         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
17419         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
17420         the width of the memory access.  Remove post-increment.
17421         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
17422
17423 2011-04-12  Nick Clifton  <nickc@redhat.com>
17424
17425         * config/v850/v850.c (expand_prologue): Do not use the CALLT
17426         instruction for interrupt handlers if the target is the basic V850
17427         architecture.
17428         (expand_epilogue): Likewise.
17429
17430 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
17431
17432         PR rtl-optimization/48549
17433         * combine.c (propagate_for_debug): Also stop after BB_END of
17434         this_basic_block.  Process LAST and just stop processing after it.
17435         (combine_instructions): If last_combined_insn has been deleted,
17436         set last_combined_insn to its PREV_INSN.
17437
17438 2011-04-12  Richard Guenther  <rguenther@suse.de>
17439
17440         PR tree-optimization/46076
17441         * gimple.h (struct gimple_statement_call): Add fntype field.
17442         (gimple_call_fntype): Adjust.
17443         (gimple_call_set_fntype): New function.
17444         * gimple.c (gimple_build_call_1): Set the call function type.
17445         * gimplify.c (gimplify_call_expr): Preserve the function
17446         type the frontend used for the call.
17447         (gimplify_modify_expr): Likewise.
17448         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
17449         function type.
17450         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
17451         function type.
17452         * tree-ssa.c (useless_type_conversion_p): Function pointer
17453         conversions are useless.
17454
17455 2011-04-12  Martin Jambor  <mjambor@suse.cz>
17456
17457         * cgraph.h (cgraph_node): Remove function declaration.
17458         (cgraph_create_node): Declare.
17459         (cgraph_get_create_node): Likewise.
17460         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
17461         Updated all callers.
17462         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
17463         the decl does not already exist.  Call cgraph_get_create_node instead
17464         of cgraph_node.
17465         (cgraph_get_create_node): New function.
17466         (cgraph_same_body_alias): Update comment.
17467         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
17468         assert it does not return NULL.
17469         (cgraph_update_edges_for_call_stmt): Likewise.
17470         (cgraph_clone_edge): Likewise.
17471         (cgraph_create_virtual_clone): Likewise.
17472         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
17473         instead of cgraph_node.
17474         (cgraph_add_new_function): Call cgraph_create_node or
17475         cgraph_get_create_node instead of cgraph_node.
17476         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
17477         instead of cgraph_node.
17478         (record_eh_tables): Likewise.
17479         (mark_address): Likewise.
17480         (mark_load): Likewise.
17481         (build_cgraph_edges): Call cgraph_get_create_node instead
17482         of cgraph_node.
17483         (rebuild_cgraph_edges): Likewise.
17484         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
17485         instead of cgraph_node.
17486         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
17487         cgraph_node.
17488         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
17489         cgraph_create_node instead of cgraph_node.
17490         * c-decl.c (finish_function): Call cgraph_get_create_node instead
17491         of cgraph_node.
17492         * lto-cgraph.c (input_node): Likewise.
17493         * lto-streamer-in.c (input_function): Likewise.
17494         * varasm.c (mark_decl_referenced): Likewise.
17495         (assemble_alias): Likewise.
17496
17497 2011-04-12  Martin Jambor  <mjambor@suse.cz>
17498
17499         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
17500         instead of cgraph_node and assert it does not return NULL.
17501         * lto-streamer-in.c (lto_read_body): Likewise.
17502         * omp-low.c (new_omp_context): Likewise.
17503         (create_task_copyfn): Likewise.
17504         * tree-emutls.c (lower_emutls_function_body): Likewise.
17505         * matrix-reorg.c (transform_allocation_sites): Likewise.
17506
17507 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
17508
17509         PR c/48552
17510         * c-typeck.c (build_asm_expr): Error out on attempts to use
17511         void type outputs or inputs for constraints that allow reg or
17512         don't allow memory.
17513
17514 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
17515             Richard Earnshaw  <rearnsha@arm.com>
17516
17517         PR target/48250
17518         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
17519         to use sign-magnitude offsets. Reject unsupported unaligned
17520         cases. Add detailed description in comments.
17521         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
17522         condition from TARGET_32BIT to TARGET_ARM.
17523
17524 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
17525
17526         * tree.h (struct typed_tree): New.
17527         (struct tree_common): Include it instead of tree_base.
17528         (TREE_TYPE): Update for new location of type field.
17529         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
17530         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
17531         (union tree_node): Add typed field.
17532         * treestruct.def (TS_TYPED): New.
17533         * lto-streamer.c (check_handled_ts_structures): Handle it.
17534         * tree.c (MARK_TS_TYPED): New macro.
17535         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
17536
17537 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
17538
17539         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
17540         (force_nonfallthru): Do not alter the loop nest if no basic block
17541         was created.
17542
17543 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
17544
17545         * config/i386/sse.md (VI): New mode iterator.
17546         (SSEMODEI): Remove.
17547         (AVX256MODEI): Ditto.
17548         (AVXMODEF4P): Ditto.
17549         (avxvecpsmode): Ditto.
17550         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
17551         (sse2_andnot<mode>3): New expander.
17552         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
17553         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
17554         (<any_logic:code><mode>3): Use VI mode iterator.
17555         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
17556         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
17557         (*andnottf3): Handle AVX three-operand constraints.
17558         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
17559
17560 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
17561             Robert Millan  <rmh@gnu.org>
17562
17563         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
17564         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
17565         GNU_USER_DYNAMIC_LINKER64): Define.
17566         (REG_NAME): Don't undefine.
17567         (MD_UNWIND_SUPPORT): Undefine.
17568         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
17569         (REG_NAME): Don't undefine.
17570         (MD_UNWIND_SUPPORT): Undefine.
17571         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
17572
17573 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
17574
17575         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
17576         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
17577
17578 2011-04-11  Xinliang David Li  <davidxl@google.com>
17579
17580         * value-profile.c (check_ic_target): New function.
17581         (gimple_ic_transform): Sanity check indirect call target.
17582         * gimple-low.c (gimple_check_call_args): Interface change.
17583         (gimple_check_call_matching_types): New function.
17584         * tree-inline.c (tree_can_inline_p): Call new function.
17585
17586 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
17587
17588         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
17589         tree-pretty-print.h & realmpfr.h.
17590
17591 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
17592
17593         PR middle-end/48464
17594         * ira.c (setup_pressure_classes): Fix typo in loop condition.
17595         (setup_allocno_and_important_classes): Ditto.
17596
17597 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
17598
17599         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
17600         GNU_USER_DYNAMIC_LINKER.
17601         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
17602         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17603         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
17604         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17605         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
17606         GNU_USER_TARGET_OS_CPP_BUILTINS.
17607         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
17608         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17609         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
17610         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17611         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
17612         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17613         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
17614         GNU_USER_TARGET_OS_CPP_BUILTINS.
17615         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17616         GNU_USER_DYNAMIC_LINKER.
17617         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17618         GNU_USER_TARGET_OS_CPP_BUILTINS.
17619         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
17620         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17621         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
17622         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17623         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
17624         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
17625         GNU_USER_DYNAMIC_LINKER64): Remove.
17626         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
17627         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17628         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17629         GNU_USER_DYNAMIC_LINKER.
17630         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17631         GNU_USER_TARGET_OS_CPP_BUILTINS.
17632         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17633         GNU_USER_TARGET_OS_CPP_BUILTINS.
17634         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
17635         to GNU_USER_TARGET_OS_CPP_BUILTINS.
17636         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
17637         GNU_USER_TARGET_OS_CPP_BUILTINS.
17638         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
17639         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
17640         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
17641         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
17642         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17643         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17644         GNU_USER_DYNAMIC_LINKER.
17645         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
17646         GNU_USER_TARGET_OS_CPP_BUILTINS.
17647         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
17648         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17649         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17650         GNU_USER_DYNAMIC_LINKER.
17651         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
17652         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17653         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
17654         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17655         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17656         GNU_USER_DYNAMIC_LINKER.
17657         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
17658         GNU_USER_DYNAMIC_LINKERN32.
17659         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
17660         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
17661         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
17662         GNU_USER_DYNAMIC_LINKER32.
17663         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
17664         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17665         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17666         GNU_USER_DYNAMIC_LINKER.
17667         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
17668         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17669         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
17670         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17671         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17672         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
17673         GNU_USER_DYNAMIC_LINKER32.
17674         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
17675         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
17676         GNU_USER_DYNAMIC_LINKER.
17677         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
17678         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17679         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
17680         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
17681         GNU_USER_DYNAMIC_LINKER64.
17682         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
17683         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17684         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17685         GNU_USER_DYNAMIC_LINKER.
17686         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
17687         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17688         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
17689         GNU_USER_DYNAMIC_LINKER.
17690         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
17691         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17692         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
17693         GNU_USER_DYNAMIC_LINKER32.
17694         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
17695         GNU_USER_DYNAMIC_LINKER64.
17696         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
17697         GNU_USER_DYNAMIC_LINKER64.
17698         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
17699         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17700         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
17701         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
17702         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
17703
17704 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
17705
17706         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
17707         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
17708         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
17709         GNU_USER_DYNAMIC_LINKER.
17710         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
17711         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
17712         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
17713         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
17714         GNU_USER_DYNAMIC_LINKER64.
17715         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
17716         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
17717         GNU_USER_LINK_EMULATION.
17718         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
17719         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
17720         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
17721         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
17722         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
17723         CPP_SPEC, CC1_SPEC): Remove.
17724         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
17725         (GNU_USER_DYNAMIC_LINKER): Define.
17726         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
17727         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
17728         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
17729         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
17730         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
17731         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
17732         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
17733         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
17734         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
17735         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
17736         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
17737         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
17738         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
17739         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
17740         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
17741         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
17742         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17743         GNU_USER_DYNAMIC_LINKER.
17744         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17745         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
17746         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17747         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
17748         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
17749         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
17750         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
17751         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
17752         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
17753         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
17754
17755 2011-04-11  Kai Tietz  <ktietz@redhat.com>
17756
17757         PR target/9601
17758         PR target/11772
17759         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
17760         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
17761         comment.
17762         (ix86_is_msabi_thiscall): Removed.
17763         (ix86_is_type_thiscall): Likewise.
17764         (ix86_get_callcvt): New function.
17765         (ix86_comp_type_attributes): Simplify check.
17766         (ix86_function_regparm): Use ix86_get_callcvt for calling
17767         convention attribute checks.
17768         (ix86_return_pops_args): Likewise.
17769         (ix86_static_chain): Likewise.
17770         (x86_this_parameter): Likewise.
17771         (x86_output_mi_thunk): Likewise.
17772         (ix86_function_type_abi): Optimize check for types without attributes.
17773         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
17774         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
17775         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
17776         by flag-values.
17777         (IX86_BASE_CALLCVT): Helper macro.
17778         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
17779         Use ix86_get_callcvt for calling convention attribute checks and avoid
17780         symbol-decoration for stdcall in TARGET_RTD case.
17781         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
17782         Likewise.
17783         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
17784         for declaration.
17785
17786 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
17787
17788         * config/i386/sse.md (VI_128): New mode iterator.
17789         (VI12_128): Rename from SSEMODE12.
17790         (VI14_128): Rename from SSEMODE14.
17791         (VI124_128): New mode iterator.
17792         (VI24_128): Rename from SSEMODE248.
17793         (VI248_128): Rename from SSEMODE248.
17794         (SSEMODE124C8): Remove.
17795         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
17796         (*sse2_<plusminus_insn><mode>3): Merge with
17797         *avx_<plusminus_insn><mode>3.
17798         (*mulv8hi3): Merge with *avx_mulv8hi3.
17799         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
17800         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
17801         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
17802         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
17803         (ashr<mode>3): Merge with *avx_ashr<mode>3.
17804         (lshr<mode>3): Merge with *avx_lshr<mode>3.
17805         (ashl<mode>3): Merge with *avx_ashl<mode>3.
17806         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
17807         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
17808         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17809         (*<smaxmin:code>v8hi3): Ditto.
17810         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
17811         (*<smaxmin:code>v16qi3): Ditto.
17812         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
17813         (*sse2_eq<mode>3): Ditto.
17814         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
17815         (*sse2_gt<mode>3): Ditto.
17816         (vcondv2di): Split out of vcond<mode>.
17817         (vconduv2di): Split out of vcondu<mode>.
17818
17819 2011-04-11  Richard Guenther  <rguenther@suse.de>
17820
17821         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
17822         before calling tree_low_cst.
17823
17824 2011-04-11  Richard Guenther  <rguenther@suse.de>
17825
17826         * stor-layout.c (layout_type): Compute all array index size operations
17827         in the original type.
17828         (initialize_sizetypes): Add comment.
17829         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
17830
17831 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
17832
17833         * common.opt (Tbss=, Tdata=, Ttext=): New options.
17834
17835 2011-04-11  Martin Jambor  <mjambor@suse.cz>
17836
17837         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
17838         of cgraph_node, handle NULL return value.
17839         (cgraph_global_info): Likewise.
17840         (cgraph_rtl_info): Likewise.
17841         * tree-inline.c (estimate_num_insns): Likewise.
17842         * gimplify.c (unshare_body): Likewise.
17843         (unvisit_body): Likewise.
17844         (gimplify_body): Likewise.
17845         * predict.c (optimize_function_for_size_p): Likewise.
17846         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
17847         (call_may_clobber_ref_p_1): Likewise.
17848         * varasm.c (function_section_1): Likewise.
17849         (assemble_start_function): Likewise.
17850
17851 2011-04-11  Martin Jambor  <mjambor@suse.cz>
17852
17853         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
17854         of cgraph_node.
17855         * final.c (rest_of_clean_state): Likewise.
17856         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
17857         * passes.c (pass_init_dump_file): Likewise.
17858         (execute_all_ipa_transforms): Likewise.
17859         (function_called_by_processed_nodes_p): Likewise.
17860         * predict.c (maybe_hot_frequency_p): Likewise.
17861         (probably_never_executed_bb_p): Likewise.
17862         (compute_function_frequency): Likewise.
17863         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
17864         (unnest_nesting_tree_1): Likewise.
17865         (lower_nested_functions): Likewise.
17866         * tree-optimize.c (execute_fixup_cfg): Likewise.
17867         (tree_rest_of_compilation): Likewise.
17868         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
17869         * tree-sra.c (ipa_early_sra): Likewise.
17870         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
17871         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
17872         * ipa.c (record_cdtor_fn): Likewise.
17873         * ipa-inline.c (cgraph_early_inlining): Likewise.
17874         (compute_inline_parameters_for_current): Likewise.
17875         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
17876         * ipa-pure-const.c (local_pure_const): Likewise.
17877         * ipa-split.c (split_function): Likewise.
17878         (execute_split_functions): Likewise.
17879         * cgraphbuild.c (build_cgraph_edges): Likewise.
17880         (rebuild_cgraph_edges): Likewise.
17881         (cgraph_rebuild_references): Likewise.
17882         (remove_cgraph_callee_edges): Likewise.
17883         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
17884         (verify_cgraph_node): Likewise.
17885         (cgraph_analyze_functions): Likewise.
17886         (cgraph_preserve_function_body_p): Likewise.
17887         (save_inline_function_body): Likewise.
17888         (save_inline_function_body): Likewise.
17889         * tree-inline.c (copy_bb): Likewise.
17890         (optimize_inline_calls): Likewise.
17891
17892 2011-04-11  Martin Jambor  <mjambor@suse.cz>
17893
17894         PR tree-optimization/48195
17895         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
17896         ipa_check_create_edge_args.
17897         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
17898         ipa_check_create_edge_args.
17899         * ipa-inline.c (inline_generate_summary): Do not call
17900         ipa_check_create_node_params and ipa_check_create_edge_args.
17901         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
17902         ipa_check_create_edge_args.
17903
17904 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
17905
17906         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
17907         instead of loop.
17908         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
17909         * function.c (record_hard_reg_sets): Likewise.
17910         * ira.c (compute_regs_asm_clobbered): Likewise.
17911         * sched-deps.c (sched_analyze_1): Likewise.
17912         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
17913
17914 2011-04-09  Xinliang David Li  <davidxl@google.com>
17915
17916         PR tree-optimization/PR48484
17917         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
17918         has_valid_pred lazily
17919
17920 2011-04-09  Duncan Sands  <baldrick@free.fr>
17921
17922         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
17923
17924 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
17925
17926         * combine.c (combine_validate_cost): Adjust comments.  Set registered
17927         cost of I0 to zero at the end, if any.
17928
17929 2011-04-08  Xinliang David Li  <davidxl@google.com>
17930
17931         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
17932         to insane profile data.
17933
17934 2011-04-08  Xinliang David Li  <davidxl@google.com>
17935
17936         * ipa-cp.c (ipcp_update_profiling): Correct
17937          negative scale factor due to insane profile data.
17938
17939 2011-04-08  Xinliang David Li  <davidxl@google.com>
17940
17941         * final.c (dump_basic_block_info): New function.
17942         (final): Dump basic block.
17943         (final_scan_insn): Remove old dump.
17944
17945 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
17946
17947         PR target/47829
17948         * config.gcc (i386-*-freebsd): Disable unwind table generation for
17949         crtbegin/crtend.
17950
17951 2011-04-08  Michael Matz  <matz@suse.de>
17952
17953         PR middle-end/48389
17954         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
17955         functions.
17956         (rebuild_jump_labels): Call rebuild_jump_labels_1.
17957         * rtl.h (rebuild_jump_labels_chain): Declare.
17958         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
17959         insns inserted on edges.
17960
17961 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
17962
17963         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
17964         * config/arm/arm-arches.def: New.
17965         * config/arm/arm-opts.h: New.
17966         * config/arm/genopt.sh: New.
17967         * config/arm/arm-tables.opt: New (generated).
17968         * config/arm/arm.c (arm_handle_option, arm_target_help,
17969         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
17970         (all_architectures): Get most table contents from arm-arches.def.
17971         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
17972         arm_selected_tune here.
17973         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
17974         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
17975         (march=, mcpu=, mtune=): Use Enum and Var.
17976         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
17977         (arm.o): Update dependencies.
17978
17979 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
17980
17981         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
17982         of header_file.
17983         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
17984         (write_typed_alloc_defns): Likewise.
17985         (main): Calls write_typed_alloc_defns with output_header.
17986
17987 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
17988
17989         PR inline-asm/48435
17990         * ira-color.c (setup_profitable_hard_regs): Add comments.
17991         Don't take prohibited hard regs into account.
17992         (setup_conflict_profitable_regs): Rename to
17993         get_conflict_profitable_regs.
17994         (check_hard_reg_p): Check prohibited hard regs.
17995
17996 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
17997
17998         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
17999         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
18000         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
18001
18002 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18003
18004         PR target/48366
18005         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
18006         move from floating point to shift amount register.
18007         (emit_move_sequence): Remove secondary reload support for floating
18008         point to shift amount amount register copies.
18009         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
18010         amount register copies.
18011         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
18012         register, return false if mode isn't a scalar integer mode.
18013         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
18014
18015 2011-04-08  Richard Guenther  <rguenther@suse.de>
18016
18017         * gimple.c (gimple_call_flags): Remove kludge.
18018
18019 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18020
18021         * sel-sched.c (sel_region_init): Move call to
18022         sel_setup_region_sched_flags after setup_current_loop_nest.
18023
18024 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
18025
18026         PR rtl-optimization/48272
18027         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
18028         init_insn_reg_pressure_info.  Adjust a caller.
18029         * sched-int.h (init_insn_reg_pressure_info): Declare.
18030         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
18031         when sched-pressure is enabled.
18032
18033 2011-04-08  Richard Guenther  <rguenther@suse.de>
18034
18035         * gimple.c (gimple_set_modified): Do not queue calls to
18036         MODIFIED_NORETURN_CALLS here ...
18037         * tree-ssa-operands.c (update_stmt_operands): ... but here.
18038
18039 2011-04-08  Richard Guenther  <rguenther@suse.de>
18040
18041         PR lto/48467
18042         * toplev.c (lang_dependent_init): Do not open asm_out_file
18043         in WPA mode, nor perform debug machinery initialization.
18044         (finalize): Do not unlink asm_out_file in WPA mode.
18045
18046 2011-04-08  Richard Guenther  <rguenther@suse.de>
18047
18048         * gimple.h (gimple_call_fntype): New function.
18049         (gimple_call_return_type): Use it.
18050         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
18051         * gimple-low.c (gimple_check_call_args): Likewise.
18052         * gimple.c (gimple_call_flags): Likewise.
18053         (gimple_call_arg_flags): Likewise.
18054         (gimple_call_return_flags): Likewise.
18055         * tree-cfg.c (verify_gimple_call): Likewise.
18056         (do_warn_unused_result): Likewise.
18057         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
18058         * value-prof.c (gimple_ic_transform): Fix fndecl check.
18059
18060 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
18061
18062         PR rtl-optimization/48235
18063         * sel-sched.c (code_motion_process_successors): Recompute the last
18064         insn in basic block if control flow changed.
18065         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
18066         Update condition for ilist_remove.
18067
18068 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18069
18070         PR rtl-optimization/48302
18071         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
18072         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
18073         it to record added preheader blocks.
18074         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
18075         on to sel_add_loop_preheaders.
18076         (sel_region_init): Move call to setup_current_loop_nest after
18077         sel_init_bbs.
18078
18079 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18080
18081         PR target/48273
18082         * cfgloop.h (loop_has_exit_edges): New helper.
18083         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
18084         non-clonable.
18085         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
18086         that have no exit edges.
18087
18088 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
18089
18090         PR rtl-optimization/48442
18091         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
18092         all callers.  Adjust assert.
18093
18094 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
18095
18096         PR tree-optimization/48377
18097         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
18098         is_packed to true even for types with smaller TYPE_ALIGN than
18099         TYPE_SIZE.
18100
18101 2011-04-08  Richard Guenther  <rguenther@suse.de>
18102
18103         PR bootstrap/48513
18104         * doc/tm.texi: Re-generate.
18105
18106 2011-04-08  Wei Guozhi  <carrot@google.com>
18107
18108         PR target/47855
18109         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
18110         * config/arm/arm.c (arm_attr_length_push_multi): New function.
18111         * config/arm/arm.md (*push_multi): Change the length computation to
18112         call a C function.
18113
18114 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
18115
18116         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
18117         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
18118         * doc/tm.texi: Regenerate.
18119         * system.h (ASM_OUTPUT_BSS): Poison.
18120         * varasm.c (asm_output_bss): Remove function.
18121         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
18122
18123         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
18124         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
18125         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
18126         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18127         Likewise.
18128         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18129         Likewise.
18130         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
18131         Likewise.
18132         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
18133
18134 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
18135
18136         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
18137         EnumValue lines.
18138
18139 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
18140
18141         * config/m68k/m68k.c (m68k_handle_option): Don't handle
18142         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
18143         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
18144         OPT_mcpu32.
18145         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
18146         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
18147         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
18148         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
18149         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
18150         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
18151         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
18152         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
18153         options.  Don't map other m68k options manually.  Don't handle
18154         old-style options as canonical.
18155         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
18156         * doc/install.texi (m68k-*-*): Document binutils version requirement.
18157
18158 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
18159
18160         * basic-block.h (force_nonfallthru): Move to...
18161         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
18162         (force_nonfallthru): ...here.
18163         * cfghooks.c (force_nonfallthru): New function.
18164         * cfgrtl.c (force_nonfallthru): Rename into...
18165         (rtl_force_nonfallthru): ...this.
18166         (commit_one_edge_insertion): Do not set AUX field.
18167         (commit_edge_insertions): Do not discover new basic blocks.
18168         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
18169         (cfg_layout_rtl_cfg_hooks): Likewise.
18170         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
18171         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
18172         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
18173
18174 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
18175
18176         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18177         Remove macros.
18178
18179 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
18180
18181         * config/i386/sse.md: Update copyright year.
18182         (avxcvtvecmode): Remove.
18183         (sse_movhlps): Merge with *avx_movhlps.
18184         (sse_movlhps): Merge with *avx_movlhps.
18185         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
18186         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
18187         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
18188         (sse_loadhps): Merge with *avx_loadhps.
18189         (sse_storelps): Merge with *avx_storelps.
18190         (sse_loadlps): Merge with *avx_loadlps.
18191         (sse_movss): Merge with *avx_movss.
18192         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
18193         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
18194         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
18195         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
18196         (vec_set<mode>_0): Ditto.
18197         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
18198         (sse4_1_insertps): Merge with *avx_insertps.
18199         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
18200         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
18201         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
18202         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
18203         (sse2_storehpd): Merge with *avx_storehpd.
18204         (sse2_loadhpd): Merge with *avx_loadhpd.
18205         (sse2_loadlpd): Merge with *avx_loadlpd.
18206         (sse2_movsd): Merge with *avx_movsd.
18207         (*vec_concatv2df): Merge with *vec_concatv2df.
18208
18209 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
18210
18211         PR debug/48343
18212         * combine.c (combine_instructions): Add last_combined_insn,
18213         update it if insn is after it, pass it to all try_combine calls.
18214         (try_combine): Add last_combined_insn parameter, pass it instead of
18215         i3 to propagate_for_debug.
18216
18217 2011-04-07  Nick Clifton  <nickc@redhat.com>
18218
18219         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
18220         to handle MDR <-> data register transfers.
18221         (movhi_internal): Likewise.
18222
18223 2011-04-07  Alan Modra  <amodra@gmail.com>
18224
18225         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
18226         previous stack info.
18227
18228 2011-04-07  Tom de Vries  <tom@codesourcery.com>
18229
18230         PR target/43920
18231         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
18232         flow_find_cross_jump.  Swap variables to implement backward replacement.
18233         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
18234
18235 2011-04-07  Tom de Vries  <tom@codesourcery.com>
18236
18237         PR target/43920
18238         * cfgcleanup.c (walk_to_nondebug_insn): New function.
18239         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
18240         and bb2.
18241         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
18242         src1 or src2.  Redirect edges to the last basic block.  Update
18243         frequency and count on multiple basic blocks in case of fallthru.
18244
18245 2011-04-07  Tom de Vries  <tom@codesourcery.com>
18246
18247         PR target/43920
18248         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
18249         function.
18250         (old_insns_match_p): Change return type.  Replace return false/true
18251         with return dir_none/dir_both.  Use can_replace_by.
18252         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
18253         direction from dir_p.  Register replacement direction in dir, last_dir
18254         and afterlast_dir.  Handle new return type of old_insns_match_p using
18255         merge_dir.  Return replacement direction in dir_p.
18256         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
18257         return type of old_insns_match_p.
18258         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
18259         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
18260         flow_find_cross_jump.
18261         * basic-block.h (enum replace_direction): New type.
18262         (flow_find_cross_jump): Add parameter to declaration.
18263
18264 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
18265
18266         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
18267         (AVXMODEDCVTPS2DQ): Ditto.
18268         (VEC_FLOAT_MODE): Ditto.
18269         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
18270         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
18271         (<any_logic:code><mode>3): Use VF mode iterator.
18272         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
18273         Use VF mode iterator.
18274         (copysign<mode>3): Use VF mode iterator.
18275         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
18276         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
18277         (*<any_logic:code><MODEF:mode>3): Merge with
18278         *avx_<any_logic:code><MODEF:mode>3.
18279         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
18280         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
18281         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
18282         (avx_cvtdq2ps<avxmodesuffix>): Remove.
18283         (sse2_cvtdq2ps): Use %v modifier.
18284         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
18285         (avx_cvtps2dq<avxmodesuffix>): Remove.
18286         (sse2_cvtps2dq): Use %v modifier.
18287         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
18288         (avx_cvttps2dq<avxmodesuffix>): Remove.
18289         (sse2_cvttps2dq): Use %v modifier.
18290         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
18291         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
18292         (sse2_cvtsd2siq): Fix insn template.
18293         (sse2_cvtsd2siq_2): Ditto.
18294         (sse2_cvttsd2siq): Ditto.
18295         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
18296         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
18297
18298 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
18299
18300         * gcov-io.c: Use GCC Runtime Library Exception.
18301
18302 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
18303
18304         PR debug/48466
18305         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
18306         as base_reg whatever register reg has been eliminated to, instead
18307         of hardcoding STACK_POINTER_REGNUM.
18308
18309 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
18310
18311         * doc/tm.texi.in: Document C target hooks as separate from general
18312         target hooks.
18313         * doc/tm.texi: Regenerate.
18314         * genhooks.c (struct hook_desc): Add docname field.
18315         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
18316         docname field.
18317         (hook_array): Include c-target.def.
18318         (emit_documentation): Use docname field in output.
18319         (emit_init_macros): Take docname argument.  Only emit definitions
18320         for hooks matching docname.
18321         (main): Expect additional arguments in all cases.  Pass argument
18322         to emit_init_macros.
18323         * target.def: Move initial macro definitions and comments to
18324         target-hooks-macros.h.
18325         (gcc_targetcm): Move to c-family/c-target.def.
18326         * target.h (targetcm): Move declaration to c-family/c-target.h.
18327         * targhooks.c (default_handle_c_option): Move to
18328         c-family/c-opts.c.
18329         * targhooks.h (default_handle_c_option): Move declaration to
18330         c-family/c-common.h.
18331         * target-hooks-macros.h: New file.
18332         * config.gcc (target_has_targetcm): Define and use to add to
18333         c_target_objs and cxx_target_objs.
18334         * config/default-c.c: New file.
18335         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
18336         of target.h and target-def.h.
18337         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
18338         (darwin_objc_construct_string, darwin_cfstring_ref_p,
18339         darwin_check_cfstring_format_arg): Make static.
18340         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
18341         TARGET_STRING_OBJECT_REF_TYPE_P,
18342         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
18343         * config/darwin-protos.h (darwin_objc_construct_string,
18344         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
18345         declare.
18346         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
18347         TARGET_STRING_OBJECT_REF_TYPE_P,
18348         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
18349         * config/t-darwin (darwin-c.o): Update dependencies.
18350         * system.h (TARGET_HAS_TARGETCM): Poison.
18351         * Makefile.in (TARGET_H): Update.
18352         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
18353         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
18354         (default-c.o): New target.
18355         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
18356         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
18357         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
18358         c-target.def.
18359         (build/genhooks.o): Update dependencies.
18360
18361 2011-04-06  Richard Guenther  <rguenther@suse.de>
18362
18363         * ipa-inline.c (enum inlining_mode): Remove.
18364         (cgraph_flatten): Use some other token.
18365         (cgraph_edge_early_inlinable_p): New function, split out from ...
18366         (cgraph_perform_always_inlining): New function, split out from ...
18367         (cgraph_decide_inlining_incrementally): ... here.
18368         (cgraph_mark_inline_edge): Adjust.
18369         (cgraph_early_inlining): Re-structure.
18370         (pass_early_inline): Require SSA form.
18371
18372 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
18373             Julian Brown  <julian@codesourcery.com>
18374             Mark Shinwell  <shinwell@codesourcery.com>
18375
18376         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
18377         LO_REGS only for Thumb-1.
18378         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
18379         be used in short instructions when optimising for size on Thumb-2.
18380
18381 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
18382
18383         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
18384         associated with user returns to be preserved.
18385
18386 2011-04-06  Tristan Gingold  <gingold@adacore.com>
18387
18388         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
18389         symbol_queue_size, DBXOUT_DECR_NESTING,
18390         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
18391         if XCOFF_DEBUGGING_INFO.
18392
18393 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
18394
18395         * config/i386/i386.md (attribute isa): New.
18396         (attribute enabled): New.
18397         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
18398         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
18399         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
18400         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
18401         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
18402         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18403         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
18404         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
18405
18406         * config/i386/sse.md (VF): New mode iterator.
18407         (VF1): Ditto.
18408         (VF2): Ditto.
18409         (VF_128): Ditto.
18410         (SSEMODEF4): Remove.
18411         (attribute sse): Handle V8SF and V4DF modes.
18412         (<absneg:code><mode>2): Use VF mode iterator.
18413         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
18414         mode iterator.
18415         (<plusminus_insn><mode>3): Use VF mode iterator.
18416         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
18417         Use VF mode iterator.
18418         (<sse>_vm<plusminus_insn><mode>3): Merge with
18419         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
18420         (mul<mode>3): Use VF mode iterator.
18421         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
18422         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
18423         mode iterator.
18424         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
18425         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
18426         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
18427         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
18428         mode iterator.
18429         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
18430         Use VF1 mode iterator.
18431         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
18432         (sqrt<VF2:mode>2): New expander.
18433         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
18434         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
18435         and sqrtv2df2.  Use VF mode iterator.
18436         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
18437         mode iterator.
18438         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
18439         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
18440         Use VF1 mode iterator.
18441         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
18442         (<smaxmin:code><mode>3): Use VF mode iterator.
18443         (*<smaxmin:code><mode>3_finite): Merge with
18444         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
18445         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
18446         (<sse>_vm<smaxmin:code><mode>2): Merge with
18447         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
18448         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
18449         mode iterator.
18450         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
18451         mode iterator.
18452         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
18453         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
18454         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
18455         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
18456         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
18457         VF mode iterator.
18458         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
18459         Use VF_128 mode iterator.
18460         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
18461         mode iterator.
18462         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
18463         VF_128 mode iterator.
18464         (vcond<mode>): Use VF mode iterator.
18465         * config/i386/predicates.md (sse_comparison_operator): Merge with
18466         avx_comparison_float_operator.  Do not declare as special_predicate.
18467         * config/i386/i386.c (struct builtin_description): Update for renamed
18468         compare patterns.
18469         (ix86_expand_args_builtin): Ditto.
18470         (ix86_expand_sse_compare_mask): Ditto.
18471
18472 2011-04-06  Richard Guenther  <rguenther@suse.de>
18473
18474         * tree-inline.c (estimate_num_insns): For calls simply account
18475         for all passed arguments and a used return value.
18476
18477 2011-04-06  Richard Guenther  <rguenther@suse.de>
18478
18479         PR tree-optimization/47663
18480         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
18481         call_stmt_time fields.
18482         (cgraph_edge_inlinable_p): Declare.
18483         (cgraph_edge_recursive_p): New inline function.
18484         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
18485         (cgraph_clone_edge): Copy it.
18486         * ipa-inline.c (cgraph_estimate_edge_time): New function.
18487         Account for call stmt time.
18488         (cgraph_estimate_time_after_inlining): Take edge argument.
18489         (cgraph_estimate_edge_growth): Account call stmt size.
18490         (cgraph_estimate_size_after_inlining): Take edge argument.
18491         (cgraph_mark_inline_edge): Adjust.
18492         (cgraph_check_inline_limits): Likewise.
18493         (cgraph_recursive_inlining_p): Remove.
18494         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
18495         (cgraph_decide_recursive_inlining): Take edge argument and
18496         adjust.
18497         (cgraph_decide_inlining_of_small_functions): Do not avoid
18498         diags for recursive inlining here.
18499         (cgraph_flatten): Adjust.
18500         (cgraph_decide_inlining_incrementally): Likewise.
18501         (estimate_function_body_sizes): Remove call cost handling.
18502         (compute_inline_parameters): Initialize caller edge call costs.
18503         (cgraph_estimate_edge_growth): New function.
18504         (cgraph_estimate_growth): Use it.
18505         (cgraph_edge_badness): Likewise.
18506         (cgraph_check_inline_limits): Take an edge argument.
18507         (cgraph_decide_inlining_of_small_functions): Adjust.
18508         (cgraph_decide_inlining): Likewise.
18509         * tree-inline.c (estimate_num_insns): Only account for call
18510         return value if it is used.
18511         (expand_call_inline): Avoid diagnostics on recursive inline
18512         functions here.
18513         * lto-cgraph.c (lto_output_edge): Output edge call costs.
18514         (input_edge): Input edge call costs.
18515
18516 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18517
18518         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
18519
18520 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
18521
18522         * doc/invoke.texi (Spec Files): Fix typo.
18523
18524 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
18525
18526         * profile.c (branch_prob): Move declaration of local variable.  Remove
18527         obsolete ??? comment.  Expand the location explicitly instead of using
18528         the LOCATION_FILE and LOCATION_LINE macros.
18529
18530 2011-04-06  Wei Guozhi  <carrot@google.com>
18531
18532         PR target/47855
18533         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
18534         (arm_cond_branch): Likewise.
18535         (arm_cond_branch_reversed): Likewise.
18536         (arm_jump): Likewise.
18537         (push_multi): Likewise.
18538         * config/arm/constraints.md (Py): New constraint.
18539
18540 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18541
18542         PR bootstrap/48471
18543         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
18544         Move these...
18545         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
18546         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
18547         #ifdef DBX_DEBUGGING_INFO.
18548
18549 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
18550
18551         PR bootstrap/48403
18552         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
18553         if old and new states differ.
18554
18555 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
18556
18557         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
18558         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
18559         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
18560         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
18561         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
18562         mcfv4e): Use Alias.
18563         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
18564         ColdFire options to -mcpu= options.
18565
18566 2011-04-05  Jeff Law  <law@redhat.com>
18567
18568         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
18569         check if BB is a successor of LOOP->header and return
18570         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
18571
18572 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
18573
18574         * cprop.c (struct reg_use): Remove.
18575         (reg_use_table): Make an array of RTX.
18576         (find_used_regs, constprop_register, local_cprop_pass,
18577         bypass_block): Simplify users of reg_use_table.
18578         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
18579         on one of the uses found by find_used_regs.
18580
18581 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18582
18583         PR bootstrap/48469
18584         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
18585         declaration.
18586
18587 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18588
18589         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
18590         as an rtx.
18591         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
18592
18593 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
18594
18595         PR middle-end/48441
18596         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
18597
18598 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18599
18600         * combine.c: Include obstack.h.
18601         (struct insn_link): Define.
18602         (uid_log_links): Adjust type.
18603         (FOR_EACH_LOG_LINK): New macro.
18604         (insn_link_obstack): Declare.
18605         (alloc_insn_link): Define.
18606         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
18607         type of link variables.
18608         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
18609         (try_combine, record_promoted_values, distribute_notes): Likewise.
18610         (distribute_links): Likewise.  Tweak prototype.
18611         (clear_log_links): Delete.
18612         (adjust_for_new_dest): Call alloc_insn_link.
18613         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
18614
18615 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18616
18617         * gcse.c (modify_mem_list): Convert to an array of VECs.
18618         (canon_modify_mem_list, compute_transp): Tweak formatting.
18619         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
18620         (load_killed_in_block_p): Likewise.
18621         (record_last_mem_set_info): Likewise.
18622         (clear_modify_mem_tables): Likewise.
18623
18624 2011-04-05  Tom de Vries  <tom@codesourcery.com>
18625
18626         PR middle-end/48461
18627         * function.c (emit_use_return_register_into_block): Only define if
18628         HAVE_return.
18629
18630 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
18631
18632         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
18633
18634 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
18635
18636         * config/rx/rx-opts.h: New.
18637         * config/rx/rx.c (rx_cpu_type): Remove.
18638         (rx_handle_option): Don't assert that global structures are in
18639         use.  Access variables via opts pointer.  Defer most handling of
18640         OPT_mint_register_.  Use error_at.
18641         (rx_option_override): Handle deferred OPT_mint_register_ here.
18642         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
18643         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
18644         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
18645         (rx_cpu_types): New Enum and EnumValue entries.
18646         (mint-register=): Use Defer and use Var accordingly.
18647
18648 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18649
18650         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
18651         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
18652         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
18653         Move these...
18654         (debug_free_queue, debug_nesting, symbol_queue_index):
18655         ...and these...
18656         * dbxout.c: ...to here.  Make static.
18657
18658 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
18659
18660         * gcse.c (modify_pair): Define.  Define a VEC of it.
18661         (canon_modify_mem_list): Convert to an array of VECs.
18662         (free_insn_expr_list_list): Delete.
18663         (clear_modify_mem_tables): Call VEC_free instead.
18664         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
18665         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
18666         (canon_list_insert, compute_transp): Likewise.
18667
18668 2011-04-05  Tom de Vries  <tom@codesourcery.com>
18669
18670         PR target/43920
18671         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
18672         for size.
18673
18674 2011-04-05  Tom de Vries  <tom@codesourcery.com>
18675
18676         PR target/43920
18677         * function.c (emit_use_return_register_into_block): New function.
18678         (thread_prologue_and_epilogue_insns): Use
18679         emit_use_return_register_into_block.
18680
18681 2011-04-05  Tom de Vries  <tom@codesourcery.com>
18682
18683         PR target/43920
18684         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
18685         insn.
18686
18687 2011-04-05  Tom de Vries  <tom@codesourcery.com>
18688
18689         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
18690
18691 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
18692
18693         * config/arm/arm.md (define_constants for unspec): Replace with
18694         define_c_enum.
18695         (define_constants for unspecv): Replace with define_c_enum.
18696         * config/arm/neon.md (define_constants for unspec): Replace with
18697         define_c_enum.
18698
18699 2011-04-04  Richard Henderson  <rth@redhat.com>
18700
18701         PR bootstrap/48400
18702         * dwarf2out.c (output_line_info): Always emit line info from
18703         at least one section.
18704         (dwarf2out_init): Create text_section_line_info here ...
18705         (set_cur_line_info_table): ... not here.
18706
18707 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
18708
18709         PR target/48380
18710         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
18711         not called.
18712
18713         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
18714
18715 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
18716
18717         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
18718         (expr_equiv_p): Remove.
18719         (insert_set_in_table): Look at <dest, src> pair instead of expr.
18720         (hash_scan_set): Update call to insert_set_in_table.
18721         (dump_hash_table): Dump <dest, src> pair.
18722         (lookup_set): Simplify.  Lookup <dest, src> pair.
18723         (compute_transp): Remove, fold heavily simplified code into...
18724         (compute_local_properties): ...here.  Expect COMP and TRANSP
18725         unconditionally.
18726         (find_avail_set): Take set directly from struct expr.
18727         (find_bypass-set): Likewise.
18728         (bypass_block): Likewise.
18729         (cprop_insn): Likewise.  Remove redundant INSN_P test.
18730
18731         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
18732         checks on form of COND from find_implicit_sets to here.
18733         (find_implicit_sets): Cleanup control flow. Split critical edges
18734         if it exposes implicit sets.  Allocate/resize implicit_sets as
18735         necessary.
18736         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
18737         changed something.  Run df_analyze after find_implicit_sets if any
18738         edges were split.  Do not allocate implicit_sets here.
18739
18740         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
18741         (gcse_obstack): Renamed to cprop_obstack.
18742         (GNEW, GNEWVEC, GNEWVAR): Remove.
18743         (gmalloc): Remove.
18744         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
18745         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
18746         (gcse_alloc): Likewise, and rename to cprop_alloc.
18747         (alloc_gcse_men, free_gcse_mem): Remove.
18748         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
18749         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
18750         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
18751
18752         * cprop.c (oprs_not_set_p): Remove.
18753         (mark_set, mark_clobber): Remove.
18754         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
18755         (reg_not_set_p): New function.
18756         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
18757         (cprop_insn): Likewise.
18758         (cprop_jump): Use FOR_EACH_EDGE.
18759
18760 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
18761
18762         PR bootstrap/48403
18763         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
18764         (rank_for_schedule): Use scheduled_insns vector instead of
18765         last_scheduled_insn.
18766         (ok_for_early_queue_removal): Likewise.
18767         (queue_to_ready): Search forward in nonscheduled_insns_begin if
18768         we have a dbg_cnt.
18769         (choose_ready): Likewise.
18770         (commit_schedule): Use VEC_iterate.
18771         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
18772         a dbg_cnt, use it and ensure the first insn is in the ready list.
18773         (haifa_sched_init): Allocate scheduled_insns.
18774         (sched_extend_ready_list): Don't allocate it; reserve space.
18775         (haifa_sched_finish): Free it.
18776
18777 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
18778
18779         * optc-gen.awk: Always remove type from Variable entry before
18780         recording in var_seen.
18781
18782 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
18783
18784         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
18785         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
18786         call to tidy_fallthru_edges.
18787
18788 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
18789
18790         * doc/options.texi (ToLower): Document.
18791         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
18792         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
18793         * opts.h (cl_option): Add cl_tolower field.
18794         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
18795         arguments with lowercase strings.
18796         * config/rx/rx.opt (mcpu=): Add ToLower.
18797         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
18798         argument.
18799
18800 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
18801
18802         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
18803
18804 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
18805
18806         * config/vax/vax.c: Include reload.h.
18807
18808 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
18809
18810         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
18811         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
18812         (sparc_preferred_reload_class): New function.
18813
18814 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
18815
18816         PR debug/48401
18817         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
18818         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
18819
18820 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
18821
18822         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
18823         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
18824
18825 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
18826
18827         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
18828         (ASM_OUTPUT_ALIGNED_BSS): Define.
18829
18830 2011-04-03  Michael Matz  <matz@suse.de>
18831
18832         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
18833         and next_slot members.
18834         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
18835         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
18836         (lto_streamer_cache_append): Declare.
18837         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
18838         unsigned index, remove offset parameter, ensure that we append
18839         or update existing entries.
18840         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
18841         parameter, update next_slot for append.
18842         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
18843         parameter.
18844         (lto_streamer_cache_insert_at): Likewise.
18845         (lto_streamer_cache_append): New function.
18846         (lto_streamer_cache_lookup): Use unsigned index.
18847         (lto_streamer_cache_get): Likewise.
18848         (lto_record_common_node): Don't test tree_node_can_be_shared.
18849         (preload_common_node): Adjust call to lto_streamer_cache_insert.
18850         (lto_streamer_cache_delete): Don't free offsets member.
18851         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
18852         (lto_output_string_with_length): Use lto_output_data_stream.
18853         (lto_output_tree_header): Remove ix parameter, don't write it.
18854         (lto_output_builtin_tree): Likewise.
18855         (lto_write_tree): Adjust callers to above, don't track and write
18856         offset, write unsigned index.
18857         (output_unreferenced_globals): Don't emit all global vars.
18858         (write_global_references): Use unsigned indices.
18859         (lto_output_decl_state_refs): Likewise.
18860         (write_symbol): Likewise.
18861         * lto-streamer-in.c (lto_input_chain): Move earlier.
18862         (input_function): Use unsigned index.
18863         (input_alias_pairs): Don't read and then ignore all global vars.
18864         (lto_materialize_tree): Remove ix_p parameter, don't read index,
18865         don't pass it back, use lto_streamer_cache_append.
18866         (lto_register_var_decl_in_symtab): Use unsigned index.
18867         (lto_register_function_decl_in_symtab): Likewise.
18868         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
18869         index.
18870         (lto_get_builtin_tree): Don't read index, use
18871         lto_streamer_cache_append.
18872         (lto_read_tree): Adjust call to lto_materialize_tree.
18873
18874         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
18875         don't use function calls in arguments to MIN.
18876
18877         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
18878         twice.
18879
18880         * gimple.c (gimple_type_leader_entry): Mark deletable.
18881
18882 2011-04-03  Alan Modra  <amodra@gmail.com>
18883
18884         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
18885
18886 2011-04-03  Michael Matz  <matz@suse.de>
18887
18888         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
18889         an integer.
18890         * tree.h (tree_decl_non_common.vindex): Adjust comment.
18891
18892 2011-04-03  Michael Matz  <matz@suse.de>
18893
18894         * cgraphbuild.c (record_reference): Canonicalize constructor values.
18895         * gimple-fold.c (canonicalize_constructor_val): Accept being called
18896         without function context.
18897         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
18898         current_function_decl and cfun.
18899
18900 2011-04-03  Michael Matz  <matz@suse.de>
18901
18902         * tree.c (decl_init_priority_insert): Don't create entry for
18903         default priority.
18904         (decl_fini_priority_insert): Ditto.
18905         (fields_compatible_p, find_compatible_field): Remove.
18906         * tree.h (fields_compatible_p, find_compatible_field): Remove.
18907         * gimple.c (gimple_compare_field_offset): Adjust block comment.
18908
18909 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
18910
18911         * combine.c (try_combine): Remove useless local variable.
18912
18913 2011-04-03  Richard Guenther  <rguenther@suse.de>
18914             Ira Rosen  <ira.rosen@linaro.org>
18915
18916         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
18917         non-variable offsets and compare the remaining bases of the two
18918         accesses instead of looking for exact same data-ref.
18919
18920 2011-04-02  Kai Tietz  <ktietz@redhat.com>
18921
18922         PR target/48416
18923         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
18924
18925         * i386.c (ix86_is_msabi_thiscall): New helper function.
18926         (ix86_is_type_thiscall): New helper function.
18927         (ix86_comp_type_attributes): Handle thiscall for method-functions
18928         special.
18929         (init_cumulative_args): Likewise.
18930         (find_drap_reg): Likewise.
18931         (ix86_static_chain): Likewise.
18932         (x86_this_parameter): Likewise.
18933         (x86_output_mi_thunk): Likewise.
18934
18935 2011-04-01  Olivier Hainque  <hainque@adacore.com>
18936             Nicolas Setton  <setton@adacore.com>
18937             Eric Botcazou  <ebotcazou@adacore.com>
18938
18939         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
18940         (add_gnat_descriptive_type_attribute): New function.
18941         (gen_array_type_die): Call it.
18942         (gen_enumeration_type_die): Likewise.
18943         (gen_struct_or_union_type_die): Likewise.
18944         (modified_type_die): Likewise.
18945         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
18946         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
18947         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
18948
18949 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
18950
18951         PR bootstrap/48148
18952         * dwarf2out.c (resolve_addr): Don't call force_decl_die
18953         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
18954
18955         Revert:
18956         2011-03-17  Richard Guenther  <rguenther@suse.de>
18957
18958         PR bootstrap/48148
18959         * lto-cgraph.c (input_overwrite_node): Clear the abstract
18960         origin for decls in other ltrans units.
18961         (input_varpool_node): Likewise.
18962
18963 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
18964
18965         PR middle-end/48335
18966         * expr.c (expand_assignment): Handle all possibilities
18967         if TO_RTX is CONCAT.
18968         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
18969         (store_split_bit_field): If SUBREG_REG (op0) or
18970         op0 itself has smaller mode than word, return it
18971         for offset 0 and const0_rtx for out-of-bounds stores.
18972         If word is const0_rtx, skip it.
18973
18974 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
18975
18976         * config/h8300/h8300.c (print_operand_address): Rename to...
18977         (h8300_print_operand_address): ...this. Make static. Adjust comments.
18978         Call h8300_print_operand and h8300_print_operand_address instead of
18979         print_operand and print_operand_address. Declare.
18980         (print_operand): Renake to...
18981         (h8300_print_operand): ...this. Make static. Adjust comments.
18982         Call h8300_print_operand instead of print_operand. Declare.
18983         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
18984         (h8300_register_move_cost): Likewise.
18985         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
18986         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
18987         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
18988         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
18989         * config/h8300/h8300-protos.h (print_operand): Delete.
18990         (print_operand_address): Delete.
18991
18992 2011-04-01  Richard Henderson  <rth@redhat.com>
18993
18994         PR 48400
18995         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
18996         in strict mode before dwarf4.  Re-order tests to early out
18997         before switching sections.
18998
18999 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
19000
19001         * config/h8300/constraints.md: New file.
19002         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
19003         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
19004         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
19005         * config/h8300/predicates.md (bit_operand): Likewise.
19006         (incdec_operand): Use satisfies_constraint_M and
19007         satisfies_constraint_O.  Don't use C code block.
19008         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
19009         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
19010         (compute_mov_length): Use satisfies_constraint_G.
19011         (fix_bit_operand): Use satisfies_constraint_U.
19012         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
19013         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
19014         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
19015         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
19016         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
19017         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
19018         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19019         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
19020         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
19021         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
19022         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
19023         (EXTRA_MEMORY_CONSTRAINT): Delete.
19024
19025 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
19026             Michael Meissner  <meissner@linux.vnet.ibm.com>
19027
19028         PR target/48262
19029         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
19030         operands, as per the specifications.
19031
19032         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
19033         (vec_extract_evenv4sf): Ditto.
19034         (vec_extract_evenv8hi): Ditto.
19035         (vec_extract_evenv16qi): Ditto.
19036         (vec_extract_oddv4si): Ditto.
19037
19038 2011-03-31  Mark Wielaard  <mjw@redhat.com>
19039
19040         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
19041         high_pc attribute if the CU has no associated code. Only output
19042         DW_AT_entry_pc for CU if not generating strict dwarf and
19043         dwarf_version < 4.
19044
19045 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
19046
19047         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
19048         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
19049         out of ...
19050         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
19051         * final.c (final_start_function): Call the new function rather
19052         than using a NULL argument for dwarf2out_frame_debug.
19053
19054         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
19055         that contains the prologue.
19056
19057         * haifa-sched.c (queue_insn): New arg REASON.  All callers
19058         changed.  Print it in debugging output.
19059
19060         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
19061
19062         * sched-ebb.c (begin_schedule_ready): Remove second argument.
19063         Split most of the code into...
19064         (begin_move_insn): ... here.  New function.
19065         (ebb_sched_info): Add a pointer to it.
19066         * haifa-sched.c (scheduled_insns): New static variable.
19067         (sched_extend_ready_list): Allocate it.
19068         (schedule_block): Use it to record the order of scheduled insns.
19069         Perform RTL changes to move insns only after all scheduling
19070         decisions have been made.
19071         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
19072         begin_move_insn field.
19073         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
19074         * sched-int.h (struct haifa_sched_info): Remove second argument
19075         from begin_schedule_ready hook.  Add new member begin_move_insn.
19076         * sched-rgn.c (begin_schedule_ready): Remove second argument.
19077         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
19078
19079         * haifa-sched.c (prune_ready_list): New function, broken out of
19080         schedule_block.
19081         (schedule_block): Use it.
19082
19083 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19084
19085         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
19086
19087 2011-04-01  Kai Tietz  <ktietz@redhat.com>
19088
19089         * config.gcc (*-*-mingw*): Allow as option the
19090         posix threading model.
19091         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
19092         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
19093         definition.
19094         (CPP_SPEC): Add pthread/no-pthread handling.
19095         (LIB_SPEC): Likewise.
19096         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
19097         (LIB_SPEC): Likewise.
19098         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
19099         flag to pass -pthread option for shared libgcc build.
19100         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
19101         for shared libgcc build.
19102         * config/i386/t-mingw-pthread: New file.
19103         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
19104         New define to enable use of library pthread by default.
19105         * config/i386/mingw.opt (pthread): New driver option.
19106         (no-pthread): New driver option.
19107         * config/i386/cygming.opt: Make sure trailing empty line is retained.
19108         * config/i386/mingw-w64.opt: Likewise.
19109
19110 2011-04-01  Gary Funck  <gary@intrepid.com>
19111
19112         * c-decl.c (grokdeclarator): Fix formatting.
19113
19114 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19115
19116         * expr.c (emit_block_move_via_movmem): Use n_generator_args
19117         instead of n_operands.
19118         (set_storage_via_setmem): Likewise.
19119         * optabs.c (maybe_gen_insn): Likewise.
19120         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
19121         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
19122         (mips_expand_builtin_direct): Likewise.
19123         * config/spu/spu.c (expand_builtin_args): Likewise.
19124
19125 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19126
19127         * recog.h (insn_data_d): Add n_generator_args.
19128         * genoutput.c (data): Likewise.
19129         (output_insn_data): Print it.
19130         (max_opno, num_dups): Delete.
19131         (scan_operands): Just fill in "d->operand[...]".
19132         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
19133
19134 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
19135
19136         * gensupport.h (pattern_stats): New structure.
19137         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
19138         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
19139         (max_operand_1, max_operand_vec): Delete.
19140         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
19141
19142 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
19143
19144         * emit-rtl.c (emit_pattern_after_setloc): New function.
19145         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
19146         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
19147         (emit_pattern_after): New function.
19148         (emit_insn_after, emit_jump_insn_after): Call it.
19149         (emit_call_insn_after, emit_debug_insn_after): Likewise.
19150         (emit_pattern_before_setloc): New function.
19151         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
19152         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
19153         Likewise.
19154         (emit_pattern_before): New function.
19155         (emit_insn_before, emit_jump_insn_before): Call it.
19156         (emit_call_insn_before, emit_debug_insn_before): Likewise.
19157
19158 2011-03-31  Richard Henderson  <rth@redhat.com>
19159
19160         * dwarf2out.c (dw_separate_line_info_ref): Remove.
19161         (dw_separate_line_info_entry): Remove.
19162         (enum dw_line_info_opcode): New.
19163         (dw_line_info_entry): Use it.
19164         (dw_line_info_table, dw_line_info_table_p): New.
19165         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
19166         (line_info_table, line_info_label_num): Remove.
19167         (line_info_table_in_use): Remove.
19168         (separate_line_info_table): Remove.
19169         (separate_line_info_table_allocated): Remove.
19170         (separate_line_info_table_in_use): Remove.
19171         (LINE_INFO_TABLE_INCREMENT): Remove.
19172         (line_info_label_num): New.
19173         (cur_line_info_table): New.
19174         (text_section_line_info, cold_text_section_line_info): New.
19175         (separate_line_info): New.
19176         (SEPARATE_LINE_CODE_LABEL): Remove.
19177         (print_dwarf_line_table): Remove.
19178         (debug_dwarf): Don't dump it.
19179         (output_one_line_info_table): New.
19180         (output_line_info): Use it.
19181         (new_line_info_table): New.
19182         (set_cur_line_info_table): New.
19183         (dwarf2out_switch_text_section): Use it.
19184         (dwarf2out_begin_function): Likewise.
19185         (push_dw_line_info_entry): New.
19186         (dwarf2out_source_line): Rewrite for new line info tables.
19187         (dwarf2out_init): Remove dead initailizations.
19188
19189 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
19190
19191         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
19192         various flags.
19193         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
19194         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
19195         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
19196         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
19197         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
19198         * opt-functions.awk (flag_init, switch_bit_fields): New.
19199         (switch_flags): Don't handle flags moved to bit-fields.  Don't
19200         generate CL_MISSING_OK or CL_SAVE.
19201         * optc-gen.awk: Update to generate bit-field output as well as
19202         flags field.
19203         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
19204         bit-field instead of CL_REJECT_DRIVER flag.
19205         * opts-common.c (generate_canonical_option,
19206         decode_cmdline_option): Use bit-fields instead of CL_* flags.
19207         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
19208         instead of CL_REJECT_NEGATIVE flag.
19209         * toplev.c (print_switch_values): Use cl_report bit-field instead
19210         of CL_REPORT flag.
19211
19212 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
19213
19214         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
19215         a zero minimum index only if it is redundant.
19216
19217 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
19218
19219         PR rtl-optimization/48381
19220         * ira-color.c (assign_hard_reg): Use hard reg set intersection
19221         instead of ira_class_hard_reg_index for calculating conflicting
19222         hard registers.
19223
19224 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
19225
19226         * cprop.c: Clean up hash table building.
19227         (reg_avail_info): Remove.
19228         (oprs_available_p): Remove.
19229         (record_last_reg_set_info): Remove.
19230         (record_last_set_info): Remove.
19231         (reg_available_p): New function.
19232         (gcse_constant_p): Do not treat unfolded conditions as constants.
19233         (make_set_regs_unavailable): New function.
19234         (hash_scan_set): Simplify with new reg_available_p.
19235         (compute_hash_table_work): Traverse insns stream only once.
19236         Do not compute reg_avail_info. Traverse insns in reverse order.
19237         Record implicit sets after recording explicit sets from the block.
19238
19239 2011-03-31  Michael Matz  <matz@suse.de>
19240
19241         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
19242
19243 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
19244
19245         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
19246         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
19247         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19248         (h8300_mode_dependent_address_p): New function.
19249         (h8300_get_index): Make static.
19250
19251 2011-03-31  Jeff Law  <law@redhat.com>
19252
19253         * reload1.c (elimination_effects): Fix typo in recent change.
19254
19255         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
19256         typo potentially leading to null pointer dereference.
19257
19258         * caller-save.c (new_saved_hard_reg): Eliminate return value.
19259         (setup_save_areas): Corresponding changes to avoid useless
19260         assignments.
19261
19262         * jump.c (reversed_comparison_code_parts): Avoid successive return
19263         statements when REVERSE_CONDITION is defined.
19264
19265         * expr.c (expand_assignment): Avoid useless assignments.
19266         (expand_expr_real_1): Likewise.
19267         (expand_expr_real_2): Avoid useless statements.
19268
19269         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
19270
19271         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
19272
19273         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
19274         statements.
19275
19276         * stmt.c (expand_expr_stmt): Avoid useless assignment.
19277
19278 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
19279
19280         PR target/47109
19281         * doc/tm.texi.in (TARGET_VERSION): Remove.
19282         * doc/tm.texi: Regenerate.
19283         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
19284         * collect2.c (main): Don't use TARGET_VERSION.
19285         * mips-tdump.c (main): Don't use TARGET_VERSION.
19286         * mips-tfile.c (main): Don't use TARGET_VERSION.
19287         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
19288         * config/rs6000/vxworksae.h: Remove.
19289         * config/alpha/alpha.h (TARGET_VERSION): Remove.
19290         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
19291         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
19292         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
19293         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
19294         * config/arm/arm.h (TARGET_VERSION): Remove.
19295         * config/arm/coff.h (TARGET_VERSION): Remove.
19296         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
19297         * config/arm/elf.h (TARGET_VERSION): Remove.
19298         * config/arm/freebsd.h (TARGET_VERSION): Remove.
19299         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
19300         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
19301         * config/arm/pe.h (TARGET_VERSION): Remove.
19302         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
19303         * config/arm/semi.h (TARGET_VERSION): Remove.
19304         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
19305         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
19306         * config/arm/vxworks.h (TARGET_VERSION): Remove.
19307         * config/avr/avr.h (TARGET_VERSION): Remove.
19308         * config/bfin/bfin.h (TARGET_VERSION): Remove.
19309         * config/fr30/fr30.h (TARGET_VERSION): Remove.
19310         * config/frv/frv.h (TARGET_VERSION): Remove.
19311         * config/h8300/h8300.h (TARGET_VERSION): Remove.
19312         * config/i386/cygwin.h (TARGET_VERSION): Remove.
19313         * config/i386/darwin.h (TARGET_VERSION): Remove.
19314         * config/i386/darwin64.h (TARGET_VERSION): Remove.
19315         * config/i386/djgpp.h (TARGET_VERSION): Remove.
19316         * config/i386/freebsd.h (TARGET_VERSION): Remove.
19317         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
19318         * config/i386/gnu.h (TARGET_VERSION): Remove.
19319         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
19320         * config/i386/i386elf.h (TARGET_VERSION): Remove.
19321         * config/i386/linux.h (TARGET_VERSION): Remove.
19322         * config/i386/linux64.h (TARGET_VERSION): Remove.
19323         * config/i386/lynx.h (TARGET_VERSION): Remove.
19324         * config/i386/mingw32.h (TARGET_VERSION): Remove.
19325         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
19326         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
19327         * config/i386/netware.h (TARGET_VERSION): Remove.
19328         * config/i386/nto.h (TARGET_VERSION): Remove.
19329         * config/i386/openbsd.h (TARGET_VERSION): Remove.
19330         * config/i386/vxworks.h (TARGET_VERSION): Remove.
19331         * config/ia64/elf.h (TARGET_VERSION): Remove.
19332         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
19333         * config/ia64/hpux.h (TARGET_VERSION): Remove.
19334         * config/ia64/linux.h (TARGET_VERSION): Remove.
19335         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
19336         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
19337         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
19338         * config/lm32/lm32.h (TARGET_VERSION): Remove.
19339         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
19340         * config/m32c/m32c.h (TARGET_VERSION): Remove.
19341         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
19342         * config/m32r/m32r.h (TARGET_VERSION): Remove.
19343         * config/m68k/linux.h (TARGET_VERSION): Remove.
19344         * config/m68k/m68k.h (TARGET_VERSION): Remove.
19345         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
19346         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
19347         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
19348         * config/mep/mep.h (TARGET_VERSION): Remove.
19349         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
19350         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
19351         * config/mips/iris6.h (MACHINE_TYPE): Remove.
19352         * config/mips/linux.h (TARGET_VERSION): Remove.
19353         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
19354         * config/mips/vxworks.h (TARGET_VERSION): Remove.
19355         * config/mmix/mmix.h (TARGET_VERSION): Remove.
19356         * config/mn10300/linux.h (TARGET_VERSION): Remove.
19357         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
19358         * config/pa/pa.h (TARGET_VERSION): Remove.
19359         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
19360         * config/picochip/picochip.h (TARGET_VERSION): Remove.
19361         * config/rs6000/aix.h (TARGET_VERSION): Remove.
19362         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
19363         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
19364         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
19365         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
19366         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
19367         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
19368         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
19369         * config/rs6000/linux.h (TARGET_VERSION): Remove.
19370         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
19371         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
19372         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
19373         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
19374         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
19375         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
19376         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
19377         * config/s390/linux.h (TARGET_VERSION): Remove.
19378         * config/s390/s390.h (TARGET_VERSION): Remove.
19379         * config/s390/tpf.h (TARGET_VERSION): Remove.
19380         * config/score/score.h (TARGET_VERSION): Remove.
19381         * config/sh/linux.h (TARGET_VERSION): Remove.
19382         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
19383         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
19384         * config/sh/sh.h (TARGET_VERSION): Remove.
19385         * config/sh/sh64.h (TARGET_VERSION): Remove.
19386         * config/sh/superh.h (TARGET_VERSION): Remove.
19387         * config/sh/vxworks.h (TARGET_VERSION): Remove.
19388         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
19389         * config/sparc/linux.h (TARGET_VERSION): Remove.
19390         * config/sparc/linux64.h (TARGET_VERSION): Remove.
19391         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
19392         TARGET_NAME32, TARGET_NAME): Remove.
19393         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
19394         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
19395         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
19396         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
19397         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
19398         * config/spu/spu.h (TARGET_VERSION): Remove.
19399         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
19400         * config/v850/v850.h (TARGET_VERSION): Remove.
19401         * config/vax/linux.h (TARGET_VERSION): Remove.
19402         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
19403         * config/xtensa/elf.h (TARGET_VERSION): Remove.
19404         * config/xtensa/linux.h (TARGET_VERSION): Remove.
19405
19406 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
19407
19408         PR target/48142
19409         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
19410         frame-related from frame-unrelated adjustments to the stack pointer.
19411
19412 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
19413
19414         * common.opt (fdebug-types-section): Move earlier.
19415         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
19416
19417 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
19418
19419         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
19420         var.
19421
19422 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
19423
19424         * tree.h (CASE_CHAIN): Define.
19425         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
19426         (gimple_redirect_edge_and_branch): Likewise.
19427
19428 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
19429
19430         PR middle-end/48367
19431         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
19432         calculation.
19433
19434 2011-03-30  Jeff Law  <law@redhat.com>
19435
19436         * PR bootstrap/48371
19437         * reload1.c (reload): Fix botch in last change.
19438
19439         * reload.h (struct reload): Fix typo introduced in last change.
19440
19441 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
19442
19443         * config/arm/arm.opt (mhard-float, msoft-float): Mark
19444         Undocumented.  Remove help text.
19445         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
19446         -mhard-float.
19447
19448 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
19449
19450         * doc/options.texi (NegativeAlias): Document.
19451         (Alias): Mention NegativeAlias.
19452         * opt-functions.awk: Handle NegativeAlias.
19453         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
19454         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
19455         * opts.h (CL_NEGATIVE_ALIAS): Define.
19456         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
19457         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
19458         OPT_mspe_.
19459         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
19460         Alias entries.
19461         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
19462         mno-spe and mno-isel instead of mspe=no and -misel=no.
19463
19464 2011-03-29  Mark Wielaard  <mjw@redhat.com>
19465
19466         * common.opt (fdebug-types-section): New flag.
19467         * doc/invoke.texi: Document new -fno-debug-types-section flag.
19468         * dwarf2out.c (use_debug_types): New define.
19469         (struct die_struct): Mark die_id with GTY desc use_debug_types.
19470         (print_die): Guard output of type unit signatures using
19471         use_debug_types.
19472         (build_abbrev_table): Replace assert of dwarf_version >= 4
19473         with assert on use_debug_types.
19474         (size_of_die): Likewise.
19475         (unmark_dies): Likewise.
19476         (value_format): Decide AT_ref_external form on use_debug_types.
19477         (output_die): Replace dwarf_version version check guard with
19478         use_debug_types where appropriate.
19479         (modified_type_die): Likewise.
19480         (gen_reference_type_die): Likewise.
19481         (dwarf2out_start_source_file): Likewise.
19482         (dwarf2out_end_source_file): Likewise.
19483         (prune_unused_types_walk_attribs): Likewise.
19484         (dwarf2out_finish): Likewise.
19485
19486 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
19487
19488         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
19489
19490 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
19491
19492         PR rtl-optimization/48332
19493         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
19494         mode of input operand N and modeN to its actual mode.
19495
19496 2011-03-30  Jeff Law  <law@redhat.com>
19497
19498         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
19499         define accessor macro.
19500         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
19501         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
19502         (reg_equiv_init): Likewise.
19503         (reg_equivs_size): New variable.
19504         (reg_equiv_init_size): Remove.
19505         (allocate_initial_values): Move prototype to here from....
19506         * integrate.h (allocate_initial_values): Remove prototype.
19507         * integrate.c: Include reload.h.
19508         (allocate_initial_values): Corresponding changes.
19509         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
19510         (fix_reg_equiv_init, no_equiv): Corresponding changes.
19511         (update_equiv_regs): Corresponding changes.
19512         (ira): Corresponding changes.
19513         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
19514         (push_secondary_reload): Corresponding changes.
19515         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
19516         (make_memloc, find_reloads_address): Corresponding changes.
19517         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
19518         (find_reloads_address_1): Corresponding changes.
19519         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
19520         (refers_to_regno_for_reload_p): Corresponding changes.
19521         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
19522         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
19523         * reload1.c: Include ggc.h.
19524         (grow_reg_equivs): New function.
19525         (replace_pseudos_in, reload): Corresponding changes.
19526         (calculate_needs_all_insns, alter_regs): Corresponding changes.
19527         (eliminate_regs_1, elimination_effects): Corresponding changes.
19528         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
19529         (delete_output_reload): Likewise.
19530         * caller-save.c (mark_referenced_regs): Corresponding changes.
19531         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
19532         * frv/predicates.md (frv_load_operand): Corresponding changes.
19533         * microblaze/microblaze.c (double_memory_operand): Corresponding
19534         changes.
19535         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
19536         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
19537         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
19538         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
19539         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
19540         changes.
19541         * pa/pa.c (emit_move_sequence): Corresponding changes.
19542         * vax/vax.c (nonindexed_address_p): Corresponding changes.
19543
19544 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
19545
19546         PR target/47551
19547         * config/arm/arm.c (coproc_secondary_reload_class): Handle
19548         structure modes.  Don't check neon_vector_mem_operand for
19549         vector or structure modes.
19550
19551 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
19552             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19553
19554         PR target/43590
19555         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
19556         operand 1 and reshuffle the operands to match.
19557         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
19558
19559 2011-03-30  Christian Schüler  <cschueler@gmx.de>
19560
19561         PR driver/48208
19562         * config/c.opt (F): Added 'Driver' to -F option.
19563
19564         PR driver/48260
19565         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
19566           handler function.
19567         * config/darwin.opt: Added '-arch' option.
19568
19569 2011-03-30  Nick Clifton  <nickc@redhat.com>
19570
19571         * config/rx/rx.md: Add peepholes and patterns to combine
19572         extending loads and simple arithmetic instructions.
19573         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
19574         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
19575         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
19576         modes to use pre-decrement and post-increment addressing.
19577         (rx_is_restricted_memory_address): Add range checking of REG+INT
19578         addresses.
19579         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
19580         (rx_memory_move_cost): Adjust cost of stores.
19581         (rx_adjust_insn_length): New function.
19582
19583 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
19584
19585         PR c/48305
19586         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
19587         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
19588         matching arg00/arg01 types.
19589
19590 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
19591
19592         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
19593         last_location to UNKNOWN_LOCATION.
19594
19595 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
19596
19597         PR target/48349
19598         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
19599         FLOAT_SSE_REGS.
19600
19601 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
19602             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19603
19604         PR bootstrap/48337
19605         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
19606         Init(PROCESSOR_V7).
19607         (sparc_cpu): Likewise.
19608         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
19609         PROCESSOR_V7.
19610
19611 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
19612
19613         PR target/48336
19614         PR middle-end/48342
19615         PR rtl-optimization/48345
19616         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
19617         hard regs for given mode from profitable regs when doing secondary
19618         allocation.
19619
19620 2011-03-29  Jeff Law  <law@redhat.com>
19621
19622         PR bootstrap/48327
19623         * tree-ssa-threadupdate.c (struct redirection_data): Remove
19624         do_not_duplicate field.
19625         (lookup_redirection_data): Corresponding changes.
19626         (create_duplicates): Always create a template block.
19627         (redirect_edges): Remove code which reused the original block
19628         when it was going to become unreachable code.
19629         (thread_block): Don't set do_not_duplicate field.
19630
19631 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
19632
19633         * lto-opts.c (register_user_option_p, lto_register_user_option):
19634         Make type argument unsigned.
19635         * lto-streamer.h (lto_register_user_option): Make type argument
19636         unsigned.
19637         * opth-gen.awk: Make CL_* macros unsigned.
19638         * opts-common.c (find_opt): Make lang_mask argument unsigned.
19639         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
19640         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
19641         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
19642         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
19643         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
19644         (find_opt): Make lang_mask argument unsigned.
19645
19646 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
19647
19648         PR rtl-optimization/48331
19649         PR rtl-optimization/48334
19650         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
19651         for any used algorithm.
19652
19653 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
19654
19655         * ira-conflicts.c (build_object_conflicts): Add unused attribute
19656         to parent_max.
19657
19658 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
19659
19660         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
19661         (alpha_option_override): Don't set alpha_sr_alias_set.
19662         (emit_frame_store_1): Use gen_frame_mem rather than calling
19663         set_mem_alias_set.
19664         (alpha_expand_epilogue): Ditto.
19665
19666 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
19667
19668         PR tree-optimization/48290
19669         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
19670         vectorization, check that relevant phis in the basic block after
19671         the inner loop are really inner loop's exit phis.
19672
19673 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
19674
19675         PR debug/48190
19676         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
19677         (cached_dw_loc_list_def): New structure.
19678         (cached_dw_loc_list): New typedef.
19679         (cached_dw_loc_list_table): New variable.
19680         (cached_dw_loc_list_table_hash): New function.
19681         (cached_dw_loc_list_table_eq): Likewise.
19682         (add_location_or_const_value_attribute): Take a bool cache_p.
19683         Cache the list when the parameter is true.
19684         (gen_formal_parameter_die): Update caller.
19685         (gen_variable_die): Likewise.
19686         (dwarf2out_finish): Likewise.
19687         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
19688         while generating debug info for the decl.
19689         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
19690         (dwarf2out_init): Initialize cached_dw_loc_list_table.
19691         (resolve_addr): Cache the result of resolving a chain of
19692         location lists.
19693
19694 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
19695
19696         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
19697         conflict object hard regset nodes have intersecting hard reg sets.
19698
19699         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
19700         after regstat_init_n_sets_and_refs.
19701
19702         * ira.c: Add more comments at the top.
19703         (setup_stack_reg_pressure_class, setup_pressure_classes):
19704         Add comments how we compute the register pressure classes.
19705         (setup_allocno_and_important_classes): Add more comments.
19706         (setup_class_translate_array, reorder_important_classes)
19707         (setup_reg_class_relations): Add comments.
19708
19709         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
19710         start of the file.
19711
19712         * ira-color.c: Add 2011 to the Copyright line.
19713         (assign_hard_reg):  Add more comments.
19714         (improve_allocation): Ditto.
19715
19716         * ira-costs.c: Add 2011 to the Copyright line.
19717         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
19718         comments.
19719         (setup_regno_cost_classes_by_mode): Ditto.
19720
19721         Initial patches from ira-improv branch:
19722
19723         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
19724
19725         * ira-build.c (ira_create_object): Remove initialization of
19726         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
19727         (ira_create_allocno): Remove initialization of
19728         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
19729         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
19730         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
19731         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
19732         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
19733         Initialize ALLOCNO_ADD_DATA.
19734         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
19735         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
19736         ALLOCNO_REG.
19737         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
19738         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
19739
19740         * ira.c (ira_reallocate): Remove.
19741         (setup_pressure_classes): Call
19742         ira_init_register_move_cost_if_necessary.  Use
19743         ira_register_move_cost instead of ira_get_register_move_cost.
19744         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
19745         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
19746
19747         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
19748         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
19749         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
19750         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
19751         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
19752         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
19753         Fix formatting.
19754         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
19755         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
19756         (struct allocno_color_data): New.
19757         (allocno_color_data_t): New typedef.
19758         (allocno_color_data): New definition.
19759         (ALLOCNO_COLOR_DATA): New macro.
19760         (struct object_color_data): New.
19761         (object_color_data_t): New typedef.
19762         (object_color_data): New definition.
19763         (OBJECT_COLOR_DATA): New macro.
19764         (update_copy_costs, calculate_allocno_spill_cost): Call
19765         ira_init_register_move_cost_if_necessary.  Use
19766         ira_register_move_cost instead of ira_get_register_move_cost.
19767         (move_spill_restore, update_curr_costs): Ditto.
19768         (allocno_spill_priority): Make it inline.
19769         (color_pass): Allocate and free allocno_color_dat and object_color_data.
19770         (struct coalesce_data, coalesce_data_t): New.
19771         (allocno_coalesce_data): New definition.
19772         (ALLOCNO_COALESCE_DATA): New macro.
19773         (merge_allocnos, coalesced_allocno_conflict_p): Use
19774         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
19775         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
19776         (coalesce_allocnos): Ditto.
19777         (setup_coalesced_allocno_costs_and_nums): Ditto.
19778         (collect_spilled_coalesced_allocnos): Ditto.
19779         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
19780         (setup_slot_coalesced_allocno_live_ranges): Ditto.
19781         (coalesce_spill_slots): Ditto.
19782         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
19783         free allocno_coalesce_data.
19784
19785         * ira-conflicts.c: Fix formatting.
19786         (process_regs_for_copy): Call
19787         ira_init_register_move_cost_if_necessary.  Use
19788         ira_register_move_cost instead of ira_get_register_move_cost.
19789         (build_object_conflicts): Optimize.
19790
19791         * ira-costs.c (record_reg_classes): Optimize.  Call
19792         ira_init_register_move_cost_if_necessary.  Use
19793         ira_register_move_cost, ira_may_move_in_cost, and
19794         ira_may_move_out_cost instead of ira_get_register_move_cost and
19795         ira_get_may_move_cost.
19796         (record_address_regs): Ditto.
19797         (scan_one_insn): Optimize.
19798         (find_costs_and_classes): Optimize.
19799         (process_bb_node_for_hard_reg_moves): Call
19800         ira_init_register_move_cost_if_necessary.  Use
19801         ira_register_move_cost instead of ira_get_register_move_cost.
19802
19803         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
19804         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
19805         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
19806         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
19807         definitions.
19808         (ira_initiate_emit_data, ira_finish_emit_data)
19809         (create_new_allocno): New functions.
19810         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
19811         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
19812         Use ira_register_move_cost instead of ira_get_register_move_cost.
19813
19814         * ira-int.h: Fix some comments.
19815         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
19816         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
19817         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
19818         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
19819         add_data.
19820         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
19821         bitfield after mode.  Make hard_regno a short int.  Make
19822         hard_regno short.  Remove first_coalesced_allocno and
19823         next_coalesced_allocno.  Move mem_optimized_dest_p,
19824         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
19825         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
19826         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
19827         temp, colorable_p.  Add new member add_data.
19828         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
19829         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
19830         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
19831         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
19832         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
19833         (ALLOCNO_ADD_DATA): New macro.
19834         (ira_emit_data_t): New typedef.
19835         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
19836         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
19837         from struct ira_allocno.
19838         (ALLOCNO_EMIT_DATA): New macro.
19839         (ira_allocno_emit_data, allocno_emit_reg): New.
19840         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
19841         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
19842         (OBJECT_ADD_DATA): New macro.
19843         (ira_reallocate): Remove.
19844         (ira_initiate_emit_data, ira_finish_emit_data): New.
19845         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
19846         (ira_init_register_move_cost_if_necessary): New.
19847         (ira_object_conflict_iter_next): Merge into
19848         ira_object_conflict_iter_cond.
19849         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
19850
19851         * ira-live.c (process_single_reg_class_operands): Call
19852         ira_init_register_move_cost_if_necessary.  Use
19853         ira_register_move_cost instead of ira_get_register_move_cost.
19854
19855         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
19856
19857         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
19858
19859         * ira-costs.c: Fix formatting.
19860         (cost_classes, cost_classes_num): Remove.
19861         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
19862         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
19863         (cost_classes_del, cost_classes_htab): New.
19864         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
19865         (initiate_regno_cost_classes, setup_cost_classes): New.
19866         (setup_regno_cost_classes_by_aclass): New.
19867         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
19868         (record_reg_classes): Use regno_cost_classes instead of
19869         cost_classes.  Move checking opposite operand up.
19870         (record_address_regs): Use regno_cost_classes
19871         instead of cost_classes.
19872         (scan_one_insn): Ditto.  Use always general register.
19873         (print_allocno_costs): Use regno_cost_classes instead of
19874         cost_classes.
19875         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
19876         (find_costs_and_classes): Set up cost classes for each registers.
19877         Use also their mode for this.  Use regno_cost_classes instead of
19878         cost_classes.
19879         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
19880         cost_classes.
19881         (free_ira_costs, ira_init_costs): Don't use cost_classes.
19882         (ira_costs, ira_set_pseudo_classes): Call
19883         initiate_regno_cost_classes and finish_regno_cost_classes.
19884
19885         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
19886
19887         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
19888
19889         * target.def (ira_cover_classes): Remove.
19890
19891         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
19892
19893         * doc/tm.texi.in: Ditto.
19894
19895         * ira-conflicts.c: Remove mentioning cover classes from the file.
19896         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
19897         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
19898
19899         * targhooks.c (default_ira_cover_classes): Remove.
19900
19901         * targhooks.h (default_ira_cover_classes): Ditto.
19902
19903         * haifa-sched.c: Remove mentioning cover classes from the file.
19904         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
19905         ira_pressure_classes and ira_pressure_classes_num instead of
19906         ira_reg_class_cover_size and ira_reg_class_cover.  Use
19907         sched_regno_pressure_class instead of sched_regno_cover_class.
19908         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
19909         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
19910
19911         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
19912         classes from the file.
19913         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
19914         (struct object_hard_regs, struct object_hard_regs_node): New.
19915         (struct ira_object): New members profitable_hard_regs,
19916         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
19917         (struct ira_allocno): Rename cover_class to aclass.  Rename
19918         cover_class_cost and updated_cover_class_cost to class_cost and
19919         updated_class_cost.  Remove splay_removed_p and
19920         left_conflict_size.  Add new members colorable_p.
19921         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
19922         (ALLOCNO_COLORABLE_P): New macro.
19923         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
19924         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
19925         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
19926         (OBJECT_...): Rename parameter C to O.
19927         (OBJECT_PROFITABLE_HARD_REGS): New macro.
19928         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
19929         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
19930         (struct target_ira_int): New members x_ira_max_memory_move_cost,
19931         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
19932         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
19933         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
19934         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
19935         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
19936         x_ira_reg_class_subunion.
19937         (ira_max_memory_move_cost, ira_max_register_move_cost)
19938         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
19939         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
19940         (ira_important_class_nums, ira_reg_class_superunion): New macros.
19941         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
19942         (ira_reg_class_union): Rename to ira_reg_class_subunion.
19943         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
19944         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
19945         (ira_tune_allocno_costs_and_cover_classes): Rename to
19946         ira_tune_allocno_costs.
19947         (ira_debug_hard_regs_forest): New.
19948         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
19949         (ira_object_conflict_iter_next): Fix comments.
19950         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
19951         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
19952         cover_class to aclass.
19953         (ira_allocate_and_accumulate_costs): Ditto.
19954         (ira_allocate_and_set_or_copy_costs): Ditto.
19955
19956         * opts.c (decode_options): Remove ira_cover_class check.
19957
19958         * ira-color.c: Remove mentioning cover classes from the file.  Use
19959         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
19960         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
19961         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
19962         (splay-tree.h): Remove include.
19963         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
19964         before copy_freq_compare_func.
19965         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
19966         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
19967         New definitions.
19968         (hard_regs_roots, hard_regs_node_vec): Ditto.
19969         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
19970         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
19971         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
19972         (create_new_object_hard_regs_node): Ditto.
19973         (add_new_object_hard_regs_node_to_forest): Ditto.
19974         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
19975         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
19976         Ditto.
19977         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
19978         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
19979         (remove_unused_object_hard_regs_nodes): Ditto.
19980         (enumerate_object_hard_regs_nodes): Ditto.
19981         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
19982         (object_hard_regs_subnode_t): Ditto.
19983         (struct object_hard_regs_subnode): Ditto.
19984         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
19985         (setup_object_hard_regs_subnode_index): Ditto.
19986         (get_object_hard_regs_subnodes_num): Ditto.
19987         (form_object_hard_regs_nodes_forest): Ditto.
19988         (finish_object_hard_regs_nodes_tree): Ditto.
19989         (finish_object_hard_regs_nodes_forest): Ditto.
19990         (allocnos_have_intersected_live_ranges_p): Rename to
19991         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
19992         (pseudos_have_intersected_live_ranges_p): Rename to
19993         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
19994         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
19995         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
19996         (update_copy_costs): Remove assert.  Skip cost update if the hard
19997         reg does not belong the class.
19998         (assign_hard_reg): Process only profitable hard regs.
19999         (uncolorable_allocnos_num): Make it scalar.
20000         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
20001         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
20002         and ira_reg_class_max_nregs.
20003         (bucket_allocno_compare_func): Check frequency first.
20004         (sort_bucket): Add compare function as a parameter.
20005         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
20006         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
20007         (push_allocno_to_stack): Rewrite for checking new allocno
20008         colorability.
20009         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
20010         (push_only_colorable): Pass new parameter to sort_bucket.
20011         (push_allocno_to_spill): Remove.
20012         (allocno_spill_priority_compare): Make it inline and rewrite.
20013         (splay_tree_allocate, splay_tree_free): Remove.
20014         (allocno_spill_sort_compare): New function.
20015         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
20016         build and use splay tree.  Choose first allocno in uncolorable
20017         allocno bucket to spill.  Remove setting spill cost.
20018         (all_conflicting_hard_regs): Remove.
20019         (setup_allocno_available_regs_num): Check only profitable hard
20020         regs.  Print info about hard regs nodes.
20021         (setup_allocno_left_conflicts_size): Remove.
20022         (put_allocno_into_bucket): Don't call
20023         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
20024         (improve_allocation): New.
20025         (color_allocnos): Call setup_profitable_hard_regs,
20026         form_object_hard_regs_nodes_forest, improve_allocation,
20027         finish_object_hard_regs_nodes_forest.  Setup spill cost.
20028         (print_loop_title): Use pressure classes.
20029         (color_allocnso): Ditto.
20030         (do_coloring): Remove allocation and freeing splay_tree_node_pool
20031         and allocnos_for_spilling.
20032         (ira_sort_regnos_for_alter_reg): Don't setup members
20033         {first,next}_coalesced_allocno.
20034         (color): Remove allocating and freeing removed_splay_allocno_vec.
20035         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
20036         prohibited_class_mode_regs.
20037
20038         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
20039         formatting.
20040         (update_allocno_pressure_excess_length): Use pressure classes.
20041         (inc_register_pressure, dec_register_pressure): Check for pressure
20042         class.
20043         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
20044         pressure class.  Use ira_reg_class_nregs instead of
20045         ira_reg_class_max_nregs.
20046         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
20047         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
20048         (single_reg_class): Use ira_reg_class_nregs instead of
20049         ira_reg_class_max_nregs.
20050         (process_bb_node_lives): Use pressure classes.
20051
20052         * ira-emit.c: Remove mentioning cover classes from the file.  Use
20053         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
20054         (change_loop): Use pressure classes.
20055         (modify_move_list): Call ira_set_allocno_class instead of
20056         ira_set_allocno_cover_class.
20057
20058         * ira-build.c: Remove mentioning cover classes from the file.  Use
20059         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
20060         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
20061         ALLOCNO_UPDATED_CLASS_COST instead of
20062         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
20063         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
20064         (ira_create_allocno): Remove initialization of
20065         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
20066         ALLOCNO_COLORABLE_P.
20067         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
20068         Update conflict regs for the objects.
20069         (create_cap_allocno): Remove assert.  Don't propagate
20070         ALLOCNO_AVAILABLE_REGS_NUM.
20071         (ira_free_allocno_costs): New function.
20072         (finish_allocno): Change a part of code into call of
20073         ira_free_allocno_costs.
20074         (low_pressure_loop_node_p): Use pressure classes.
20075         (object_range_compare_func): Don't compare classes.
20076         (setup_min_max_conflict_allocno_ids): Ditto.
20077
20078         * loop-invariant.c: Remove mentioning cover classes from the file.
20079         Use ira_pressure_classes and ira_pressure_classes_num instead of
20080         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
20081         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
20082         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20083         Use reg_allocno_class instead of reg_cover_class.
20084         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
20085         STACK_REG_COVER_CLASS.
20086         (get_regno_cover_class): Rename to get_regno_pressure_class.
20087         (move_loop_invariants): Initialize and finalize regstat.
20088
20089         * ira.c: Remove mentioning cover classes from the file.  Add
20090         comments about coloring without cover classes.  Use ALLOCNO_CLASS
20091         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
20092         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
20093         setup_class_subset_and_memory_move_costs.
20094         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
20095         (setup_cover_and_important_classes): Rename to
20096         setup_allocno_and_important_classes.
20097         (setup_class_translate_array): New.
20098         (setup_class_translate): Call it for allocno and pressure classes.
20099         (cover_class_order): Rename to allocno_class_order.
20100         (comp_reg_classes_func): Use ira_allocno_class_translate instead
20101         of ira_class_translate.
20102         (reorder_important_classes): Set up ira_important_class_nums.
20103         (setup_reg_class_relations): Set up ira_reg_class_superunion.
20104         (print_class_cover): Rename to print_classes.  Add parameter.
20105         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
20106         Print pressure classes too.
20107         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
20108         setup_reg_subclasses.
20109         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
20110         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
20111         (setup_prohibited_class_mode_regs): Use
20112         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
20113         (clarify_prohibited_class_mode_regs): New function.
20114         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
20115         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
20116         (ira_init_once): Initialize them.
20117         (free_register_move_costs): Process them.
20118         (ira_init): Move calls of find_reg_classes and
20119         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
20120         Call clarify_prohibited_class_mode_regs.
20121         (ira_no_alloc_reg): Remove.
20122         (too_high_register_pressure_p): Use pressure classes.
20123
20124         * sched-deps.c: Remove mentioning cover classes from the file.
20125         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
20126         ira_pressure_classes and ira_pressure_classes_num instead of
20127         ira_reg_class_cover_size and ira_reg_class_cover.
20128         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
20129         sched_regno_pressure_class instead of sched_regno_cover_class.
20130         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
20131         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
20132
20133         * ira.h: Add 2010 to Copyright.
20134         (ira_no_alloc_reg): Remove external.
20135         (struct target_ira): Rename x_ira_hard_regno_cover_class,
20136         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
20137         x_ira_class_translate to x_ira_hard_regno_allocno_class,
20138         x_ira_allocno_classes_num, x_ira_allocno_classes, and
20139         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
20140         x_ira_pressure_classes, x_ira_pressure_class_translate, and
20141         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
20142         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
20143         x_ira_no_alloc_regs.
20144         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
20145         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
20146         ira_allocno_classes_num and ira_allocno_classes.
20147         (ira_class_translate): Rename to ira_allocno_class_translate.
20148         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
20149         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
20150         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
20151         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
20152         (ira_no_alloc_regs): New.
20153
20154         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
20155         classes from the file.  Use ALLOCNO_CLASS instead of
20156         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
20157         ALLOCNO_COVER_CLASS_COST.
20158         (regno_cover_class): Rename to regno_aclass.
20159         (record_reg_classes): Use ira_reg_class_subunion instead of
20160         ira_reg_class_union.
20161         (record_address_regs): Check overflow.
20162         (scan_one_insn): Ditto.
20163         (print_allocno_costs): Print total mem cost fore regional allocation.
20164         (print_pseudo_costs): Use REG_N_REFS.
20165         (find_costs_and_classes): Use classes intersected with them on the
20166         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
20167         ira_reg_class_union.  Use ira_allocno_class_translate and
20168         regno_aclass instead of ira_class_translate and regno_cover_class.
20169         Modify code for finding regno_aclass.  Setup preferred classes for
20170         the next pass.
20171         (setup_allocno_cover_class_and_costs): Rename to
20172         setup_allocno_class_and_costs.  Use regno_aclass instead of
20173         regno_cover_class.  Use ira_set_allocno_class instead of
20174         ira_set_allocno_cover_class.
20175         (init_costs, finish_costs): Use regno_aclass instead of
20176         regno_cover_class.
20177         (ira_costs): Use setup_allocno_class_and_costs instead of
20178         setup_allocno_cover_class_and_costs.
20179         (ira_tune_allocno_costs_and_cover_classes): Rename to
20180         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
20181         by processing objects.  Use ira_reg_class_max_nregs instead of
20182         ira_reg_class_nregs.
20183
20184         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
20185
20186         * sched-int.h: Remove mentioning cover classes from the file.
20187         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
20188
20189         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
20190         classes from the file.
20191         (struct reg_pref): Rename coverclass into allocnoclass.
20192         (reg_cover_class): Rename to reg_allocno_class.
20193
20194         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
20195
20196         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
20197
20198         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
20199
20200         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
20201
20202         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
20203
20204         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
20205
20206         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
20207
20208         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
20209
20210         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
20211
20212         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
20213
20214         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
20215         (i386_ira_cover_classes): Ditto.
20216
20217         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
20218
20219         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
20220
20221         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
20222
20223         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
20224
20225         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
20226
20227         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
20228
20229         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
20230         (mips_ira_cover_classes): Ditto.
20231
20232         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
20233
20234         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
20235
20236         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
20237
20238         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
20239
20240         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
20241
20242         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
20243         (IRA_COVER_CLASSES_VSX): Ditto.
20244
20245         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
20246         (rs6000_ira_cover_classes): Ditto.
20247
20248         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
20249
20250         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
20251
20252         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
20253
20254         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
20255
20256         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
20257
20258         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
20259
20260         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
20261
20262         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
20263
20264         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
20265
20266         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
20267
20268 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
20269
20270         PR debug/48253
20271         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
20272         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
20273         dw_fde_unlikely_section_end_label, cold_in_std_section,
20274         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
20275         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
20276         fields.
20277         (output_fde): Use dw_fde_second_{begin,end} if second is
20278         true, otherwise dw_fde_{begin,end}.
20279         (output_call_frame_info): Test dw_fde_second_begin != NULL
20280         instead of dw_fde_switched_sections.
20281         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
20282         fields, initialize new fields.  Initialize in_std_section
20283         unconditionally from the first partition.
20284         (dwarf2out_end_epilogue): Don't override dw_fde_end when
20285         dw_fde_second_begin is non-NULL.
20286         (dwarf2out_switch_text_section): Stop initializing removed
20287         dw_fde_struct fields, initialize new fields, initialize
20288         also dw_fde_end here.  Set dw_fde_switch_cfi even when
20289         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
20290         (struct var_loc_list_def): Add last_before_switch field.
20291         (arange_table, arange_table_allocated, arange_table_in_use,
20292         ARANGE_TABLE_INCREMENT, add_arange): Removed.
20293         (size_of_aranges): Count !in_std_section and !second_in_std_section
20294         hunks in fdes, instead of looking at arange_table_in_use.
20295         (output_aranges): Add aranges_length argument, don't call
20296         size_of_aranges here.  Instead of using aranges_table*
20297         emit ranges for fdes when !in_std_section resp.
20298         !second_in_std_section.
20299         (dw_loc_list): Break ranges crossing section switch.
20300         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
20301         use dw_fde_second_end instead of dw_fde_end as end of last range.
20302         (gen_subprogram_die): Don't call add_arange.  Use
20303         dw_fde_{begin,end} for first partition and if switched
20304         section dw_fde_second_{begin,end} for the second.
20305         (var_location_switch_text_section_1,
20306         var_location_switch_text_section): New functions.
20307         (dwarf2out_begin_function): Initialize cold_text_section even
20308         when function_section () isn't text_section.
20309         (prune_unused_types): Don't walk arange_table.
20310         (dwarf2out_finish): Don't needlessly test
20311         flag_reorder_blocks_and_partition when testing cold_text_section_used.
20312         If info_section_emitted, call size_of_aranges and if it indicates
20313         non-empty .debug_aranges, call output_aranges with the computed
20314         size.  Stop using removed dw_fde_struct fields, use
20315         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
20316         for second.
20317
20318         PR debug/48203
20319         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
20320         create ENTRY_VALUE if incoming or address of incoming's MEM
20321         is a hard REG.
20322         * dwarf2out.c (mem_loc_descriptor): Don't emit
20323         DW_OP_GNU_entry_value of DW_OP_fbreg.
20324         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
20325         on ENTRY_VALUE is able to find the canonical parameter VALUE.
20326         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
20327         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
20328         ENTRY_VALUE_EXPs.
20329         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
20330         is a REG_P or MEM_P with REG_P address, compute hash directly
20331         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
20332         (preserve_only_constants): Don't clear VALUES forwaring
20333         ENTRY_VALUE to some other VALUE.
20334
20335 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
20336
20337         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
20338         instead of GEN_INT.
20339
20340 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
20341
20342         * cfgexpand.c (expand_gimple_cond): Always set the source location and
20343         block before expanding the statement.
20344         (expand_gimple_stmt_1): Likewise.  Set them here...
20345         (expand_gimple_stmt): ...and not here.  Tidy.
20346         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
20347         unknown.
20348
20349 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
20350
20351         * Makefile.in: New rule for cprop.o.
20352         * gcse.c: Move constant/copy propagation to cprop.c.
20353         (compute_local_properties): Only handle expression tables.
20354         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
20355         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
20356         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
20357         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
20358         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
20359         compute_cprop_data, find_used_regs, try_replace_reg,
20360         find_avail_set, cprop_jump, constprop_register, cprop_insn,
20361         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
20362         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
20363         find_bypass_set, reg_killed_on_edge, bypass_block,
20364         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
20365         execute_rtl_cprop, pass_rtl_cprop): Move to...
20366         * cprop.c: ...here.  New file, constant/copy propagation for RTL
20367         moved from gcse.c to here with minor cleanups in duplicated code.
20368
20369 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
20370
20371         * config/i386/i386.c (flag_opts): Fix a typo in
20372         -mavx256-split-unaligned-store.
20373
20374 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
20375
20376         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
20377         LIBCALL_VALUE): Remove macros.
20378         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20379         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20380         (h8300_function_value, h8300_libcall_value,
20381         h8300_function_value_regno_p): New functions.
20382
20383 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
20384
20385         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
20386
20387 2011-03-28  Jeff Law  <law@redhat.com>
20388
20389         * tree-ssa-threadupdate.c (redirect_edges): Call
20390         create_edge_and_update_destination_phis as needed.
20391         (create_edge_and_update_destination_phis): Accept new BB argument.
20392         All callers updated.
20393         (thread_block): Do not update the profile when threading around
20394         intermediate blocks.
20395         (thread_single_edge): Likewise.
20396         (determine_bb_domination_status): If BB is not a successor of the
20397         loop header, return NONDOMINATING.
20398         (register_jump_thread): Note when we register a jump thread around
20399         an intermediate block.
20400         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
20401         (thread_across_edge): Use it.
20402
20403 2011-03-28  Tristan Gingold  <gingold@adacore.com>
20404
20405         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
20406         when for_return is 2.
20407
20408 2011-03-28  Jeff Law  <law@redhat.com>
20409
20410         * var-tracking.c (canonicalize_values_mark): Delete unused
20411         lhs assignment.
20412         (canonicalize_values_star, set_variable_part): Likewise.
20413         (clobber_variable_part, delete_variable_part): Likewise.
20414
20415 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
20416
20417         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
20418
20419 2011-03-28  Martin Jambor  <mjambor@suse.cz>
20420
20421         * tree-inline.c (expand_call_inline): Do not check that destination
20422         node is analyzed.
20423         (optimize_inline_calls): Assert that destination node is analyzed.
20424         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
20425         not call tree_lowering_passes.
20426         * cgraph.h (cgraph_analyze_function): Declare.
20427         * cgraphunit.c (cgraph_analyze_function): Make public.
20428
20429 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
20430
20431         * config/sparc/sparc-opts.h: New.
20432         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
20433         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
20434         (sparc_option_override): Store processor_type enumeration rather
20435         than string in cpu_default.  Remove name and enumeration from
20436         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
20437         without using sparc_select.  Use target_flags_explicit instead of
20438         fpu_option_set.
20439         * config/sparc/sparc.h (enum processor_type): Move to
20440         sparc-opts.h.
20441         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
20442         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
20443         HeaderInclude entry.
20444         (mcpu=, mtune=): Use Var and Enum.
20445         (sparc_processor_type): New Enum and EnumValue entries.
20446
20447 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20448             Iain Sandoe  <iains@gcc.gnu.org>
20449
20450         PR target/48245
20451         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
20452
20453 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
20454
20455         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
20456         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
20457         Insert new statements at it in lieu of STMT.
20458         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
20459         * tree-vect-stmts.c (vectorizable_store): Likewise.
20460         (vectorizable_load): Likewise.
20461
20462 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
20463
20464         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
20465         (divtf3): Ditto.
20466         (multf3): Ditto.
20467         (subtf3): Ditto.
20468
20469 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20470
20471         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
20472         unaligned 256bit load/store.
20473         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
20474         (*avx_movdqu<avxmodesuffix>): Likewise.
20475
20476 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20477
20478         PR target/48288
20479         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
20480         * config/pa/pa.md (iordi3): Use new predicate in expander.
20481         (iorsi3): Likewise.
20482
20483 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
20484
20485         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
20486         FUNCTION_VALUE_REGNO_P): Remove macros.
20487         * config/mips/mips-protos.h (mips_function_value): Remove.
20488         * config/mips/mips.c (mips_function_value): Rename to...
20489         (mips_function_value_1): ... this. Make static.  Handle receiving
20490         the function type in 'fn_decl_or_type' argument.
20491         (mips_function_value, mips_libcall_value,
20492         mips_function_value_regno_p): New function.
20493         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20494         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20495
20496 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20497
20498         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
20499         and -mavx256-split-unaligned-store.
20500         (ix86_option_override_internal): Split 32-byte AVX unaligned
20501         load/store by default.
20502         (ix86_avx256_split_vector_move_misalign): New.
20503         (ix86_expand_vector_move_misalign): Use it.
20504
20505         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
20506         -mavx256-split-unaligned-store.
20507
20508         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
20509         256bit load/store.  Generate unaligned store on misaligned memory
20510         operand.
20511         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
20512         256bit load/store.
20513         (*avx_movdqu<avxmodesuffix>): Likewise.
20514
20515         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
20516         -mavx256-split-unaligned-store.
20517
20518 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
20519
20520         PR target/38598
20521         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
20522         Update commentary.
20523
20524 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
20525
20526         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
20527         opno arguments with an expand_operand.  Use create_input_operand.
20528         (mips_prepare_builtin_target): Delete.
20529         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
20530         functions.
20531         (mips_expand_builtin_direct): Use create_output_operand and
20532         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
20533         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
20534         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
20535
20536 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
20537
20538         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
20539         function.
20540         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
20541
20542 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
20543
20544         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
20545         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
20546         basic blocks and call commit_edge_insertions directly.
20547         (fixup_abnormal_edges): Move from here to...
20548         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
20549         on the edges and return whether some have actually been inserted.
20550         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
20551         compensation code.
20552
20553 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
20554
20555         PR rtl-optimization/48144
20556         * sel-sched-ir.c (merge_history_vect): Factor out from ...
20557         (merge_expr_data): ... here.
20558         (av_set_intersect): Rename to av_set_code_motion_filter.
20559         Update all callers.  Call merge_history_vect when an expression
20560         is found in both sets.
20561         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
20562
20563 2011-03-26  Alan Modra  <amodra@gmail.com>
20564
20565         * config/rs6000/predicates.md (word_offset_memref_op): Handle
20566         cmodel medium addresses.
20567         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
20568         64-bit gpr loads and stores.
20569         (rs6000_secondary_reload_ppc64): New function.
20570         * config/rs6000/rs6000-protos.h: Declare it.
20571         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
20572
20573 2011-03-26  Alan Modra  <amodra@gmail.com>
20574
20575         PR target/47487
20576         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
20577         GNU Go in traceback table.
20578
20579 2011-03-25  Richard Henderson  <rth@redhat.com>
20580
20581         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
20582         if there are exactly 6 operands.
20583         (set_storage_via_setmem): Similarly.
20584
20585 2011-03-25  Kai Tietz  <ktietz@redhat.com>
20586
20587         * collect2.c (write_c_file_stat): Handle backslash
20588         as right-hand directory separator.
20589         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
20590         checking just for slash.
20591         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
20592         instead of checking for trailing slash.
20593         * gcc.c (record_temp_file): Use filename_cmp instead
20594         of strcmp.
20595         (do_spec_1): Likewise.
20596         (replace_outfile_spec_function): Likewise.
20597         (is_directory): Use filename_ncmp instead of strncmp.
20598         (print_multilib_info): Likewise.
20599         * gcov.c (find_source): Use filename_cmp instead
20600         instead of strcmp.
20601         (make_gcov_file_name): Fix order of slash/backslash
20602         checks.
20603         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
20604         (add_standard_paths): Likewise.
20605         * mips-tfile.c (saber_stop): Handle backslash.
20606         * prefix.c (update_path): Use filename_ncmp instead of
20607         strncmp.
20608         * profile.c (output_location): Use filename_cmp instead
20609         of strcmp.
20610         * read-md.c (handle_toplevel_file): Handle backslash.
20611         * tlink.c (frob_extension):  Likewise.
20612         * tree-cfg.c (same_line_p): Use filename_cmp instead of
20613         strcmp.
20614         * tree-dump.c (dequeue_and_dump): Handle backslash.
20615         * tree.c (get_file_function_name): Likewise.
20616         * gengtype.c (read_input_list): Likewise.
20617         (get_file_realbasename): Likewise.
20618         (get_output_file_with_visibility): Use filename_cmp
20619         instead of strcmp.
20620
20621 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
20622
20623         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
20624         case to VFPv1.
20625
20626 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
20627
20628         * fold-const.c (expr_location_or): New function.
20629         (fold_truth_not_expr): Call it.
20630
20631 2011-03-25  Jeff Law  <law@redhat.com>
20632
20633         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
20634         va_end.
20635         * c-family/c-common.c (def_fn_type): Likewise.
20636         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
20637         * emit-rtl.c (gen_rtvec): Likewise.
20638         * lto/lto-lang.c (def_fn_type): Likewise.
20639
20640 2011-03-25  Richard Guenther  <rguenther@suse.de>
20641
20642         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
20643         also generate copies.
20644         (fini_copy_prop): Handle constant values properly.
20645
20646 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
20647
20648         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
20649         mode size instead of bitsize with DWARF2_ADDR_SIZE.
20650         (hash_loc_operands, compare_loc_operands): Handle
20651         DW_OP_GNU_entry_value.
20652
20653 2011-03-25  Kai Tietz  <ktietz@redhat.com>
20654
20655         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
20656         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
20657         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
20658         comment and use macro TARGET_64BIT_MS_ABI instead.
20659         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
20660         and change default behavior for 32-bit MS_ABI.
20661         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
20662         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
20663         32-bit, too.
20664         (ix86_cfun_abi): Likewise.
20665         (ix86_maybe_switch_abi): Adjust comment.
20666         (init_cumulative_args): Check for bit-ness in MS_ABI case.
20667         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
20668         instead of checking for SYSV_ABI.
20669         (ix86_nsaved_sseregs): Likewise.
20670         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
20671         to 16 bytes.
20672         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
20673         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
20674         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
20675         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
20676         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
20677
20678 2011-03-25  Richard Guenther  <rguenther@suse.de>
20679
20680         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
20681         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
20682         (verify_gimple): Remove.
20683         * tree-cfg.c (verify_gimple_call): Merge verification
20684         from verify_stmts.
20685         (verify_gimple_phi): Merge verification from verify_stmts.
20686         (verify_gimple_label): New function.
20687         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
20688         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
20689         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
20690         (verify_stmts): Rename to verify_gimple_in_cfg.
20691         (verify_gimple_in_cfg): New function.
20692         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
20693         * tree-ssa.c (verify_ssa): Likewise.
20694         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
20695
20696 2011-03-25  Richard Guenther  <rguenther@suse.de>
20697
20698         * passes.c (init_optimization_passes): Add FRE pass after
20699         early SRA.
20700
20701 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
20702             Andrew Stubbs  <ams@codesourcery.com>
20703
20704         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
20705         for Cortex-A8.
20706         (arm_movdi_vfp_cortexa8): New pattern.
20707         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
20708         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
20709         instructions when tuning for Cortex-A8.  Set attribute "arch".
20710         * config/arm/arm.md: Move include arm-tune.md up a bit.
20711         (define_attr "arch"): Add "onlya8" and "nota8" values.
20712         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
20713
20714 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
20715
20716         PR bootstrap/48282
20717         Revert:
20718         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
20719
20720         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
20721         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
20722         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
20723         * passes.c (init_optimization_passes): Move
20724         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
20725
20726 2011-03-25  Kai Tietz  <ktietz@redhat.com>
20727
20728         * c-typeck.c (comptypes_internal): Replace target
20729         hook call of comp_type_attributes by version in tree.c file.
20730         * gimple.c (gimple_types_compatible_p_1): Likewise.
20731         * tree-ssa.c (useless_type_conversion_p): Likewise.
20732         * tree.c (build_type_attribute_qual_variant): Likewise.
20733         (attribute_value_equal): New static helper function.
20734         (comp_type_attributes): New function.
20735         (merge_attributes): Use attribute_value_equal for comparison.
20736         (attribute_list_contained): Likewise.
20737         * tree.h (comp_type_attributes): New prototype.
20738
20739 2011-03-25  Richard Guenther  <rguenther@suse.de>
20740
20741         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
20742         of complex types at -O0.
20743         (verify_gimple_assign_binary): Likewise.
20744         (verify_gimple_assign_ternary): Likewise.
20745
20746 2011-03-24  Mark Wielaard  <mjw@redhat.com>
20747
20748         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
20749         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
20750
20751 2011-03-24  Mark Wielaard  <mjw@redhat.com>
20752
20753         PR debug/48041
20754         * dwarf2out.c (output_abbrev_section): Only write table when
20755         abbrev_die_table_in_use > 1.
20756
20757 2011-02-24  Richard Henderson  <rth@redhat.com>
20758
20759         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
20760         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
20761         (alpha_expand_unaligned_load_words): Use extql.
20762         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
20763         (emit_insxl): Handle all modes for consistency.
20764
20765 2011-02-24  Richard Henderson  <rth@redhat.com>
20766
20767         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
20768         (alpha_expand_unaligned_load): Likewise.
20769         (alpha_expand_unaligned_store): Likewise.
20770         (alpha_expand_unaligned_load_words): Likewise.
20771         (alpha_expand_unaligned_store_words): Likewise.
20772         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
20773         (alpha_split_lock_test_and_set_12): Likewise.
20774         (print_operand, alpha_fold_builtin_extxx): Likewise.
20775         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
20776         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
20777         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
20778         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
20779         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
20780         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
20781         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
20782         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
20783         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
20784         (extwl, extll, extql): Similarly.
20785         (inswh, inslh, insqh): Similarly.
20786         (mskbl, mskwl, mskll, mskql): Similarly.
20787         (mskwh, msklh, mskqh): Similarly.
20788
20789 2011-02-24  Richard Henderson  <rth@redhat.com>
20790
20791         * config/alpha/alpha.md (attribute isa): Add er, ner.
20792         (attribute enabled): Handle them.
20793         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
20794
20795 2011-02-24  Richard Henderson  <rth@redhat.com>
20796
20797         * config/alpha/alpha.md (attribute isa): Add vms.
20798         (attribute enabled): Handle it.
20799         (*movsf): Merge *movsf_{nofix,fix,nofp}.
20800         (*movdf): Merge *movdf_{nofix,fix,nofp}.
20801         (*movtf): Rename from *movtf_internal for consistency.
20802         (*movsi): Merge with *movsi_nt_vms.
20803         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
20804         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
20805         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
20806         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
20807
20808 2011-02-24  Richard Henderson  <rth@redhat.com>
20809
20810         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
20811         (extendqisi2, extendhisi2): Likewise.
20812         (extendqidi2): Simplify BWX/non-BWX expansions.
20813         (extendhidi2): Similarly.
20814
20815 2011-02-24  Richard Henderson  <rth@redhat.com>
20816
20817         * config/alpha/alpha.md (attribute isa): New.
20818         (attribute enabled): New.
20819         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
20820         (zero_extendqisi2, zero_extendqidi2): Similarly.
20821         (zero_extendhisi2, zero_extendhidi2): Similarly.
20822         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
20823
20824 2011-02-24  Richard Henderson  <rth@redhat.com>
20825
20826         * config/alpha/predicates.md (input_operand): Revert last change;
20827         update comment to mention 32-bit VMS rather than Windows.
20828
20829 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
20830
20831         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
20832         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
20833         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
20834         * passes.c (init_optimization_passes): Move
20835         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
20836
20837 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
20838
20839         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
20840
20841 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
20842
20843         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
20844         correctly.
20845
20846 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
20847
20848         PR debug/48204
20849         * simplify-rtx.c (simplify_const_unary_operation): Call
20850         real_convert when changing mode class with FLOAT_EXTEND.
20851
20852 2011-03-24  Nick Clifton  <nickc@redhat.com>
20853
20854         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
20855         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
20856         * config/rx/rx.c (rx_option_override): Set align_jumps,
20857         align_loops and align_labels if not set by the user.
20858         (rx_align_for_label): New function.
20859         (rx_max_skip_for_label): New function.
20860         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
20861         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
20862         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
20863         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
20864         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
20865
20866 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
20867
20868         PR rtl-optimization/48263
20869         * optabs.c (expand_binop_directly): Reinstate convert_modes code
20870         and original commutative_p handling.  Use maybe_gen_insn.
20871
20872 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20873
20874         * reload.c (find_reloads_subreg_address): Add address_reloaded
20875         parameter and return true there if the full address has been
20876         reloaded.
20877         (find_reloads_toplev): Pass address_reloaded flag.
20878         (find_reloads_address_1): Don't use address_reloaded parameter.
20879
20880 2011-03-24  Jeff Law  <law@redhat.com>
20881
20882         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
20883         unused variable "ann".
20884         (remove_unused_locals): Likewise.
20885
20886         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
20887         statement.
20888
20889         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
20890         after it is freed.
20891
20892 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20893
20894         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
20895         for invalid symbolic addresses.
20896         (s390_secondary_reload): Don't use s390_check_symref_alignment for
20897         larl operands.
20898
20899 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
20900
20901         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
20902         the argument in calls to fold_truth_not_expr.
20903
20904 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
20905
20906         * tree.c (record_node_allocation_statistics): New function.
20907         (make_node_stat, copy_node_stat, build_string): Call it.
20908         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
20909         (build1_stat, build_omp_clause): Likewise.
20910
20911 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
20912
20913         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
20914         last commit.
20915
20916 2011-03-24  Richard Guenther  <rguenther@suse.de>
20917
20918         PR tree-optimization/48271
20919         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
20920         blocks that still exist.
20921
20922 2011-03-24  Richard Guenther  <rguenther@suse.de>
20923
20924         PR tree-optimization/48270
20925         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
20926         not free datarefs before ddrs.
20927
20928 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
20929
20930         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
20931         from the address built for a reference with variable offset.
20932
20933 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
20934
20935         PR target/48237
20936         * config/i386/i386.md (*movdf_internal_rex64): Do not split
20937         alternatives that can be handled with movq or movabsq insn.
20938         (*movdf_internal): Disable for !TARGET_64BIT.
20939         (*movdf_internal_nointeger): Ditto.
20940         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
20941
20942 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
20943
20944         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
20945         (FUNCTION_ARG_ADVANCE): Likewise.
20946         * tm.texi.in: Change references to them to hook references.
20947         * tm.texi: Regenerate.
20948         * targhooks.c (default_function_arg): Eliminate check for target macro.
20949         (default_function_incoming_arg): Likewise.
20950         (default_function_arg_advance): Likewise.
20951         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
20952         (function_arg_advance): Likewise.
20953         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
20954
20955 2011-03-24  Richard Guenther  <rguenther@suse.de>
20956
20957         PR middle-end/48269
20958         * tree-object-size.c (addr_object_size): Do not double-account
20959         for MEM_REF offsets.
20960
20961 2011-03-24  Diego Novillo  <dnovillo@google.com>
20962
20963         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
20964         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
20965         (lto_input_data_block): Move from lto-opts.c.  Make extern.
20966         Update all users.
20967         (lto_input_string): Rename from input_string.  Make extern.
20968         Update all users.
20969         * lto-streamer-out.c (lto_output_string_with_length): Rename from
20970         output_string_with_length.
20971         Output 0 to indicate a non-NULL string.  Update all callers to
20972         not emit 0.
20973         (lto_output_string): Rename from output_string.  Make extern.
20974         Update all users.
20975         (lto_output_decl_state_streams): Make extern.
20976         (lto_output_decl_state_refs): Make extern.
20977         * lto-streamer.h (lto_input_string): Declare.
20978         (lto_input_data_block): Declare.
20979         (lto_output_string): Declare.
20980         (lto_output_string_with_length): Declare.
20981         (lto_output_decl_state_streams): Declare.
20982         (lto_output_decl_state_refs): Declare.
20983
20984 2011-03-24  Richard Guenther  <rguenther@suse.de>
20985
20986         PR tree-optimization/46562
20987         * tree.c (build_invariant_address): New function.
20988         * tree.h (build_invariant_address): Declare.
20989         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
20990         a renamed function moved ...
20991         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
20992         Take valueization callback parameter.
20993         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
20994         * gimple-fold.h: New file.
20995         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
20996         (ccp_fold, fold_const_aggregate_ref,
20997         fold_ctor_reference, fold_nonarray_ctor_reference,
20998         fold_array_ctor_reference, fold_string_cst_ctor_reference,
20999         get_base_constructor): Move ...
21000         * gimple-fold.c: ... here.
21001         (gimple_fold_stmt_to_constant_1): New function
21002         split out from ccp_fold.  Take a valueization callback parameter.
21003         Valueize all operands.
21004         (gimple_fold_stmt_to_constant): New wrapper function.
21005         (fold_const_aggregate_ref_1): New function split out from
21006         fold_const_aggregate_ref.  Take a valueization callback parameter.
21007         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
21008         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
21009         invariant POINTER_PLUS_EXPRs to invariant form.
21010         (vn_valueize): New function.
21011         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
21012         * tree-vrp.c (vrp_valueize): New function.
21013         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
21014         to fold statements to constants.
21015         * tree-ssa-pre.c (eliminate): Properly guard propagation of
21016         function declarations.
21017         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
21018         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
21019
21020 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
21021
21022         * config/h8300/predicates.md (jump_address_operand): Fix register
21023         mode check.
21024
21025 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
21026
21027         * doc/invoke.texi (max-stores-to-sink): Document.
21028         * params.h (MAX_STORES_TO_SINK): Define.
21029         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
21030         if either vectorization or if-conversion is disabled.
21031         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
21032         tree-vect-data-refs.c vect_equal_offsets.
21033         (dr_equal_offsets_p): New function.
21034         (find_data_references_in_bb): Remove static.
21035         * tree-data-ref.h (find_data_references_in_bb): Declare.
21036         (dr_equal_offsets_p): Likewise.
21037         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
21038         (vect_drs_dependent_in_basic_block): Update calls to
21039         vect_equal_offsets.
21040         (vect_check_interleaving): Likewise.
21041         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
21042         (cond_if_else_store_replacement): Rename to...
21043         (cond_if_else_store_replacement_1): ... this.  Change arguments and
21044         documentation.
21045         (cond_if_else_store_replacement): New function.
21046         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
21047         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
21048
21049 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
21050
21051         PR target/46934
21052         * config/arm/arm.md (casesi): Use the gen_int_mode() function
21053         to subtract lower bound instead of GEN_INT().
21054
21055 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
21056
21057         PR other/48179
21058         PR other/48221
21059         PR other/48234
21060         * doc/extend.texi (Alignment): Move section to match order in TOC.
21061         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
21062         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
21063
21064 2011-03-23  Jeff Law  <law@redhat.com>
21065
21066         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
21067         before removing the edge.
21068
21069         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
21070         it may have been freed by redirect_branch_edge or
21071         redirect_edge_succ_nodup.
21072
21073 2011-03-23  Richard Guenther  <rguenther@suse.de>
21074
21075         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
21076         (check_va_list_escapes): Likewise.
21077         (check_all_va_list_escapes): Likewise.
21078
21079 2011-03-23  Richard Guenther  <rguenther@suse.de>
21080
21081         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
21082         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
21083         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
21084         (alias.o): Likewise.
21085         (ipa-type-escape.o): Remove.
21086         (ipa-struct-reorg.o): Likewise.
21087         (GTFILES): Remove ipa-struct-reorg.c.
21088         * alias.c: Do not include ipa-type-escape.h.
21089         * tree-ssa-alias.c: Likewise.
21090         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
21091         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
21092         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
21093         and ipa-type-escape passes.
21094         * tree-pass.h (pass_ipa_type_escape): Remove.
21095         (pass_ipa_struct_reorg): Likewise.
21096         * ipa-struct-reorg.h: Remove.
21097         * ipa-struct-reorg.c: Likewise.
21098         * ipa-type-escape.h: Likewise.
21099         * ipa-type-escape.c: Likewise.
21100         * doc/invoke.texi (-fipa-struct-reorg): Remove.
21101         (--param struct-reorg-cold-struct-ratio): Likewise.
21102         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
21103         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
21104         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
21105
21106 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21107
21108         * config/s390/2084.md: Enable all insn reservations also for z9_ec
21109         cpu attribute value.
21110         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
21111         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
21112         * config/s390/s390.c (processor_flags_table): New constant array.
21113         (s390_handle_arch_option): Remove.
21114         (s390_handle_option): Remove s390_handle_arch_option invocations
21115         and OPT_mwarn_framesize_ handling.
21116         (s390_option_override): Remove s390_handle_arch_option invocation.
21117         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
21118         warnings.
21119         * config/s390/s390.md (cpu attribute): Add z9_ec value.
21120         * config/s390/s390.opt (s390_tune, s390_arch)
21121         (march=): Replace s390_arch_option enum and values with
21122         processor_type.  Set variable name to s390_arch.  Set
21123         initialization value.
21124         (mtune=): Replace s390_arch_option with processor_type.  Set
21125         variable name to s390_tune.  Set initialization value.
21126
21127 2011-03-23  Julian Brown  <julian@codesourcery.com>
21128
21129         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
21130         accesses which are not naturally aligned.
21131
21132 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
21133
21134         PR target/47553
21135         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
21136
21137 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
21138
21139         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
21140         parameter from "int" to "enum insn_code".
21141         (expand_operand_type): New enum.
21142         (expand_operand): New structure.
21143         (create_expand_operand): New function.
21144         (create_fixed_operand, create_output_operand): Likewise
21145         (create_input_operand, create_convert_operand_to): Likewise.
21146         (create_convert_operand_from, create_address_operand): Likewise.
21147         (create_integer_operand): Likewise.
21148         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
21149         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
21150         (expand_insn, expand_jump_insn): Likewise.
21151         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
21152         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
21153         (expand_movstr, expand_builtin___clear_cache): Likewise.
21154         (expand_builtin_lock_release): Likewise.
21155         * explow.c (allocate_dynamic_stack_space): Likewise.
21156         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
21157         and use the default handling in that case.
21158         * expmed.c (check_predicate_volatile_ok): Delete.
21159         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
21160         (emit_cstore): Likewise.
21161         * expr.c (emit_block_move_via_movmem): Likewise.
21162         (set_storage_via_setmem, expand_assignment): Likewise.
21163         (emit_storent_insn, try_casesi): Likewise.
21164         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
21165         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
21166         (expand_vec_shift_expr, expand_binop_directly): Likewise.
21167         (expand_twoval_unop, expand_twoval_binop): Likewise.
21168         (expand_unop_direct, emit_indirect_jump): Likewise.
21169         (emit_conditional_move, vector_compare_rtx): Likewise.
21170         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
21171         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
21172         (expand_sync_lock_test_and_set): Likewise.
21173         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
21174         (emit_unop_insn): Likewise.
21175         (expand_copysign_absneg): Change icode to an insn_code.
21176         (create_convert_operand_from_type): New function.
21177         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
21178         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
21179         (expand_insn, expand_jump_insn): Likewise.
21180         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
21181         than const_int_operand for operand 2.
21182
21183 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21184
21185         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
21186         if possible.
21187
21188 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21189
21190         * emit-rtl.c (emit_pattern_before_noloc): New function.
21191         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
21192         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
21193         (emit_pattern_after_noloc): New function.
21194         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
21195         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
21196
21197 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21198
21199         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
21200         (__ffsDI2): Likewise.
21201
21202 2011-03-22  Richard Henderson  <rth@redhat.com>
21203
21204         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
21205         of !TARGET_ABI_OPEN_VMS.
21206         (alpha_trampoline_init, alpha_start_function): Likewise.
21207         (alpha_expand_epilogue, alpha_file_start): Likewise.
21208         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
21209         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
21210         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
21211         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
21212         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
21213
21214 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21215
21216         * config/s390/s390-opts.h: New.
21217         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
21218         s390_arch_flags, s390_warn_framesize, s390_stack_size,
21219         s390_stack_guard): Remove.
21220         (s390_handle_arch_option): Return void.  Take enum
21221         s390_arch_option value instead of string and searching array.
21222         (s390_handle_option): Don't assert that global structures are in
21223         use.  Access variables via opts pointer.  Use error_at.  Don't use
21224         sscanf for -mstack-guard= or -mstack-size=.  Update call to
21225         s390_handle_arch_option.
21226         (s390_option_override): Update call to s390_handle_arch_option.
21227         (s390_emit_prologue): Use %d format for s390_stack_size in
21228         diagnostic.  Use %wd for HOST_WIDE_INT.
21229         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
21230         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
21231         * config/s390/s390.opt (config/s390/s390-opts.h): New
21232         HeaderInclude entry.
21233         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
21234         s390_arch_flags, s390_warn_framesize): New Variable entries.
21235         (s390_arch_option): New Enum and EnumValue entries.
21236         (march=): Use Enum instead of Var.
21237         (mstack-guard=, mstack-size=): Use UInteger and Var.
21238         (mtune=): Use Enum.
21239
21240 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21241
21242         * config/score/score.c (score_handle_option): Don't assert that
21243         global structures are in use.  Access target_flags via opts
21244         pointer.  Use value of -march= option to determine target_flags
21245         settings.
21246         * config/score/score.opt (march=): Use Enum.
21247         (score_arch): New Enum and EnumValue entries.
21248
21249 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21250
21251         * config/mep/mep.c (option_mtiny_specified): Remove.
21252         (mep_option_override): Move register handling for -mivc2 from
21253         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
21254         instead of option_mtiny_specified.
21255         (mep_handle_option): Access target_flags via opts pointer.  Don't
21256         assert that global structures are in use.  Defer part of -mivc2
21257         handling and move it to mep_option_override.
21258         * config/mep/mep.opt (IVC2): New Mask entry.
21259         (mivc2): Use Var and Defer instead of Mask.
21260
21261 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21262
21263         * config/v850/v850-opts.h: New.
21264         * config/v850/v850.c (small_memory): Replace with
21265         small_memory_physical_max array.  Make that array static const.
21266         (v850_handle_memory_option): Take integer value of argument.  Take
21267         gcc_options pointer, option text and location.  Return void.
21268         Update for changes to small memory structures.
21269         (v850_handle_option): Access target_flags via opts pointer.  Don't
21270         assert that global structures are in use.  Update calls to
21271         v850_handle_memory_option.
21272         (v850_encode_data_area): Update references to small memory settings.
21273         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
21274         (enum small_memory_type): Move to v850-opts.h.
21275         * config/v850/v850.opt (config/v850/v850-opts.h): New
21276         HeaderInclude entry.
21277         (small_memory_max): New Variable entry.
21278         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
21279         (mtda, mzda): Likewise.
21280
21281 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21282
21283         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
21284         pointer.  Don't assert that global structures are in use.
21285
21286 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21287
21288         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
21289         via opts pointer.  Don't assert that global structures are in use.
21290
21291 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21292
21293         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
21294         (munix=93): Use Var.
21295         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
21296         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
21297         * config/pa/pa-opts.h: New.
21298         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
21299         (pa_handle_option): Don't assert that global structures are in
21300         use.  Access target_flags via opts pointer.  Don't handle
21301         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
21302         OPT_munix_98 here.
21303         (pa_option_override): Handle deferred OPT_mfixed_range_.
21304
21305 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21306
21307         * config/mn10300/mn10300-opts.h: New.
21308         * config/mn10300/mn10300.c (mn10300_processor,
21309         mn10300_tune_string): Remove.
21310         (mn10300_handle_option): Don't assert that global structures are
21311         in use.  Access mn10300_processor via opts pointer.  Don't handle
21312         OPT_mtune_ here.
21313         * config/mn10300/mn10300.h (enum processor_type): Move to
21314         mn10300-opts.h.
21315         (mn10300_processor): Remove.
21316         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
21317         HeaderInclude entry.
21318         (mn10300_processor): New Variable entry.
21319         (mtune=): Use Var.
21320
21321 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21322
21323         * config/microblaze/microblaze.c: Don't include opts.h.
21324         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
21325         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
21326         (mno-clearbss): Use Var and Warn.
21327
21328 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21329
21330         * config/m32r/m32r-opts.h: New.
21331         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
21332         (m32r_handle_option): Don't assert that global structures are in
21333         use.  Access target_flags and m32r_cache_flush_func via opts
21334         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
21335         OPT_mno_flush_trap here.
21336         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
21337         include of m32r-opts.h.
21338         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
21339         HeaderInclude entry.
21340         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
21341         (mmodel=): Use Enum and Var.
21342         (m32r_model): New Enum and EnumValue entries.
21343         (mno-flush-trap): Use Var.
21344         (msdata=): Use Enum and Var.
21345         (m32r_sdata): New Enum and EnumValue entries.
21346
21347 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21348
21349         * config/m32c/m32c.c: Don't include opts.h.
21350         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
21351         m32c_handle_option): Remove.
21352         (m32c_option_override): Check global_options_set.x_target_memregs
21353         instead of target_memregs_set.
21354         * config/m32c/m32c.h (target_memregs): Remove.
21355         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
21356         variable.
21357
21358 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21359
21360         * config/iq2000/iq2000-opts.h: New.
21361         * config/iq2000/iq2000.c: Don't include opts.h.
21362         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
21363         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
21364         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
21365         HeaderInclude entry.
21366         (iq2000_tune): New Variable entry.
21367         (march=): Add comment.  Use Enum.
21368         (iq2000_arch): New Enum and EnumValue entries.
21369         (mcpu=): Use Enum and Var.
21370         (iq2000_tune): New Enum and EnumValue entries.
21371
21372 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21373
21374         * config/ia64/ia64-opts.h: New.
21375         * config/ia64/ia64.c (ia64_tune): Remove.
21376         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
21377         here.  Use error_at.
21378         (ia64_option_override): Handle deferred OPT_mfixed_range_.
21379         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
21380         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
21381         HeaderInclude entry.
21382         (ia64_tune): New Variable entry.
21383         (mfixed-range=): Use Defer and Var.
21384         (mtune=): Use Enum and Var.
21385         (ia64_tune): New Enum and EnumValue entries.
21386
21387 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21388
21389         * config/frv/frv-opts.h: New.
21390         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
21391         frv-opts.h.
21392         (frv_cpu_type): Remove.
21393         * config/frv/frv.c: Don't include opts.h.
21394         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
21395         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
21396         (frv_cpu_type): New Variable entry.
21397         (frv_cpu): New Enum and EnumValue entries.
21398
21399 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21400
21401         * config/cris/cris.c (cris_handle_option): Access target_flags via
21402         opts pointer.  Don't assert that global structures are in use.
21403         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
21404         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
21405
21406 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21407
21408         * config/bfin/bfin-opts.h: New.
21409         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
21410         bfin_si_revision, bfin_workarounds): Remove.
21411         (bfin_cpus): Make static const.
21412         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
21413         not bfin_lib_id_given.
21414         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
21415         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
21416         pointer. Use error_at.  Don't assert that global structures are in use.
21417         * config/bfin/bfin.h: Include bfin-opts.h.
21418         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
21419         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
21420         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
21421         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
21422         entries.
21423
21424 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21425
21426         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
21427         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
21428         or -msoft-float here.
21429         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
21430         -msoft-float and -mhard-float.
21431         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
21432         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
21433         msoft-float.
21434         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
21435         -msoft-float.
21436         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
21437         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
21438         not mhard-float.
21439         (LIBGCC_SPEC): Don't handle -msoft-float.
21440         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
21441         -mhard-float.
21442         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
21443         msoft-float.
21444         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
21445         -mfloat-abi=*, not -msoft-float and -mhard-float.
21446         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
21447         -msoft-float.
21448         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
21449         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
21450         mhard-float and msoft-float.
21451         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
21452         mfloat-abi=soft in comments, not mhard-float and msoft-float.
21453         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
21454         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
21455         mhard-float.
21456         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
21457         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
21458         msoft-float.
21459         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
21460         not mhard-float.
21461         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
21462         not msoft-float.
21463
21464 2011-03-22  Richard Henderson  <rth@redhat.com>
21465
21466         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
21467         TARGET_ABI_WINDOWS_NT.
21468         (alpha_output_function_end_prologue): Likewise.
21469         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
21470         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
21471         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
21472         (trap, *movsi_nt_vms): Likewise.
21473         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
21474         (*tablejump_osf_nt_internal): Remove.
21475         * config/alpha/predicates.md (input_operand): Only test Pmode.
21476
21477 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21478
21479         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
21480         via opts pointer.  Use error_at.  Don't assert that global
21481         structures are in use.
21482
21483 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21484
21485         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
21486         (ix86_handle_option): Access ix86_isa_flags and
21487         ix86_isa_flags_explicit via opts pointer.  Don't assert that
21488         global structures are in use.
21489         (ix86_function_specific_save, ix86_function_specific_restore):
21490         Update ix86_isa_flags_explicit field name.
21491         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
21492         (ix86_isa_flags_explicit): Rename TargetSave entry to
21493         x_ix86_isa_flags_explicit.
21494
21495 2011-03-22  Richard Henderson  <rth@redhat.com>
21496
21497         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
21498         (alpha_option_override, direct_return): Likewise.
21499         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
21500         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
21501         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
21502         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
21503         (alpha_expand_epilogue, alpha_end_function): Likewise.
21504         (alpha_init_libfuncs): Likewise.
21505         (struct machine_function): Remove unicosmk members.
21506         (print_operand) ['t']: Remove.
21507         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
21508         unicosmk_output_module_name, unicosmk_output_common,
21509         current_section_align, unicosmk_output_text_section_asm_op,
21510         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
21511         unicosmk_section_type_flags, unicosmk_unique_section,
21512         unicosmk_asm_named_section, unicosmk_insert_attributes,
21513         unicosmk_output_align, unicosmk_defer_case_vector,
21514         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
21515         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
21516         unicosmk_output_ssib, unicosmk_add_call_info_word,
21517         unicosmk_extern_head, unicosmk_output_default_externs,
21518         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
21519         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
21520         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
21521         * config/alpha/alpha-protos.h: Update.
21522         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
21523         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
21524         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
21525         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
21526         (*mulsi_se, mulvsi3): Likewise.
21527         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
21528         (*divmodsi_internal, call, call_value, realign): Likewise.
21529         (moddi3, umoddi3): Likewise; remove duplicate expander.
21530         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
21531         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
21532         (*movdi_nofix): Remove r/U alternative.
21533         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
21534         * config/alpha/constraints.md ("U"): Remove.
21535         * config/alpha/predicates.md (call_operand"): Don't test
21536         TARGET_ABI_UNICOSMK.
21537
21538 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21539
21540         * target.def (handle_option): Take gcc_options and
21541         cl_decoded_option pointers and location_t.
21542         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
21543         * doc/tm.texi: Regenerate.
21544         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
21545         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
21546         * lto-opts.c (lto_reissue_options): Generate option structure for
21547         targetm.handle_option call.
21548         * opts.c (target_handle_option): Update call to
21549         targetm.handle_option.  Remove assertions about values now passed
21550         down to hook.
21551         * targhooks.c (default_target_handle_option): New.
21552         * targhooks.h (default_target_handle_option): Declare.
21553         * config/alpha/alpha.c: Include opts.h.
21554         (alpha_handle_option): Update to new hook interface.
21555         * config/arm/arm.c: Include opts.h.
21556         (arm_handle_option): Update to new hook interface.
21557         * config/arm/t-arm (arm.o): Update dependencies.
21558         * config/bfin/bfin.c: Include opts.h.
21559         (bfin_handle_option): Update to new hook interface.
21560         * config/cris/cris.c: Include opts.h.
21561         (cris_handle_option): Update to new hook interface.
21562         * config/frv/frv.c: Include opts.h.
21563         (frv_handle_option): Update to new hook interface.
21564         * config/i386/i386.c: Include opts.h.
21565         (ix86_handle_option): Update to new hook interface.
21566         (ix86_valid_target_attribute_inner_p): Generate option structure
21567         for call to ix86_handle_option.
21568         * config/i386/t-i386 (i386.o): Update dependencies.
21569         * config/ia64/ia64.c: Include opts.h.
21570         (ia64_handle_option): Update to new hook interface.
21571         * config/ia64/t-ia64 (ia64.o): Update dependencies.
21572         * config/iq2000/iq2000.c: Include opts.h.
21573         (iq2000_handle_option): Update to new hook interface.
21574         * config/m32c/m32c.c: Include opts.h.
21575         (m32c_handle_option): Update to new hook interface.
21576         * config/m32r/m32r.c: Include opts.h.
21577         (m32r_handle_option): Update to new hook interface.
21578         * config/m68k/m68k.c: Include opts.h.
21579         (m68k_handle_option): Update to new hook interface.
21580         * config/mep/mep.c: Include opts.h.
21581         (mep_handle_option): Update to new hook interface.
21582         * config/microblaze/microblaze.c: Include opts.h.
21583         (microblaze_handle_option): Update to new hook interface.
21584         * config/mips/mips.c: Include opts.h.
21585         (mips_handle_option): Update to new hook interface.
21586         * config/mn10300/mn10300.c: Include opts.h.
21587         (mn10300_handle_option): Update to new hook interface.
21588         * config/pa/pa.c: Include opts.h.
21589         (pa_handle_option): Update to new hook interface.
21590         * config/pdp11/pdp11.c: Include opts.h.
21591         (pdp11_handle_option): Update to new hook interface.
21592         * config/rs6000/rs6000.c: Include opts.h.
21593         (rs6000_handle_option): Update to new hook interface.
21594         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
21595         * config/rx/rx.c: Include opts.h.
21596         (rx_handle_option): Update to new hook interface.
21597         * config/s390/s390.c: Include opts.h.
21598         (s390_handle_option): Update to new hook interface.
21599         * config/score/score.c: Include opts.h.
21600         (score_handle_option): Update to new hook interface.
21601         * config/sh/sh.c: Include opts.h.
21602         (sh_handle_option): Update to new hook interface.
21603         * config/sparc/sparc.c: Include opts.h.
21604         (sparc_handle_option): Update to new hook interface.
21605         * config/v850/v850.c: Include opts.h.
21606         (v850_handle_option): Update to new hook interface.
21607
21608 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21609
21610         * gcc.c (driver_unknown_option_callback): Only permit and save
21611         unknown -Wno- options.
21612         (driver_wrong_lang_callback): Save options directly instead of via
21613         driver_unknown_option_callback.
21614
21615 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
21616
21617         * combine.c (simplify_set): Try harder to find the best CC mode when
21618         simplifying a nested COMPARE on the RHS.
21619
21620 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
21621
21622         * config/alpha/gnu.h: Remove.
21623         * config/arc: Remove directory.
21624         * config/arm/netbsd.h: Remove.
21625         * config/arm/t-pe: Remove.
21626         * config/crx: Remove directory.
21627         * config/i386/netbsd.h: Remove.
21628         * config/m68hc11: Remove directory.
21629         * config/m68k/uclinux-oldabi.h: Remove.
21630         * config/mcore/mcore-pe.h: Remove.
21631         * config/mcore/t-mcore-pe: Remove.
21632         * config/netbsd-aout.h: Remove.
21633         * config/rs6000/gnu.h: Remove.
21634         * config/sh/sh-symbian.h: Remove.
21635         * config/sh/symbian-base.c: Remove.
21636         * config/sh/symbian-c.c: Remove.
21637         * config/sh/symbian-cxx.c: Remove.
21638         * config/sh/symbian-post.h: Remove.
21639         * config/sh/symbian-pre.h: Remove.
21640         * config/sh/t-symbian: Remove.
21641         * config/svr3.h: Remove.
21642         * config/vax/netbsd.h: Remove.
21643         * config.build: Don't handle i[34567]86-*-pe.
21644         * config.gcc: Remove handling of deprecations for most deprecated
21645         targets.
21646         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
21647         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
21648         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
21649         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
21650         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
21651         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
21652         Remove cases.
21653         * config.host: Don't handle i[34567]86-*-pe.
21654         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
21655         (ASM_SPEC32): Don't handle -mcall-gnu.
21656         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
21657         -mcall-gnu.
21658         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
21659         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
21660         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
21661         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
21662         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
21663         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
21664         conditional on SYMBIAN.
21665         * configure.ac: Don't handle powerpc*-*-gnu*.
21666         * configure: Regenerate.
21667         * doc/extend.texi (interrupt attribute): Don't mention CRX.
21668         * doc/install-old.texi (m6811, m6812): Don't mention.
21669         * doc/install.texi (arc-*-elf*): Don't document multilib option.
21670         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
21671         (m68k-uclinuxoldabi): Don't mention.
21672         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
21673         Remove.
21674         (-mcall-gnu): Remove.
21675         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
21676         families): Remove constraint documentation.
21677
21678 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
21679
21680         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
21681         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
21682         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
21683
21684 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
21685
21686         PR target/48226
21687         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
21688         vector when peeking at the next token for vector, don't expand the
21689         keywords.
21690
21691 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
21692
21693         * config/avr/avr-protos.h (expand_epilogue): Change prototype
21694         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
21695         * config/avr/avr.c (init_cumulative_args)
21696         (avr_function_arg_advance): Use it.
21697         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
21698         sibcall epilogues.
21699         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
21700         (avr_function_ok_for_sibcall): ...this new function.
21701         (avr_lookup_function_attribute1): New static Function.
21702         (avr_naked_function_p, interrupt_function_p)
21703         (signal_function_p, avr_OS_task_function_p)
21704         (avr_OS_main_function_p): Use it.
21705         * config/avr/avr.md ("sibcall", "sibcall_value")
21706         ("sibcall_epilogue"): New expander.
21707         ("*call_insn", "*call_value_insn"): New insn.
21708         ("call_insn", "call_value_insn"): Remove
21709         ("call", "call_value", "epilogue"): Change expander to handle
21710         sibling calls.
21711
21712 2011-03-21  Nick Clifton  <nickc@redhat.com>
21713
21714         * doc/invoke.texi (Overall Options): Move closing brace to end of
21715         options list.
21716         (Optimization Options): Add missing @gol.
21717         (Directory Options): Likewise.
21718         (i386 and x86-64 Options): Likewise.
21719         (RS6000 and PowerPC Options): Likewise.
21720         (i386 and x86-64 Windows Options): Likewise.
21721         (V850 Options): Add text missing from descriptions.
21722
21723 2011-03-22  Richard Henderson  <rth@redhat.com>
21724
21725         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
21726         (avr_incoming_return_addr_rtx): New.
21727         (emit_push_byte): New.
21728         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
21729         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
21730         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
21731         (emit_pop_byte): New.
21732         (expand_epilogue): Use it.  Pop frame pointer by bytes.
21733         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
21734         (INCOMING_RETURN_ADDR_RTX): New.
21735         (INCOMING_FRAME_SP_OFFSET): New.
21736         (ARG_POINTER_CFA_OFFSET): New.
21737         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
21738         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
21739         (pophi): Remove.
21740
21741         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
21742
21743 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21744
21745         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
21746         (FUNCTION_ARG_ADVANCE): Likewise.
21747         * tm.texi.in: Change references to them to hook references.
21748         * tm.texi: Regenerate.
21749         * targhooks.c (default_function_arg): Eliminate check for target
21750         macro.
21751         (default_function_incoming_arg): Likewise.
21752         (default_function_arg_advance): Likewise.
21753         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
21754         (function_arg_advance): Likewise.
21755         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
21756
21757 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
21758
21759         * tree.c (build_call_1): New function.
21760         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
21761
21762 2011-03-22  Richard Guenther  <rguenther@suse.de>
21763
21764         PR tree-optimization/48228
21765         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
21766         for single-arg PHIs.
21767
21768 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
21769
21770         PR rtl-optimization/48143
21771         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
21772         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
21773         sse2_cvtps2pd): Likewise.
21774
21775 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21776
21777         * recog.c (canonicalize_change_group): Use validate_unshare_change.
21778
21779 2011-03-22  Richard Guenther  <rguenther@suse.de>
21780
21781         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
21782         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
21783         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
21784         and REALIGN_LOAD_EXPR.
21785         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
21786         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
21787         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
21788         DOT_PROD_EXPR case ...
21789         (expand_expr_real_2): ... here.
21790         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
21791         and REALIGN_LOAD_EXPR.
21792         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
21793         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
21794         (vect_create_epilog_for_reduction): Likewise.
21795         (vectorizable_reduction): Likewise.
21796         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
21797         * tree-vect-stmts.c (vectorizable_load): Likewise.
21798
21799 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
21800
21801         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
21802
21803 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21804
21805         * config/s390/s390.c (s390_delegitimize_address): Fix offset
21806         handling for PLTOFF/GOTOFF.
21807
21808 2011-03-22  Nick Clifton  <nickc@redhat.com>
21809
21810         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
21811         trailing backslash from the end of the macro definition.
21812
21813 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21814
21815         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
21816         and PLT unspecs.
21817
21818 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
21819
21820         * expr.h (prepare_operand): Move to...
21821         * optabs.h (prepare_operand): ...here and change the insn code
21822         parameter from "int" to "enum insn_code".
21823         (insn_operand_matches): Declare.
21824         * expr.c (init_expr_target): Use insn_operand_matches.
21825         (compress_float_constant): Likewise.
21826         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
21827         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
21828         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
21829         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
21830         Likewise.
21831         (gen_cond_trap): Likewise.
21832         (prepare_operand): Likewise.  Change icode to an insn_code.
21833         (insn_operand_matches): New function.
21834         * reload.c (find_reloads_address_1): Use insn_operand_matches.
21835         * reload1.c (gen_reload): Likewise.
21836         * targhooks.c (default_secondary_reload): Likewise.
21837
21838 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
21839
21840         * config/alpha/alpha.md (unspec): New define_c_enum.
21841         (unspecv): Ditto.
21842
21843 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
21844
21845         PR debug/48214
21846         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
21847         between a call and its CALL_ARG_LOCATION note.
21848
21849 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
21850
21851         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
21852
21853 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
21854
21855         PR c/42544
21856         PR c/48197
21857         * c-common.c (shorten_compare): If primopN is first sign-extended
21858         to opN and then zero-extended to result type, set primopN to opN.
21859
21860 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
21861
21862         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
21863         for barrier handlers.
21864
21865 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
21866
21867         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
21868         UNSPEC constants to be in the unspec enumeration, and redefine
21869         all UNSPECV constants to be in the unspecv enumeration, so that
21870         dumps print which unspec/unspec_volatile this is.
21871         * config/rs6000/vector.md (UNSPEC_*): Ditto.
21872         * config/rs6000/paired.md (UNSPEC_*): Ditto.
21873         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
21874         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
21875         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
21876
21877         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
21878         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
21879         UNSPECV_LWSYNC, since these are used as unspec_volatile.
21880         * config/rs6000/sync.md (isync, lwsync): Ditto.
21881
21882 2011-03-21  Richard Guenther  <rguenther@suse.de>
21883
21884         * params.def (lto-min-partition): Fix typo.
21885
21886 2011-03-21  Richard Guenther  <rguenther@suse.de>
21887
21888         PR c/47939
21889         * c-decl.c (grokdeclarator): Drop to the main variant only
21890         for array types.  Drop flag_gen_aux_info check.
21891
21892 2011-03-21  Richard Guenther  <rguenther@suse.de>
21893
21894         PR translation/47911
21895         * params.def (lto-partitions): Fix typo.
21896         (lto-min-partition): Fix wording.
21897
21898 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
21899
21900         * config/rs6000/t-freebsd: Remove duplication from file.
21901
21902 2011-03-21  Richard Guenther  <rguenther@suse.de>
21903
21904         PR middle-end/47661
21905         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
21906
21907 2011-03-21  Richard Guenther  <rguenther@suse.de>
21908
21909         PR lto/48210
21910         * params.def (lto-partitions): Require at least 1 partition.
21911
21912 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21913
21914         * gthr-solaris.h: Remove.
21915         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
21916         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
21917         (LIB_SPEC): Likewise.
21918         * config/sol2.opt (threads): Remove.
21919         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
21920         (sparc*-*-solaris2*): Likewise.
21921         * configure.ac (enable_threads): Enable solaris support.
21922         * configure: Regenerate.
21923         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
21924         * doc/install.texi (Configuration, --enable-threads=lib): Remove
21925         solaris.
21926
21927 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21928
21929         * config.gcc: Obsolete *-*-solaris2.8*.
21930         * doc/install.texi (Specific, *-*-solaris2*): Document it.
21931
21932 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21933
21934         PR bootstrap/48135
21935         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
21936         reference.  Solaris 8 perl works.
21937
21938 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21939
21940         PR bootstrap/48135
21941         * doc/install.texi (Prerequisites): Move jar etc. up.
21942         Explain support library version requirements.
21943
21944 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21945
21946         PR bootstrap/48135
21947         * doc/install.texi (Prerequisites): Move Perl to build
21948         requirements.  Always necessary on Solaris 2 with Sun ld.
21949
21950 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21951
21952         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
21953         binutils 2.21.
21954         (Specific, i?86-*-solaris2.[89]): Likewise.
21955         (Specific, i?86-*-solaris2.10): Likewise.
21956         (Specific, mips-sgi-irix6): Likewise.
21957         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
21958         Update for binutils 2.21.
21959
21960 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21961
21962         * configure.ac (gcc_cv_lto_plugin): Fix typo.
21963         Allow -fuse-linker-plugin for non-default plugin linker.
21964         * configure: Regenerate.
21965
21966 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
21967
21968         PR bootstrap/48167
21969         * gengtype.c (files_rules): Added rule for cp/parser.h.
21970
21971 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
21972
21973         PR target/48213
21974         * config/s390/s390.c (s390_delegitimize_address): Don't call
21975         lowpart_subreg if orig_x has BLKmode.
21976
21977 2011-03-21  Kai Tietz  <ktietz@redhat.com>
21978
21979         PR target/12171
21980         * doc/plugins.texi: Adjust documentation for plugin register_callback.
21981         * tree.h (attribute_spec): Add new member affects_type_identity.
21982         * attribs.c (empty_attribute_table): Adjust attribute_spec
21983         initializers.
21984         * config/alpha/alpha.c: Likewise.
21985         * config/arc/arc.c: Likewise.
21986         * config/arm/arm.c: Likewise.
21987         * config/avr/avr.c: Likewise.
21988         * config/bfin/bfin.c: Likewise.
21989         * config/crx/crx.c: Likewise.
21990         * config/darwin.h: Likewise.
21991         * config/h8300/h8300.c: Likewise.
21992         * config/i386/cygming.h: Likewise.
21993         * config/i386/i386.c: Likewise.
21994         * config/ia64/ia64.c: Likewise.
21995         * config/m32c/m32c.c: Likewise.
21996         * config/m32r/m32r.c: Likewise.
21997         * config/m68hc11/m68hc11.c: Likewise.
21998         * config/m68k/m68k.c: Likewise.
21999         * config/mcore/mcore.c: Likewise.
22000         * config/mep/mep.c: Likewise.
22001         * config/microblaze/microblaze.c: Likewise.
22002         * config/mips/mips.c: Likewise.
22003         * config/rs6000/rs6000.c: Likewise.
22004         * config/rx/rx.c: Likewise.
22005         * config/sh/sh.c: Likewise.
22006         * config/sol2.h: Likewise.
22007         * config/sparc/sparc.c: Likewise.
22008         * config/spu/spu.c: Likewise.
22009         * config/stormy16/stormy16.c: Likewise.
22010         * config/v850/v850.c: Likewise.
22011
22012 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
22013
22014         * simplify-rtx.c (simplify_binary_operation_1): Handle
22015         (xor (and A B) C) case when B and C are both constants.
22016
22017 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
22018
22019         * tree-dfa.c (add_referenced_var): Fix typo in comment.
22020
22021 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
22022
22023         PR bootstrap/48168
22024         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
22025
22026 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
22027
22028         PR rtl-optimization/48156
22029         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
22030         assume df and df_lr are not NULL.
22031
22032 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22033
22034         PR debug/48023
22035         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
22036         between a call and its CALL_ARG_LOCATION note.
22037
22038 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
22039
22040         PR debug/48178
22041         * config/sh/sh.c (find_barrier): Don't emit a constant pool
22042         between a call and its corresponding CALL_ARG_LOCATION note.
22043
22044 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
22045
22046         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
22047         instead of loop. Use HARD_REGISTER_NUM_P predicate.
22048         * haifa-sched.c (setup_ref_regs): Ditto.
22049         * caller-save.c (add_used_regs_1): Ditto.
22050         * dse.c (look_for_hardregs): Ditto.
22051         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
22052         * sched-rgn.c (check_live_1): Ditto.
22053
22054 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
22055
22056         * c-decl.c (diagnose_mismatched_decls): Give an error for
22057         redefining a typedef with variably modified type.
22058
22059 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
22060
22061         * c-decl.c (grokfield): Don't allow typedefs for structures or
22062         unions with no tag by default.
22063         * doc/extend.texi (Unnamed Fields): Update.
22064
22065 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
22066
22067         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
22068         Rewrite using indirect functions.
22069         (lwp_slwpcb): Ditto.
22070         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
22071         (avx_vinsertf128<mode>): Ditto.
22072
22073 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22074
22075         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
22076         unspecs.
22077
22078 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22079
22080         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
22081         splitting between a call and its corresponding CALL_ARG_LOCATION note.
22082
22083 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
22084
22085         PR rtl-optimization/48170
22086         * gcse.c (hoist_code): Remove bogus asserts.
22087
22088 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
22089
22090         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
22091         computation for prologue/epilogue.
22092
22093 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22094
22095         * Makefile.in (check-consistency): Remove.
22096
22097 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
22098
22099         PR debug/48176
22100         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
22101         arange_table_in_use is 0, but either text_section_used or
22102         cold_text_section_used is true.  Don't call it if
22103         !info_section_emitted.
22104
22105 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
22106
22107         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
22108         FUNCTION_VALUE_REGNO_P): Remove.
22109         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
22110         Remove.
22111         * config/avr/avr.c (avr_ret_register): Make static inline.
22112         (avr_function_value_regno_p): New function.
22113         (avr_libcall_value): Make static. Add 'func' argument.
22114         (avr_function_value): Make static. Rename 'func' argument to
22115         'fn_decl_or_type', forward it to avr_libcall_value. Call
22116         avr_ret_register function instead of RET_REGISTER macro.
22117         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22118
22119 2011-03-18  Jason Merrill  <jason@redhat.com>
22120
22121         PR c++/23372
22122         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
22123
22124 2011-03-18  Richard Guenther  <rguenther@suse.de>
22125
22126         * doc/install.texi (--enable-gold): Remove.
22127         (--with-plugin-ld): Document.
22128         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
22129
22130 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
22131
22132         PR middle-end/47790
22133         * expr.c (optimize_bitfield_assignment_op): Revamp to work
22134         again after expansion changes.
22135
22136 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
22137
22138         * combine.c (try_combine): Do simplification only call of
22139         subst() on i2 even when i1 is present. Update comments.
22140
22141 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
22142
22143         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
22144         and UNSPEC_PCREL_SYMOFF.
22145
22146 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22147
22148         * config/s390/s390.md: Use define_c_enum for the unspec constant
22149         definitions.
22150
22151 2011-03-18  Richard Henderson  <rth@redhat.com>
22152             Jakub Jelinek  <jakub@redhat.com>
22153
22154         PR bootstrap/48161
22155         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
22156         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
22157
22158 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
22159
22160         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22161         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
22162         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
22163         Change return type to bool.
22164         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22165
22166 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
22167
22168         PR debug/48163
22169         * var-tracking.c (prepare_call_arguments): If CALL target
22170         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
22171         pc instead of looking it up using cselib_lookup and use
22172         Pmode for it if x has VOIDmode.
22173         * dwarf2out.c (gen_subprogram_die): If also both first and
22174         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
22175
22176         PR debug/48163
22177         * function.c (assign_parms): For data.passed_pointer parms
22178         use MEM of data.entry_parm instead of data.entry_parm itself
22179         as DECL_INCOMING_RTL.
22180         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
22181         also when passed and declared mode is the same, DECL_RTL
22182         is a MEM with pseudo as address and DECL_INCOMING_RTL is
22183         a MEM too.
22184
22185 2011-03-16  Jeff Law  <law@redhat.com>
22186
22187         PR rtl-optimization/37273
22188         * ira-costs.c (scan_one_insn): Detect constants living in memory and
22189         handle them like argument loads from stack slots.  Do not double
22190         count memory for memory constants and argument loads from stack slots.
22191
22192 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
22193
22194         PR debug/48160
22195         * var-tracking.c (prepare_call_arguments): Check SUBREG.
22196
22197 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
22198
22199         PR target/48171
22200         * config/i386/i386.opt: Add Save to -mavx and -mfma.
22201
22202 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
22203
22204         PR bootstrap/48153
22205         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
22206         if dwarf_strict.
22207         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
22208         Clear call_arg_locations and call_arg_loc_last always.
22209
22210         PR middle-end/48152
22211         * var-tracking.c (prepare_call_arguments): If argument needs to be
22212         passed by reference, adjust argtype and mode.
22213
22214 2011-03-17  Richard Guenther  <rguenther@suse.de>
22215
22216         PR middle-end/48134
22217         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
22218         a value make sure to fold the statement.
22219
22220 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
22221
22222         PR target/43872
22223         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
22224         return condition with !cfun->calls_alloca.
22225
22226 2011-03-17  Richard Guenther  <rguenther@suse.de>
22227
22228         PR bootstrap/48148
22229         * lto-cgraph.c (input_overwrite_node): Clear the abstract
22230         origin for decls in other ltrans units.
22231         (input_varpool_node): Likewise.
22232
22233 2011-03-17  Richard Guenther  <rguenther@suse.de>
22234
22235         PR middle-end/48165
22236         * tree-object-size.c (compute_object_offset): Properly return
22237         the offset operand of MEM_REFs as sizetype.
22238
22239 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
22240
22241         PR rtl-optimization/48141
22242         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
22243         * dse.c: Include params.h.
22244         (active_local_stores_len): New variable.
22245         (add_wild_read, dse_step1): Clear it when setting active_local_stores
22246         to NULL.
22247         (record_store, check_mem_read_rtx): Decrease it when removing
22248         from the chain.
22249         (scan_insn): Likewise.  Increase it when adding to chain, if it
22250         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
22251         set active_local_stores to NULL before the addition.
22252         * Makefile.in (dse.o): Depend on $(PARAMS_H).
22253
22254         PR rtl-optimization/48141
22255         * dse.c (record_store): If no positions are needed in an insn
22256         that cannot be deleted, at least unchain it from active_local_stores.
22257
22258 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
22259
22260         PR debug/47510
22261         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
22262         (lookup_type_die_strip_naming_typedef): ... here.
22263         (get_context_die): Use it.
22264         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
22265         the anonymous struct named by the naming typedef.
22266
22267 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22268
22269         PR target/48154
22270         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
22271         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
22272
22273 2011-03-16  Jeff Law  <law@redhat.com>
22274
22275         * tree-vrp.c (identify_jump_threads): Slightly simplify type
22276         check for operands of conditional.  Allow type to be a pointer.
22277
22278 2011-03-16  Richard Guenther  <rguenther@suse.de>
22279
22280         PR tree-optimization/48149
22281         * fold-const.c (fold_binary_loc): Fold
22282         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
22283
22284 2011-03-16  Richard Guenther  <rguenther@suse.de>
22285
22286         PR tree-optimization/26134
22287         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
22288         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
22289         (non_rewritable_mem_ref_base): Handle complex type component
22290         accesses, constrain offsets for vector and complex extracts
22291         more properly.
22292
22293 2011-03-16  Richard Guenther  <rguenther@suse.de>
22294
22295         PR tree-optimization/48146
22296         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
22297         operands avoiding the need for renaming.
22298
22299 2011-03-16  Richard Guenther  <rguenther@suse.de>
22300
22301         * gimple-fold.c (maybe_fold_reference): Open-code relevant
22302         constant folding.  Move MEM_REF canonicalization first.
22303         Rely on fold_const_aggregate_ref for initializer folding.
22304         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
22305
22306 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
22307
22308         PR middle-end/48136
22309         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22310         arg0/arg1 or their arguments are always fold converted to matching
22311         types.
22312
22313         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
22314         to nargs.
22315
22316 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22317
22318         PR lto/46944
22319         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
22320         Handle in-tree gold.
22321         (ld_vers): Extract binutils version for gold.
22322         (gcc_cv_ld_hidden): Handle gold here.
22323         (gcc_cv_lto_plugin): Determine level of linker plugin support.
22324         * configure: Regenerate.
22325         * config.in: Regenerate.
22326         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
22327         -fuse-linker-plugin otherwise.
22328         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
22329         (LINK_COMMAND_SPEC): Use it.
22330         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
22331
22332 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
22333
22334         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
22335         * calls.c: Remove debug.h include.
22336         (emit_call_1): Don't call virtual_call_token debug hook.
22337         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
22338         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
22339         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
22340         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
22341         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
22342         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
22343         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
22344         dwarf2out_virtual_call): Remove.
22345         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
22346         copy_call_info and virtual_call hooks.
22347         (dwarf2out_init): Don't initialize vcall_insn_table,
22348         debug_dcall_section and debug_vcall_section.
22349         (prune_unused_types): Don't mark nodes from dcall_table.
22350         (dwarf2out_finish): Don't output dcall or vcall tables.
22351         * final.c (final_scan_insn): Don't call direct_call or
22352         virtual_call debug hooks.
22353         * debug.h (struct gcc_debug_hooks): Remove direct_call,
22354         virtual_call_token, copy_call_info and virtual_call hooks.
22355         (debug_nothing_uid): Remove prototype.
22356         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
22357         copy_call_info and virtual_call hooks.
22358         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
22359         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
22360         * debug.c (do_nothing_debug_hooks): Likewise.
22361         (debug_nothing_uid): Remove.
22362         * doc/invoke.texi (-fenable-icf-debug): Remove.
22363         * common.opt (-fenable-icf-debug): Likewise.
22364
22365         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
22366         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
22367         call's MEM.  Handle functions returning aggregate through a hidden
22368         first pointer.  For virtual calls add clobbered pc to call arguments
22369         chain.
22370         * dwarf2out.c (gen_subprogram_die): Emit
22371         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
22372         can't be emitted.
22373
22374         PR debug/45882
22375         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
22376         * rtl.h (ENTRY_VALUE_EXP): Define.
22377         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
22378         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
22379         * print-rtl.c (print_rtx): Likewise.
22380         * gengtype.c (adjust_field_rtx_def): Likewise.
22381         * var-tracking.c (vt_add_function_parameter): Adjust
22382         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
22383         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
22384         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
22385         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
22386         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
22387
22388         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
22389         Call var_location debug hook even on CALL_INSNs.
22390         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
22391         * rtl.def (ENTRY_VALUE): New.
22392         * dwarf2out.c: Include cfglayout.h.
22393         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
22394         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
22395         (struct call_arg_loc_node): New type.
22396         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
22397         tail_call_site_count): New variables.
22398         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
22399         DW_TAG_GNU_call_site_parameter.
22400         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
22401         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
22402         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
22403         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
22404         and DW_AT_GNU_all_source_call_sites.
22405         (mem_loc_descriptor): Handle ENTRY_VALUE.
22406         (add_src_coords_attributes): Don't add enything if
22407         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
22408         (dwarf2out_abstract_function): Save and clear call_arg_location,
22409         call_site_count and tail_call_site_count around dwarf2out_decl call.
22410         (gen_call_site_die): New function.
22411         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
22412         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
22413         (dwarf2out_function_decl): Clear call_arg_locations,
22414         call_arg_loc_last, set call_site_count and tail_call_site_count
22415         to -1 and free block_map.
22416         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
22417         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
22418         followed by any real instructions.
22419         (dwarf2out_begin_function): Set call_site_count and
22420         tail_call_site_count to 0.
22421         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
22422         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
22423         attempt to force a DIE for it and worst case remove the attribute.
22424         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
22425         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
22426         the decl itself.
22427         * var-tracking.c: Include tm_p.h.
22428         (vt_stack_adjustments): For calls call note_register_arguments.
22429         (argument_reg_set): New variable.
22430         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
22431         ensure the VALUE is resolved.
22432         (call_arguments): New variable.
22433         (prepare_call_arguments): New function.
22434         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
22435         (struct expand_loc_callback_data): Add ignore_cur_loc field.
22436         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
22437         always use the best expression.
22438         (vt_expand_loc): Add ignore_cur_loc argument.
22439         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
22440         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
22441         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
22442         note for all calls.
22443         (vt_add_function_parameter): Use cselib_lookup_from_insn.
22444         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
22445         argument.  Don't call cselib_preserve_only_values and
22446         cselib_reset_table.
22447         (note_register_arguments): New function.
22448         (vt_initialize): Compute argument_reg_set.  Call
22449         vt_add_function_parameters before processing basic blocks instead of
22450         afterwards.  For calls call prepare_call_arguments before calling
22451         cselib_process_insn.
22452         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
22453         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
22454         (var-tracking.o): Depend on $(TM_P_H).
22455         * cfglayout.h (insn_scope): New prototype.
22456         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
22457         * cfglayout.c (insn_scope): No longer static.
22458         * insn-notes.def (CALL_ARG_LOCATION): New.
22459         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
22460         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
22461         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
22462         nothing for DECL_EXTERNAL BLOCK_VARS.
22463
22464 2011-03-16  Alan Modra  <amodra@gmail.com>
22465
22466         PR target/45844
22467         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
22468         create invalid offset address for vsx splat insn.
22469         * config/rs6000/predicates.md (splat_input_operand): New.
22470         * config/rs6000/vsx.md (vsx_splat_*): Use it.
22471
22472 2011-03-15  Xinliang David Li  <davidxl@google.com>
22473
22474         PR c/47837
22475         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
22476         (normalize_preds): New function.
22477         (is_use_properly_guarded): Normalize def predicates.
22478
22479 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22480
22481         PR target/46788
22482         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
22483         in the output template.
22484
22485 2011-03-15  Richard Guenther  <rguenther@suse.de>
22486
22487         PR middle-end/47650
22488         * tree-pretty-print.c (dump_function_declaration): Properly
22489         dump unprototyped and varargs function types.
22490
22491 2011-03-15  Richard Guenther  <rguenther@suse.de>
22492
22493         PR tree-optimization/13954
22494         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
22495         and friends.
22496
22497 2011-03-15  Richard Guenther  <rguenther@suse.de>
22498
22499         PR tree-optimization/48037
22500         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
22501         selects into BIT_FIELD_REFs.
22502         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
22503         vector select.
22504
22505 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
22506
22507         PR tree-optimization/48129
22508         * builtins.c (fold_builtin_snprintf): Convert to type of
22509         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
22510         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
22511
22512 2011-03-15  Richard Guenther  <rguenther@suse.de>
22513
22514         PR tree-optimization/41490
22515         * tree-ssa-dce.c (propagate_necessity): Handle returns without
22516         value but with VUSE.
22517         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
22518         return statements.
22519         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
22520         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
22521         * tree-tailcall.c (find_tail_calls): Ignore returns.
22522
22523 2011-03-15  Richard Guenther  <rguenther@suse.de>
22524
22525         PR middle-end/48031
22526         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
22527         or variable-indexed array accesses when in gimple form.
22528
22529 2011-03-15  Richard Guenther  <rguenther@suse.de>
22530
22531         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
22532
22533 2011-03-15  Alan Modra  <amodra@gmail.com>
22534
22535         PR target/48032
22536         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
22537         presume symbol_refs without a symbol_ref_decl are suitably
22538         aligned, nor other trees we may see here.  Handle anchor symbols.
22539         (legitimate_constant_pool_address_p): Comment.  Add mode param.
22540         Check cmodel=medium addresses.  Adjust all calls.
22541         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
22542         creating cmodel=medium optimized access to locals.
22543         * config/rs6000/constraints.md (R): Pass QImode to
22544         legitimate_constant_pool_address_p.
22545         * config/rs6000/predicates.md (input_operand): Pass mode to
22546         legitimate_constant_pool_address_p.
22547         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
22548         Update prototype.
22549
22550 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
22551
22552         PR target/48053
22553         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
22554         64-bit constants being loaded into registers other than GPRs such
22555         as loading 0 into a VSX register.
22556
22557 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22558
22559         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
22560
22561 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
22562
22563         PR middle-end/47917
22564         * builtins.c (fold_builtin_snprintf): New function.
22565         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
22566         (fold_builtin_4): Likewise.
22567
22568         PR middle-end/38878
22569         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
22570         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
22571         and C - X == X also strip nops from +/-/p+ operand.
22572         When optimizing -X == C, fold C to arg0's type.
22573
22574         PR debug/47946
22575         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
22576         emit it as add_AT_int instead of add_AT_unsigned.
22577
22578 2011-03-14  Tom Tromey  <tromey@redhat.com>
22579
22580         * unwind-dw2.c: Include sys/sdt.h if it exists.
22581         (_Unwind_DebugHook): Use STAP_PROBE2.
22582         * config.in, configure: Rebuild.
22583         * configure.ac: Check for sys/sdt.h.
22584
22585 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
22586
22587         * config/i386/i386.md (ROUND_FLOOR): New constant.
22588         (ROUND_CEIL): Ditto.
22589         (ROUND_TRUNC): Ditto.
22590         (ROUND_MXCSR): Ditto.
22591         (ROUND_NO_EXC): Ditto.
22592         (rint<mode>2): Use new defines instead of numerical constants.
22593         (floor<mode>2): Ditto.
22594         (ceil<mode>2): Ditto.
22595         (btrunc<mode>2): Ditto.
22596         * config/i386/i386-builtin-types.def: Define ROUND function type
22597         aliases.
22598         * config/i386/i386.c (enum ix86_builtins): Add
22599         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
22600         (struct builtin_description): Add
22601         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
22602         (ix86_expand_sse_round): New static function.
22603         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
22604         function types.
22605         (ix86_builtin_vectorized_function): Handle
22606         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
22607
22608 2011-03-14  Tom Tromey  <tromey@redhat.com>
22609
22610         * c-parser.c (c_parser_asm_string_literal): Clear
22611         warn_overlength_strings.
22612
22613 2011-03-14  Tom Tromey  <tromey@redhat.com>
22614
22615         * c-parser.c (disable_extension_diagnostics): Save
22616         warn_overlength_strings.
22617         (restore_extension_diagnostics): Restore warn_overlength_strings.
22618
22619 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
22620
22621         * BASE-VER: Change to 4.7.0.
22622
22623 2011-03-14  Richard Guenther  <rguenther@suse.de>
22624
22625         PR middle-end/48098
22626         * tree.c (build_vector_from_val): Adjust assert to requirements
22627         and reality.
22628
22629 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
22630
22631         PR bootstrap/48102
22632         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
22633
22634 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
22635
22636         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
22637         terms of target_flags_explicit. Adjust copyright year.
22638
22639         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
22640         * config/rs6000/t-freebsd: New file. Add override for
22641         LIB2FUNCS_EXTRA.
22642
22643 2011-03-13  Chris Demetriou  <cgd@google.com>
22644
22645         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
22646         (-fno-diagnostics-show-option): this, to reflect current default.
22647         (-Werror=): Update text about -fno-diagnostics-show-option.
22648
22649 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
22650
22651         PR target/48053
22652         * config/rs6000/predicates.md (easy_vector_constant_add_self,
22653         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
22654         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
22655         mode is not V2DImode or V2DFmode.
22656         (vspltis_constant): Do not handle V2DImode and V2DFmode.
22657         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
22658         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
22659         registers to 0.
22660         (movdi_internal64): Likewise.
22661
22662 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
22663
22664         PR tree-optimization/47127
22665         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
22666         parameter.
22667         (set_cloog_options): Same.
22668         (scop_to_clast): Same.
22669         (print_clast_stmt): Do not call cloog_state_malloc and
22670         cloog_state_free.
22671         (print_generated_program): Same.
22672         (gloog): Same.
22673         * graphite-clast-to-gimple.h (cloog_state): Declared.
22674         (scop_to_clast): Adjust declaration.
22675         * graphite.c (cloog_state): Defined here.
22676         (graphite_initialize): Call cloog_state_malloc.
22677         (graphite_finalize): Call cloog_state_free.
22678
22679 2011-03-11  Jason Merrill  <jason@redhat.com>
22680
22681         * attribs.c (lookup_attribute_spec): Take const_tree.
22682         * tree.h: Adjust.
22683
22684 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
22685
22686         * config/sparc/sparc.c (sparc_option_override): Use
22687         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
22688
22689 2011-03-11  Richard Guenther  <rguenther@suse.de>
22690
22691         PR tree-optimization/48067
22692         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
22693         multiplication result will be only used once on the target
22694         stmt.
22695
22696 2011-03-11  Richard Guenther  <rguenther@suse.de>
22697
22698         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
22699
22700 2011-03-11  Richard Guenther  <rguenther@suse.de>
22701
22702         PR lto/48073
22703         * tree.c (find_decls_types_r): Do not walk types only reachable
22704         from IDENTIFIER_NODEs.
22705
22706 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
22707
22708         PR middle-end/48044
22709         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
22710         all vnode->force_output nodes as needed.
22711
22712 2011-03-11  Jason Merrill  <jason@redhat.com>
22713
22714         PR c++/48069
22715         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
22716         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
22717
22718 2011-03-11  Martin Jambor  <mjambor@suse.cz>
22719
22720         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
22721         cgraph_node.
22722
22723 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
22724
22725         PR tree-optimization/48063
22726         * ipa-inline.c (cgraph_decide_inlining): Don't try to
22727         inline functions called once if !tree_can_inline_p (node->callers).
22728
22729 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
22730
22731         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
22732         extra_objs.
22733         * config/score/score3.c: Delete.
22734         * config/score/score3.h: Delete.
22735         * config/score/mul-div.S: Delete.
22736         * config/score/sfp-machine.h: Add new file.
22737         * config/score/constraints.md: Add new file.
22738         * config/score/t-score-softfp: Add new file.
22739         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
22740         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
22741         (score7_extra_constraint): Delete.
22742         (score7_option_override): Remove unused code.
22743         * config/score/score.c: Remove score3 and score5 define and code.
22744         * config/score/score.h: Remove score3 and score5 define and code.
22745         * config/score/score.md: Remove score3 template and unusual insn.
22746         * config/score/score.opt: Remove score3 and score5 options.
22747
22748 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22749
22750         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
22751         when _HPUX_SOURCE is defined.
22752         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
22753
22754 2011-03-10  Jason Merrill  <jason@redhat.com>
22755
22756         PR c++/48029
22757         * stor-layout.c (layout_type): Don't set structural equality
22758         on arrays of incomplete type.
22759         * tree.c (type_hash_eq): Handle comparing them properly.
22760
22761 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
22762
22763         PR debug/48043
22764         * config/s390/s390.c (s390_delegitimize_address): Make sure the
22765         result mode matches original rtl mode.
22766
22767 2011-03-10  Nick Clifton  <nickc@redhat.com>
22768
22769         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
22770         (andsi3, andsi3_flags): Fix timings for three operand alternative.
22771
22772 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
22773
22774         PR rtl-optimization/47866
22775         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
22776         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
22777         if target wasn't scalar.
22778         * function.c (assign_stack_temp_for_type): Assert that neither
22779         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
22780         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
22781         macro.
22782         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
22783
22784 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22785
22786         * config/s390/s390-protos.h (s390_label_align): New prototype.
22787         * config/s390/s390.c (s390_label_align): New function.
22788         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
22789
22790 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
22791
22792         PR target/47755
22793         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
22794         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
22795         (output_vec_const_move): Ditto.
22796
22797 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
22798
22799         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
22800         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
22801         * config/mips/mips.c (mips_preferred_reload_class): Make static.
22802         Change 'rclass' argument and result type to reg_class_t.
22803         (TARGET_PREFERRED_RELOAD_CLASS): Define.
22804
22805 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
22806
22807         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
22808         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
22809         (TARGET_MEMORY_MOVE_COST): Define.
22810         (avr_register_move_cost, avr_memory_move_cost): New Functions.
22811
22812 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
22813
22814         PR debug/47881
22815         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
22816         removed anything.
22817
22818         PR tree-optimization/48022
22819         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
22820         for EQ/NE_EXPR.
22821
22822 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
22823
22824         PR debug/47991
22825         * var-tracking.c (find_use_val): Return NULL for
22826         cui->sets && cui->store_p BLKmode MEMs.
22827
22828 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
22829
22830         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
22831         Remove.
22832         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
22833         xstormy16_print_operand_address): Remove.
22834         * config/stormy16/stormy16.c (xstormy16_print_operand,
22835         xstormy16_print_operand_address): Make static.
22836         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22837
22838 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
22839
22840         PR target/47862
22841         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
22842         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
22843         before definition.
22844
22845 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
22846
22847         PR bootstrap/48000
22848         * cfgloopmanip.c (fix_bb_placements): Return immediately
22849         if FROM is BASE_LOOP's header.
22850
22851 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
22852
22853         * gimplify.c (gimplify_function_tree): Fix building calls
22854         to __builtin_return_address.
22855
22856 2011-03-07  Alan Modra  <amodra@gmail.com>
22857
22858         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
22859         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
22860         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
22861         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
22862         return_mode args.
22863         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
22864         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
22865         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
22866         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
22867         * config/rs6000/rs6000.c
22868         (rs6000_elf_end_indicate_exec_stack): Rename to..
22869         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
22870         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
22871         (rs6000_file_start): ..here.
22872         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
22873         file scope variables.
22874         (call_ABI_of_interest): New function.
22875         (init_cumulative_args): Set above vars when function return value
22876         is a float, vector, or small struct.
22877         (rs6000_function_arg_advance_1): Likewise for function args.
22878         (rs6000_va_start): Set rs6000_passes_float if variable arg function
22879         references float args.
22880
22881 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
22882
22883         * doc/cfg.texi: Remove "See" before @ref.
22884         * doc/invoke.texi: Likewise.
22885
22886 2011-03-05  Jason Merrill  <jason@redhat.com>
22887
22888         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
22889
22890 2011-03-05  Anthony Green  <green@moxielogic.com>
22891
22892         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
22893
22894 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
22895
22896         PR rtl-optimization/47899
22897         * cfgloopmanip.c (fix_bb_placements): Fix first argument
22898         to flow_loop_nested_p when moving the loop upward.
22899
22900 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
22901
22902         PR target/47719
22903         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
22904
22905 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
22906
22907         PR tree-optimization/47967
22908         * ipa-cp.c (build_const_val): Return NULL instead of creating
22909         VIEW_CONVERT_EXPR for mismatching sizes.
22910         (ipcp_create_replace_map): Return NULL if build_const_val failed.
22911         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
22912         give up on versioning.
22913
22914 2011-03-05  Alan Modra  <amodra@gmail.com>
22915
22916         PR target/47986
22917         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
22918         full cmodel medium/large lo_sum + high addresses.
22919
22920 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22921
22922         * config/s390/s390.c (s390_decompose_address): Reject non-literal
22923         pool references in UNSPEC_LTREL_OFFSET.
22924
22925 2011-03-04  Jan Hubicka  <jh@suse.cz>
22926
22927         PR lto/47497
22928         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
22929         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
22930         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
22931         Add node pointers.
22932         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
22933         cgraph_add_thunk): Add node pointers.
22934         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
22935         associated to right node.
22936         (input_node): Update use of cgraph_same_body_alias
22937         and cgraph_add_thunk.
22938
22939 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
22940
22941         * config/i386/i386.opt (mprefer-avx128): New flag.
22942         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
22943         modes when the flag -mprefer-avx128 is on.
22944
22945 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
22946
22947         * dwarf2out.c (compare_loc_operands): Fix address handling.
22948
22949 2011-03-04  Alan Modra  <amodra@gmail.com>
22950
22951         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
22952
22953 2011-03-04  Richard Guenther  <rguenther@suse.de>
22954
22955         PR middle-end/47968
22956         * expmed.c (extract_bit_field_1): Prefer vector modes that
22957         vec_extract patterns can handle.
22958
22959 2011-03-04  Richard Guenther  <rguenther@suse.de>
22960
22961         PR middle-end/47975
22962         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
22963
22964 2011-03-04  Richard Henderson  <rth@redhat.com>
22965
22966         * explow.c (emit_stack_save): Remove 'after' parameter.
22967         (emit_stack_restore): Likewise.
22968         * expr.h: Update to match.
22969         * builtins.c, calls.c, stmt.c: Likewise.
22970         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
22971         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
22972         * function.c (expand_function_end): Insert the emit_stack_save
22973         sequence before parm_birth_insn instead of after.
22974
22975 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
22976
22977         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
22978         (ssse3_pmaddubsw128): Ditto.
22979         (ssse3_pmaddubsw): Ditto.
22980
22981 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
22982
22983         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
22984
22985 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
22986
22987         PR c/47963
22988         * gimplify.c (omp_add_variable): Only call omp_notice_variable
22989         on TYPE_SIZE_UNIT if it is a DECL.
22990
22991         PR debug/47283
22992         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
22993         first operand is not is_gimple_mem_ref_addr, try to fold it.
22994         If the operand still isn't is_gimple_mem_ref_addr, clear
22995         MEM_EXPR on op0.
22996
22997 2011-03-03  Richard Guenther  <rguenther@suse.de>
22998
22999         PR middle-end/47283
23000         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
23001         match comment.
23002         (refs_may_alias_p_1): For release branches return true if
23003         we are confused by our input.
23004
23005 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23006
23007         * config/s390/s390.c (s390_function_value): Rename to ...
23008         (s390_function_and_libcall_value): ... this.
23009         (s390_function_value): New function.
23010         (s390_libcall_value): New function.
23011         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
23012         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
23013         target macro definitions.
23014         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
23015
23016 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
23017
23018         * config/i386/freebsd64.h (CC1_SPEC): Define.
23019         * config/i386/linux64.h (CC1_SPEC): Define.
23020         * config/i386/x86-64.h (CC1_SPEC): Don't define.
23021
23022 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
23023
23024         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
23025         Remove.
23026         * config/stormy16/stormy16.c: Include reload.h.
23027         (xstormy16_memory_move_cost): New function.
23028         (TARGET_MEMORY_MOVE_COST): Define.
23029
23030 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
23031
23032         PR rtl-optimization/47925
23033         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
23034         with side effects.  Remove the more-specific check for volatile asms.
23035
23036 2011-03-02  Alan Modra  <amodra@gmail.com>
23037
23038         PR target/47935
23039         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
23040         toc relative addresses for valid offsets.
23041
23042 2011-03-01  Richard Guenther  <rguenther@suse.de>
23043
23044         PR tree-optimization/47890
23045         * tree-vect-loop.c (get_initial_def_for_induction): Set
23046         related stmt properly.
23047
23048 2011-03-01  Richard Guenther  <rguenther@suse.de>
23049
23050         PR lto/47924
23051         * lto-streamer.c (lto_record_common_node): Also register
23052         the canonical type.
23053
23054 2011-03-01  Richard Guenther  <rguenther@suse.de>
23055
23056         PR lto/46911
23057         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
23058         Do not stream DECL_ABSTRACT_ORIGIN.
23059         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
23060         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
23061         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23062         Do not stream DECL_ABSTRACT_ORIGIN.
23063         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
23064         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
23065
23066 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
23067
23068         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
23069         FUNCTION_VALUE_REGNO_P): Remove.
23070         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
23071         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
23072         Add 'outgoing' argument.
23073         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
23074         function.
23075         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23076         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23077
23078 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
23079
23080         PR debug/28047
23081         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
23082         (lookup_filename): Likewise.
23083         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
23084
23085 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
23086             Jakub Jelinek  <jakub@redhat.com>
23087
23088         PR middle-end/47893
23089         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
23090         (assign_stack_local_1): Change last argument type to int.
23091         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
23092         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
23093         don't record padding space into frame_space_list nor use those areas.
23094         (assign_stack_local): Adjust caller.
23095         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
23096         of assign_stack_local, pass 0 as last argument.
23097         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
23098         callers.
23099
23100 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
23101
23102         PR debug/47283
23103         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
23104         Use target address_mode and pointer_mode hooks instead of hardcoded
23105         Pmode and ptr_mode.  Handle some simple cases of extending if
23106         POINTERS_EXTEND_UNSIGNED < 0.
23107         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
23108         Call convert_debug_memory_address.
23109         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
23110         convert_debug_memory_address.
23111
23112         PR middle-end/46790
23113         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
23114         * configure: Regenerated.
23115         * config.in: Regenerated.
23116         * varasm.c (default_function_section): Return NULL
23117         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
23118
23119 2011-02-28  Martin Jambor  <mjambor@suse.cz>
23120
23121         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
23122         the description to match the printed values.
23123
23124 2011-02-28  Richard Guenther  <rguenther@suse.de>
23125
23126         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
23127         of the copied scope tree.
23128
23129 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23130
23131         * doc/extend.texi (Function Attributes): Avoid deeply (and
23132         wrongly) nested tables.
23133
23134 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
23135
23136         PR middle-end/47903
23137         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
23138         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
23139         r isn't op0 nor op1.
23140
23141 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
23142
23143         * config/avr/avr.md: Remove magic comment for emacs.
23144
23145 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
23146
23147         PR target/45261
23148         * config/avr/avr.c (avr_option_override): Use error on bad options.
23149         (avr_help): New function.
23150         (TARGET_HELP): Define.
23151
23152 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
23153
23154         PR target/42240
23155         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
23156         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
23157
23158 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
23159
23160         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
23161         (ARM Options): Ditto.
23162         (i386 and x86-64 Options): Ditto.
23163         (RX Options): Ditto.
23164         (SPARC Options): Ditto.
23165
23166 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
23167
23168         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
23169         FreeBSD 6 and later.  Generally use cpu generic.
23170
23171 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
23172
23173         * doc/cpp.texi: Update copyright years.
23174
23175 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
23176
23177         PR target/46898
23178         * config/lm32/lm32.md (ashrsi3): Added needed variable.
23179
23180 2011-02-25  Jon Beniston  <jon@beniston.com>
23181
23182         PR target/46898
23183         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
23184         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
23185         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
23186         (lm32_block_move_inline): Add type cast to remove warning.
23187         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
23188         (gen_int_relational): Move declarations to start of function.
23189
23190 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
23191
23192         PR tree-optimization/45470
23193         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
23194         can throw internally only.
23195         * tree-vect-stmts.c (vectorizable_call): Likewise.
23196
23197 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
23198
23199         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
23200         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
23201         * config/stormy16/stormy16-protos.h
23202         (xstormy16_preferred_reload_class): Remove.
23203         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
23204         static. Change 'rclass' argument and return type to reg_class_t.
23205         (TARGET_PREFERRED_RELOAD_CLASS,
23206         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
23207
23208 2011-02-24  Richard Guenther  <rguenther@suse.de>
23209
23210         * lto-streamer-in.c (input_bb): Do not find referenced vars
23211         in debug statements.
23212
23213 2011-02-23  Jason Merrill  <jason@redhat.com>
23214
23215         * common.opt (fabi-version): Document v5 and v6.
23216
23217 2011-02-23  Richard Guenther  <rguenther@suse.de>
23218
23219         PR tree-optimization/47849
23220         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
23221
23222 2011-02-23  Jie Zhang  <jie@codesourcery.com>
23223
23224         * opts-common.c (decode_cmdline_option): Print empty string
23225         argument as "" in decoded->orig_option_with_args_text.
23226         * gcc.c (execute): Print empty string argument as ""
23227         in the verbose output.
23228         (do_spec_1): Keep empty string argument.
23229
23230 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
23231
23232         * config.gcc: Declare score-* and crx-* obsolete.
23233
23234 2011-02-23  Jie Zhang  <jie@codesourcery.com>
23235
23236         PR rtl-optimization/47763
23237         * web.c (web_main): Ignore naked clobber when replacing register.
23238
23239 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
23240
23241         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
23242         Remove.
23243
23244 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
23245
23246         PR doc/47848
23247         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
23248
23249 2011-02-22  Mike Stump  <mikestump@comcast.net>
23250
23251         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
23252         assembler.
23253         * configure: Regenerate.
23254
23255 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
23256
23257         PR rtl-optimization/46002
23258         * ira-color.c (update_copy_costs): Change class intersection
23259         test to reg_class_contents[] test of 'hard_regno'.
23260
23261 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
23262
23263         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
23264         than Driver option.
23265         * config/hpux11.opt (mt): Likewise.
23266         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
23267         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
23268         * config/vax/elf.opt (mno-asm-pic): Likewise.
23269         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
23270
23271 2011-02-21  Mike Stump  <mikestump@comcast.net>
23272
23273         PR target/47822
23274         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
23275         tree so we can get save the type.
23276         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
23277         for CFString instead of trying to use past the end of the builtins.
23278         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
23279         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
23280         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
23281         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
23282         Rename to darwin_builtin_cfstring.
23283         (darwin_init_cfstring_builtins): Return the built type.
23284
23285 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
23286
23287         PR target/47840
23288         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
23289         (_mm256_insert_epi64): Use _mm_insert_epi64.
23290
23291 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
23292
23293         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23294         * config/stormy16/stormy16-protos.h
23295         (xstormy16_mode_dependent_address_p): Remove.
23296         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
23297         Make static. Change return type to bool. Change argument type to
23298         const_rtx. Remove dead code.
23299         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23300
23301 2011-02-21  Richard Guenther  <rguenther@suse.de>
23302
23303         PR lto/47820
23304         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
23305         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
23306         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
23307         TUs context.
23308         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
23309         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
23310
23311 2011-02-20  Richard Guenther  <rguenther@suse.de>
23312
23313         PR lto/47822
23314         * tree.c (free_lang_data_in_decl): Clean builtins from
23315         the TU decl BLOCK_VARS.
23316
23317 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
23318
23319         PR debug/47620
23320         PR debug/47630
23321         * haifa-sched.c (fix_tick_ready): Skip tick computation
23322         for debug insns.
23323
23324 2011-02-19  Richard Guenther  <rguenther@suse.de>
23325
23326         PR lto/47647
23327         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
23328         Remove lazy BLOCK_VARS streaming.
23329         (lto_input_ts_block_tree_pointers): Likewise.
23330         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
23331
23332 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
23333
23334         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
23335
23336 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
23337
23338         * config/i386/biarch32.h, config/i386/mach.h,
23339         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
23340
23341 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
23342
23343         PR target/47800
23344         * config/i386/i386.md (peephole2 for shift and plus): Use
23345         operands[1] original mode in the first insn.
23346
23347 2011-02-18  Mike Stump  <mikestump@comcast.net>
23348
23349         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
23350
23351 2011-02-18  Jan Hubicka  <jh@suse.cz>
23352
23353         PR middle-end/47788
23354         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
23355         to zero when the function is not inlinable at all.
23356
23357 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23358
23359         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
23360         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
23361         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
23362         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
23363         * config/pa/t-pa64: Likewise.
23364         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
23365
23366 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
23367
23368         PR driver/47787
23369         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
23370
23371 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23372
23373         PR target/47792
23374         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
23375
23376 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
23377
23378         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
23379         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
23380         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
23381         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23382         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
23383         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
23384         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
23385         m32r_load_postinc_p, m32r_store_preinc_predec_p,
23386         m32r_legitimate_address_p): New functions.
23387         * config/m32r/constraints.md (constraint "S"): Don't use
23388         STORE_PREINC_PREDEC_P.
23389         (constraint "U"): Don't use LOAD_POSTINC_P.
23390
23391 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
23392
23393         PR rtl-optimization/46178
23394         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
23395         compute ira_hard_regno_cover_class[].
23396
23397 2011-02-18  Richard Guenther  <rguenther@suse.de>
23398
23399         PR lto/47798
23400         * lto-streamer.h (lto_global_var_decls): Declare.
23401         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
23402         statics for global var processing.
23403
23404 2011-02-18  Richard Guenther  <rguenther@suse.de>
23405
23406         PR tree-optimization/47737
23407         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
23408         edge dominance check.
23409
23410 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
23411
23412         PR debug/47780
23413         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
23414         avoid invalid rtx sharing.
23415
23416 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
23417
23418         * doc/cpp.texi (Obsolete Features): Add background on the
23419         origin of assertions.
23420
23421 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
23422
23423         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23424         objc_abi == 2.
23425         * config/darwin.c (output_objc_section_asm_op): Added support for
23426         ABI v1 and v2.
23427         (is_objc_metadata): New.
23428         (darwin_objc2_section): New.
23429         (darwin_objc1_section): New.
23430         (machopic_select_section): Added support for ABI v1 and v2.
23431         (darwin_emit_objc_zeroed): New.
23432         (darwin_output_aligned_bss): Detect objc metadata and treat it
23433         appropriately.
23434         (darwin_asm_output_aligned_decl_common): Same.
23435         (darwin_asm_output_aligned_decl_local): Same.
23436         * config/darwin-sections.def: Updated for ABI v1 and v2.
23437         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
23438         compiling Objective-C code for the NeXT runtime, default to using
23439         ABI version 0 for 32-bit, and version 2 for 64-bit.
23440
23441 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23442
23443         * common.opt (optimize_fast): New Variable.
23444         * opts.c (default_options_optimization): Use opts->x_optimize_fast
23445         instead of local variable ofast.
23446
23447 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
23448
23449         * doc/invoke.texi (fobjc-abi-version): Documented.
23450         (fobjc-nilcheck): Documented.
23451         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
23452         version.
23453
23454 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23455
23456         PR driver/47390
23457         * common.opt (export-dynamic): New Driver option.
23458         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
23459
23460 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23461
23462         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
23463
23464 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
23465             Jan Hubicka  <jh@suse.cz>
23466
23467         PR debug/47106
23468         PR debug/47402
23469         * cfgexpand.c (account_used_vars_for_block): Remove.
23470         (estimated_stack_frame_size): Use referenced vars.
23471         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
23472         that were referenced in the original function.  Test src_fn
23473         rather than cfun.  Drop redundant get_var_ann.
23474         (setup_one_parameter): Drop redundant get_var_ann.
23475         (declare_return_variable): Likewise.
23476         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
23477         (copy_arguments_for_versioning): Drop redundant get_var_ann.
23478         * ipa-inline.c (compute_inline_parameters): Do not compute
23479         disregard_inline_limits here.
23480         (compute_inlinable_for_current, pass_inlinable): New.
23481         (pass_inline_parameters): Require PROP_referenced_vars.
23482         * cgraphunit.c (cgraph_process_new_functions): Don't run
23483         compute_inline_parameters explicitly unless function is in SSA form.
23484         (cgraph_analyze_function): Set .disregard_inline_limits.
23485         * tree-sra.c (convert_callers): Compute inliner parameters
23486         only for functions already in SSA form.
23487
23488 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23489
23490         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
23491         -mlittle-endian-data.
23492
23493 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
23494
23495         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
23496         -mno-fpu, not -fpu and -no-fpu.
23497         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
23498         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
23499
23500 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
23501
23502         PR target/43653
23503         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
23504         input reload with PLUS RTX.
23505
23506 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23507
23508         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
23509         of InverseVar(MDMX).
23510
23511 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23512
23513         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
23514         --m4-340.
23515
23516 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23517
23518         * config/mn10300/mn10300.opt (mno-crt0): New.
23519
23520 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23521
23522         * config/m68k/uclinux.opt (static-libc): New Driver option.
23523
23524 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23525
23526         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
23527
23528 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
23529
23530         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
23531         %{muser-extend-enabled}.
23532
23533 2011-02-16  Richard Guenther  <rguenther@suse.de>
23534
23535         PR tree-optimization/47738
23536         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
23537         the TODO from tree_predictive_commoning.
23538
23539 2011-02-15  Jeff Law  <law@redhat.com>
23540
23541         Revert
23542         2011-01-25  Jeff Law  <law@redhat.com>
23543
23544         PR rtl-optimization/37273
23545         * ira-costs.c (scan_one_insn): Detect constants living in memory and
23546         handle them like argument loads from stack slots.  Do not double
23547         count memory for memory constants and argument loads from stack slots.
23548
23549 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
23550
23551         PR target/47755
23552         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
23553         mode for vector constants.  Remove code that checks for TImode.
23554
23555 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
23556
23557         PR debug/47106
23558         PR debug/47402
23559         * cgraph.h (compute_inline_parameters): Return void.
23560         * ipa-inline.c (compute_inline_parameters): Adjust.
23561
23562 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
23563
23564         PR debug/47106
23565         PR debug/47402
23566         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
23567         rather than decl.
23568         * cfgexpand.c (estimated_stack_frame_size): Likewise.
23569         * ipa-inline.c (compute_inline_parameters): Adjust.
23570
23571 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
23572
23573         PR debug/47106
23574         PR debug/47402
23575         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
23576         Adjust all users.  Pass FN to...
23577         * tree-flow-inline.h (first_referenced_var): ... this.  Add
23578         fn argument.
23579         * ipa-struct-reorg.c: Adjust.
23580         * tree-dfa.c: Adjust.
23581         * tree-into-ssa.c: Adjust.
23582         * tree-sra.c: Adjust.
23583         * tree-ssa-alias.c: Adjust.
23584         * tree-ssa-live.c: Adjust.
23585         * tree-ssa.c: Adjust.
23586         * tree-ssanames.c: Adjust.
23587         * tree-tailcall.c: Adjust.
23588
23589 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
23590
23591         PR debug/47106
23592         PR debug/47402
23593         * tree-flow.h (referenced_var_lookup): Add fn parameter.
23594         Adjust all callers.
23595         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
23596         * tree-flow-inline.h: Adjust.
23597         * gimple-pretty-print.c: Adjust.
23598         * tree-into-ssa.c: Adjust.
23599         * tree-ssa.c: Adjust.
23600         * cfgexpand.c: Adjust.
23601
23602 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
23603
23604         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
23605         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23606         (EXTRA_CONSTRAINT): Delete.
23607         * config/iq2000/constraints.md: New file.
23608         * config/iq2000/iq2000.md: Include it.
23609         (define_insn ""): Delete.
23610         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
23611         unsupported constraint letters from patterns.
23612         (call_value, call_value_internal1): Likewise.
23613         (call_value_multiple_internal1): Likewise.
23614
23615 2011-02-15  Nick Clifton  <nickc@redhat.com>
23616
23617         * config/mn10300/mn10300.c: Include tm-constrs.h.
23618         (struct liw_data): New data structure describing an LIW candidate
23619         instruction.
23620         (extract_bundle): Use struct liw_data.  Allow small integer
23621         operands for some instructions.
23622         (check_liw_constraints): Use struct liw_data.  Remove swapped
23623         parameter.  Add comments describing the checks.  Fix bug when
23624         assigning the source of liw1 to the source of liw2.
23625         (liw_candidate): Delete.  Code moved into extract_bundle.
23626         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
23627         before swapping.
23628         * config/mn10300/predicates.md (liw_operand): New predicate.
23629         Allows registers and small integer constants.
23630         * config/mn10300/constraints.md (O): New constraint.  Accetps
23631         integers in the range -8 to +7 inclusive.
23632         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
23633         for moving a small integer into a register.  Give this alternative
23634         LIW attributes.
23635         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
23636         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
23637         using the J,K,L and M constraints,
23638         (liw): Remove SI mode on second operands to allow for HI and QI
23639         mode values.
23640         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
23641         instruction.
23642
23643 2011-02-15  Richard Guenther  <rguenther@suse.de>
23644
23645         PR tree-optimization/47743
23646         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
23647         for a non-type-compatible VN lookup bail out.
23648
23649 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
23650
23651         * config/fr30/constraints.md: New file.
23652         * config/fr30/fr30.md: Include it.
23653         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
23654         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23655         (EXTRA_CONSTRAINT): Delete.
23656
23657 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
23658
23659         * config/frv/constraints.md: New file.
23660         * config/frv/predicates.md: Include it.
23661         * config/frv/frv.c (reg_class_from_letter): Delete.
23662         (frv_option_override): Don't initialize it.
23663         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
23664         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
23665         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
23666         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
23667         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
23668         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23669         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
23670         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
23671         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
23672         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
23673         (REG_CLASS_FROM_CONSTRAINT): Delete.
23674
23675 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
23676
23677         PR middle-end/47581
23678         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
23679         if frame size is 0 in a leaf function.
23680
23681 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23682
23683         PR pch/14940
23684         * config/alpha/host-osf.c: New file.
23685         * config/alpha/x-osf: New file.
23686         * config.host (alpha*-dec-osf*): Use it.
23687
23688 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
23689
23690         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23691         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
23692         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
23693         (rx_mode_dependent_address_p): ...this. Make static. Change argument
23694         type to const_rtx.
23695         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23696
23697 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
23698
23699         * config/stormy16/constraints.md: New file.
23700         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
23701         Use satisfies_constraint_Q and satisfies_constraint_R.
23702         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
23703         Delete.
23704         (xstormy16_legitiamte_address_p): Declare.
23705         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
23706         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23707         (EXTRA_CONSTRAINT): Delete.
23708         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
23709         Un-staticize.
23710         (xstormy16_extra_constraint_p): Delete.
23711
23712 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
23713
23714         PR tree-optimization/46494
23715         * loop-unroll.c (split_edge_and_insert): Adjust comment.
23716         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
23717         (pass_rtl_loop_done): Add TODO_verify_flow.
23718         * fwprop.c (pass_rtl_fwprop): Likewise.
23719         * modulo-sched.c (pass_sms): Likewise.
23720         * tree-ssa-dom.c (pass_dominator): Likewise.
23721         * tree-ssa-loop-ch.c (pass_ch): Likewise.
23722         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
23723         (pass_tree_loop_done): Likewise.
23724         * tree-ssa-pre.c (execute_pre): Likewise.
23725         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
23726         * tree-ssa-sink.c (pass_sink_code): Likewise.
23727         * tree-vrp.c (pass_vrp): Likewise.
23728
23729 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
23730
23731         * config/v850/constraints.md: New file.
23732         * config/v850/v850.md: Include it.
23733         * config/v850/predicates.md (reg_or_0_operand): Use
23734         satisfies_constraint_G.
23735         (special_symbolref_operand): Use satisfies_constraint_K.
23736         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
23737         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
23738         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
23739         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
23740         (EXTRA_CONSTRAINT): Delete.
23741         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
23742         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
23743         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
23744
23745 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
23746
23747         PR target/47696
23748         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
23749         description.
23750
23751 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
23752
23753         * config/mcore/constraints.md: New file.
23754         * config/mcore/mcore.md: Include it.
23755         * config/mcore/mcore.c (reg_class_from_letter): Delete.
23756         * config/mcore/mcore.h (reg_class_from_letter): Delete.
23757         (REG_CLASS_FROM_LETTER): Delete.
23758         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
23759         insn_const_int_ok_for_constraint.
23760         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
23761         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
23762         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23763         (EXTRA_CONSTRAINT): Delete.
23764
23765 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23766
23767         PR ada/41929
23768         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
23769         (IS_SIGHANDLER): Define.
23770         (sparc64_is_sighandler): New function, split off from
23771         sparc64_fallback_frame_state.
23772         (sparc_is_sighandler): New function, split off from
23773         sparc_fallback_frame_state.
23774         (sparc64_fallback_frame_state): Merge with ...
23775         (sparc_fallback_frame_state): ... this into ...
23776         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
23777         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
23778         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
23779         stack instead of hardcoded offsets.
23780
23781 2011-02-14  Andriy Gapon  <avg@freebsd.org>
23782
23783         PR target/45808
23784         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
23785
23786 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23787
23788         * configure: Regenerate.
23789
23790 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
23791
23792         PR driver/45731
23793         * gcc.c (asm_options): Correct spec matching --target-help.
23794
23795 2011-02-12  Martin Jambor  <mjambor@suse.cz>
23796
23797         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
23798         to gimple call error.
23799
23800 2011-02-12  Mike Stump  <mikestump@comcast.net>
23801
23802         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
23803         comments in backslash regions.
23804
23805 2011-02-12  Mike Stump  <mikestump@comcast.net>
23806             Jakub Jelinek  <jakub@redhat.com>
23807             Iain Sandoe  <iains@gcc.gnu.org>
23808
23809         PR target/47324
23810         * dwarf2out.c (output_cfa_loc): When required, apply the
23811         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
23812         (output_loc_sequence): Likewise.
23813         (output_loc_operands_raw): Likewise.
23814         (output_loc_sequence_raw): Likewise.
23815         (output_cfa_loc): Likewise.
23816         (output_loc_list): Suppress register number adjustment when
23817         calling output_loc_sequence()
23818         (output_die): Likewise.
23819
23820 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
23821
23822         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
23823         Remove macros.
23824         * config/xtensa/xtensa.c (xtensa_register_move_cost,
23825         xtensa_memory_move_cost): New functions.
23826         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
23827
23828 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
23829
23830         PR lto/47225
23831         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
23832         in the current directory.
23833         * configure: Rebuilt.
23834
23835 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
23836
23837         * config/darwin.c (darwin_override_options): Add a hunk missed
23838         from the commit of r168571.  Trim comment line lengths and
23839         correct indents of the preceding block.
23840
23841 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
23842
23843         * gcc.c (driver_handle_option): Concatenate the argument to -F with
23844         the switch.
23845
23846 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
23847
23848         * common.opt (nostartfiles): New Driver option.
23849
23850 2011-02-11  Xinliang David Li  <davidxl@google.com>
23851
23852         PR tree-optimization/47707
23853         * tree-chrec.c (convert_affine_scev): Keep type precision.
23854
23855 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
23856
23857         PR tree-optimization/47420
23858         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
23859
23860 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
23861
23862         PR rtl-optimization/47614
23863         * rtl.h (check_for_inc_dec): Declare.
23864         * dse.c (check_for_inc_dec): Externalize...
23865         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
23866         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
23867
23868 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
23869
23870         PR driver/47678
23871         * gcc.c (main): Do not compile inputs if there were errors in
23872         option handling.
23873         * opts-common.c (read_cmdline_option): Check for wrong language
23874         after other error checks.
23875
23876 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
23877
23878         * cgraph.c: Fix comment typos.
23879         * cgraph.h: Likewise.
23880         * cgraphunit.c: Likewise.
23881         * ipa-cp.c: Likewise.
23882         * ipa-inline.c: Likewise.
23883         * ipa-prop.c: Likewise.
23884         * ipa-pure-const.c: Likewise.
23885         * ipa-ref.c: Likewise.
23886         * ipa-reference.c: Likewise.
23887
23888 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
23889
23890         PR debug/47684
23891         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
23892
23893 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23894
23895         PR testsuite/47400
23896         * doc/sourcebuild.texi (Require Support): Document
23897         dg-require-ascii-locale.
23898
23899 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
23900
23901         * doc/lto.texi (Write summary): Fix missing parentheses.
23902
23903 2011-02-10  DJ Delorie  <dj@redhat.com>
23904
23905         * config/m32c/m32c.c (m32c_option_override): Disable
23906         -fcombine-stack-adjustments until flag value tracking and compare
23907         optimization can be rewritten.
23908
23909 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
23910
23911         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
23912         PROCESSOR_POWER7.
23913         (PROCESSOR_DEFAULT64): Likewise.
23914
23915 2011-02-10  Richard Henderson  <rth@redhat.com>
23916
23917         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
23918         change from 2011-02-03.
23919         * config/rx/rx.c (flags_from_code): Likewise.
23920         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
23921         is valid, n/pz otherwise.
23922         (rx_select_cc_mode): Return CCmode if Y is not zero.
23923
23924 2011-02-10  Richard Guenther  <rguenther@suse.de>
23925
23926         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
23927
23928 2011-02-10  Richard Guenther  <rguenther@suse.de>
23929
23930         PR tree-optimization/47677
23931         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
23932
23933 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
23934
23935         PR target/47665
23936         * combine.c (make_compound_operation): Only change shifts into
23937         multiplication for SCALAR_INT_MODE_P.
23938
23939 2011-02-10  Jie Zhang  <jie@codesourcery.com>
23940
23941         PR testsuite/47622
23942         Revert
23943         2011-02-05  Jie Zhang  <jie@codesourcery.com>
23944         PR debug/42631
23945         * web.c (entry_register): Don't clobber the number of the
23946         first uninitialized reference in used[].
23947
23948 2011-02-09  Richard Guenther  <rguenther@suse.de>
23949
23950         PR tree-optimization/47664
23951         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
23952         all edges again.
23953
23954 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
23955
23956         PR target/46481
23957         PR target/47032
23958         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
23959         PROCESSOR_POWER7.
23960         (PROCESSOR_DEFAULT64): Same.
23961         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
23962
23963 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23964
23965         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
23966
23967 2011-02-09  Martin Jambor  <mjambor@suse.cz>
23968
23969         PR middle-end/45505
23970         * tree-sra.c (struct access): New flags grp_scalar_read and
23971         grp_scalar_write.  Changed description of assignment read and write
23972         flags.
23973         (dump_access): Dump new flags, reorder all of them.
23974         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
23975         to detect multiple scalar reads.
23976         (analyze_access_subtree): Use the new scalar read write flags instead
23977         of the old flags.  Adjusted comments.
23978
23979 2011-02-08  DJ Delorie  <dj@redhat.com>
23980
23981         PR target/47548
23982         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
23983         patterns.
23984
23985 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
23986
23987         * config/m68k/uclinux.opt: New.
23988         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
23989
23990 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
23991
23992         * config/cris/elf.opt (sim): New Driver option.
23993
23994 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
23995
23996         * config/xtensa/elf.opt: New.
23997         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
23998
23999 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24000
24001         * config/vax/elf.opt: New.
24002         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
24003
24004 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24005
24006         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
24007
24008 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24009
24010         * config/gnu-user.opt: New.
24011         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
24012         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
24013         *-*-uclinux*): Use gnu-user.opt.
24014
24015 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
24016
24017         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
24018         * config/i386/gnu.h (CPP_SPEC): Likewise.
24019
24020 2011-02-08  Ian Lance Taylor  <iant@google.com>
24021
24022         * common.opt (fcx-limited-range): Add SetByCombined flag.
24023         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
24024         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
24025         (fassociative-math, freciprocal-math): Likewise.
24026         (funsafe-math-optimizations): Likewise.
24027         * opth-gen.awk: Handle SetByCombined.
24028         * optc-gen.awk: Likewise.
24029         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
24030         (set_unsafe_math_optimizations_flags): Likewise.
24031         * doc/options.texi (Option properties): Document SetByCombined.
24032
24033 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
24034
24035         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
24036         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
24037         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
24038         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
24039         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
24040
24041 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
24042
24043         PR tree-optimization/46834
24044         PR tree-optimization/46994
24045         PR tree-optimization/46995
24046         * graphite-sese-to-poly.c (used_outside_reduction): New.
24047         (detect_commutative_reduction): Call used_outside_reduction.
24048         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
24049         translate_scalar_reduction_to_array only when at least one
24050         loop-phi/close-phi tuple has been detected.
24051
24052 2011-02-08  Richard Guenther  <rguenther@suse.de>
24053
24054         PR middle-end/47639
24055         * tree-vect-generic.c (expand_vector_operations_1): Update
24056         stmts here ...
24057         (expand_vector_operations): ... not here.  Cleanup EH info
24058         and the CFG if required.
24059
24060 2011-02-08  Richard Guenther  <rguenther@suse.de>
24061
24062         PR tree-optimization/47641
24063         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
24064         require type compatibility.
24065
24066 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24067
24068         * gimple-low.c (lower_function_body): Don't remove the location of
24069         the return statement here.
24070         (lower_gimple_return): Do it here instead but only if the return
24071         statement is actually used twice.
24072
24073 2011-02-08  Richard Guenther  <rguenther@suse.de>
24074
24075         PR tree-optimization/47632
24076         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
24077         unused up_to_stmt parameter, return whether cfg-cleanup is
24078         necessary, remove EH info properly.
24079         (forward_propagate_into_gimple_cond): Adjust caller.
24080         (forward_propagate_into_cond): Likewise.
24081         (forward_propagate_comparison): Likewise.
24082         (tree_ssa_forward_propagate_single_use_vars): Make
24083         forward_propagate_comparison case similar to the two others.
24084
24085 2011-02-08  Nick Clifton  <nickc@redhat.com>
24086
24087         * config/mn10300/mn10300.opt (mliw): New command line option.
24088         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
24089         (liw_bundling): New automaton.
24090         (liw): New attribute.
24091         (liw_op): New attribute.
24092         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
24093         (movsi_internal): Add LIW attributes.
24094         (andsi3): Likewise.
24095         (iorsi3): Likewise.
24096         (xorsi3): Likewise.
24097         (addsi3): Separate register and immediate alternatives.
24098         Add LIW attributes.
24099         (subsi3): Likewise.
24100         (cmpsi): Likewise.
24101         (aslsi3): Likewise.
24102         (lshrsi3): Likewise.
24103         (ashrsi3): Likewise.
24104         (liw): New pattern.
24105         * config/mn10300/mn10300.c (liw_op_names): New
24106         (mn10300_print_operand): Handle 'W' operand descriptor.
24107         (extract_bundle): New function.
24108         (check_liw_constraints): New function.
24109         (liw_candidate): New function.
24110         (mn10300_bundle_liw): New function.
24111         (mn10300_reorg): New function.
24112         (TARGET_MACHINE_DEPENDENT_REORG): Define.
24113         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
24114         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
24115         __LIW__ or __NO_LIW__.
24116         * doc/invoke.texi: Describe the -mliw command line option.
24117
24118 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24119
24120         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
24121         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24122         pthread_mutex_unlock): Remove.
24123         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
24124         * config/pa/t-pa64: Likewise.
24125         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
24126         shared libc if not linking against libpthread.
24127         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
24128
24129 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
24130
24131         PR target/47558
24132         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
24133         on 10.6 and later to ensure that we always use the unwinder from
24134         the system.  Only add -no_compact_unwind when tarteting darwin
24135         10.6 or later.
24136
24137 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
24138
24139         PR target/46997
24140         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
24141         (vec_interleave_lowv2sf): Ditto.
24142         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
24143         (vec_extract_oddv2sf): Ditto.
24144
24145 2011-02-07  Mike Stump  <mikestump@comcast.net>
24146
24147         PR target/42333
24148         Add __ieee_divdc3 entry point.
24149         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
24150         entry point.
24151         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
24152         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
24153         * config/darwin.c (darwin_rename_builtins): Add.
24154         * config/darwin-protos.h (darwin_rename_builtins): Add.
24155
24156 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
24157
24158         PR target/47636
24159         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
24160         for the condition.
24161
24162 2011-02-07  Mike Stump  <mikestump@comcast.net>
24163
24164         * config/darwin.opt (mmacosx-version-min): Update default OS version.
24165
24166 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
24167
24168         PR target/47534
24169         * config/avr/libgcc.S (exit): Move .endfunc
24170
24171 2011-02-07  Richard Guenther  <rguenther@suse.de>
24172
24173         PR tree-optimization/47615
24174         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
24175         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
24176         (run_scc_vn): Initialize it.
24177         (visit_reference_op_load): Use it.
24178         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
24179
24180 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24181
24182         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
24183         DImode trapping arithmetic libfuncs.
24184
24185 2011-02-07  Richard Guenther  <rguenther@suse.de>
24186
24187         PR tree-optimization/47621
24188         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
24189         two duplicates ...
24190         (execute_update_addresses_taken): ... here.  Make it more
24191         conservative in what we accept.
24192
24193 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
24194
24195         * config/sparc/freebsd.h (ASM_SPEC): Define.
24196         * config/sparc/vxworks.h (ASM_SPEC): Define.
24197
24198 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
24199
24200         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
24201
24202 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
24203
24204         * doc/invoke.texi: Remove reference to compiler internals from
24205         user documentation.
24206
24207         * reg-notes.def: Remove REG_VALUE_PROFILE.
24208         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
24209
24210 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
24211
24212         PR middle-end/47610
24213         * varasm.c (default_section_type_flags): If decl is NULL,
24214         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
24215
24216 2011-02-05  Jie Zhang  <jie@codesourcery.com>
24217
24218         PR debug/42631
24219         * web.c (entry_register): Don't clobber the number of the
24220         first uninitialized reference in used[].
24221
24222 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
24223
24224         PR tree-optimization/46194
24225         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
24226         (build_classic_dist_vector_1): Do not represent classic distance
24227         vectors when the access functions are variating in different loops.
24228
24229 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
24230
24231         * config/mips/iris6.opt: New.
24232         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
24233
24234 2011-02-04  Richard Henderson  <rth@redhat.com>
24235             Steve Ellcey  <sje@cup.hp.com>
24236
24237         PR target/46997
24238         * config/ia64/predicates.md (mux1_brcst_element): New.
24239         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
24240         * config/ia64/ia64.c (ia64_unpack_assemble): New.
24241         (ia64_unpack_sign): New.
24242         (ia64_expand_unpack): Rewrite using new routines.
24243         (ia64_expand_widen_sum): Ditto.
24244         (ia64_expand_dot_prod_v8qi): Ditto.
24245         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
24246         routines, add endian check.
24247         (pmpy2_even): Rename from pmpy2_r, add endian check.
24248         (pmpy2_odd): Rename from pmpy2_l, add endian check.
24249         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
24250         (vec_widen_smult_hi_v4hi): Ditto.
24251         (vec_widen_umult_lo_v4hi): Ditto.
24252         (vec_widen_umult_hi_v4hi): Ditto.
24253         (mulv2si3): Change endian checks.
24254         (sdot_prodv4hi): Rewrite with new calls.
24255         (udot_prodv4hi): New.
24256         (vec_pack_ssat_v4hi): Add endian check.
24257         (vec_pack_usat_v4hi): Ditto.
24258         (vec_pack_ssat_v2si): Ditto.
24259         (max1_even): Rename from max1_r, add endian check.
24260         (max1_odd): Rename from max1_l, add endian check.
24261         (*mux1_rev): Format change.
24262         (*mux1_mix): Ditto.
24263         (*mux1_shuf): Ditto.
24264         (*mux1_alt): Ditto.
24265         (*mux1_brcst_v8qi): Use new predicate.
24266         (vec_extract_evenv8qi): Remove endian check.
24267         (vec_extract_oddv8qi): Ditto.
24268         (vec_interleave_lowv4hi): Format change.
24269         (vec_interleave_highv4hi): Ditto.
24270         (mix2_even): Rename from mix2_r, add endian check.
24271         (mix2_odd): Rename from mux2_l, add endian check.
24272         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
24273         (vec_extract_evenodd_helper): Format change.
24274         (vec_extract_evenv4hi): Remove endian check.
24275         (vec_extract_oddv4hi): Remove endian check.
24276         (vec_interleave_lowv2si): Format change.
24277         (vec_interleave_highv2si): Format change.
24278         (vec_initv2si): Remove endian check.
24279         (vecinit_v2si): Add endian check.
24280         (reduc_splus_v2sf): Add endian check.
24281         (reduc_smax_v2sf): Ditto.
24282         (reduc_smin_v2sf): Ditto.
24283         (vec_initv2sf): Remove endian check.
24284         (fpack): Add endian check.
24285         (fswap): Add endian check.
24286         (vec_interleave_highv2sf): Add endian check.
24287         (vec_interleave_lowv2sf): Add endian check.
24288         (fmix_lr): Add endian check.
24289         (vec_setv2sf): Format change.
24290         (*vec_extractv2sf_0_be): Use shift to extract operand.
24291         (*vec_extractv2sf_1_be): New.
24292         (vec_pack_trunc_v4hi): Add endian check.
24293         (vec_pack_trunc_v2si): Format change.
24294
24295 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
24296
24297         PR inline-asm/23200
24298         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
24299         do bb, locus and block comparison and disallow loads if it is not set.
24300         (stmt_is_replaceable_p): New function.
24301         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
24302         callers.
24303         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
24304         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
24305         SSA_NAME_DEF_STMT.
24306         * tree-flow.h (stmt_is_replaceable_p): New prototype.
24307
24308 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
24309
24310         * config/rs6000/xilinx.opt: New.
24311         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
24312
24313 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
24314
24315         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
24316
24317 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
24318
24319         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
24320         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
24321         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
24322         secondary_reload_info, xtensa_secondary_reload): Remove.
24323         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
24324         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
24325         (xtensa_preferred_reload_class): Make static. Change return and
24326         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
24327         Use CONST_DOUBLE_P predicate.
24328         (xtensa_preferred_output_reload_class): New function.
24329         (xtensa_secondary_reload): Make static.
24330
24331 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
24332
24333         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
24334         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
24335         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
24336
24337 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
24338
24339         PR middle-end/31490
24340         * output.h (SECTION_RELRO): Define.
24341         (SECTION_MACH_DEP): Adjust.
24342         (get_variable_section): New prototype.
24343         * varpool.c (varpool_finalize_named_section_flags): New function.
24344         (varpool_assemble_pending_decls): Call it.
24345         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
24346         * cgraphunit.c (cgraph_output_in_order): Call
24347         varpool_finalize_named_section_flags.
24348         * varasm.c (get_section): Allow section flags conflicts between
24349         relro and read-only sections if the section hasn't been declared yet.
24350         Set SECTION_OVERRIDE after diagnosing section type conflict.
24351         (get_variable_section): No longer static.
24352         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
24353         readonly sections that need relocations.
24354         (decl_readonly_section_1): New function.
24355         (decl_readonly_section): Use it.
24356
24357         Revert:
24358         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
24359                     Steve Ellcey  <sje@cup.hp.com>
24360
24361         PR middle-end/31490
24362         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
24363         if section attribute used.
24364
24365 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
24366
24367         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
24368         * config/darwin.c (SECTION_NO_ANCHOR): Define.
24369         (darwin_init_sections): Remove assertion.
24370
24371 2011-02-03  Nick Clifton  <nickc@redhat.com>
24372
24373         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
24374         lt and ge.
24375         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
24376         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
24377         instead of "n" and "pz".
24378         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
24379         CC_FLAG_S.
24380
24381 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
24382
24383         PR target/47312
24384         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
24385         fma, expand FMA_EXPR as fma{,f,l} call.
24386
24387         PR lto/47274
24388         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
24389         copy them into a unsigned char variable and pass address of it to
24390         lto_output_data_stream.
24391
24392         PR target/47564
24393         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
24394         around backend_init_target and lang_dependent_init_target calls.
24395         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
24396         (verify_cgraph_node): Don't call set_cfun here.  Use
24397         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
24398         Set error_found for incorrectly represented calls to thunks.
24399
24400 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
24401
24402         PR debug/43092
24403         PR rtl-optimization/43494
24404         * rtl.h (for_each_inc_dec_fn): New type.
24405         (for_each_inc_dec): Declare.
24406         * rtlanal.c (struct for_each_inc_dec_ops): New type.
24407         (for_each_inc_dec_find_inc_dec): New fn.
24408         (for_each_inc_dec_find_mem): New fn.
24409         (for_each_inc_dec): New fn.
24410         * dse.c (struct insn_size): Remove.
24411         (replace_inc_dec, replace_inc_dec_mem): Remove.
24412         (emit_inc_dec_insn_before): New fn.
24413         (check_for_inc_dec): Use it, along with for_each_inc_dec.
24414         (canon_address): Pass mem modes to cselib_lookup.
24415         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
24416         (cselib_lookup_from_insn): Likewise.
24417         (cselib_subst_to_values): Likewise.
24418         * cselib.c (find_slot_memmode): New var.
24419         (cselib_find_slot): New fn.  Use it instead of
24420         htab_find_slot_with_hash everywhere.
24421         (entry_and_rtx_equal_p): Use find_slot_memmode.
24422         (autoinc_split): New fn.
24423         (rtx_equal_for_cselib_p): Rename and implement in terms of...
24424         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
24425         Deal with autoinc.  Special-case recursion into MEMs.
24426         (cselib_hash_rtx): Likewise.
24427         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
24428         address and MEM modes.
24429         (cselib_subst_to_values): Add memmode, pass it on.
24430         Deal with autoinc.
24431         (cselib_lookup): Add memmode argument, pass it on.
24432         (cselib_lookup_from_insn): Add memmode.
24433         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
24434         (struct cselib_record_autoinc_data): New.
24435         (cselib_record_autoinc_cb): New fn.
24436         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
24437         mode to cselib_lookup.  Reset autoinced REGs here instead of...
24438         (cselib_process_insn): ... here.
24439         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
24440         to cselib_lookup.
24441         (add_uses): Likewise, also to cselib_subst_to_values.
24442         (add_stores): Likewise.
24443         * sched-deps.c (add_insn_mem_dependence): Pass mode to
24444         cselib_subst_to_values.
24445         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
24446         * gcse.c (do_local_cprop): Adjusted.
24447         * postreload.c (reload_cse_simplify_set): Adjusted.
24448         (reload_cse_simplify_operands): Adjusted.
24449         * sel-sched-dump (debug_mem_addr_value): Pass mode.
24450
24451 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
24452
24453         PR tree-optimization/45122
24454         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
24455         unsafe assumptions when there's more than one loop exit.
24456
24457 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24458
24459         PR target/47272
24460         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24461         Document using vector double with the load/store builtins, and
24462         that the load/store builtins always use Altivec instructions.
24463
24464         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
24465         to use altivec memory instructions, even on VSX.
24466         (vector_altivec_store_<mode>): Ditto.
24467
24468         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
24469         function.
24470
24471         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24472         V2DF, V2DI support to load/store overloaded builtins.
24473
24474         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
24475         altivec load/store builtins for V2DF/V2DI types.
24476
24477         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24478         set avoid indexed addresses on power6 if -maltivec.
24479         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
24480         vector_altivec_load/vector_altivec_store builtins.
24481         (altivec_expand_st_builtin): Ditto.
24482         (altivec_expand_builtin): Add VSX memory builtins.
24483         (rs6000_init_builtins): Add V2DI types to internal types.
24484         (altivec_init_builtins): Add support for V2DF/V2DI altivec
24485         load/store builtins.
24486         (rs6000_address_for_altivec): Insure memory address is appropriate
24487         for Altivec.
24488
24489         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
24490         vec_vsx_ld and vec_vsx_st.
24491         (vsx_store_<mode>): Ditto.
24492
24493         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
24494         variables to hold long long types for VSX vector memory builtins.
24495         (RS6000_BTI_unsigned_long_long): Ditto.
24496         (long_long_integer_type_internal_node): Ditti.
24497         (long_long_unsigned_type_internal_node): Ditti.
24498
24499         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
24500         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
24501         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
24502
24503         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
24504         short cuts.
24505         (vec_vsx_st): Ditto.
24506
24507 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
24508
24509         * config/pa/pa-hpux10.opt: New.
24510         * config/hpux11.opt (pthread): New Driver option.
24511         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
24512         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
24513
24514 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
24515
24516         * config/ia64/vms.opt: New.
24517         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
24518
24519 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
24520
24521         PR target/47580
24522         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
24523         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
24524         generator functions.
24525         (vsx_floatuns<VSi><mode>2): Ditto.
24526         (vsx_fix_trunc<mode><VSi>2): Ditto.
24527         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
24528
24529 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
24530
24531         * config/i386/djgpp.opt (posix): New Driver option.
24532
24533 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
24534
24535         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
24536         Move to the unsupported targets list.
24537
24538 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
24539
24540         PR rtl-optimization/47525
24541         * df-scan.c: Update copyright years.
24542         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
24543         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
24544
24545 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24546
24547         * config/i386/sysv4.h (TARGET_VERSION): Remove.
24548         (SUBTARGET_RETURN_IN_MEMORY): Remove.
24549         (ASM_OUTPUT_ASCII): Remove.
24550         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
24551
24552 2011-02-02  Jeff Law  <law@redhat.com>
24553
24554         PR middle-end/47543
24555         * reload.c (find_reloads_address): Handle reg+d address where both
24556         components are invalid by reloading the entire address.
24557
24558 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
24559             Richard Guenther  <rguenther@suse.de>
24560
24561         PR tree-optimization/40979
24562         PR bootstrap/47044
24563         * passes.c (init_optimization_passes): After LIM call copy_prop
24564         and DCE to clean up.
24565         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
24566
24567 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
24568
24569         PR tree-optimization/47576
24570         PR tree-optimization/47555
24571         * doc/invoke.texi (scev-max-expr-complexity): Documented.
24572         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
24573         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
24574         * tree-scalar-evolution.c (follow_ssa_edge): Use
24575         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
24576
24577 2011-02-02  Richard Guenther  <rguenther@suse.de>
24578
24579         PR tree-optimization/47566
24580         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
24581
24582 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
24583
24584         PR debug/47106
24585         PR debug/47402
24586         * tree-inline.c (declare_return_variable): Remove unused caller
24587         variable.
24588
24589         PR debug/47106
24590         PR debug/47402
24591         * tree-flow-inline.h (clear_is_used, is_used_p): New.
24592         * cfgexpand.c (account_used_vars_for_block): Use them.
24593         * tree-nrv.c (tree_nrv): Likewise.
24594         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
24595         (dump_scope_block): Likewise.
24596         (remove_unused_locals): Likewise.
24597
24598         PR debug/47106
24599         PR debug/47402
24600         * tree-inline.c (declare_return_variable): Add result decl to
24601         local decls only once.
24602         * gimple-low.c (record_vars_into): Mark newly-created variables
24603         as referenced.
24604
24605 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
24606
24607         PR debug/47498
24608         PR debug/47501
24609         PR debug/45136
24610         PR debug/45130
24611         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
24612         debug insns.
24613         (no_real_insns_p, schedule_block, set_priorities): Drop special
24614         treatment of boundary debug insns.
24615         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
24616         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
24617         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
24618         (BOUNDARY_DEBUG_INSN_P): Likewise.
24619         (SCHEDULE_DEBUG_INSN_P): Likewise.
24620         * sched-rgn.c (init_ready_list): Drop special treatment of
24621         boundary debug insns.
24622         * final.c (rest_of_clean_state): Clear notes' BB.
24623
24624 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24625
24626         * config/openbsd.opt (assert=): New Driver option.
24627
24628 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24629
24630         * config/i386/nto.opt: New.
24631         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
24632
24633 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24634
24635         * config/i386/netware.opt: New.
24636         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
24637
24638 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24639
24640         * config/interix.opt (posix): New Driver option.
24641
24642 2011-02-01  DJ Delorie  <dj@redhat.com>
24643
24644         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
24645
24646         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
24647         class for A0/A1.
24648
24649 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
24650
24651         PR tree-optimization/47561
24652         * toplev.c (process_options): Print the Graphite flags.  Add
24653         flag_loop_flatten to the list of options requiring Graphite.
24654
24655 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24656
24657         * config/i386/cygming.opt (posix): New Driver option.
24658
24659 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24660
24661         * config/arm/vxworks.opt: New.
24662         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
24663
24664 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
24665
24666         * config/alpha/elf.opt: New.
24667         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
24668         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
24669
24670 2011-02-01  Richard Guenther  <rguenther@suse.de>
24671
24672         PR tree-optimization/47559
24673         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
24674         store-motion on references that can throw.
24675
24676 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
24677
24678         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
24679         * tree-pass.h (TDF_CSELIB): New macro.
24680         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
24681         cselib_lookup): Check for it rather than for TDF_DETAILS.
24682
24683 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
24684
24685         PR driver/47547
24686         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
24687         is HOST_BIT_BUCKET.
24688
24689         * opts.c (finish_options): Don't add x_aux_base_name if it is
24690         HOST_BIT_BUCKET.
24691
24692 2011-02-01  Richard Guenther  <rguenther@suse.de>
24693
24694         PR tree-optimization/47555
24695         Revert
24696         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
24697
24698         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
24699
24700 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
24701
24702         PR gcc/46692
24703         * config/lm32/t-lm32: Add multilib for all CPU options.
24704
24705 2011-02-01  Richard Guenther  <rguenther@suse.de>
24706
24707         PR tree-optimization/47541
24708         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
24709         sure to have a field at offset zero.
24710
24711 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
24712
24713         * config/arc/arc.opt (EB, EL): New Driver options.
24714
24715 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
24716
24717         * config/alpha/osf5.opt: New.
24718         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
24719
24720 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
24721
24722         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
24723
24724 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
24725
24726         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
24727         -floop-interchange.
24728         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
24729         is an alias of -floop-interchange and that it requires the
24730         Graphite infrastructure.
24731         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
24732         flag_loop_interchange based on the value of flag_tree_loop_linear.
24733
24734 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
24735             Richard Guenther  <rguenther@suse.de>
24736
24737         PR tree-optimization/47538
24738         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
24739         type instead of r1type, except for comparisons.  For right
24740         shifts and comparisons punt if there are mismatches in
24741         sizetype vs. non-sizetype types.
24742
24743 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24744
24745         * doc/sourcebuild.texi (Effective-Target Keywords): Document
24746         avx_runtime.
24747
24748 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24749
24750         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
24751         version number.
24752         * configure: Regenerate.
24753
24754 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24755
24756         * configure.ac (gcc_cv_ld_static_option): Define.
24757         (gcc_cv_ld_dynamic_option): Define.
24758         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
24759         instead.
24760         (HAVE_LD_STATIC_DYNAMIC): Update message.
24761         (LD_STATIC_OPTION): Define.
24762         (LD_DYNAMIC_OPTION): Define.
24763         * configure: Regenerate.
24764         * config.in: Regenerate.
24765         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
24766         HAVE_LD_STATIC_DYNAMIC]: Use them.
24767
24768 2011-01-31  Nick Clifton  <nickc@redhat.com>
24769
24770         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
24771         registers inside interrupt handlers if the handler is not a leaf
24772         function.
24773
24774 2011-01-31  Nick Clifton  <nickc@redhat.com>
24775
24776         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
24777         reg_renumber returning an INVALID_REGNUM.
24778
24779 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
24780
24781         PR libgcj/44341
24782         * doc/install.texi: Document host options discarded when cross
24783         configuring target libraries.
24784
24785 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
24786
24787         Reverted:
24788         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
24789         PR debug/45136
24790         PR debug/45130
24791         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
24792         debug insns.
24793         (no_real_insns_p, schedule_block, set_priorities): Drop special
24794         treatment of boundary debug insns.
24795         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
24796         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
24797         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
24798         (BOUNDARY_DEBUG_INSN_P): Likewise.
24799         (SCHEDULE_DEBUG_INSN_P): Likewise.
24800         * sched-rgn.c (init_ready_list): Drop special treatment of
24801         boundary debug insns.
24802         * final.c (rest_of_clean-state): Clear notes' BB.
24803
24804 2011-01-31  Alan Modra  <amodra@gmail.com>
24805
24806         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
24807         toc relative expressions as we do in print_operand_address.
24808
24809 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
24810
24811         * doc/extend.texi: Follow spelling conventions.
24812         * doc/invoke.texi: Fix a typo.
24813
24814 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
24815
24816         * config/hpux11.opt: New.
24817         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
24818         ia64*-*-hpux*): Use hpux11.opt.
24819
24820 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
24821
24822         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
24823         to tmake_file.
24824
24825 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
24826
24827         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
24828         support sites.
24829
24830 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
24831
24832         * doc/install.texi (Binaries): Remove outdated reference for
24833         Motorola 68HC11/68HC12 downloads.
24834
24835 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
24836
24837         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
24838         Drepper's paper.
24839
24840 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
24841
24842         PR bootstrap/47147
24843         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
24844         used by NetBSD.
24845
24846 2011-01-28  Ahmad Sharif  <asharif@google.com>
24847
24848         * value-prof.c (check_counter): Corrected error message.
24849
24850 2011-01-29  Jie Zhang  <jie@codesourcery.com>
24851
24852         * config/arm/arm.c (arm_legitimize_reload_address): New.
24853         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
24854         arm_legitimize_reload_address.
24855         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
24856
24857 2011-01-28  Ian Lance Taylor  <iant@google.com>
24858
24859         * godump.c (go_define): Ignore macros whose definitions include
24860         two adjacent operands.
24861
24862 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
24863
24864         PR target/42894
24865         * varasm.c (force_const_mem): Store copy of x in desc->constant
24866         instead of x itself.
24867         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
24868         itself into REG_EQUAL note.
24869
24870 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
24871
24872         * config/freebsd.opt (posix, rdynamic): New Driver options.
24873
24874 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24875
24876         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
24877         -Bstatic/-Bdynamic.
24878         * configure: Regenerate.
24879
24880 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
24881
24882         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
24883         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
24884
24885 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
24886
24887         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
24888         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
24889         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
24890         (s390_preferred_reload_class): Make static. Change return and
24891         'rclass' argument type to reg_class_t.
24892
24893 2011-01-27  Jan Hubicka  <jh@suse.cz>
24894
24895         PR middle-end/46949
24896         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
24897         (process_function_and_variable_attributes): Check defined weakrefs.
24898
24899 2011-01-27  Martin Jambor  <mjambor@suse.cz>
24900
24901         PR tree-optimization/47228
24902         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
24903         build_ref_for_offset.
24904
24905 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24906
24907         * config/spu/spu-elf.h (ASM_SPEC): Remove.
24908
24909 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
24910
24911         PR rtl-optimization/46856
24912         * postreload.c (reload_combine_recognize_const_pattern): Do not
24913         separate cc0 setter and user on cc0 targets.
24914
24915 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
24916
24917         PR c/43082
24918         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
24919         passed a VOID_TYPE expression, immediately emit an error and
24920         return error_mark_node.
24921
24922 2011-01-26  Jeff Law  <law@redhat.com>
24923
24924         PR rtl-optimization/47464
24925         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
24926         rather than may_trap_p as needed.
24927
24928 2011-01-26  DJ Delorie  <dj@redhat.com>
24929
24930         PR rtl-optimization/46878
24931         * combine.c (insn_a_feeds_b): Check for the implicit cc0
24932         setter/user dependency as well.
24933
24934 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
24935
24936         PR rtl-optimization/44469
24937         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
24938         after removing trivially dead basic blocks.
24939
24940 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
24941
24942         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
24943         * config/frv/frv.h (LINK_SPEC): Likewise.
24944         * config/i386/netware.h (LINK_SPEC): Likewise.
24945         * config/m68k/linux.h (ASM_SPEC): Likewise.
24946         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
24947         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
24948         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24949         * config/sparc/linux.h (ASM_SPEC): Likewise.
24950         * config/sparc/linux64.h (ASM_SPEC): Likewise.
24951         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24952
24953 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
24954
24955         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
24956         * config/frv/frv.h (ASM_SPEC): Likewise.
24957         * config/m68k/linux.h (ASM_SPEC): Likewise.
24958         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
24959         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
24960         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24961         * config/sparc/linux.h (ASM_SPEC): Likewise.
24962         * config/sparc/linux64.h (ASM_SPEC): Likewise.
24963         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24964
24965 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
24966
24967         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
24968         * config/frv/frv.h (LINK_SPEC): Likewise.
24969         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
24970
24971 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
24972
24973         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
24974         * config/frv/frv.h (ASM_SPEC): Likewise.
24975         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
24976         * config/m68k/linux.h (ASM_SPEC): Likewise.
24977         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
24978         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
24979         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
24980         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
24981         * config/sparc/linux.h (ASM_SPEC): Likewise.
24982         * config/sparc/linux64.h (ASM_SPEC): Likewise.
24983         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
24984         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
24985
24986 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
24987
24988         PR target/46997
24989         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
24990         (*mux2): Ditto.
24991         (vec_extract_evenodd_help): Ditto.
24992         (vec_extract_evenv4hi): Ditto.
24993         (vec_extract_oddv4hi): Ditto.
24994         (vec_interleave_lowv2si): Ditto.
24995         (vec_interleave_highv2si): Ditto.
24996         (vec_extract_evenv2si): Ditto.
24997         (vec_extract_oddv2si: Ditto.
24998         (vec_pack_trunc_v2si): Ditto.
24999
25000 2011-01-22  Jan Hubicka  <jh@suse.cz>
25001
25002         PR target/47237
25003         * cgraph.h (cgraph_local_info): New field can_change_signature.
25004         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
25005         signature can change.
25006         (ipcp_estimate_growth): Call sequence simplify only if calle signature
25007         can change.
25008         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
25009         (cgraph_function_versioning): We can not change signature of functions
25010         that don't allow that.
25011         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
25012         (lto_input_node): Likewise.
25013         * ipa-inline.c (compute_inline_parameters): Compute
25014         local.can_change_signature.
25015         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
25016         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
25017         functions that can not change signature.
25018         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
25019         init_cumulative_args): Do not use local calling conventions
25020         for functions that can not change signature.
25021
25022 2011-01-22  Jan Hubicka  <jh@suse.cz>
25023
25024         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
25025
25026 2011-01-26  Richard Guenther  <rguenther@suse.de>
25027
25028         PR tree-optimization/47190
25029         * cgraphunit.c (process_common_attributes): New function.
25030         (process_function_and_variable_attributes): Use it.
25031
25032 2011-01-26  Richard Guenther  <rguenther@suse.de>
25033
25034         PR lto/47423
25035         * cgraphbuild.c (record_eh_tables): Record reference to personality
25036         function.
25037
25038 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
25039
25040         PR debug/45454
25041         * sel-sched.c (moveup_expr): Don't let debug insns prevent
25042         non-debug insns from moving up.
25043
25044 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
25045
25046         PR target/40125
25047         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
25048         t-dlldir{,-x} fragment for build and add it to tmake_file.
25049         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
25050         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
25051         * config/i386/t-dlldir: New file.
25052         (SHLIB_DLLDIR): Define.
25053         * config/i386/t-dlldir-x: New file.
25054         (SHLIB_DLLDIR): Define.
25055         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
25056         (SHLIB_INSTALL): Use it.
25057
25058 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
25059
25060         PR target/47246
25061         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
25062         lower bound of the allowed Thumb-2 coprocessor load/store
25063         index range to -256. Add explaining comment.
25064
25065 2011-01-25  Ian Lance Taylor  <iant@google.com>
25066
25067         * godump.c (go_define): Improve lexing of macro expansion to only
25068         accept expressions which match Go spec.
25069
25070 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
25071
25072         PR c++/43601
25073         * tree.c (handle_dll_attribute): Handle it.
25074         * doc/extend.texi (@item dllexport): Mention it.
25075         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
25076
25077 2011-01-25  Ian Lance Taylor  <iant@google.com>
25078
25079         PR tree-optimization/26854
25080         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
25081         (decl_jump_unsafe): Move higher in file, with no other change.
25082         (bind): Set has_jump_unsafe_decl if appropriate.
25083         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
25084         (check_earlier_gotos): Likewise.
25085         (c_check_switch_jump_warnings): Likewise.
25086
25087 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
25088
25089         * doc/invoke.texi (Warning Options): Add missing hyphen.
25090         (-fprofile-dir): Minor grammatical fixes.
25091         (-fbranch-probabilities): Likewise.
25092
25093 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
25094
25095         PR debug/45136
25096         PR debug/45130
25097         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25098         debug insns.
25099         (no_real_insns_p, schedule_block, set_priorities): Drop special
25100         treatment of boundary debug insns.
25101         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25102         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
25103         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25104         (BOUNDARY_DEBUG_INSN_P): Likewise.
25105         (SCHEDULE_DEBUG_INSN_P): Likewise.
25106         * sched-rgn.c (init_ready_list): Drop special treatment of
25107         boundary debug insns.
25108         * final.c (rest_of_clean-state): Clear notes' BB.
25109
25110 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25111
25112         * Makefile.in (LAMBDA_H): Removed.
25113         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
25114         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
25115         lambda-trans.o, and tree-loop-linear.o.
25116         (lto-symtab.o): Remove dependence on LAMBDA_H.
25117         (tree-loop-linear.o): Remove rule.
25118         (lambda-mat.o): Same.
25119         (lambda-trans.o): Same.
25120         (lambda-code.o): Same.
25121         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
25122         (tree-vect-slp.o): Same.
25123         * hwint.h (gcd): Moved here.
25124         (least_common_multiple): Same.
25125         * lambda-code.c: Removed.
25126         * lambda-mat.c: Removed.
25127         * lambda-trans.c: Removed.
25128         * lambda.h: Removed.
25129         * tree-loop-linear.c: Removed.
25130         * lto-symtab.c: Do not include lambda.h.
25131         * omega.c (gcd): Removed.
25132         * passes.c (init_optimization_passes): Remove pass_linear_transform.
25133         * tree-data-ref.c (print_lambda_vector): Moved here.
25134         (lambda_vector_copy): Same.
25135         (lambda_matrix_copy): Same.
25136         (lambda_matrix_id): Same.
25137         (lambda_vector_first_nz): Same.
25138         (lambda_matrix_row_add): Same.
25139         (lambda_matrix_row_exchange): Same.
25140         (lambda_vector_mult_const): Same.
25141         (lambda_vector_negate): Same.
25142         (lambda_matrix_row_negate): Same.
25143         (lambda_vector_equal): Same.
25144         (lambda_matrix_right_hermite): Same.
25145         * tree-data-ref.h: Do not include lambda.h.
25146         (lambda_vector): Moved here.
25147         (lambda_matrix): Same.
25148         (dependence_level): Same.
25149         (lambda_transform_legal_p): Removed declaration.
25150         (lambda_collect_parameters): Same.
25151         (lambda_compute_access_matrices): Same.
25152         (lambda_vector_gcd): Same.
25153         (lambda_vector_new): Same.
25154         (lambda_vector_clear): Same.
25155         (lambda_vector_lexico_pos): Same.
25156         (lambda_vector_zerop): Same.
25157         (lambda_matrix_new): Same.
25158         * tree-flow.h (least_common_multiple): Removed declaration.
25159         * tree-parloops.c (lambda_trans_matrix): Moved here.
25160         (LTM_MATRIX): Same.
25161         (LTM_ROWSIZE): Same.
25162         (LTM_COLSIZE): Same.
25163         (LTM_DENOMINATOR): Same.
25164         (lambda_trans_matrix_new): Same.
25165         (lambda_matrix_vector_mult): Same.
25166         (lambda_transform_legal_p): Same.
25167         * tree-pass.h (pass_linear_transform): Removed declaration.
25168         * tree-ssa-loop.c (tree_linear_transform): Removed.
25169         (gate_tree_linear_transform): Removed.
25170         (pass_linear_transform): Removed.
25171         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
25172         flag_loop_interchange.
25173
25174 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
25175
25176         PR tree-optimization/47265
25177         PR tree-optimization/47443
25178         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
25179         if name still has some uses.
25180
25181 2011-01-25  Martin Jambor  <mjambor@suse.cz>
25182
25183         PR tree-optimization/47382
25184         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
25185         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
25186
25187 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
25188
25189         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
25190         sjlj_except_unwind_info.
25191
25192 2011-01-25  Richard Guenther  <rguenther@suse.de>
25193
25194         PR tree-optimization/47426
25195         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
25196         visible functions results escape.
25197
25198 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
25199
25200         PR target/45701
25201         * config/arm/arm.c (any_sibcall_uses_r3): New function.
25202         (arm_get_frame_offsets): Use it.
25203
25204 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25205             Jakub Jelinek  <jakub@redhat.com>
25206
25207         PR tree-optimization/47271
25208         * tree-if-conv.c (bb_postdominates_preds): New.
25209         (if_convertible_bb_p): Call bb_postdominates_preds.
25210         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
25211         (predicate_scalar_phi): Call bb_postdominates_preds.
25212
25213 2011-01-25  Nick Clifton  <nickc@redhat.com>
25214
25215         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
25216         * config/rx/rx.c (rx_function_value): Likewise.
25217         (rx_promote_function_mode): Likewise.
25218         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
25219         in order to make it legitimate.
25220         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
25221         make sure that the first operand is the same as the result register.
25222         (addsi3_unspec): Delete.
25223         (subdi3): Do not accept immediate operands.
25224         (subdi3_internal): Likewise.
25225
25226 2011-01-25  Jeff Law  <law@redhat.com>
25227
25228         PR rtl-optimization/37273
25229         * ira-costs.c (scan_one_insn): Detect constants living in memory and
25230         handle them like argument loads from stack slots.  Do not double
25231         count memory for memory constants and argument loads from stack slots.
25232
25233 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
25234
25235         PR tree-optimization/47427
25236         PR tree-optimization/47428
25237         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
25238         coalesce if the new root var would be TREE_READONLY.
25239
25240 2011-01-25  Richard Guenther  <rguenther@suse.de>
25241
25242         PR middle-end/47414
25243         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
25244         correct type for TBAA.
25245
25246 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25247
25248         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
25249         (close_phi_written_to_memory): Call for_each_index with
25250         dr_indices_valid_in_loop.
25251
25252 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25253
25254         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
25255         when it is initialized.
25256
25257 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25258
25259         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
25260         call to graphite_find_data_references_in_stmt.
25261         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
25262         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
25263         call to graphite_find_data_references_in_stmt.
25264         (analyze_drs_in_stmts): Same.
25265         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
25266         in which the scalar analysis of indices is performed.
25267         (create_data_ref): Same.  Update call to dr_analyze_indices.
25268         (find_data_references_in_stmt): Update call to create_data_ref.
25269         (graphite_find_data_references_in_stmt): Same.
25270         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
25271         declaration.
25272         (create_data_ref): Same.
25273         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
25274         call to create_data_ref.
25275
25276 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25277
25278         * graphite-sese-to-poly.c (build_poly_scop): Move
25279         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
25280
25281 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25282
25283         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
25284         VAR_DECL, PARM_DECL, and RESULT_DECL.
25285
25286 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25287
25288         * graphite-dependences.c (reduction_dr_1): Allow several reductions
25289         in a reduction PBB.
25290         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
25291         that have already been marked as PBB_IS_REDUCTION.
25292
25293 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25294
25295         * graphite-scop-detection.c (same_close_phi_node): New.
25296         (remove_duplicate_close_phi): New.
25297         (make_close_phi_nodes_unique): New.
25298         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
25299
25300 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25301
25302         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
25303         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
25304         of both data references to be the same.
25305
25306 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25307
25308         * graphite-dependences.c (build_lexicographical_constraint): Remove
25309         the gdim parameter.
25310         (build_lexicographical_constraint): Adjust call to
25311         ppl_powerset_is_empty.
25312         (dependence_polyhedron): Same.
25313         (graphite_legal_transform_dr): Same.
25314         (graphite_carried_dependence_level_k): Same.
25315         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
25316         parameter.
25317         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
25318
25319 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25320
25321         * graphite-sese-to-poly.c
25322         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
25323         (close_phi_written_to_memory): New.
25324         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
25325         and unshare_expr.
25326
25327 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25328
25329         * doc/install.texi: Update the expected version number of PPL to 0.11.
25330         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
25331         #if PPL_VERSION_MINOR < 11.
25332
25333 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25334
25335         * graphite-dependences.c: Include graphite-cloog-util.h.
25336         (new_poly_ddr): Inlined into dependence_polyhedron.
25337         (free_poly_ddr): Moved close by new_poly_ddr.
25338         (dependence_polyhedron_1): Renamed dependence_polyhedron.
25339         Early return NULL when ppl_powerset_is_empty returns true.
25340         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
25341         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
25342         (graphite_legal_transform_dr): Call new_poly_ddr.
25343         (graphite_carried_dependence_level_k): Same.
25344         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
25345         (dot_transformed_deps_stmt_1): Removed.
25346         (dot_deps_stmt_1): Call dot_deps_stmt_2.
25347         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
25348         (dot_deps_1): Call dot_deps_2.
25349         * Makefile.in (graphite-dependences.o): Add missing dependence on
25350         graphite-cloog-util.h.
25351
25352 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25353
25354         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
25355         (build_lexicographical_constraint): Same.
25356         (dependence_polyhedron_1): Same.
25357         (graphite_legal_transform_dr): Same.
25358         (graphite_carried_dependence_level_k): Same.
25359         * graphite-ppl.c (ppl_powerset_is_empty): New.
25360         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
25361         * tree-data-ref.c (dump_data_reference): Print the basic block index.
25362
25363 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25364
25365         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
25366         the "a followed by b" relation and document it.
25367
25368 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25369
25370         * graphite-dependences.c (build_lexicographical_constraint): Stop the
25371         iteration when the bag of constraints is empty.
25372
25373 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25374
25375         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
25376
25377 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25378
25379         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
25380         nest and two loop depths as parameters.
25381         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
25382         lst_perfect_nestify.
25383
25384 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25385
25386         * graphite-dependences.c (print_pddr): Call
25387         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
25388
25389 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
25390
25391         * graphite-ppl.c (debug_gmp_value): New.
25392         * graphite-ppl.h (debug_gmp_value): Declared.
25393
25394 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
25395
25396         * doc/install.texi: Document availability of cloog-0.16.
25397
25398 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
25399
25400         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
25401         invalid postdominance info.
25402
25403 2011-01-24  Jan Hubicka  <jh@suse.cz>
25404
25405         PR c/21659
25406         * doc/extend.texi (weak pragma): Drop claim that it must
25407         appear before definition.
25408         * varasm.c (merge_weak, declare_weak): Only sanity check
25409         that DECL is not output at a time it is declared weak.
25410
25411 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
25412
25413         * machmode.def: Fixed comments.
25414
25415 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
25416
25417         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
25418
25419 2011-01-24  Paul Koning  <ni1d@arrl.net>
25420
25421         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
25422         WORDS_BIG_ENDIAN.
25423
25424 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
25425
25426         PR target/46519
25427         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
25428         (block_info): Add scanned and prev.
25429         (move_or_delete_vzeroupper_2): Return if the basic block
25430         has been scanned and the upper 128bit state is unchanged
25431         from the last scan.
25432         (move_or_delete_vzeroupper_1): Return true if the exit
25433         state is changed.
25434         (move_or_delete_vzeroupper): Visit basic blocks using the
25435         work-list based algorithm based on vt_find_locations in
25436         var-tracking.c.
25437
25438         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
25439
25440 2011-01-24  Nick Clifton  <nickc@redhat.com>
25441
25442         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
25443         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
25444         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
25445         then define __v850e1__.
25446         * doc/invoke.texi: Document -mv850es.
25447
25448 2011-01-24  Richard Henderson  <rth@redhat.com>
25449
25450         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
25451         compound unordered comparisons.
25452         * config/rx/rx.c (rx_split_fp_compare): Remove.
25453         * config/rx/rx-protos.h: Update.
25454         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
25455         (cbranchsf4): Don't call rx_split_fp_compare.
25456         (*cbranchsf4): Use rx_split_cbranch.
25457         (*cmpsf): Don't accept "i" constraint.
25458         (*conditional_branch): Only valid after reload.
25459         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
25460
25461 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
25462
25463         PR target/47385
25464         * config/rs6000/altivec.md (vector constant splitters): Add
25465         support for creating vector single precision constants if -mvsx is
25466         used and we would create the constant using Altivec primitives.
25467
25468 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
25469             Richard Sandiford  <rdsandiford@googlemail.com>
25470
25471         PR rtl-optimization/47166
25472         * reload1.c (emit_reload_insns): Disable the spill_reg_store
25473         mechanism for PRE_MODIFY and POST_MODIFY.
25474         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
25475         reloadreg.
25476
25477 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
25478
25479         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
25480
25481 2011-01-22  Jan Hubicka  <jh@suse.cz>
25482
25483         PR lto/47333
25484         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
25485
25486 2011-01-22  Jan Hubicka  <jh@suse.cz>
25487
25488         PR tree-optimization/43884
25489         PR lto/44334
25490         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
25491         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
25492
25493 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
25494
25495         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
25496         * config/s390/s390.c (s390_register_move_cost,
25497         s390_memory_move_cost): New.
25498         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
25499
25500 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25501
25502         PR middle-end/47401
25503         * except.c (sjlj_assign_call_site_values): Move setting the
25504         crtl->uses_eh_lsda flag to ...
25505         (sjlj_mark_call_sites): ... here.
25506         (sjlj_emit_function_enter): Support NULL dispatch label.
25507         (sjlj_build_landing_pads): In a function with no landing pads
25508         that still has must-not-throw regions, generate code to register
25509         a personality function with empty LSDA.
25510
25511 2011-01-21  Richard Henderson  <rth@redhat.com>
25512
25513         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
25514
25515         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
25516
25517         * compare-elim.c: New file.
25518         * Makefile.in (OBJS-common): Add it.
25519         (compare-elim.o): New.
25520         * common.opt (fcompare-elim): New.
25521         * opts.c (default_options_table): Add OPT_fcompare_elim.
25522         * tree-pass.h (pass_compare_elim_after_reload): New.
25523         * passes.c (init_optimization_passes): Add it.
25524         * recog.h: Protect against re-inclusion.
25525         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
25526         * doc/invoke.texi (-fcompare-elim): Document it.
25527         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
25528         * doc/tm.texi: Rebuild.
25529
25530 2011-01-22  Nick Clifton  <nickc@redhat.com>
25531
25532         * config/rx/rx.md (cstoresf4): Pass comparison operator to
25533         rx_split_fp_compare.
25534
25535 2011-01-22  Nick Clifton  <nickc@redhat.com>
25536
25537         * config/rx/rx.md (UNSPEC_CONST): New.
25538         (deallocate_and_return): Wrap the amount popped off the stack in
25539         an UNSPEC_CONST in order to stop it being rejected by
25540         -mmax-constant-size.
25541         (pop_and_return): Add a "(return)" rtx.
25542         (call): Drop the immediate operand.
25543         (call_internal): Likewise.
25544         (call_value): Likewise.
25545         (call_value_internal): Likewise.
25546         (sibcall_internal): Likewise.
25547         (sibcall_value_internal): Likewise.
25548         (sibcall): Likewise.  Generate an explicit call using
25549         sibcall_internal.
25550         (sibcall_value): Likewise.
25551         (mov<>): FAIL if a constant operand is not legitimate.
25552         (addsi3_unpsec): New pattern.
25553
25554         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
25555         (ok_for_max_constant): New function.
25556         (gen_safe_add): New function.
25557         (rx_expand_prologue): Use gen_safe_add.
25558         (rx_expand_epilogue): Likewise.
25559         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
25560         UNSPEC CONSTs.
25561
25562 2011-01-21  Jeff Law  <law@redhat.com>
25563
25564         PR tree-optimization/47053
25565         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
25566         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
25567         statements are deleted.
25568         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
25569         is nonempty, then purge dead edges and cleanup the CFG.
25570
25571 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
25572
25573         PR debug/47402
25574         Temporarily revert:
25575         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
25576         PR debug/47106
25577         * tree-dfa.c (create_var_ann): Mark variable as used.
25578
25579 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
25580
25581         PR middle-end/45566
25582         * except.c (convert_to_eh_region_ranges): Emit queued no-region
25583         notes from other section in hot/cold partitioning even if
25584         last_action is -3.  Increment call_site_base.
25585
25586         PR rtl-optimization/47366
25587         * fwprop.c (forward_propagate_into): Return bool.  If
25588         any changes are made, -fnon-call-exceptions is used and
25589         REG_EH_REGION note is present, call purge_dead_edges
25590         and return true if it purged anything.
25591         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
25592         any EH edges were purged.
25593
25594 2011-01-21  Jeff Law  <law@redhat.com>
25595
25596         PR rtl-optimization/41619
25597         * caller-save.c (setup_save_areas): Break out code to determine
25598         which hard regs are live across calls by examining the reload chains
25599         so that it is always used.
25600         Eliminate code which checked REG_N_CALLS_CROSSED.
25601
25602 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
25603
25604         PR tree-optimization/47355
25605         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
25606         NOP has non-debug uses beyond PHIs in new_bb.
25607
25608 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
25609
25610         PR debug/47106
25611         * cfgexpand.c (account_used_vars_for_block): Only account vars
25612         that are annotated as used.
25613         (estimated_stack_frame_size): Don't set TREE_USED.
25614         * tree-dfa.c (create_var_ann): Mark variable as used.
25615
25616 2011-01-21  Richard Guenther  <rguenther@suse.de>
25617
25618         PR middle-end/47395
25619         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
25620
25621 2011-01-21  Richard Guenther  <rguenther@suse.de>
25622
25623         PR tree-optimization/47365
25624         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
25625         (vn_reference_lookup_pieces): Adjust.
25626         (vn_reference_lookup): Likewise.
25627         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
25628         (vn_reference_lookup_3): Only look through kills if in
25629         VN_WALKREWRITE mode.
25630         (vn_reference_lookup_pieces): Adjust.
25631         (vn_reference_lookup): Likewise.
25632         (visit_reference_op_load): Likewise.
25633         (visit_reference_op_store): Likewise.
25634         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
25635         (compute_avail): Likewise.
25636         (eliminate): Likewise.
25637
25638 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
25639
25640         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
25641         DECL_IGNORED_P non-reg vars if they are used.
25642
25643         PR tree-optimization/47391
25644         * varpool.c (const_value_known_p): Return false if
25645         decl is volatile.
25646
25647 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
25648
25649         PR bootstrap/47215
25650         * config/i386/i386.c (ix86_local_alignment): Handle
25651         case for va_list_type_node is nil.
25652         (ix86_canonical_va_list_type): Likewise.
25653
25654 2011-01-21  Alan Modra  <amodra@gmail.com>
25655
25656         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
25657         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
25658
25659 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25660
25661         * config/arm/arm.md (define_attr type): Rename f_load
25662         and f_store to f_fpa_load and f_fpa_store. Update.
25663         (write_conflict): Deal with rename fallout.
25664         (*push_fp_multi): Likewise.
25665         * config/arm/fpa.md (f_load): Use f_fpa_load.
25666         (f_store): Use f_fpa_store.
25667         (*movsf_fpa): Likewise.
25668         (*movdf_fpa): Likewise.
25669         (*movxf_fpa): Likewise.
25670         (*thumb2_movsf_fpa): Likewise.
25671         (*thumb2_movdf_fpa): Likewise.
25672         (*thumb2_movxf_fpa): Likewise.
25673         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
25674         f_loadd and f_stored.
25675         (*thumb2_movdi_vfp): Likewise.
25676         (*thumb2_movsf_vfp): Fix attribute to f_loads.
25677         (*thumb2_movsi_vfp): Likewise.
25678         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
25679         Use f_loads instead of f_load.
25680         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
25681
25682 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
25683
25684         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25685         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
25686         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25687         (xtensa_mode_dependent_address_p): New function.
25688         (constantpool_address_p): Make static. Change return type to bool.
25689         Change argument type to const_rtx. Use CONST_INT_P predicate.
25690
25691 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
25692
25693         PR debug/46583
25694         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
25695
25696 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
25697
25698         PR debug/47283
25699         * cfgexpand.c (expand_debug_expr): Instead of generating
25700         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
25701         etc. handling.
25702
25703 2011-01-20  Richard Guenther  <rguenther@suse.de>
25704
25705         PR middle-end/47370
25706         * tree-inline.c (remap_gimple_op_r): Recurse manually for
25707         the pointer operand of MEM_REFs.
25708
25709 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
25710
25711         PR tree-optimization/46130
25712         * ipa-split.c (consider_split): If return_bb contains non-virtual
25713         PHIs other than for retval or if split_function would not adjust it,
25714         refuse to split.
25715
25716 2011-01-20  Richard Guenther  <rguenther@suse.de>
25717
25718         PR tree-optimization/47167
25719         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
25720         Revert previous change, only avoid enumeral type changes.
25721
25722 2011-01-19  Mike Stump  <mikestump@comcast.net>
25723
25724         * doc/tm.texi.in (BRANCH_COST): Englishify.
25725         * doc/tm.texi (BRANCH_COST): Likewise.
25726
25727 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
25728
25729         PR c++/47291
25730         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
25731         (gen_scheduled_generic_parms_dies): New functions.
25732         (gen_struct_or_union_type_die): Schedule template parameters DIEs
25733         generation for the end of CU compilation.
25734         (dwarf2out_finish): Generate template parameters DIEs here.
25735
25736 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
25737
25738         PR debug/46240
25739         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
25740         debug bind stmt on merge edges.
25741
25742 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
25743
25744         PR debug/47079
25745         PR debug/46724
25746         * function.c (instantiate_expr): Instantiate incoming rtl of
25747         implicit arguments, and recurse on VALUE_EXPRs.
25748         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
25749         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
25750
25751 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
25752
25753         * c-parser.c (c_parser_for_statement): Initialize
25754         collection_expression.
25755
25756 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
25757
25758         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
25759
25760 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
25761
25762         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
25763         (LINK_SHLIB_SPEC): Don't use %(link_path).
25764         (SUBTARGET_EXTRA_SPECS): Remove link_path.
25765
25766 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
25767
25768         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
25769         (NO_SHARED_LIB_SUPPORT): Remove.
25770         (LINK_SHLIB_SPEC): Remove one conditional definition.
25771
25772 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
25773
25774         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
25775         %{call_shared}.
25776         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
25777         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
25778         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
25779         %{call_shared} and conditionals on these options not being passed.
25780         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
25781         %{call_shared}.
25782
25783 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
25784
25785         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
25786         simplify.
25787
25788         * ipa-split.c: Spelling fixes.
25789
25790 2011-01-19  Richard Henderson  <rth@redhat.com>
25791
25792         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
25793         (*mulsi3): Likewise.
25794
25795         * longlong.h [__mn10300__] (count_leading_zeros): New.
25796         [__mn10300__] (umul_ppmm, smul_ppmm): New.
25797         [__mn10300__] (add_ssaaaa, subddmmss): New.
25798         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
25799         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
25800
25801 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25802
25803         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
25804
25805 2011-01-19  Richard Henderson  <rth@redhat.com>
25806
25807         * config/mn10300/mn10300.md (addsi3_flags): New.
25808         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
25809         (subsi3_flags, subc_internal, subdi3): New.
25810         (subdi3_internal, *subdi3_degenerate): New.
25811         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
25812
25813         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
25814         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
25815         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
25816         * config/mn10300/mn10300-protos.h: Update.
25817         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
25818         (return_ret): Likewise.  Rename from return_internal_regs.
25819         (return_internal): Remove.
25820
25821         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
25822         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
25823         (mn10300_legitimate_constant_p): Likewise.
25824         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
25825         (mn10300_frame_size): New.
25826         (mn10300_expand_prologue): Use it.
25827         (mn10300_expand_epilogue): Likewise.
25828         (mn10300_initial_offset): Likewise.
25829         * config/mn10300/mn10300-protos.h: Update.
25830         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
25831         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
25832         (prologue, epilogue, return_internal): Tidy output code.
25833         (mn10300_store_multiple_operation, return): Likewise.
25834         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
25835         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
25836         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
25837         (load_pic, am33_load_pic): New.
25838         (mn10300_load_pic0, mn10300_load_pic1): New.
25839
25840         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
25841         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
25842         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
25843         (cc_flags_for_mode, cc_flags_for_code): New.
25844         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
25845         overflow flag is not valid.  Validate that the flags we need
25846         for the comparison are valid.
25847         (mn10300_output_cmp): Remove.
25848         (mn10300_output_add): New.
25849         (mn10300_select_cc_mode): Use cc_flags_for_code.
25850         (mn10300_split_cbranch): New.
25851         (mn10300_match_ccmode): New.
25852         (mn10300_split_and_operand_count): New.
25853         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
25854         to the function.
25855         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
25856         (addsi3): ... here.  Use mn10300_output_add.
25857         (*addsi3_flags): New.
25858         (*am33_subsi3, *mn10300_subsi3): Merge...
25859         (subsi3): ... here.  Use attribute isa.
25860         (*subsi3_flags): New.
25861         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
25862         when possible.
25863         (*am33_andsi3, *mn10300_andsi3): Merge...
25864         (andsi3): ... here.
25865         (*andsi3_flags): New.
25866         (andsi3 splitters): New.
25867         (*am33_iorsi3, *mn10300_iorsi3): Merge...
25868         (iorsi3): ... here.
25869         (*iorsi3_flags): New.
25870         (*am33_xorsi3, *mn10300_xorsi3): Merge...
25871         (xorsi3): ... here.
25872         (*xorsi3_flags): New.
25873         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
25874         (one_cmplsi2): ... here.
25875         (*one_cmplsi2_flags): New.
25876         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
25877         instead of "dax" in constraints.  Use mn10300_split_cbranch.
25878         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
25879         use matching constraints to eliminate a self-comparison.
25880         (*integer_conditional_branch): Rename from integer_conditional_branch.
25881         Use int_mode_flags to match CC_REG.
25882         (*cbranchsi4_btst, *btstsi): New.
25883         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
25884         mn10300_split_cbranch.
25885         (*am33_cmpsf): Rename from am33_cmpsf.
25886         (*float_conditional_branch): Rename from float_conditional_branch.
25887         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
25888         (zero_extendqisi2): ... here.
25889         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
25890         (zero_extendhisi2): ... here.
25891         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
25892         (extendqisi2): ... here.
25893         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
25894         (extendhisi2): ... here.
25895         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
25896         (ashlsi3): ... here.
25897         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
25898         (lshrsi3): ... here.
25899         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
25900         (ashrsi3): ... here.
25901         (consecutive add peephole): Remove.
25902         * config/mn10300/predicates.md (label_ref_operand): New.
25903         (int_mode_flags): New.
25904         (CCZN_comparison_operator): New.
25905
25906         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
25907         (throughput_42_latency_43): New reservation.
25908         (mulsidi3, umulsidi3): New expanders.
25909         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
25910         the MDR register to allocation; separately allocate the low and
25911         high parts of the DImode result.
25912         (umulsidi3_internal): Similarly.
25913         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
25914         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
25915         (udivsi3, umodsi3): Remove.
25916         (udivmodsi4, divmodsi4): New expanders.
25917         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
25918         (*divmodsi4): Simiarly.
25919         (ext_internal): New.
25920
25921         * config/mn10300/constraints.md ("z"): New constraint.
25922         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
25923         (FIXED_REGISTERS): Don't fix MDR.
25924         (CALL_USED_REGSITERS): Reformat nicely.
25925         (REG_ALLOC_ORDER): Add MDR.
25926         (enum regclass): Add MDR_REGS.
25927         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
25928         (IRA_COVER_CLASSES): Add MDR_REGS.
25929         (REGNO_REG_CLASS): Handle MDR_REG.
25930         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
25931         (mn10300_register_move_cost): Likewise.
25932         * config/mn10300/mn10300.md (MDR_REG): New.
25933         (*movsi_internal): Handle moves to/from MDR_REGS.
25934
25935         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
25936         POST_MODIFY.
25937         (mn10300_secondary_reload): Tidy combination reload classes.
25938         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
25939         addresses for AM33.  Allow symbolic offsets for reg+imm.
25940         (mn10300_regno_in_class_p): New.
25941         (mn10300_legitimize_reload_address): New.
25942         * config/mn10300/mn10300.h (enum reg_class): Remove
25943         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
25944         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
25945         SP_OR_GENERAL_REGS.
25946         (REG_CLASS_NAMES): Update to match.
25947         (REG_CLASS_CONTENTS): Likewise.
25948         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
25949         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
25950         (REGNO_IN_RANGE_P): Remove.
25951         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
25952         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
25953         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
25954         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
25955         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
25956         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
25957         (REGNO_GENERAL_P): New.
25958         (HAVE_POST_MODIFY_DISP): New.
25959         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
25960         (LEGITIMIZE_RELOAD_ADDRESS): New.
25961         * config/mn10300/mn10300-protos.h: Update.
25962
25963         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
25964         DATA_REGS for AM33 stack-pointer destination.
25965         (mn10300_preferred_output_reload_class): Likewise.
25966         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
25967         into a form appropriate for ...
25968         (TARGET_SECONDARY_RELOAD): New.
25969         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
25970         * config/mn10300/mn10300-protos.h: Update.
25971         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
25972         reload_insi; use the "A" constraint for the scratch; handle AM33
25973         moves of sp to non-address registers.
25974
25975         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
25976         (*movqi_internal): ... here.
25977         (*am33_movhi, *mn10300_movhi): Merge into...
25978         (*movhi_internal): ... here.
25979         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
25980         as the source/destination of moves from/to SP.
25981         (movsf): Only allow for AM33-2.
25982         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
25983         any integer constant constraint.  Only allow for AM33-2.  Tidy
25984         all of the alternative outputs.
25985         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
25986         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
25987         for MN103.
25988         (udivsi3, umodsi3): New patterns for MN103 only.
25989
25990 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
25991
25992         * doc/tm.texi.in: Spell out that a lack of register class unions
25993         can lead to ICEs.
25994         * doc/tm.texi: Regenerate.
25995
25996 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
25997
25998         PR rtl-optimization/47337
25999         * dce.c (check_argument_store): New function.
26000         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
26001
26002         PR tree-optimization/47290
26003         * tree-eh.c (infinite_empty_loop_p): New function.
26004         (cleanup_empty_eh): Use it.
26005
26006 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
26007
26008         PR target/46997
26009         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
26010         (a64_expand_widen_sum): Ditto.
26011         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
26012         (vec_extract_evenodd_help): Ditto.
26013         (vec_extract_evenv4hi): Ditto.
26014         (vec_extract_oddv4hi): Ditto.
26015         (vec_extract_evenv2si): Ditto.
26016         (vec_extract_oddv2si): Ditto.
26017         (vec_extract_evenv2sf): Ditto.
26018         (vec_extract_oddv2sf): Ditto.
26019         (vec_pack_trunc_v4hi: Ditto.
26020         (vec_pack_trunc_v2si): Ditto.
26021         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
26022         (vec_interleave_highv8qi): Ditto.
26023         (mix1_r): Ditto.
26024         (vec_extract_oddv8qi): Ditto.
26025         (vec_interleave_lowv4hi): Ditto.
26026         (vec_interleave_highv4hi): Ditto.
26027         (vec_interleave_lowv2si): Ditto.
26028         (vec_interleave_highv2si): Ditto.
26029
26030 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26031
26032         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
26033         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
26034         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
26035         (pa_c_mode_for_suffix): New.
26036         (TARGET_EXPAND_BUILTIN): Define.
26037         (TARGET_C_MODE_FOR_SUFFIX): Define.
26038         (pa_builtins): Define.
26039         (pa_init_builtins): Register __float128 type and init new support
26040         builtins.
26041         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
26042         * config/pa/quadlib.c (_U_Qfcopysign): New.
26043
26044 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
26045
26046         PR middle-end/46894
26047         * explow.c (allocate_dynamic_stack_space): Do not assume more than
26048         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
26049         are defined.
26050
26051 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26052
26053         PR tree-optimization/47179
26054         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
26055         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
26056
26057 2011-01-18  Richard Guenther  <rguenther@suse.de>
26058
26059         PR rtl-optimization/47216
26060         * emit-rtl.c: Include tree-flow.h.
26061         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
26062         of replicating it with different semantics.
26063         * Makefile.in (emit-rtl.o): Adjust.
26064
26065 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26066
26067         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
26068         (cortex_a9_dp): Handle neon types correctly.
26069
26070 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
26071
26072         PR rtl-optimization/47299
26073         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
26074         subtarget.  Use normal multiplication if both operands are constants.
26075         * expmed.c (expand_widening_mult): Don't try to optimize constant
26076         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
26077         before using it.
26078
26079 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26080
26081         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
26082         spacing after 'e.g.', typos, comma, hyphenation.
26083
26084 2011-01-17  Richard Henderson  <rth@redhat.com>
26085
26086         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
26087         (rx_restricted_mem_operand): New.
26088         (rx_shift_operand): Use register_operand.
26089         (rx_source_operand, rx_compare_operand): Likewise.
26090         * config/rx/rx.md (addsi3_flags): New expander.
26091         (adddi3): Rewrite as expander.
26092         (adc_internal, *adc_flags, adddi3_internal): New patterns.
26093         (subsi3_flags): New expander.
26094         (subdi3): Rewrite as expander.
26095         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
26096
26097         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
26098         (rx_init_builtins): Remove sat builtin.
26099         (rx_expand_builtin): Likewise.
26100         * config/rx/rx.md (ssaddsi3): New.
26101         (*sat): Rename from sat.  Represent the CC_REG input.
26102
26103         * config/rx/predicates.md (rshift_operator): New.
26104         * config/rx/rx.c (rx_expand_insv): Remove.
26105         * config/rx/rx-protos.h: Update.
26106         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
26107         operand to the canonical position.
26108         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
26109         (*bitclr, *bitclr_in_memory): Similarly.
26110         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
26111         (insv): Retain the zero_extract in the expansion.
26112
26113         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
26114         (bswaphi2, bitinvert, revw): Likewise.
26115
26116         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
26117         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
26118         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
26119         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
26120         (bitset, bitset_in_memory): Likewise.
26121         (bitinvert, bitinvert_in_memory): Likewise.
26122         (bitclr, bitclr_in_memory): Likewise.
26123         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
26124         (rx_strend, rx_cmpstrn): Likewise.
26125         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
26126         (bitop peep2 patterns): Remove.
26127
26128         * config/rx/rx.c (rx_match_ccmode): New.
26129         * config/rx/rx-protos.h: Update.
26130         * config/rx/rx.md (abssi2): Clobber, don't set flags.
26131         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
26132         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
26133         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
26134         (fix_truncsfsi2, floatsisf2): Likewise.
26135         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
26136         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
26137         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
26138         (*subsi3_flags, *xorsi3_flags): New.
26139
26140         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
26141
26142         * config/rx/rx.c (rx_print_operand): Remove workaround for
26143         unsplit comparison operations.
26144
26145         * config/rx/rx.md (movsicc): Split after reload.
26146         (*movsicc): Merge *movsieq and *movsine via match_operator.
26147         (*stcc): New pattern.
26148
26149         * config/rx/rx.c (rx_float_compare_mode): Remove.
26150         * config/rx/rx.h (rx_float_compare_mode): Remove.
26151         * config/rx/rx.md (cstoresi4): Split after reload.
26152         (*sccc): New pattern.
26153
26154         * config/rx/predicates.md (label_ref_operand): New.
26155         (rx_z_comparison_operator): New.
26156         (rx_zs_comparison_operator): New.
26157         (rx_fp_comparison_operator): New.
26158         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
26159         Validate that the flags are set properly for the comparison.
26160         (rx_gen_cond_branch_template): Remove.
26161         (rx_cc_modes_compatible): Remove.
26162         (mode_from_flags): New.
26163         (flags_from_code): Rename from flags_needed_for_conditional.
26164         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
26165         (rx_select_cc_mode): Likewise.
26166         (rx_split_fp_compare): New.
26167         (rx_split_cbranch): New.
26168         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
26169         (*cbranchsi4): Use match_operator and rx_split_cbranch.
26170         (*cbranchsf4): Similarly.
26171         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
26172         match_operator and rx_split_cbranch.
26173         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
26174         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
26175         (*cmpsi): Rename from cmpsi.
26176         (*tstsi): Rename from tstsi.
26177         (*cmpsf): Rename from cmpsf; use CC_Fmode.
26178         (*conditional_branch): Rename from conditional_branch.
26179         (*reveresed_conditional_branch): Remove.
26180         (b<code>): Remove expander.
26181         * config/rx/rx-protos.h: Update.
26182
26183         * config/rx/rx.c (rx_compare_redundant): Remove.
26184         * config/rx/rx.md (cmpsi): Don't use it.
26185         * config/rx/rx-protos.h: Update.
26186
26187         * config/rx/rx-modes.def (CC_F): New mode.
26188         * config/rx/rx.c (rx_select_cc_mode): New.
26189         * config/rx/rx.h (SELECT_CC_MODE): Use it.
26190         * config/rx/rx-protos.h: Update.
26191
26192 2011-01-17  Richard Henderson  <rth@redhat.com>
26193
26194         * except.c (dump_eh_tree): Fix stray ; after for statement.
26195
26196 2011-01-17  Richard Guenther  <rguenther@suse.de>
26197
26198         PR tree-optimization/47313
26199         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
26200         handling before copying the body.  Properly deal with
26201         by-reference result in SSA form.
26202
26203 2011-01-17  Ian Lance Taylor  <iant@google.com>
26204
26205         PR target/47219
26206         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
26207         (struct_value_alias_set): Don't define.
26208         (sparc_option_override): Don't set sparc_sr_alias_set and
26209         struct_value_alias_set.
26210         (save_or_restore_regs): Use gen_frame_mem rather than calling
26211         set_mem_alias_set.
26212         (sparc_struct_value_rtx): Likewise.
26213
26214 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
26215
26216         PR target/47318
26217         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
26218         (_mm_maskstore_pd): Likewise.
26219         (_mm_maskload_ps): Likewise.
26220         (_mm_maskstore_ps): Likewise.
26221         (_mm256_maskload_pd): Change mask to __m256i.
26222         (_mm256_maskstore_pd): Likewise.
26223         (_mm256_maskload_ps): Likewise.
26224         (_mm256_maskstore_ps): Likewise.
26225
26226         * config/i386/i386-builtin-types.def: Updated.
26227         (ix86_expand_special_args_builtin): Likewise.
26228
26229         * config/i386/i386.c (bdesc_special_args): Update
26230         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
26231         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
26232         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
26233         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
26234
26235         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
26236         Use <avxpermvecmode> on mask register.
26237         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
26238
26239 2011-01-17  Olivier Hainque  <hainque@adacore.com>
26240             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26241             Eric Botcazou  <ebotcazou@adacore.com>
26242
26243         PR target/46655
26244         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
26245         if <= USHRT_MAX in 32-bit mode.
26246
26247 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26248
26249         * doc/install.texi (Configuration, Specific): Wrap long
26250         lines in examples.  Allow line wrapping in long options
26251         and URLs where beneficial for PDF output.
26252
26253 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
26254
26255         * config/mips/mips.c (mips_classify_symbol): Don't return
26256         SYMBOL_PC_RELATIVE for nonlocal labels.
26257
26258 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
26259
26260         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
26261
26262 2011-01-15  Jan Hubicka  <jh@suse.cz>
26263
26264         PR tree-optimization/47276
26265         * ipa.c (function_and_variable_visibility): Do not try to mark alias
26266         declarations as needed.
26267
26268 2011-01-15  Martin Jambor  <mjambor@suse.cz>
26269
26270         * common.opt (fdevirtualize): New flag.
26271         * doc/invoke.texi (Option Summary): Document it.
26272         * opts.c (default_options_table): Add devirtualize flag.
26273         * ipa-prop.c (detect_type_change): Return immediately if
26274         devirtualize flag is not set.
26275         (detect_type_change_ssa): Likewise.
26276         (compute_known_type_jump_func): Likewise.
26277         (ipa_analyze_virtual_call_uses): Likewise.
26278
26279 2011-01-14  Martin Jambor  <mjambor@suse.cz>
26280
26281         PR tree-optimization/45934
26282         PR tree-optimization/46302
26283         * ipa-prop.c (type_change_info): New type.
26284         (stmt_may_be_vtbl_ptr_store): New function.
26285         (check_stmt_for_type_change): Likewise.
26286         (detect_type_change): Likewise.
26287         (detect_type_change_ssa): Likewise.
26288         (compute_complex_assign_jump_func): Check for dynamic type change.
26289         (compute_complex_ancestor_jump_func): Likewise.
26290         (compute_known_type_jump_func): Likewise.
26291         (compute_scalar_jump_functions): Likewise.
26292         (ipa_analyze_virtual_call_uses): Likewise.
26293         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
26294
26295 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26296
26297         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
26298         * config/i386/i386.opt (msse5): New Alias.
26299
26300 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26301
26302         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
26303         * config/sparc/linux64.h (CC1_SPEC): Likewise.
26304         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
26305         * config/sparc/sparc.h (CC1_SPEC): Likewise.
26306
26307 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26308
26309         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
26310         -mcpu options.
26311         * config/sparc/linux64.h (CC1_SPEC): Likewise.
26312         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
26313         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
26314         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
26315         Likewise.
26316         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
26317
26318 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26319
26320         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
26321
26322 2011-01-14  Mike Stump  <mikestump@comcast.net>
26323
26324         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
26325         * config/fr30/fr30.md: Likweise
26326         (movsi_push): Likewise.
26327         (movsi_pop): Likewise.
26328         (enter_func): Likewise.
26329         * config/moxie/moxie.md (movsi_push): Likewise.
26330         (movsi_pop): Likewise.
26331
26332 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26333
26334         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
26335         %{no_archive} %{exact_version}.
26336         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
26337         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
26338         %{no_archive} %{exact_version}.
26339         * config/mips/openbsd.h (LINK_SPEC): Likewise.
26340         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
26341         * config/mips/vxworks.h: Likewise.
26342
26343 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26344
26345         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
26346
26347 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26348
26349         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
26350         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
26351
26352 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26353
26354         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
26355         -nodefaultlib.
26356
26357 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26358
26359         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
26360         for mcpu not cpu.
26361         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
26362         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
26363         not cpu.
26364         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
26365         Don't handle -shlib.
26366
26367 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26368
26369         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
26370         (CC1_SPEC): Don't handle -profile.
26371
26372 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26373
26374         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
26375         * config/mips/mips.h (CC1_SPEC): Likewise.
26376
26377 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26378
26379         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
26380         * config/mips/mips.h (CC1_SPEC): Likewise.
26381
26382 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26383
26384         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
26385         * config/m32r/linux.h (LINK_SPEC): Likewise.
26386         * config/mips/linux.h (LINK_SPEC): Likewise.
26387         * config/mips/linux64.h (LINK_SPEC): Likewise.
26388         * config/sparc/linux.h (LINK_SPEC): Likewise.
26389         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
26390         LINK_SPEC): Likewise.
26391         * config/xtensa/linux.h (LINK_SPEC): Likewise.
26392
26393 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26394
26395         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
26396         %{version:-v}.
26397         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
26398
26399 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26400
26401         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
26402         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
26403
26404 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
26405
26406         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
26407
26408 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26409
26410         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
26411         supports -Bstatic/-Bdynamic.
26412         * configure: Regenerate.
26413
26414 2011-01-14  Jan Hubicka  <jh@suse.cz>
26415             Jack Howarth  <howarth@bromo.med.uc.edu>
26416
26417         PR target/46037
26418         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
26419         when checking debug_info_level. Test write_symbols instead of
26420         debug_hooks->var_location when setting flag_var_tracking_uninit.
26421
26422 2011-01-14  Richard Guenther  <rguenther@suse.de>
26423
26424         PR tree-optimization/47179
26425         * target.def (ref_may_alias_errno): New target hook.
26426         * targhooks.h (default_ref_may_alias_errno): Declare.
26427         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
26428         (default_ref_may_alias_errno): New function.
26429         * target.h (struct ao_ref_s): Declare.
26430         * tree-ssa-alias.c: Include target.h.
26431         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
26432         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
26433         (targhooks.o): Likewise.
26434         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
26435         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
26436
26437 2011-01-14  Richard Guenther  <rguenther@suse.de>
26438
26439         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
26440
26441 2011-01-14  Richard Guenther  <rguenther@suse.de>
26442
26443         PR tree-optimization/47280
26444         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
26445         return CFG changes.
26446         (tree_ssa_forward_propagate_single_use_vars): Deal with
26447         CFG changes from associate_plusminus.
26448
26449 2011-01-14  Richard Guenther  <rguenther@suse.de>
26450
26451         PR middle-end/47281
26452         Revert
26453         2011-01-11  Richard Guenther  <rguenther@suse.de>
26454
26455         PR tree-optimization/46076
26456         * tree-ssa.c (useless_type_conversion_p): Conversions from
26457         unprototyped to empty argument list function types are useless.
26458
26459 2011-01-14  Richard Guenther  <rguenther@suse.de>
26460
26461         PR tree-optimization/47286
26462         * tree-ssa-structalias.c (new_var_info): Register variables are global.
26463
26464 2011-01-14  Martin Jambor  <mjambor@suse.cz>
26465
26466         PR middle-end/46823
26467         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
26468
26469 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
26470
26471         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
26472         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26473         * config/xtensa/xtensa.c (xtensa_libcall_value,
26474         xtensa_function_value_regno_p): New functions.
26475         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
26476
26477 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
26478
26479         PR c++/47213
26480         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
26481         PE specific hook.
26482         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
26483         New function prototype.
26484         * config/i386/winnt.c (i386_pe_assemble_visibility):
26485         Warn only if attribute was specified by user.
26486
26487 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
26488
26489         PR target/47251
26490         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
26491         floating point.
26492         (floatunsdidf2_fcfidu): Ditto.
26493
26494 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26495
26496         * config/s390/s390.c (print_operand_address): Replace 'error' with
26497         'output_operand_lossage'.
26498         (print_operand): Likewise.
26499
26500 2011-01-13  Jeff Law  <law@redhat.com>
26501
26502         PR rtl-optimization/39077
26503         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
26504         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
26505         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
26506         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
26507         * gcse.c (prune_insertions_deletions): New function.
26508         (compute_pre_data): Use it.
26509
26510 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
26511
26512         PR debug/PR46973
26513         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
26514         static function.
26515         (prune_unused_types_mark): Use it.
26516
26517 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
26518
26519         PR rtl-optimization/45352
26520         * sel-sched.c: Update copyright years.
26521         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
26522         in the advancing loop when we have issued issue_rate insns.
26523
26524 2011-01-12  Richard Henderson  <rth@redhat.com>
26525
26526         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
26527         (TARGET_MD_ASM_CLOBBERS): New.
26528
26529         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
26530         (TARGET_DELEGITIMIZE_ADDRESS): New.
26531
26532         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
26533         (clzsi2, *bsch): New patterns.
26534
26535         * config/mn10300/mn10300.md (INT): New mode iterator.
26536         (*mov<INT>_clr): New pattern, and peep2 to generate it.
26537
26538         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
26539         flag_split_wide_types.
26540
26541         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
26542         (mn10300_trampoline_init): Rewrite without a template, an immediate
26543         load and a direct branch.
26544         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
26545
26546 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
26547
26548         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
26549         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
26550         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
26551         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
26552
26553 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
26554
26555         PR debug/47209
26556         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
26557         of type.
26558
26559 2011-01-12  Jan Hubicka  <jh@suse.cz>
26560
26561         PR driver/47244
26562         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
26563         (PLUGIN_COND_CLOSE): New macro.
26564         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
26565
26566 2011-01-12  Richard Guenther  <rguenther@suse.de>
26567
26568         PR lto/47259
26569         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
26570         register variables in a MEM_REF.
26571
26572 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
26573
26574         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
26575         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
26576         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
26577         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
26578         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
26579         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
26580         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
26581         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
26582         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
26583         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
26584         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
26585         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
26586         * config/gnu-user.h: New.  Copied from linux.h.
26587         (LINUX_TARGET_STARTFILE_SPEC): Rename to
26588         GNU_USER_TARGET_STARTFILE_SPEC.
26589         (LINUX_TARGET_ENDFILE_SPEC): Rename to
26590         GNU_USER_TARGET_ENDFILE_SPEC.
26591         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
26592         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
26593         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
26594         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
26595         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
26596         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
26597         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
26598         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
26599         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
26600         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
26601         * config/arm/linux-eabi.h (CC1_SPEC): Use
26602         GNU_USER_TARGET_CC1_SPEC.
26603         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
26604         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
26605         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
26606         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
26607         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
26608         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
26609         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
26610         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
26611
26612 2011-01-12  Richard Guenther  <rguenther@suse.de>
26613
26614         PR other/46946
26615         * doc/invoke.texi (ffast-math): Document it is turned on
26616         with -Ofast.
26617
26618 2011-01-12  Jan Hubicka  <jh@suse.cz>
26619
26620         PR tree-optimization/47233
26621         * opts.c (common_handle_option): Disable ipa-reference with profile
26622         feedback.
26623
26624 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
26625
26626         * c-parser.c (c_parser_objc_at_property_declaration): Improved
26627         error message.
26628
26629 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
26630
26631         * c-parser.c (c_lex_one_token): Updated and reindented some
26632         comments.  No changes in code.
26633
26634 2011-01-11  Ian Lance Taylor  <iant@google.com>
26635
26636         * godump.c (go_output_var): Don't output the variable if there is
26637         already a type with the same name.
26638
26639 2011-01-11  Ian Lance Taylor  <iant@google.com>
26640
26641         * godump.c (go_format_type): Don't generate float80.
26642
26643 2011-01-11  Richard Henderson  <rth@redhat.com>
26644
26645         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
26646         declaration.  Rewrite for both speed and size.
26647         (mn10300_address_cost_1): Remove.
26648         (mn10300_register_move_cost): New.
26649         (mn10300_memory_move_cost): New.
26650         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
26651         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
26652         extensions, shifts, BSWAP, CLZ.
26653         (mn10300_wide_const_load_uses_clr): Remove.
26654         (TARGET_REGISTER_MOVE_COST): New.
26655         (TARGET_MEMORY_MOVE_COST): New.
26656         * config/mn10300/mn10300-protos.h: Update.
26657         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
26658
26659         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
26660         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
26661         * config/mn10300/mn10300-protos.h: Update.
26662         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
26663         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
26664         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
26665         (*test_int_bitfield, *test_byte_bitfield): Remove.
26666         (*bit_test, *subreg_bit_test): Remove.
26667         * config/mn10300/predicates.md (const_8bit_operand): Remove.
26668
26669         * config/mn10300/constraints.md ("c"): Rename from "A".
26670         ("A", "D"): New constraint letters.
26671         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
26672         (fmssf4, fnmasf4, fnmssf4): Likewise.
26673
26674         * config/mn10300/mn10300.md (isa): New attribute.
26675         (enabled): New attribute.
26676
26677         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
26678         (abssf2, negsf2): Define only for hardware fp.
26679         (sqrtsf2): Reformat.
26680         (addsf3, subsf3, mulsf3): Merge expander and insn.
26681
26682         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
26683         (DEBUGGER_AUTO_OFFSET): Remove.
26684         (DEBUGGER_ARG_OFFSET): Remove.
26685
26686         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
26687         Emit register stores with the same offsets as the hardware.
26688         (mn10300_store_multiple_operation): Don't check that the register
26689         save offsets are monotonic.
26690         * config/mn10300/mn10300-protos.h: Update.
26691
26692         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
26693
26694         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
26695         in terms of the value on the stack, not the MDR register.
26696
26697 2011-01-11  Jan Hubicka  <jh@suse.cz>
26698
26699         PR lto/45721
26700         PR lto/45375
26701         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
26702         (symbol_alias_set_destroy, symbol_alias_set_contains,
26703         propagate_aliases_backward): Declare.
26704         * lto-streamer-out.c (struct sets): New sturcture.
26705         (trivally_defined_alias): New function.
26706         (output_alias_pair_p): Rewrite.
26707         (output_unreferenced_globals): Fix output of alias pairs.
26708         (produce_symtab): Likewise.
26709         * ipa.c (function_and_variable_visibility): Set weak alias destination
26710         as needed in lto.
26711         * varasm.c (symbol_alias_set_t): Remove.
26712         (symbol_alias_set_destroy): Export.
26713         (propagate_aliases_forward, propagate_aliases_backward): New functions
26714         based on ...
26715         (compute_visible_aliases): ... this one; remove.
26716         (trivially_visible_alias): New
26717         (trivially_defined_alias): New.
26718         (remove_unreachable_alias_pairs): Rewrite.
26719         (finish_aliases_1): Reorganize code checking if alias is defined.
26720         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
26721         in LTO mode.
26722
26723 2011-01-11  Richard Guenther  <rguenther@suse.de>
26724
26725         PR tree-optimization/46076
26726         * tree-ssa.c (useless_type_conversion_p): Conversions from
26727         unprototyped to empty argument list function types are useless.
26728
26729 2011-01-11  Richard Guenther  <rguenther@suse.de>
26730
26731         PR middle-end/45235
26732         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
26733         volatile MEMs as MEM_READONLY_P.
26734
26735 2011-01-11  Richard Guenther  <rguenther@suse.de>
26736
26737         PR tree-optimization/47239
26738         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
26739
26740 2011-01-11  Jeff Law  <law@redhat.com>
26741
26742         PR tree-optimization/47086
26743         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
26744         IVs from statements that might throw.
26745
26746 2011-01-10  Jan Hubicka  <jh@suse.cz>
26747
26748         PR lto/45375
26749         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
26750
26751 2011-01-10  Jan Hubicka  <jh@suse.cz>
26752
26753         PR lto/45375
26754         * profile.c (read_profile_edge_counts): Ignore profile inconistency
26755         when correcting profile.
26756
26757 2011-01-10  Jan Hubicka  <jh@suse.cz>
26758
26759         PR lto/46083
26760         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
26761         DECL_FINI_PRIORITY.
26762         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
26763         Restore DECL_FINI_PRIORITY.
26764
26765 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26766
26767         * doc/gimple.texi: Fix quoting of multi-word return values in
26768         @deftypefn statements.  Ensure presence of return value.  Wrap
26769         overlong @deftypefn lines.
26770         (is_gimple_operand, is_gimple_min_invariant_address): Remove
26771         descriptions of removed functions.
26772         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
26773         of multi-word return value in @deftypefn statement.
26774
26775 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26776
26777         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
26778         (Conditional Expressions, Logical Operators)
26779         (Statement and operand traversals): Do not indent smallexample
26780         code.  Fix duplicate function argument in example.
26781
26782 2011-01-10  Jeff Law  <law@redhat.com>
26783
26784         PR tree-optimization/47141
26785         * ipa-split.c (split_function): Handle case where we are
26786         returning a value and the return block has a virtual operand phi.
26787
26788 2011-01-10  Jan Hubicka  <jh@suse.cz>
26789
26790         PR tree-optimization/47234
26791         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
26792         (pass_feedback_split_functions): Declare.
26793         * passes.c (init_optimization_passes): Add ipa-split as subpass of
26794         tree-profile.
26795         * ipa-split.c (gate_split_functions): Update comments; disable
26796         split-functions for profile_arc_flag and branch_probabilities.
26797         (gate_feedback_split_functions): New function.
26798         (execute_feedback_split_functions): New function.
26799         (pass_feedback_split_functions): New global var.
26800
26801 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
26802
26803         PR lto/46760
26804         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
26805         calling gimple_call_set_cannot_inline.
26806
26807 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
26808
26809         * config/darwin-sections.def: Remove unused section.
26810
26811 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
26812
26813         PR c++/47218
26814         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
26815
26816 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
26817
26818         PR objc/47232
26819         * c-parser.c (c_parser_declaration_or_fndef): Improved
26820         error message.
26821
26822 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
26823
26824         * config/i386/winnt.c (i386_pe_start_function): Make sure
26825         to switch back to function's section.
26826
26827 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
26828
26829         PR gcc/46902
26830         PR testsuite/46912
26831         * plugin.c: Move include of dlfcn.h from here...
26832         * system.h: ... to here.
26833
26834 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26835
26836         * doc/cpp.texi (C++ Named Operators): Fix markup for header
26837         file name.
26838         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
26839         two extra empty pages in PDF output.
26840
26841 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
26842
26843         PR objc/47078
26844         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
26845         for error recovery purposes behave as if it was not specified so
26846         that the default type is usd.
26847
26848 2011-01-07  Jan Hubicka  <jh@suse.cz>
26849
26850         PR tree-optmization/46469
26851         * ipa.c (function_and_variable_visibility): Clear needed flags on
26852         nodes with external decls; handle weakrefs merging correctly.
26853
26854 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
26855
26856         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
26857         not false.
26858
26859 2011-01-07  Jan Hubicka  <jh@suse.cz>
26860
26861         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
26862         and no longer claim that gold is required for linker plugin.
26863         * configure: Regenerate.
26864         * gcc.c (PLUGIN_COND): New macro.
26865         (LINK_COMMAND_SPEC): Use it.
26866         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
26867         * config.in (HAVE_LTO_PLUGIN): New.
26868         * configure.ac (--with-lto-plugin): New parameter; autodetect
26869         HAVE_LTO_PLUGIN.
26870
26871 2011-01-07  Jan Hubicka  <jh@suse.cz>
26872
26873         PR tree-optimization/46367
26874         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
26875         when we can update original.
26876         (cgraph_mark_inline_edge): Sanity check.
26877         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
26878
26879 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26880
26881         * config/spu/spu.h (ASM_COMMENT_START): Define.
26882
26883 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
26884
26885         PR driver/42445
26886         * gcc.c (%>S): New.
26887         (SWITCH_KEEP_FOR_GCC): Likewise.
26888         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
26889         (do_spec_1): Handle "%>".
26890
26891         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
26892
26893 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
26894
26895         PR target/47201
26896         * config/i386/i386.c (ix86_delegitimize_address): If
26897         simplify_gen_subreg fails, return orig_x.
26898
26899         PR bootstrap/47187
26900         * value-prof.c (gimple_stringop_fixed_value): Handle
26901         lhs of the call properly.
26902
26903 2011-01-07  Jan Hubicka  <jh@suse.cz>
26904
26905         PR lto/45375
26906         * lto-opt.c (lto_reissue_options): Set flag_shlib.
26907
26908 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
26909
26910         * target.def (function_switched_text_sections): New hook.
26911         * doc/tm.texi: Regenerated.
26912         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
26913         * final.c (default_function_switched_text_sections): New.
26914         (final_scan_insn): Call function_switched_text_sections when a
26915         mid-function section change occurs.
26916         * output.h (default_function_switched_text_sections): Declare.
26917         * config/darwin-protos.h (darwin_function_switched_text_sections):
26918         Likewise.
26919         * config/darwin.c (darwin_function_switched_text_sections): New.
26920         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
26921
26922 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
26923
26924         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
26925         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
26926         the secondary code fragment when outputting for DWARF == 2.
26927
26928 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
26929
26930         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
26931         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
26932         Remove.
26933         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
26934         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
26935
26936 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
26937
26938         PR debug/46704
26939         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
26940         when it is not empty.
26941
26942 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
26943
26944         Bobcat Enablement
26945         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
26946         (case ${target}): Add btver1.
26947         * config/i386/driver-i386.c (host_detect_local_cpu): Let
26948         -march=native recognize btver1 processors.
26949         * config/i386/i386-c.c (ix86_target_macros_internal): Add
26950         btver1 def_and_undef
26951         * config/i386/i386.c (struct processor_costs btver1_cost): New
26952         btver1 cost table.
26953         (m_BTVER1): New definition.
26954         (m_AMD_MULTIPLE): Includes m_BTVER1.
26955         (initial_ix86_tune_features): Add btver1 tune.
26956         (processor_target_table): Add btver1 entry.
26957         (static const char *const cpu_names): Add btver1 entry.
26958         (software_prefetching_beneficial_p): Add btver1.
26959         (ix86_option_override_internal): Add btver1 instruction sets.
26960         (ix86_issue_rate): Add btver1.
26961         (ix86_adjust_cost): Add btver1.
26962         * config/i386/i386.h (TARGET_BTVER1): New definition.
26963         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
26964         (enum processor_type): Add PROCESSOR_BTVER1.
26965         * config/i386/i386.md (define_attr "cpu"): Add btver1.
26966
26967 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26968
26969         PR target/43309
26970         * config/i386/i386.c (legitimize_tls_address)
26971         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
26972         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
26973         (tls_initial_exec_64_sun): New pattern.
26974
26975 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
26976
26977         * doc/invoke.texi (Overall Options): Improve wording and markup
26978         of the description of -wrapper.
26979
26980 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
26981
26982         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
26983         rdynamic, threads): New Driver options.
26984
26985 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26986
26987         PR target/38118
26988         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
26989         if coming from .tdata.
26990         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
26991
26992 2011-01-06  Jan Hubicka  <jh@suse.cz>
26993
26994         PR lto/47188
26995         * collect2.c (main): Do not enable LTOmode when plugin is active.
26996
26997 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26998
26999         PR other/45915
27000         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
27001         --version output if supported.
27002         * configure: Regenerate.
27003
27004 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
27005
27006         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
27007         Driver options.
27008
27009 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
27010
27011         PR c/47150
27012         * c-convert.c (convert): When converting a complex expression
27013         other than COMPLEX_EXPR to a different complex type, ensure
27014         c_save_expr is called instead of save_expr, unless in_late_binary_op.
27015         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
27016         when converting COMPLEX_TYPE.
27017
27018 2011-01-06  Ira Rosen  <irar@il.ibm.com>
27019
27020         PR tree-optimization/47139
27021         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
27022         only the last reduction value is used outside the loop.  Update
27023         documentation.
27024
27025 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
27026
27027         * config/rtems.opt: New.
27028         * config.gcc (*-*-rtems*): Use rtems.opt.
27029
27030 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
27031
27032         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
27033         processors do not support 3DNow instructions.
27034
27035 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27036
27037         * config/spu/spu.c (spu_option_override): Set parameter
27038         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
27039
27040 2011-01-05  Jan Hubicka  <jh@suse.cz>
27041
27042         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
27043         at the command line.
27044
27045 2011-01-05  Martin Jambor  <mjambor@suse.cz>
27046
27047         PR lto/47162
27048         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
27049         deltas on streamed outgoing edges.
27050         (output_node_opt_summary): Output info for outgoing edges only when
27051         the node is in new parameter set.
27052         (output_cgraph_opt_summary): New parameter set, passed to the two
27053         aforementioned functions.  Update its forward declaration and its
27054         callee too.
27055
27056 2011-01-05  Tom Tromey  <tromey@redhat.com>
27057
27058         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
27059         operator to c_finish_omp_atomic.
27060         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
27061         (build_unary_op): Update.
27062         (build_modify_expr): Update.
27063         (build_asm_expr): Update.
27064
27065 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27066
27067         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
27068         newly inserted insns.
27069         (pad_bb): Likewise.
27070         (spu_emit_branch_hint): Likewise.
27071         (insert_hbrp_for_ilb_runout): Likewise.
27072         (spu_machine_dependent_reorg): Call df_finish_pass after
27073         schedule_insns returns.
27074
27075 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27076
27077         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
27078
27079 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
27080
27081         PR tree-optimization/47005
27082         * tree-sra.c (struct access): Add 'non_addressable' bit.
27083         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
27084         (decide_one_param_reduction): Return 0 if the parameter is passed by
27085         reference and one of the accesses in the group is non_addressable.
27086
27087 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
27088
27089         PR tree-optimization/47056
27090         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
27091         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
27092         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
27093
27094 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
27095
27096         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
27097         initializer.  Skip view conversions from aggregate types.
27098
27099 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
27100
27101         PR bootstrap/47055
27102         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
27103
27104 2011-01-04  Philipp Thomas  <pth@suse.de>
27105
27106         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
27107         obvious typo.
27108
27109 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27110
27111         * function.c (thread_prologue_and_epilogue_insns): Do not crash
27112         on empty epilogue sequences.
27113
27114 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
27115
27116         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
27117         non-static): New Driver options.
27118
27119 2011-01-04  Jie Zhang  <jie@codesourcery.com>
27120
27121         PR driver/47137
27122         * gcc.c (default_compilers[]): Set combinable field to 0
27123         for all assembly languages.
27124
27125 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
27126
27127         * config/mips/loongson3a.md: New file.
27128         * config/mips/mips.md: Include loongson3a.md.
27129         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
27130         TUNE_LOONGSON_3A.
27131
27132 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
27133
27134         PR middle-end/47017
27135         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
27136         instead of convert_memory_address_addr_space on the base expression.
27137
27138 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27139
27140         * config/spu/spu.c (spu_option_override): Update error text
27141         for bad -march= / -mtune= values.
27142
27143 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27144
27145         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
27146         if branch-hint optimization will be performed.
27147
27148 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
27149
27150         PR tree-optimization/47148
27151         * ipa-split.c (split_function): Convert arguments to
27152         DECL_ARG_TYPE if possible.
27153
27154         PR tree-optimization/47155
27155         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
27156         when computing uns.
27157
27158         PR rtl-optimization/47157
27159         * combine.c (try_combine): If undobuf.other_insn becomes
27160         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
27161         and set *new_direct_jump_p too.
27162
27163 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
27164
27165         PR tree-optimization/47021
27166         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
27167
27168 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
27169
27170         * gcc.c (process_command): Update copyright notice dates.
27171         * gcov.c (print_version): Likewise.
27172         * gcov-dump.c (print_version): Likewise.
27173         * mips-tfile.c (main): Likewise.
27174         * mips-tdump.c (main): Likewise.
27175
27176 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27177
27178         PR tree-optimization/46801
27179         * tree-sra.c (type_internals_preclude_sra_p): Check whether
27180         aggregate fields start at byte boundary instead of the bit-field flag.
27181
27182 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
27183
27184         PR driver/47137
27185         * gcc.c (main): Revert revision 168407.
27186
27187 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27188
27189         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
27190
27191 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27192
27193         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
27194         vector optab to expand vector/scalar shift, update gimple to vector.
27195
27196 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27197
27198         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
27199         a thunk.
27200
27201 2011-01-03  Martin Jambor  <mjambor@suse.cz>
27202
27203         PR tree-optimization/46984
27204         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
27205         HOST_WIDE_INT.
27206         (cgraph_create_indirect_edge): Fixed line length.
27207         (cgraph_indirect_call_info): Declare.
27208         (cgraph_make_edge_direct) Update declaration.
27209         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
27210         (cgraph_create_indirect_edge): Use it.
27211         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
27212         callees.
27213         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
27214         the new thunk_delta representation.
27215         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
27216         HOST_WIDE_INT.
27217         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
27218         (ipa_read_indirect_edge_info): Likewise.
27219         * lto-cgraph.c (output_edge_opt_summary): New function.
27220         (output_node_opt_summary): Call it on all outgoing edges.
27221         (input_edge_opt_summary): New function.
27222         (input_node_opt_summary): Call it on all outgoing edges.
27223
27224 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
27225
27226         PR driver/47137
27227         * gcc.c (main): Don't check have_o when settting combine_inputs.
27228
27229 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
27230
27231         * regrename.c: Add general comment describing the pass.
27232         (struct du_head): Remove 'length' field.
27233         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
27234         (regrename_optimize): Do not sort chains.  Rework comments, add others.
27235         Force renaming to the preferred class (if any) in the first pass and do
27236         not consider registers that belong to it in the second pass.
27237         (create_new_chain): Do not set 'length' field.
27238         (scan_rtx_reg): Likewise.
27239
27240 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
27241
27242         PR tree-optimization/47140
27243         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
27244         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
27245         to bit_value_binop.
27246
27247         PR rtl-optimization/47028
27248         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
27249         parm_birth_insn instead of at the beginning of first bb.
27250
27251 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
27252
27253         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
27254         Remove the word "see" before "@pxref".
27255         * doc/rtl.texi: Remove the word "see" before "@pxref".
27256
27257 2011-01-01  Jan Hubicka  <jh@suse.cz>
27258
27259         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
27260         memory.
27261
27262 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
27263
27264         PR target/38662
27265         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
27266
27267 \f
27268 Copyright (C) 2011 Free Software Foundation, Inc.
27269
27270 Copying and distribution of this file, with or without modification,
27271 are permitted in any medium without royalty provided the copyright
27272 notice and this notice are preserved.