OSDN Git Service

PR target/50310
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2
3         PR target/50310
4         * config/spu/spu.c (spu_emit_vector_compare): Support unordered
5         floating-point comparisons.
6
7 2011-10-19  Jan Hubicka  <jh@suse.cz>
8
9         * cgraphunit.c (handle_alias_pairs): Also handle wekref with destination
10         declared.
11         (output_weakrefs): New function.
12         * varpool.c (varpool_create_variable_alias): Handle external aliases.
13
14 2011-10-19  Jakub Jelinek  <jakub@redhat.com>
15
16         * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
17         second argument instead of mode.
18
19 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
20
21         * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
22         mode SUBREG of operands[0] as target.
23         (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
24         (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
25         (expand_vec_perm_1): Handle identity and some broadcast
26         permutations.
27         (expand_vec_perm_interleave2): Handle also 32-byte modes, using
28         vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
29         For d->testing_p return true earlier to avoid creating more GC
30         garbage.
31         (expand_vec_perm_vpermq_perm_1): New function.
32         (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
33         earlier to avoid creating more GC garbage.  Fix handling of
34         V16HImode.  Avoid some SUBREGs in SET_DEST.
35         (expand_vec_perm_broadcast_1): Return false for 32-byte integer
36         vector modes.
37         (expand_vec_perm_vpshufb4_vpermq2): New function.
38         (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
39         and expand_vec_perm_vpshufb4_vpermq2.
40
41 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
42
43         * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
44         before exiting.
45
46 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
47
48         PR tree-optimization/50717
49
50         * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
51         parameter.  Calculate 'type' from stmt.
52         (convert_mult_to_widen): Update call the is_widening_mult_p.
53         (convert_plusminus_to_widen): Likewise.
54
55 2011-10-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
56
57         * config/spu/spu.c (struct machine_function): New data structure.
58         (spu_init_machine_status): New function.
59         (spu_option_override): Install it.
60         (get_pic_reg): Set and use cfun->machine->pic_reg.
61         (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
62         (need_to_save_reg): Use cfun->machine->pic_reg instead of
63         checking crtl->uses_pic_offset_table.
64         (spu_expand_prologue): Likewise.
65
66 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
67
68         PR tree-optimization/50735
69         * function.c (gimplify_parameters): Use create_tmp_var instead of
70         create_tmp_reg.  If parm is not TREE_ADDRESSABLE and type is complex
71         or vector type, set DECL_GIMPLE_REG_P.
72
73 2011-10-18  Andrew Stubbs  <ams@codesourcery.com>
74
75         * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
76         * config/arm/arm.opt: Add 'native' processor_type and
77         arm_arch enum values.
78         * config/arm/arm.h (host_detect_local_cpu): New prototype.
79         (EXTRA_SPEC_FUNCTIONS): New define.
80         (MCPU_MTUNE_NATIVE_SPECS): New define.
81         (DRIVER_SELF_SPECS): New define.
82         * config/arm/driver-arm.c: New file.
83         * config/arm/x-arm: New file.
84         * doc/invoke.texi (ARM Options): Document -mcpu=native,
85         -mtune=native and -march=native.
86
87 2011-10-18  Alexander Monakov  <amonakov@ispras.ru>
88
89         PR rtl-optimization/50205
90         * sel-sched.c (count_occurrences_1): Simplify on the assumption that
91         p->x is a register.  Forbid substitution when the same register is
92         found in a different mode.
93         (count_occurrences_equiv): Assert that 'what' is a register.
94
95 2011-10-18  Richard Guenther  <rguenther@suse.de>
96
97         PR tree-optimization/50767
98         * tree-ssa-pre.c (create_expression_by_pieces): Update the
99         folded statement.
100
101 2011-10-18  Julian Brown  <julian@codesourcery.com>
102
103         * config/arm/arm.c (arm_block_move_unaligned_straight)
104         (arm_adjust_block_mem, arm_block_move_unaligned_loop)
105         (arm_movmemqi_unaligned): New.
106         (arm_gen_movmemqi): Support unaligned block copies.
107
108 2011-10-18  Ira Rosen  <ira.rosen@linaro.org>
109
110         * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
111         vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
112         * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
113         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
114         (op_code_prio): Likewise.
115         (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
116         * optabs.c (optab_for_tree_code): Handle
117         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
118         (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
119         * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
120         * genopinit.c (optabs): Initialize the new optabs.
121         * expr.c (expand_expr_real_2): Handle
122         VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
123         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
124         * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
125         * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
126         VEC_WIDEN_LSHIFT_LO_EXPR): New.
127         * cfgexpand.c (expand_debug_expr): Handle new tree codes.
128         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
129         vect_recog_widen_shift_pattern.
130         (vect_handle_widen_mult_by_const): Rename...
131         (vect_handle_widen_op_by_const): ...to this.  Handle shifts.
132         Add a new argument, update documentation.
133         (vect_recog_widen_mult_pattern): Assume that only second
134         operand can be constant.  Update call to
135         vect_handle_widen_op_by_const.
136         (vect_recog_over_widening_pattern): Fix typo.
137         (vect_recog_widen_shift_pattern): New.
138         * tree-vect-stmts.c (vectorizable_type_promotion): Handle
139         widening shifts.
140         (supportable_widening_operation): Likewise.
141         * tree-inline.c (estimate_operator_cost): Handle new tree codes.
142         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
143         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
144         * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
145         (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
146         vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
147         Likewise.
148         * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
149         New.
150         * config/arm/iterators.md (V_innermode): New.
151         * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
152         for widening shift.
153
154 2011-10-18  Richard Guenther  <rguenther@suse.de>
155
156         * tree-ssa-alias.h (struct pt_solution): Remove
157         vars_contains_restrict member.
158         (pt_solutions_same_restrict_base): Remove.
159         (pt_solution_set): Adjust.
160         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
161         vars_contains_restrict handling.
162         (dump_points_to_solution): Likewise.
163         (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
164         * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
165         field.
166         (new_var_info): Do not initialize it.
167         (ipa_escaped_pt): Adjust.
168         (make_constraint_from_restrict): Make the tag global.
169         (make_constraint_from_global_restrict): New function.
170         (make_constraint_from_heapvar): Remove.
171         (create_variable_info_for): Do not make restrict vars point
172         to NONLOCAL.
173         (intra_create_variable_infos): Likewise.
174         (find_what_var_points_to): Remove vars_contains_restrict handling.
175         (pt_solution_set): Adjust.
176         (pt_solution_ior_into): Likewise.
177         (pt_solutions_same_restrict_base): Remove.
178         (compute_points_to_sets): Do not test is_restrict_var.
179         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
180         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
181
182 2011-10-18  Tom de Vries  <tom@codesourcery.com>
183
184         PR tree-optimization/50672
185         * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
186         factored out of ...
187         (mark_virtual_phi_result_for_renaming): Use
188         mark_virtual_operand_for_renaming.
189         * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
190         * tree-ssa-tail-merge.c (release_last_vdef): New function.
191         (purge_bbs): Add update_vops parameter.  Call release_last_vdef for each
192         deleted basic block.
193         (tail_merge_optimize): Add argument to call to purge_bbs.
194
195 2011-10-18  Richard Guenther  <rguenther@suse.de>
196
197         PR middle-end/50716
198         * expr.c (get_object_or_type_alignment): New function.
199         (expand_assignment): Use it.
200         (expand_expr_real_1): Likewise.
201
202 2011-10-18  Dodji Seketeli  <dodji@redhat.com>
203
204         PR bootstrap/50760
205         * input.c (dump_line_table_statistics): Use long, not size_t.
206
207 2011-10-17  Eric Botcazou  <ebotcazou@adacore.com>
208
209         * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
210
211 2011-10-17  Simon Baldwin  <simonb@google.com>
212             Ian Lance Taylor  <iant@google.com>
213
214         * configure.ac: Add --with-native-system-header-dir.  Set and
215         substitute NATIVE_SYSTEM_HEADER_DIR.  Use native_system_header
216         when setting target_header_dir.
217         * config.gcc: Always set native_system_header_dir.
218         (*-*-gnu*): Set native_system_header_dir.  Don't use t-gnu.
219         (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir.  Don't
220         use i386/t-djgpp.
221         (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
222         native_system_header_dir.
223         (spu-*-elf*): Set native_system_header_dir.
224         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
225         @NATIVE_SYSTEM_HEADER_DIR@.
226         (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
227         * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
228         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
229         STANDARD_INCLUDE_COMPONENT.
230         (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR.  Rename
231         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
232         * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
233         STANDARD_INCLUDE_COMPONENT.
234         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
235         * config/i386/t-mingw-w32: Likewise.
236         * config/i386/t-mingw-w64: Likewise.
237         * config/spu/t-spu-elf: Likewise.
238         * config/i386/t-djgpp: Remove.
239         * config/t-gnu: Remove.
240         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
241         (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
242         STANDARD_INCLUDE_COMPONENT.
243         * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
244         * config/spu/spu-elf.h: Likewise.
245         * config/vms/xm-vms.h: Likewise.
246         * config/gnu.h: Likewise.
247         * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
248         and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
249         NATIVE_SYSTME_HEADER_COMPONENT.
250         * doc/install.texi (Configuration): Document
251         --with-native-system-header-dir.  Mention it in the documentation
252         for --with-sysroot and --with-build-sysroot.
253         * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
254         STANDARD_INCLUDE_DIR.  Rename STANDARD_INCLUDE_COMPONENT to
255         NATIVE_SYSTEM_HEADER_COMPONENT.  Rename uses of
256         STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
257         * doc/fragments.texi (Target Fragment): Don't document
258         NATIVE_SYSTEM_HEADER_DIR.
259         * configure, doc/tm.texi: Rebuild.
260
261 2011-10-17  Richard Henderson  <rth@redhat.com>
262
263         * config/sparc/sparc.md: Use register_or_zero_operand where rJ
264         is the constraint.
265
266         * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
267         patterns.
268         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
269         * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
270
271 2011-10-17  David S. Miller  <davem@davemloft.net>
272
273         * config/sparc/sparc-modes.def: Add single entry vector modes for
274         DImode and SImode.
275         * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
276         mode iterators.
277         (mov<V32:mode>): Revert back to plain SFmode pattern.
278         (*movsf_insn): Likewise.
279         (mov<V64:mode>): Revert back to plain DFmode pattern.
280         (*movdf_insn_sp32): Likewise.
281         (*movdf_insn_sp32_v9): Likewise.
282         (*movdf_insn_sp64): Likewise.
283         (V64 mode splitters) Likewise.
284         (addsi3): Remove VIS alternatives.
285         (subsi3): Likewise.
286         (and<V64I:mode>3): Revert to DImode only pattern.
287         (and<V64I:mode>3_sp32): Likewise.
288         (*and<V64I:mode>3_sp64): Likewise.
289         (and<V32I:mode>3): Likewise.
290         (*and_not_<V64I:mode>_sp32): Likewise.
291         (*and_not_<V64I:mode>_sp64): Likewise.
292         (*and_not_<V32I:mode>): Likewise.
293         (ior<V64I:mode>3): Likewise.
294         (*ior<V64I:mode>3_sp32): Likewise.
295         (*ior<V64I:mode>3_sp64): Likewise.
296         (ior<V32I:mode>3): Likewise.
297         (*or_not_<V64I:mode>_sp32): Likewise.
298         (*or_not_<V64I:mode>_sp64): Likewise.
299         (*or_not_<V32I:mode>): Likewise.
300         (xor<V64I:mode>3): Likewise.
301         (*xor<V64I:mode>3_sp32): Likewise.
302         (*xor<V64I:mode>3_sp64): Likewise.
303         (xor<V32I:mode>3): Likewise.
304         (V64I mode splitters): Likewise.
305         (*xor_not_<V64I:mode>_sp32): Likewise.
306         (*xor_not_<V64I:mode>_sp64): Likewise.
307         (*xor_not_<V32I:mode>): Likewise.
308         (one_cmpl<V64I:mode>2): Likewise.
309         (*one_cmpl<V64I:mode>2_sp32): Likewise.
310         (*one_cmpl<V64I:mode>2_sp64): Likewise.
311         (one_cmpl<V32I:mode>2): Likewise.
312         (VM32, VM64, VMALL): New mode iterators.
313         (vbits, vconstr, vfptype): New mode attributes.
314         (mov<VMALL:mode>): New expander.
315         (*mov<VM32:mode>_insn): New insn.
316         (*mov<VM64:mode>_insn_sp64): New insn.
317         (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
318         specifically for the register to memory case.
319         (vec_init<mode>): New expander.
320         (VADDSUB): New mode iterator.
321         (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
322         with...
323         (<plusminus_insn><mode>3): New consolidated pattern.
324         (VL): New mode iterator for logical operations.
325         (vlsuf): New more attribute.
326         (vlop): New code iterator.
327         (vlinsn, vlninsn): New code attributes.
328         (<code><mode>3): New insn to non-negated vector logical ops.
329         (*not_<code><mode>3): Likewise for negated variants.
330         (*nand<mode>_vis): New insn.
331         (vlnotop): New code iterator.
332         (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
333         (one_cmpl<mode>2): New insn.
334         (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
335         (bshuffle<VM64:mode>_vis): Likewise.
336         (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
337         (fp<plusminus_insn>64_vis): Use V1DI mode.
338         (VASS mode iterator): Use V1SI not SI mode.
339         * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
340         single-entry vector mode changes.
341         (sparc_expand_builtin): Likewise.
342         (sparc_expand_vector_init): New function.
343         * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
344
345 2011-10-17  Kai Tietz  <ktietz@redhat.com>
346
347         * fold-const.c (simple_operand_p_2): New function.
348         (fold_truthop): Rename to
349         (fold_truth_andor_1): function name.
350         Additionally remove branching creation for logical and/or.
351         (fold_truth_andor): Handle branching creation for logical and/or here.
352
353 2011-10-17  Andi Kleen  <ak@linux.intel.com>
354
355         * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
356
357 2011-10-17  Georg-Johann Lay  <avr@gjlay.de>
358
359         * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
360         * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
361         (adjust_len): Add alternative "call".
362         (isa, enabled): New insn attributes.
363         (length): Use match_test with AVR_HAVE_JMP_CALL instead of
364         mcu_mega attribute.
365         (*sbrx_branch<mode>): Ditto.
366         (*sbrx_and_branch<mode>): Ditto.
367         (*sbix_branch): Ditto.
368         (*sbix_branch_bit7): Ditto.
369         (*sbix_branch_tmp): Ditto.
370         (*sbix_branch_tmp_bit7): Ditto.
371         (jump): Ditto.
372         (negsi2): Use attribute "isa" instead of assembler dialect.
373         (extendhisi2): Ditto.
374         (call_insn, call_value_insn): Set adjust_len attribute.
375         (indirect_jump): Indent to coding rules.
376         (call_prologue_saves): Use isa attribute instead of mcu_mega.
377         (epilogue_restores): Ditto.  Fix setting of SP as described in the
378         RTX pattern.
379         (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
380         and *indirect_jump_avr6.
381         (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
382         (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
383         (*tablejump_rjmp, *tablejump_lib): Remove.
384         * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
385
386 2011-10-17  Paolo Carlini  <paolo.carlini@oracle.com>
387
388         PR c++/50757
389         * doc/invoke.texi ([Wnonnull]): Update.
390
391 2011-10-17  Richard Henderson  <rth@redhat.com>
392
393         PR 50746
394         * optabs.c (expand_vec_perm_expr): Fix indexing error.
395
396 2011-10-17  Sergio Durigan Junior  <sergiodj@redhat.com>
397
398         * configure.ac: Display `yes' if the SystemTap header has been
399         found.
400         * configure: Regenerate.
401
402 2011-10-08  Andi Kleen  <ak@linux.intel.com>
403
404         PR other/50636
405         * config.in, configure: Regenerate.
406         * configure.ac (madvise): Add to AC_CHECK_FUNCS.
407         * ggc-page.c (USING_MADVISE): Add.
408         (page_entry): Add discarded field.
409         (alloc_page): Check for discarded pages.
410         (release_pages): Add USING_MADVISE branch.
411
412 2011-10-17  Richard Guenther  <rguenther@suse.de>
413
414         PR tree-optimization/50729
415         * tree-vrp.c (extract_range_from_unary_expr_1): Remove
416         redundant test.
417         (simplify_conversion_using_ranges): Properly test the
418         intermediate result.
419
420 2011-10-15  Tom Tromey  <tromey@redhat.com>
421             Dodji Seketeli  <dodji@redhat.com>
422
423         * ggc.h (ggc_round_alloc_size): Declare new public entry point.
424         * ggc-none.c (ggc_round_alloc_size): New public stub function.
425         * ggc-page.c (ggc_alloced_size_order_for_request): New static
426         function.  Factorized from ggc_internal_alloc_stat.
427         (ggc_round_alloc_size): New public function.  Uses
428         ggc_alloced_size_order_for_request.
429         (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
430         * ggc-zone.c (ggc_round_alloc_size): New public function extracted
431         from ggc_internal_alloc_zone_stat.
432         (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
433         * toplev.c (general_init): Initialize
434         line_table->alloced_size_for_request.
435
436 2011-10-15  Tom Tromey  <tromey@redhat.com>
437             Dodji Seketeli  <dodji@redhat.com>
438
439         * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New
440         macros.
441         (num_expanded_macros_counter, num_macro_tokens_counter): Declare
442         new counters.
443         (dump_line_table_statistics): Define new function.
444         * input.h (dump_line_table_statistics): Declare new function.
445         * toplev.c (dump_memory_report): Call dump_line_table_statistics.
446
447 2011-10-15  Tom Tromey  <tromey@redhat.com>
448             Dodji Seketeli  <dodji@redhat.com>
449
450         * doc/cppopts.texi: Document -fdebug-cpp.
451         * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor
452         options.
453
454 2011-10-15  Tom Tromey  <tromey@redhat.com>
455             Dodji Seketeli  <dodji@redhat.com>
456
457         * gcc/diagnostic.h (diagnostic_report_current_module): Add a
458         location parameter.
459         * diagnostic.c (diagnostic_report_current_module): Add a location
460         parameter to the function definition.  Use it instead of
461         input_location.  Resolve the virtual location rather than just
462         looking up its map and risking to touch a resulting macro map.
463         (default_diagnostic_starter): Pass the relevant diagnostic
464         location to diagnostic_report_current_module.
465         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
466         (virt_loc_aware_diagnostic_finalizer): Likewise.
467         (diagnostic_report_current_function): Pass the
468         relevant location to diagnostic_report_current_module.
469         * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
470         new function.
471         * toplev.c (general_init): By default, use the new
472         virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
473         * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
474
475 2011-10-15  Tom Tromey  <tromey@redhat.com>
476             Dodji Seketeli  <dodji@redhat.com>
477
478         * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
479         * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
480         preprocessor related options.
481
482 2011-10-15  Tom Tromey  <tromey@redhat>
483             Dodji Seketeli  <dodji@redhat.com>
484
485         * input.h (struct expanded_location): Move to libcpp/line-map.h.
486         (LOCATION_COLUMN): New accessor
487         (in_system_header_at): Use linemap_location_in_system_header_p.
488         * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
489         touching the internals of struct line_map.  Use the public API.
490         instead.
491         (diagnostic_report_diagnostic): Don't use relational operator '<'
492         on virtual locations.  Use linemap_location_before_p instead.
493         * input.c (expand_location): Adjust to expand to the tokens'
494         spelling location when macro location tracking is on.
495
496
497 2011-10-08  Andi Kleen  <ak@linux.intel.com>
498
499         * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
500
501 2011-10-13  Andi Kleen  <ak@linux.intel.com>
502
503         * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
504
505 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
506
507         PR tree-optimization/50727
508         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
509         DEF_STMT to the list of statements to be replaced by the
510         pattern statements.
511
512 2011-10-16  Eric Botcazou  <ebotcazou@adacore.com>
513
514         PR rtl-optimization/50615
515         * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
516
517 2011-10-16  Jakub Jelinek  <jakub@redhat.com>
518
519         PR tree-optimization/50596
520         * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
521         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
522         vect_recog_bool_pattern.
523         (check_bool_pattern, adjust_bool_pattern_cast,
524         adjust_bool_pattern, vect_recog_bool_pattern): New functions.
525
526 2011-10-16  Ira Rosen  <ira.rosen@linaro.org>
527
528         * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
529         treat the first load of the node as the first element in its
530         interleaving chain.
531         * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
532         necessary and possible.
533         (vect_build_slp_tree): Add new argument.  Allow load groups of any size
534         in basic blocks.  Keep all the loads for further permutation check.
535         Use the new argument to determine if there is a permutation.  Update
536         the recursive calls.
537         (vect_supported_load_permutation_p): Allow subchains of interleaving
538         chains in basic block vectorization.
539         (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
540         Check load permutation based on the new parameter.
541         (vect_schedule_slp_instance): Don't start from the first element in
542         interleaving chain unless the loads are permuted.
543
544 2011-10-15  Jan Hubicka  <jh@suse.cz>
545
546         PR target/48668
547         PR target/50689
548         * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
549         after function body.
550
551 2011-10-15  Richard Henderson  <rth@redhat.com>
552
553         * tree-vect-slp.c: Include langhooks.h.
554         (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
555         (vect_transform_slp_perm_load): Use can_vec_perm_expr_p.  Simplify
556         mask creation for VEC_PERM_EXPR.
557         * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
558         not the builtin.
559         (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
560         * Makefile.in (tree-vect-slp.o): Update dependency.
561         * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
562
563 2011-10-15  Alan Modra  <amodra@gmail.com>
564
565         PR bootstrap/50738
566         * ifcvt.c (dead_or_predicable): Revert accidental commit with
567         HAVE_simple_return test.
568
569 2011-10-15  Alan Modra  <amodra@gmail.com>
570
571         * ifcvt.c (dead_or_predicable): Disable if-conversion when
572         doing so is likely to kill a shrink-wrapping opportunity.
573
574         PR rtl-optimization/49941
575         * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
576
577         * rtl.h (set_return_jump_label): Declare.
578         * function.c (set_return_jump_label): New function, extracted..
579         (thread_prologue_and_epilogue_insns): ..from here.  Use it in
580         another instance to set return jump_label.
581         * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
582         * reorg.c (find_end_label): Likewise.
583
584 2011-10-14  David S. Miller  <davem@davemloft.net>
585
586         * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
587         with a more complete cpp test.
588         * config/sparc/linux64.h: Likewise.
589         * config/sparc/linux.h: Likewise.
590         * config/sparc/sparc.opt (sparc_debug): New target variable.
591         (mdebug): New target option.
592         * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
593         TARGET_DEBUG_OPTIONS): New defines.
594         * config/sparc/sparc.c (debug_target_flag_bits,
595         debug_target_flags): New functions.
596         (sparc_option_override): Add name strings back to cpu_table[].
597         Parse -mdebug string.  When TARGET_DEBUG_OPTIONS is true, print
598         out the target flags before and after override processing as well
599         as the selected cpu.  If MASK_V8PLUS, make sure that the selected
600         cpu is at least v9.
601
602 2011-10-15  Oleg Endo  <oleg.endo@t-online.de>
603
604         PR target/49263
605         * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
606         * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
607         * config/sh/sh.md (tstsi_t): Name existing insn.  Make inner
608         and instruction commutative.
609         (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
610         tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
611         tstsi_t_zero_extract_subreg_xor_little,
612         tstsi_t_zero_extract_subreg_xor_big): New insns.
613         (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
614         asm output.
615         (*andsi_compact): Reorder alternatives so that K08 is considered first.
616
617 2011-10-14  Eric Botcazou  <ebotcazou@adacore.com>
618
619         PR target/50354
620         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
621         processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
622
623 2011-10-14  Gerald Pfeifer  <gerald@pfeifer.com>
624
625         * invoke.texi (AVR Options): Avoid \leq{}.
626
627 2011-10-14  Kai Tietz  <ktietz@redhat.com>
628
629         * gimplify.c (gimplify_expr): Take care that for bitwise-binary
630         transformation the operands have compatible types.
631
632 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
633
634         * config/i386/sse.md (vec_widen_smult_hi_v8hi,
635         vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
636         vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
637         mode iterator and any_extend code iterator.
638         (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
639         (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
640         also for TARGET_SSE4_1 using pmuldq insn.
641         (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
642         (sse2_sse4_1): New code attr.
643         (udot_prodv4si): Macroize using any_extend code iterator.
644         (<s>dot_prodv8si): New expander.
645
646 2011-10-14  Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
647
648         * config/i386/i386.c (atom_cost): Changed cost for loading
649         QImode using movzbl.
650
651 2011-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
652
653         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
654         change on October 11th, 2011.
655
656 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
657
658         * config/i386/sse.md (vec_interleave_high<mode>,
659         vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
660         * config/i386/i386.c (expand_vec_perm_interleave3): New function.
661         (ix86_expand_vec_perm_builtin_1): Call it.
662
663 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
664
665         Fix thinko from r179765
666         * config/avr/avr.c (avr_option_override): Don't override
667         flag_omit_frame_pointer if not actually needed.
668
669 2011-10-14  Georg-Johann Lay  <avr@gjlay.de>
670
671         PR target/46278
672         * doc/invoke.texi (AVR Options): Document -mstrict-X.
673
674         * config/avr/avr.opt (-mstrict-X): New option.
675         (avr_strict_X): New variable reflecting -mstrict-X.
676         * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
677         outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
678         (avr_legitimate_address_p): Pass outer_code to
679         avr_reg_ok_for_addr_p and use that function in case PLUS.
680         (avr_mode_code_base_reg_class): Depend on avr_strict_X.
681         (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
682         (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
683
684 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
685
686         * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
687         of VI_128.
688
689         * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
690         (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
691         Use <sseinsnmode> instead of TI in mode attr.
692
693 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
694
695         * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
696         * config/arm/linux-atomic.c: Change comment to point to 64bit version.
697         (SYNC_LOCK_RELEASE): Instantiate 64bit version.
698         * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
699
700 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
701
702         * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
703         (arm_output_strex): Support strexd.
704         (arm_output_it): New helper to output it in Thumb2 mode only.
705         (arm_output_sync_loop): Support DI mode.  Change comment to
706         not support const_int.
707         (arm_expand_sync): Support DI mode.
708         * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
709         and LDREXD.
710         * config/arm/iterators.md (NARROW): move from sync.md.
711         (QHSD): New iterator for all current ARM integer modes.
712         (SIDI): New iterator for SI and DI modes only.
713         * config/arm/sync.md (sync_predtab): New mode_attr.
714         (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
715         (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
716         (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
717         (sync_nandsi): Fold into sync_nand<mode>.
718         (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
719         (sync_new_nandsi): Fold into sync_new_nand<mode>.
720         (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
721         (sync_old_nandsi): Fold into sync_old_nand<mode>.
722         (sync_compare_and_swap<mode>): Support SI & DI.
723         (sync_lock_test_and_set<mode>): Likewise.
724         (sync_<sync_optab><mode>): Likewise.
725         (sync_nand<mode>): Likewise.
726         (sync_new_<sync_optab><mode>): Likewise.
727         (sync_new_nand<mode>): Likewise.
728         (sync_old_<sync_optab><mode>): Likewise.
729         (sync_old_nand<mode>): Likewise.
730         (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
731         (arm_sync_lock_test_and_setsi): Likewise.
732         (arm_sync_new_<sync_optab>si): Likewise.
733         (arm_sync_new_nandsi): Likewise.
734         (arm_sync_old_<sync_optab>si): Likewise.
735         (arm_sync_old_nandsi): Likewise.
736         (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
737         (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
738         (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
739         (arm_sync_new_nand<mode> NARROW): Likewise.
740         (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
741         (arm_sync_old_nand<mode> NARROW): Likewise.
742
743 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
744
745         PR target/48126
746         * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
747
748 2011-10-14  David Alan Gilbert  <david.gilbert@linaro.org>
749
750         * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
751
752 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
753
754         * doc/invoke.texi ([Wformat-zero-length]): Tidy.
755
756 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
757
758         * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
759         on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
760
761 2011-10-14  Richard Guenther  <rguenther@suse.de>
762
763         PR tree-optimization/50723
764         * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
765
766 2011-10-14  Nicola Pero  <nicola.pero@meta-innovation.com>
767
768         * gengtype.c (files_rules): Added rules for objc/objc-map.h and
769         objc/objc-map.c.
770
771 2011-10-14  Paolo Carlini  <paolo.carlini@oracle.com>
772
773         PR c++/17212
774         * doc/invoke.texi ([Wformat-zero-length]): Update.
775
776 2011-10-14  Iain Sandoe  <iains@gcc.gnu.org>
777
778         PR bootstrap/50699
779         * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
780         build for powerpc targets.  (darwin_patch_builtins): Only build for
781         powerpc targets.
782
783 2011-10-14  Jakub Jelinek  <jakub@redhat.com>
784
785         * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
786         (avx_cvtdq2pd256_2): ... this.
787         (sseunpackfltmode): New mode attr.
788         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
789         vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
790         using VI2_AVX2 iterator.
791         (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
792
793 2011-10-13  David S. Miller  <davem@davemloft.net>
794
795         * config/sparc/sparc.md (plusminus): New code iterator.
796         (plusminus_insn): New code attr.
797         (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
798         using plusminus and plusminus_insn.
799         (fpadd64_vis, fpsub64_vis): Likewise.
800
801 2011-10-13  Richard Henderson  <rth@redhat.com>
802
803         * doc/md.texi (vec_perm): Document fallback to byte permutation.
804         * genopinit.c (optabs): Add vec_perm_const.
805         * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
806         Reject non-vector modes.  Allow fallback to byte permutation.
807         (expand_vec_perm_expr_1): Split out from ...
808         (expand_vec_perm_expr): ... here.  Allow fallback to byte permutation.
809         * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
810         * tree-vect-generic.c (lower_vec_perm): Update for name change.
811
812 2011-10-13  Richard Henderson  <rth@redhat.com>
813
814         * config/rs6000/altivec.md (vec_permv16qi): New pattern.
815
816         * config/rs6000/spu.md (vec_permv16qi): New pattern.
817
818         * config/i386/i386.c (ix86_expand_vec_perm_const): New.
819         * config/i386/i386-protos.h: Update.
820         * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
821         (vec_perm_const<VEC_PERM_CONST>): New expander.
822
823         * optabs.c (expand_vector_broadcast): New.
824         (expand_binop): Expand scalar shifts of vectors to vector shifts
825         of vectors, if the former isn't supported.
826         * tree-vect-generic.c (expand_vector_operations_1): Don't do that
827         here; always simplify to scalar shift of vector if possible.
828
829         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
830         test for vector splat.
831
832 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
833
834         * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
835
836 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
837             Richard Guenther  <rguenther@suse.de>
838
839         * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
840         or complex vars even if their DECL_UID is in not_reg_needs bitmap.
841
842 2011-10-13  Jakub Jelinek  <jakub@redhat.com>
843
844         * config/i386/sse.md (reduc_umin_v8hi): New pattern.
845         * config/i386/i386.c (ix86_build_const_vector): Handle
846         also V32QI, V16QI, V16HI and V8HI modes.
847         (emit_reduc_half): New function.
848         (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
849         Use emit_reduc_half helper function.
850
851 2011-10-13  Lawrence Crowl  <crowl@google.com>
852             Diego Novillo  <dnovillo@google.com>
853
854         * lto-streamer-in.c (input_struct_function_base): Factor out of ...
855         (input_function): ... here.
856         * lto-streamer-out.c (output_struct_function_base): Factor out of ...
857         (output_function): ... here.
858
859 2011-10-13  Gabriel Charette  <gchare@google.com>
860             Diego Novillo  <dnovillo@google.com>
861
862         * streamer-hooks.h (struct streamer_hooks): Add hooks
863         input_location and output_location.
864         * lto-streamer-in.c (lto_input_location): Use
865         streamer_hooks.input_location, if set.
866         * lto-streamer-out.c (lto_output_location): Use
867         streamer_hooks.output_location, if set.
868
869 2011-10-13  Eric Botcazou  <ebotcazou@adacore.com>
870
871         * doc/invoke.texi (SPARC options): Document -mfix-at697f.
872         * config/sparc/sparc.opt (mfix-at697f): New option.
873         * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
874         (sparc_reorg): New function.
875
876 2011-10-13  Richard Guenther  <rguenther@suse.de>
877
878         PR tree-optimization/50712
879         * ipa-split.c (split_function): Always re-gimplify parameters
880         when they are not gimple vals before passing them.  Properly
881         check for type compatibility.
882
883 2011-10-13  Tom de Vries  <tom@codesourcery.com>
884
885         * function.c (gimplify_parameters): Set number of arguments of call to
886         BUILT_IN_ALLOCA_WITH_ALIGN to 2.
887
888 2011-10-13  Tom de Vries  <tom@codesourcery.com>
889
890         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
891         for static const strings.
892         * varasm.c (build_constant_desc): Generate the memory location of the
893         constant using gen_const_mem.
894
895 2011-10-13  Richard Guenther  <rguenther@suse.de>
896
897         PR tree-optimization/50698
898         * tree-data-ref.c (split_constant_offset_1): Also process
899         offsets of &MEM.
900
901 2011-10-12  David S. Miller  <davem@davemloft.net>
902
903         * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
904         (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
905         unspecs.
906         (fpmerge_vis): Remove inaccurate comment, represent using vec_select
907         of a vec_concat.
908         (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
909         (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
910         Reimplement as unspecs and remove inaccurate comments.
911         (vis3_shift_patname): New code attr.
912         (<vis3_shift_insn><vbits>_vis): Rename to
913         "v<vis3_shift_patname><mode>3".
914         (vis3_addsub_ss_patname): New code attr.
915         (<vis3_addsub_ss_insn><vbits>_vis): Rename to
916         "<vis3_addsub_ss_patname><mode>3".
917         * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
918         accommodate pattern name changes.
919
920         * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
921         to zero when assembler lacks support for such instructions.
922         * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
923         and MASK_FMAF in defaults when assembler lacks necessary support.
924
925 2011-10-12  Jakub Jelinek  <jakub@redhat.com>
926
927         * config/i386/sse.md (vec_unpacks_lo_<mode>,
928         vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
929         vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
930         * config/i386/i386.c (ix86_expand_sse_unpack): Handle
931         V32QImode, V16HImode and V8SImode for TARGET_AVX2.
932
933         * config/i386/sse.md (vec_avx2): New mode_attr.
934         (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
935         (mul<mode>3): ... this.
936
937         * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
938         * config/i386/i386.c (ix86_expand_vec_perm): Handle
939         V16QImode and V32QImode for TARGET_AVX2.
940         (MAX_VECT_LEN): Increase to 32.
941         (expand_vec_perm_blend): Add support for 32-byte integer
942         vectors with TARGET_AVX2.
943         (valid_perm_using_mode_p): New function.
944         (expand_vec_perm_pshufb): Add support for 32-byte integer
945         vectors with TARGET_AVX2.
946         (expand_vec_perm_vpshufb2_vpermq): New function.
947         (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
948         (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
949         with TARGET_AVX2.
950         (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
951         and expand_vec_perm_vpshufb2_vpermq_even_odd.
952         * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
953         32-byte integer vector modes.
954         (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
955         (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
956         (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
957         4 new operands.
958         (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
959         match_dup, instead add 4 new operands and require they have
960         right cross-lane values.
961         (avx2_permv4di): Change into define_expand.
962         (avx2_permv4di_1): New instruction.
963         (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
964         for "xm" constrained operand.
965         (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
966
967         * config/i386/sse.md (avx2_gathersi<mode>,
968         avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
969         match_scratch, change memory_operand to register_operand,
970         add (mem:BLK (scratch)) use.
971         (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
972         *avx2_gatherdi<mode>256): Add clobber of match_scratch,
973         add earlyclobber to the output operand and match_scratch,
974         add (mem:BLK (scratch)) use, change the other mem to match_operand.
975         Use %p6 instead of %c6 in the pattern.
976         * config/i386/i386.c (ix86_expand_builtin): Adjust for
977         operand 2 being a Pmode register_operand instead of memory_operand.
978
979 2011-10-12  Kai Tietz  <ktietz@redhat.com>
980
981         * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
982
983 2011-10-12  Steve Ellcey  <sje@cup.hp.com>
984
985         * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
986
987 2011-10-12  Richard Guenther  <rguenther@suse.de>
988
989         * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
990         of the first store we visit in a basic-block.
991         (get_continuation_for_phi): Search for a candidate VUSE that
992         might dominates all others.  Do pairwise disambiguation against
993         that candidate.
994
995 2011-10-12  Paul Koning  <pkoning@gcc.gnu.org>
996
997         PR tree-optimization/50189
998         * tree-vrp.c (extract_range_from_assert): Use the type of
999         the variable, not the limit.
1000
1001 2011-10-12  Richard Guenther  <rguenther@suse.de>
1002
1003         PR tree-optimization/50700
1004         * tree-object-size.c (addr_object_size): Simplify and treat
1005         MEM_REF bases consistently.
1006
1007 2011-10-12  Bernd Schmidt  <bernds@codesourcery.com>
1008
1009         * function.c (prepare_shrink_wrap, bb_active_p): New function.
1010         (thread_prologue_and_epilogue_insns): Use bb_active_p.
1011         Call prepare_shrink_wrap, then recompute bb_active_p for the
1012         last block.
1013
1014 2011-10-12  Joseph Myers  <joseph@codesourcery.com>
1015
1016         PR c/50565
1017         * convert.c (convert_to_integer): Do not narrow operands of
1018         pointer subtraction.
1019
1020 2011-10-12  Nick Clifton  <nickc@redhat.com>
1021
1022         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro.  Used to
1023         emit a .eabi_attribute assembler directive, possibly with a
1024         comment attached.
1025         * config/arm/arm.c (arm_file_start): Use the new macro.
1026         * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
1027
1028 2011-10-12  Georg-Johann Lay  <avr@gjlay.de>
1029
1030         PR target/49939
1031         * config/avr/avr.md (*movqi): Rename to movqi_insn.
1032         (*call_insn): Rename to call_insn.
1033         (*call_value_insn): Rename to call_value_insn.
1034         * config/avr/avr.c (avr_2word_insn_p): New static function.
1035         (jump_over_one_insn_p): Use it.
1036
1037 2011-10-12  Richard Sandiford  <richard.sandiford@linaro.org>
1038
1039         * expr.h (copy_blkmode_to_reg): Declare.
1040         * expr.c (copy_blkmode_to_reg): New function.
1041         (expand_assignment): Don't expand register RESULT_DECLs before
1042         the lhs.  Use copy_blkmode_to_reg to copy BLKmode values into a
1043         RESULT_DECL register.
1044         (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
1045         * stmt.c (expand_return): Move BLKmode-to-register code into
1046         copy_blkmode_to_reg.
1047
1048 2011-10-11  Eric Botcazou  <ebotcazou@adacore.com>
1049
1050         PR target/49965
1051         * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
1052         (mov<F:mode>cc): Likewise.
1053
1054 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1055
1056         * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
1057
1058 2011-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1059
1060         * tree.h (built_in_decls): Delete old interface with two parallel
1061         arrays to hold standard builtin declarations, and replace it with
1062         a function based interface that can support creating builtins on
1063         the fly in the future.  Change all uses, and poison the old
1064         names.  Make sure 0 is not a legitimate builtin index.
1065         (implicit_built_in_decls): Ditto.
1066         (built_in_info): Ditto.
1067         (BUILTIN_VALID_P): Ditto.
1068         (builtin_decl_explicit): Ditto.
1069         (builtin_decl_implicit): Ditto.
1070         (set_builtin_decl): Ditto.
1071         (set_builtin_decl_implicit_p): Ditto.
1072         (builtin_decl_explicit_p): Ditto.
1073         (builtin_decl_implicit_p): Ditto.
1074         * tree-complex.c (expand_complex_libcall): Ditto.
1075         * tree-loop-distribution.c (generate_memset_zero): Ditto.
1076         * tree-ssa-strlen.c (get_string_length): Ditto.
1077         (handle_builtin_strcpy): Ditto.
1078         (handle_builtin_strcat): Ditto.
1079         * tree.c (iterative_hash_expr): Ditto.
1080         (local_define_builtin): Ditto.
1081         (build_common_builtin_nodes): Ditto.
1082         * builtins.c (built_in_decls): Ditto.
1083         (implicit_built_in_decls): Ditto.
1084         (built_in_info): Ditto
1085         (expand_builtin_classify_type): Ditto.
1086         (mathfn_built_in_1): Ditto.
1087         (expand_builtin_cexpi): Ditto.
1088         (expand_builtin_mempcpy_args): Ditto.
1089         (expand_builtin_stpcpy): Ditto.
1090         (gimplify_va_arg_expr): Ditto.
1091         (expand_builtin_sync_operation): Ditto.
1092         (build_builtin_expect_predicate): Ditto.
1093         (fold_builtin_memory_op): Ditto.
1094         (fold_builtin_strcpy): Ditto.
1095         (fold_builtin_stpcpy): Ditto.
1096         (fold_builtin_strncpy): Ditto.
1097         (fold_builtin_interclass_mathfn): Ditto.
1098         (fold_builtin_classify): Ditto.
1099         (fold_builtin_2): Ditto.
1100         (fold_builtin_strstr): Ditto.
1101         (fold_builtin_strrchr): Ditto.
1102         (fold_builtin_strpbrk): Ditto.
1103         (fold_builtin_strcat): Ditto.
1104         (fold_builtin_strncat): Ditto.
1105         (fold_builtin_strcspn): Ditto.
1106         (fold_builtin_fputs): Ditto.
1107         (fold_builtin_sprintf): Ditto.
1108         (fold_builtin_snprintf): Ditto.
1109         (expand_builtin_memory_chk): Ditto.
1110         (fold_builtin_memory_chk): Ditto.
1111         (fold_builtin_stxcpy_chk): Ditto.
1112         (fold_builtin_strncpy_chk): Ditto.
1113         (fold_builtin_strcat_chk): Ditto.
1114         (fold_builtin_strncat_chk): Ditto.
1115         (fold_builtin_sprintf_chk_1): Ditto.
1116         (fold_builtin_snprintf_chk_1): Ditto.
1117         (fold_builtin_printf): Ditto.
1118         (fold_builtin_fprintf): Ditto.
1119         (fold_call_stmt): Ditto.
1120         (set_builtin_user_assembler_name): Ditto.
1121         * tree-emutls.c (emutls_common_1): Ditto.
1122         * omp-low.c (scan_omp): Ditto.
1123         (lower_rec_input_clauses): Ditto.
1124         (lower_reduction_clauses): Ditto.
1125         (expand_parallel_call): Ditto.
1126         (expand_task_call): Ditto.
1127         (maybe_catch_exception): Ditto.
1128         (optimize_omp_library_calls): Ditto.
1129         (expand_omp_for_generic): Ditto.
1130         (expand_omp_for_static_nochunk): Ditto.
1131         (expand_omp_for_static_chunk): Ditto.
1132         (expand_omp_sections): Ditto.
1133         (expand_omp_atomic_fetch_op): Ditto.
1134         (expand_omp_atomic_pipeline): Ditto.
1135         (expand_omp_atomic_mutex): Ditto.
1136         (lower_omp_single_simple): Ditto.
1137         (lower_omp_single_copy): Ditto.
1138         (lower_omp_master): Ditto.
1139         (lower_omp_ordered): Ditto.
1140         (lower_omp_critical): Ditto.
1141         * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
1142         * builtins.c (DEF_BUILTIN_STUB): Ditto.
1143         (BUILT_IN_NONE): Ditto.
1144         * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
1145         * gimple-low.c (lower_function_body): Ditto.
1146         (lower_builtin_setjmp): Ditto.
1147         * c-decl.c (merge_decls): Ditto.
1148         * tree-eh.c (lower_resx): Ditto.
1149         (lower_resx): Ditto.
1150         (lower_eh_dispatch): Ditto.
1151         * function (gimplify_parameters): Ditto.
1152         * c-typeck.c (build_function_call_vec): Ditto.
1153         * gimplify.c (build_stack_save_restore): Ditto.
1154         (gimplify_vla_decl): Ditto.
1155         (gimplify_modify_expr_to_memcpy): Ditto.
1156         (gimplify_modify_expr_to_memset): Ditto.
1157         (gimplify_variable_sized_compare): Ditto.
1158         (gimplify_function_tree): Ditto.
1159         * calls.c (emit_call_1): Ditto.
1160         * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
1161         * tree-nested.c (convert_nl_goto_reference): Ditto.
1162         (convert_tramp_reference_op): Ditto.
1163         (finalize_nesting_tree_1): Ditto.
1164         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
1165         (tree_ssa_prefetch_arrays): Ditto.
1166         * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
1167         * system.h (built_in_decls): Ditto.
1168         (implicit_built_in_decls): Ditto.
1169         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1170         * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
1171         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
1172         (ix86_veclibabi_svml): Ditto.
1173         (ix86_veclibabi_acml): Ditto.
1174         * config/vms/vms.c (vms_patch_builtins): Ditto.
1175         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
1176         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
1177         (rs6000_builtin_vectorized_libmass): Ditto.
1178         (rs6000_init_builtins): Ditto.
1179         * config/darwin.c (darwin_override_options): Ditto.
1180         (darwin_patch_builtin): Ditto.
1181         (darwin_rename_builtins): Ditto.
1182         * config/pa/pa.c (pa_init_builtins): Ditto.
1183
1184 2011-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1185
1186         * tree.h (copy_ref_info): Expose existing function.
1187         * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
1188         * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
1189
1190 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
1191
1192         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
1193         prototype.
1194         (avr_regno_mode_code_ok_for_base_p): New prototype.
1195         * config/avr/avr.h (BASE_REG_CLASS): Remove.
1196         (REGNO_OK_FOR_BASE_P): Remove.
1197         (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
1198         (REG_OK_FOR_BASE_STRICT_P): Remove.
1199         (MODE_CODE_BASE_REG_CLASS): New define.
1200         (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
1201         * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
1202         (avr_regno_mode_code_ok_for_base_p): New function.
1203         (avr_reg_ok_for_addr_p): New static function.
1204         (avr_legitimate_address_p): Use it.  Beautify.
1205
1206 2011-10-11  Georg-Johann Lay  <avr@gjlay.de>
1207
1208         PR target/50447
1209         * config/avr/avr.md (cc): Add out_plus attribute alternative.
1210         (addsi3): Use it.  Adapt avr_out_plus to new prototype.  Use
1211         avr_out_plus for all CONST_INT addends.
1212         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
1213         * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
1214         CC_OUT_PLUS.
1215         (avr_out_plus_1): Change prototype and report effect on cc0.
1216         (avr_out_plus): Ditto.
1217         (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
1218
1219 2011-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1220
1221         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
1222         the extra break.
1223
1224 2011-10-11  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1225
1226         * doc/invoke.texi: Document new warning.
1227         * common.opt (Wvector-operation-performance): Define new warning.
1228         * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
1229         vector operation.
1230         (exapnd_vector_parallel): Warn about expanded vector operation.
1231         (lower_vec_shuffle): Warn about expanded vector operation.
1232         * c-typeck.c (c_build_vec_perm_expr): Store correct location
1233         when creating VEC_PERM_EXPR.
1234
1235 2011-10-11  Richard Guenther  <rguenther@suse.de>
1236
1237         PR tree-optimization/50204
1238         * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
1239         two argument handling from ...
1240         (get_continuation_for_phi): ... here.  Handle arbitrary number
1241         of PHI args.
1242
1243 2011-10-11  Richard Sandiford  <richard.sandiford@linaro.org>
1244
1245         * modulo-sched.c: Fix comment typo.  Mention the possibility
1246         of using scheduling windows of II+1 cycles.
1247
1248 2011-10-11  Tristan Gingold  <gingold@adacore.com>
1249
1250         * doc/invoke.texi (C Dialect Options): Document
1251         -fallow-parameterless-variadic-functions.
1252         * c-parser.c (c_parser_parms_list_declarator): Handle it.
1253
1254 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1255
1256         * config/avr/avr.c (avr_option_override): Set
1257         flag_omit_frame_pointer to 0 if frame pointer is needed for unwinding.
1258
1259 2011-10-10  Uros Bizjak  <ubizjak@gmail.com>
1260
1261         PR bootstrap/50665
1262         * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm.  Move from enum
1263         optab_index to enum direct_optab_index.
1264         (vec_perm_optab): Update.
1265
1266 2011-10-10  Anatoly Sokolov  <aesok@post.ru>
1267
1268         * config/cris/cris.c (cris_preferred_reload_class): New function.
1269         (TARGET_PREFERRED_RELOAD_CLASS): Define.
1270         * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
1271
1272 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1273
1274         * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
1275         !AVR_HAVE_JMP_CALL.
1276         (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
1277         (*tablejump_enh, *tablejump): Remove insns.
1278         * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
1279         EIJMP for indirect jump.  Use LPM Z+ where available.
1280
1281 2011-10-10  Richard Henderson  <rth@redhat.com>
1282
1283         * doc/md.texi (vec_perm_const): Fix typo in cindex.
1284
1285 2011-10-10  Kirill Yukhin  <kirill.yukhin@intel.com>
1286             Yakovlev Vladimir  <vladimir.b.yakovlev@intel.com>
1287
1288         * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
1289
1290 2011-10-10  Richard Guenther  <rguenther@suse.de>
1291
1292         PR middle-end/50389
1293         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
1294         mark symbols for renaming.  Append the VUSE to all statements
1295         that possibly can have one.
1296
1297 2011-10-10  Richard Guenther  <rguenther@suse.de>
1298
1299         * ipa-split.c (pass_split_functions): Add verification TODOs.
1300         (pass_feedback_split_functions): Likewise.
1301
1302 2011-10-10  Richard Guenther  <rguenther@suse.de>
1303
1304         PR middle-end/50195
1305         * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
1306         only when optimizing.
1307
1308 2011-10-10  Nick Clifton  <nickc@redhat.com>
1309
1310         PR middle-end/49801
1311         * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
1312         df_get_live_out instead of accessing the bitmaps directly.
1313         (execute_compare_elim_after_reload): Remove calls to df_set_flags,
1314         df_live_add_problem and df_analyze.
1315
1316 2011-10-10  Michael Matz  <matz@suse.de>
1317
1318         PR middle-end/50638
1319         * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
1320
1321 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1322
1323         * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
1324         (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
1325         (node_sched_params): Remove first_reg_move and nreg_moves.
1326         (ps_num_consecutive_stages, extend_node_sched_params): New functions.
1327         (update_node_sched_params): Move up file.
1328         (print_node_sched_params): Print the stage.  Don't dump info related
1329         to first_reg_move and nreg_moves.
1330         (set_columns_for_row): New function.
1331         (set_columns_for_ps): Move up file and use set_columns_for_row.
1332         (schedule_reg_move): New function.
1333         (schedule_reg_moves): Call extend_node_sched_params and
1334         schedule_reg_move.  Extend size of uses bitmap.  Initialize
1335         num_consecutive_stages.  Return false if a move could not be
1336         scheduled.
1337         (apply_reg_moves): Don't emit moves here.
1338         (permute_partial_schedule): Handle register moves.
1339         (duplicate_insns_of_cycles): Remove for_prolog.  Emit moves according
1340         to the same stage-count test as ddg nodes.
1341         (generate_prolog_epilog): Update calls accordingly.
1342         (sms_schedule): Allow move-scheduling to add a new first stage.
1343
1344 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1345
1346         * modulo-sched.c (ps_insn): Adjust comment.
1347         (ps_reg_move_info): New structure.
1348         (partial_schedule): Add reg_moves field.
1349         (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
1350         (node_sched_params): Turn first_reg_move into an identifier.
1351         (ps_reg_move): New function.
1352         (ps_rtl_insn): Cope with register moves.
1353         (ps_first_note): Adjust comment and assert that the instruction
1354         isn't a register move.
1355         (node_sched_params): Replace with...
1356         (node_sched_param_vec): ...this vector.
1357         (set_node_sched_params): Adjust accordingly.
1358         (print_node_sched_params): Take a partial schedule instead of a ddg.
1359         Use ps_rtl_insn and ps_reg_move.
1360         (generate_reg_moves): Rename to...
1361         (schedule_reg_moves): ...this.  Remove rescan parameter.  Record each
1362         move in the partial schedule, but don't emit it here.  Don't perform
1363         register substitutions here either.
1364         (apply_reg_moves): New function.
1365         (duplicate_insns_of_cycles): Use register indices directly,
1366         rather than finding instructions using PREV_INSN.  Use ps_reg_move.
1367         (sms_schedule): Call schedule_reg_moves before committing to
1368         a partial schedule.   Try the next ii if the schedule fails.
1369         Use apply_reg_moves instead of generate_reg_moves.  Adjust
1370         call to print_node_sched_params.  Free node_sched_param_vec
1371         instead of node_sched_params.
1372         (create_partial_schedule): Initialize reg_moves.
1373         (free_partial_schedule): Free reg_moves.
1374
1375 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1376
1377         * modulo-sched.c (ps_insn): Replace node field with an identifier.
1378         (SCHED_ASAP): Replace with..
1379         (NODE_ASAP): ...this macro.
1380         (SCHED_PARAMS): New macro.
1381         (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
1382         (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
1383         (node_sched_params): Remove asap.
1384         (ps_rtl_insn, ps_first_note): New functions.
1385         (set_node_sched_params): Use XCNEWVEC.  Don't copy across the
1386         asap values.
1387         (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
1388         (generate_reg_moves): Pass ids to the SCHED_* macros.
1389         (update_node_sched_params): Take a ps insn identifier rather than
1390         a node as parameter.  Use ps_rtl_insn.
1391         (set_columns_for_ps): Update for above field and SCHED_* macro changes.
1392         (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
1393         (optimize_sc): Update for above field and SCHED_* macro changes.
1394         Update calls to try_scheduling_node_in_cycle and
1395         update_node_sched_params.
1396         (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
1397         macro changes.  Use ps_rtl_insn and ps_first_note.
1398         (sms_schedule): Pass ids to the SCHED_* macros.
1399         (get_sched_window): Adjust for above field and SCHED_* macro changes.
1400         Use NODE_ASAP instead of SCHED_ASAP.
1401         (try_scheduling_node_in_cycle): Remove node parameter.  Update
1402         call to ps_add_node_check_conflicts.  Pass ids to the SCHED_* macros.
1403         (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
1404         (ps_insert_empty_row): Adjust for above field changes.
1405         (compute_split_row): Use ids rather than nodes.
1406         (verify_partial_schedule): Adjust for above field changes.
1407         (print_partial_schedule): Use ps_rtl_insn.
1408         (create_ps_insn): Take an id rather than a node.
1409         (ps_insn_find_column): Adjust for above field changes.
1410         Use ps_rtl_insn.
1411         (ps_insn_advance_column): Adjust for above field changes.
1412         (add_node_to_ps): Remove node parameter.  Update call to
1413         create_ps_insn.
1414         (ps_has_conflicts): Use ps_rtl_insn.
1415         (ps_add_node_check_conflicts): Replace node parameter than an id.
1416
1417 2011-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
1418
1419         * modulo-sched.c (undo_replace_buff_elem): Delete.
1420         (generate_reg_moves): Don't build and return an undo list.
1421         (free_undo_replace_buff): Delete.
1422         (sms_schedule): Adjust call to generate_reg_moves.
1423         Don't call free_undo_replace_buff.
1424
1425 2011-10-10  Matthias Klose <doko@ubuntu.com>
1426
1427         * common/config/m32c: Remove empty directory.
1428
1429 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1430
1431         * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
1432
1433 2011-10-10  Georg-Johann Lay  <avr@gjlay.de>
1434
1435         PR target/50652
1436         * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
1437         atmega164a to 0x100.
1438
1439 2011-10-09  Eric Botcazou  <ebotcazou@adacore.com>
1440
1441         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
1442         the replacement if the conversion to the LHS type is not useless.
1443
1444 2011-10-09  Ira Rosen  <ira.rosen@linaro.org>
1445
1446         PR tree-optimization/50635
1447         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
1448         DEF_STMT to the list of statements to be replaced by the
1449         pattern statements.
1450         (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
1451
1452 2011-10-09  Anatoly Sokolov  <aesok@post.ru>
1453
1454         * system.h: Commit forgotten hunk in previous patch.
1455         (OUTPUT_ADDR_CONST_EXTRA): Poison.
1456
1457 2011-10-08  Nicola Pero  <nicola.pero@meta-innovation.com>
1458
1459         PR libobjc/50428
1460         * doc/objc.texi (Garbage Collection): Updated example to protect
1461         +initialize against execution in subclasses.
1462
1463 2011-10-07  Richard Henderson  <rth@redhat.com>
1464
1465         * doc/extend.texi (__builtin_shuffle): Improve the description to
1466         include the modulus of the selector.  Mention OpenCL.
1467         * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
1468
1469         * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
1470         * genopinit.c (optabs): Rename vshuffle to vec_perm.
1471         * c-typeck.c (c_build_vec_perm_expr): Rename from
1472         c_build_vec_shuffle_expr.  Update for name changes.
1473         * optabs.c (expand_vec_perm_expr_p): Rename from
1474         expand_vec_shuffle_expr_p.
1475         (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
1476         * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
1477         (vec_perm_optab): Rename from vshuffle_optab.
1478         * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
1479         c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
1480         tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
1481
1482         * config/i386/i386.c (ix86_expand_vec_perm): Rename from
1483         ix86_expand_vshuffle.
1484         * config/i386/i386-protos.h: Update.
1485         * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
1486         (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
1487
1488 2011-10-07  Richard Henderson  <rth@redhat.com>
1489
1490         * config/i386/predicates.md (avx2_pblendw_operand): New.
1491         * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
1492         (avx2_pblendw, *avx2_pblendw): New expander and insn.
1493
1494 2011-10-07  Richard Henderson  <rth@redhat.com>
1495
1496         * config/i386/i386.c (bdesc_args): Update code for
1497         __builtin_ia32_palignr256.  Change type of __builtin_ia32_pslldqi256,
1498         and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
1499         (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
1500         * config/i386/sse.md (mode iterator V16): Add V2TI.
1501         (mode iterator SSESCALARMODE): Use V2TI not V4DI.
1502         (mode attr ssse3_avx2): Add V2TI.
1503         (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
1504
1505 2011-10-07  David S. Miller  <davem@davemloft.net>
1506
1507         PR 50655
1508         * configure.ac: Add .register directives to VIS3 test.
1509         * configure: Regenerate.
1510
1511 2011-10-07  Richard Henderson  <rth@redhat.com>
1512
1513         * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
1514
1515 2011-10-07  Richard Henderson  <rth@redhat.com>
1516
1517         PR 49752
1518         * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
1519
1520 2011-10-07  Andrew Stubbs  <ams@codesourcery.com>
1521
1522         * config/arm/predicates.md (shift_amount_operand): Remove constant
1523         range check.
1524         (shift_operator): Check range of constants for all shift operators.
1525
1526 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1527
1528         * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
1529         Load GOT pointer for non-pic builds.
1530         (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
1531         (s390_emit_call): Likewise.
1532
1533 2011-10-07  Tom de Vries  <tom@codesourcery.com>
1534
1535         PR middle-end/50527
1536         * tree.c (build_common_builtin_nodes): Add local_define_builtin for
1537         BUILT_IN_ALLOCA_WITH_ALIGN.  Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
1538         throw.
1539         * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
1540         arglist.  Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
1541         (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1542         (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1543         * tree-ssa-ccp.c (evaluate_stmt): Set align for
1544         BUILT_IN_ALLOCA_WITH_ALIGN.
1545         (fold_builtin_alloca_for_var): Rename to ...
1546         (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
1547         BUILT_IN_ALLOCA_WITH_ALIGN argument.
1548         (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
1549         fold_builtin_alloca_with_align.
1550         (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1551         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
1552         DEF_BUILTIN_STUB.
1553         * ipa-pure-const.c (special_builtin_state): Handle
1554         BUILT_IN_ALLOCA_WITH_ALIGN.
1555         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
1556         (call_may_clobber_ref_p_1): Same.
1557         * function.c (gimplify_parameters): Lower vla to
1558         BUILT_IN_ALLOCA_WITH_ALIGN.
1559         * gimplify.c (gimplify_vla_decl): Same.
1560         * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
1561         * tree-mudflap.c (mf_xform_statements): Same.
1562         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
1563         (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
1564         * varasm.c (incorporeal_function_p): Same.
1565         * tree-object-size.c (alloc_object_size): Same.
1566         * gimple.c (gimple_build_call_from_tree): Same.
1567
1568 2011-10-07  Bernd Schmidt  <bernds@codesourcery.com>
1569
1570         * function.c (frame_required_for_rtx): Remove function.
1571         (requires_stack_frame_p): New arg set_up_by_prologue.  All callers
1572         changed.  Compute a set of mentioned registers and compare against
1573         the new arg rather than calling frame_required_for_rtx.
1574         (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
1575         reg set.  Convert the unconverted_simple_returns mechanism to store
1576         jump insns rather than their basic blocks.  Also check the
1577         orig_entry_edge destination for new blocks.
1578
1579 2011-10-07  Jakub Jelinek  <jakub@redhat.com>
1580
1581         PR tree-optimization/50650
1582         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
1583         call vect_is_simple_cond here, instead fail if cond_expr isn't
1584         COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
1585         for cond_expr's first operand.
1586         * tree-vect-stmts.c (vect_is_simple_cond): Static again.
1587         * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
1588
1589 2011-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1590
1591         * config/s390/s390.md (DWH, dwh): New mode macros.
1592         ("umulsidi3"): Extend to support "umulditi3" as well.
1593
1594 2011-10-07  Uros Bizjak  <ubizjak@gmail.com>
1595             H.J. Lu  <hongjiu.lu@intel.com>
1596
1597         PR target/50603
1598         * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
1599         integer PLUS RTX to a register to improve address combine.
1600
1601 2011-10-06  Richard Henderson  <rth@redhat.com>
1602
1603         * combine-stack-adjust.c (maybe_move_args_size_note): Add after
1604         parameter; use it to decide whether to merge two notes.
1605         (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
1606         for the deallocation case as well.
1607
1608 2011-10-06  Anatoly Sokolov  <aesok@post.ru>
1609
1610         * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
1611         * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
1612         * doc/tm.texi: Regenerate.
1613         * target.def (output_addr_const_extra): Use
1614         hook_bool_FILEptr_rtx_false.
1615         * targhooks.c (default_asm_output_addr_const_extra): Remove.
1616         * targhooks.h (default_asm_output_addr_const_extra): Remove.
1617         * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
1618         * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
1619
1620 2011-10-06  David S. Miller  <davem@davemloft.net>
1621
1622         * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
1623         (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
1624         SI mode 64-bit code gen case explicitly zero-extend and truncate.
1625         (*popcount<mode>_sp64): Split up into...
1626         (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
1627         SImode case use truncate.
1628         (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
1629         subtract so the compiler can optimize it.
1630         (SIDI): Remove unused mode iterator.
1631
1632 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
1633
1634         * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
1635         on the orig_entry_edge. Don't account for it in prologue_clobbered.
1636
1637 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
1638
1639         PR tree-optimization/50596
1640         * tree-vectorizer.h (vect_is_simple_cond): New prototype.
1641         (NUM_PATTERNS): Change to 6.
1642         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
1643         function.
1644         (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
1645         (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
1646         if it already has one, and don't set STMT_VINFO_VECTYPE in it
1647         if it is already set.
1648         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
1649         COND_EXPR in pattern stmts.
1650         (vect_is_simple_cond): No longer static.
1651
1652 2001-10-06  Richard Henderson  <rth@redhat.com>
1653
1654         * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
1655         * config/i386/sse.md (sseshuffint): Remove.
1656         (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
1657         (VSHUFFLE_AVX2): New mode iterator.
1658         (vshuffle<mode>): Use it.
1659         (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
1660
1661         * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
1662         for vector_all_ones_operand.
1663         (ix86_expand_int_vcond): Distinguish between comparison mode
1664         and data mode.  Allow them to differ.
1665         (ix86_expand_vshuffle): Don't force data mode to match maskmode.
1666
1667 2001-10-06  Richard Henderson  <rth@redhat.com>
1668
1669         * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
1670         mask operand.  Tidy the code.
1671
1672 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
1673
1674         * tree-vect-patterns.c (vect_pattern_recog_1): Use
1675         vect_recog_func_ptr typedef for the first argument.
1676         (vect_pattern_recog): Rename vect_recog_func_ptr variable
1677         to vect_recog_func, use vect_recog_func_ptr typedef for it.
1678
1679         PR tree-optimization/49279
1680         * tree-ssa-structalias.c (find_func_aliases): Don't handle
1681         CAST_RESTRICT.
1682         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
1683         restrict propagation.
1684         * tree-ssa.c (useless_type_conversion_p): Don't return false
1685         if TYPE_RESTRICT differs.
1686
1687 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
1688
1689         * function.c (thread_prologue_and_epilogue_insns): Build a vector
1690         of unconverted simple return blocks rather than trying to
1691         recompute them later based on bb_flags bitmap tests.
1692
1693 2011-10-06  Michael Matz  <matz@suse.de>
1694
1695         * tree-flow.h (get_var_ann): Don't declare.
1696         * tree-flow-inline.h (get_var_ann): Remove.
1697         (set_is_used): Use var_ann, not get_var_ann.
1698         * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
1699         * tree-profile.c (gimple_gen_edge_profiler): Call
1700         find_referenced_var_in.
1701         (gimple_gen_interval_profiler): Ditto.
1702         (gimple_gen_pow2_profiler): Ditto.
1703         (gimple_gen_one_value_profiler): Ditto.
1704         (gimple_gen_average_profiler): Ditto.
1705         (gimple_gen_ior_profiler): Ditto.
1706         (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
1707         (gimple_gen_ic_func_profiler): Call add_referenced_var.
1708         * tree-mudflap.c (execute_mudflap_function_ops): Call
1709         add_referenced_var.
1710
1711 2011-10-06  Jakub Jelinek  <jakub@redhat.com>
1712
1713         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
1714         don't set SSA_NAME_DEF_STMT that has been already set by
1715         gimple_build_assign_with_ops.
1716         (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
1717         vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
1718         Likewise.
1719
1720         * tree.h (avoid_folding_inline_builtin): New prototype.
1721         * builtins.c (avoid_folding_inline_builtin): No longer static.
1722         * gimple-fold.c (gimple_fold_builtin): Give up if
1723         avoid_folding_inline_builtin returns true.
1724
1725 2011-10-06  Richard Guenther  <rguenther@suse.de>
1726
1727         * tree-vect-generic.c (vector_element): Look at previous
1728         generated results.
1729
1730 2011-10-06  David Edelsohn  <dje.gcc@gmail.com>
1731
1732         PR target/39950
1733         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
1734         __powerpc__, __PPC__, __unix__.
1735
1736 2011-10-06  Michael Matz  <matz@suse.de>
1737
1738         * i386/i386.opt (recip_mask, recip_mask_explicit,
1739         x_recip_mask_explicit): New variables and cl_target member.
1740         (mrecip=): New option.
1741         * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
1742         RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
1743         (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
1744         TARGET_RECIP_VEC_SQRT): New tests.
1745         * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
1746         (sqrt<mode>2): Check TARGET_RECIP_SQRT.
1747         * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
1748         (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
1749         * i386/i386.c (ix86_option_override_internal): Set recip_mask
1750         for -mrecip and -mrecip=options.
1751         (ix86_function_specific_save): Save recip_mask_explicit.
1752         (ix86_function_specific_restore): Restore recip_mask_explicit.
1753
1754         * doc/invoke.texi (ix86 Options): Document the new option.
1755
1756 2011-10-06  Bernd Schmidt  <bernds@codesourcery.com>
1757
1758         PR target/49049
1759         * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
1760
1761 2011-10-06  Ulrich Weigand  <ulrich.weigand@linaro.org>
1762
1763         PR target/50305
1764         * config/arm/arm.c (arm_legitimize_reload_address): Recognize
1765         output of a previous pass through legitimize_reload_address.
1766         Do not attempt to optimize addresses if the base register is
1767         equivalent to a constant.
1768
1769 2011-10-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1770
1771         * function.c (thread_prologue_and_epilogue_insns): Mark
1772         last_bb_active as possibly unused.  It is unused for targets which
1773         do neither have "return" nor "simple_return" expanders.
1774
1775 2011-10-06  Richard Guenther  <rguenther@suse.de>
1776
1777         * fold-const.c (fold_ternary_loc): Also fold non-constant
1778         vector CONSTRUCTORs.  Make more efficient.
1779         * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
1780         (cprop_into_stmt): Don't propagate into virtual operands.
1781         (optimize_stmt): Really dump original statement.
1782
1783 2011-10-06  Nick Clifton  <nickc@redhat.com>
1784
1785         * config/rx/rx.md (smin3): Revert previous delta.
1786
1787 2011-10-06  Richard Guenther  <rguenther@suse.de>
1788
1789         PR tree-optimization/38884
1790         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
1791         reads from aggregate SSA names.
1792
1793 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
1794
1795         * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
1796         argument, truncate it at the beginning instead of allocating there
1797         and freeing at the end.
1798         (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
1799         pass its address to vect_pattern_recog_1.
1800
1801 2011-10-05  David S. Miller  <davem@davemloft.net>
1802
1803         * config/sparc/sparc.opt (POPC): New option.
1804         * doc/invoke.texi: Document it.
1805         * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
1806         default on Niagara-2 and later.
1807         * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
1808         * config/sparc/sparc.md (SIDI): New mode iterator.
1809         (ffsdi2): Delete commented out pattern and comments.
1810         (popcount<mode>2, clz<mode>2): New expanders.
1811         (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
1812         *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
1813
1814 2011-10-06  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1815
1816         PR middle-end/50607
1817         * c-tree.h (c_expr_t): New typedef for struct c_expr.
1818         (C_EXPR_APPEND): New macro.
1819         * c-parser.c (c_parser_get_builtin_args): Preserve
1820         original_tree_code of c_expr structure.
1821         (c_parser_postfix_expression): Adjust to the new function.
1822
1823 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1824
1825         * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
1826         if profiling after the prologue.
1827
1828 2011-10-05  Jakub Jelinek  <jakub@redhat.com>
1829
1830         PR tree-optimization/50613
1831         * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
1832         operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
1833         and if it is neither that not SSA_NAME, give up.
1834
1835 2011-10-05  Richard Henderson  <rth@redhat.com>
1836
1837         * tree-vect-generic.c (vector_element): Never fail.  Use
1838         build_zero_cst.  Tidy up type references.
1839         (lower_vec_shuffle): Never fail.  Mask shuffle indicies.  Reduce
1840         code duplication.  Do update_stmt here ...
1841         (expand_vector_operations_1): ... not here.
1842
1843         * config/i386/i386.c (ix86_expand_vshuffle): Never fail.  Handle
1844         TARGET_XOP.  Fix pshufb constant vector creation.  Reduce code
1845         duplication.  Handle V2DI without SSE4.1.
1846         * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
1847         * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
1848
1849 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
1850
1851         * config/i386/i386.c (distance_non_agu_define): Simplify calculation
1852         of "found".  Simplify return value calculation.
1853         (distance_agu_use): Ditto.
1854
1855 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1856
1857         PR bootstrap/50621
1858         * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
1859         if the function was not shrink-wrapped.
1860         (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
1861         to an insn.
1862         * function.c (thread_prologue_and_epilogue_insns): Make sure the
1863         shrink_wrapped flag is set even if there is no dump file.
1864
1865 2011-10-05  DJ Delorie  <dj@redhat.com>
1866             Nick Clifton  <nickc@redhat.com>
1867
1868         * config/rx/rx.opt (mpid): Define.
1869         * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
1870         (MULTILIB_DIRNAMES): Add pid.
1871         * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
1872         (rx_num_interrupt_regs): New variable.
1873         (rx_gp_base_regnum): New function.  Returns the number of the
1874         small data area register.
1875         (rx_pid_base_regnum): New function.  Returns the number of the pid
1876         base register.
1877         (rx_decl_for_addr): New function.  Returns the symbolic part of a MEM.
1878         (rx_pid_data_operand): New function.  Returns whether an object is
1879         in the position independent data area.
1880         (rx_legitimize_address): New function.  Puts undecided PID
1881         objects in the PID data area.
1882         (rx_is_legitimate_address): Add support for PID operands.
1883         (rx_print_operand_address): Likewise.
1884         (rx_print_operand): Likewise.
1885         (rx_maybe_pidify_operand): New function.  Determine if an operand
1886         is suitable for PID addressing.
1887         (rx_gen_move_template): Add PID support.
1888         (rx_conditional_register_usage): Likewise.
1889         (rx_option_override): Initialise rx_num_interrupt_regs.
1890         (rx_is_legitimate_constant): Add support for PID constants.
1891         (TARGET_LEGITIMIZE_ADDRESS): Define.
1892         * config/rx/constraints.md (Rpid): Define.
1893         (Rpda): Define.
1894         * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
1895         (tablejump): Add PID support.
1896         (mov<>): Likewise.
1897         (mov<>_internal): Likewise.
1898         (addsi3): Convert to an expander.  Add PID support.
1899         (pid_addr): New pattern.
1900         * config/rx/rx.h (CPP_SPEC): Define.
1901         (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
1902         (CASE_VECTOR_PC_RELATIVE): Define.
1903         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
1904         * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
1905         * doc/invoke.texi (RX Options): Document -mpid command line option.
1906
1907 2011-10-05  Richard Guenther  <rguenther@suse.de>
1908
1909         PR tree-optimization/38885
1910         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
1911         from constants.
1912
1913 2011-10-05  Bernd Schmidt  <bernds@codesourcery.com>
1914
1915         * doc/invoke.texi (-fshrink-wrap): Document.
1916         * opts.c (default_options_table): Add it.
1917         * common.opt (fshrink-wrap): Add.
1918         * function.c (emit_return_into_block): Remove useless declaration.
1919         (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
1920         requires_stack_frame_p, gen_return_pattern): New static functions.
1921         (emit_return_into_block): New arg simple_p.  All callers changed.
1922         Use gen_return_pattern.
1923         (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
1924         * config/i386/i386.md (return): Expand into a simple_return.
1925         (simple_return): New expander):
1926         (simple_return_internal, simple_return_internal_long,
1927         simple_return_pop_internal_long, simple_return_indirect_internal):
1928         Renamed from return_internal, return_internal_long,
1929         return_pop_internal_long and return_indirect_internal; changed to use
1930         simple_return.
1931         * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
1932         simple returns.
1933         (ix86_pad_returns): Likewise.
1934         * function.h (struct rtl_data): Add member shrink_wrapped.
1935         * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
1936         are not jumps or sibcalls can't be compared.
1937
1938 2011-10-05  Richard Guenther  <rguenther@suse.de>
1939
1940         * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
1941         vector type.
1942         (simplify_unary_expression): Handle BIT_FIELD_REFs.
1943         (try_to_simplify): Handle BIT_FIELD_REFs.
1944
1945 2011-10-05  Georg-Johann Lay  <avr@gjlay.de>
1946
1947         * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
1948         * config/avr/avr.c (avr_out_addto_sp): New function.
1949         (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
1950         * config/avr/avr.md (adjust_len): Add "addto_sp".
1951         (*movhi_sp): Remove insn.
1952         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
1953
1954 2011-10-05  Richard Guenther  <rguenther@suse.de>
1955
1956         * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
1957         with an embedded expression valueize and fold that as well.
1958         * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
1959         results from gimple_fold_stmt_to_constant_1.
1960
1961 2011-10-05  Nick Clifton  <nickc@redhat.com>
1962
1963         * config/rx/rx.md (tablejump): Add missing label.
1964         (adddi3_internal): Mark operand 0 as early-clobbered.
1965         (smaxsi3): Revert previous delta.
1966         (adc_internal): Fix whitespace in generated asm.
1967         (adc_flags): Likewise.
1968
1969 2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1970
1971         * expmed.c (expand_mult_highpart_optab): Replace optab_handler
1972         with the new widening_optab_handler.
1973
1974 2011-10-05  Richard Guenther  <rguenther@suse.de>
1975
1976         PR tree-optimization/50609
1977         * gimple-fold.c (fold_array_ctor_reference): Also handle
1978         vector typed constructors.
1979         (fold_ctor_reference): Dispatch to fold_array_ctor_reference
1980         for vector typed constructors.
1981
1982 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
1983
1984         * config/i386/i386.c (ix86_emit_binop): New static function.
1985         (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
1986         instructions.
1987         (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
1988
1989 2011-10-04  David S. Miller  <davem@davemloft.net>
1990
1991         * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
1992         UNSPEC_XMUL): New unspecs.
1993         (muldi3_v8plus): Use output_v8plus_mult.
1994         (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
1995         New VIS 3.0 combiner patterns.
1996         (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
1997         fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
1998         umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
1999         xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
2000         builtins patterns.
2001         * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
2002         (output_v8plus_mult): New function.
2003         * config/sparc/sparc-protos.h: Declare it.
2004         * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
2005         __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
2006         __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
2007         * doc/extend.texi: Document new builtins.
2008
2009 2011-10-04  Richard Henderson  <rth@redhat.com>
2010
2011         * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
2012         Avoid save_expr unless two_arguments.
2013
2014 2011-10-04  Ozkan Sezer  <sezeroz@gmail.com>
2015
2016         * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
2017         * config/i386/mingw32.h (CPP_SPEC): Likewise.
2018
2019 2011-10-04  David S. Miller  <davem@davemloft.net>
2020
2021         * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
2022         under Linux.
2023
2024 2011-10-04  Jakub Jelinek  <jakub@redhat.com>
2025
2026         PR tree-optimization/50604
2027         * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
2028         fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
2029         last argument to memcpy has size_type_node type instead of ssizetype.
2030         * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
2031         instead of TREE_TYPE (len) as type for newlen.
2032
2033         PR tree-optimization/50522
2034         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
2035         TYPE_RESTRICT.
2036         (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
2037         unconditionally.
2038
2039         * fold-const.c (fold_unary_loc): Don't optimize
2040         POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
2041         casting the inner pointer if it isn't TYPE_RESTRICT.
2042         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
2043         casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
2044
2045 2011-10-04  Joseph Myers  <joseph@codesourcery.com>
2046
2047         * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
2048
2049 2011-10-04  Jan Hubicka  <jh@suse.cz>
2050
2051         * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
2052         * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
2053         * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
2054         * lto-cgraph.c (order_base): New static var.
2055         (lto_output_node): Stream in order.
2056         (lto_output_varpool_node): Stream out order.
2057         (input_node): Stream in order.
2058         (input_varpool_node): Stream out order.
2059         (input_cgraph_1): Initialize order base; update call of
2060         lto_input_toplevel_asms.
2061
2062 2011-10-04  Georg-Johann Lay  <avr@gjlay.de>
2063
2064         PR target/50566
2065         * config/avr/avr-protos.h (avr_legitimize_reload_address): New
2066         prototype.
2067         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
2068         from here...
2069         * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
2070         function.  Log if avr_log.legitimize_reload_address.
2071
2072 2011-10-04  Eric Botcazou  <ebotcazou@adacore.com>
2073
2074         * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
2075
2076 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2077
2078         * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
2079         variables.  Fix second operand of DR.  Swap inputs for sdiv_qrnnd.
2080
2081 2011-10-03  David S. Miller  <davem@davemloft.net>
2082
2083         * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
2084         GSR_REG an input operand to UNSPEC instead of a parallel USE.
2085         (faligndata<V64I:mode>_vis): Likewise and use DI mode.
2086         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
2087         Reference GSR_REG in DI mode, simplify convoluted expressions by using
2088         zero_extract.
2089         (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
2090
2091 2011-10-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
2092
2093         * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
2094
2095 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
2096             Ian Lance Taylor  <iant@google.com>
2097
2098         * godump.c (go_output_typedef): Support printing enum values that
2099         don't fit in a signed HOST_WIDE_INT.
2100
2101 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
2102
2103         * config/cris/cris.c (cris_output_addr_const_extra): Make static.
2104         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2105         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2106         * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
2107
2108 2011-10-03  Anatoly Sokolov  <aesok@post.ru>
2109
2110         * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
2111         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2112         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2113         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
2114
2115 2011-10-03  Steve Ellcey  <sje@cup.hp.com>
2116
2117         PR target/49967
2118         * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
2119         (gcc_cv_ld_static_option): Ditto.
2120         (gcc_cv_ld_dynamic_option): Ditto.
2121         * configure: Regenerate.
2122
2123 2011-10-03  David S. Miller  <davem@davemloft.net>
2124
2125         * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
2126         and 'si' patterns which describe the GSR changes explicitly in the
2127         RTL using zero_extract.
2128         (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
2129
2130         * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
2131         GSR_REG in a USE, since it's now a true arg to the UNSPEC.
2132
2133 2011-10-03  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
2134
2135         * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
2136         if given expression can be expanded by the target.
2137         (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
2138         using target vector instructions.
2139         * optabs.h: New optab vshuffle.
2140         (expand_vec_shuffle_expr_p): New prototype.
2141         (expand_vec_shuffle_expr): New prototype.
2142         (vshuffle_optab): New optab.
2143         * genopinit.c: Adjust to support vecshuffle.
2144         * c-tree.h (c_build_vec_shuffle_expr): New prototype.
2145         * expr.c (expand_expr_real_2): Adjust.
2146         * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
2147         recognizing the cases of two and three arguments.
2148         (convert_arguments) (build_binary_op)
2149         (scalar_to_vector) (build_array_ref): Spurious whitespace.
2150         * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
2151         * tree.def: New tree code VEC_SHUFFLE_EXPR.
2152         * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
2153         * tree-vect-generic.c (vector_element): New function. Returns an
2154         element of the vector at the given position.
2155         (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
2156         by the backend or expand an expression piecewise.
2157         (expand_vector_operations_1): Adjusted.
2158         (gate_expand_vector_operations_noop): New gate function.
2159         * Makefile.in (tree-vect-generic.o): New include.
2160         * gimple.c (get_gimple_rhs_num_ops): Adjust.
2161         * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
2162         * passes.c: Move veclower down.
2163         * tree-pretty-print.c (dump_generic_node): Recognize
2164         VEC_SHUFFLE_EXPR as valid expression.
2165         * c-parser.c (c_parser_get_builtin_args): Helper function for the
2166         builtins with variable number of arguments.
2167         (c_parser_postfix_expression): Use a new helper function for
2168         RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
2169         * tree-ssa-operands: Adjust.
2170         * c-family/c-common.c: New __builtin_shuffle keyword.
2171         * c-family/c-common.h: New __builtin_shuffle keyword.
2172         * gcc/doc/extend.texi: Adjust.
2173
2174         * gcc/config/i386/sse.md: (sseshuffint) New mode_attr.  Correspondence
2175         between the vector and the type of the mask when shuffling.
2176         (vecshuffle<mode>): New expansion.
2177         * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
2178         * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
2179         (ix86_vectorize_builtin_vec_perm_ok): Adjust.
2180
2181 2011-10-03  Jakub Jelinek  <jakub@redhat.com>
2182
2183         PR tree-optimization/50587
2184         * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
2185         arg0 is not a SSA_NAME.
2186
2187 2011-10-03  Richard Sandiford  <rdsandiford@googlemail.com>
2188
2189         * ipa-inline-analysis.c (MAX_TIME): Update comment.
2190
2191 2011-10-02  Richard Henderson  <rth@redhat.com>
2192             David S. Miller  <davem@davemloft.net>
2193
2194         * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
2195         conditional insn type setting, we always emit a shift.
2196         (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
2197         (*lshrsi3_extend): Rename to *lshrsi3_extend1.
2198         * config/sparc/predicates.md (const_one_operand): Delete.
2199
2200 2011-10-02  Gerald Pfeifer  <gerald@pfeifer.com>
2201
2202         * invoke.texi (SPARC Options): Refer to GNU/Linux.
2203
2204 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
2205
2206         * config/mips/mips.c (mips_frame_barrier): New function.
2207         (mips_expand_prologue): Call it after allocating stack space.
2208         (mips_deallocate_stack): New function.
2209         (mips_expand_epilogue): Call mips_frame_barrier and
2210         mips_deallocate_stack.
2211
2212 2011-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
2213
2214         PR target/49696
2215         * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
2216         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
2217         (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
2218
2219 2011-10-02  Jan Hubicka  <jh@suse.cz>
2220
2221         * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
2222
2223         * cgraphunit.c (ipa_passes): Remove unrechable nodes.
2224         * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
2225         * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
2226         functions are reachable when address is taken.
2227         * tree-sra.c (modify_function): Free dominance info.
2228
2229 2011-10-02  Jan Hubicka  <jh@suse.cz>
2230
2231         * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
2232
2233         * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
2234         (reset_inline_summary): New function.
2235         (compute_inline_parameters, inline_node_removal_hook,
2236         inline_edge_removal_hook): Use it.
2237         (inline_free_summary): Reset holders correctly.
2238         (inline_generate_summary): Free summary before computing it.
2239
2240 2011-10-02  Paolo Carlini  <paolo.carlini@oracle.com>
2241
2242         PR preprocessor/36819
2243         * incpath.c (merge_include_chains): Call free_path on
2244         heads[QUOTE] and tails[QUOTE].
2245
2246 2011-10-02  Jan Hubicka  <jh@suse.cz>
2247
2248         PR lto/47247
2249         * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
2250         when resolution is already availbale from plugin.
2251         (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
2252         * cgraph.c (ld_plugin_symbol_resolution): Add
2253         prevailing_def_ironly_exp.
2254         * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
2255         * ipa.c (varpool_externally_visible_p): IRONLY variables are never
2256         externally visible.
2257         * varasm.c (resolution_to_local_definition_p): Add
2258         LDPR_PREVAILING_DEF_IRONLY_EXP.
2259         (resolution_local_p): Likewise.
2260
2261 2011-10-01  David S. Miller  <davem@davemloft.net>
2262
2263         * config/sparc/sparc.opt (VIS3): New option.
2264         * doc/invoke.texi: Document it.
2265         * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
2266         not capable of such instructions.
2267         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
2268         to 0x300 when TARGET_VIS3.
2269         * config/sparc/sparc-modes.def: Create 16-byte vector modes.
2270         * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
2271         UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
2272         (V64N8, VASS): New mode iterators.
2273         (vis3_shift, vis3_addsub_ss): New code iterators.
2274         (vbits, vconstr): New mode attributes.
2275         (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
2276         (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
2277         fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
2278         fmean16_vis, fpadd64_vis, fpsub64_vis,
2279         <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
2280         VIS 3.0 instruction patterns.
2281         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
2282         default when targetting capable cpus.  TARGET_VIS3 implies
2283         TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
2284         (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
2285         (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
2286         is ignored.
2287         * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
2288         __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
2289         __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
2290         __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
2291         __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
2292         __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
2293         __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
2294         __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
2295         * doc/extend.texi: Document new VIS 3.0 builtins.
2296
2297 2011-10-01  Eric Botcazou  <ebotcazou@adacore.com>
2298
2299         * ira-color.c (assign_hard_reg): Fix typo.
2300
2301 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
2302
2303         * doc/extend.texi: Add missing ','.
2304
2305 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
2306
2307         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
2308         Enable -fmodulo-sched at -O2 and above.
2309         * config/c6x/c6x.md (doloop_end): New expander.
2310         (mvilc, sploop, spkernel, loop_end): New patterns.
2311         (loop_end with memory destination splitter): New.
2312         * config/c6x/c6x.c: Include "hw-doloop.h".
2313         (enum unitreqs): New.
2314         (unit_req_table): New typedef.
2315         (unit_reqs): New static variable.
2316         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
2317         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
2318         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
2319         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
2320         (struct c6x_sched_context): New member last_scheduled_iter0.
2321         (init_sched_state): Initialize it.
2322         (c6x_variable_issue): Update it.
2323         (sploop_max_uid_iter0): New static variable.
2324         (c6x_sched_reorder_1): Be careful about issuing sploop.
2325         (c6x_reorg): Call c6x_hwlooops before the final schedule.
2326
2327 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
2328
2329         PR target/50566
2330         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
2331         * config/avr/avr.c (avr_address_cost): Use it.
2332         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
2333         (avr_log_vadump): Unknown %-codes finish printing.
2334
2335 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
2336
2337         PR inline-asm/50571
2338         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
2339         input constraints allow mem and not reg, pass true instead of
2340         false as second argument to maybe_fold_reference.
2341
2342         PR tree-optimization/46309
2343         * fold-const.c (make_range, merge_ranges): Remove prototypes.
2344         (make_range_step): New function.
2345         (make_range): Use it.
2346         * tree.h (make_range_step): New prototypes.
2347         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
2348         * tree-ssa-reassoc.c: Include diagnostic-core.h.
2349         (struct range_entry): New type.
2350         (init_range_entry, range_entry_cmp, update_range_test,
2351         optimize_range_tests): New functions.
2352         (reassociate_bb): Call optimize_range_tests.
2353
2354 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
2355             Richard Guenther  <rguenther@suse.de>
2356
2357         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
2358         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
2359         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
2360         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
2361         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
2362         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
2363
2364 2011-09-30  Jan Beulich  <jbeulich@suse.com>
2365
2366         * lto-cgraph.c (output_cgraph): Remove processing of
2367         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
2368         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
2369         lto_input_toplevel_asms() instead.
2370         * lto-section-in.c (lto_section_name): Add "asm" entry.
2371         * lto-streamer-in.c (lto_input_toplevel_asms): New.
2372         * lto-streamer-out.c (lto_output_toplevel_asms): New.
2373         * lto-streamer.h (LTO_minor_version): Bump.
2374         (enum lto_section_type): Add LTO_section_asm.
2375         (struct lto_asm_header): New.
2376         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
2377         * tree-streamer.h (streamer_write_string_cst): Declare.
2378         * tree-streamer-out.c (write_string_cst): Rename to
2379         streamer_write_string_cst and make global. Handle incoming string
2380         being NULL.
2381         (streamer_write_tree_header): Adjust call to renamed function.
2382
2383 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
2384
2385         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
2386         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
2387         modulo_last_stage): New static variables.
2388         (set_modulo_params, discard_delay_pairs_above): New functions.
2389         (struct delay_pair): New member stages.
2390         (htab_i2_traverse, htab_i1_traverse): New static functions.
2391         (record_delay_slot_pair): New arg stages.  All callers changed.
2392         Record it.
2393         (pair_delay): Take stages into account.
2394         (add_delay_dependencies): Don't do so for stage pairs.
2395         (struct sched_block_state): New member modulo_epilogue.
2396         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
2397         (unschedule_insns_until): Decrease modulo_insns_scheduled.
2398         Set HARD_DEP without using or.
2399         (resolve_dependencies): New static function.
2400         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
2401         If it is true, allow only insns with INSN_EXACT_TICK set.
2402         (schedule_block): Return bool, always true for normal scheduling,
2403         true or false depending on modulo scheduling success otherwise.
2404         Add bookkeeping for modulo scheduling, and call resolve_dependencies
2405         on everything left over after a modulo schedule.
2406         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
2407         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
2408         declarations.
2409         (set_modulo_params, discard_delay_pairs_above): Declare.
2410         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
2411         * doc/invoke.texi (--param): Document it.
2412
2413         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
2414         New arg modulo_scheduling.  All callers changed.  Move note handling
2415         code here from schedule_ebbs.
2416         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
2417         out of schedule_ebbs.
2418         (schedule_ebbs): Call them.  Remove note handling code moved to
2419         schedule_ebb.
2420         * sched-int.h (schedule_ebb, schedule_ebbs_init,
2421         schedule_ebbs_finish): Declare.
2422
2423 2011-09-30  Richard Guenther  <rguenther@suse.de>
2424
2425         PR middle-end/50574
2426         * tree-cfg.c (verify_gimple_comparison): Compare component
2427         mode sizes for vector comparisons.
2428
2429 2011-09-30  Revital Eres  <revital.eres@linaro.org>
2430
2431         * ddg.c (autoinc_var_is_used_p): New function.
2432         (create_ddg_dep_from_intra_loop_link,
2433         add_cross_iteration_register_deps): Call it.
2434         * ddg.h (autoinc_var_is_used_p): Declare.
2435         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
2436         (sms_schedule): Handle instructions with REG_INC.
2437
2438 2011-09-30  Revital Eres  <revital.eres@linaro.org>
2439
2440         * modulo-sched.c (generate_reg_moves): Skip instructions that
2441         do not set a register and verify no regmoves are created for
2442         !single_set instructions.
2443
2444 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
2445
2446         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
2447         insns.
2448
2449 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2450
2451         PR target/50099
2452         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
2453         (qhs_zextenddi_op): New.
2454         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
2455         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
2456         Distinguish between ARM and Thumb2 states.
2457
2458 2011-09-30  David S. Miller  <davem@davemloft.net>
2459
2460         * config/sparc/sparc.opt (VIS2): New option.
2461         * doc/invoke.texi: Document it.
2462         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
2463         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
2464         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
2465         (define_attr type): New insn type 'edgen'.
2466         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
2467         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
2468         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
2469         patterns.
2470         * niagara.md: Handle edgen.
2471         * niagara2.md: Likewise.
2472         * ultra1_2.md: Likewise.
2473         * ultra3.md: Likewise.
2474         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
2475         to 0x200 when TARGET_VIS2.
2476         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
2477         default when targetting capable cpus.  TARGET_VIS2 implies
2478         TARGET_VIS, clear and it when TARGET_FPU is disabled.
2479         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
2480         (sparc_expand_builtin): Fix predicate indexing when builtin returns
2481         void.
2482         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
2483         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
2484         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
2485         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
2486         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
2487         * doc/extend.texi: Document new VIS 2.0 builtins.
2488
2489 2011-09-29  Nick Clifton  <nickc@redhat.com>
2490             Bernd Schmidt  <bernds@codesourcery.com>
2491
2492         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
2493         * config/frv/frvend.c: Likewise.
2494         * config/frv/frv.c (frv_function_prologue): Move misplaced
2495         CALL_ARG_LOCATION notes back to their proper locations.
2496
2497 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
2498
2499         PR target/50566
2500         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
2501         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
2502         from avr_rtx_costs.
2503         (avr_legitimate_address_p): Use avr_edump to print log information
2504         filtered by avr_log.
2505         (extra_constraint_Q): Ditto.
2506         (avr_legitimize_address): Ditto.
2507         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
2508         (final_prescan_insn): Use avr_log.rtx_costs as filter.
2509
2510 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
2511
2512         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
2513         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
2514         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
2515         NEON vector and structure modes to be tied.
2516
2517 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2518
2519         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
2520         forward declaration.
2521         (remove_duplicate_close_phi): Detect and repair creation of
2522         duplicate close-phis for a containing loop.
2523
2524 2011-09-27   Andi Kleen <ak@linux.intel.com>
2525
2526         * gcc.c (get_local_tick). Rename to get_random_number.  Read from
2527         /dev/urandom.  Add getpid call.
2528         (compare_debug_dump_opt_spec_function): Drop getpid call.
2529
2530 2011-09-26   Andi Kleen <ak@linux.intel.com>
2531
2532         * toplev.c (init_local_tick): Try reading random seed
2533         from /dev/urandom.
2534
2535 2011-09-26   Andi Kleen <ak@linux.intel.com>
2536
2537         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
2538         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
2539         Handle numerical random seed.
2540         * lto-streamer.h (lto_file_decl_data): Change id to
2541         unsigned HOST_WIDE_INT.
2542         * toplev.c (random_seed): Add.
2543         (init_random_seed): Change for numerical random seed.
2544         (get_random_seed): Return as HOST_WIDE_INT.
2545         (set_random_seed): Crc32 existing string.
2546         * toplev.h (get_random_seed): Change to numercal return.
2547         * tree.c (get_file_function_name): Remove CRC. Handle
2548         numerical random seed.
2549
2550 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
2551
2552         PR target/50566
2553         * config.gcc (extra_objs): Add avr-log.o for $target in:
2554         avr-*-rtems*, avr-*-*.
2555         * config/avr/t-avr (avr-log.o): New rule to compile...
2556         * config/avr/avr-log.c: ...this new file.
2557         * config/avr/avr.opt (mlog=): New option.
2558         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
2559         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
2560         (avr_log_set_avr_log): New prototype.
2561         (avr_log_t): New typedef.
2562         (avr_log): New declaration.
2563         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
2564
2565 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2566
2567         * expr.c (do_store_flag): Expand vector comparison by
2568         building an appropriate VEC_COND_EXPR.
2569         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
2570         (c_objc_common_truthvalue_conversion): Adjust.
2571         * tree-vect-generic.c (do_compare): Helper function.
2572         (expand_vector_comparison): Check if hardware supports
2573         vector comparison of the given type or expand vector piecewise.
2574         (expand_vector_operation): Treat comparison as binary
2575         operation of vector type.
2576         (expand_vector_operations_1): Adjust.
2577
2578 2011-09-29  Richard Guenther  <rguenther@suse.de>
2579
2580         * tree.c (build_opaque_vector_type): Make opaque vectors
2581         variant types of the corresponding non-opaque type.  Make
2582         sure to share opaque vector types properly.
2583
2584 2011-09-29  David S. Miller  <davem@davemloft.net>
2585
2586         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
2587         UNSPEC_ARRAY32): New unspec.
2588         (define_attr type): New type 'array'.
2589         (array{8,16,32}<P:mode>_vis): New patterns.
2590         * config/sparc/ultra1_2.md: Add reservations for 'array'.
2591         * config/sparc/ultra3.md: Likewise.
2592         * config/sparc/niagara.md: Likewise.
2593         * config/sparc/niagara2.md: Likewise.
2594         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
2595         array builtins.
2596         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
2597         __vis_array32): New.
2598         * doc/extend.texi: Document new VIS builtins.
2599
2600         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
2601         (VIS pixel-compare insn): Just use <gcond:name>.
2602
2603         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
2604         code iterator used, so just use <code>.  There are two mode iterators
2605         so explicitly use <GCM:gcm_name>.
2606
2607 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
2608
2609         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
2610         Darwin >= 9.
2611
2612 2011-09-28  David S. Miller  <davem@davemloft.net>
2613
2614         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
2615         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
2616         (UNSPEC_FCMP): New unspec.
2617         (gcond): New code iterator.
2618         (gcond_name): New code attr.
2619         (GCM): New mode iterator.
2620         (gcm_name): New mode attr.
2621         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
2622
2623 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
2624
2625         PR target/49486
2626         * config/sh/sh.md (negdi2): Move expansion into split to
2627         allow more combination options.  Add T_REG clobber.
2628         (abssi2): New expander.
2629         (*negdi2, *abssi2, *negabssi2): New insns.
2630         (cneg): Change from insn to insn_and_split.  Rename to
2631         negsi_cond.  Add alternative for non-SH4.
2632
2633 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
2634
2635         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
2636         (neon_move_hi_quad_<mode>): Likewise.
2637         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
2638
2639 2011-09-28  Nick Clifton  <nickc@redhat.com>
2640
2641         * config/rx/predicates.md (rx_minmax_operand): New predicate.
2642         Accepts immediates and a restricted subset of MEMs.
2643         * config/rx/rx.md (int_modes): New iterator.
2644         (smaxsi3, sminsi3): Delete and replace with...
2645         (smax<int_mode>3, smin<int_mode>3): New patterns.
2646         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
2647
2648 2011-09-28  Richard Guenther  <rguenther@suse.de>
2649
2650         PR middle-end/50460
2651         * fold-const.c (try_move_mult_to_index): Handle &a.array the
2652         same as &a.array[0].
2653
2654 2011-09-28  Kai Tietz  <ktietz@redhat.com>
2655
2656         * configure.ac: Add test for new section attribute
2657         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
2658         * config.in: Regenerated.
2659         * configure: Regenerated.
2660         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
2661         new section flag "e" for excluded sections, if supported.
2662         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
2663
2664 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
2665
2666         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
2667         throughout file.
2668
2669 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
2670
2671         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
2672         throughout file.
2673
2674 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
2675
2676         * output.h (SECTION_EXCLUDE): New macro.
2677         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
2678
2679 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
2680
2681         * fwprop.c (forward_propagate_and_simplify): After checking
2682         reg/subreg combinations, check whether the modes are the same.
2683
2684 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
2685             Richard Sandiford  <rdsandiford@googlemail.com>
2686
2687         * config/mips/mips.c (mips_add_cfa_restore): New function.
2688         (mips16e_save_restore_reg): Use it.
2689         (mips_restore_reg): Likewise.  Split double FPRs for
2690         REG_CFA_RESTORE notes.
2691
2692 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
2693
2694         PR middle-end/50386
2695         PR middle-end/50326
2696         * tree-sra.c (build_ref_for_model): Use the type of the field as
2697         the type of the COMPONENT_REF.
2698
2699 2011-09-27  Jeff Law  <law@redhat.com>
2700
2701         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
2702         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
2703         (find_if_case_1): Use the probability of the THEN clause when
2704         determining if speculation is profitable.
2705         (find_if_case_2): Similarly for the ELSE clause.
2706
2707 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
2708
2709         * common.opt: Add -foptimize-strlen option.
2710         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
2711         (tree-sssa-strlen.o): Add dependencies.
2712         * opts.c (default_options_table): Enable -foptimize-strlen
2713         by default at -O2 if not -Os.
2714         * passes.c (init_optimization_passes): Add pass_strlen
2715         after pass_object_sizes.
2716         * timevar.def (TV_TREE_STRLEN): New timevar.
2717         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
2718         * tree-pass.h (pass_strlen): Declare.
2719         * tree-ssa-strlen.c: New file.
2720         * c-decl.c (merge_decls): If compatible stpcpy prototype
2721         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
2722
2723 2011-09-27  Tom de Vries  <tom@codesourcery.com>
2724
2725         PR middle-end/43864
2726         * tree-ssa-tail-merge.c: New file.
2727         (struct same_succ_def): Define.
2728         (same_succ, const_same_succ): New typedef.
2729         (struct bb_cluster_def): Define.
2730         (bb_cluster, const_bb_cluster): New typedef.
2731         (struct aux_bb_info): Define.
2732         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
2733         (gvn_uses_equal): New function.
2734         (same_succ_print, same_succ_print_traverse, update_dep_bb)
2735         (stmt_update_dep_bb, local_def, same_succ_hash)
2736         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
2737         (same_succ_reset): New function.
2738         (same_succ_htab, same_succ_edge_flags)
2739         (deleted_bbs, deleted_bb_preds): New var.
2740         (debug_same_succ): New function.
2741         (worklist): New var.
2742         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
2743         (init_worklist, delete_worklist, delete_basic_block_same_succ)
2744         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
2745         (print_cluster, debug_cluster, update_rep_bb)
2746         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
2747         (all_clusters): New var.
2748         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
2749         (merge_clusters, set_cluster): New function.
2750         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
2751         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
2752         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
2753         (find_clusters_1, find_clusters): New function.
2754         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
2755         (update_bbs): New var.
2756         (apply_clusters): New function.
2757         (update_debug_stmt, update_debug_stmts): New function.
2758         (tail_merge_optimize): New function.
2759         tree-pass.h (tail_merge_optimize): Declare.
2760         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
2761         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
2762         (tree-ssa-tail-merge.o): New rule.
2763         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
2764         default at OPT_LEVELS_2_PLUS.
2765         * tree-ssa-sccvn.c (vn_valueize): Move to ...
2766         * tree-ssa-sccvn.h (vn_valueize): Here.
2767         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
2768         * common.opt (ftree-tail-merge): New switch.
2769         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
2770         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
2771         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
2772         (-ftree-tail-merge, max-tail-merge-comparisons)
2773         (max-tail-merge-iterations): New item.
2774
2775 2011-09-27  Jan Hubicka  <jh@suse.cz>
2776
2777         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
2778
2779 2011-09-27  Jan Hubicka  <jh@suse.cz>
2780
2781         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
2782         parameters passed by reference; handle loads from non-SSA scalars
2783         and update comments.
2784
2785 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
2786
2787         PR rtl-optimization/50249
2788         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
2789         instead of opnum and type.  All callers changed.  Remove useless
2790         declaration.
2791         Search forward for other reloads of the same type for the same operand
2792         using the same register; if any are found, return false.
2793         (reload_regs_reach_end_p): Same argument changes; all callers changed.
2794
2795 2011-09-27  Andi Kleen  <ak@linux.intel.com>
2796             Jan Hubicka  <jh@suse.cz>
2797
2798         * doc/invoke.texi (ffat-lto-objects): Document.
2799         * toplev.c (compile_file): Do not output assembly when doing slim lto;
2800         Output __gnu_slim_lto when doing slim lto.
2801         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
2802         (cgraph_optimize): Return early when doing slim lto.
2803         * opts.c (finish_options): Complain about lack of linker plugin
2804         when doing slim lto.
2805         * common.opt (ffat-lto-objects): New.
2806
2807 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
2808
2809         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
2810         between signed and unsigned.
2811
2812 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
2813
2814         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
2815         vectorization.
2816         (vectorizable_type_promotion): Likewise.
2817         (vect_analyze_stmt): Call vectorizable_type_demotion and
2818         vectorizable_type_promotion for basic blocks.
2819         (supportable_widening_operation): Don't assume loop vectorization.
2820         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
2821         basic blocks.  Update vectorization factor for basic block
2822         vectorization.
2823         (vect_analyze_slp_instance): Allow multiple types for basic block
2824         vectorization.  Recheck unrolling factor after construction of SLP
2825         instance.
2826
2827 2011-09-27  Richard Guenther  <rguenther@suse.de>
2828
2829         * tree-object-size.c (compute_object_sizes): Fix dumping of
2830         folded statement.
2831
2832 2011-09-27  Richard Guenther  <rguenther@suse.de>
2833
2834         PR tree-optimization/50363
2835         * tree-ssa-pre.c (create_expression_by_pieces): Handle
2836         pointer conversions in POINTER_PLUS_EXPRs properly.
2837
2838 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
2839
2840         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
2841         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
2842         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
2843         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
2844         that produce subreg moves.  Define using VQX iterators.
2845
2846 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
2847
2848         * config/avr/avr.md (ashrqi3): Split alternative "n"
2849         into its remaining parts C03, C04, C05, C06, C07 and describe
2850         impact in CC by attribute "cc" appropriately.
2851         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
2852         by digging RTX.
2853
2854 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
2855
2856         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
2857         from 3 x MAX_MACHINE_MODE.
2858         (CONSTM1_RTX): Define.
2859         * emit-rtl.c (const_tiny_rtx): Change into array of
2860         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
2861         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
2862         CONSTM1_RTX.
2863         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
2864         MODE_VECTOR_INT modes.
2865         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
2866         Optimize if one operand is CONSTM1_RTX.
2867         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
2868         into mask | x.
2869
2870 2011-09-26  David S. Miller  <davem@davemloft.net>
2871
2872         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
2873         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
2874         * config/sparc/visintrin.h: Update edge and pixel-compare
2875         intrinsics to return 'long' instead of 'int'.
2876         * doc/extend.texi: Update documentation to match.
2877         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
2878         flat, allow any instruction.  Otherwise, when V9 allow parallels
2879         which consist only of sets to registers outside of %o0 to %o5.
2880         (sparc_vis_init_builtins): Update VIS builtin types for edge
2881         and pixel-compare.
2882
2883         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
2884         is enabled, mark %gsr as global.
2885         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
2886         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
2887
2888         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
2889         which will now define __VIS and __VIS__ when -mvis is enabled.
2890         * config/sparc/t-sparc: Likewise.
2891         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
2892         and add t-sparc to tmake_file for all sparc targets.
2893         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
2894         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
2895
2896         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
2897         builtins for VIS vector addition and subtraction.
2898         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
2899         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
2900         __vis_fpsub32, __vis_fpsub32s): New.
2901         * doc/extend.texi: Document new VIS intrinsics.
2902
2903 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2904
2905         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
2906         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
2907         EQ/NE comparisons against +/-1 in the case of unused-after,
2908         non-ld-regs target.
2909
2910 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
2911
2912         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
2913         gctx.into_ssa after push_gimplify_context.
2914
2915         * gimple.c (gimple_build_call_valist): New function.
2916         * gimple.h (gimple_build_call_valist): New prototype.
2917         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
2918         (update_gimple_call): Likewise.
2919         (update_call_from_tree): Use finish_update_gimple_call.
2920         * tree-ssa-propagate.h (update_gimple_call): New prototype.
2921
2922 2011-09-26  Richard Guenther  <rguenther@suse.de>
2923
2924         PR tree-optimization/50472
2925         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
2926         volatile references.
2927
2928 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
2929
2930         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
2931         * target.def: (addr_space_subset_p): Likewise.
2932
2933 2011-09-26  Tom de Vries  <tom@codesourcery.com>
2934
2935         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
2936         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
2937         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
2938         of new var.
2939
2940 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2941
2942         PR target/50465
2943         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
2944         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
2945         output_reload_insisf.
2946         (adjust_len): Set default to "no".
2947         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
2948         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
2949         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
2950         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
2951         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
2952         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
2953         *lshrsi3_const): Set attribute "adjust_len".
2954         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
2955         (output_movsisf): Don't pass insn to output_reload_insisf.
2956         (adjust_insn_length): Handle new alternatives to adjust_len.
2957         Remove handling of ADJUST_LEN_YES.  Clean-up code.
2958
2959 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
2960
2961         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
2962         may_trap_p to detect loads that may trap of fault.
2963
2964 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2965
2966         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
2967         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
2968         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
2969         prototype.
2970         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
2971         * config/avr/avr.c: Rename output_reload_insisf_1 to
2972         output_reload_in_const.
2973         (avr_popcount_each_byte): Handle SFmode, too.
2974         (output_reload_in_const): Change so it can handle HI loads, too.
2975         Use avr_popcount_each_byte to work out if scratch register must be
2976         created on the fly.
2977         (output_reload_inhi): Rewrite using output_reload_in_const and...
2978         (output_movhi): ...use it to print constants' loads.
2979         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
2980
2981 2011-09-25  David S. Miller  <davem@davemloft.net>
2982
2983         * config/sparc/constraints.md (C, P, Z): New constraints for
2984         const_doube, const_int, and const_vector "all ones" values.
2985         Make unused constraint letters comment match reality.
2986         * config/sparc/predicates.md (const_all_ones_operand,
2987         register_or_zero_or_all_ones_operand): New predicates.
2988         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
2989         as well as zero constants when VIS.
2990         (sparc_legitimate_constant_p): Likewise.
2991         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
2992         (movsf_insn): Likewise
2993         (movdi_insn_sp64): Add fone alternative.
2994         (movdf_insn_sp32_v9): Likewise.
2995         (movdf_insn_sp64): Likewise.
2996
2997         * configure.ac: Add feature check to make sure the assembler
2998         supports the FMAF, HPC, and VIS 3.0 instructions found on
2999         Niagara-3 and later cpus.
3000         * configure: Rebuild.
3001         * config.in: Likewise.
3002         * config/sparc/sparc.opt: New option '-mfmaf'.
3003         * config/sparc/sparc.md: Add float fused multiply-add patterns.
3004         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
3005         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
3006         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
3007         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
3008         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
3009         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
3010         disabled.
3011         (sparc_rtx_costs): Handle 'FMA'.
3012         * doc/invoke.texi: Document -mfmaf.
3013
3014 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
3015
3016         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
3017         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
3018         DECL_BY_REFERENCE parameters.
3019
3020 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
3021
3022         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
3023         if there is no outgoing edge.
3024
3025         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
3026         integral types.
3027
3028 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
3029
3030         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
3031         of vect_analyze_bb here.
3032         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
3033
3034 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
3035
3036         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
3037         Allow not simple iv if analyzing basic block.
3038         (create_data_ref): Update call to dr_analyze_innermost.
3039         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
3040         * tree-loop-distribution.c (generate_memset_zero): Likewise.
3041         * tree-predcom.c (find_looparound_phi): Likewise.
3042         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
3043
3044 2011-09-24  David S. Miller  <davem@davemloft.net>
3045
3046         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
3047         (SPARC_GSR_REG): Define.
3048         (FIXED_REGISTERS): Mark GSR as fixed.
3049         (CALL_USED_REGISTERS): Mark GSR as call used.
3050         (HARD_REGNO_NREGS): GSR is always 1 register.
3051         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
3052         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
3053         (REGISTER_NAMES): Add "%gsr".
3054         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
3055         (UNSPEC_WRGSR): New unspec.
3056         (GSR_REG): New constant.
3057         (type): Add new insn type 'gsr'.
3058         (fpack16_vis, fpackfix_vis, fpack32_vis,
3059         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
3060         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
3061         rdgsr_v8plus): New expanders and insns.
3062         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
3063         using patterns which show that this is a plus in addition to a
3064         modification of GSR_REG, instead of an unspec.
3065         * config/sparc/ultra1_2.md: Handle 'gsr'.
3066         * config/sparc/ultra3.md: Likewise.
3067         * config/sparc/niagara.md: Likewise.
3068         * config/sparc/niagara2.md: Likewise.
3069         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
3070         end of table.
3071         (sparc_option_override): Make -mvis imply -mv8plus.
3072         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
3073         for %gsr.
3074         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
3075         __builtin_vis_read_gsr.
3076         (sparc_expand_buildin): Handle builtins that take one argument and
3077         return void.
3078         (sparc_fold_builtin): Never fold writes to %gsr.
3079         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
3080         * doc/extend.texi: Document new VIS intrinsics.
3081
3082 2011-09-23  Jan Hubicka  <jh@suse.cz>
3083
3084         * ipa-inline-transform.c (inline_call): Add comment.
3085         * ipa-inline.h (inline_param_summary): New structure and vector.
3086         (struct inline_edge_summary): Add param field.
3087         * ipa-inline-analysis.c (CHANGED): New constant.
3088         (add_clause): Handle CHANGED and NOT_CONSTANT.
3089         (predicate_probability): New function.
3090         (dump_condition): Dump CHANGED predicate.
3091         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
3092         of unknown function wide invariant.
3093         (evaluate_conditions_for_edge): Handle change probabilities.
3094         (inline_edge_duplication_hook): Copy param summaries.
3095         (inline_edge_removal_hook): Free param summaries.
3096         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
3097         sizes; dump param summaries.
3098         (will_be_nonconstant_predicate): Use CHANGED predicate.
3099         (record_modified_bb_info): New structure.
3100         (record_modified): New function.
3101         (param_change_prob): New function.
3102         (estimate_function_body_sizes): Compute param summaries.
3103         (estimate_edge_size_and_time): Add probability argument.
3104         (estimate_node_size_and_time): Add inline_param_summary argument;
3105         handle predicate probabilities.
3106         (remap_predicate): Fix formating.
3107         (remap_edge_change_prob): New function.
3108         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
3109         (remap_edge_predicates): ... this one.
3110         (inline_merge_summary): Remap edge summaries; handle predicate
3111         probabilities; remove param summaries after we are done.
3112         (do_estimate_edge_time): Update.
3113         (do_estimate_edge_growth): Update.
3114         (read_inline_edge_summary): Read param info.
3115         (inline_read_summary): Fix formating.
3116         (write_inline_edge_summary): Write param summaries.
3117
3118 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
3119
3120         * config/i386/i386.c (ix86_print_operand): Handle %~.
3121         (ix86_print_operand_punct_valid_p): Return true also for '~'.
3122         * config/i386/sse.md (i128): New mode_attr.
3123         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
3124         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
3125         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
3126         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
3127         patterns, use "<sseinsnmode>" for "mode" attribute.
3128         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
3129         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
3130         %~128 in the patterns, use "OI" for "mode" attribute.
3131
3132 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
3133
3134         PR target/50447
3135         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
3136         "tstsi", "compare".
3137         (*cmpqi_sign_extend): Use s8_operand.
3138         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
3139         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
3140         prototypes.
3141         (out_tsthi, out_tstsi): Remove prototypes.
3142         (avr_out_tsthi, avr_out_tstsi): New prototypes.
3143         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
3144         (avr_asm_len): Negative length now sets *plen to -length.
3145         (compare_sign_p): Return bool instead of int.
3146         (compare_diff_p, compare_eq_p): Ditto and make static.
3147         (avr_out_tsthi): New function.
3148         (avr_out_tstsi): New function.
3149         (avr_out_compare): New function.
3150         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
3151         ADJUST_LEN_COMPARE.
3152
3153 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
3154
3155         PR target/50447
3156         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
3157         (addsi3): Rewrite using QI scratch register.  Adjust text
3158         peepholes using plus:SI.
3159         (*addsi3_zero_extend.hi): New insn.
3160         (*subsi3_zero_extend.hi): New insn.
3161         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
3162         (*subsi3_zero_extend): Ditto.
3163         (subsi3): Change predicate #2 to register_operand.
3164         * config/avr/avr-protos.h (avr_out_plus): New prototype.
3165         (avr_out_plus_1): New static function.
3166         (avr_out_plus): New function.
3167         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
3168
3169 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
3170
3171         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
3172         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
3173
3174 2011-09-23  Ian Lance Taylor  <iant@google.com>
3175
3176         * godump.c (go_define): Treat a single character in single quotes,
3177         or a string, as an operand.
3178
3179 2011-09-23  Martin Jambor  <mjambor@suse.cz>
3180
3181         * ipa-prop.h (jump_func_type): Updated comments.
3182         (ipa_known_type_data): New type.
3183         (ipa_jump_func): Use it to describe known type jump functions.
3184         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
3185         reflect the new known type jump function contents.
3186         (compute_known_type_jump_func): Likewise.
3187         (combine_known_type_and_ancestor_jfs): Likewise.
3188         (try_make_edge_direct_virtual_call): Likewise.
3189         (ipa_write_jump_function): Likewise.
3190         (ipa_read_jump_function): Likewise.
3191         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
3192         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
3193         (propagate_accross_jump_function): Likewise.
3194
3195 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
3196
3197         PR target/50446
3198         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
3199         (rotlqi3_4): Turn insn into expander.
3200         (*rotlqi3): New insn.
3201         (rotlhi3, rotlsi3): Support rotate left/right by 1.
3202         (*rotlhi2.1, *rotlhi2.15): New insns.
3203         (*rotlsi2.1, *rotlsi2.31): New insns.
3204         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
3205
3206 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
3207
3208         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
3209
3210 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3211
3212         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
3213
3214 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3215
3216         * reload.c (find_reloads): Set operand_mode to Pmode for address
3217         operands consisting of just a CONST_INT.
3218
3219 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
3220
3221         PR target/50482
3222         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
3223         blendv, force op_true to register if it doesn't satisfy
3224         nonimmediate_operand predicate.
3225
3226 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
3227
3228         PR middle-end/50113
3229         PR middle-end/50061
3230         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
3231         get the locate.where_pad value for register-only arguments.
3232         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
3233         (arm_pad_reg_upward): Handle null types.
3234
3235 2011-09-22  Jan Hubicka  <jh@suse.cz>
3236
3237         * ipa-inline-analysis.c: Fix overly long lines.
3238
3239 2011-09-22  Jan Hubicka  <jh@suse.cz>
3240
3241         * ipa-inline-transform.c (inline_call): Always update jump functions
3242         after inlining.
3243         * ipa-inline.c (ipa_inline): Likewise; do not call
3244         ipa_create_all_structures_for_iinln.
3245         (ipa_inline): Always free jump functions.
3246         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
3247         (remap_edge_predicates): Fix pasto.
3248         (inline_merge_summary): Remove nlined edge predicate; remove hack.
3249         (inline_analyze_function): Always initialize jump functions.
3250         (inline_generate_summary): Likewise.
3251         (inline_write_summary): Always write jump functions when ipa-cp
3252         is not doing that.
3253         (inline_read_summary): Always read jump functions when ipa-cp
3254         is not doing that.
3255         * ipa-prop.c (iinlining_processed_edges): Remove.
3256         (update_indirect_edges_after_inlining): Do not use
3257         iinlining_processed_edges; instead set param_index to -1.
3258         (propagate_info_to_inlined_callees): Only try to indirect inlining
3259         when asked to do so; update jump functions of indirect calls, too;
3260         remove jump functions of the inlined edge.
3261         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
3262         (ipa_create_all_structures_for_iinln): Remove.
3263         (ipa_free_all_structures_after_iinln): Do not free
3264         iinlining_processed_edges.
3265         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
3266
3267 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
3268
3269         * config/arm/predicates.md (expandable_comparison_operator): New
3270         predicate, extracted from...
3271         (arm_comparison_operator): ...here.
3272         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
3273         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
3274         (movdfcc): Use expandable_comparison_operator.
3275
3276 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
3277
3278         PR target/50447
3279         PR target/50465
3280         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
3281         (avr_popcount_each_byte): New prototype.
3282         * config/avr/avr.c (avr_popcount): New static function.
3283         (avr_popcount_each_byte): New function.
3284         (avr_out_bitop): New function.
3285         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
3286         avr_out_bitop.  Cleanup code.
3287         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
3288         (Ca4, Co4, Cx4): New constraints.
3289         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
3290         alternative.
3291         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
3292         (andsi3, iorsi3, xorsi3): Ditto.
3293         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
3294
3295 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
3296
3297         PR tree-optimization/50451
3298         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
3299         constant operands in reduction.
3300         (vect_get_slp_defs): Don't create vector operand for NULL scalar
3301         operand.
3302
3303 2011-09-22  David S. Miller  <davem@davemloft.net>
3304
3305         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
3306         fpack16, fpack32, fpackfix as const.
3307
3308         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
3309         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
3310         constants.  Use them everywhere.
3311
3312 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
3313
3314         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
3315         Added AND special case.  Adapted comments.
3316         (sh_rtx_costs): Added XOR and IOR case.
3317
3318 2011-09-21  Jan Hubicka  <jh@suse.cz>
3319
3320         * ipa-inline-analsis.c (compute_inline_parameters): Set
3321         cfun and current_function_decl.
3322
3323 2011-09-21  Jan Hubicka  <jh@suse.cz>
3324
3325         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
3326         handled components in parameter of builtin_constant_p.
3327         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
3328
3329 2011-09-21  Jan Hubicka  <jh@suse.cz>
3330
3331         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
3332         * ipa-inline.h (estimate_edge_time): Fix pasto.
3333         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
3334
3335 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
3336
3337         * config/i386/i386.c (ix86_expand_sse_movcc): Use
3338         blendvps, blendvpd and pblendvb if possible.
3339
3340 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
3341
3342         PR target/50464
3343         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
3344         operand 1 predicate to register_operand and operand 2 predicate
3345         to nonimmediate_operand.
3346         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
3347         xop_pcmov, force op_true to register.  Also, force op_false to
3348         register if it doesn't satisfy nonimmediate_operand predicate.
3349
3350 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
3351
3352         * config/i386/bmi2intrin.h (_mulx_u64): New.
3353         (_mulx_u32): Ditto.
3354
3355 2011-09-21  Jan Hubicka  <jh@suse.cz>
3356
3357         PR tree-optimization/50433
3358         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
3359         Use get_base_address.
3360
3361 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
3362
3363         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
3364         nonimmediate_operand instead of register_operand predicate for operands
3365         1 and 2, force them into registers if expanding them as comparison.
3366         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
3367         V8HImode force into register just operand 1.
3368
3369 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
3370
3371         PR target/45099
3372         * config/avr/avr.c (avr_function_arg_advance): Change error to
3373         warning if a fixed register is needed as function argument.
3374
3375 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
3376
3377         PR target/50449
3378         PR target/50465
3379         * config/avr/avr.md (adjust_len): New insn attribute.
3380         (*reload_insi, *reload_insf): Use it.
3381         (*movsi, *movsf): Use new interface of output_movsisf.
3382         * config/avr/avr-protos.h (output_movsisf): Change prototype.
3383         * config/avr/avr.c (output_movsisf): Ditto.
3384         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
3385         lengths of insns *reload_insi, *reload_insf.
3386         (output_reload_insisf_1): New static function.
3387         (output_reload_insisf): Use it.
3388
3389 2011-09-21  David S. Miller  <davem@davemloft.net>
3390
3391         * config/sparc/sparc.c (def_builtin): Change from macro into function.
3392         (def_builtin_const): New.
3393         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
3394         other than alignaddr and falignaddr.
3395
3396         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
3397         UNSPEC_FCMPEQ): New unspec codes.
3398         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
3399         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
3400         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
3401         new pixel compare VIS patterns.
3402         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
3403         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
3404         __vis_fcmpeq16, __vis_fcmpeq32): New.
3405         * doc/extend.texi: Document new pixel compare VIS intrinsics.
3406
3407 2011-09-21  Tom de Vries  <tom@codesourcery.com>
3408
3409         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
3410
3411 2011-09-20  David S. Miller  <davem@davemloft.net>
3412
3413         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
3414         (aligneddrl<P:mode>_vis): New pattern.
3415         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
3416         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
3417         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
3418         alignaddrl insn, and adjust edge operations for updated types.
3419         * config/sparc/visintrin.h: Likewise.
3420         * doc/extend.texi: Make typing in VIS documentation match reality.
3421
3422 2011-09-20  Terry Guo  <terry.guo@arm.com>
3423
3424         * config/arm/arm-arches.def: Add armv6s-m.
3425         * config/arm/arm-tables.opt: Regenerate.
3426
3427 2011-09-20  Wei Guozhi  <carrot@google.com>
3428
3429         PR rtl-optimization/49452
3430         * postreload.c (reload_combine): Invalidate use information when across
3431         volatile insn.
3432
3433 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
3434
3435         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
3436         Remove maintenance overhead.
3437         (haifa_sched_init, sched_finish): Update.
3438
3439 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
3440
3441         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
3442         to calculate unit, prefix_rep and prefix_data16 attributes.
3443         (*mov<mode>_internal): Ditto for unit attribute.
3444         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
3445         (*movv2sf_internal): Ditto.
3446         * config/i386/sse.md (VI1248_256): Remove mode iterator.
3447         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
3448         (*avx2_eq<mode>3): Ditto.
3449         (avx2_gt<mode>3): Ditto.
3450
3451 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
3452
3453         * config/i386/i386.md (maxmin): New code iterator.
3454         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
3455         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
3456         code iterator.
3457         (*avx2_<maxmin:code><mode>3): Macroize isn from
3458         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
3459         maxmin code iterator.
3460         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
3461         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
3462         <umaxmin:code>v16qi3.
3463
3464 2011-09-19  Alan Modra  <amodra@gmail.com>
3465             Michael Meissner  <meissner@linux.vnet.ibm.com>
3466
3467         PR target/50341
3468         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
3469         split the load of the indirect function's TOC from the call to
3470         prevent the compiler from moving the load of the new TOC above
3471         code that references the current function's TOC.
3472         (call_indirect_aix<ptrsize>_internal): Ditto.
3473         (call_indirect_aix<ptrsize>_nor11): Ditto.
3474         (call_indirect_aix<ptrsize>_internal2): Ditto.
3475         (call_value_indirect_aix<ptrsize>): Ditto.
3476         (call_value_indirect_aix<ptrsize>_internal): Ditto.
3477         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
3478         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
3479
3480 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
3481
3482         * config/i386/sse.md (*sse4_1_extractps): Change into
3483         define_insn_and_split, add =x 0 n and =x x n alternatives
3484         and split them after reload.
3485
3486 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
3487
3488         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
3489
3490 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
3491
3492         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
3493
3494 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
3495
3496         PR tree-optimization/50413
3497         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
3498         a basic block if one of its data-refs can't be analyzed.
3499
3500 2011-09-19  Paul Brook  <paul@codesourcery.com>
3501
3502         * config/arm/predicates.md (shift_amount_operand): Check constant
3503         shift count is in range.
3504         (const_shift_operand): Remove.
3505
3506 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
3507             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
3508
3509         PR target/50091
3510         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
3511         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
3512
3513 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
3514
3515         * config/i386/bmiintrin.h: Remove tmp.
3516         * config/i386/tbmintrin.h: Likewise.
3517
3518 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
3519
3520         PR tree-optimization/50414
3521         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
3522         MIN_EXPR.
3523
3524 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
3525
3526         PR tree-optimization/50412
3527         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
3528         acceses that require epilogue loop if vectorizing outer loop.
3529
3530 2011-09-17  David S. Miller  <davem@davemloft.net>
3531
3532         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
3533         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
3534         New unspecs.
3535         (define_attr type): New type 'edge'.
3536         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
3537         edge32l_vis): New patterns.
3538         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
3539         * config/sparc/ultra3.md: Likewise.
3540         * config/sparc/niagara.md: Likewise.
3541         * config/sparc/niagara2.md: Likewise.
3542         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
3543         builtins for VIS edge instructions.
3544         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
3545         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
3546         intrinsics.
3547         (__v8qi, __v4qi): Make unsigned.
3548         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
3549         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
3550         __vis_fpack32): Fix types.
3551         * doc/extend.texi: Document new 'edge' VIS intrinsics.
3552
3553         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
3554         divide costs.
3555         (niagara3_costs): New.
3556         (sparc_option_override): Use it.
3557         * gcc/config/sparc/niagara2.md: Adjust with more accurate
3558         Niagara-3 reservations.
3559
3560 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
3561
3562         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
3563         (sse2_avx, sseinsnmode): Add V2TI.
3564         (REDUC_SMINMAX_MODE): New mode iterator.
3565         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
3566         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
3567         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
3568         (sse2_lshrv1ti3): Rename to...
3569         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
3570         iterator.  Move before umaxmin expanders.
3571         * config/i386/i386.h (VALID_AVX256_REG_MODE,
3572         SSE_REG_MODE_P): Accept V2TImode.
3573         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
3574         V16HImode, V8SImode and V4DImode.
3575
3576         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
3577         and V4DImode.
3578         (ix86_build_signbit_mask): Likewise.
3579         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
3580         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
3581         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
3582         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
3583         (<code><mode>3) ... this.
3584         (avx2_<code><mode>3 smaxmin expand): Rename to...
3585         (<code><mode>3) ... this.
3586         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
3587         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
3588         VI8_AVX2 mode iterator.
3589         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
3590         VI8_AVX2 mode iterator.
3591         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
3592         New expanders.
3593
3594 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
3595
3596         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
3597         throughout file.
3598
3599 2011-09-16  David S. Miller  <davem@davemloft.net>
3600
3601         * config/sparc/visintrin.h: New file.
3602         * config.gcc: Add it to extra_headers on sparc.
3603
3604 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
3605
3606         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
3607         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
3608         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
3609         reduc_smin_v4sf): Adjust callers.
3610         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
3611         New expanders.
3612
3613         * config/i386/sse.md (vec_extract_hi_<mode>,
3614         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
3615         vextracti128 instead of vextractf128 for -mavx2 and
3616         integer vectors.  For V4DFmode fix up mode attribute.
3617         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
3618         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
3619         instead of V8SF mode attribute.
3620         (avx2_extracti128): Change into define_expand.
3621         * config/i386/i386.c (ix86_expand_vector_extract): Handle
3622         32-byte vector modes if TARGET_AVX.
3623
3624 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
3625
3626         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
3627         (umulqi3_highpart, smulqi3_highpart): Ditto.
3628         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
3629         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
3630         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
3631
3632 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
3633
3634         PR target/50358
3635         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
3636         (*maddqi4, *maddqi4.const): New insns.
3637         (*msubqi4, *msubqi4.const): New insns.
3638         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
3639         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
3640         HImode by 1 in the case of multiplying with a CONST_INT.
3641         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
3642
3643 2011-09-15   Jan Hubicka  <jh@suse.cz>
3644
3645         PR lto/50430
3646         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
3647         error_mark_node in the DECL_INITIAL of vtable.
3648
3649 2011-09-15   Diego Novillo  <dnovillo@google.com>
3650
3651         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
3652         @SYSROOT_CFLAGS_FOR_TARGET@.
3653         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
3654         * configure: Regenerate.
3655         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
3656         Remove setting of GCC_UNDER_TEST.
3657
3658 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
3659
3660         * config/i386/i386.c (output_fp_compare): Return %v prefixed
3661         instruction mnemonics for TARGET_AVX.
3662
3663         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
3664         "type" attribute calculation.
3665         (*movdf_internal): Ditto.
3666         (*movsf_internal): Ditto.
3667
3668 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
3669
3670         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
3671
3672 2011-09-15  Jason Merrill  <jason@redhat.com>
3673
3674         PR c++/50361
3675         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
3676
3677 2011-09-15  Jan Hubicka  <jh@suse.cz>
3678
3679         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
3680         simplify obviously true clauses.
3681         (and_predicates, or_predicates): Add conditions parameter.
3682         (inline_duplication_hoook): Update.
3683         (mark_modified): New function.
3684         (unmodified_parm): New function.
3685         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
3686         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
3687         Use unmodified_parm.
3688         (estimate_function_body_sizes): Update.
3689         (remap_predicate): Update.
3690
3691 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
3692
3693         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
3694         read-after-read dependencies in basic block SLP.
3695
3696 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3697
3698         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
3699         throughout file.
3700
3701 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3702
3703         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
3704         throughout file.
3705
3706 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3707
3708         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
3709         throughout file.
3710
3711 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3712
3713         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
3714         throughout file.
3715         * config/rs6000/constraints.md: Likewise.
3716
3717 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3718
3719         * config/microblaze/microblaze.md: Use match_test rather than
3720         eq/ne symbol_ref throughout file.
3721
3722 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3723
3724         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
3725         throughout file.
3726
3727 2011-09-14  Tom de Vries  <tom@codesourcery.com>
3728
3729         PR middle-end/50251
3730         * explow.c (emit_stack_restore): Set crtl->need_drap if
3731         stack_restore is emitted.
3732
3733 2011-09-14  Julian Brown  <julian@codesourcery.com>
3734
3735         * config/arm/arm.c (arm_override_options): Add unaligned_access
3736         support.
3737         (arm_file_start): Emit attribute for unaligned access as appropriate.
3738         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
3739         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
3740         (insv, extzv): Add unaligned-access support.
3741         (extv): Change to expander. Likewise.
3742         (extzv_t1, extv_regsi): Add helpers.
3743         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
3744         (unaligned_storesi, unaligned_storehi): New.
3745         (*extv_reg): New (previous extv implementation).
3746         * config/arm/arm.opt (munaligned_access): Add option.
3747         * config/arm/constraints.md (Uw): New constraint.
3748         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
3749         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
3750         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
3751         volatile accesses when -fstrict-volatile-bitfields is in effect.
3752         (extract_bit_field_1): Likewise.
3753
3754 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
3755
3756         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
3757         a scalar integer before applying integer-only optimisations to
3758         inner arithmetic.
3759
3760 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
3761
3762         * config/mips/mips.c (mips_expand_epilogue): Generate a
3763         simple_return only if the return address is in r31.
3764
3765 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
3766
3767         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
3768         NULL for a jump that is a cc0 insn, pick the previous insn for
3769         move_before.
3770
3771 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3772
3773         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
3774         throughout file.
3775
3776 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3777
3778         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
3779         throughout file.
3780
3781 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3782
3783         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
3784         symbol_ref throughout file.
3785
3786 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3787
3788         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
3789         throughout file.
3790
3791 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3792
3793         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
3794         throughout file.
3795
3796 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
3797
3798         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
3799         throughout file.
3800         * config/arm/neon.md: Likewise.
3801         * config/arm/vfp.md: Likewise.
3802         * config/arm/thumb2.md: Likewise.
3803         * config/arm/cortex-m4.md: Likewise.
3804
3805 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
3806
3807         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
3808         define_insn patterns for combine.
3809
3810 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
3811
3812         * reorg.c: Always define make_return_insns.
3813
3814 2011-09-13  Jan Hubicka  <jh@suse.cz>
3815
3816         PR other/49533
3817         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
3818
3819 2011-09-13  Jan Hubicka  <jh@suse.cz>
3820
3821         PR other/49533
3822         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
3823
3824 2011-09-13  Paul Brook  <paul@codesourcery.com>
3825
3826         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3827         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
3828         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
3829         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
3830         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
3831         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
3832         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
3833         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
3834         enabling unwind tables.
3835         (c6x_debug_unwind_info): New function.
3836         (TARGET_ARM_EABI_UNWINDER): Define.
3837         (TARGET_DEBUG_UNWIND_INFO): Define.
3838         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
3839         (TARGET_EXTRA_CFI_SECTION): Remove.
3840         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
3841         * ginclude/unwind-arm-common.h: New file.
3842
3843 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
3844
3845         PR target/50358
3846         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
3847         * config/avr/avr.md: (extend_s): New code attribute.
3848         (mul_r_d): New code attribute.
3849         (*maddqihi4, *umaddqihi4): New insns.
3850         (*msubqihi4, *umsubqihi4): New insns.
3851         (*usmaddqihi4, *sumaddqihi4): New insns.
3852         (*usmsubqihi4, *susubdqihi4): New insns.
3853         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
3854         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
3855         (*umsubqihi4.uconst.ashift): New insn-and-split.
3856         (*msubqihi4.sconst.ashift): New insn-and-split.
3857         (*sumaddqihi4.uconst): New insn-and-split.
3858         (*sumsubqihi4.uconst): New insn-and-split.
3859         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
3860         PLUS:HI and MINUS:HI.
3861
3862 2011-09-13  Revital Eres  <revital.eres@linaro.org>
3863
3864         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
3865         (optimize_sc): Adjust call to remove_node_from_ps.
3866         (sms_schedule): Add print info.
3867
3868 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
3869
3870         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
3871         flags specially.
3872
3873 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3874
3875         PR bootstrap/50010
3876         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
3877         NOTE_INSN_CFI notes, with the exception of
3878         NOTE_INSN_SWITCH_TEXT_SECTIONS.
3879
3880 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
3881             Richard Sandiford  <rdsandiford@googlemail.com>
3882
3883         * config/mips/mips.c (mips_epilogue): New structure.
3884         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
3885         restoring registers.
3886         (mips_epilogue_emit_cfa_restores): New function.
3887         (mips_epilogue_set_cfa): Likewise.
3888         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
3889         the current CFA register from the stack, redefine the CFA in terms
3890         of the stack pointer.
3891         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
3892         to the epilogue instructions.
3893
3894 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
3895
3896         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
3897         argument.
3898         (mips16e_build_save_restore): Update accordingly.
3899
3900 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3901
3902         PR rtl-optimization/50212
3903         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
3904         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
3905
3906         PR debug/50299
3907         * calls.c (load_register_parameters): Use use_reg_mode instead
3908         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
3909         entry.
3910         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
3911         for stack CALL_INSN_FUNCTION_USAGE uses.
3912         * expr.h (use_reg_mode): New prototype.
3913         (use_reg): Changed into inline around use_reg_mode.
3914         * expr.c (use_reg): Renamed to...
3915         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
3916         mode to that mode instead of VOIDmode.
3917         * var-tracking.c (prepare_call_arguments): Don't track parameters
3918         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
3919         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
3920         EXPR_LIST mode.
3921
3922 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
3923
3924         PR target/43746
3925         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
3926         (progmem_section): New Variable.
3927         (avr_asm_init_sections): Initialize it.
3928         (TARGET_ASM_SELECT_SECTION): Define to...
3929         (avr_asm_select_section): ... this new Function.
3930         (avr_replace_prefix): New Function.
3931         (avr_asm_function_rodata_section): Use it.
3932         (avr_insert_attributes): Don't add section attribute for PROGMEM.
3933         (avr_section_type_flags): Use avr_progmem_p instead of section
3934         name to detect if object is in PROGMEM.
3935         (avr_asm_named_section): Set section name prefix for objects in
3936         PROGMEM.
3937
3938 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
3939
3940         PR bootstrap/50352
3941         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
3942         sprintf format string.
3943
3944 2011-09-12  Richard Guenther  <rguenther@suse.de>
3945
3946         PR tree-optimization/50343
3947         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
3948         that the reduction is over an SSA name before checking its definition.
3949
3950 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
3951
3952         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
3953         throughout file.
3954
3955 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
3956
3957         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
3958         throughout file.
3959         * config/mips/sb1.md: Likewise.
3960         * config/mips/predicates.md: Replace (match_test "!...")
3961         with (not (match_test "..."))
3962         * config/mips/constraints.md: Likewise.
3963
3964 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
3965
3966         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
3967         * config/arm/arm-tables.opt: Regenerate.
3968         * config/arm/arm-tune.md: Regenerate.
3969         * config/arm/arm.c (arm_file_start): Output .arch directive when
3970         user passes -mcpu=generic-*.
3971         (arm_issue_rate): Add genericv7a support.
3972         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
3973         (ASM_CPU_SPEC): New define.
3974         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
3975         * config/arm/semi.h (ASM_SPEC): Likewise.
3976         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
3977         and -mtune=generic-*.
3978
3979 2011-09-09  Richard Guenther  <rguenther@suse.de>
3980
3981         PR tree-optimization/50328
3982         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
3983         constant or default-def operand.
3984
3985 2011-09-09  Richard Guenther  <rguenther@suse.de>
3986
3987         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
3988         last statement.
3989
3990 2011-09-09  Richard Guenther  <rguenther@suse.de>
3991
3992         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
3993         instead of a statement.
3994         * gimple-fold.c (fold_stmt_inplace): Likewise.
3995         * sese.c (graphite_copy_stmts_from_block): Adjust.
3996         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
3997         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
3998         fold_stmt.
3999         (forward_propagate_addr_into_variable_array_index): Likewise.
4000         (forward_propagate_addr_expr_1): adjust.
4001         (associate_plusminus): Likewise.
4002         (ssa_forward_propagate_and_combine): Likewise.
4003         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
4004         (execute_cse_reciprocals): Likewise.
4005         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
4006
4007 2011-09-09  Nick Clifton  <nickc@redhat.com>
4008
4009         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
4010         Return a positive value to indicate that the bits at the
4011         bottom of the register should be cleared.
4012
4013 2011-09-09  Richard Guenther  <rguenther@suse.de>
4014
4015         * tree-ssa-operands.c (swap_tree_operands): Always adjust
4016         existing operand positions.
4017
4018 2011-09-09  Richard Guenther  <rguenther@suse.de>
4019
4020         PR middle-end/50333
4021         * tree-data-ref.c (split_constant_offset): Do not try to handle
4022         ternary ops.
4023
4024 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
4025
4026         PR tree-optimization/50318
4027         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
4028         typo in use of mult_rhs1 and mult_rhs2.
4029
4030 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
4031
4032         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
4033         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
4034
4035 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
4036
4037         * config/arm/arm.md (push_multi): Emit predicates.
4038         (push_fp_multi): Likewise.
4039         * config/arm/arm.c (vfp_output_fstmd): Likewise.
4040
4041 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
4042
4043         PR c++/33255 - Support -Wunused-local-typedefs warning
4044         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
4045         (pushdecl): Use the new record_locally_defined_typedef.
4046         (store_parm_decls): Allocate cfun->language.
4047         (finish_function): Use the new maybe_warn_unused_local_typedefs,
4048         and free cfun->language.
4049         (c_push_function_context): Allocate cfun->language here only if needed.
4050         (c_pop_function_context): Likewise, mark cfun->language
4051         for collection only when it should be done.
4052         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
4053         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
4054         maybe_record_local_typedef_use.
4055         * doc/invoke.texi: Update documentation for
4056         -Wunused-local-typedefs.
4057
4058 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
4059
4060         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
4061         (ix86_avoid_lea_for_add): Likewise.
4062         (ix86_avoid_lea_for_addr): Likewise.
4063         (ix86_split_lea_for_addr): Likewise.
4064
4065         * config/i386/i386.c (LEA_MAX_STALL): New.
4066         (increase_distance): Likewise.
4067         (insn_defines_reg): Likewise.
4068         (insn_uses_reg_mem): Likewise.
4069         (distance_non_agu_define_in_bb): Likewise.
4070         (distance_agu_use_in_bb): Likewise.
4071         (ix86_lea_outperforms): Likewise.
4072         (ix86_ok_to_clobber_flags): Likewise.
4073         (ix86_avoid_lea_for_add): Likewise.
4074         (ix86_avoid_lea_for_addr): Likewise.
4075         (ix86_split_lea_for_addr): Likewise.
4076         (distance_non_agu_define): Search in pred BBs added.
4077         (distance_agu_use): Search in succ BBs added.
4078         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
4079         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
4080         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
4081
4082         * config/i386/i386.md: Split added to transform non destructive
4083         add into move and add.
4084         (lea_1): transformed into insn_and_split to avoid AGU stalls.
4085         (lea<mode>_2): Likewise.
4086
4087 2011-09-08  Martin Jambor  <mjambor@suse.cz>
4088
4089         PR tree-optimization/50287
4090         * ipa-split.c (split_function): Do not create SSA names for
4091         non-gimple-registers.
4092
4093 2011-09-08  Richard Guenther  <rguenther@suse.de>
4094
4095         PR tree-optimization/19831
4096         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
4097         skip builtins with vdefs that do not really store something.
4098         (propagate_necessity): For calls to free that we can associate
4099         with an allocation function do not mark the freed pointer
4100         definition necessary.
4101         (eliminate_unnecessary_stmts): Remove a call to free if
4102         the associated call to an allocation function is not necessary.
4103
4104 2011-09-08  Richard Guenther  <rguenther@suse.de>
4105
4106         PR tree-optimization/19831
4107         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
4108         allocation functions as necessary.
4109
4110 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
4111
4112         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
4113         cut from ...
4114         (darwin_default_min_version): Amended to provide defaults
4115         for the cross directory case.
4116         (darwin_driver_init): call darwin_default_min_version unconditionally.
4117         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
4118         * config/darwin9.h: Likewise.
4119         * config/darwin10.h: Likewise.
4120         * config/rs6000/darwin7.h: Likewise.
4121
4122 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
4123
4124         PR target/50310
4125         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
4126         code early if TARGET_AVX.
4127         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
4128
4129 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
4130
4131         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
4132         duplicates.
4133
4134         PR target/50310
4135         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
4136         "mode" attribute computation.
4137
4138 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
4139
4140         * regrename.c (struct du_head): Make nregs signed.
4141         (closed_chains): Remove.
4142         (create_new_chain): Return the new chain.
4143         (chain_from_id): New static function.
4144         (dump_def_use_chain): Change argument to be an int, indicating
4145         the first ID to print.  All callers changed.
4146         (merge_overlapping_regs): Use chain_from_id.  Assert that
4147         chains don't conflict with themselves.
4148         (rename_chains): Take no argument.  Iterate over id_to_chain
4149         rather to find chains to rename.  Clear tick before the main loop.
4150         (struct incoming_reg_info): New struct.
4151         (struct bb_rename_info): New struct.
4152         (init_rename_info, set_incoming_from_chain, merge_chains): New
4153         static functions.
4154         (regrename_analyze): New static function, broken out of
4155         regrename_optimize.  Record and make use of open chain information
4156         at basic block boundaries, and merge chains where possible.
4157         (scan_rtx_reg): Make this_nregs signed.  Don't update
4158         closed_chains.
4159         (build_def_use): Return a bool to indicate success.  All callers
4160         changed.  Don't initialize global data here.
4161         (regrename_optimize): Move most code out of here into
4162         regrename_analyze.
4163         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
4164         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
4165         static inline functions.
4166         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
4167
4168         * bb-reorder.c (insert_section_boundary_note): Don't check
4169         optimize_function_for_speed_p.
4170         (gate_handle_partition_blocks): Do it here instead.
4171         (gate_handle_reorder_blocks): Move preliminary checks here ...
4172         (rest_of_handle_reorder_blocks): ... from here.
4173
4174 2011-09-07  Martin Jambor  <mjambor@suse.cz>
4175
4176         PR middle-end/50301
4177         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
4178         function index bounds.
4179         (perhaps_add_new_callers): Likewise.
4180
4181 2011-09-07  Martin Jambor  <mjambor@suse.cz>
4182
4183         PR tree-optimization/49911
4184         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
4185         enumerations to the corresponding plain integer type.
4186
4187 2011-09-07  Richard Guenther  <rguenther@suse.de>
4188
4189         PR tree-optimization/50319
4190         * tree-if-conv.c (set_bb_predicate): Assert we only set
4191         canonical predicates.
4192         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
4193         around canonical predicates.
4194         (predicate_bbs): Do not re-gimplify already canonical
4195         predicates.  Properly unshare them though.
4196         (find_phi_replacement_condition): Simplify.
4197
4198 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
4199
4200         PR target/49030
4201         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
4202         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
4203         reusing the old code from get_arm_condition_code.  Return ARM_NV
4204         for invalid comparison codes.
4205         (get_arm_condition_code): Redefine in terms of
4206         maybe_get_arm_condition_code.
4207         * config/arm/predicates.md (arm_comparison_operator): Use
4208         maybe_get_arm_condition_code.
4209
4210 2011-09-07  Richard Guenther  <rguenther@suse.de>
4211
4212         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
4213         Canonicalize negated predicates by swapping edges.
4214         (forward_propagate_into_cond): Likewise.
4215
4216 2011-09-07  Richard Guenther  <rguenther@suse.de>
4217
4218         PR tree-optimization/50213
4219         * tree-flow.h (simple_iv_increment_p): Declare.
4220         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
4221         POINTER_PLUS_EXPR.
4222         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
4223         not propagate simple IV counter increments.
4224
4225 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
4226             Iain Sandoe  <iains@gcc.gnu.org>
4227
4228         * config/rs6000/rs6000.c (compute_save_world_info): Test
4229         cfun->has_nonlocal_label to determine if the out-of-line save
4230         world call may be used.
4231
4232 2011-09-07  Nick Clifton  <nickc@redhat.com>
4233
4234         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
4235         label on the parallel part of the insn.
4236
4237 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
4238
4239         PR debug/50191
4240         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
4241         avoid_constant_pool_reference first instead of last.
4242
4243 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
4244
4245         * doc/configfiles.texi (Configuration Files): Update documentation
4246         about tm_p.h and remove FIXME comment.
4247
4248 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
4249
4250         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
4251         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
4252
4253 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
4254
4255         * config/darwin10.h Remove duplicate LIB_SPEC.
4256
4257 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
4258
4259         PR middle-end/44382
4260         * target.def (reassociation_width): New hook.
4261
4262         * doc/tm.texi.in (reassociation_width): Likewise.
4263
4264         * doc/tm.texi (reassociation_width): Likewise.
4265
4266         * doc/invoke.texi (tree-reassoc-width): New param documented.
4267
4268         * hooks.h (hook_int_uint_mode_1): New default hook.
4269
4270         * hooks.c (hook_int_uint_mode_1): Likewise.
4271
4272         * config/i386/i386.h (ix86_tune_indices): Add
4273         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
4274
4275         (TARGET_REASSOC_INT_TO_PARALLEL): New.
4276         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
4277
4278         * config/i386/i386.c (initial_ix86_tune_features): Add
4279         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
4280
4281         (ix86_reassociation_width): New function.
4282
4283         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
4284
4285         * tree-ssa-reassoc.c (get_required_cycles): New function.
4286         (get_reassociation_width): Likewise.
4287         (swap_ops_for_binary_stmt): Likewise.
4288         (rewrite_expr_tree_parallel): Likewise.
4289
4290         (rewrite_expr_tree): Refactored.  Part of code moved into
4291         swap_ops_for_binary_stmt.
4292
4293         (reassociate_bb): Now checks reassociation width to be used and
4294         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
4295
4296 2011-09-06  Richard Guenther  <rguenther@suse.de>
4297
4298         PR tree-optimization/47025
4299         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
4300         uses nothing.
4301         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
4302         BUILT_IN_FREE.
4303         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
4304         definitely points to.
4305         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4306         BUILT_IN_VA_START doesn't let its va_list argument escape.
4307         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
4308         not make any previous stores necessary.
4309
4310 2011-09-06  Martin Jambor  <mjambor@suse.cz>
4311
4312         * ipa-inline.h (struct inline_summary): Move versionable flag...
4313         * cgraph.h (struct cgraph_local_info): ...here
4314         * ipa-cp.c (determine_versionability): Use the new versionable flag.
4315         (determine_versionability): Likewise.
4316         (ipcp_versionable_function_p): Likewise.
4317         (ipcp_generate_summary): Likewise.
4318         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
4319         versionable flag.
4320         (compute_inline_parameters): Do not clear the versionable flag.
4321         (inline_read_section): Do not stream the versionable flag.
4322         (inline_write_summary): Likewise.
4323         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
4324         (input_overwrite_node): Likewise.
4325
4326 2011-09-06  Richard Guenther  <rguenther@suse.de>
4327
4328         PR tree-optimization/48149
4329         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
4330         (vn_valueize): Move earlier.
4331         (valueize_expr): Use vn_valueize.
4332         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
4333         operands.
4334         (simplify_unary_expression): Simplify.
4335
4336 2011-09-06  Richard Guenther  <rguenther@suse.de>
4337
4338         PR tree-optimization/48317
4339         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
4340         trailing array.
4341         (sizeof_vn_nary_op): New inline function.
4342         (vn_nary_op_lookup_pieces): Adjust.
4343         (vn_nary_op_insert_pieces): Likewise.
4344         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
4345         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
4346         any number of operands.
4347         (vn_nary_length_from_stmt): New function.
4348         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
4349         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
4350         sized temporary.
4351         (vn_nary_op_lookup): Likewise.
4352         (vn_nary_op_lookup_stmt): Likewise.
4353         (vn_nary_op_insert_into): Likewise.
4354         (vn_nary_op_insert_stmt): Likewise.
4355         (visit_use): Handle CONSTRUCTOR as nary.
4356         * tree-ssa-pre.c (phi_translate_1): Adjust.
4357         (create_expression_by_pieces): Likewise.
4358         (compute_avail): Likewise.
4359
4360 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
4361
4362          * config/arm/arm.c (arm_preferred_simd_mode): Check
4363         TARGET_NEON_VECTORIZE_DOUBLE instead of
4364         TARGET_NEON_VECTORIZE_QUAD.
4365         (arm_autovectorize_vector_sizes): Likewise.
4366         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
4367         mask of mvectorize-with-neon-double.  Add RejectNegative.
4368         (mvectorize-with-neon-double): New.
4369
4370 2011-09-06  Richard Guenther  <rguenther@suse.de>
4371
4372         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
4373
4374 2011-09-06  Tom de Vries  <tom@codesourcery.com>
4375
4376         * recog.c (asm_labels_ok): New function.
4377         (check_asm_operands): Use asm_labels_ok.
4378
4379 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
4380
4381         PR target/49606
4382         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
4383         (PMODE_INSN): New macro.
4384         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
4385         (mips_got_load, mips_expand_synci_loop): Likewise.
4386         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
4387         cprestore patterns.
4388         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
4389         copygp_mips16 patterns.
4390         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
4391         and use_cprestore patterns.
4392         (mips_override_options): Check for incompatible -mabi and -mlong
4393         combinations.
4394         * config/mips/mips.md (unspec_got<mode>): Rename to...
4395         (unspec_got_<mode>): ...this.
4396         (copygp_mips16): Use the Pmode iterator.
4397         (potential_cprestore, cprestore, use_cprestore): Likewise.
4398         (clear_cache, indirect_jump): Use PMODE_INSN.
4399         (indirect_jump<mode>): Rename to...
4400         (indirect_jump_<mode>): ...this.
4401         (tablejump): Use PMODE_INSN.
4402         (tablejump<mode>): Rename to...
4403         (tablejump_<mode>): ...this.
4404         (exception_receiver): Handle restore_gp_si and restore_gp_di.
4405         (restore_gp): Use the Pmode iterator.
4406         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
4407         PMODE_INSN.
4408
4409 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
4410
4411         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
4412         Fix the type of the BIT_AND_EXPR.
4413
4414 2011-09-05  David S. Miller  <davem@davemloft.net>
4415
4416         * config.host: Add driver-sparc.o and sparc/x-sparc on
4417         native sparc*-*-linux* builds.
4418         * config/sparc/driver-sparc.c: Correct Linux strings.
4419         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
4420         * config/sparc/linux64.h: Likewise.
4421         * doc/invoke.texi: Document that Linux also supports
4422         -mcpu=native and -mtune=native on sparc.
4423
4424         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
4425         PROCESSOR_NIAGARA4): New.
4426         * config/sparc/sparc.opt: Handle new processor types.
4427         * config/sparc/sparc.md: Add to "cpu" attribute.
4428         * config/sparc/sparc.h (TARGET_CPU_niagara3,
4429         TARGET_CPU_niagara4): New, treat as niagara2.
4430         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
4431         * config/sparc/sol2.h: Likewise.
4432         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
4433         * config/sparc/sparc.c (sparc_option_override): Add
4434         niagara3 and niagara4 handling.
4435         (sparc32_initialize_trampoline): Likewise.
4436         (sparc64_initialize_trampoline): Likewise.
4437         (sparc_use_sched_lookahead): Likewise.
4438         (sparc_issue_rate): Likewise.
4439         (sparc_register_move_cost): Likewise.
4440         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
4441         and niagara4 as appropriate.
4442         * doc/invoke.texi: Document new processor types.
4443         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
4444         and --with-tune options.
4445
4446         * config/sparc/sol2-64.h: Move ...
4447         * config/sparc/default-64.h: ... to here.  Update comment.
4448         * config.gcc: Update Solaris sparc to use default-64.h, also
4449         prefix this header into the list on sparc64-*-linux.
4450         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
4451         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
4452         to MASK_HARD_QUAD.
4453
4454 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
4455
4456         PR target/50289
4457         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
4458         that contain global register variable.
4459
4460 2011-09-05  Richard Guenther  <rguenther@suse.de>
4461
4462         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
4463
4464 2011-09-05  Richard Guenther  <rguenther@suse.de>
4465
4466         * stor-layout.c (layout_type): Use size_binop for array size
4467         calculations.
4468
4469 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
4470
4471         * config/avr/avr.h (progmem_section): Remove Declaration.
4472         * config/avr/avr.c (progmem_section): Make static and rename to
4473         progmem_swtable_section.
4474         (avr_output_addr_vec_elt): No need to switch sections.
4475         (avr_asm_init_sections): Use output_section_asm_op as section
4476         callback for progmem_swtable_section.
4477         (avr_output_progmem_section_asm_op): Remove Function.
4478         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
4479         (avr_asm_function_rodata_section): New static Function.
4480         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
4481         alignment 2**1 for jump tables.
4482
4483 2011-09-04  Jan Hubicka  <jh@suse.cz>
4484
4485         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
4486         parameter is SSA name.
4487
4488 2011-09-04  Richard Guenther  <rguenther@suse.de>
4489
4490         Revert
4491         2011-08-31  Richard Guenther  <rguenther@suse.de>
4492
4493         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
4494         special-casing.
4495
4496 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
4497
4498         PR debug/49901
4499         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
4500
4501 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
4502             Ira Rosen  <ira.rosen@linaro.org>
4503
4504         PR tree-optimization/50208
4505         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
4506         argument.  Check that def_stmt is inside the loop.
4507         (vect_recog_widen_mult_pattern): Update calls to
4508         vect_handle_widen_mult_by_cons.
4509         (vect_operation_fits_smaller_type): Check that def_stmt is
4510         inside the loop.
4511
4512 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
4513
4514         * tree-vectorizer.c (vect_print_dump_info): Print line
4515         number when dumping to a file.
4516         (vectorize_loops): Add new messages to dump file.
4517
4518 2011-09-03  Martin Jambor  <mjambor@suse.cz>
4519
4520         * ipa-prop.h (ipa_jump_func_t): New typedef.
4521         (struct ipa_edge_args): Removed field argument_count, field
4522         jump_functions turned into a vector.
4523         (ipa_set_cs_argument_count): Removed.
4524         (ipa_get_cs_argument_count): Updated to work on vectors.
4525         (ipa_get_ith_jump_func): Likewise.
4526         * ipa-prop.c (ipa_count_arguments): Removed.
4527         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
4528         jump functions.  Update caller.
4529         (compute_pass_through_member_ptrs): Likewise.
4530         (compute_cst_member_ptr_arguments): Likewise.
4531         (ipa_compute_jump_functions_for_edge): Get number of arguments from
4532         the statement, allocate vector.
4533         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
4534         (duplicate_ipa_jump_func_array): Removed.
4535         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
4536         (ipa_read_node_info): Allocate vector.
4537
4538 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4539
4540         PR middle-end/50232
4541         * config/pa/pa.md (return): Define "return" insn pattern.
4542         (epilogue): Use it when no epilogue is needed.
4543         * config/pa/pa.c (pa_can_use_return_insn): New function.
4544         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
4545
4546 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
4547
4548         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
4549         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
4550         Force at least BITS_PER_UNIT alignment on the new variable.
4551
4552 2011-09-02  Gary Funck <gary@intrepid.com>
4553
4554         * opts.c (print_specific_help): Fix off-by-one compare in
4555         assertion check.
4556         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4557         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
4558         Increase by +5 to allow for more languages.
4559         * optc-gen.awk: Generate #if that ensures that the number of
4560         languages is within the implementation-defined limit.
4561
4562 2011-09-02  Michael Matz  <matz@suse.de>
4563
4564         PR middle-end/50260
4565         * ipa-split.c (split_function): Call add_referenced_var.
4566
4567         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
4568         (cond_if_else_store_replacement_1): Ditto.
4569         * tree-ssa-pre.c (get_representative_for): Ditto.
4570         (create_expression_by_pieces): Ditto.
4571         (insert_into_preds_of_block): Ditto.
4572         * tree-sra.c (create_access_replacement): Ditto.
4573         (get_replaced_param_substitute): Ditto.
4574
4575 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
4576
4577         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
4578         automata_options.
4579         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
4580         (l1w, s1w, l2w, s2w): Define in the main automaton.
4581         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
4582         units.
4583         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
4584         (c6x_unit_names): Add the new units.
4585         (c6x_unit_codes): New static array.
4586         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
4587         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
4588         UNIT_QID_SIDE_OFFSET): New macros.
4589         (RESERVATION_S2): Adjust value.
4590         (c6x_option_override): Compute c6x_unit_codes.
4591         (assign_reservations): Take the unit_mask of the last instruction
4592         into account.  Detect floating point reservations by looking for
4593         the new units.  Don't assign reservations if the field is already
4594         nonzero.
4595         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
4596         (init_sched_state): Initialize it.
4597         (c6x_clear_sched_context): Free it.
4598         (insn_set_clock): Clear reservation.
4599         (prev_cycle_state): New static variable.
4600         (c6x_init_sched_context): Save it.
4601         (c6x_sched_init): Allocate space for it and clear it.
4602         (c6x_sched_dfa_pre_cycle_insn): New static function.
4603         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
4604         (c6x_variable_issue): Only record units in the unit_mask that
4605         were not set at the start of the cycle.
4606         (c6x_variable_issue): Compute and store the unit_mask from the
4607         current state.
4608         (reorg_split_calls): Ensure the new information remains correct.
4609         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
4610         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
4611         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
4612         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
4613         Add special reservations.
4614         * config/c6x/c6x-sched.md: Regenerate.
4615
4616 2011-09-02  Martin Jambor  <mjambor@suse.cz>
4617
4618         * ipa-prop.h (ipa_node_params): Removed fields
4619         called_with_var_arguments and node_versionable.
4620         (ipa_set_called_with_variable_arg): Removed.
4621         (ipa_is_called_with_var_arguments): Likewise.
4622         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
4623         (determine_versionability): Do not check for type attributes and va
4624         builtins.  Record versionability into inline summary.
4625         (initialize_node_lattices): Do not check
4626         ipa_is_called_with_var_arguments.
4627         (propagate_constants_accross_call): Likewise, ignore arguments we do
4628         not have PARM_DECLs for, set variable flag for parameters that were
4629         not passed a value.
4630         (create_specialized_node): Dump info that we cannot change signature.
4631         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
4632         number of arguments.
4633         (ipa_make_edge_direct_to_target): Likewise.
4634         (ipa_update_after_lto_read): Likewise.
4635         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
4636         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
4637         they were remapped.
4638
4639 2011-09-02  Richard Guenther  <rguenther@suse.de>
4640
4641         PR tree-optimization/27460
4642         PR middle-end/29269
4643         * doc/md.texi (vcond): Document.
4644         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
4645         optab with two modes.
4646         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
4647         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
4648         (vcond_optab): Adjust.
4649         (vcondu_optab): Likewise.
4650         (expand_vec_cond_expr_p): Adjust prototype.
4651         * optabs.c (get_vcond_icode): Adjust.
4652         (expand_vec_cond_expr_p): Likewise.
4653         (expand_vec_cond_expr): Likewise.
4654         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
4655         vector type.
4656         (vectorizable_condition): Allow differing types for comparison
4657         and result.
4658         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
4659         for the comparison.
4660         * config/i386/sse.md (vcond<mode>): Split to
4661         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
4662         vcond<V_128:mode><VI124_128:mode> and
4663         vcondu<V_128:mode><VI124_128:mode>.
4664         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
4665         (vconduv2di): Likewise.
4666         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
4667         (vcondu<mode>): Likewise.
4668         * config/ia64/vect.md (vcond<mode>): Likewise.
4669         (vcondu<mode>): Likewise.
4670         (vcondv2sf): Likewise.
4671         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
4672         * config/rs6000/paired.md (vcondv2sf): Likewise.
4673         * config/rs6000/vector.md (vcond<mode>): Likewise.
4674         (vcondu<mode>): Likewise.
4675         * config/spu/spu.md (vcond<mode>): Likewise.
4676         (vcondu<mode>): Likewise.
4677
4678 2011-09-02  Richard Guenther  <rguenther@suse.de>
4679
4680         * pretty-print.h (pp_unsigned_wide_integer): New.
4681         * tree-pretty-print.c (dump_generic_node): Print unsigned
4682         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
4683
4684 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
4685
4686         PR target/49987
4687         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
4688         valid CONST_VECTOR operands.
4689         (rs6000_expand_vector_init): Likewise.
4690
4691 2011-09-02  Martin Jambor  <mjambor@suse.cz>
4692
4693         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
4694         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
4695         BINFO_VTABLE.  Parameter delta removed, all callers updated.
4696         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
4697         BINFO_VTABLE.
4698         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
4699         all calls.
4700         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
4701         handling of thunk_delta.
4702         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
4703         (devirtualization_time_bonus): Do not handle thunk deltas.
4704         (ipcp_discover_new_direct_edges): Likewise.
4705         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4706         (try_make_edge_direct_simple_call): Likewise.
4707         (try_make_edge_direct_virtual_call): Likewise.
4708         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
4709         parameter set as unused.
4710         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
4711         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
4712         parameter set as unused.
4713         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
4714         (input_edge_opt_summary): Likewise.
4715         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
4716         BINFO_VIRTUALS at all.
4717         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
4718
4719 2011-09-02  Richard Guenther  <rguenther@suse.de>
4720
4721         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
4722         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
4723
4724 2011-08-31  Richard Guenther  <rguenther@suse.de>
4725
4726         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
4727         handling here, from ...
4728         (expand_expr_real_1): ... here.
4729         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
4730         and VEC_COND_EXPR.
4731         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
4732         a GIMPLE_TERNARY_RHS.
4733         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
4734         and VEC_COND_EXPR here ...
4735         (verify_gimple_assign_single): ... not here.
4736         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
4737         * tree-object-size.c (cond_expr_object_size): Adjust.
4738         (collect_object_sizes_for): Likewise.
4739         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
4740         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
4741         (ssa_forward_propagate_and_combine): Adjust.
4742         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
4743         as ternary.
4744         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
4745         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
4746         * tree-vect-stmt.c (vectorizable_condition): Likewise.
4747         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
4748         (extract_range_from_assignment): Likewise.
4749
4750 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
4751
4752         * config/i386/i386.md: Use (match_test ...) for attribute tests.
4753         * config/i386/mmx.md: Likewise.
4754         * config/i386/sse.md: Likewise.
4755         * config/i386/predicates.md (call_insn_operand): Use
4756         (not (match_test "...")) instead of (match_test "!...")
4757         * config/i386/constraints.md (w): Likewise.
4758
4759 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
4760
4761         * doc/md.texi: Describe the use of match_tests in attribute tests.
4762         * rtl.def (MATCH_TEST): Update commentary.
4763         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
4764         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
4765
4766 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
4767
4768         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
4769         (attr_string): Use copy_md_ptr_loc.
4770
4771 2011-08-31  Martin Jambor  <mjambor@suse.cz>
4772
4773         PR middle-end/49886
4774         * ipa-inline-analysis.c (compute_inline_parameters): Set
4775         can_change_signature of noes with typde attributes.
4776         * ipa-split.c (split_function): Do not skip any arguments if
4777         can_change_signature is set.
4778
4779 2011-08-31  Martin Jambor  <mjambor@suse.cz>
4780
4781         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
4782         check removed.
4783
4784 2011-08-31  Richard Guenther  <rguenther@suse.de>
4785
4786         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
4787         special-casing.
4788
4789 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
4790
4791         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
4792
4793 2011-08-31  Tom de Vries  <tom@codesourcery.com>
4794
4795         PR middle-end/43513
4796         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
4797         * tree-ssa-ccp.c (params.h): Include.
4798         (fold_builtin_alloca_for_var): New function.
4799         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
4800
4801 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
4802
4803         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
4804         Handle FMA option.
4805
4806 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
4807
4808         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
4809         b3 and b4 unsigned.
4810
4811 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
4812
4813         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
4814         when code is SET.
4815
4816 2011-08-30  Richard Guenther  <rguenther@suse.de>
4817
4818         PR middle-end/48571
4819         * gimple.h (maybe_fold_offset_to_address): Remove.
4820         (maybe_fold_offset_to_reference): Likewise.
4821         (maybe_fold_stmt_addition): Likewise.
4822         (may_propagate_address_into_dereference): Likewise.
4823         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
4824         array references.
4825         * gimple-fold.c (canonicalize_constructor_val): Likewise.
4826         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
4827         addresses instead.
4828         (may_propagate_address_into_dereference): Remove.
4829         (maybe_fold_offset_to_array_ref): Likewise.
4830         (maybe_fold_offset_to_reference): Likewise.
4831         (maybe_fold_offset_to_address): Likewise.
4832         (maybe_fold_stmt_addition): Likewise.
4833         (fold_gimple_assign): Do not reconstruct array references but
4834         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
4835         MEM_REF addresses.
4836         (gimple_fold_stmt_to_constant_1): Likewise.
4837         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4838         * gimplify.c (gimplify_conversion): Likewise.
4839         (gimplify_expr): Likewise.
4840
4841 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
4842
4843         * config/i386/fmaintrin.h: New.
4844         * config.gcc: Add fmaintrin.h.
4845         * config/i386/i386.c
4846         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
4847         <IX86_BUILTIN_VFMADDSD3>: Likewise.
4848         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
4849         (*fmai_fmadd_<mode>): Likewise.
4850         (*fmai_fmsub_<mode>): Likewise.
4851         (*fmai_fnmadd_<mode>): Likewise.
4852         (*fmai_fnmsub_<mode>): Likewise.
4853         * config/i386/immintrin.h: Add fmaintrin.h.
4854
4855 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
4856
4857         * genautomata.c (NO_COMB_OPTION): New macro.
4858         (no_comb_flag): New static variable.
4859         (gen_automata_option): Handle NO_COMB_OPTION.
4860         (comb_vect_p): False if no_comb_flag.
4861         (add_vect): Move computation of min/max values.  Return early if
4862         no_comb_flag.
4863         * doc/md.texi (automata_option): Document no-comb-vect.
4864
4865         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
4866         "__x86.get_pc_thunk".
4867
4868         * bb-reorder.c (insert_section_boundary_note): Only do it if
4869         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
4870
4871 2011-08-30  Christian Bruel  <christian.bruel@st.com>
4872
4873         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
4874         flag_profile_use.
4875
4876 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
4877
4878         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
4879         to off.  Document switch.
4880         * doc/invoke.texi (-msave-toc-indirect): Ditto.
4881
4882 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4883
4884         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
4885         conditionals and comments inside macro arguments.
4886
4887 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
4888             Richard Guenther  <rguenther@suse.de>
4889
4890         * tree.h (constant_boolean_node): Adjust prototype.
4891         * fold-const.c (fold_convert_loc): Move aggregate conversion
4892         leeway down.
4893         (constant_boolean_node): Make value parameter boolean, add
4894         vector type handling.
4895         (fold_unary_loc): Use constant_boolean_node.
4896         (fold_binary_loc): Preserve types properly when folding
4897         COMPLEX_EXPR <__real x, __imag x>.
4898         * gimplify.c (gimplify_expr): Handle vector comparison.
4899         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
4900         comparison.
4901         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
4902         comparisons.
4903
4904 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4905
4906         PR middle-end/48722
4907         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
4908         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
4909         (verify_rtl_sharing): Likewise and verify_rtx_sharing
4910         in there too.
4911         (unshare_all_rtl_in_chain): For CALL_INSNs
4912         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
4913
4914 2011-08-29  Richard Guenther  <rguenther@suse.de>
4915
4916         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
4917         on the built ADDR_EXPR.
4918
4919 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
4920
4921         PR debug/50215
4922         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
4923         before adding ENTRY_VALUE to val->locs.
4924
4925 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
4926
4927         PR bootstrap/50218
4928         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
4929         comp.
4930
4931 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
4932
4933         * doc/rtl.texi (simple_return): Document.
4934         (parallel, PATTERN): Here too.
4935         * doc/md.texi (return): Mention it's allowed to expand to simple_return
4936         in some cases.
4937         (simple_return): Document standard pattern.
4938         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
4939         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
4940         * reorg.c (function_return_label, function_simple_return_label):
4941         New static variables, replacing...
4942         (end_of_function_label): ... this.
4943         (simplejump_or_return_p): New static function.
4944         (optimize_skip, steal_delay_list_from_fallthrough,
4945         fill_slots_from_thread): Use it.
4946         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
4947         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
4948         (find_end_label): Take a new arg which is one of the two return
4949         rtxs.  Depending on which, set either function_return_label or
4950         function_simple_return_label.  All callers changed.
4951         (make_return_insns): Make both kinds.
4952         (dbr_schedule): Adjust for two kinds of end labels.
4953         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
4954         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
4955         (gen_expand, gen_split): Use ANY_RETURN_P.
4956         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
4957         * rtl.def (SIMPLE_RETURN): New code.
4958         * ifcvt.c (find_if_case_1): Be more careful about
4959         redirecting jumps to the EXIT_BLOCK.
4960         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
4961         returnjump_p_1): Handle SIMPLE_RETURNs.
4962         * print-rtl.c (print_rtx): Likewise.
4963         * rtl.c (copy_rtx): Likewise.
4964         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
4965         * combine.c (simplify_set): Likewise.
4966         * resource.c (find_dead_or_set_registers, mark_set_resources):
4967         Likewise.
4968         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
4969         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
4970         (init_emit_regs): Initialize simple_return_rtx.
4971         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
4972         force_nonfallthru_and_redirect.
4973         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
4974         (GR_SIMPLE_RETURN): New enum value.
4975         (simple_return_rtx): New macro.
4976         * basic-block.h (force_nonfallthru_and_redirect): Adjust
4977         declaration.
4978         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
4979         argument.  All callers changed.  Be careful about what kinds of
4980         returnjumps to generate.
4981         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
4982         ix86_pad_short_function): Likewise.
4983         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
4984         of return.
4985         * config/mips/mips.md (any_return): New code_iterator.
4986         (optab): Add cases for return and simple_return.
4987         (return): Expand to a simple_return.
4988         (simple_return): New pattern.
4989         (*<optab>, *<optab>_internal for any_return): New patterns.
4990         (return_internal): Remove.
4991         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
4992         a simple_return_internal.
4993
4994 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
4995
4996         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
4997         (vec_extract_lo_<mode>): Prevent both operands in memory.
4998         (vec_extract_lo_v16hi): Ditto.
4999         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
5000
5001 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
5002
5003         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
5004         (*sse2_mulv4si3): Ditto.
5005         (mulv2di3): Ditto.
5006         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
5007         notes to REG_EQUAL.
5008
5009 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
5010
5011         PR target/50202
5012         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
5013         when all outputs are unused.
5014         (sse4_2_pcmpistr): Ditto.
5015
5016 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
5017
5018         * config/i386/i386.md (round<mode>2): New expander.
5019         * config/i386/i386.c (enum ix86_builtins): Add
5020         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
5021         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
5022         descriptions.
5023         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
5024         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
5025
5026 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
5027
5028         PR middle-end/50083
5029         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
5030         only when TARGET_C99_FUNCTIONS.
5031         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
5032         <BUILT_IN_RINT{,F,L}>: Ditto.
5033
5034 2011-08-26  Michael Matz  <matz@suse.de>
5035             Jakub Jelinek  <jakub@redhat.com>
5036
5037         PR lto/50165
5038         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
5039         don't call strlen twice, use memcpy.
5040
5041 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
5042
5043         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
5044         * config/i386/bmiintrin.h: Likewise.
5045         * config/i386/lzcntintrin.h: Likewise.
5046
5047         * config/i386/immintrin.h: Include <lzcntintrin.h>,
5048         <bmiintrin.h> and <bmi2intrin.h>.
5049
5050 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5051
5052         PR target/50166
5053         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
5054         * configure: Regenerate.
5055
5056 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
5057
5058         PR c/50179
5059         * c-typeck.c (c_process_expr_stmt): Skip over nops and
5060         call mark_exp_read even if exprv is ADDR_EXPR.
5061
5062 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
5063
5064         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
5065         to df_set_dead_notes_for_mw.
5066
5067 2011-08-26  Richard Guenther  <rguenther@suse.de>
5068
5069         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
5070
5071 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
5072             Tom de Vries  <tom@codesourcery.com>
5073
5074         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
5075         (struct ivopts_data): Add loop_single_exit_p field.
5076         (niter_for_exit): Change parameter desc_p into return value.  Return
5077         desc if desc->may_be_zero.  Free desc if unused.
5078         (niter_for_single_dom_exit): Change return type.
5079         (find_induction_variables): Handle changed return type of
5080         niter_for_single_dom_exit.  Dump may_be_zero.
5081         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
5082         (set_use_iv_cost): Add and handle comp parameter.
5083         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
5084         comp argument to set_use_iv_cost.
5085         (strip_wrap_conserving_type_conversions, expr_equal_p)
5086         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
5087         (may_eliminate_iv): Add comp parameter.  Handle new return type of
5088         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
5089         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
5090         and may_eliminate_iv.
5091         (rewrite_use_compare): Move call to iv_elimination_compare to ...
5092         (may_eliminate_iv): Here.
5093         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
5094
5095 2011-08-26  Tom de Vries  <tom@codesourcery.com>
5096
5097         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
5098         accessing TREE_TYPE.
5099
5100 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
5101
5102         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
5103         (*ior_scc_scc_cmp): Likewise
5104         (*and_scc_scc): Likewise.
5105         (*and_scc_scc_cmp): Likewise.
5106         (*and_scc_scc_nodom): Likewise.
5107         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
5108
5109 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
5110
5111         * rtlanal.c (nonzero_bits1): Handle CLRSB.
5112
5113 2011-08-26  Richard Guenther  <rguenther@suse.de>
5114
5115         * expr.c (string_constant): Handle &MEM_REF.
5116
5117 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
5118
5119         * config/arm/arm.c (struct four_ints): New type.
5120         (count_insns_for_constant): Delete function.
5121         (find_best_start): Delete function.
5122         (optimal_immediate_sequence): New function.
5123         (optimal_immediate_sequence_1): New function.
5124         (arm_gen_constant): Move constant splitting code to
5125         optimal_immediate_sequence.
5126         Rewrite constant negation/invertion code.
5127
5128 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
5129
5130         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
5131         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
5132         Remove prototype. Remove static function type.
5133         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
5134         Add arch attribute.
5135         * config/arm/constraints.md (Pj, PJ): New constraints.
5136
5137 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5138
5139         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
5140         ("cortex_a9_multiply_long"): New and use above.  Handle all
5141         long multiply cases.
5142         ("cortex_a9_multiply"): Handle smmul and smmulr.
5143         ("cortex_a9_mac"): Handle smmla.
5144
5145 2011-08-25  Richard Henderson  <rth@redhat.com>
5146
5147         PR 50132
5148         PR 49864
5149         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
5150         non-constant stack adjutment.
5151         * expr.c (find_args_size_adjust): Break out from ...
5152         (fixup_args_size_notes): ... here.
5153         * rtl.h (find_args_size_adjust): Declare.
5154
5155 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
5156
5157         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
5158         sse4 and sse4_noavx.
5159         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
5160         (*pushdf_rex64): Change Y2 register constraint to x.
5161         (*movdf_internal_rex64): Ditto.
5162         (*zero_extendsidi2_rex64): Ditto.
5163         (*movdi_internal): Change Y2 register constraint to x
5164         and update "isa" attribute.
5165         (*pushdf): Ditto.
5166         (*movdf internal): Ditto.
5167         (zero_extendsidi2_1): Ditto.
5168         (*truncdfdf_mixed): Ditto.
5169         (*truncxfdf2_mixed): Ditto.
5170         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
5171         register constraint to x.
5172         (*movv2sf_internal_rex64): Ditto.
5173         (*mov<mode>_internal): Change Y2 register constraint to x
5174         and add "isa" attribute.
5175         (*movv2sf_internal): Ditto.
5176         (*vec_extractv2si_1): Ditto.
5177         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
5178         constraints to x and update "isa" attribute.
5179         (*vec_interleave_highv2df): Change Y3 registerconstraint
5180         to x and update "isa" attribute.
5181         (*vec_interleave_lowv2df): Ditto.
5182         (*vec_concatv2df): Change Y2 register constraint to x and
5183         update "isa" attribute.
5184         (sse2_loadld): Ditto.
5185         (*vec_extractv2di_1): Ditto.
5186         (*vec_dupv4si): Ditto.
5187         (*vec_dupv2di): Ditto.
5188         (*vec_concatv4si): Ditto.
5189         (vec_concatv2di): Ditto.
5190         * config/i386/constraints.md (Y2): Remove.
5191         (Y3): Ditto.
5192         (Y4): Ditto.
5193
5194 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5195
5196         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
5197         dump_def_use_chain): Don't declare.
5198         (mark_conflict, create_new_chain): Move before users.
5199         (regrename_optimize): Move to near end of file.
5200
5201 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5202
5203         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
5204         (secondary_input_reload_class): Remove Prototype.
5205         * config/avr/avr.c (byte_immediate_operand): Remove Function.
5206         * config/avr/avr.md (setmemhi): Use u8_operand.
5207         (strlenhi): Use const0_rtx for comparison.
5208         * config/avr/avr.h (avr_reg_order): Remove Declaration.
5209
5210 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5211
5212         * config/avr/avr.c (reg_class_tab): Make local to
5213         avr_regno_reg_class.  Return smallest register class available.
5214
5215 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5216
5217         * config/avr/avr.c (STR_PREFIX_P): New Define.
5218         (avr_asm_declare_function_name): Use it.
5219         (avr_asm_named_section): Use it.
5220         (avr_section_type_flags): Use it.
5221
5222 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5223
5224         * doc/md.texi (automata_option): Document collapse-ndfa.
5225         * genautomata.c (COLLAPSE_OPTION): New macro.
5226         (collapse_flag): New static variable.
5227         (struct description): New member normal_decls_num.
5228         (struct automaton): New members advance_ainsn and collapse_ainsn.
5229         (gen_automata_option): Check for COLLAPSE_OPTION.
5230         (collapse_ndfa_insn_decl): New static variable.
5231         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
5232         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
5233         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
5234         necessary.  Use normal_decls_num rather than decls_num, remove
5235         test for special decls.
5236         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
5237         (make_automaton); Likewise.  Use the new advance_cycle_insn member
5238         of struct automaton.
5239         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
5240         is set.
5241         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
5242         transition.  Create the necessary transitions for it.
5243         (create_ainsns): Return void.  Take an automaton_t argument, and
5244         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
5245         callers changed.
5246         (COLLAPSE_NDFA_VALUE_NAME): New macro.
5247         (output_tables): Output code to define it.
5248         (output_internal_insn_code_evaluation): Output code to accept
5249         const0_rtx as collapse-ndfa transition.
5250         (output_default_latencies, output_print_reservation_func,
5251         output_print_description): Reorganize loops to use normal_decls_num
5252         as loop bound; remove special case for advance_cycle_insn_decl.
5253         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
5254         (check_automata_insn_issues): Check for collapse_ainsn.
5255         (expand_automate): Allocate sufficient space.  Initialize
5256         normal_decls_num.
5257
5258 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
5259
5260         * config/avr/avr.md: Fix indentation from r177991.
5261
5262 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5263
5264         * regrename.c (struct du_head): Remove member terminated.
5265         (create_new_chain): Don't initialize it.
5266         (scan_rtx_reg): Don't set or test it, test the open_chains_set
5267         bitmap instead.
5268         (tick, this_tick): New global variables, moved out of
5269         regrename_optimize.
5270         (current_id, open_chains, closed_chains, open_chains_set,
5271         live_in_chains, live_hard_regs): Reorder declarations.
5272         (dump_def_use_chain): Move function earlier in the file.
5273         (rename_chains): New static function, broken out of
5274         regrename_optimize.
5275         (regrename_optimize): Use it.  Remove #if 0'ed code.
5276
5277 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5278
5279         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
5280
5281 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
5282
5283         PR target/50172
5284         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
5285
5286 2011-08-24  Richard Guenther  <rguenther@suse.de>
5287
5288         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
5289         ref in the basic-block case.  Move stripping array-refs
5290         to the place we create an access-function for it.  Remove
5291         bogus stripping down a MEM_REF to its base.
5292
5293 2011-08-24  Richard Guenther  <rguenther@suse.de>
5294
5295         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
5296         with -fno-strict-overflow.
5297
5298 2011-08-24  Richard Guenther  <rguenther@suse.de>
5299
5300         * tree-vectorizer.c (vect_print_dump_info): Avoid the
5301         file and location clutter when dumping to dump files.
5302
5303 2011-08-24  Simon Baldwin  <simonb@google.com>
5304
5305         * gengtype-state.c (write_state): Remove timestamped header line.
5306
5307 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
5308
5309         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
5310         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
5311         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
5312         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
5313         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
5314         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
5315         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
5316         rules.
5317         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
5318
5319 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
5320
5321         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
5322
5323 2011-08-24  Richard Guenther  <rguenther@suse.de>
5324
5325         PR tree-optimization/50067
5326         * tree-data-ref.c (dr_analyze_indices): Do not add an access
5327         function for a MEM_REF base that has no evolution in the loop
5328         nest or that is not analyzable.
5329
5330 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
5331
5332         * ira.c (ira_init_register_move_cost): Check small subclasses
5333         through ira_reg_class_max_nregs and ira_available_class_regs.
5334
5335 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
5336
5337         * config/i386/constraints.md (Yp): New register constraint.
5338         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
5339         Yp register constraint.
5340         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
5341         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
5342         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
5343
5344 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
5345
5346         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
5347
5348 2011-08-23  Mark Heffernan  <meheff@google.com>
5349
5350         PR middle-end/38509
5351         * common.opt (Wfree-nonheap-object): New option.
5352         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
5353         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
5354         to warning.
5355         (expand_builtin): Make warning conditional.
5356
5357 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
5358
5359         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
5360         (length_immediate): Handle imulx, ishiftx and rotatex.
5361         (imm_disp): Ditto.
5362         (isa): Add bmi2.
5363         (enabled): Handle bmi2.
5364         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
5365         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
5366         (*bmi2_umulditi3_1): New insn pattern.
5367         (*bmi2_umulsidi3_1): Ditto.
5368         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
5369         (*bmi2_ashl<mode>3_1): New insn pattern.
5370         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
5371         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
5372         (*bmi2_ashlsi3_1_zext): New insn pattern.
5373         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
5374         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
5375         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
5376         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
5377         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
5378         flags dependency.
5379         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
5380         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
5381         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
5382         flags dependency.
5383         (*bmi2_rorx<mode>3_1): New insn pattern.
5384         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
5385         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
5386         (*rotatert<mode>3_1 splitter): Ditto.
5387         (*bmi2_rorxsi3_1_zext): New insn pattern.
5388         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
5389         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
5390         (*rotatertsi3_1_zext splitter): Ditto.
5391
5392 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
5393
5394         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
5395         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
5396         (ix86_handle_option): Handle OPT_mbmi2 case.
5397         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
5398         (x86_64-*-*): Likewise.
5399         * config/i386/bmi2intrin.h: New file.
5400         * config/i386/cpuid.h (bit_BMI2): New.
5401         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5402         BMI2 feature.
5403         * config/i386/i386-c.c (ix86_target_macros_internal):
5404         Conditionally define __BMI2__.
5405         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
5406         Handle BMI2 option.
5407         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
5408         (print_reg): New code.
5409         (ix86_print_operand): Likewise.
5410         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
5411         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
5412         IX86_BUILTIN_PEXT64.
5413         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
5414         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
5415         IX86_BUILTIN_PEXT64.
5416         * config/i386/i386.h (TARGET_BMI2): New.
5417         * config/i386/i386.md (UNSPEC_PDEP): New.
5418         (UNSPEC_PEXT): Likewise.
5419         (*bmi2_bzhi_<mode>3): Likewise.
5420         (*bmi2_pdep_<mode>3): Likewise.
5421         (*bmi2_pext_<mode>3): Likewise.
5422         * config/i386/i386.opt (mbmi2): New.
5423         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
5424         is defined.
5425         * doc/extend.texi: Document BMI2 built-in functions.
5426         * doc/invoke.texi: Document -mbmi2.
5427
5428 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
5429
5430         PR middle-end/50161
5431         * simplify-rtx.c (simplify_const_unary_operation): If
5432         op is CONST_INT, don't look at op_mode, but use instead mode.
5433         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
5434         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
5435         operation and TRUNCATE/ZERO_EXTEND if needed.
5436         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
5437         Document that operand mode must be same as operation mode,
5438         or VOIDmode.
5439         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
5440         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
5441         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
5442         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
5443         use the mode of operand for the operation and add truncate
5444         or zero_extend around if needed.
5445         * config/c6x/c6x.md (ctzdi2): Likewise.
5446         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
5447
5448 2011-08-12  Michael Matz  <matz@suse.de>
5449
5450         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
5451         (gimple_expand_cfg): Merge alignment info for coalesced pointer
5452         SSA names.
5453
5454 2011-08-23  Richard Guenther  <rguenther@suse.de>
5455
5456         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
5457         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
5458         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
5459         from ...
5460         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
5461         (mem_refs_may_alias_p): Adjust.
5462         * tree-data-ref.h (dr_may_alias_p): Adjust.
5463         * tree-data-ref.c: Include tree-affine.h.
5464         (dr_analyze_indices): Do nothing for the non-loop case.
5465         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
5466         more cases in the non-loop case.
5467         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
5468         calls to dr_may_alias_p.
5469         (write_alias_graph_to_ascii_ecc): Likewise.
5470         (write_alias_graph_to_ascii_dot): Likewise.
5471         (build_alias_set_optimal_p): Likewise.
5472
5473 2011-08-23  Richard Guenther  <rguenther@suse.de>
5474
5475         PR tree-optimization/50162
5476         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
5477
5478 2011-08-23  Richard Guenther  <rguenther@suse.de>
5479
5480         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
5481         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
5482         (create_data_ref): Also dump access functions for the created data-ref.
5483
5484 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
5485             Kirill Yukhin  <kirill.yukhin@intel.com>
5486
5487         PR target/50155
5488         * config/i386/sse.md (VI_AVX2): New.
5489         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
5490         (*<plusminus_insn><mode>3): Ditto.
5491         (<sse2_avx2>_andnot<mode>3): Ditto.
5492         (*andnot<mode>3): Fix order of cond operands.
5493         Add asserts for correct TARGET_xxx.
5494         (*<any_logic:code><mode>3): Ditto.
5495
5496 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
5497
5498         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
5499         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
5500         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
5501         regclass argument type to reg_class_t. Change 'max' and 'v' vars
5502         and return types to unsigned char. Use reg_class_contents instead
5503         of class_contents.
5504         (TARGET_CLASS_MAX_NREGS): Define.
5505
5506 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
5507
5508         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
5509         to make computed_jump_p return true.
5510
5511 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5512
5513         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
5514         (PICFLAG_FOR_TARGET): Substitute.
5515         * aclocal.m4: Regenerate.
5516         * configure: Regenerate.
5517
5518 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
5519
5520         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
5521         after reading in the pch.
5522
5523 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
5524
5525         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
5526         * configure: Regenerated.
5527
5528 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
5529
5530         PR tree-optimization/50133
5531         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
5532         from stmt instead of some statement around gsi.
5533
5534         PR middle-end/50141
5535         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
5536         innerdecl is a VAR_DECL.
5537
5538 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
5539
5540         * config/i386/avx2intrin.h: New file.
5541         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
5542         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
5543         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
5544         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
5545         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
5546         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
5547         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
5548         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
5549         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
5550         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
5551         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
5552         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
5553         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
5554         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
5555         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
5556         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
5557         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
5558         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
5559         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
5560         VOID_FTYPE_PV8SI_V8SI_V8SI,
5561         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
5562         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
5563         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
5564         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
5565         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
5566         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
5567         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
5568         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
5569         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
5570         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
5571         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
5572         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
5573         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
5574         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
5575         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
5576         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
5577         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
5578         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
5579         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
5580         V4DI_FTYPE_V4DI_INT_CONVERT,
5581         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
5582         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
5583         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5584         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5585         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5586         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5587         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5588         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5589         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5590         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5591         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5592         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5593         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5594         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5595         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5596         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5597         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5598         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5599         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5600         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5601         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5602         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5603         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5604         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5605         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5606         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5607         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5608         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5609         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5610         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5611         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5612         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5613         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5614         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5615         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5616         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5617         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5618         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5619         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5620         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5621         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5622         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5623         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5624         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5625         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5626         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5627         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5628         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5629         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5630         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5631         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5632         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5633         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5634         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5635         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5636         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5637         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5638         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5639         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5640         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
5641         IX86_BUILTIN_VBROADCASTSS_PS256,
5642         IX86_BUILTIN_VBROADCASTSD_PD256,
5643         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5644         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5645         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5646         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5647         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5648         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5649         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5650         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5651         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5652         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5653         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5654         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5655         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
5656         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5657         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5658         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5659         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5660         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
5661         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
5662         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
5663         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
5664         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
5665         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
5666         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
5667         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
5668         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
5669         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
5670         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
5671         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
5672         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
5673         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
5674         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
5675         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
5676         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
5677         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
5678         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
5679         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
5680         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
5681         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
5682         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
5683         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
5684         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
5685         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
5686         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
5687         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
5688         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
5689         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
5690         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
5691         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
5692         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
5693         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
5694         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
5695         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
5696         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
5697         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
5698         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
5699         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
5700         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
5701         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
5702         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
5703         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
5704         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
5705         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
5706         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
5707         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
5708         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
5709         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
5710         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
5711         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
5712         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
5713         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
5714         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
5715         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
5716         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
5717         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
5718         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
5719         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
5720         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
5721         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
5722         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
5723         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
5724         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
5725         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
5726         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
5727         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
5728         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
5729         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
5730         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
5731         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
5732         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
5733         IX86_BUILTIN_VBROADCASTSD_PD256,
5734         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
5735         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
5736         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
5737         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
5738         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
5739         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
5740         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
5741         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
5742         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
5743         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
5744         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
5745         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
5746         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
5747         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
5748         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
5749         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
5750         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
5751         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
5752         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
5753         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
5754         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
5755         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
5756         IX86_BUILTIN_GATHERDIV8SI.
5757         (ix86_preferred_simd_mode): Support AVX2 modes.
5758         (ix86_expand_args_builtin): Support AVX2 builtins.
5759         (ix86_expand_special_args_builtin): Likewise.
5760         (ix86_expand_builtin): Likewise.
5761         * config/i386/i386.md (UNSPEC_VPERMSI): New.
5762         (UNSPEC_VPERMDF): Likewise.
5763         (UNSPEC_VPERMSF): Likewise.
5764         (UNSPEC_VPERMDI): Likewise.
5765         (UNSPEC_VPERMTI): Likewise.
5766         (UNSPEC_GATHER): Likewise.
5767         (ssemodesuffix): Extend.
5768         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
5769         is defined.
5770         * config/i386/predicates.md (const1248_operand): New.
5771         * config/i386/sse.md (VI1_AVX2): New mode iterator.
5772         (VI2_AVX2): Likewise.
5773         (VI4_AVX2): Likewise.
5774         (VI8_AVX2): Likewise.
5775         (VIMAX_AVX2): Likewise.
5776         (SSESCALARMODE): Likewise.
5777         (VI12_AVX2): Likewise.
5778         (VI24_AVX2): Likewise.
5779         (VI124_AVX2): Likewise.
5780         (VI248_AVX2): Likewise.
5781         (VI48_AVX2): Likewise.
5782         (VI4SD_AVX2): Likewise.
5783         (V48_AVX2): Likewise.
5784         (AVX256MODE2P): Likewise.
5785         (AVXMODE48P_DI): Likewise.
5786         (sse2_avx2): New mode attribute.
5787         (ssse3_avx2): Likewise.
5788         (sse4_1_avx2): Likewise.
5789         (avx_avx2): Likewise.
5790         (ssebytemode): Likewise.
5791         (AVXTOSSEMODE): Likewise.
5792         (AVXMODE48P_DI): Likewise.
5793         (gthrfirstp): Likewise.
5794         (gthrlastp): Likewise.
5795         (lshift): New code_iterator
5796         (lshift): New code attribute.
5797         (lshift): Likewise.
5798         (ssescalarmodesuffix): Update.
5799         (sseunpackmode): Likewise.
5800         (ssepackmode): Likewise.
5801         (avx2_vec_dupv4sf): New insn pattern.
5802         (avx2_vec_dupv8sf): Likewise.
5803         (avx2_interleave_highv4di): Likewise.
5804         (avx2_interleave_lowv4di): Likewise.
5805         (avx2_umulv4siv4di3): Likewise
5806         (*avx2_umulv4siv4di3): Likewise
5807         (avx2_pmaddwd): Likewise.
5808         (*avx2_pmaddwd): Likewise.
5809         (avx2_lshrqv4di3): Likewise.
5810         (avx2_lshlqv4di3): Likewise.
5811         (avx2_lshl<mode>3): Likewise.
5812         (avx2_<umaxmin:code><mode>3): Likewise.
5813         (*avx2_<umaxmin:code><mode>3): Likewise.
5814         (avx2_<smaxmin:code><mode>3): Likewise.
5815         (*avx2_<smaxmin:code><mode>3): Likewise.
5816         (avx2_eq<mode>3): Likewise.
5817         (*avx2_eq<mode>3): Likewise.
5818         (avx2_gt<mode>3): Likewise.
5819         (avx2_interleave_highv32qi): New.
5820         (avx2_interleave_lowv32qi): Likewise.
5821         (avx2_interleave_highv16hi): Likewise.
5822         (avx2_interleave_lowv16hi): Likewise.
5823         (avx2_interleave_highv8si): Likewise.
5824         (avx2_interleave_lowv8si): Likewise.
5825         (avx2_pshufd): Likewise.
5826         (avx2_pshufd_1): Likewise.
5827         (avx2_pshuflwv3): Likewise.
5828         (avx2_pshuflw_1): Likewise.
5829         (avx2_pshufhwv3): Likewise.
5830         (avx2_pshufhw_1): Likewise.
5831         (avx2_uavgv32qi3): Likewise.
5832         (*avx2_uavgv32qi3): Likewise.
5833         (avx2_uavgv16hi3): Likewise.
5834         (*avx2_uavgv16hi3): Likewise.
5835         (avx2_pmovmskb): Likewise.
5836         (avx2_phaddwv16hi3): Likewise.
5837         (avx2_phadddv8si3): Likewise.
5838         (avx2_phaddswv16hi3): Likewise.
5839         (avx2_phsubwv16hi3): Likewise.
5840         (avx2_phsubdv8si3): Likewise.
5841         (avx2_phsubswv16hi3): Likewise.
5842         (avx2_pmaddubsw256): Likewise.
5843         (avx2_umulhrswv16hi3): Likewise.
5844         (*avx2_umulhrswv16hi3): Likewise.
5845         (avx2_packusdw): Likewise.
5846         (avx2_pblendd<mode>): Likewise.
5847         (avx2_<code>v16qiv16hi2): Likewise.
5848         (avx2_<code>v8qiv8si2): Likewise.
5849         (avx2_<code>v8hiv8si2): Likewise.
5850         (avx2_<code>v4qiv4di2): Likewise.
5851         (avx2_<code>v4hiv4di2): Likewise.
5852         (avx2_<code>v4siv4di2): Likewise.
5853         (avx2_pbroadcast<mode>): Likewise.
5854         (avx2_permvarv8si): Likewise.
5855         (avx2_permv4df): Likewise.
5856         (avx2_permvarv8sf): Likewise.
5857         (avx2_permv4di): Likewise.
5858         (avx2_permv2ti): Likewise.
5859         (avx2_vec_dupv4df): Likewise.
5860         (avx2_vbroadcasti128_<mode>): Likewise.
5861         (avx2_vec_set_lo_v4di): Likewise.
5862         (avx2_vec_set_hi_v4di): Likewise.
5863         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
5864         (avx2_extracti128): Likewise.
5865         (avx2_inserti128): Likewise.
5866         (avx2_ashrvv8si): Likewise.
5867         (avx2_ashrvv4si): Likewise.
5868         (avx2_<lshift>vv8si): Likewise.
5869         (avx2_<lshift>v<mode>): Likewise.
5870         (avx2_<lshift>vv2di): Likewise.
5871         (avx2_gathersi<mode>): Likewise.
5872         (*avx2_gathersi<mode>): Likewise.
5873         (avx2_gatherdi<mode>): Likewise.
5874         (*avx2_gatherdi<mode>): Likewise.
5875         (avx2_gatherdi<mode>256): Likewise.
5876         (*avx2_gatherdi<mode>256): Likewise.
5877         (<plusminus_insn><mode>3): Use VI mode iterator.
5878         (*<plusminus_insn><mode>3): Use VI mode iterator.
5879         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
5880         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
5881         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
5882         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
5883         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
5884         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
5885         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
5886         Use VI2_AVX2 mode iterator.
5887         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
5888         Use VI2_AVX2 mode iterator.
5889         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
5890         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
5891         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
5892         Use VI4_AVX2 mode iterator.
5893         (ashr<mode>3): Use VI24_AVX2 mode iterator.
5894         (lshr<mode>3): Use VI248_AVX2 mode iterator.
5895         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
5896         Use VIMAX_AVX2 mode iterator.
5897         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
5898         Use VI mode iterator.
5899         (*andnot<mode>3): Update for AVX2.
5900         (*<any_logic:code><mode>3): Likewise.
5901         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
5902         Use VI1_AVX mode iterator.
5903         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
5904         Use VI2_AVX mode iterator.
5905         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
5906         Use VI1_AVX mode iterator.
5907         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
5908         Use VI8_AVX2 mode iterator.
5909         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
5910         Use VI1_AVX2 mode iterator.
5911         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
5912         Use VI124_AVX2 mode iterator.
5913         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
5914         Use SSESCALARMODE mode iterator.
5915         (abs<mode>2): Use VI124_AVX2 mode iterator.
5916         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
5917         Use VI8_AVX2 mode iterator.
5918         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
5919         Use VI1_AVX2 mode iterator.
5920         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
5921         Use VI1_AVX2 mode iterator.
5922         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
5923         Use VI2_AVX2 mode iterator.
5924         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
5925         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
5926         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
5927         avx_maskstore<ssemodesuffix><avxsizesuffix>.
5928         Use V48_AVX2 mode iterator.
5929         * doc/extend.texi: Document AVX2 built-in functions.
5930         * doc/invoke.texi: Document -mavx2.
5931
5932 2011-08-22  Matthias Klose <doko@debian.org>
5933
5934         Revert:
5935         2011-07-11  Arthur Loiret  <aloiret@debian.org>
5936                     Matthias Klose <doko@debian.org>
5937         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
5938         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
5939         convention.
5940         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
5941
5942 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
5943
5944         PR bootstrap/50146
5945         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
5946         to #ifndef HONOR_REG_ALLOC_ORDER block.
5947
5948 2011-08-21  Richard Henderson  <rth@redhat.com>
5949
5950         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
5951         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
5952         * resource.c (next_insn_no_annul): Likewise.
5953         (mark_set_resources): Likewise.
5954         * reorg.c (delete_from_delay_slot): Likewise.
5955         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
5956         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
5957
5958 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
5959
5960         * config/i386/i386.md (any_div): Remove.
5961         (sgnprefix): Update for removal.
5962         (u): Ditto.
5963
5964 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
5965
5966         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
5967         for ira_reg_class_max_nregs.  Increase pressure by 1.
5968         (mark_pseudo_regno_subword_dead): Use allocno class
5969         for ira_reg_class_max_nregs.
5970
5971 2011-08-20  Richard Henderson  <rth@redhat.com>
5972
5973         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
5974         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
5975         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
5976         config/c6x/ltf.c: Adjust include path for soft-fp.
5977
5978 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5979
5980         PR other/46770
5981         * config.gcc (tm_file): Add initfini-array.h if
5982         .init_arrary/.fini_array are supported.
5983
5984         * crtstuff.c: Don't generate .ctors nor .dtors sections if
5985         USE_INITFINI_ARRAY is defined.
5986
5987         * output.h (default_elf_init_array_asm_out_constructor): New.
5988         (default_elf_fini_array_asm_out_destructor): Likewise.
5989         * varasm.c (elf_init_array_section): Likewise.
5990         (elf_fini_array_section): Likewise.
5991         (get_elf_initfini_array_priority_section): Likewise.
5992         (default_elf_init_array_asm_out_constructor): Likewise.
5993         (default_elf_fini_array_asm_out_destructor): Likewise.
5994
5995         * config/initfini-array.h: New.
5996
5997 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
5998
5999         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
6000         OK for ST_REGS and FP_REGS before taking those classes into account.
6001
6002 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
6003
6004         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
6005         before checking for annulled branches.
6006
6007 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
6008
6009         * config/i386/i386.c (ix86_binary_operator_ok): Use
6010         satisfies_constraint_L.
6011
6012 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
6013             Michael Matz  <matz@suse.de>
6014
6015         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
6016         trunc (a + copysign (nextafter (0.5, 0.0), a)).
6017
6018 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
6019
6020         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6021         * doc/tm.texi: Regenerate.
6022         * targhooks.c (default_preferred_output_reload_class): Don't use
6023         PREFERRED_OUTPUT_RELOAD_CLASS macro.
6024         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
6025
6026 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
6027
6028         PR tree-optimization/48739
6029         * tree-ssa.c: Include cfgloop.h.
6030         (execute_update_addresses_taken): When updating ssa, if in loop closed
6031         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
6032         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
6033
6034 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
6035
6036         PR rtl-optimization/49936
6037         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
6038         for calculation of max register move costs.
6039
6040 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
6041
6042         * c-parser.c (c_parser_postfix_expression): Convert operands of
6043         __builtin_complex to their semantic types.
6044
6045 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
6046
6047         PR middle-end/49721
6048         * explow.c (convert_memory_address_addr_space): Also permute the
6049         conversion and addition of constant for zero-extend.
6050
6051 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
6052
6053         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
6054         * doc/extend.texi (__builtin_complex): Document.
6055
6056 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6057
6058         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
6059         beyond conversions.
6060         (convert_mult_to_widen): Convert constant inputs to the right type.
6061         (convert_plusminus_to_widen): Don't automatically reject inputs that
6062         are not an SSA_NAME.
6063         Convert constant inputs to the right type.
6064
6065 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6066
6067         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
6068         to the correct type.
6069
6070 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6071
6072         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
6073         unsigned inputs of different modes.
6074         (convert_plusminus_to_widen): Likewise.
6075
6076 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6077
6078         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
6079         'type'.
6080         Use 'type' from caller, not inferred from 'rhs'.
6081         Don't reject non-conversion statements. Do return lhs in this case.
6082         (is_widening_mult_p): Add new argument 'type'.
6083         Use 'type' from caller, not inferred from 'stmt'.
6084         Pass type to is_widening_mult_rhs_p.
6085         (convert_mult_to_widen): Pass type to is_widening_mult_p.
6086         (convert_plusminus_to_widen): Likewise.
6087
6088 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6089
6090         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
6091         Ensure the the larger type is the first operand.
6092
6093 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6094
6095         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
6096         unsupported unsigned multiplies to signed.
6097         (convert_plusminus_to_widen): Likewise.
6098
6099 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6100
6101         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
6102         conversion statement separating multiply-and-accumulate.
6103
6104 2011-08-19  Richard Guenther  <rguenther@suse.de>
6105
6106         PR tree-optimization/50067
6107         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
6108         offset only if we accounted for it.
6109
6110 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6111
6112         * config/arm/arm.md (maddhidi4): Remove '*' from name.
6113         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
6114         * optabs.c (find_widening_optab_handler_and_mode): New function.
6115         (expand_widen_pattern_expr): Use find_widening_optab_handler.
6116         (expand_binop_directly): Likewise.
6117         (expand_binop): Likewise.
6118         * optabs.h (find_widening_optab_handler): New macro define.
6119         (find_widening_optab_handler_and_mode): New prototype.
6120         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
6121         type precision rules.
6122         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
6123         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
6124         (is_widening_mult_rhs_p): Allow widening by more than one mode.
6125         Explicitly disallow mis-matched input types.
6126         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
6127         input types to fit the new handler.
6128         (convert_plusminus_to_widen): Likewise.
6129
6130 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
6131
6132         * expr.c (expand_expr_real_2): Use widening_optab_handler.
6133         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
6134         (gen_insn): $N now means $a must be wider than $b, not consecutive.
6135         * optabs.c (widened_mode): New function.
6136         (expand_widen_pattern_expr): Use widening_optab_handler.
6137         (expand_binop_directly): Likewise.
6138         (expand_binop): Likewise.
6139         * optabs.h (widening_optab_handlers): New struct.
6140         (optab_d): New member, 'widening'.
6141         (widening_optab_handler): New function.
6142         (set_widening_optab_handler): New function.
6143         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
6144         widening_optab_handler.
6145         (convert_plusminus_to_widen): Likewise.
6146
6147 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
6148
6149         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
6150         pedantic.
6151         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
6152         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
6153
6154 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
6155
6156         * opth-gen.awk: Do not declare target save/restore structures and
6157         functions if IN_RTS defined.
6158
6159 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6160
6161         PR target/49437
6162         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
6163         when stack was realigned in interrupt handler prologue.
6164
6165 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
6166
6167         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
6168         (quals_from_declspecs): Assert _Noreturn not present.
6169         (grokdeclarator): Handle _Noreturn.
6170         (build_null_declspecs): Initialize noreturn_p.
6171         (declspecs_add_scspec): Handle RID_NORETURN.
6172         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
6173         (c_parser_attributes): Handle RID_NORETURN.
6174         * c-tree.h (struct c_declspecs): Add noreturn_p.
6175         * ginclude/stdnoreturn.h: New.
6176         * Makefile.in (USER_H): Add stdnoreturn.h.
6177
6178 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
6179
6180         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
6181         (OPTION_MASK_ISA_AVX_UNSET): Update.
6182         (OPTION_MASK_ISA_AVX2_UNSET): New.
6183         (ix86_handle_option): Handle OPT_mavx2 case.
6184         * config/i386/cpuid.h (bit_AVX2): New.
6185         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6186         AVX2 feature.
6187         * config/i386/i386-c.c (ix86_target_macros_internal):
6188         Conditionally define __AVX2__.
6189         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
6190         Define "core-avx2" processor alias.  Handle avx2 option.
6191         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
6192         * config/i386/i386.h (TARGET_AVX2): New.
6193         * config/i386/i386.opt (mavx2): New.
6194         * doc/invoke.texi: Document -mavx2.
6195
6196 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
6197
6198         PR rtl-optimization/49890
6199         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
6200         subclasses of class which is superset of a pressure class.
6201
6202 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6203             Igor Zamyatin <igor.zamyatin@intel.com>
6204
6205         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
6206         with HOST_WIDE_INT for isa_flag.
6207         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
6208         isa variables.
6209
6210         * config/i386/i386.c (ix86_target_string): Replace int with
6211         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
6212         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
6213         (pta_flags): Removed.
6214         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
6215         (pta): Use HOST_WIDE_INT on flags.
6216         (builtin_isa): Use HOST_WIDE_INT on isa.
6217         (ix86_add_new_builtins): Likewise.
6218         (def_builtin): Use HOST_WIDE_INT on mask.
6219         (def_builtin_const): Likewise.
6220         (builtin_description): Likewise.
6221
6222         * config/i386/i386.opt (ix86_isa_flags): Replace int with
6223         HOST_WIDE_INT.
6224         (ix86_isa_flags_explicit): Likewise.
6225         (x_ix86_isa_flags_explicit): Likewise.
6226
6227 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
6228
6229         PR rtl-optimization/50107
6230         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
6231         (ira_hard_reg_in_set_p): New.
6232
6233         * ira-color.c (calculate_saved_nregs): New.
6234         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
6235         hard regs.
6236         (allocno_reload_assign, fast_allocation): Use
6237         ira_hard_reg_set_intersection_p instead of
6238         ira_hard_reg_not_in_set_p.
6239
6240         * ira.c (setup_reg_renumber): Use
6241         ira_hard_reg_set_intersection_p instead of
6242         ira_hard_reg_not_in_set_p.
6243         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
6244         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
6245
6246         * ira-costs.c (ira_tune_allocno_costs): Use
6247         ira_hard_reg_set_intersection_p instead of
6248         ira_hard_reg_not_in_set_p.
6249
6250 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6251             Igor Zamyatin <igor.zamyatin@intel.com>
6252
6253         * hwint.h (HOST_WIDE_INT_1): New.
6254
6255         * opt-functions.awk (switch_bit_fields): Initialize the
6256         host_wide_int field.
6257         (host_wide_int_var_name): New.
6258         (var_type_struct): Check and return HOST_WIDE_INT.
6259
6260         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
6261
6262         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
6263
6264         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
6265         check masks for HOST_WIDE_INT.
6266
6267         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
6268         (option_enabled): Likewise.
6269         (get_option_state): Likewise.
6270
6271         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
6272         to HOST_WIDE_INT.
6273
6274 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6275             Marc Glisse  <marc.glisse@normalesup.org>
6276
6277         PR libstdc++-v3/1773
6278         * target.def (decl_mangling_context): New C++ hook.
6279         * doc/tm.texi: Regenerate.
6280         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
6281         * config/sol2-protos.h: Group by source file.
6282         (solaris_cxx_decl_mangling_context): Declare.
6283         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
6284         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
6285         Use $<.
6286         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
6287         Add sol2-stubs.o to extra_objs.
6288
6289 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
6290
6291         PR target/50009
6292         * stor-layout.c (update_alignment_for_field): Don't ICE on
6293         packed flexible array members if ms_bitfield_layout_p.
6294
6295         PR target/50092
6296         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
6297         on the result before returning it.
6298
6299         PR debug/50017
6300         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
6301         is a debug stmt, use location of the first non-debug stmt after it.
6302
6303 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6304
6305         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
6306         (arm_size_rtx_costs): Likewise.
6307
6308 2011-08-18  Richard Guenther  <rguenther@suse.de>
6309
6310         * tree.h (tree_int_cst_msb): Remove.
6311         * tree.c (tree_int_cst_msb): Likewise.
6312         (tree_int_cst_sign_bit): Move from ...
6313         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
6314
6315 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6316
6317         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
6318         * doc/tm.texi: Regenerate.
6319         * target.def (rtx_costs): Add an opno parameter.
6320         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
6321         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
6322         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
6323         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
6324         * cse.c (COST_IN): Add an opno parameter.
6325         (notreg_cost): Likewise.  Update call to rtx_cost.
6326         (COST, fold_rtx): Update accordingly.
6327         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
6328         * expmed.c (emit_store_flag): Likewise.
6329         * optabs.c (avoid_expensive_constant): Add an opno parameter.
6330         Update call to rtx_cost.
6331         (expand_binop_directly, expand_binop): Likewise.
6332         (expand_twoval_binop, prepare_cmp_insn): Likewise.
6333         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
6334         (set_src_cost, get_full_set_src_cost): Update accordingly.
6335         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
6336         to target hook.
6337         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
6338         (default_adress_cost): Update calls to rtx_cost.
6339
6340         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
6341         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
6342         (arm_rtx_costs): Add an opno parameter.
6343         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
6344         adjust any recursive rtx-cost calls.
6345         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
6346         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6347         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
6348         * config/cris/cris.c (cris_rtx_costs): Likewise.
6349         * config/frv/frv.c (frv_rtx_costs): Likewise.
6350         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
6351         * config/i386/i386.c (ix86_rtx_costs): Likewise.
6352         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
6353         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
6354         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
6355         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
6356         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
6357         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
6358         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
6359         * config/mep/mep.c (mep_rtx_cost): Likewise.
6360         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
6361         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
6362         (mips_zero_extend_cost): Add an opno parameter.
6363         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
6364         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
6365         to rtx_cost.
6366         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
6367         rtx-cost calls.
6368         * config/pa/pa.c (hppa_rtx_costs): Likewise.
6369         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
6370         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
6371         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
6372         (rs6000_debug_rtx_costs): Likewise.
6373         * config/s390/s390.c (s390_rtx_costs): Likewise.
6374         * config/score/score-protos.h (score_rtx_costs): Likewise.
6375         * config/score/score.c (score_rtx_costs): Likewise.
6376         * config/sh/sh.c (andcosts): Update call to rtx_cost.
6377         (sh_rtx_costs): Add an opno parameter.
6378         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
6379         * config/spu/spu.c (spu_rtx_costs): Likewise.
6380         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
6381         * config/v850/v850.c (v850_rtx_costs): Likewise.
6382         * config/vax/vax.c (vax_rtx_costs): Likewise.
6383         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
6384
6385 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6386
6387         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
6388         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
6389         rtx_cost.
6390         * calls.c (precompute_register_parameters): Likewise.
6391         * combine.c (expand_compound_operation, make_extraction): Likewise.
6392         (force_to_mode, distribute_and_simplify_rtx): Likewise.
6393         * dse.c (find_shift_sequence): Likewise.
6394         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
6395         * expr.c (compress_float_constant): Likewise.
6396         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
6397         * gcse.c (want_to_gcse_p): Likewise.
6398         * ifcvt.c (noce_try_sign_mask): Likewise.
6399         * loop-doloop.c (doloop_optimize): Likewise.
6400         * loop-invariant.c (create_new_invariant): Likewise.
6401         * optabs.c (avoid_expensive_constant): Likewise.
6402         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
6403         (try_replace_in_use, reload_cse_move2add): Likewise.
6404         * reload1.c (calculate_elim_costs_all_insns): Likewise.
6405         (note_reg_elim_costly): Likewise.
6406         * rtlanal.c (insn_rtx_cost): Likewise.
6407         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6408         * stmt.c (lshift_cheap_p): Likewise.
6409         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
6410         * config/avr/avr.c (final_prescan_insn): Likewise.
6411         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
6412         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
6413
6414 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
6415
6416         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
6417         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
6418         * cfgloopanal.c (seq_cost): Likewise.
6419         * loop-invariant.c (create_new_invariant): Likewise.
6420         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
6421         (reload_cse_move2add): Use get_full_set_rtx_cost.
6422
6423 2011-08-18  Richard Guenther  <rguenther@suse.de>
6424
6425         * expr.c (get_inner_reference): Fix typo in last change.
6426
6427 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
6428             Joseph Myers  <joseph@codesourcery.com>
6429
6430         PR tree-optimization/49963
6431         * hwint.c (absu_hwi): Define.
6432         * hwint.h (absu_hwi): Declare.
6433         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
6434         of abs_hwi.
6435         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
6436         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
6437
6438 2011-08-18  Richard Guenther  <rguenther@suse.de>
6439
6440         * expr.c (get_inner_reference): Sign-extend the constant
6441         twos-complement offset before doing arbitrary precision
6442         arithmetic on it.
6443         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
6444         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
6445         to get_constraint_for_ptr_offset.
6446
6447 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
6448
6449         PR target/50068
6450         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
6451
6452 2011-08-17  Richard Guenther  <rguenther@suse.de>
6453
6454         * tree.h (convert_to_ptrofftype_loc): New function.
6455         (convert_to_ptrofftype): Define.
6456         * builtins.c (expand_builtin_bzero): Use size_type_node.
6457         (fold_builtin_bzero): Likewise.
6458         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
6459         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
6460         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
6461         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
6462         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
6463         * fold-const.c (build_range_check): Negate using the original type.
6464         (fold_unary_loc): Use fold_build_pointer_plus_loc.
6465         * gimple-fold.c (gimple_adjust_this_by_delta): Use
6466         convert_to_ptrofftype.
6467         * gimplify.c (gimplify_self_mod_expr): Likewise.
6468         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
6469         (graphite_create_new_loop_guard): Likewise.
6470         * graphite-sese-to-poly.c (my_long_long): Remove.
6471         (scop_ivs_can_be_represented): Adjust.
6472         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
6473         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
6474         * tree-loop-distribution.c (build_size_arg_loc): Use
6475         size_type_node.
6476         (generate_memset_zero): Simplify.
6477         * tree-mudflap.c: Use fold_convert, not convert.
6478         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
6479         its own type.
6480         (determine_offset): Likewise for DR_STEP.
6481         (valid_initializer_p): Likewise.
6482         * tree-profile.c (prepare_instrumented_value): Convert the pointer
6483         to an integer type of same size.
6484         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
6485         to sizetype without need.
6486         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6487         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
6488         * tree-ssa-loop-manip.c (create_iv): Likewise.
6489         (determine_exit_conditions): Adjust comment.
6490         * tree-ssa-pre.c (create_expression_by_pieces): Use
6491         convert_to_ptrofftype.
6492         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
6493         * varasm.c (array_size_for_constructor): Compute using double_ints.
6494
6495 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6496
6497         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
6498         when generating an integer result where possible.  Short-cut
6499         comparison against 0 also for QImode.
6500
6501 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6502
6503         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
6504         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
6505         prototype.
6506         * config/spu/spu.c (spu_legitimize_reload_address): New function.
6507         (spu_legitimate_address_p): Do not check displacement if the base
6508         is an eliminable stack register.
6509
6510 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
6511
6512         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
6513         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
6514         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
6515         m32c_preferred_output_reload_class): Remove.
6516         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
6517         Change rclass argument and return types to reg_class_t. Use
6518         reg_class_subset_p instead of class_sizes.
6519         (m32c_preferred_output_reload_class): Make static. Change rclass
6520         argument and return types to reg_class_t.
6521         (TARGET_PREFERRED_RELOAD_CLASS,
6522         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6523
6524 2011-08-16  Kai Tietz  <ktietz@redhat.com>
6525
6526         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
6527
6528 2011-08-16  Richard GUenther  <rguenther@suse.de>
6529
6530         PR tree-optimization/50082
6531         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
6532         warnings here, instead of ...
6533         (ssa_forward_propagate_and_combine): ... here.
6534         (forward_propagate_into_comparison_1): Adjust.
6535         (forward_propagate_into_comparison): Likewise.
6536         (forward_propagate_into_gimple_cond): Likewise.
6537         (forward_propagate_into_cond): Likewise.
6538
6539 2011-08-16  Andreas Schwab  <schwab@redhat.com>
6540
6541         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
6542         instead of ggc_alloc_zone_vec_rtvec_def.
6543
6544 2011-08-16  Richard Guenther  <rguenther@suse.de>
6545
6546         * tree.h (ptrofftype_p): New helper function.
6547         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
6548         offset verification.
6549         (verify_gimple_assign_binary): Likewise.
6550         * tree.c (build2_stat): Likewise.
6551         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
6552         (reset_evolution_in_loop): Likewise.
6553         * tree-chrec.h (build_polynomial_chrec): Likewise.
6554
6555 2011-08-16  Liang Wang  <lwang1@marvell.com>
6556
6557         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
6558         ggc_alloc_zone_vec_rtvec_def.
6559
6560 2011-08-16  Richard Guenther  <rguenther@suse.de>
6561
6562         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
6563         helper factored out from ...
6564         (extract_range_from_binary_expr_1): ... here.  Re-structure
6565         to not glob handling too different tree codes.
6566
6567 2011-08-15  Richard Henderson  <rth@redhat.com>
6568
6569         PR middle-end/50006
6570         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
6571         setting out to include allocate_stack named pattern as well.
6572         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
6573         * stmt.c (expand_stack_restore): Likewise.
6574
6575 2011-08-15  Richard Guenther  <rguenther@suse.de>
6576
6577         PR middle-end/50082
6578         * fold-const.c (maybe_canonicalize_comparison_1): Properly
6579         convert the modified operand to the other operand type.
6580         (fold_comparison): Call maybe_canonicalize_comparison_1 with
6581         useless conversions stripped from comparison operands.
6582
6583 2011-08-15  Richard Guenther  <rguenther@suse.de>
6584
6585         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
6586         (extract_range_from_unary_expr_1): Restructure.
6587
6588 2011-08-15  Richard Guenther  <rguenther@suse.de>
6589
6590         PR tree-optimization/50058
6591         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
6592         copy matching.
6593
6594 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6595
6596         PR target/50022
6597         * config/arm/arm.c (output_move_double): Add 2 parameters
6598         to count the number of insns emitted and whether to emit or not.
6599         Use the flag to decide when to emit and count number of instructions
6600         that will be emitted.
6601         Handle case where output_move_double might be called for calculating
6602         lengths with an invalid constant.
6603         (arm_count_output_move_double_insns): Define.
6604         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
6605         (output_move_double): Adjust prototype.
6606         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
6607         output_move_double.
6608         ("*movdi_vfp_cortexa8"): Likewise and add attribute
6609         for ce_count.
6610         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
6611         ("*movdf_soft_insn"): Likewise.
6612         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
6613         ("*cirrus_thumb2_movdi"): Likewise.
6614         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
6615         ("*cirrus_movdf_hard_insn"): Likewise.
6616         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
6617         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
6618         ("mov<mode>_internal VMMX"): Likewise.
6619         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
6620
6621 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
6622
6623         * config/i386/i386.c (ix86_expand_round_sse4): New function.
6624         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
6625         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
6626         for TARGET_ROUND.
6627
6628         (rint<mode>2): Simplify TARGET_ROUND check.
6629         (floor<mode>2): Ditto.
6630         (ceil<mode>2): Ditto.
6631         (btrunc<mode>2): Ditto.
6632
6633 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
6634
6635         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
6636         as mmix_preferred_output_reload_class.
6637
6638 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
6639
6640         * PR target/49903
6641         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
6642         (branch_unspec): New insn.
6643         (branch): Beauty farm.
6644         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
6645         to be IF_THEN_ELSE.
6646         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
6647         New static functions.
6648         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
6649         Use CONST_INT_P.  Beauty.
6650
6651 2011-08-12  Richard Henderson  <rth@redhat.com>
6652
6653         PR rtl-opt/49994
6654         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
6655         * sched-deps.c (init_deps): Clear it.
6656         (deps_analyze_insn): Consume it.
6657         (sched_analyze_insn): Fill it.
6658
6659 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6660
6661         PR target/48328
6662         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
6663         for tbh instructions.
6664
6665 2011-08-12  Diego Novillo  <dnovillo@google.com>
6666
6667         * data-streamer.h (streamer_write_zero): Rename from output_zero.
6668         (streamer_write_uhwi): Rename from lto_output_uleb128.
6669         (streamer_write_hwi): Rename from output_sleb128.
6670         (streamer_write_string): Rename from lto_output_string.
6671         (streamer_string_index): Rename from lto_string_index.
6672         (streamer_write_string_with_length): Rename from
6673         lto_output_string_with_length.
6674         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
6675         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
6676         (streamer_read_string): Rename from lto_input_string.
6677         (streamer_read_indexed_string): Rename from input_string_internal.
6678         (streamer_read_uhwi): Rename from lto_input_uleb128.
6679         (streamer_read_hwi): Rename from lto_input_sleb128.
6680         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
6681         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
6682         (streamer_write_enum): Rename from lto_output_enum.
6683         (streamer_read_enum): Rename from lto_input_enum.
6684         (streamer_write_record_start): Rename from output_record_start.
6685         (streamer_read_record_start): Rename from input_record_start.
6686         (streamer_write_bitpack): Rename from lto_output_bitpack.
6687         (streamer_read_bitpack): Rename from lto_input_bitpack.
6688         (streamer_write_char_stream): Rename from lto_output_1_stream.
6689         (streamer_read_uchar): Rename from lto_input_1_unsigned.
6690         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
6691         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
6692         (streamer_read_string_cst): Rename from input_string_cst.
6693         (streamer_read_chain): Rename from lto_input_chain.
6694         (streamer_alloc_tree): Rename from lto_materialize_tree.
6695         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
6696         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
6697         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
6698         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
6699         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
6700         (streamer_write_chain): Rename from lto_output_chain.
6701         (streamer_write_tree_header): Rename from lto_output_tree_header.
6702         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
6703         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
6704         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
6705         (streamer_write_builtin): Rename from lto_output_builtin_tree.
6706         (streamer_check_handled_ts_structures): Rename from
6707         check_handled_ts_structures.
6708         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
6709         (streamer_tree_cache_insert_at): Rename from
6710         lto_streamer_cache_insert_at.
6711         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
6712         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
6713         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
6714         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
6715         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
6716         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
6717         (write_identifier): Rename from output_identifier.
6718         (write_ts_common_tree_pointers): Rename from
6719         lto_output_ts_common_tree_pointers.
6720         (write_ts_vector_tree_pointers): Rename from
6721         lto_output_ts_vector_tree_pointers.
6722         (write_ts_complex_tree_pointers): Rename from
6723         lto_output_ts_complex_tree_pointers.
6724         (write_ts_decl_minimal_tree_pointers): Rename from
6725         lto_output_ts_decl_minimal_tree_pointers.
6726         (write_ts_decl_common_tree_pointers): Rename from
6727         lto_output_ts_decl_common_tree_pointers.
6728         (write_ts_decl_non_common_tree_pointers): Rename from
6729         lto_output_ts_decl_non_common_tree_pointers.
6730         (write_ts_decl_with_vis_tree_pointers): Rename from
6731         lto_output_ts_decl_with_vis_tree_pointers.
6732         (write_ts_field_decl_tree_pointers): Rename from
6733         lto_output_ts_field_decl_tree_pointers.
6734         (write_ts_function_decl_tree_pointers): Rename from
6735         lto_output_ts_function_decl_tree_pointers.
6736         (write_ts_type_common_tree_pointers): Rename from
6737         lto_output_ts_type_common_tree_pointers.
6738         (write_ts_type_non_common_tree_pointers): Rename from
6739         lto_output_ts_type_non_common_tree_pointers.
6740         (write_ts_list_tree_pointers): Rename from
6741         lto_output_ts_list_tree_pointers.
6742         (write_ts_vec_tree_pointers): Rename from
6743         lto_output_ts_vec_tree_pointers.
6744         (write_ts_exp_tree_pointers): Rename from
6745         lto_output_ts_exp_tree_pointers.
6746         (write_ts_block_tree_pointers): Rename from
6747         lto_output_ts_block_tree_pointers.
6748         (write_ts_binfo_tree_pointers): Rename from
6749         lto_output_ts_binfo_tree_pointers.
6750         (write_ts_constructor_tree_pointers): Rename from
6751         lto_output_ts_constructor_tree_pointers.
6752         (write_ts_target_option): Rename from lto_output_ts_target_option.
6753         (write_ts_translation_unit_decl_tree_pointers): Rename from
6754         lto_output_ts_translation_unit_decl_tree_pointers.
6755         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
6756         Rename from lto_streamer_cache_add_to_node_array.
6757         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
6758         (record_common_node): Rename from lto_record_common_node.
6759
6760         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
6761         declarations.
6762         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
6763         function.
6764         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
6765         unused function.
6766         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
6767         (ipa-reference.o): Likewise.
6768         * lto-section-out.c: Include data-streamer.h.
6769         * ipa-reference.c: Include data-streamer.h.
6770
6771 2011-08-12  Nick Clifton  <nickc@redhat.com>
6772
6773         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
6774         * doc/md.texi (cmpstrn): Note that the comparison stops if both
6775         fetched bytes are zero.
6776         (cmpstr): Likewise.
6777         (cmpmem): Note that the comparison does not stop if both of the
6778         fetched bytes are zero.
6779
6780 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
6781
6782         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
6783         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
6784         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
6785         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
6786         to integer_type_node.
6787         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
6788         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
6789         * builtins.c (expand_builtin_in): Ditto.
6790         (mathfn_built_in_1): Ditto.
6791         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
6792         BUILT_IN_IFLOOR.
6793         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
6794         BUILT_IN_IROUND.
6795         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
6796         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
6797         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
6798
6799 2011-08-12  Richard Guenther  <rguenther@suse.de>
6800
6801         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
6802
6803 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
6804
6805         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
6806
6807 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
6808
6809         * config/arm/arm.c (get_label_padding): New function.
6810         (create_fix_barrier, arm_reorg): Use it.
6811
6812 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
6813
6814         PR target/49781
6815         * config/i386/i386.md (*lea_5_zext): New.
6816         (*lea_6_zext): Ditto.
6817         * config/i386/predicates.md (const_32bit_mask): New predicate.
6818         (lea_address_operand): Reject AND.
6819         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
6820         const_32bit_mask immediate.
6821         (ix86_print_operand_address): Handle AND.
6822         (memory_address_length): Ditto.
6823
6824 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
6825             Brian Hackett  <bhackett1024@gmail.com>
6826
6827         * plugin.def: Add event for finish_decl.
6828         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
6829         * c-decl.c (finish_decl): Invoke callbacks on above event.
6830         * doc/plugins.texi: Document above event.
6831
6832 2011-08-11  Richard Guenther  <rguenther@suse.de>
6833
6834         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
6835         lookups, make looking through aggregate copies stronger.
6836
6837 2011-08-11  Richard Henderson  <rth@redhat.com>
6838
6839         PR bootstrap/50018
6840         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
6841
6842 2011-08-11  Richard Guenther  <rguenther@suse.de>
6843
6844         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
6845         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
6846         (vrp_visit_stmt): Likewise.
6847
6848 2011-08-11  Richard Guenther  <rguenther@suse.de>
6849
6850         PR middle-end/50040
6851         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
6852         load of the other piece with TREE_NO_WARNING.
6853         * tree-flow.h (warn_uninit): Adjust prototype.
6854         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
6855         the base variable and the expression that is used separately.
6856         Properly query all TREE_NO_WARNING flags.
6857         (struct walk_data): Remove.
6858         (warn_uninitialized_var): Likewise.
6859         (warn_uninitialized_vars): Do not walk gimple pieces but simply
6860         look at all SSA uses of the statement.  Handle unused memory
6861         separately.
6862         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
6863
6864 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
6865
6866         * config/rx/rx.md (movsicc): Allow register to register transfers.
6867         (*movsicc): Likewise.
6868         (*stcc): Restrict this pattern to EQ and NE compares.
6869         (*stcc_reg): New pattern.  Works for any comparison but only for
6870         register transfers.
6871
6872 2011-08-11   Diego Novillo  <dnovillo@google.com>
6873
6874         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
6875         Call stream_write_tree instead of output_record_start.
6876         (lto_output_ts_binfo_tree_pointers): Likewise.
6877
6878         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
6879         Convert it to a macro.
6880         (stream_read_tree): Likewise.
6881
6882         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
6883         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
6884
6885         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
6886         and tree_read_bitfields.
6887         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
6888         (lto_write_tree): Call it.
6889         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
6890         * streamer-hooks.h (struct streamer_hooks): Remove fields
6891         name, is_streamable and alloc_tree. Update all users.
6892         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
6893         (lto_materialize_tree): ... here.
6894         Handle CALL_EXPR codes.
6895         Remove call to lto_streamer_cache_append.
6896         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
6897         * tree-streamer.h (tree_read_bitfields): Declare.
6898
6899         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
6900         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
6901         * tree-streamer.h (stream_read_tree): New.  Replace all calls
6902         to lto_input_tree with it.
6903         (stream_write_tree): New.  Replace all calls to lto_output_tree,
6904         lto_output_tree_ref and lto_output_tree_or_ref with it.
6905         * lto-streamer-in.c (lto_read_tree): Inline code from
6906         lto_streamer_read_tree.
6907         (lto_input_tree): Move from tree-streamer-in.c.
6908         * lto-streamer-out.c (lto_output_tree_ref): Make static.
6909         Remove handling of NULL values for EXPR.
6910         Do not handle EXPRs that are not indexable.
6911         (lto_write_tree): Move from tree-streamer-out.c.
6912         Inline lto_streamer_write_tree.
6913         (lto_output_tree): Move from tree-streamer-out.c.
6914         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
6915         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
6916         (lto_preload_common_nodes): Likewise.
6917         Remove assertions and adjustments for nodes
6918         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
6919         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
6920         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
6921         * lto-streamer.h (lto_input_tree): Declare.
6922         (lto_output_tree_ref): Remove.
6923         * streamer-hooks.h (struct streamer_hooks): Remove fields
6924         preload_common_nodes, indexable_with_decls_p,
6925         pack_value_fields, unpack_value_fields and output_tree_header.
6926         Update all users.
6927         * tree-streamer-in.c (lto_materialize_tree): Make extern.
6928         (lto_input_tree_pointers): Likewise.
6929         (lto_read_tree): Move to lto-streamer-in.c.
6930         (lto_input_integer_cst): Make extern.
6931         (lto_get_pickled_tree): Likewise.
6932         (lto_get_builtin_tree): Likewise.
6933         (lto_input_tree): Move to lto-streamer-in.c.
6934         * tree-streamer-out.c (pack_value_fields): Make extern.
6935         (lto_output_tree_or_ref): Remove.  Replace all callers with
6936         calls to stream_write_tree.
6937         (lto_output_builtin_tree): Make extern.
6938         (lto_streamer_write_tree): Inline into lto_write_tree.
6939         (lto_output_tree_pointers): Make extern.
6940         (lto_output_tree_header): Likewise.
6941         (lto_output_integer_cst): Likewise.
6942         (lto_write_tree): Move to lto-streamer-out.c.
6943         (lto_output_tree): Likewise.
6944         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
6945         (preload_common_nodes): Likewise.
6946         (lto_streamer_cache_create): Call it.
6947         * tree-streamer.h: Include streamer-hooks.h.
6948         (stream_write_tree): New.
6949         (stream_read_tree): New.
6950         (lto_input_tree): Remove.
6951         (lto_materialize_tree): Declare.
6952         (lto_input_tree_pointers): Declare.
6953         (lto_get_pickled_tree): Declare.
6954         (lto_get_builtin_tree): Declare.
6955         (lto_input_integer_cst): Declare.
6956         (lto_output_tree_header): Declare.
6957         (pack_value_fields): Declare.
6958         (lto_output_tree_pointers): Declare.
6959         (lto_output_integer_cst): Declare.
6960         (lto_output_builtin_tree): Declare.
6961
6962 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6963
6964         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
6965         only if producer writes to the register given by regno.
6966
6967 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6968             Alexander Monakov  <amonakov@ispras.ru>
6969
6970         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
6971         (sched_get_condition_with_rev_uncached): ... this.  Factor out
6972         condition caching logic into ...
6973         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
6974         attempt to use cache for instructions with zero luid.
6975         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
6976         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
6977
6978 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6979
6980         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
6981         get_seqno_for_a_jump.  Update the caller.
6982         (get_seqno_by_succs): New.  Use it ...
6983         (get_seqno_for_a_jump): ... here to find a seqno if looking at
6984         predecessors was not sufficient.
6985         (get_seqno_by_preds): Include head in iteration range, exclude insn.
6986
6987 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
6988
6989         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
6990
6991 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
6992
6993         * sel-sched-ir.h (register_unavailable_p): Declare.
6994         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
6995         (set_unavailable_target_for_expr): ... here to properly test
6996         availability of a register.
6997         (speculate_expr): Ditto.
6998         * sel-sched.c (substitute_reg_in_expr): Ditto.
6999         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
7000
7001 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
7002
7003         * sel-sched.c (verify_target_availability): Fix usage of
7004         hard_regno_nregs.
7005
7006 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
7007
7008         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
7009         recognized by cannot_copy_insn_p hook and volatile instructions.
7010
7011 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
7012
7013         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
7014
7015 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
7016
7017         * doc/md.texi (define_bypass): Say that the instruction names can
7018         be filename-style globs.
7019         * Makefile.in (FNMATCH_H): Define.
7020         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
7021         * genattrtab.c: Include fnmatch.h.
7022         (bypass_list): Change field name from "insn" to "pattern".
7023         (gen_bypass_1): Update accordingly.
7024         (process_bypasses): Use fnmatch to check for matches between
7025         insn reservations and define_bypasses.
7026         * genautomata.c: Include fnmatch.h.
7027         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
7028         and out_pattern respectively.
7029         (gen_bypass, insert_bypass): Update accordingly.
7030         (for_each_matching_insn, process_bypass_2, process_bypass_1)
7031         (process_bypass): New functions.
7032         (process_decls): Use process_bypass.  Update after field name changes.
7033
7034 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
7035
7036         PR target/49687
7037         * config/avr/avr.md (smulqi3_highpart): New insn.
7038         (umulqi3_highpart): New insn.
7039         (*subqi3.ashiftrt7): New insn.
7040         (smulhi3_highpart): New expander.
7041         (umulhi3_highpart): Nex expander.
7042         (*smulhi3_highpart_call): New insn.
7043         (*umulhi3_highpart_call): New insn.
7044         (extend_u): New code attribute.
7045         (extend_prefix): Rename code attribute to extend_su.
7046         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
7047         widening QI/HI multiply.
7048
7049 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
7050
7051         PR tree-optimization/50039
7052         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
7053         that DEF_STMT has a stmt_vec_info.
7054
7055 2011-08-10  Richard Guenther  <rguenther@suse.de>
7056
7057         * tree.h (can_trust_pointer_alignment): Remove.
7058         * builtins.c (can_trust_pointer_alignment): Remove.
7059
7060 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
7061
7062         * c-typeck.c (scalar_to_vector): New function. Try scalar to
7063         vector conversion.
7064         (stv_conv): New enum for scalar_to_vector return type.
7065         (build_binary_op): Adjust.
7066         * doc/extend.texi: Description of scalar to vector expansion.
7067
7068 2011-08-10  Richard Guenther  <rguenther@suse.de>
7069
7070         * tree.h (get_pointer_alignment): Remove max-align argument.
7071         (get_object_alignment): Likewise.
7072         * builtins.c (get_object_alignment_1): Adjust.
7073         (get_object_alignment): Remove max-align argument.
7074         (get_pointer_alignment): Likewise.
7075         (expand_builtin_strlen): Adjust.
7076         (expand_builtin_memcpy): Likewise.
7077         (expand_builtin_mempcpy_args): Likewise.
7078         (expand_builtin_strncpy): Likewise.
7079         (expand_builtin_memset_args): Likewise.
7080         (expand_builtin_memcmp): Likewise.
7081         (expand_builtin_strcmp): Likewise.
7082         (expand_builtin_strncmp): Likewise.
7083         (get_builtin_sync_mem): Likewise.
7084         (fold_builtin_memset): Likewise.
7085         (fold_builtin_memory_op): Likewise.
7086         (expand_builtin_memory_chk): Likewise.
7087         * emit-rtl.c (get_mem_align_offset): Likewise.
7088         (set_mem_attributes_minus_bitpos): Likewise.
7089         * expr.c (expand_assignment): Likewise.
7090         (expand_expr_real_1): Likewise.
7091         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
7092         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
7093         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
7094         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
7095         * value-prof.c (gimple_stringops_transform): Likewise.
7096
7097 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
7098
7099         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
7100         * doc/tm.texi: Regenerate.
7101
7102 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
7103
7104         PR target/29560
7105         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
7106         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
7107         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
7108         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
7109         shift target is unused.
7110
7111 2011-08-10  Richard Guenther  <rguenther@suse.de>
7112
7113         PR tree-optimization/49937
7114         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
7115         using get_object_alignment_1.
7116
7117 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
7118
7119         * config/i386/i386.c (ix86_emit_i387_round): New function.
7120         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
7121         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
7122         Use ix86_emit_i387_round to expand round function for i387 math.
7123         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
7124         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
7125
7126 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7127
7128         * config/sync.c: Move to ../libgcc.
7129         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
7130         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
7131         Remove.
7132
7133 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
7134
7135         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
7136         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
7137         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
7138         Change 'from' and 'to' arguments type to reg_class_t.
7139         (TARGET_REGISTER_MOVE_COST): Define.
7140
7141 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
7142
7143         PR target/50026
7144         Revert:
7145         PR rtl-optimization/49990
7146         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
7147         ignore classes which can not change mode.
7148         (find_costs_and_classes): Ditto.
7149
7150 2011-08-09  Richard Guenther  <rguenther@suse.de>
7151
7152         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
7153         information for ranges with only negative values.
7154         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
7155         BIT_AND_EXPR handling to handle ranges with negative values.
7156
7157 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
7158
7159         * config/i386/i386.c: Remove traling spaces.
7160         * config/i386/sse.md: Likewise.
7161         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
7162         (*fma_fmsub_<mode>): Likewise.
7163         (*fma_fnmadd_<mode>): Likewise.
7164         (*fma_fnmsub_<mode>): Likewise.
7165
7166 2011-08-09  Nick Clifton  <nickc@redhat.com>
7167
7168         * config/rx/rx.md: Disable extender peepholes at -O3.
7169
7170 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
7171
7172         PR target/49781
7173         * config/i386/i386.md (reload_noff_load): New.
7174         (reload_noff_store): Ditto.
7175         * config/i386/i386.c (ix86_secondary_reload): Use
7176         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
7177         double-word moves from/to non-offsetable addresses instead of
7178         generating XMM temporary.
7179
7180 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
7181
7182         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
7183
7184 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
7185
7186         PR tree-optimization/50014
7187         * tree-vect-loop.c (vectorizable_reduction): Get def type before
7188         calling vect_get_vec_def_for_stmt_copy ().
7189
7190 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
7191
7192         PR rtl-optimization/49990
7193         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
7194         ignore classes which can not change mode.
7195         (find_costs_and_classes): Ditto.
7196
7197 2011-08-08  Richard Henderson  <rth@redhat.com>
7198
7199         PR middle-end/49990
7200         * config/i386/i386.c (ix86_expand_prologue): Call
7201         for SEH target gen_prologue_use instead of gen_blockage
7202         at prologue's end.
7203
7204 2011-08-08  Martin Jambor  <mjambor@suse.cz>
7205
7206         PR middle-end/49923
7207         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
7208         memory alignment.
7209
7210 2011-08-08   Diego Novillo  <dnovillo@google.com>
7211
7212         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
7213         (DATA_STREAMER_H): New.
7214         (GIMPLE_STREAMER_H): New.
7215         (TREE_STREAMER_H): New.
7216         (STREAMER_HOOKS_H): New.
7217         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
7218         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
7219         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
7220         (data-streamer.o): New.
7221         (data-streamer-in.o): New.
7222         (data-streamer-out.o): New.
7223         (gimple-streamer-in.o): New.
7224         (gimple-streamer-out.o): New.
7225         (streamer-hooks.o): New.
7226         (tree-streamer.o): New.
7227         (tree-streamer-in.o): New.
7228         (tree-streamer-out.o): New.
7229         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
7230         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
7231         GIMPLE_STREAMER_H and TREE_STREAMER_H.
7232         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
7233         GIMPLE_STREAMER_H and TREE_STREAMER_H.
7234         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
7235         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
7236         (ipa-inline-analysis.o): Likewise.
7237         (ipa-pure-const.o): Likewise.
7238         * data-streamer-in.c: New.
7239         * data-streamer-out.c: New.
7240         * data-streamer.c: New.
7241         * data-streamer.h: New.
7242         * gimple-streamer-in.c: New.
7243         * gimple-streamer-out.c: New.
7244         * gimple-streamer.h: New.
7245         * ipa-inline-analysis.c: Include data-streamer.h.
7246         * ipa-prop.c: Include data-streamer.h.
7247         * ipa-pure-const.c: Include data-streamer.h.
7248         * lto-cgraph.c: Include data-streamer.h.
7249         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
7250         (lto_input_widest_uint_uleb128): Likewise.
7251         (lto_input_sleb128): Likewise.
7252         (bp_unpack_var_len_unsigned): Likewise.
7253         (bp_unpack_var_len_int): Likewise.
7254         * lto-section-out.c (lto_output_uleb128_stream): Move to
7255         data-streamer-out.c.
7256         (lto_output_widest_uint_uleb128_stream): Likewise.
7257         (lto_output_sleb128_stream): Likewise.
7258         (bp_pack_var_len_unsigned): Likewise.
7259         (bp_pack_var_len_int): Likewise.
7260         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
7261         (struct string_slot): Remove.  Update all users.
7262         (lto_tag_check_set): Make extern.
7263         (lto_tag_check_range): Move to lto-streamer.h.
7264         (lto_tag_check): Likewise.
7265         (hash_string_slot_node): Remove.  Update all users.
7266         (eq_string_slot_node): Remove.  Update all users.
7267         (string_for_index): Move to data-streamer-in.c
7268         (input_string_internal): Likewise.
7269         (input_string_cst): Move to tree-streamer-in.c.
7270         (input_identifier): Likewise.
7271         (lto_input_string): Move to data-streamer-in.c
7272         (input_record_start): Move to data-streamer.h
7273         (canon_file_name): Use new definition of struct string_slot
7274         from data-streamer.h.  Set S_SLOT.LEN.
7275         (lto_input_location): Make extern.
7276         (lto_input_chain): Move to tree-streamer-in.c.
7277         (lto_init_eh): Make extern.
7278         (input_phi): Move to gimple-streamer-in.c.
7279         (input_gimple_stmt): Likewise.
7280         (input_bb): Likewise.
7281         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
7282         (unpack_ts_real_cst_value_fields): Likewise.
7283         (unpack_ts_fixed_cst_value_fields): Likewise.
7284         (unpack_ts_decl_common_value_fields): Likewise.
7285         (unpack_ts_decl_wrtl_value_fields): Likewise.
7286         (unpack_ts_decl_with_vis_value_fields): Likewise.
7287         (unpack_ts_function_decl_value_fields): Likewise.
7288         (unpack_ts_type_common_value_fields): Likewise.
7289         (unpack_ts_block_value_fields): Likewise.
7290         (unpack_ts_translation_unit_decl_value_fields): Likewise.
7291         (unpack_value_fields): Likewise.
7292         (lto_materialize_tree): Likewise.
7293         (lto_input_ts_common_tree_pointers): Likewise.
7294         (lto_input_ts_vector_tree_pointers): Likewise.
7295         (lto_input_ts_complex_tree_pointers): Likewise.
7296         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
7297         (lto_input_ts_decl_common_tree_pointers): Likewise.
7298         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
7299         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
7300         (lto_input_ts_field_decl_tree_pointers): Likewise.
7301         (lto_input_ts_function_decl_tree_pointers): Likewise.
7302         (lto_input_ts_type_common_tree_pointers): Likewise.
7303         (lto_input_ts_type_non_common_tree_pointers): Likewise.
7304         (lto_input_ts_list_tree_pointers): Likewise.
7305         (lto_input_ts_vec_tree_pointers): Likewise.
7306         (lto_input_ts_exp_tree_pointers): Likewise.
7307         (lto_input_ts_block_tree_pointers): Likewise.
7308         (lto_input_ts_binfo_tree_pointers): Likewise.
7309         (lto_input_ts_constructor_tree_pointers): Likewise.
7310         (lto_input_ts_target_option): Likewise.
7311         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
7312         (lto_input_tree_pointers): Likewise.
7313         (lto_get_pickled_tree): Likewise.
7314         (lto_get_builtin_tree): Likewise.
7315         (lto_read_tree): Likewise.
7316         (lto_input_integer_cst): Likewise.
7317         (lto_input_tree): Likewise.
7318         * lto-streamer-out.c: Include data-streamer.h,
7319         gimple-streamer.h and streamer-hooks.h.
7320         (struct string_slot): Move to data-streamer.h.
7321         (hash_string_slot_node): Likewise.
7322         (eq_string_slot_node): Likewise.
7323         (lto_string_index): Move to data-streamer-out.c.
7324         (lto_output_string_with_length): Likewise.
7325         (lto_output_string): Likewise.
7326         (output_string_cst): Move to tree-streamer-out.c.
7327         (output_identifier): Likewise.
7328         (output_zero): Move to data-streamer-out.c
7329         (output_uleb128): Likewise.
7330         (output_sleb128): Likewise.
7331         (output_record_start): Move to data-streamer.h
7332         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
7333         (pack_ts_real_cst_value_fields): Likewise.
7334         (pack_ts_fixed_cst_value_fields): Likewise.
7335         (pack_ts_decl_common_value_fields): Likewise.
7336         (pack_ts_decl_wrtl_value_fields): Likewise.
7337         (pack_ts_decl_with_vis_value_fields): Likewise.
7338         (pack_ts_function_decl_value_fields): Likewise.
7339         (pack_ts_type_common_value_fields): Likewise.
7340         (pack_ts_block_value_fields): Likewise.
7341         (pack_ts_translation_unit_decl_value_fields): Likewise.
7342         (pack_value_fields): Likewise.
7343         (lto_output_chain): Likewise.
7344         (lto_output_ts_common_tree_pointers): Likewise.
7345         (lto_output_ts_vector_tree_pointers): Likewise.
7346         (lto_output_ts_complex_tree_pointers): Likewise.
7347         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
7348         (lto_output_ts_decl_common_tree_pointers): Likewise.
7349         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
7350         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
7351         (lto_output_ts_field_decl_tree_pointers): Likewise.
7352         (lto_output_ts_function_decl_tree_pointers): Likewise.
7353         (lto_output_ts_type_common_tree_pointers): Likewise.
7354         (lto_output_ts_type_non_common_tree_pointers): Likewise.
7355         (lto_output_ts_list_tree_pointers): Likewise.
7356         (lto_output_ts_vec_tree_pointers): Likewise.
7357         (lto_output_ts_exp_tree_pointers): Likewise.
7358         (lto_output_ts_block_tree_pointers): Likewise.
7359         (lto_output_ts_binfo_tree_pointers): Likewise.
7360         (lto_output_ts_constructor_tree_pointers): Likewise.
7361         (lto_output_ts_target_option): Likewise.
7362         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
7363         (lto_output_tree_pointers): Likewise.
7364         (lto_output_tree_header): Likewise.
7365         (lto_output_builtin_tree): Likewise.
7366         (lto_write_tree): Likewise.
7367         (lto_output_integer_cst): Likewise.
7368         (lto_output_tree): Likewise.
7369         (output_phi): Move to gimple-streamer-out.c.
7370         (output_gimple_stmt): Likewise.
7371         (output_bb): Likewise.
7372         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
7373         (streamer_hooks): Move to streamer-hooks.c.
7374         (check_handled_ts_structures): Move to tree-streamer.c
7375         (lto_streamer_cache_add_to_node_array): Likewise.
7376         (lto_streamer_cache_insert_1): Likewise.
7377         (lto_streamer_cache_insert): Likewise.
7378         (lto_streamer_cache_insert_at): Likewise.
7379         (lto_streamer_cache_append): Likewise.
7380         (lto_streamer_cache_lookup): Likewise.
7381         (lto_streamer_cache_get): Likewise.
7382         (lto_record_common_node): Likewise.
7383         (lto_preload_common_nodes): Likewise.
7384         (lto_streamer_cache_create): Likewise.
7385         (lto_streamer_cache_delete): Likewise.
7386         (streamer_hooks_init): Move to streamer-hooks.c.
7387         * lto-streamer.h: Include diagnostic.h
7388         (struct output_block, struct lto_input_block,
7389         struct data_in, struct bitpack_d): Remove forward declarations.
7390         (struct bitpack_d): Move to data-streamer.h.
7391         (struct lto_streamer_cache_d): Move to tree-streamer.h.
7392         (struct streamer_hooks): Move to streamer-hooks.h.
7393         (bp_pack_var_len_unsigned): Move to data-streamer.h.
7394         (bp_pack_var_len_int): Likewise.
7395         (bp_unpack_var_len_unsigned): Likewise.
7396         (bp_unpack_var_len_int): Likewise.
7397         (lto_input_location): Declare.
7398         (lto_tag_check_set): Declare.
7399         (lto_init_eh): Declare.
7400         (lto_output_tree_ref): Declare.
7401         (lto_output_location): Declare.
7402         (bitpack_create): Move to data-streamer.h.
7403         (bp_pack_value): Likewise.
7404         (lto_output_bitpack): Likewise.
7405         (lto_input_bitpack): Likewise.
7406         (bp_unpack_value): Likewise.
7407         (lto_output_1_stream): Likewise.
7408         (lto_input_1_unsigned): Likewise.
7409         (lto_output_int_in_range): Likewise.
7410         (lto_input_int_in_range): Likewise.
7411         (bp_pack_int_in_range): Likewise.
7412         (bp_unpack_int_in_range): Likewise.
7413         (lto_output_enum): Likewise.
7414         (lto_input_enum): Likewise.
7415         (bp_pack_enum): Likewise.
7416         (bp_unpack_enum): Likewise.
7417         * streamer-hooks.c: New.
7418         * streamer-hooks.h: New.
7419         * tree-streamer-in.c: New.
7420         * tree-streamer-out.c: New.
7421         * tree-streamer.c: New.
7422         * tree-streamer.h: New.
7423
7424 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7425
7426         * gthr-posix95.h: Remove.
7427         * gthr.h [_PTHREADS95]: Remove.
7428         * configure.ac (enable_threads): Remove posix95.
7429         * configure: Regenerate.
7430         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
7431
7432 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
7433
7434         PR target/49781
7435         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
7436         SImode addresses.
7437         (ix86_print_operand_address): Handle zero-extended addresses.
7438         (memory_address_length): Add length of addr32 prefix for
7439         zero-extended addresses.
7440         (ix86_secondary_reload): Handle moves to/from double-word general
7441         registers from/to zero-extended addresses.
7442         * config/i386/predicates.md (lea_address_operand): Reject
7443         zero-extended operands.
7444
7445 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
7446
7447         PR other/48007
7448         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
7449
7450         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
7451         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
7452
7453         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
7454         (_Unwind_Context_Reg_Val): Likewise.
7455         (_Unwind_Get_Unwind_Word): Likewise.
7456         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
7457         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
7458         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
7459         for EXTENDED_CONTEXT_BIT.
7460         (__frame_state_for): Likewise.
7461         (uw_init_context_1): Likewise.
7462         (_Unwind_GetGR): Updated.
7463         (_Unwind_SetGR): Likewise.
7464         (_Unwind_GetGRPtr): Likewise.
7465         (_Unwind_SetGRPtr): Likewise.
7466         (_Unwind_SetGRValue): Likewise.
7467         (_Unwind_GRByValue): Likewise.
7468         (uw_install_context_1): Likewise.
7469
7470         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
7471         ASSUME_EXTENDED_UNWIND_CONTEXT.
7472         * doc/tm.texi: Regenerated.
7473
7474 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7475
7476         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
7477
7478 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7479
7480         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
7481         Linux/GNU-specific.
7482         (DEC Alpha Options, -mtune): Likewise.
7483         (MIPS Options, -march): native is supported on IRIX.
7484
7485 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7486
7487         * config/sparc/driver-sparc.c: New file.
7488         * config/sparc/x-sparc: New file.
7489         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
7490         * config/sparc/sparc.opt (native): New value for enum processor_type.
7491         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
7492         * config/sparc/sparc.c (sparc_option_override): Abort if
7493         PROCESSOR_NATIVE gets here.
7494         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
7495         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
7496         DRIVER_SELF_SPECS): Define.
7497         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
7498         (SPARC Options, -mtune): Likewise.
7499         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
7500         Substitute result.
7501         * configure: Regenerate.
7502         * Makefile.in (EXTRA_GCC_LIBS): Set.
7503         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
7504         (cpp$(exeext)): Likewise.
7505
7506 2011-08-08  Richard Guenther  <rguenther@suse.de>
7507
7508         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
7509         split out from ...
7510         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
7511         by composition.
7512
7513 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
7514
7515         PR tree-optimization/50005
7516         * ipa-inline-analysis (remap_predicate): Add cast to
7517         silence signed/unsigned comparison warning.
7518
7519 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
7520
7521         * modulo-sched.c (get_sched_window): Use a table for the debug output.
7522         Print the current ii.
7523         (sms_schedule_by_order): Reduce whitespace in dump line.
7524
7525 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
7526
7527         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
7528         and one loop for successors.  Fix upper bound of memory range.
7529
7530 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
7531
7532         PR target/50001
7533         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
7534         (TARGET_INSTANTIATE_DECLS): New define.
7535
7536 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
7537             Mikael Morin   <mikael.morin@sfr.fr>
7538
7539         * Makefile.in (INCLUDES_FOR_TARGET): New.
7540         (LIBGCC2_CFLAGS): Use it.
7541         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
7542
7543 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
7544
7545         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
7546         frame->save_regs_using_mov calculation.
7547
7548 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
7549
7550         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
7551         * config/i386/sse.md (castmode): New mode attribute.
7552         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
7553         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
7554
7555 2011-08-05  Jan Hubicka  <jh@suse.cz>
7556
7557         PR middle-end/49494
7558         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
7559
7560 2011-08-05  Jan Hubicka  <jh@suse.cz>
7561
7562         PR middle-end/49500
7563         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
7564         handle aliases.
7565         (create_emultls_var):New function.
7566         (ipa_lower_emutls): Handle aliases correctly.
7567
7568 2011-08-05  Jan Hubicka  <jh@suse.cz>
7569
7570         PR middle-end/49735
7571         * ipa-inline.c (recursive_inlining): Look through aliases.
7572
7573 2011-08-05  Jason Merrill  <jason@redhat.com>
7574
7575         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
7576         declarations to beginning of function.
7577
7578 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
7579
7580         PR rtl-optimization/49900
7581         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
7582         ensure basic blocks stay in the same order.
7583
7584 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
7585
7586         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
7587         store_bit_field.
7588         (s390_expand_atomic): Same.
7589
7590 2011-08-05  Richard Henderson  <rth@redhat.com>
7591
7592         PR rtl-opt/49977
7593         * dwarf2cfi.c (scan_insn_after): Split out of ...
7594         (scan_trace): ... here.  Correctly place notes wrt sequences.
7595
7596 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
7597             Richard Henderson  <rth@redhat.com>
7598
7599         PR rtl-opt/49982
7600         * expr.c (fixup_args_size_notes): Look through no-op moves.
7601
7602 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
7603
7604         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
7605         of "m" for operand 0.  Add type and mode attribute.
7606         (*pushxf_nointeger"): Use "<" constraint for operand 0.
7607         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
7608         constraint instead of "o" for opreand 1.
7609         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
7610         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
7611         operand 0, alternative 4.
7612         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
7613
7614 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
7615
7616         * config/i386/predicates.md (lea_address_operand): Rename from
7617         no_seg_address_operand.
7618         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
7619         (*lea_1_zext): Ditto.
7620         (*lea_2): Ditto.
7621         (*lea_2_zext): Ditto.
7622
7623 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
7624
7625         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
7626         parts.base and parts.index.
7627         * config/i386/predicates.md (aligned_operand): Ditto.
7628         (cmpxchg8b_pic_memory_operand): Ditto.
7629
7630 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7631
7632         * config/soft-fp: Move to ../libgcc.
7633         * Makefile.in (SFP_MACHINE): Remove.
7634         (libgcc-support): Remove $(SFP_MACHINE) dependency.
7635         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
7636         * config/arm/t-arm-softfp: Move to
7637         ../libgcc/config/arm/t-softfp.
7638         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
7639         * config/c6x/t-c6x-softfp: Remove.
7640         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
7641         * config/i386/t-fprules-softfp: Move to
7642         ../libgcc/config/t-softfp-tf.
7643         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
7644         * config/ia64/t-fprules-softfp: Remove.
7645         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
7646         * config/lm32/t-fprules-softfp: Remove.
7647         * config/moxie/sfp-machine.h: Remove.
7648         * config/moxie/t-moxie-softfp: Remove.
7649         * config/rs6000/darwin-ldouble-format: Move to
7650         ../libgcc/config/rs6000/ibm-ldouble-format.
7651         * config/rs6000/darwin-ldouble.c: Move to
7652         ../libgcc/config/rs6000/ibm-ldouble.c
7653         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
7654         * config/rs6000/libgcc-ppc64.ver: Likewise.
7655         * config/rs6000/sfp-machine.h: Likewise.
7656         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
7657         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
7658         (LIB2FUNCS_EXTRA): Remove.
7659         (TARGET_LIBGCC2_CFLAGS): Remove.
7660         * config/rs6000/t-aix52: Likewise
7661         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7662         $(srcdir)/config/rs6000/darwin-ldouble.c.
7663         (SHLIB_MAPFILES): Remove.
7664         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
7665         $(srcdir)/config/rs6000/darwin-ldouble.c.
7666         * config/rs6000/t-fprules-softfp: Move to
7667         ../libgcc/config/t-softfp-sfdf.
7668         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
7669         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
7670         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
7671         $(srcdir)/config/rs6000/darwin-ldouble.c.
7672         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
7673         * config/score/t-score-softfp: Remove.
7674         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
7675         soft-fp/t-softfp from tmake_file.
7676         (arm*-*-uclinux*): Likewise.
7677         (arm*-*-ecos-elf): Likewise.
7678         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
7679         (arm*-*-rtems*): Likewise.
7680         (arm*-*-elf): Likewise.
7681         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
7682         tmake_file.
7683         (moxie-*-uclinux*): Likewise.
7684         (moxie-*-rtems*): Likewise.
7685         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
7686         tmake_file.
7687         (lm32-*-rtems*): Likewise.
7688         (lm32-*-uclinux*): Likewise.
7689         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
7690         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7691         (powerpc-*-linux*, powerpc64-*-linux*): Remove
7692         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
7693         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
7694         tmake_file.
7695         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
7696         tmake_file.
7697         (tic6x-*-uclinux): Likewise.
7698         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
7699         soft-fp/t-softfp from tmake_file.
7700         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
7701         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
7702         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
7703         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
7704         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
7705
7706 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7707
7708         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
7709         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
7710         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
7711         TPBIT, TPBIT_FUNCS.
7712         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
7713         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
7714         Remove.
7715         * config/arm/t-vxworks: Likewise.
7716         * config/arm/t-wince-pe: Likewise.
7717         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
7718         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7719         * config/bfin/t-bfin-elf: Likewise.
7720         * config/bfin/t-bfin-linux: Likewise.
7721         * config/bfin/t-bfin-uclinux: Likewise.
7722         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
7723         Remove.
7724         * config/fr30/t-fr30: Likewise.
7725         * config/frv/t-frv: Likewise.
7726         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
7727         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7728         * config/m32c/t-m32c: Likewise.
7729         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
7730         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7731         * config/mcore/t-mcore: Likewise.
7732         * config/mep/t-mep: Likewise.
7733         * config/microblaze/t-microblaze: Likewise.
7734         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
7735         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7736         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
7737         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7738         * config/mn10300/t-linux: Remove.
7739         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7740         * config/pdp11/t-pdp11: Likewise.
7741         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
7742         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
7743         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7744         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
7745         * config/rs6000/t-aix52: Likewise.
7746         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
7747         $(srcdir)/config/rs6000/ppc64-fp.c.
7748         * config/rs6000/t-fprules-fpbit: Remove.
7749         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
7750         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7751         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
7752         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7753         * config/sparc/t-elf: Likewise.
7754         * config/sparc/t-leon: Likewise.
7755         * config/sparc/t-leon3: Likewise.
7756         * config/spu/t-spu-elf: Likewise.
7757         (DPBIT_FUNCS): Remove.
7758         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
7759         * config/v850/t-v850: Likewise.
7760         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
7761         (avr-*-*): Likewise.
7762         (h8300-*-rtems*): Set libgcc_tm_file.
7763         (h8300-*-elf*): Likewise.
7764         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
7765         tmake_file.
7766         (powerpc-*-eabisim*): Likewise.
7767         (powerpc-*-elf*): Likewise.
7768         (powerpc-*-eabialtivec*): Likewise.
7769         (powerpc-xilinx-eabi*): Likewise.
7770         (powerpc-*-eabi*): Likewise.
7771         (powerpc-*-rtems*): Likewise.
7772         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
7773         (powerpcle-*-elf*): Likewise.
7774         (powerpcle-*-eabisim*): Likewise.
7775         (powerpcle-*-eabi*): Likewise.
7776         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
7777         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
7778         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
7779         Remove.
7780
7781 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7782
7783         * Makefile.in (UNWIND_H): Remove.
7784         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
7785         ../libgcc/Makefile.in.
7786         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
7787         (LIBUNWINDDEP): Remove.
7788         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
7789         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
7790         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
7791         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
7792         Don't copy $(UNWIND_H).
7793         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
7794         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
7795         * aclocal.m4: Regenerate.
7796         * configure: Regenerate.
7797         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
7798         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
7799         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
7800         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
7801         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
7802         * config/arm/libunwind.S, config/arm/pr-support.c,
7803         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
7804         ../libgcc/config/arm.
7805         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
7806         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
7807         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
7808         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
7809         ($(T)frvend$(objext)): Likewise.
7810         * config/ia64/t-glibc (LIB2ADDEH): Remove.
7811         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
7812         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
7813         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
7814         ../libgcc/config/ia64.
7815         * config/ia64/t-hpux (LIB2ADDEH): Remove.
7816         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
7817         * config/ia64/t-vms (LIB2ADDEH): Remove.
7818         * config/ia64/vms.h (UNW_IVMS_MODE,
7819         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
7820         * config/picochip/t-picochip (LIB2ADDEH): Remove.
7821         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
7822         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
7823         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
7824         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
7825         $(srcdir)/../libgcc to refer to unwinder sources.
7826         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
7827         * config/t-darwin (LIB2ADDEH): Remove.
7828         * config/t-freebsd (LIB2ADDEH): Remove.
7829         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
7830         * config/t-libunwind-elf: Move to ../libgcc/config.
7831         * config/t-linux (LIB2ADDEH): Remove.
7832         * config/t-sol2 (LIB2ADDEH): Remove.
7833         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
7834         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
7835
7836 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
7837
7838         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
7839
7840         * doc/invoke.texi: Document core-avx-i.
7841
7842 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7843
7844         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
7845
7846 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
7847
7848         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
7849         result of multiple results reduction when extracting the final
7850         value using scalar code.
7851
7852 2011-08-05  Richard Guenther  <rguenther@suse.de>
7853
7854         PR tree-optimization/49984
7855         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
7856
7857 2011-08-05  Richard Guenther  <rguenther@suse.de>
7858
7859         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
7860         return true for constant integer ranges.
7861         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
7862         BIT_IOR_EXPR handling.
7863
7864 2011-08-04  Kai Tietz  <ktietz@redhat.com>
7865
7866         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
7867         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
7868
7869 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
7870
7871         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
7872         pattern def statement, and its access macro.
7873         (NUM_PATTERNS): Set to 5.
7874         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
7875         pattern def statement.
7876         (vect_transform_loop): Likewise.
7877         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
7878         function vect_recog_over_widening_pattern ().
7879         (vect_operation_fits_smaller_type): New function.
7880         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
7881         Likewise.
7882         (vect_pattern_recog_1): Move the code that marks pattern
7883         statements to vect_mark_pattern_stmts (), and call it.  Update
7884         documentation.
7885         * tree-vect-stmts.c (vect_supportable_shift): New function.
7886         (vect_analyze_stmt): Handle pattern def statement.
7887         (new_stmt_vec_info): Initialize pattern def statement.
7888
7889 2011-08-04  Richard Henderson  <rth@redhat.com>
7890
7891         PR target/49964
7892         * config/i386/i386.c (ix86_expand_call): Don't create nested
7893         PARALLELs for TARGET_VZEROUPPER.
7894         (ix86_split_call_vzeroupper): Fix extraction of the original call.
7895         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
7896         recognize nested PARALLELs.
7897         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
7898         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
7899         *sibcall_value_pop_vzeroupper): Likewise.
7900
7901 2011-08-04  Richard Henderson  <rth@redhat.com>
7902
7903         PR middle-end/49968
7904         * calls.c (expand_call): Use fixup_args_size_notes for
7905         emit_stack_restore.
7906         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
7907         in non-standard modes.
7908
7909 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
7910
7911         * gcc.c (self_spec): New variable.
7912         (static_specs): Add self_spec.
7913         (main): Call do_self_spec on "self_spec" specs after reading
7914         user specs files.  Move compare_debug handling right after that.
7915
7916 2011-08-04  Richard Guenther  <rguenther@suse.de>
7917
7918         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
7919         (value_range_nonnegative_p): New function.
7920         (ssa_name_nonnegative_p): Use it.
7921         (value_range_constant_singleton): New function.
7922         (op_with_constant_singleton_value_range): Use it.
7923         (extract_range_from_binary_expr_1): New function, split out from ...
7924         (extract_range_from_binary_expr): ... this.  Remove fallback
7925         constant folding done here.
7926
7927 2011-08-04  Richard Guenther  <rguenther@suse.de>
7928
7929         PR tree-optimization/49806
7930         * tree-vrp.c (op_with_boolean_value_range_p): New function.
7931         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
7932         a new statement for a final conversion to bool.
7933
7934 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
7935
7936         * gengtype-state.c: Include "bconfig.h" if
7937         GENERATOR_FILE is defined, "config.h" otherwise.
7938         * gengtype.c: Likewise.
7939         * gengtype-lex.l: Likewise.
7940         * gengtype-parse.c: Likewise.
7941         * Makefile.in (gengtype-lex.o-warn): New variable.
7942         (plugin_resourcesdir): Likewise.
7943         (plugin_bindir): Likewise.
7944         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
7945         (MOSTLYCLEANFILES): Add gengtype$(exeext).
7946         (native): Depend on gengtype$(exeext) is $enable_plugin
7947         is set to "yes".
7948         (gtype.state): Depend on s-gtype. Use temporary file.
7949         (gengtype-lex.o): New rule.
7950         (gengtype-parse.o): Likewise.
7951         (gengtype-state.o): Likewise.
7952         (gengtype$(exeext)): Likewise.
7953         (install-gengtype): Likewise.
7954         (gengtype.o): Likewise.
7955         (build/gengtype.o): Depend on version.h.
7956         (build/gengtype-state): Depend on double-int.h, version.h,
7957         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
7958         (install-plugin): Depend on install-gengtype.
7959
7960 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
7961
7962         PR middle-end/49905
7963         * tree.h (init_attributes): New prototype.
7964         * attribs.c (init_attributes): No longer static.
7965
7966 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7967
7968         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
7969         maybe_suffix.
7970
7971 2011-08-03   David Li  <davidxl@google.com>
7972
7973         * tree-optimize.c (execute_fixup_cfg): Fix up entry
7974         outgoing edge counts after inlining.
7975
7976 2011-08-03   David Li  <davidxl@google.com>
7977
7978         * profile.c (compute_branch_probabilities): Compute
7979         function frequency after profile annotation.
7980
7981 2011-08-04  Alan Modra  <amodra@gmail.com>
7982
7983         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
7984         use_backchain_to_restore_sp initialisation.
7985         (rs6000_legitimate_offset_address_p): Simplify offset test.
7986
7987 2011-08-03  Richard Henderson  <rth@redhat.com>
7988
7989         * config/spu/spu.md: Use define_c_enum instead of define_constants.
7990         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
7991         (UNSPECV_NOP): New.
7992
7993 2011-08-03  Richard Henderson  <rth@redhat.com>
7994
7995         PR target/34888
7996         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
7997
7998 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
7999
8000         PR tree-optimization/49948
8001         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
8002
8003 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
8004
8005         * config/m32c/m32c.c (class_sizes): Remove.
8006         (reduce_class): Change arguments and return type to reg_class_t.
8007         Change type cc var to HARD_REG_SET. Change type best var to
8008         reg_class_t. Change type best_size var to unsigned int. Remove
8009         initialization class_sizes var. Use reg_class_size array instead
8010         of class_sizes. Use reg_class_contents array instead
8011         of class_contents.
8012
8013 2011-08-03  Richard Guenther  <rguenther@suse.de>
8014
8015         PR middle-end/49958
8016         * fold-const.c (fold_binary_loc): Only associate
8017         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
8018         overflow wraps.
8019
8020 2011-08-03  Alan Modra  <amodra@gmail.com>
8021
8022         PR rtl-optimization/49941
8023         * jump.c (mark_jump_label): Comment.
8024         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
8025         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
8026         (mark_used_flags): Don't mark RETURN.
8027
8028 2011-08-03  Richard Guenther  <rguenther@suse.de>
8029
8030         PR tree-optimization/49938
8031         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
8032         deal with a POLYNOMIAL_CHREC.
8033
8034 2011-08-03  Revital Eres  <revital.eres@linaro.org>
8035
8036         * modulo-sched.c (calculate_stage_count,
8037         calculate_must_precede_follow, get_sched_window,
8038         try_scheduling_node_in_cycle, remove_node_from_ps): Add
8039         declaration.
8040         (update_node_sched_params, set_must_precede_follow, optimize_sc):
8041         New functions.
8042         (reset_sched_times): Call update_node_sched_params.
8043         (sms_schedule): Call optimize_sc.
8044         (get_sched_window): Change function arguments.
8045         (sms_schedule_by_order): Update call to get_sched_window.
8046         Call set_must_precede_follow.
8047         (calculate_stage_count): Add function argument.
8048
8049 2011-08-02  Richard Henderson  <rth@redhat.com>
8050
8051         PR target/49864
8052         PR target/49879
8053         * reg-notes.def (REG_ARGS_SIZE): New.
8054         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
8055         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
8056         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
8057         different stack levels.
8058         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
8059         (maybe_move_args_size_note): New.
8060         (combine_stack_adjustments_for_block): Use it.
8061         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
8062         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
8063         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
8064         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
8065         (cur_cfa): New.
8066         (queued_args_size): Remove.
8067         (add_cfi_args_size): Assert size is non-negative.
8068         (stack_adjust_offset, dwarf2out_args_size): Remove.
8069         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
8070         (notice_args_size, notice_eh_throw): New.
8071         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
8072         (dwarf2out_frame_debug_adjust_cfa): Likewise.
8073         (dwarf2out_frame_debug_cfa_offset): Likewise.
8074         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
8075         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
8076         (change_cfi_row): Don't emit args_size.
8077         (maybe_record_trace_start_abnormal): Split out from ...
8078         (maybe_record_trace_start): Here.  Set args_size_undefined.
8079         (create_trace_edges): Update to match.
8080         (scan_trace): Handle REG_ARGS_SIZE.
8081         (connect_traces): Connect args_size between EH insns.
8082         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
8083         * explow.c (suppress_reg_args_size): New.
8084         (adjust_stack_1): Split out from ...
8085         (adjust_stack): ... here.
8086         (anti_adjust_stack): Use it.
8087         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
8088         * expr.c (mem_autoinc_base): New.
8089         (fixup_args_size_notes): New.
8090         (emit_single_push_insn_1): Rename from emit_single_push_insn.
8091         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
8092         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
8093         * reload1.c (reload_as_needed): Likewise.
8094         * rtl.h (fixup_args_size_notes): Declare.
8095
8096 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
8097
8098         PR bootstrap/49914
8099         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
8100         of abs.
8101         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
8102         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
8103
8104 2011-08-02  Richard Henderson  <rth@redhat.com>
8105
8106         * config/h8300/h8300.c (push, pop): Return the insn.
8107         (h8300_swap_into_er6): Generate correct unwind info.
8108         (h8300_swap_out_of_er6): Likewise.
8109         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
8110         complex cfa expression.
8111         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
8112
8113 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
8114
8115         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
8116
8117 2011-08-02  Richard Henderson  <rth@redhat.com>
8118
8119         PR target/49878
8120         * config/h8300/h8300.c (h8300_move_ok): New.
8121         * config/h8300/h8300-protos.h: Declare it.
8122         * config/h8300/h8300.md (P): New mode iterator.
8123         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
8124         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
8125         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
8126         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
8127         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
8128         and pushqi1_h8300hs_normal; use PRE_MODIFY and
8129         register_no_sp_elim_operand.
8130         (*pushhi1_h8300hs_<P>): Similarly.
8131         (pushqi1, pushhi1, pushhi1_h8300): Remove.
8132         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
8133
8134 2011-08-02  Richard Henderson  <rth@redhat.com>
8135
8136         PR target/49881
8137         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
8138
8139 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
8140
8141         * c-parser.c (enum c_parser_prec): New enum, moved from within
8142         c_parser_binary_expression.
8143         (c_parser_binary_expression): Add PREC argument.  Stop parsing
8144         if operator has lower or equal precedence than PREC.
8145         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
8146         callers.
8147         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
8148         Adjust c_finish_omp_atomic caller.
8149         (c_parser_omp_taskyield): New function.
8150         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
8151         (c_parser_omp_clause_name): Handle final and mergeable clauses.
8152         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
8153         functions.
8154         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
8155         and PRAGMA_OMP_CLAUSE_MERGEABLE.
8156         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
8157         (c_parser_omp_clause_reduction): Handle min and max.
8158         * c-typeck.c (c_finish_omp_clauses): Don't complain about
8159         const qualified predetermined vars in firstprivate clause.
8160         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8161         Handle MIN_EXPR and MAX_EXPR.
8162         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
8163         and OMP_CLAUSE_MERGEABLE.
8164         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
8165         and OMP_ATOMIC_CAPTURE_NEW.
8166         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
8167         OMP_CLAUSE_MERGEABLE.
8168         (omp_clause_code_name): Likewise.
8169         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8170         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
8171         and OMP_CLAUSE_MERGEABLE.
8172         (OMP_CLAUSE_FINAL_EXPR): Define.
8173         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
8174         OMP_CLAUSE_MERGEABLE.
8175         (expand_task_call): Likewise.
8176         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
8177         (expand_omp_atomic_fetch_op): Handle cases where old or new
8178         value is needed afterwards.
8179         (expand_omp_atomic): Call expand_omp_atomic_load resp.
8180         expand_omp_atomic_store.
8181         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
8182         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
8183         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
8184         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8185         * tree-nested.c (convert_nonlocal_omp_clauses,
8186         convert_local_omp_clauses): Likewise.
8187         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
8188         OMP_ATOMIC_CAPTURE_NEW): New.
8189         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
8190         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
8191         New inlines.
8192         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
8193         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
8194         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
8195
8196 2011-08-02  Kai Tietz  <ktietz@redhat.com>
8197
8198         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
8199         boolean-type.
8200         (ssa_forward_propagate_and_combine): Interprete result of
8201         forward_propagate_comparison.
8202         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
8203         boolean-typed operands for comparisons.
8204
8205 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
8206
8207         * config/avr/libgcc.S: Gather related function in the
8208         same input section.
8209         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
8210         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
8211         references.
8212         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
8213         __udivmodsi4, __divmodsi4, __prologue_saves__,
8214         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
8215         __do_copy_data, __do_clear_bss, __do_global_ctors,
8216         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
8217
8218 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
8219
8220         PR target/47766
8221         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
8222         (stack_protect_test): The pattern compares ptr_mode value.
8223
8224 2011-08-02  Alan Modra  <amodra@gmail.com>
8225
8226         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
8227         note for save_LR_around_toc_setup sequence.
8228
8229 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8230
8231         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
8232
8233 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
8234             Joseph Myers  <joseph@codesourcery.com>
8235
8236         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
8237         * hwint.c: Include diagnostic-core.h.
8238         (abs_hwi): New.
8239         (gcd): Moved here...
8240         (pos_mul_hwi): New.
8241         (mul_hwi): New.
8242         (least_common_multiple): Moved here...
8243         * hwint.h (gcd): ... from here.
8244         (least_common_multiple): ... from here.
8245         (HOST_WIDE_INT_MIN): New.
8246         (HOST_WIDE_INT_MAX): New.
8247         (abs_hwi): Declared.
8248         (gcd): Declared.
8249         (pos_mul_hwi): Declared.
8250         (mul_hwi): Declared.
8251         (least_common_multiple): Declared.
8252         * omega.c (check_pos_mul): Removed.
8253         (check_mul): Removed.
8254         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
8255         mul_hwi instead of check_mul.
8256
8257 2011-08-01  Richard Henderson  <rth@redhat.com>
8258
8259         PR target/49881
8260         * config/avr/avr.h (PUSH_ROUNDING): New.
8261         * config/avr/avr.md (pushqi1): Rename from *pushqi.
8262         (*pushhi, *pushsi, *pushsf): Remove.
8263         (MPUSH): New mode iterator.
8264         (push<MPUSH>1): New expander.
8265
8266 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
8267
8268         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
8269         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
8270         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
8271         mmix_preferred_output_reload_class): Remove.
8272         * config/mmix/mmix.c (mmix_preferred_reload_class,
8273         mmix_preferred_output_reload_class): Make static. Change rclass
8274         argument and return type to reg_class_t.
8275         (TARGET_PREFERRED_RELOAD_CLASS,
8276         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8277
8278 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
8279
8280         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
8281         handling.
8282
8283 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8284
8285         PR target/47766
8286         * config/i386/i386.md (PTR): New.
8287         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
8288         (stack_protect_test): Likewise.
8289         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
8290         (stack_tls_protect_set_<mode>): Likewise.
8291         (stack_tls_protect_test_<mode>): Likewise.
8292
8293 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
8294
8295         PR target/49927
8296         * config/i386/i386.c (ix86_address_subreg_operand): New.
8297         (ix86_decompose_address): Use ix86_address_subreg_operand.
8298         (ix86_legitimate_address_p): Do not assert that subregs satisfy
8299         register_no_elim_operand in DImode.
8300
8301 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
8302
8303         PR tree-optimization/49926
8304         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
8305         in a chain doesn't have uses both inside and outside the loop.
8306
8307 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
8308
8309         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
8310         * config/avr/avr-devices.c (avr_mcu_types): Use it.
8311         * config/avr/avr-mcus.def (AVR_MCU): Use it.
8312         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
8313         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
8314         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
8315         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
8316         to detect if XJMP must not be skipped.
8317
8318 2011-08-02  Alan Modra  <amodra@gmail.com>
8319
8320         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
8321         Delete.
8322         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
8323         (rs6000_emit_prologue): Don't prematurely return when
8324         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
8325         save_toc_in_prologue case.
8326         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
8327         calls_alloca.
8328
8329 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
8330
8331         * config/avr/avr-devices.c: Delete SVN property svn:executable.
8332         * config/avr/predicates.md: Ditto.
8333         * config/avr/driver-avr.c: Ditto.
8334         * config/avr/genopt.sh: Set SVN property svn:executable to *.
8335
8336 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8337
8338         * calls.c (emit_library_call_value_1): Declare size only if
8339         BLOCK_REG_PADDING is defined.
8340
8341 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
8342
8343         PR target/49547
8344         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
8345         (x86_64-*-*): Likewise.
8346         * config/i386/i386.opt (mlzcnt): New.
8347         * config/i386/abmintrin.h: File removed.
8348         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
8349         * config/i386/lzcntintrin.h: ... here.  New file.
8350         (__lzcnt): Rename to ...
8351         (__lzcnt32): ... this.
8352         * config/i386/bmiintrin.h (head): Update copyright year.
8353         (__lzcnt_u16): Removed.
8354         (__lzcnt_u32): Likewise.
8355         (__lzcnt_u64): Likewise.
8356         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
8357         is defined, remove abmintrin.h.
8358         * config/i386/cpuid.h (bit_LZCNT): New.
8359         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8360         LZCNT feature.
8361         * config/i386/i386-c.c (ix86_target_macros_internal): Define
8362         __LZCNT__ if needed.
8363         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
8364         (ix86_option_override_internal): Handle LZCNT option.
8365         (ix86_valid_target_attribute_inner_p): Likewise.
8366         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
8367         * config/i386/i386.h (TARGET_LZCNT): New.
8368         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
8369         * config/i386/i386.md (clz<mode>2): Update insn constraint.
8370         (clz<mode>2_lzcnt): Likewise.
8371         * doc/invoke.texi: Mention -mlzcnt option.
8372         * doc/extend.texi: Likewise.
8373
8374 2011-08-01  Julian Brown  <julian@codesourcery.com>
8375
8376         * configure.ac (fixed-point): Add ARM support.
8377         * configure: Regenerate.
8378         * config/arm/arm.c (arm_fixed_mode_set): New struct.
8379         (arm_set_fixed_optab_libfunc): New.
8380         (arm_set_fixed_conv_libfunc): New.
8381         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
8382         ARM-specific names.
8383         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
8384         return values in SImode.
8385         (arm_return_in_msb): Return fixed-point types in the msb.
8386         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
8387         upwards.
8388         (arm_scalar_mode_supported_p): Support fixed-point modes.
8389         (arm_vector_mode_supported_p): Support vector fixed-point modes.
8390         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
8391         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
8392         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
8393         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
8394         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
8395         New mode iterators.
8396         (qaddsub_suf): New mode attribute.
8397         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
8398         vector modes.
8399         * config/arm/predicates.md (sat_shift_operator): New predicate.
8400         * config/arm/arm-fixed.md: New.
8401         * config/arm/arm.md: Include arm-fixed.md.
8402         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
8403
8404 2011-08-01  Julian Brown  <julian@codesourcery.com>
8405
8406         * calls.c (emit_library_call_value_1): Support padding for libcall
8407         arguments and return values.
8408         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
8409         downwards in big-endian mode.
8410
8411 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8412
8413         PR debug/49887
8414         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
8415         * config/sol2-protos.h: Likewise.
8416         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
8417         solaris_code_end.
8418         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
8419         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
8420         solaris_file_end.
8421         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
8422
8423 2011-08-01  Julian Brown  <julian@codesourcery.com>
8424
8425         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
8426
8427 2011-08-01  Julian Brown  <julian@codesourcery.com>
8428
8429         * final.c (output_addr_const): Print fixed-point constants as
8430         decimal not hex.
8431
8432 2011-08-01  Richard Guenther  <rguenther@suse.de>
8433
8434         * stor-layout.c (initialize_sizetypes): Properly sign-extend
8435         bitsiztype TYPE_MAX_VALUE.
8436
8437 2011-08-01  Julian Brown  <julian@codesourcery.com>
8438
8439         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
8440         comparison helpers.
8441
8442 2011-07-31  Richard Henderson  <rth@redhat.com>
8443
8444         * config/h8300/crti.asm: Add flags to .section directive.
8445         * config/h8300/crtn.asm: Likewise.
8446
8447 2011-07-31  Richard Henderson  <rth@redhat.com>
8448
8449         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
8450         * tree.c (build_common_tree_nodes): Likewise.
8451
8452 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
8453
8454         PR target/49880
8455         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
8456         (divsi3_i1): Likewise.
8457
8458 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8459
8460         PR tree-optimization/49749
8461         * tree-ssa-reassoc.c (get_rank): New forward declaration.
8462         (PHI_LOOP_BIAS): New macro.
8463         (phi_rank): New function.
8464         (loop_carried_phi): Likewise.
8465         (propagate_rank): Likewise.
8466         (get_rank): Add calls to phi_rank and propagate_rank.
8467
8468 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
8469
8470         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
8471         of TARGET_64BIT.
8472         (PTRDIFF_TYPE): Likewise.
8473
8474 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
8475
8476         PR target/49920
8477         * config/i386/i386.md (strset): Do not expand strset_singleop
8478         when %eax or $edi are fixed.
8479         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
8480         (*strsetsi_1): Ditto.
8481         (*strsethi_1): Ditto.
8482         (*strsetqi_1): Ditto.
8483         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
8484         (*rep_stossi): Ditto.
8485         (*rep_stosqi): Ditto.
8486         (*strlenqi_1): Ditto.
8487         (cmpstrnsi): Also fail when %ecx is fixed.
8488         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
8489         (*cmpstrnqi_1): Ditto.
8490         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
8491         (*strmovsi_1): Ditto.
8492         (*strmovhi_1): Ditto.
8493         (*strmovqi_1): Ditto.
8494         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
8495         (*rep_movsi): Ditto.
8496         (*rep_movqi): Ditto.
8497
8498 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
8499
8500         PR target/47908
8501         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
8502         Disable instruction scheduling for non-ColdFire targets.
8503         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8504
8505 2011-07-31  Revital Eres  <revital.eres@linaro.org>
8506
8507         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
8508         of anti-dep edge from a branch.
8509         (add_cross_iteration_register_deps): Create anti-dep edge from
8510         a branch.
8511
8512 2011-07-31  Revital Eres  <revital.eres@linaro.org>
8513
8514         * modulo-sched.c: Change comment.
8515         (reset_sched_times): Fix print message.
8516         (print_partial_schedule): Add print info.
8517
8518 2011-07-31  Tom de Vries  <tom@codesourcery.com>
8519
8520         PR middle-end/43513
8521         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
8522         get_object_alignment and TYPE_ALIGN.
8523
8524 2011-07-30  Tom de Vries  <tom@codesourcery.com>
8525
8526         PR middle-end/43513
8527         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
8528         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
8529
8530 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8531
8532         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
8533         <sys/sbd.h>.
8534         (cpu_types): New array.
8535         (cputype): New function.
8536         (host_detect_local_cpu): Only define buf, f if !__sgi__.
8537         Use scaninvent instead of /proc/cpuinfo if __sgi__.
8538         * config.host: Also use driver-native.o, mips/x-native on
8539         mips-sgi-irix*.
8540         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
8541         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
8542         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
8543
8544 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
8545
8546         PR middle-end/49897
8547         PR middle-end/49898
8548         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
8549         in nested parallel and outer is a gimple_reg, mark it as addressable
8550         and set its bit in task_shared_vars bitmap too.
8551
8552 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
8553
8554         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
8555
8556 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8557
8558         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
8559         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
8560         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
8561         AMASK_LOCKPFTCHOK): Define.
8562         (host_detect_local_cpu): Remove buf, f, cpu_names.
8563         Define cpu_types, implver, amask.
8564         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
8565         native CPU.
8566         * config.host: Also use driver-alpha.o, alpha/x-alpha on
8567         alpha*-dec-osf*.
8568         * config/alpha/osf5.h [__alpha__ || __alpha]
8569         (host_detect_local_cpu): Declare.
8570         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
8571         (DRIVER_SELF_SPECS): Define.
8572
8573 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
8574
8575         PR target/47715
8576         * config/i386/i386.md (*load_tp_x32): New.
8577         (*load_tp_x32_zext): Ditto.
8578         (*add_tp_x32): Ditto.
8579         (*add_tp_x32_zext): Ditto.
8580         (*load_tp_<mode>): Disable for TARGET_X32 targets.
8581         (*add_tp_<mode>): Ditto.
8582         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
8583         ptr_mode and convert to Pmode if needed.
8584
8585 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
8586
8587         PR target/49687
8588         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
8589         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
8590         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
8591         Add X to register footprint: Clobber r26/r27.
8592
8593 2011-07-29  Richard Guenther  <rguenther@suse.de>
8594
8595         * builtins.c (fold_builtin_signbit): Build the comparison
8596         with a proper type.
8597
8598 2011-07-29  Richard Guenther  <rguenther@suse.de>
8599
8600         PR tree-optimization/49893
8601         * tree-predcom.c (suitable_reference_p): Volatile references
8602         are not suitable.
8603
8604 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
8605
8606         PR target/49313
8607         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
8608         (__ctzsi2): Result for 0 may be undefined.
8609         (__ctzhi2): Result for 0 may be undefined.
8610         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
8611         (__popcountsi2): Ditto. And don't clobber r26.
8612         (__popcountdi2): Ditto. And don't clobber r27.
8613         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
8614         (parityhi2): New expand.
8615         (paritysi2): New expand.
8616         (popcounthi2): New expand.
8617         (popcountsi2): New expand.
8618         (clzhi2): New expand.
8619         (clzsi2): New expand.
8620         (ctzhi2): New expand.
8621         (ctzsi2): New expand.
8622         (ffshi2): New expand.
8623         (ffssi2): New expand.
8624         (copysignsf3): New insn.
8625         (bswapsi2): New expand.
8626         (*parityhi2.libgcc): New insn.
8627         (*parityqihi2.libgcc): New insn.
8628         (*paritysihi2.libgcc): New insn.
8629         (*popcounthi2.libgcc): New insn.
8630         (*popcountsi2.libgcc): New insn.
8631         (*popcountqi2.libgcc): New insn.
8632         (*popcountqihi2.libgcc): New insn-and-split.
8633         (*clzhi2.libgcc): New insn.
8634         (*clzsihi2.libgcc): New insn.
8635         (*ctzhi2.libgcc): New insn.
8636         (*ctzsihi2.libgcc): New insn.
8637         (*ffshi2.libgcc): New insn.
8638         (*ffssihi2.libgcc): New insn.
8639         (*bswapsi2.libgcc): New insn.
8640
8641 2011-07-29  Richard Guenther  <rguenther@suse.de>
8642
8643         * tree-vrp.c (get_value_range): Only set parameter default
8644         definitions to varying, leave others at undefined.
8645         (extract_range_from_binary_expr): Fix undefined handling.
8646         (vrp_visit_phi_node): Handle merged undefined state.
8647
8648 2011-07-29  Wei Guozhi  <carrot@google.com>
8649
8650         PR rtl-optimization/49799
8651         * combine.c (make_compound_operation): Check if the bit field is valid
8652         before change it to bit field extraction.
8653
8654 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
8655
8656         PR rtl-optimization/49891
8657         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
8658         newly created returnjumps.
8659
8660 2011-07-28  DJ Delorie  <dj@redhat.com>
8661
8662         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
8663         local frame in a naked function, and produce a suitable error for
8664         that specific case.
8665
8666         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
8667         registers to be reloaded in HI classes when the target is HI.
8668
8669 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8670
8671         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
8672         bound_one, bound_two.
8673
8674 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8675
8676         PR middle-end/48648
8677         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
8678         CLAST assignments.
8679         (translate_clast): Same.
8680         (translate_clast_assignment): New.
8681
8682 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
8683
8684         PR tree-optimization/49876
8685         * sese.c (rename_uses): Do not return false on gloog_error: set
8686         the new_expr to integer_zero_node and continue code generation.
8687         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
8688
8689 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
8690
8691         PR debug/49846
8692         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
8693         arguments also check if they aren't initialized with a MODE_INT
8694         mode of the same size.
8695
8696 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
8697
8698         * expr.c (get_bit_range): Handle *MEM_REF's.
8699
8700 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
8701
8702         * rtlanal.c (tablejump_p): False for returns.
8703         * reorg.c (first_active_target_insn): New static function.
8704         (find_end_label): Set JUMP_LABEL for a new returnjump.
8705         (optimize_skip, get_jump_flags, rare_destination,
8706         mostly_true_jump, get_branch_condition,
8707         steal_delay_list_from_target, own_thread_p,
8708         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
8709         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
8710         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
8711         * jump.c (delete_related_insns): Likewise.
8712         (jump_to_label_p): New function.
8713         (redirect_target): New static function.
8714         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
8715         (redirect_jump_1): Assert that the new label is nonnull.
8716         (redirect_jump): Likewise.
8717         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
8718         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
8719         exit block.
8720         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
8721         changed.  Ensure that the right label is passed to redirect_jump.
8722         * function.c (emit_return_into_block,
8723         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
8724         ret_rtx in their JUMP_LABEL.
8725         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
8726         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
8727         pass ret_rtx as label.
8728         * cfglayout.c (fixup_reorder_chain): Use
8729         force_nonfallthru_and_redirect rather than force_nonfallthru.
8730         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
8731         * rtl.h (ANY_RETURN_P): New macro.
8732         (jump_to_label_p): Declare.
8733         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
8734         JUMP_LABELs.
8735         (mark_target_live_regs): Likewise.
8736         * basic-block.h (force_nonfallthru_and_redirect): Declare.
8737         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
8738         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
8739         alpha_tablejump_best_label): Remove functions.
8740         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
8741         alpha_tablejump_best_label): Remove declarations.
8742         * config/sh/sh.c (barrier_align, split_branches): Adjust for
8743         ret_rtx in JUMP_LABELs.
8744         * config/arm/arm.c (is_jump_table): Likewise.
8745
8746 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
8747
8748         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
8749         special predicate.  Remove explicit mode checks.
8750
8751 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
8752
8753         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
8754         DW_AT_data_member_location containing just DW_OP_plus_uconst.
8755
8756         PR debug/49871
8757         * dwarf2out.c (size_of_die, value_format, output_die): Use
8758         DW_FORM_udata instead of DW_FORM_data[48] for
8759         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
8760
8761 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
8762
8763         * config/i386/i386.md (*tls_global_dynamic_64): Update
8764         length attribute.
8765
8766 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
8767
8768         PR target/47715
8769         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
8770         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
8771         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
8772         (tls_dynamic_gnu2_64): Ditto.
8773         (*tls_dynamic_gnu2_lea_64): Ditto.
8774         (*tls_dynamic_gnu2_call_64): Ditto.
8775         (*tls_dynamic_gnu2_combine_64): Ditto.
8776
8777 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
8778
8779         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
8780
8781 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
8782
8783         PR target/47364
8784         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
8785
8786 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8787
8788         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
8789         before the core constraints. Adjust attributes.
8790         ("*thumb2_movdf_vfp"): Likewise.
8791
8792 2011-07-28  Kai Tietz  <ktietz@redhat.com>
8793
8794         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
8795         (simplify_truth_ops_using_ranges): Likewise.
8796         (build_assert_expr_for): Likewise.
8797         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
8798         and handle BIT_NOT_EXPR for truth-operation.
8799
8800 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
8801
8802         PR target/49313
8803         Undo r176835 from trunk
8804         2011-07-27  Georg-Johann Lay
8805
8806 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
8807
8808         PR target/49687
8809         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
8810         Add _muluhisi3, _mulshisi3, _usmulhisi3.
8811         * config/avr/libgcc.S (__mulsi3): Rewrite.
8812         (__mulhisi3): Rewrite.
8813         (__umulhisi3): Rewrite.
8814         (__usmulhisi3): New.
8815         (__muluhisi3): New.
8816         (__mulshisi3): New.
8817         (__mulohisi3): New.
8818         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
8819         declare.
8820         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
8821         (pseudo_register_or_const_int_operand): New.
8822         (combine_pseudo_register_operand): New.
8823         (u16_operand): New.
8824         (s16_operand): New.
8825         (o16_operand): New.
8826         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
8827         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
8828         (any_extend, any_extend2): New code iterators.
8829         (extend_prefix): New code attribute.
8830         (mulsi3): Rewrite. Turn insn to expander.
8831         (mulhisi3): Ditto.
8832         (umulhisi3): Ditto.
8833         (usmulhisi3): New expander.
8834         (*mulsi3): New insn-and-split.
8835         (mulu<mode>si3): New insn-and-split.
8836         (muls<mode>si3): New insn-and-split.
8837         (mulohisi3): New insn-and-split.
8838         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
8839         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
8840         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
8841         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
8842         insn-and-split.
8843         (*mulsi3_call): Rewrite.
8844         (*mulhisi3_call): Rewrite.
8845         (*umulhisi3_call): Rewrite.
8846         (*usmulhisi3_call): New insn.
8847         (*muluhisi3_call): New insn.
8848         (*mulshisi3_call): New insn.
8849         (*mulohisi3_call): New insn.
8850         (extendqihi2): Use combine_pseudo_register_operand as predicate
8851         for operand 1.
8852         (extendqisi2): Ditto.
8853         (zero_extendqihi2): Ditto.
8854         (zero_extendqisi2): Ditto.
8855         (zero_extendhisi2): Ditto.
8856         (extendhisi2): Ditto. Don't early-clobber operand 0.
8857
8858 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
8859
8860         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
8861
8862 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8863
8864         PR tree-optimization/49471
8865         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
8866         iv only when the largest type is unsigned.  Do not call
8867         lang_hooks.types.type_for_size.
8868
8869 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8870
8871         PR middle-end/45450
8872         * graphite-poly.c (apply_poly_transforms): Disable legality check
8873         after an openscop read.
8874
8875 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
8876
8877         PR middle-end/47691
8878         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
8879         copy_bb_and_scalar_dependences.
8880         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
8881         (graphite_copy_stmts_from_block): Update call to rename_uses.
8882         (copy_bb_and_scalar_dependences): Update call to
8883         graphite_copy_stmts_from_block.
8884         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
8885
8886 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
8887
8888         PR target/49313
8889         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
8890         (__ctzsi2): Result for 0 may be undefined.
8891         (__ctzhi2): Result for 0 may be undefined.
8892         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
8893         (__popcountsi2): Ditto. And don't clobber r26.
8894         (__popcountdi2): Ditto. And don't clobber r27.
8895         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
8896         (parityhi2): New expand.
8897         (paritysi2): New expand.
8898         (popcounthi2): New expand.
8899         (popcountsi2): New expand.
8900         (clzhi2): New expand.
8901         (clzsi2): New expand.
8902         (ctzhi2): New expand.
8903         (ctzsi2): New expand.
8904         (ffshi2): New expand.
8905         (ffssi2): New expand.
8906         (copysignsf3): New insn.
8907         (bswapsi2): New expand.
8908         (*parityhi2.libgcc): New insn.
8909         (*parityqihi2.libgcc): New insn.
8910         (*paritysihi2.libgcc): New insn.
8911         (*popcounthi2.libgcc): New insn.
8912         (*popcountsi2.libgcc): New insn.
8913         (*popcountqi2.libgcc): New insn.
8914         (*popcountqihi2.libgcc): New insn-and-split.
8915         (*clzhi2.libgcc): New insn.
8916         (*clzsihi2.libgcc): New insn.
8917         (*ctzhi2.libgcc): New insn.
8918         (*ctzsihi2.libgcc): New insn.
8919         (*ffshi2.libgcc): New insn.
8920         (*ffssihi2.libgcc): New insn.
8921         (*bswapsi2.libgcc): New insn.
8922
8923 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
8924
8925         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
8926         the mode of symbolic_opreand RTXes.
8927
8928 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
8929
8930         * config/i386/predicates.md (x86_64_movabs_operand): Return false
8931         for pic_32bit_operand RTXes.
8932         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
8933         in DImode.
8934
8935 2011-07-27  Kai Tietz  <ktietz@redhat.com>
8936
8937         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
8938         for 32-bit, too.
8939         (ix86_handle_abi_attribute): Allow function attributes
8940         ms_abi/sysv_abi in 32-bit mode, too.
8941         * doc/extend.texi: Adjust attribute documentation.
8942
8943         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
8944         expression handling.
8945         (and_var_with_comparison_1): Likewise.
8946
8947 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
8948
8949         * params.h (ALLOW_STORE_DATA_RACES): New.
8950         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
8951         * Makefile.in (expr.o): Depend on PARAMS_H.
8952         * machmode.h (get_best_mode): Add argument.
8953         * fold-const.c (optimize_bit_field_compare): Add argument to
8954         get_best_mode.
8955         (fold_truthop): Same.
8956         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
8957         * expr.c (emit_group_store): Same.
8958         (copy_blkmode_from_reg): Same.
8959         (write_complex_part): Same.
8960         (optimize_bitfield_assignment_op): Add argument.
8961         Add argument to get_best_mode.
8962         (get_bit_range): New.
8963         (expand_assignment): Calculate maxbits and pass it down accordingly.
8964         (store_field): New argument.
8965         (expand_expr_real_2): New argument to store_field.  Include params.h.
8966         * expr.h (store_bit_field): New argument.
8967         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
8968         into account maxbits.
8969         * calls.c (store_unaligned_arguments_into_pseudos): New argument
8970         to store_bit_field.
8971         * expmed.c (store_bit_field_1): New argument.  Use it.
8972         (store_bit_field): Same.
8973         (store_fixed_bit_field): Same.
8974         (store_split_bit_field): Same.
8975         (extract_bit_field_1): Pass new argument to get_best_mode.
8976         (extract_bit_field): Same.
8977         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
8978         * doc/invoke.texi: Document parameter allow-store-data-races.
8979
8980 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
8981
8982         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
8983
8984 2011-07-27  Kai Tietz  <ktietz@redhat.com>
8985
8986         * tree-vrp.c (extract_range_from_binary_expr): Remove
8987         TRUTH-binary cases and add new bitwise-cases.
8988         (extract_range_from_assignment): Likewise.
8989         (register_edge_assert_for_1): Likeiwise.
8990         (register_edge_assert_for): Likewise.
8991         (simplify_truth_ops_using_ranges): Likewise.
8992         (simplify_stmt_using_ranges): Likewise.
8993
8994 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
8995
8996         PR target/47372
8997         * config/i386/i386.c (ix86_delegitimize_address): Call
8998         simplify_gen_subreg for PIC with mode of x only if modes of
8999         x and orig_x are different.
9000
9001 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
9002
9003         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
9004         to GC allocated copy of the string.
9005         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
9006         before .debug_line, not after it.
9007
9008 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
9009
9010         PR middle-end/47046
9011         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
9012         evolution_function_is_affine_p on CHREC_RIGHT.
9013
9014 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
9015
9016         * tree-data-ref.c (max_stmt_executions_tree): Do not call
9017         lang_hooks.types.type_for_size.
9018
9019 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
9020
9021         PR middle-end/47653
9022         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
9023         loops using wrapping semantics.
9024
9025 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
9026
9027         PR middle-end/48805
9028         * tree-scalar-evolution.c (instantiate_scev_r): Return
9029         chrec_dont_know for ADDR_EXPR.
9030
9031 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
9032             H.J. Lu  <hongjiu.lu@intel.com>
9033
9034         PR target/47369
9035         PR target/49853
9036         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
9037         if legitimize_tls_address returned operand in wrong mode. Allow
9038         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
9039         if legitimize_pic_address returned operand in wrong mode.
9040
9041 2011-07-26  Martin Jambor  <mjambor@suse.cz>
9042
9043         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
9044         return false for invariants.
9045
9046 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
9047
9048         * config/i386/i386.md (add->lea splitter): Implement using SWI
9049         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
9050         (add->lea zext splitter): Change operand 2 predicate to
9051         x86_64_nonmemory_operand.
9052
9053 2011-07-26  Richard Guenther  <rguenther@suse.de>
9054
9055         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
9056         frequency makes everything hot.
9057
9058 2011-07-26  Richard Guenther  <rguenther@suse.de>
9059
9060         PR tree-optimization/49840
9061         * tree-vrp.c (range_fits_type_p): Properly handle full
9062         double-int precision.
9063
9064 2011-07-26  Martin Jambor  <mjambor@suse.cz>
9065
9066         PR bootstrap/49786
9067         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
9068         counts.
9069         (update_specialized_profile): Likewise.
9070
9071 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
9072             H.J. Lu  <hongjiu.lu@intel.com>
9073
9074         PR target/47381
9075         PR target/49832
9076         PR target/49833
9077         * config/i386/i386.md (i): Change SImode attribute to "e".
9078         (g): Change SImode attribute to "rme".
9079         (di): Change SImode attribute to "nF".
9080         (general_operand): Change SImode attribute to x86_64_general_operand.
9081         (general_szext_operand): Change SImode attribute to
9082         x86_64_szext_general_operand.
9083         (immediate_operand): Change SImode attribute to
9084         x86_64_immediate_operand.
9085         (nonmemory_operand): Change SImode attribute to
9086         x86_64_nonmemory_operand.
9087         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
9088         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
9089         (*lea_1): Use SWI48 mode iterator.
9090         (*lea_1_zext): New insn pattern.
9091         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
9092         (*bt<mode>): Ditto.
9093         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
9094         Update operand constraints.
9095         (addsi_1_zext): Ditto.
9096         (*add<mode>2): Ditto.
9097         (*addsi_3_zext): Ditto.
9098         (*subsi_1_zext): Ditto.
9099         (*subsi_2_zext): Ditto.
9100         (*subsi_3_zext): Ditto.
9101         (*addsi3_carry_zext): Ditto.
9102         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
9103         (*mulsi3_1_zext): Ditto.
9104         (*andsi_1): Ditto.
9105         (*andsi_1_zext): Ditto.
9106         (*andsi_2_zext): Ditto.
9107         (*<any_or:code>si_1_zext): Ditto.
9108         (*<any_or:code>si_2_zext): Ditto.
9109         (*test<mode>_1): Use <general_operand> predicate for operand 1.
9110         (*and<mode>_2): Ditto.
9111         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
9112         (add->lea splitter): Check operand modes in insn constraint.  Extend
9113         operands less than SImode wide to SImode.
9114         (add->lea zext splitter): Do not extend input operands to DImode.
9115         (*lea_general_1): Handle only QImode and HImode operands.
9116         (*lea_general_2): Ditto.
9117         (*lea_general_3): Ditto.
9118         (*lea_general_1_zext): Remove.
9119         (*lea_general_2_zext): Ditto.
9120         (*lea_general_3_zext): Ditto.
9121         (*lea_general_4): Check operand modes in insn constraint.  Extend
9122         operands less than SImode wide to SImode.
9123         (ashift->lea splitter): Ditto.
9124         * config/i386/i386.c (ix86_print_operand_address): Print address
9125         registers with 'q' modifier on 64bit targets.
9126         * config/i386/predicates.md (pic_32bit_opreand): Define as special
9127         predicate.  Reject non-SI and non-DI modes.
9128
9129 2011-07-25  Andrew Pinski  <apinski@cavium.com>
9130
9131         PR tree-opt/49671
9132         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
9133         TREE_THIS_NOTRAP into the inner most MEM_REF.
9134         Always copy TREE_THIS_VOLATILE.
9135         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
9136         arguments are not volatile references.
9137
9138 2011-07-25  Richard Henderson  <rth@redhat.com>
9139
9140         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
9141         * final.c (final_scan_insn): Don't test for it.
9142         (rest_of_clean_state): Likewise.
9143
9144 2011-07-25  Richard Henderson  <rth@redhat.com>
9145
9146         PR debug/49841
9147         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
9148         (emit_frame_save): Likewise.
9149         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
9150         insn onto a dummy blockage insn after the join label.
9151
9152 2011-07-25  Richard Henderson  <rth@redhat.com>
9153
9154         * dwarf2cfi.c (dw_trace_info): Add ID member.
9155         (get_trace_index): Remove.  Change users to use ID member.
9156         (before_next_cfi_note): New.
9157         (connect_traces): Remove unreachable traces before the main loop.
9158         Look across one trace and generate remember/restore_state if needed.
9159
9160 2011-07-25  Richard Henderson  <rth@redhat.com>
9161
9162         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
9163
9164 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
9165
9166         * genattr.c (write_upcase, gen_attr <enum definition writing>):
9167         Move to ...
9168         * genattr-common.c ... here.
9169         (main): Call gen_attr.
9170         * optc-gen.awk: Make generated program include insn-attr-common.h .
9171         * Makefile.in (oprions.o): Depend on insn-attr-common.h
9172
9173 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
9174
9175         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9176         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
9177         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
9178         m32c_print_operand, m32c_print_operand_address): Remove.
9179         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
9180         Change return type to bool. Change argument type to bool.
9181         (m32c_print_operand, m32c_print_operand_address): Make static.
9182         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
9183         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9184
9185 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9186
9187         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
9188         attributes): Document mmap.
9189
9190 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
9191
9192         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9193         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
9194         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
9195         mmix_print_operand, mmix_print_operand_address): Remove.
9196         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
9197         Change return type to bool. Change argument type to bool.
9198         (mmix_print_operand, mmix_print_operand_address): Make static.
9199         (mmix_intval, mmix_output_condition): Change 'x' argument type
9200         to const_rtx.
9201         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
9202         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9203
9204 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
9205
9206         PR target/39386
9207         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
9208         shift counter for x << x and x >> x shifts.
9209
9210 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9211
9212         PR target/47124
9213         * config.gcc: Reject *-*-solaris2 configuration.
9214
9215 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
9216
9217         PR tree-optimization/49809
9218         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
9219         gimple_get_lhs instead of gimple_assign_lhs.
9220
9221 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9222
9223         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
9224
9225 2011-07-25  Richard Guenther  <rguenther@suse.de>
9226
9227         PR tree-optimization/49822
9228         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
9229         more.  Make sure to preserve stmts with side-effects.  Properly
9230         handle virtual defs, follow a longer def chain.
9231
9232 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
9233
9234         PR plugins/45348
9235         PR plugins/48425
9236         PR plugins/46577
9237         * Makefile.in: Do not flatten c-family directory when installing
9238         plugin headers.
9239
9240 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
9241
9242         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
9243         original nodes if we are dealing with virtual clones.
9244
9245 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
9246
9247         * common/config/c6x/c6x-common.c: New file.
9248
9249 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
9250
9251         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
9252
9253 2011-07-25  Richard Guenther  <rguenther@suse.de>
9254
9255         PR tree-optimization/49715
9256         * tree-vrp.c: Include expr.h and optabs.h.
9257         (range_fits_type_): New function.
9258         (simplify_float_conversion_using_ranges): Likewise.
9259         (simplify_stmt_using_ranges): Call it.
9260         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
9261         * optabs.c (can_float_p): Export.
9262         * optabs.h (can_float_p): Declare.
9263
9264 2011-07-25  Richard Guenther  <rguenther@suse.de>
9265
9266         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
9267         (get_value_range): For out-of-range SSA names or names created
9268         after propagation return a read-only varying range.
9269         (dump_all_value_ranges): Adjust.
9270         (vrp_initialize): Likewise.
9271         (vrp_finalize): Likewise.
9272
9273 2011-07-24  Richard Henderson  <rth@redhat.com>
9274
9275         PR debug/49831
9276         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
9277         them entirely.
9278
9279 2011-07-24  Richard Henderson  <rth@redhat.com>
9280
9281         PR debug/49825
9282         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
9283         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
9284
9285 2011-07-24  Richard Henderson  <rth@redhat.com>
9286
9287         PR debug/49827
9288         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
9289
9290 2011-07-24  Richard Henderson  <rth@redhat.com>
9291
9292         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
9293         Zero args_size for abnormal edges.  Adjust all callers.
9294
9295 2011-07-24  Richard Henderson  <rth@redhat.com>
9296
9297         PR debug/49825
9298         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
9299
9300 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9301
9302         PR bootstrap/49835
9303         * collect2.c (demangle_flag): Removed.
9304
9305 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
9306
9307         * configure.ac (demangler_in_ld): Default to yes.
9308         * configure: Regenerated.
9309         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
9310         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
9311         --no-demangle options straight through to ld.  When
9312         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
9313         way that has the intended effect on Windows.
9314
9315 2011-07-23  Richard Henderson  <rth@redhat.com>
9316
9317         * dwarf2cfi.c: Include basic-block.h.
9318         (dw_label_info): Remove.
9319         (trace_work_list, trace_index): New.
9320         (remember_row, emit_cfa_remember): Remove.
9321         (dw_trace_info_hash, dw_trace_info_eq): New.
9322         (get_trace_index, get_trace_info): New.
9323         (save_point_p): New.
9324         (free_cfi_row): Remove.
9325         (add_cfi): Do not emit DW_CFA_remember_state.
9326         (cfa_row_equal_p): New.
9327         (barrier_args_size): Remove.
9328         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
9329         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
9330         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
9331         (dwarf2out_cfi_begin_epilogue): Remove.
9332         (dwarf2out_frame_debug_restore_state): Remove.
9333         (connect_traces, create_pseudo_cfg): New.
9334         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
9335         * Makefile.in (dwarf2cfi.o): Update.
9336
9337 2011-07-23  Richard Henderson  <rth@redhat.com>
9338
9339         * dwarf2cfi.c (dw_trace_info): New.
9340         (dw_label_info): New.
9341         (cie_return_save): New.
9342         (cur_trace): New.
9343         (queued_args_size): Rename from args_size.  Update all users.
9344         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
9345         (def_cfa_1): Use cur_trace instead of cfa_*.
9346         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
9347         (clobbers_queued_reg_save, reg_saved_in): Likewise.
9348         (dwarf2out_frame_debug_expr): Likewise.
9349         (create_cie_data): Split out from ...
9350         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
9351
9352 2011-07-23  Richard Henderson  <rth@redhat.com>
9353
9354         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
9355         Update all users to match.
9356         (execute_dwarf2_frame): Free reg_saved_in_data.
9357
9358 2011-07-23  Richard Henderson  <rth@redhat.com>
9359
9360         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
9361         (queued_reg_saves): Don't GTY.  Change to a VEC.
9362         (queue_reg_save): Update to match.
9363         (dwarf2out_flush_queued_reg_saves): Likewise.
9364         (clobbers_queued_reg_save): Likewise.
9365         (reg_saved_in): Likewise.
9366         (execute_dwarf2_frame): Free queued_reg_saves.
9367
9368 2011-07-23  Richard Henderson  <rth@redhat.com>
9369
9370         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
9371
9372 2011-07-23  Richard Henderson  <rth@redhat.com>
9373
9374         * dwarf2cfi.c (add_cfi_args_size): Split out from...
9375         (dwarf2out_args_size): ... here.
9376         (add_cfi_restore): Split out from ...
9377         (dwarf2out_frame_debug_cfa_restore): ... here.
9378         (def_cfa_0): Split out from ...
9379         (def_cfa_1): ... here.
9380         (cfi_oprnd_equal_p, cfi_equal_p): New.
9381         (change_cfi_row): New.
9382         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
9383         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
9384         (output_cfis): Remove.
9385         * dwarf2out.c (output_fde): Simplify output_cfi loop.
9386         (dwarf2out_switch_text_section): Don't call output_cfis.
9387         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
9388         * dwarf2out.h: Update decls.
9389         (enum dw_val_class): Add dw_val_class_none.
9390
9391 2011-07-23  Richard Henderson  <rth@redhat.com>
9392
9393         * dwarf2cfi.c (update_row_reg_save): New.
9394         (dwarf2out_frame_debug_cfa_expression): Use it.
9395         (dwarf2out_frame_debug_cfa_restore): Likewise.
9396         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
9397
9398 2011-07-23  Richard Henderson  <rth@redhat.com>
9399
9400         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
9401
9402 2011-07-23  Richard Henderson  <rth@redhat.com>
9403
9404         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
9405         (cie_cfi_row): New.
9406         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
9407         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
9408         (cur_row, remember_row): New.
9409         (def_cfa_1): Use cur_row instead of the old_* variables.
9410         (dwarf2out_frame_debug_restore_state): Similarly.
9411         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
9412         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
9413         (dwarf2out_frame_debug_adjust_cfa): Likewise.
9414         (dwarf2out_frame_debug_cfa_offset): Likewise.
9415         (dwarf2out_frame_debug_expr): Likewise.
9416         (execute_dwarf2_frame): Set up cur_row.
9417         * dwarf2out.h (struct cfa_loc): Mark for GTY.
9418
9419 2011-07-23  Richard Henderson  <rth@redhat.com>
9420
9421         * basic-block.h (EDGE_PRESERVE): New.
9422         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
9423         * bb-reorder.c: Include except.h.
9424         (fix_up_crossing_landing_pad): New.
9425         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
9426         landing pads in the right partition.  Duplicate as necessary.
9427         (partition_hot_cold_basic_blocks): Fix up DF info after
9428         duplicating landing pads.
9429         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
9430         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
9431         is set properly.  Validate that EH edges are not CROSSING.
9432         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
9433         (dw2_build_landing_pads): ... here.
9434         (convert_to_eh_region_ranges): Remove code to fixup crossing
9435         landing pads.
9436         * except.h (expand_dw2_landing_pad_for_region): Declare.
9437         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
9438
9439 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
9440
9441         PR target/49816
9442         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
9443
9444 2011-07-22  Jason Merrill  <jason@redhat.com>
9445
9446         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
9447
9448 2011-07-22  Richard Henderson  <rth@redhat.com>
9449
9450         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
9451
9452 2011-07-22  Richard Henderson  <rth@redhat.com>
9453
9454         * jump.c (maybe_propagate_label_ref): Split out of...
9455         (mark_all_labels): ... here.  Do not attempt label_ref
9456         propagation while in cfglayout mode.
9457
9458 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
9459
9460         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
9461         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
9462         (dwarf_attr_name): Handle DW_AT_GNU_macros.
9463         (dwarf2out_define): If the vector is empty and
9464         lineno is 0, emit a dummy entry first.
9465         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
9466         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
9467         optimize_macinfo_range): New functions.
9468         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
9469         mergeable, optimize longer strings using
9470         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
9471         optimize longer sequences of define/undef ops from headers
9472         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
9473         emit a section headers.
9474         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
9475         and macinfo_section_label to DEBUG_MACRO_SECTION
9476         resp. DEBUG_MACRO_SECTION_LABEL.
9477         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
9478         instead of DW_AT_macro_info.
9479
9480         PR other/32998
9481         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
9482         options.
9483         * dwarf2out.c: Include opts.h.
9484         (dchar_p): New typedef.  Define heap VEC for it.
9485         (producer_string): New variable.
9486         (gen_producer_string): New function.
9487         (gen_compile_unit_die): Use it.
9488         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
9489         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
9490         * doc/invoke.texi: Document -grecord-gcc-switches and
9491         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
9492         to -frecord-gcc-switches description.
9493
9494 2011-07-22  Jason Merrill  <jason@redhat.com>
9495
9496         PR c++/30112
9497         * c-decl.c (c_linkage_bindings): Define.
9498
9499 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
9500
9501         PR debug/49815
9502         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
9503
9504 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
9505
9506         * config/i386/i386.c (ix86_option_override_internal): Disallow
9507         MS ABI in x32 mode.
9508         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
9509         only for TARGET_LP64.
9510         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
9511
9512 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
9513
9514         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
9515         avoid warnings when GCC is built with a C++ compiler.
9516
9517 2011-07-22  Martin Jambor  <mjambor@suse.cz>
9518
9519         PR lto/49796
9520         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
9521         if decl node is in another partition, call cgraph_get_node only once.
9522
9523 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
9524
9525         * config.gcc (x86_64-*-linux*): Set
9526         default_gnu_indirect_function to yes.
9527
9528 2011-07-22  Richard Guenther  <rguenther@suse.de>
9529
9530         PR tree-optimization/45819
9531         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
9532         preserve volatile and notrap flags.
9533
9534 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9535             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9536
9537         PR bootstrap/49794
9538         * configure.ac: Test AM_ICONV with CXX.
9539         * configure: Regenerate.
9540         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
9541
9542 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9543
9544         PR bootstrap/49797
9545         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
9546         (set_cloog_options): Use it.
9547
9548 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
9549
9550         PR c++/49756
9551         * gcc.c (main): Call stack_limit_increase (64MB).
9552         * toplev.c (toplev_main): Likewise.
9553
9554 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9555
9556         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
9557         instead of force_reg.
9558
9559 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9560
9561         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
9562         needed and use force_reg after convert.
9563         (ix86_expand_call): Likewise.
9564         (ix86_expand_special_args_builtin): Likewise.
9565         (ix86_expand_builtin): Likewise.
9566
9567 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9568
9569         PR middle-end/47654
9570         PR middle-end/49649
9571         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
9572         in parameter.  Initialize v1 and v2 based on the values returned
9573         by clast_name_to_lb_ub.
9574         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
9575         values.
9576         (type_for_clast_bin): Same.
9577         (type_for_clast_expr): Same.
9578         (type_for_clast_eq): Update calls to type_for_clast_expr.
9579         (type_for_clast_for): Same.
9580         (build_iv_mapping): Same.
9581         * graphite-ppl.h (value_min): New.
9582
9583 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9584
9585         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
9586         types whenever possible.
9587
9588 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9589
9590         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
9591         and ub fields.
9592         (new_clast_name_index): Add lb and ub parameters.
9593         (free_clast_name_index): New.
9594         (clast_name_to_lb_ub): New.
9595         (save_clast_name_index): Add lb and ub parameters.
9596         (compute_bounds_for_param): New.
9597         (type_for_level): Removed.
9598         (type_for_clast_for): Removed level parameter.  Do not call
9599         type_for_level.
9600         (graphite_create_new_loop): Store the lb and ub for the clast_name
9601         of the iterator of the loop that has been generated.
9602         (graphite_create_new_loop_guard): Remove parameter level.
9603         (create_params_index): Store the lb and ub of each parameter.
9604         (gloog): Use free_clast_name_index.  Pass to create_params_index
9605         the current scop.
9606
9607 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9608
9609         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
9610         (max_precision_type): Inline max_signed_precision_type.
9611         (type_for_clast_red): Use max_precision_type.
9612         (type_for_clast_bin): Same.
9613         (type_for_clast_for): Same.
9614
9615 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9616
9617         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
9618         type_for_interval.
9619         (gcc_type_for_value): Renamed type_for_value.
9620         (gcc_type_for_clast_term): Renamed type_for_clast_term.
9621         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
9622         (gcc_type_for_clast_red): Renamed type_for_clast_red.
9623         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
9624         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
9625         (graphite_translate_clast_equation): Update calls.
9626         (compute_type_for_level): Renamed type_for_level.
9627         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
9628         (build_iv_mapping): Update calls.
9629         (graphite_create_new_loop_guard): Same.
9630
9631 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9632
9633         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
9634         comment.
9635
9636 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9637
9638         * graphite-clast-to-gimple.c (struct ivs_params): New.
9639         (clast_name_to_gcc): Use ivs_params to pass around parameters.
9640         (clast_to_gcc_expression): Same.
9641         (clast_to_gcc_expression_red): Same.
9642         (gcc_type_for_clast_term): Same.
9643         (gcc_type_for_clast_expr): Same.
9644         (gcc_type_for_clast_red): Same.
9645         (gcc_type_for_clast_bin): Same.
9646         (gcc_type_for_clast_eq): Same.
9647         (graphite_translate_clast_equation): Same.
9648         (graphite_create_guard_cond_expr): Same.
9649         (graphite_create_new_guard): Same.
9650         (graphite_create_new_loop): Same.
9651         (build_iv_mapping): Same.
9652         (translate_clast_user): Same.
9653         (graphite_create_new_loop_guard): Same.
9654         (translate_clast): Same.
9655         (translate_clast_for_loop): Same.
9656         (translate_clast_for): Same.
9657         (translate_clast_guard): Same.
9658         (initialize_cloog_names): Fix typo.
9659         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
9660
9661 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9662
9663         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
9664         (new_clast_name_index): Add level parameter.
9665         (clast_name_to_level): New.
9666         (save_clast_name_index): Add level parameter.
9667         (newivs_to_depth_to_newiv): Removed.
9668         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
9669         (graphite_create_new_loop): Add level parameter.  Pass level to
9670         save_clast_name_index.
9671         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
9672         (create_params_index): Pass level to save_clast_name_index.
9673
9674 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9675
9676         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
9677         recompute type, lb, and ub.  Get them from...
9678         (graphite_create_new_loop_guard): ...here.  Pass in parameter
9679         pointers to type, lb, and ub.
9680         (translate_clast_for_loop): Update function calls.
9681         (translate_clast_for): Same.
9682
9683 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
9684
9685         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
9686         psct_dynamic_dim.
9687         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
9688         (gcc_type_for_iv_of_clast_loop): Update use of level.
9689         (gloog): Start counting nesting level from 0.
9690         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
9691         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
9692         psct_dynamic_dim on level.
9693
9694 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9695
9696         * config/i386/i386.c (ix86_legitimize_address): Convert to
9697         Pmode if needed.
9698
9699 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
9700
9701         * config/i386/i386.c (function_value_64): Always return pointers
9702         in Pmode.
9703         (ix86_promote_function_mode): New.
9704         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
9705
9706 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9707
9708         PR tree-optimization/49749
9709         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
9710         remove no-longer-used maxrank variable.
9711
9712 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
9713
9714         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
9715
9716 2011-07-21  Jason Merrill  <jason@redhat.com>
9717
9718         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
9719         * recog.h (struct insn_data_d): Check it instead of
9720         HAVE_DESIGNATED_INITIALIZERS.
9721         * genoutput.c (output_insn_data): Likewise.
9722
9723 2011-07-21  Richard Guenther  <rguenther@suse.de>
9724
9725         PR tree-optimization/49770
9726         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
9727         valueized any operand.  Renamed from ...
9728         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
9729         (valueize_shared_reference_ops_from_ref): Return whether we
9730         valueized any operand.
9731         (vn_reference_lookup): Only when we valueized any operand
9732         use the valueized reference for alias analysis.  Do not preserve
9733         the original reference tree in this case.
9734
9735 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
9736
9737         * config/i386/i386.c (ix86_decompose_address): Reject all but
9738         register operands and subregs of DImode hard registers in index.
9739
9740 2011-07-21  Kai Tietz  <ktietz@redhat.com>
9741
9742         * fold-const.c (fold_unary_loc): Preserve indirect
9743         comparison cast to none-boolean type.
9744         * tree-ssa.c (useless_type_conversion_p): Preserve cast
9745         from/to boolean-type.
9746         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
9747         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
9748         * tree-cfg.c (verify_gimple_comparison): Check result
9749         type of comparison expression.
9750         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
9751         of condition result and disallow type-cast sinking into comparison.
9752
9753 2011-07-21  Richard Guenther  <rguenther@suse.de>
9754
9755         * tree-ssa-forwprop.c (combine_conversions): Return whether
9756         we have to run cfg-cleanup.  Properly remove dead stmts.
9757         (ssa_forward_propagate_and_combine): Adjust.
9758
9759 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
9760
9761         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
9762
9763 2011-07-21  Kai Tietz  <ktietz@redhat.com>
9764
9765         * tree-ssa-propagate.c (substitute_and_fold): Use
9766         do_dce flag to deside, if BB's statements are scanned
9767         in last to first, or first to last order.
9768
9769 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
9770
9771         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
9772
9773 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
9774             Uros Bizjak  <ubizjak@gmail.com>
9775             Richard Henderson  <rth@redhat.com>
9776
9777         * config/i386/constraints.md (w): New.
9778
9779         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
9780         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
9781
9782         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
9783         instead of TARGET_64BIT.
9784
9785         * config/i386/i386.md (indirect_jump): Replace
9786         nonimmediate_operand with indirect_branch_operand.
9787         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
9788         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
9789         Convert operand 0 to Pmode for x32 if not PIC.
9790         (*tablejump_1): Replace nonimmediate_operand with
9791         indirect_branch_operand.  Replace constraint "m" with "w".
9792         (*call_vzeroupper): Replace constraint "m" with "w".
9793         (*call): Likewise.
9794         (*call_rex64_ms_sysv_vzeroupper): Likewise.
9795         (*call_rex64_ms_sysv): Likewise.
9796         (*call_value_vzeroupper): Likewise.
9797         (*call_value): Likewise.
9798         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
9799         (*call_value_rex64_ms_sysv): Likewise.
9800         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
9801
9802         * config/i386/predicates.md (indirect_branch_operand): New.
9803         (call_insn_operand): Support x32.
9804
9805 2011-07-20  Michael Eager  <eager@eagercon.com>
9806
9807         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
9808
9809 2011-07-20  Richard Henderson  <rth@redhat.com>
9810
9811         * cfg.c (dump_bb_info): Dump basic_block->flags.
9812         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
9813
9814 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
9815
9816         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9817         of DImode hard registers in index.
9818         (ix86_legitimate_address_p): Allow subregs of base and index to span
9819         more than a word.  Assert that subregs of base and index satisfy
9820         register_no_elim_operand predicates.  Reject addresses where
9821         base and index have different modes.
9822
9823 2011-07-20  Robert Millan  <rmh@gnu.org>
9824
9825         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
9826
9827 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9828
9829         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
9830         removing now-unnecessary assignment.
9831
9832 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9833
9834         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
9835         memory address space to the type's address space.
9836
9837 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
9838
9839         PR target/36467
9840         PR target/49687
9841         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
9842         and expand appropriately if there is a CONST_INT in operand2.
9843         (usmulqihi3): New insn.
9844         (*sumulqihi3): New insn.
9845         (*osmulqihi3): New insn.
9846         (*oumulqihi3): New insn.
9847         (*muluqihi3.uconst): New insn_and_split.
9848         (*muluqihi3.sconst): New insn_and_split.
9849         (*mulsqihi3.sconst): New insn_and_split.
9850         (*mulsqihi3.uconst): New insn_and_split.
9851         (*mulsqihi3.oconst): New insn_and_split.
9852         (*ashifthi3.signx.const): New insn_and_split.
9853         (*ashifthi3.signx.const7): New insn_and_split.
9854         (*ashifthi3.zerox.const): New insn_and_split.
9855         (mulsqihi3): New insn.
9856         (muluqihi3): New insn.
9857         (muloqihi3): New insn.
9858         * config/avr/predicates.md (const_2_to_7_operand): New.
9859         (const_2_to_6_operand): New.
9860         (u8_operand): New.
9861         (s8_operand): New.
9862         (o8_operand): New.
9863         (s9_operand): New.
9864         (register_or_s9_operand): New.
9865
9866 2011-07-20  Kai Tietz  <ktietz@redhat.com>
9867
9868         * builtins.c (fold_builtin_expect): See through the cast
9869         from truthvalue_type_node to long.
9870
9871 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
9872
9873         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
9874         where we can use them from the standard and altivec instruction
9875         sets, instead of always using the 3 operand VSX forms that require
9876         the destination to overlap one of the inputs.
9877         (vsx_fms*): Ditto.
9878         (vsx_fnma*): Ditto.
9879         (vsx_fnms*): Ditto.
9880
9881         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
9882         for DF types.
9883         (fmsdf4_fpr): Ditto.
9884         (nfmadf4_fpr): Ditto.
9885         (nfmsdf4_fpr): Ditto.
9886
9887 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
9888
9889         * genrecog.c (make_insn_sequence): Correct position numbering
9890         when filtering out match_scratch and match_dup.
9891
9892 2011-07-20  Richard Guenther  <rguenther@suse.de>
9893
9894         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
9895         against already removed statements.
9896         (forward_propagate_into_comparison): Remove dead defining stmts.
9897         (forward_propagate_into_gimple_cond): Likewise.
9898         (forward_propagate_into_cond): Simplify.
9899         (ssa_forward_propagate_and_combine): Handle changed cfg from
9900         forward_propagate_into_comparison.
9901         * tree-ssa-phiopt.c (conditional_replacement): Use proper
9902         locations for newly built statements.
9903
9904 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
9905
9906         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
9907
9908 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9909
9910         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
9911         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
9912
9913 2011-07-20  Richard Guenther  <rguenther@suse.de>
9914
9915         PR middle-end/18908
9916         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
9917         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
9918         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
9919
9920 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
9921
9922         * config/frv/frv.c (frv_register_move_cost): Define explicitly
9923         costs for subclasses of GR_REGS.
9924
9925 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
9926
9927         PR target/49780
9928         * config/i386/predicates.md (no_seg_addres_operand): No more special.
9929         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
9930         of DImode hard registers in base.
9931         (ix86_legitimate_address_p): Allow SImode and DImode base and index
9932         registers.
9933
9934 2011-07-20  Richard Guenther  <rguenther@suse.de>
9935
9936         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
9937         (unify_nodes): Deal with that.
9938         (solve_graph): Likewise.
9939
9940 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
9941
9942         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
9943         canonicalize left operand from ZERO_EXTEND to AND.
9944
9945 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
9946
9947         * target.def (class_max_nregs): New hook.
9948         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
9949         * doc/tm.texi: Regenerate.
9950         * targhooks.c (default_class_max_nregs): New function.
9951         * targhooks.h (default_class_max_nregs): Declare.
9952         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
9953         x_ira_reg_class_min_nregs arrays to unsigned char.
9954         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
9955         hook instead of CLASS_MAX_NREGS macro.
9956         * reginfo.c (restore_register_info): Ditto.
9957         * ira-conflicts.c (process_regs_for_copy): Use
9958         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9959         Change type rclass and aclass vars to reg_class_t.
9960         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
9961         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
9962         reg_class_t.
9963         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
9964         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
9965
9966         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
9967         * config/i386/i386.c (ix86_class_max_nregs): New function.
9968         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
9969         instead of CLASS_MAX_NREGS macro.
9970         (TARGET_CLASS_MAX_NREGS): Define.
9971         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
9972         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
9973         * config/avr/avr.c (class_max_nregs): Remove function.
9974         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
9975         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
9976         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
9977         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
9978         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
9979         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
9980         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
9981         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
9982         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
9983         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
9984         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
9985         * config/score/score.h (CLASS_MAX_NREGS): Remove.
9986         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
9987         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
9988         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
9989
9990 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
9991
9992         * cif-code.def (OVERWRITABLE): Fix typo and move around.
9993         (TARGET_OPTIMIZATION_MISMATCH): Delete.
9994         (EH_PERSONALITY): Fix typo.
9995         (NON_CALL_EXCEPTIONS): Fix message.
9996         (OPTIMIZATION_MISMATCH): Adjust message.
9997         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
9998
9999 2011-07-19  Ian Lance Taylor  <iant@google.com>
10000
10001         * doc/install.texi (Configuration): Document
10002         --enable-build-poststage1-with-cxx.
10003
10004 2011-07-19  Robert Millan  <rmh@gnu.org>
10005
10006         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
10007         (GLIBC_DYNAMIC_LINKER): Remove.
10008
10009         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
10010         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
10011         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
10012         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
10013         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
10014         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
10015
10016         * config/mips/linux.h: Remove everything except for ...
10017         (GLIBC_DYNAMIC_LINKER): ... this macro.
10018
10019         * config/mips/linux64.h: Remove everything except for ...
10020         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
10021         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
10022         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
10023         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
10024         (GNU_USER_LINK_EMULATIONN32): New macros.
10025
10026         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
10027         Use the new headers.
10028
10029 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10030
10031         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
10032         Add offset_known_p and size_known_p fields.
10033         (MEM_OFFSET_KNOWN_P): Update accordingly.
10034         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
10035         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
10036         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
10037         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
10038         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
10039         (init_emit_regs): Likewise.
10040
10041 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10042
10043         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
10044         (MEM_OFFSET): Change from returning an rtx to returning a
10045         HOST_WIDE_INT.
10046         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
10047         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
10048         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
10049         (clear_mem_offset): Declare.
10050         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
10051         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
10052         MEM_OFFSET to get a HOST_WIDE_INT offset.
10053         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
10054         (adjust_offset_for_component_ref): Take a bool "known_p"
10055         parameter and a HOST_WIDE_INT "offset" parameter.
10056         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
10057         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
10058         than an rtx.  Use clear_mem_offset to clear the offset.
10059         * cfgcleanup.c (merge_memattrs): Likewise.
10060         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
10061         * function.c (assign_parm_find_stack_rtl): Likewise.
10062         (assign_parm_setup_stack): Likewise.
10063         * print-rtl.c (print_rtx): Likewise.
10064         * reload.c (find_reloads_subreg_address): Likewise.
10065         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
10066         * var-tracking.c (INT_MEM_OFFSET): Likewise.
10067         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
10068         (get_mem_align_offset): Likewise.
10069         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
10070         (clear_mem_offset): New function.
10071         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
10072         offset rather than an rtx.  Assume both the expressio and offset
10073         are available.
10074         (r10k_needs_protection_p_1): Update accordingly, checking the
10075         expression and offset availability here instead.
10076
10077 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10078
10079         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
10080         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
10081         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
10082         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
10083         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
10084         (clear_mem_size): Declare.
10085         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
10086         (clear_mem_size): New function.
10087         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
10088         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
10089         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
10090         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
10091         to clear the size.
10092         (nonoverlapping_memrefs_p): Likewise.
10093         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
10094         (expand_builtin_init_trampoline): Likewise.
10095         * calls.c (compute_argument_addresses): Likewise.
10096         * cfgcleanup.c (merge_memattrs): Likewise.
10097         * dce.c (find_call_stack_args): Likewise.
10098         * dse.c (record_store, scan_insn): Likewise.
10099         * dwarf2out.c (dw_sra_loc_expr): Likewise.
10100         * expr.c (emit_block_move_hints): Likewise.
10101         * function.c (assign_parm_find_stack_rtl): Likewise.
10102         * print-rtl.c (print_rtx): Likewise.
10103         * reload.c (find_reloads_subreg_address): Likewise.
10104         * rtlanal.c (may_trap_p_1): Likewise.
10105         * var-tracking.c (track_expr_p): Likewise.
10106         * varasm.c (assemble_trampoline_template): Likewise.
10107         * config/arm/arm.c (arm_print_operand): Likewise.
10108         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
10109         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
10110         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
10111         (expand_constant_setmem_prologue): Likewise.
10112         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
10113         * config/rs6000/rs6000.c (expand_block_move): Likewise.
10114         (adjacent_mem_locations): Likewise.
10115         * config/s390/s390.c (s390_expand_setmem): Likewise.
10116         (s390_expand_insv): Likewise.
10117         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
10118         (*extendqi<mode>2_short_displ): Likewise.
10119         * config/sh/sh.c (expand_block_move): Likewise.
10120         * config/sh/sh.md (extv, extzv): Likewise.
10121
10122 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10123
10124         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
10125         (mem_attrs_htab_eq): ...here.
10126         (find_mem_attrs): Replace with...
10127         (set_mem_attrs): ...this function.  Take a mem_attrs structure
10128         rather than individual fields.
10129         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
10130         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
10131         (set_mem_size, change_address, adjust_address_1, offset_address)
10132         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
10133         Update accordingly.
10134
10135 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
10136
10137         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
10138         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
10139         Provide a dummy definition of MEM_ADDR_SPACE for generators.
10140         (target_rtl): Add x_mode_mem_attrs.
10141         (mode_mem_attrs): New macro.
10142         (get_mem_attrs): New function.
10143         * emit-rtl.c (get_mem_attrs): Rename to...
10144         (find_mem_attrs): ...this.
10145         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
10146         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
10147         (set_mem_size, change_address, adjust_address_1, offset_address)
10148         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
10149         Update accordingly.
10150         (init_emit_regs): Initialize mode_mem_attrs.
10151
10152 2011-07-19  Richard Guenther  <rguenther@suse.de>
10153
10154         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
10155         TRUTH_*_EXPR handling.
10156         * tree-ssa-operands.c (get_expr_operands): Likewise.
10157         * tree-ssa-pre.c (fully_constant_expression): Likewise.
10158         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
10159         Likewise.
10160         (is_and_or_or): Likewise.
10161         (is_norm_cond_subset_of): Likewise.
10162
10163 2011-07-19  Richard Guenther  <rguenther@suse.de>
10164
10165         * tree.h (fold_build_pointer_plus_loc): New helper function.
10166         (fold_build_pointer_plus_hwi_loc): Likewise.
10167         (fold_build_pointer_plus): Define.
10168         (fold_build_pointer_plus_hwi): Likewise.
10169         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
10170         (fold_builtin_memory_op): Likewise.
10171         (fold_builtin_stpcpy): Likewise.
10172         (fold_builtin_memchr): Likewise.
10173         (fold_builtin_strstr): Likewise.
10174         (fold_builtin_strchr): Likewise.
10175         (fold_builtin_strrchr): Likewise.
10176         (fold_builtin_strpbrk): Likewise.
10177         (fold_builtin_strcat): Likewise.
10178         (expand_builtin_memory_chk): Likewise.
10179         (fold_builtin_memory_chk): Likewise.
10180         * c-typeck.c (build_unary_op): Likewise.
10181         * cgraphunit.c (thunk_adjust): Likewise.
10182         * fold-const.c (build_range_check): Likewise.
10183         (fold_binary_loc): Likewise.
10184         * omp-low.c (extract_omp_for_data): Likewise.
10185         (expand_omp_for_generic): Likewise.
10186         (expand_omp_for_static_nochunk): Likewise.
10187         (expand_omp_for_static_chunk): Likewise.
10188         * tree-affine.c (add_elt_to_tree): Likewise.
10189         * tree-data-ref.c (split_constant_offset_1): Likewise.
10190         * tree-loop-distribution.c (generate_memset_zero): Likewise.
10191         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
10192         * tree-predcom.c (ref_at_iteration): Likewise.
10193         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
10194         (add_to_parts): Likewise.
10195         (create_mem_ref): Likewise.
10196         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10197         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
10198         (number_of_iterations_le): Likewise.
10199         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
10200         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
10201         (vect_create_addr_base_for_vector_ref): Likewise.
10202         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
10203         (vect_create_cond_for_alias_checks): Likewise.
10204         * tree-vrp.c (extract_range_from_assert): Likewise.
10205         * config/alpha/alpha.c (alpha_va_start): Likewise.
10206         (alpha_gimplify_va_arg_1): Likewise.
10207         * config/i386/i386.c (ix86_va_start): Likewise.
10208         (ix86_gimplify_va_arg): Likewise.
10209         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
10210         * config/mep/mep.c (mep_expand_va_start): Likewise.
10211         (mep_gimplify_va_arg_expr): Likewise.
10212         * config/mips/mips.c (mips_va_start): Likewise.
10213         (mips_gimplify_va_arg_expr): Likewise.
10214         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
10215         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
10216         (rs6000_gimplify_va_arg): Likewise.
10217         * config/s390/s390.c (s390_va_start): Likewise.
10218         (s390_gimplify_va_arg): Likewise.
10219         * config/sh/sh.c (sh_va_start): Likewise.
10220         (sh_gimplify_va_arg_expr): Likewise.
10221         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
10222         * config/spu/spu.c (spu_va_start): Likewise.
10223         (spu_gimplify_va_arg_expr): Likewise.
10224         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
10225         Likewise.
10226         (xstormy16_gimplify_va_arg_expr): Likewise.
10227         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
10228         (xtensa_gimplify_va_arg_expr): Likewise.
10229
10230 2011-07-19  Richard Guenther  <rguenther@suse.de>
10231
10232         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
10233         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
10234         handling.
10235
10236         PR middle-end/18908
10237         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
10238         result of BIT_*_EXPR to bitfield precision.
10239
10240 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
10241
10242         PR tree-optimization/49742
10243         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
10244         as a potential write.
10245
10246 2011-07-19  Richard Guenther  <rguenther@suse.de>
10247
10248         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
10249         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
10250         (forward_propagate_comparison): Simplify, remove obsolete code.
10251
10252 2011-07-19  Richard Guenther  <rguenther@suse.de>
10253
10254         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
10255         BIT_XOR_EXPR, same as the RTL expander does.
10256         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
10257         (verify_gimple_assign_unary): Likewise.
10258         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
10259         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
10260         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
10261
10262 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
10263
10264         PR tree-optimization/49768
10265         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
10266         if offset is smaller than bitoffset, but offset+size is bigger
10267         than bitoffset.
10268
10269 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
10270
10271         PR tree-optimization/49771
10272         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
10273         zero step, set segment length to the size of the data-ref's type.
10274
10275 2011-07-18  Martin Jambor  <mjambor@suse.cz>
10276
10277         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
10278         comments.
10279         (ipcp_values_pool): Declare.
10280         (ipcp_sources_pool): Likewise.
10281         (ipcp_lattice): Changed to forward declaration.
10282         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
10283         cannot_devirtualize.
10284         (ipa_node_params): New fields descriptors, lattices, known_vals,
10285         clone_for_all_contexts and node dead, removed fields params and
10286         count_scale.
10287         (ipa_set_param_count): Removed.
10288         (ipa_get_param_count): Made to work with descriptors vector.
10289         (ipa_get_param): Updated.
10290         (ipa_param_cannot_devirtualize_p): Removed.
10291         (ipa_param_types_vec_empty): Likewise.
10292         (ipa_set_param_used): New function.
10293         (ipa_get_param_used): Updated to use descriptors vector.
10294         (ipa_func_list): Removed.
10295         (ipa_init_func_list): Removed declaration.
10296         (ipa_push_func_to_list_1): Likewise.
10297         (ipa_pop_func_from_list): Likewise.
10298         (ipa_push_func_to_list): Removed.
10299         (ipa_lattice_from_jfunc): Remove declaration.
10300         (ipa_get_jf_pass_through_result): Declare.
10301         (ipa_get_jf_ancestor_result): Likewise.
10302         (ipa_value_from_jfunc): Likewise.
10303         (ipa_get_lattice): Update.
10304         (ipa_lat_is_single_const): New function.
10305         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
10306         (ipa_init_func_list): Likewise.
10307         (ipa_pop_func_from_list): Likewise.
10308         (ipa_get_param_decl_index): Fix coding style.
10309         (count_formal_params): Removed.
10310         (count_formal_params_1): Renamed to count_formal_params.
10311         (ipa_populate_param_decls): Update to use descriptors vector.
10312         (ipa_initialize_node_params): Likewise.
10313         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
10314         (ipa_analyze_params_uses): Likewise.
10315         (ipa_free_node_params_substructures): Likewise and free also lattices
10316         and known values.
10317         (duplicate_array): Removed.
10318         (ipa_edge_duplication_hook): Add the new edge to the list of edge
10319         clones.
10320         (ipa_node_duplication_hook): Update to use new lattices.
10321         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
10322         (ipa_free_all_structures_after_iinln): Likewise.
10323         (ipa_write_node_info): Update to use new lattices.
10324         (ipa_read_node_info): Likewise.
10325         (ipa_get_jf_pass_through_result): New function.
10326         (ipa_get_jf_ancestor_result): Likewise.
10327         (ipa_value_from_jfunc): Likewise.
10328         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
10329         * ipa-cp.c: Reimplemented.
10330         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
10331         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
10332         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
10333         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
10334         * doc/invoke.texi (devirt-type-list-size): Removed description.
10335         (ipa-cp-value-list-size): Added description.
10336
10337 2011-07-18  Richard Henderson  <rth@redhat.com>
10338
10339         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
10340         before calling create_basic_block.
10341
10342 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
10343
10344         PR middle-end/49675
10345         * tree.c (build_common_builtin_nodes): Register
10346         __builtin_return_address, __cyg_profile_func_enter
10347         and __cyg_profile_func_exit.
10348
10349 2011-07-18  Richard Henderson  <rth@redhat.com>
10350
10351         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
10352         (add_labels_and_missing_jumps): ... here.
10353         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
10354
10355 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
10356
10357         PR target/47744
10358         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
10359         of DImode hard registers in PLUS address chains.
10360
10361 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10362
10363         PR bootstrap/49769
10364         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
10365         (alpha*-*-freebsd*): Likewise.
10366         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
10367         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
10368         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
10369         crtprec80.o, crtfastmath.o to extra_parts for all targets.
10370         (ia64*-*-elf*): Remove extra_parts.
10371         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
10372         (sparc64-*-linux*): Likewise.
10373         (sparc64-*-freebsd*): Likewise.
10374
10375         Revert:
10376         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
10377         (ia64*-*-linux*): Likewise.
10378         (mips64*-*-linux*): Likewise.
10379         (mips*-*-linux*): Likewise.
10380
10381 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
10382
10383         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
10384
10385 2011-07-18  Richard Guenther  <rguenther@suse.de>
10386
10387         * gimplify.c (gimplify_expr): Use input_location, not saved_location
10388         when building new trees.
10389
10390 2011-07-18  Richard Guenther  <rguenther@suse.de>
10391
10392         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
10393         expansion result to bitfield precision if required.
10394
10395 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10396
10397         * config.gcc (i[3456x]86-*-netware*): Remove.
10398
10399         * gthr-nks.h: Remove.
10400         * configure.ac (enable_threads): Remove nks.
10401         * configure: Regenerate.
10402
10403         * config/i386/i386.c (ix86_encode_section_info): Remove netware
10404         reference.
10405         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
10406         <netware.h> reference.
10407
10408         * config/i386/netware-libgcc.c,
10409         gcc/config/i386/netware-libgcc.def,
10410         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
10411         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
10412         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
10413         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
10414
10415         * doc/extend.texi (Function Attributes,
10416         callee_pop_aggregate_return): Remove i?86-netware reference.
10417         * doc/install.texi (Configuration, --enable-threads): Remove nks.
10418
10419 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10420
10421         PR target/49746
10422         Revert:
10423         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10424
10425         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
10426         patterns.
10427
10428 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
10429
10430         PR middle-end/49732
10431         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
10432
10433 2011-07-16  Matthias Klose  <doko@ubuntu.com>
10434
10435         * doc/install.texi: Document --enable-static-libjava.
10436
10437 2011-07-15  Richard Henderson  <rth@redhat.com>
10438
10439         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10440         Replace all three arguments by returning a VEC of edges.
10441         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
10442         pointers and counts.
10443         (fix_edges_for_rarely_executed_code): Merge ...
10444         (rest_of_handle_partition_blocks): ... into...
10445         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
10446         any work was performed.
10447         (pass_partition_blocks): Clear todo_flags_finish.
10448
10449 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
10450             Jakub Jelinek  <jakub@redhat.com>
10451             Jonathan Wakely  <jwakely.gcc@gmail.com>
10452
10453         PR libstdc++/49745
10454         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
10455         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
10456
10457 2011-07-15  Jason Merrill  <jason@redhat.com>
10458
10459         PR testsuite/49741
10460         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
10461         rather than --tool_opts.
10462
10463 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
10464
10465         * doc/plugins.texi (Building GCC plugins): gengtype needs its
10466         corresponding gtype.state.
10467
10468 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10469
10470         PR target/49723
10471         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
10472
10473 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
10474
10475         PR target/48220
10476         * doc/md.texi (Standard Names): Document window_save.
10477         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
10478         expand_debug_expr and expand_debug_source_expr.  If the target has
10479         a window_save instruction, adjust the ENTRY_VALUE_EXP.
10480         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
10481         SSA_NAME_VAR is a parameter.
10482         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
10483         * var-tracking.c (parm_reg_t): New type and associated vector type.
10484         (windowed_parm_regs): New variable.
10485         (adjust_insn): If the target has a window_save instruction and this
10486         is the instruction, make its effect on parameter registers explicit.
10487         (next_non_note_insn_var_location): New function.
10488         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
10489         (vt_add_function_parameter): If the target has a window_save insn,
10490         adjust the incoming RTL and record that in windowed_parm_regs.
10491         (vt_finalize): Free windowed_parm_regs.
10492
10493 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
10494
10495         * doc/invoke.texi (C6X Options): New section.
10496         * doc/md.texi (TI C6X family): New section.
10497         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
10498         tic6x-*-uclinux.
10499         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
10500         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
10501         Provide C6X definitions.
10502         * config/c6x/c6x.md: New file.
10503         * config/c6x/constraints.md: New file.
10504         * config/c6x/predicates.md: New file.
10505         * config/c6x/c6x-sched.md.in: New file.
10506         * config/c6x/c6x-sched.md: New file.
10507         * config/c6x/gensched.sh: New file.
10508         * config/c6x/c6x-mult.md.in: New file.
10509         * config/c6x/genmult.sh: New file.
10510         * config/c6x/c6x-mult.md: New file.
10511         * config/c6x/sync.md: New file.
10512         * config/c6x/c6x-protos.h: New file.
10513         * config/c6x/sfp-machine.h: New file.
10514         * config/c6x/c6x.c: New file.
10515         * config/c6x/c6x.h: New file.
10516         * config/c6x/crti.s: New file.
10517         * config/c6x/crtn.s: New file.
10518         * config/c6x/lib1funcs.asm: New file.
10519         * config/c6x/c6x-modes.def: New file.
10520         * config/c6x/genopt.sh: New file.
10521         * config/c6x/c6x.opt: New file.
10522         * config/c6x/c6x-tables.opt: New file.
10523         * config/c6x/c6x-opts.h: New file.
10524         * config/c6x/c6x-isas.def: New file.
10525         * config/c6x/elf.h: New file.
10526         * config/c6x/elf-common.h: New file.
10527         * config/c6x/uclinux-elf.h: New file.
10528         * config/c6x/t-c6x: New file.
10529         * config/c6x/t-c6x-elf: New file.
10530         * config/c6x/t-c6x-uclinux: New file.
10531         * config/c6x/t-c6x-softfp: New file.
10532         * config/c6x/gtd.c: New file.
10533         * config/c6x/gtf.c: New file.
10534         * config/c6x/ltd.c: New file.
10535         * config/c6x/ltf.c: New file.
10536         * config/c6x/ged.c: New file.
10537         * config/c6x/gef.c: New file.
10538         * config/c6x/led.c: New file.
10539         * config/c6x/lef.c: New file.
10540         * config/c6x/eqd.c: New file.
10541         * config/c6x/eqf.c: New file.
10542         * config/c6x/libgcc-c6xeabi.ver: New file.
10543
10544         Revert
10545         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
10546         PR rtl-optimization/11320
10547         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
10548         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
10549         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
10550         current_sched_info->compute_jump_reg_dependencies. Record which
10551         registers are used and which registers are set by the jump.
10552         Clear deps->reg_conditional_sets after a barrier.
10553         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
10554         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
10555         (init_deps): Initialize reg_conditional_sets.
10556         (free_deps): Clear reg_conditional_sets.
10557         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
10558         Mark registers live on entry of the fallthrough block and conditionally
10559         set as set by the jump. Mark registers live on entry of non-fallthrough
10560         blocks as used by the jump.
10561         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
10562         Mark new parameters as unused.
10563
10564 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
10565
10566         PR tree-opt/49309
10567         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
10568         Use fold_build2_loc instead of build2.
10569         Use the correct type for the new tree.
10570
10571 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10572
10573         PR rtl-optimization/11320
10574         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
10575         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
10576
10577 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
10578
10579         PR target/49487
10580         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
10581         of REG.
10582         (*rotw<mode>): Use const_int_operand for operand2.
10583         Use match_scatch for operand3.
10584         (*rotb<mode>): Ditto
10585         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
10586
10587 2011-07-14  Richard Guenther  <rguenther@suse.de>
10588
10589         PR tree-optimization/49651
10590         * tree-ssa-structalias.c (get_constraint_for_1): Properly
10591         handle dereferences with subvariables.
10592
10593 2011-07-14  Richard Guenther  <rguenther@suse.de>
10594
10595         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
10596         (fold_stmt_1): Do it here directly on gimple and as a first thing.
10597
10598 2011-07-14  Richard Guenther  <rguenther@suse.de>
10599
10600         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
10601         not bool_var when folding bool_var != 1 or bool_var == 0.
10602
10603 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10604
10605         * haifa-sched.c (schedule_insns): Remove outdated comment.
10606         (schedule_block): When computing a known value for TODO_SPEC,
10607         just set it rather than using logical operations.
10608         (try_ready): Likewise.  Use a local variable rather than a
10609         pointer to TODO_SPEC.  Reorder an if statement to move the
10610         easy case to the then block.
10611         * sched-deps.c (dep_spec_p): New static function.
10612         (update_dep): Use it to decide whether to call
10613         change_spec_dep_to_hard.
10614         (get_back_and_forw_lists): Use it.
10615         (sd_resolve_dep): Likewise.
10616         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
10617         (haifa_note_mem_dep): Likewise.
10618         (check_dep): Likewise.
10619         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
10620         (sched_free_deps): Free in two passes.
10621
10622 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
10623
10624         PR middle-end/49736
10625         * expr.c (all_zeros_p): Undo bogus part of last change.
10626
10627 2011-07-14  Matthias Klose <doko@ubuntu.com>
10628
10629         * doc/extend.texi (optimize attribute): Fix typo.
10630
10631 2011-07-14  Richard Guenther  <rguenther@suse.de>
10632
10633         * gimplify.c (gimplify_expr): Only do required conversions.
10634
10635 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
10636
10637         PR target/43746
10638         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
10639         i.e. use default_elf_select_section.
10640         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
10641         (READONLY_DATA_SECTION_ASM_OP): Remove.
10642         (TARGET_ASM_NAMED_SECTION): Move from here...
10643         * config/avr/avr.c: ...to here.
10644         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
10645         (avr_asm_named_section): Make static.
10646
10647 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10648
10649         PR bootstrap/49739
10650         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
10651         and crtfastmath.o for Linux/x86.
10652
10653 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
10654
10655         * haifa-sched.c: Include "hashtab.h"
10656         (sched_no_dce): New global variable.
10657         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
10658         SHADOW_P): New macros.
10659         (last_clock_var, cycle_issued_insns): Move declarations.
10660         (must_backtrack): New static variable.
10661         (struct delay_pair): New structure.
10662         (delay_htab, delay_htab_i2): New static variables.
10663         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
10664         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
10665         functions.
10666         (dep_cost_1): If delay pairs exist, try to look up the insns and
10667         use the correct pair delay if we find them.
10668         (rank-for_schedule): Tweak priority for insns that must be scheduled
10669         soon to avoid backtracking.
10670         (queue_insn): Detect conditions which force backtracking.
10671         (ready_add): Likewise.
10672         (struct sched_block_state): Add member shadows_only_p.
10673         (struct haifa_save_data): New structure.
10674         (backtrack_queue): New static variable.
10675         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
10676         unschedule_insns_until, restore_last_backtrack_point,
10677         free_topmost_backtrack_point, free_backtrack_queue,
10678         estimate_insn_tick, estimate_shadow_tick): New functions.
10679         (prune_ready_list): New arg shadows_only_p.  All callers changed.
10680         If true, remove everything that isn't SHADOW_P.  Look up delay
10681         pairs and estimate ticks to avoid scheduling the first insn too early.
10682         (verify_shadows): New function.
10683         (schedule_block): Add machinery to enable backtracking.
10684         (sched_init): Take sched_no_dce into account when setting
10685         DF_LR_RUN_DCE.
10686         (free_delay_pairs): New function.
10687         (init_h_i_d): Initialize INSN_EXACT_TICK.
10688         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
10689         * sched-deps.c (sd_unresolve_dep): New function.
10690         * sched-int. (struct haifa_sched_info): New fields save_state
10691         and restore_state.
10692         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
10693         feeds_backtrack_insn and shadow_p.
10694         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
10695         (sched_no_dce): Declare variable.
10696         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
10697         sd_unresolve_dep): Declare functions.
10698         * modulo-sched.c (sms_sched_info): Clear the two new fields.
10699         * sched-rgn.c (rgn_const_sched_info): Likewise.
10700         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10701         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
10702         (ebb_sched_info): Add them for the two new fields.
10703         (add_deps_for_risky_insns): Call add_delay_dependencies.
10704
10705 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10706
10707         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
10708         Rename -mr11.
10709         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
10710         (rs6000_call_indirect_aix): Ditto.
10711         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
10712         (call_indirect_aix<ptrsize>_internal): Ditto.
10713         (call_indirect_aix<ptrsize>_nor11): Ditto.
10714         (call_indirect_aix<ptrsize>_internal2): Ditto.
10715         (call_value_indirect_aix<ptrsize>): Ditto.
10716         (call_value_indirect_aix<ptrsize>_internal): Ditto.
10717         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
10718         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
10719         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
10720
10721 2011-07-13  Jason Merrill  <jason@redhat.com>
10722
10723         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
10724
10725 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10726
10727         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
10728         * config/spu/spu.md ("clrsb<mode>2"): New expander.
10729
10730 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
10731
10732         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
10733         * configure: Regenerate.
10734
10735 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10736
10737         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
10738         (asm_file_start): Remove.
10739         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
10740         free_bb_for_insn around code that modifies insns before
10741         restarting df analysis.
10742
10743 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10744
10745         PR target/49541
10746         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
10747         (LINK_SPEC): ... here.
10748
10749 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
10750
10751         * haifa-sched.c (struct sched_block_state): New.
10752         (schedule_block): Move some local variables into such a structure.
10753
10754 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10755
10756         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
10757         * config/i386/t-crtpc: Remove.
10758         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
10759         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
10760         tmake_file.
10761         (x86_64-*-darwin*): Likewise.
10762         (i[34567]86-*-linux*): Likewise.
10763         (x86_64-*-linux*): Likewise.
10764
10765         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
10766         Handle -mpc32, -mpc64, -mpc80.
10767
10768 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10769
10770         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
10771         * config/alpha/t-crtfm: Remove.
10772         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
10773         * config/i386/t-crtfm: Remove.
10774         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
10775         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
10776         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
10777         * config/sparc/t-crtfm: Remove.
10778
10779         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
10780         (alpha*-*-freebsd*): Likewise.
10781         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
10782         (x86_64-*-darwin*): Likewise.
10783         (i[34567]86-*-linux*): Likewise.
10784         (x86_64-*-linux*): Likewise.
10785         (x86_64-*-mingw*): Likewise.
10786         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
10787         (ia64*-*-freebsd*): Likewise.
10788         (ia64*-*-linux*): Likewise.
10789         (mips64*-*-linux*): Likewise.
10790         (mips*-*-linux*): Likewise.
10791         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
10792         (sparc64-*-linux*): Likewise.
10793         (sparc64-*-freebsd*): Likewise.
10794
10795 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10796
10797         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
10798         * config/darwin-crt3.c: Move to ../libgcc/config.
10799         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
10800         ($(T)crt3$(objext)): Remove.
10801         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
10802         ($(T)crt2$(objext)): Remove.
10803         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
10804         (powerpc64-*-darwin*): Likewise.
10805
10806 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
10807
10808         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
10809
10810         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
10811         (addsi_1_zext): This.
10812
10813 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
10814
10815         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
10816         * doc/tm.texi: Regenerate.
10817         * target.def (mergeable_rodata_prefix): New defhookpod.
10818         * varasm.c (mergeable_string_section, mergeable_constant_section):
10819         Use it. Allocate name with alloca.
10820
10821 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
10822
10823         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
10824
10825 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
10826
10827         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
10828         overlap check.
10829
10830 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
10831
10832         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
10833         (count_type_elements): Delete.
10834         (complete_ctor_at_level_p): Declare.
10835         * expr.c (flexible_array_member_p): New function, split out from...
10836         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
10837         parameter with for_ctor_p.  When for_ctor_p is true, return the
10838         number of elements that should appear in the top-level constructor,
10839         otherwise return an estimate of the number of scalars.
10840         (categorize_ctor_elements): Replace p_must_clear with p_complete.
10841         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
10842         (complete_ctor_at_level_p): New function, borrowing union logic
10843         from old categorize_ctor_elements_1.
10844         (mostly_zeros_p): Return true if the constructor is not complete.
10845         (all_zeros_p): Update call to categorize_ctor_elements.
10846         * gimplify.c (gimplify_init_constructor): Update call to
10847         categorize_ctor_elements.  Don't call count_type_elements.
10848         Unconditionally prevent clearing for variable-sized types,
10849         otherwise rely on categorize_ctor_elements to detect
10850         incomplete initializers.
10851
10852 2011-07-13  Richard Guenther  <rguenther@suse.de>
10853
10854         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
10855         the final type is integral.
10856
10857 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
10858
10859         * sched-int.h (struct _dep): Add member cost.
10860         (DEP_COST, UNKNOWN_DEP_COST): New macros.
10861         * sched-deps.c (init_dep_1): Initialize DEP_COST.
10862         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
10863         (sched_change_pattern): Reset it for dependent insns.
10864
10865 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10866
10867         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
10868         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
10869         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
10870         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
10871         (CRT0_S, MCRT0_S): Remove.
10872         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
10873         Remove.
10874         (s-crt0): Remove.
10875         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
10876
10877 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
10878
10879         * cse.c (insert_with_costs): Put semi-colon after empty loop body
10880         on the next line.
10881         * emit-rtl.c (push_to_sequence): Likewise.
10882         * haifa-sched.c (max_issue): Likewise.
10883         * matrix-reorg.c (add_allocation_site): Likewise.
10884         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
10885         * reload.c (alternative_allows_const_pool_ref): Likewise.
10886         * sched-rgn.c (rgn_add_block): Likewise.
10887         (rgn_fix_recovery_cfg): Likewise.
10888         * tree.c (attribute_list_contained): Likewise.
10889
10890 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
10891
10892         * config/i386/i386.c: Tidy processor feature bitmasks.
10893         (m_P4_NOCONA): New.
10894
10895 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
10896
10897         PR rtl-opt/49474
10898         * cprop.c (find_implicit_sets): Correct the condition.
10899
10900 2011-07-12  Richard Henderson  <rth@redhat.com>
10901
10902         PR target/49713
10903         * dwarf2out.h (dwarf_frame_regnum): Remove.
10904         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
10905         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
10906         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
10907         (execute_dwarf2_frame): Initialize them.
10908         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
10909         users of the macros with the variables.
10910         (expand_builtin_dwarf_sp_column): Revert last change.
10911         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
10912         result of DWARF_FRAME_REGNUM into a local variable.
10913
10914 2011-07-12  Richard Henderson  <rth@redhat.com>
10915
10916         PR target/49714
10917         * config/i386/i386.c (x86_output_mi_thunk): Use
10918         machopic_indirect_call_target instead of machopic_indirection_name
10919         directly.
10920
10921 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
10922             Eric Botcazou  <ebotcazou@adacore.com>
10923
10924         * prefix.h: Wrap up in extern "C" block.
10925
10926 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
10927
10928         AMD bdver2 Enablement
10929         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
10930         (case ${target}): Add bdver2.
10931         * config/i386/driver-i386.c (host_detect_local_cpu): Let
10932         -march=native recognize bdver2 processors.
10933         * config/i386/i386-c.c (ix86_target_macros_internal): Add
10934         bdver2 def_and_undef
10935         * config/i386/i386.c (struct processor_costs bdver2_cost): New
10936         bdver2 cost table.
10937         (m_BDVER2): New definition.
10938         (m_AMD_MULTIPLE): Includes m_BDVER2.
10939         (initial_ix86_tune_features): Add bdver2 tuning.
10940         (processor_target_table): Add bdver2 entry.
10941         (static const char *const cpu_names): Add bdver2 entry.
10942         (ix86_option_override_internal): Add bdver2 instruction sets.
10943         (ix86_issue_rate): Add bdver2.
10944         (ix86_adjust_cost): Add bdver2.
10945         (has_dispatch): Add bdver2.
10946         * config/i386/i386.h (TARGET_BDVER2): New definition.
10947         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
10948         (enum processor_type): Add PROCESSOR_BDVER2.
10949         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
10950         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
10951         description.
10952
10953 2011-07-12  Richard Henderson  <rth@redhat.com>
10954
10955         PR target/49714
10956         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
10957         destination address in memory on some paths.
10958
10959 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
10960
10961         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
10962         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
10963         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
10964         * function.c (locate_and_pad_parm): Take it into account.
10965         * target.def (function_arg_round_boundary): New hook.
10966         * targhooks.c (default_function_arg_round_boundary): New function.
10967         * targhooks.h (default_function_arg_round_boundary): Declare.
10968         * doc/tm.texi: Regenerate.
10969
10970 2011-07-12  Richard Guenther  <rguenther@suse.de>
10971
10972         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
10973         Do not perform no-op changes.
10974
10975 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
10976
10977         * config/arm/predicates.md (neon_struct_operand): Make a normal
10978         predicate.
10979         (neon_struct_or_register_operand): New predicate.
10980         * config/arm/neon.md (movmisalign<mode>): Replace predicates
10981         with neon_struct_or_register_operand.
10982         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
10983         neon_struct_operand instead of memory_operand.
10984
10985 2011-07-12  Martin Jambor  <mjambor@suse.cz>
10986
10987         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
10988         * cgraph.c (cgraph_get_node_or_alias): Removed.
10989         (change_decl_assembler_name): Changed all calls to
10990         cgraph_get_node_or_alias to a call to cgraph_get_node.
10991         (cgraph_make_decl_local): Likewise.
10992         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
10993         * varasm.c (default_binds_local_p_1): Likewise.
10994         (decl_binds_to_current_def_p): Likewise.
10995
10996 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
10997
10998         PR tree-optimization/49712
10999         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
11000
11001 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
11002
11003         * genautomata.c (add_arc): Return void.  All callers changed.
11004         (make_automaton): Remove dead code.
11005
11006 2011-07-11  Richard Henderson  <rth@redhat.com>
11007
11008         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
11009         (DW_FRAME_POINTER_REGNUM): New.
11010         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
11011         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
11012         (dwf_regno): New.
11013         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
11014         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
11015         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
11016         Use it.
11017         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
11018         * dwarf2out.h (dwarf_frame_regnum): New.
11019         (struct cfa_loc): Document the domain of the reg member.
11020
11021 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
11022
11023         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
11024         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
11025
11026 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
11027
11028         PR debug/49676
11029         * dwarf2out.c (int_shift_loc_descriptor): New function.
11030         (int_loc_descriptor): If shorter, emit i as
11031         (i >> shift), shift, DW_OP_shl for suitable shift value.
11032         Similarly, try to optimize large negative values using
11033         DW_OP_neg of a positive value if shorter.
11034         (size_of_int_shift_loc_descriptor): New function.
11035         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
11036         changes.
11037         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
11038         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
11039         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
11040         is shorter.
11041         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
11042         addend as added DW_OP_plus if it is shorter.
11043
11044 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11045
11046         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
11047         (DTORS_SECTION_ASM_OP): Define.
11048
11049 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11050
11051         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
11052         * config/t-dfprules: Move to ../libgcc/config.
11053         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
11054         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
11055         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
11056         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
11057         Likewise.
11058         (i[34567]86-*-cygwin*): Likewise.
11059         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
11060         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
11061         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
11062         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
11063         D64PBIT_FUNCS, D128PBIT_FUNCS.
11064
11065 2011-07-11  Richard Guenther  <rguenther@suse.de>
11066
11067         * tree-vrp.c (simplify_conversion_using_ranges): Manually
11068         translate the source value-range through the conversion chain.
11069
11070 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
11071
11072         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
11073
11074 2011-07-11  Arthur Loiret  <aloiret@debian.org>
11075
11076         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
11077         a bi-arch compiler defaulting to 31-bit. In this case:
11078         (tmake_file): Add s390/t-linux64.
11079         * doc/install.texi: Add s390-linux to the list of targets supporting
11080         --enable-targets=all.
11081
11082 2011-07-11  Arthur Loiret  <aloiret@debian.org>
11083             Matthias Klose <doko@debian.org>
11084
11085         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
11086         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
11087         (tm_file): Add mips/linux64.h.
11088         (tmake_file): Add mips/t-linux64.
11089         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
11090         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
11091         instead of hardcoded mabi=n32.
11092         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
11093         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
11094         convention.
11095
11096 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11097
11098         * passes.c (init_optimization_passes): Add invariant motion pass
11099         after induction variable optimization.
11100
11101 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
11102
11103         PR target/39633
11104         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
11105         offsets 1..5 set cc0 in a usable way.
11106
11107 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
11108
11109         * tree.h (call_expr_arg): Remove.
11110         (call_expr_argp): Likewise.
11111
11112 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
11113
11114         * config/sparc/sparc.md (save_register_window_1): Rename to...
11115         (window_save): ...this.
11116         * config/sparc/sparc.c (emit_save_register_window): Rename to...
11117         (emit_window_save): ...this.
11118         (sparc_expand_prologue): Adjust to above renaming.
11119
11120 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
11121
11122         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
11123         of movabs for x32.
11124
11125 2011-07-10  Richard Henderson  <rth@redhat.com>
11126
11127         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
11128         run final, instead of emitting text directly.
11129
11130 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
11131
11132         * config/i386/i386.c (ix86_option_override_internal): Turn on
11133         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
11134         small PIC models for TARGET_X32.
11135
11136 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
11137
11138         PR target/49684
11139         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
11140         $(LIBGCC2_CFLAGS).
11141
11142         PR bootstrap/49680
11143         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
11144         stray notes and debug insns by using prev_nonnote_nondebug_insn
11145         instead of PREV_INSN.
11146
11147 2011-07-09  Richard Henderson  <rth@redhat.com>
11148
11149         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
11150         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
11151         * dwarf2out.c: ... here.
11152         (output_all_cfis): Remove.
11153         (dwarf2out_switch_text_section): Use output_cfis directly.
11154         (size_of_locs): Export.
11155         (output_loc_sequence, output_loc_sequence_raw): Export.
11156         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
11157         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
11158         output_cfa_loc_raw): Move to ...
11159         * dwarfcfi.c: ... here.
11160         * dwarf2out.h: Update decls.
11161
11162 2011-07-09  Richard Henderson  <rth@redhat.com>
11163
11164         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
11165         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
11166         * dwarf2cfi.c: ... here.
11167         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
11168         (DWARF_ROUND, DWARF_CIE_ID): Remove.
11169         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
11170         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
11171         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
11172
11173 2011-07-09  Richard Henderson  <rth@redhat.com>
11174
11175         * dwarf2cfi.c (cie_return_save): New.
11176         (queue_reg_save): Use compare_reg_or_pc.
11177         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
11178         (dwarf2out_frame_debug_expr): Likewise.
11179         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
11180         (initial_return_save): Likewise.
11181         (execute_dwarf2_frame): Save and restore initial return save from
11182         the cie to the fde.
11183         * config/mips/mips.c (mips_frame_set): Remove special case for
11184         DWARF_FRAME_RETURN_COLUMN.
11185
11186 2011-07-09  Richard Henderson  <rth@redhat.com>
11187
11188         * dwarf2cfi.c (lookup_cfa): Remove.
11189         (execute_dwarf2_frame): Assert queues are empty on entry.
11190         Setup initial cfa directly, not via lookup_cfa.
11191         Don't clear args_size state here.
11192
11193 2011-07-09  Richard Henderson  <rth@redhat.com>
11194
11195         * dwarf2cfi.c (add_cfi_vec): New.
11196         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
11197         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
11198         (execute_dwarf2_frame): Set add_cfi_vec.
11199
11200 2011-07-09  Richard Henderson  <rth@redhat.com>
11201
11202         * defaults.h (ASM_COMMENT_START): Move here...
11203         * dwarf2asm.c: ... from here.
11204         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
11205         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
11206         * varasm.c: Likewise.
11207
11208 2011-07-09  Richard Henderson  <rth@redhat.com>
11209
11210         PR debug/49686
11211         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
11212         (create_cfi_notes): ... do it here instead.
11213
11214 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
11215
11216         PR debug/49676
11217         * dwarf2out.c (size_of_int_loc_descriptor): New function.
11218         (address_of_int_loc_descriptor): Use it.
11219         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
11220
11221 2011-07-09  Richard Henderson  <rth@redhat.com>
11222
11223         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
11224         (prologue, epilogue): New.
11225         (return, *rts): New.
11226         (blockage, setd, seti): New.
11227         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
11228         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
11229         (pdp11_saved_regno): New.
11230         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
11231         generate rtl instead of text.
11232         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
11233         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
11234         * config/pdp11/pdp11-protos.h: Update.
11235
11236 2011-07-09  Richard Henderson  <rth@redhat.com>
11237
11238         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
11239         try to insert an rtl prologue here.
11240         (rs6000_output_function_epilogue): Similarly.
11241         * config/rs6000/rs6000.md (prologue): Emit a barrier to
11242         satisfy !TARGET_SCHED_PROLOG.
11243         (epilogue, sibcall_epilogue): Likewise.
11244
11245 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
11246
11247         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
11248         (FP_REG_P): Delete.
11249         (IN_OR_GLOBAL_P): Likewise.
11250
11251 2011-07-08  Jason Merrill  <jason@redhat.com>
11252
11253         PR c++/45437
11254         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
11255         compound assignment.
11256
11257         * cgraph.c (cgraph_add_to_same_comdat_group): New.
11258         * cgraph.h: Declare it.
11259         * ipa.c (function_and_variable_visibility): Make sure thunks
11260         have the right visibility.
11261
11262 2011-07-08  Richard Henderson  <rth@redhat.com>
11263
11264         PR bootstrap/49680
11265         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
11266         any tablejump vector.
11267
11268         PR bootstrap/49680
11269         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
11270         end of the prologue.
11271
11272 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
11273
11274         PR target/49621
11275         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
11276         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
11277         * config/rs6000/vector.md (vector_select_<mode>,
11278         vector_select_<mode>_uns): Change second operand of NE to
11279         CONST0_RTX (<MODE>mode) instead of const0_rtx.
11280         * config/rs6000/altivec.md (*altivec_vsel<mode>,
11281         *altivec_vsel<mode>_uns): Expect second operand of NE to be
11282         zero_constant of the corresponding vector mode.
11283         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
11284         Likewise.
11285
11286 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
11287
11288         * graphite-dependences.c (build_alias_set_powerset): Remove
11289         continue from loop, add one more assert.
11290
11291 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
11292
11293         PR target/46779
11294         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
11295         In particular, allow 8-bit values in r28 and r29.
11296         (avr_hard_regno_scratch_ok): Disallow any register that might be
11297         part of the frame pointer.
11298         (avr_hard_regno_rename_ok): Same.
11299         (avr_legitimate_address_p): Don't allow SUBREGs.
11300
11301 2011-07-08  Julian Brown  <julian@codesourcery.com>
11302
11303         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
11304         big-endian mode.
11305         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
11306         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
11307         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
11308         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
11309         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
11310         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
11311         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
11312         registers in big-endian mode.
11313
11314 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
11315
11316         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
11317         in terms of another.
11318         (write_attr_value): Write a cast if necessary.
11319
11320         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
11321         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
11322         (REG_WORDS_BIG_ENDIAN): Document.
11323         * doc/tm.texi: Regenerate.
11324         * reload.c (operands_match_p): Take it into account.
11325         (reload_adjust_reg_for_mode): Likewise.
11326         * rtlanal.c (subreg_get_info): Likewise.
11327
11328 2011-07-08  Richard Guenther  <rguenther@suse.de>
11329
11330         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
11331         folding.
11332
11333 2011-07-08  Kai Tietz  <ktietz@redhat.com>
11334
11335         * fold-const.c (fold_truth_andor): Factored out truth_andor
11336         label from fold_binary as function.
11337         (fold_binary_loc): Replace truth_andor lable
11338         by function fold_truth_andor.
11339
11340 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
11341
11342         PR middle-end/49519
11343         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
11344         check if address is stored in register. If so - give up.
11345         (check_sibcall_argument_overlap_1): Do not perform check of
11346         overlapping when it is call to address.
11347
11348 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
11349
11350         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
11351         of magic '31'.
11352
11353 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
11354
11355         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
11356         GET_MODE_BITSIZE where appropriate.
11357         (widen_leading, expand_parity, expand_ctz, expand_ffs,
11358         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
11359         expand_float, expand_fix): Likewise.
11360         * expr.c (convert_move, convert_modes, expand_expr_real_2,
11361         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
11362         * stor-layout.c (get_mode_bounds): Likewise.
11363         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
11364         Likewise.
11365         * convert.c (convert_to_integer): Likewise.
11366         * expmed.c (expand_shift_1): Likewise.
11367
11368         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
11369         a bitsize.
11370
11371         * optabs.c (expand_binop): Tighten conditions for doubleword
11372         expansions.
11373         (widen_bswap): Assert that mode bitsize and precision are the same.
11374         * stor-layout.c (get_best_mode): Skip modes that have lower
11375         precision than bitsize.
11376         * recog.c (simplify_while_replacing): Assert that bitsize and
11377         precision are the same.
11378
11379 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11380
11381         * Makefile.in (LIBGCOV): Remove.
11382         (libgcc.mvars): Remove LIBGCOV.
11383         * libgov.c: Move to ../libgcc.
11384
11385 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11386
11387         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
11388
11389 2011-07-08  Martin Jambor  <mjambor@suse.cz>
11390
11391         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
11392         is too big for total scalarization.
11393
11394 2011-07-07  Richard Henderson  <rth@redhat.com>
11395
11396         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
11397         (DBX_DEBUGGING_INFO): Undef.
11398
11399 2011-07-07  Richard Henderson  <rth@redhat.com>
11400
11401         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
11402         Handle some opcodes specially for debugging.
11403         * print-rtl.c: Include dwarf2out.h
11404         (print_rtx): Handle NOTE_INSN_CFI.
11405         * Makefile.in (print-rtl.o): Update.
11406
11407 2011-07-07  Richard Henderson  <rth@redhat.com>
11408
11409         * tree-pass.h (pass_dwarf2_frame): Declare.
11410         * passes.c (init_optimization_passes): Add it.
11411         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
11412         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
11413         make static, do not call add_cfis_to_fde.
11414         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
11415         dwarf2out_frame_init): Merge into...
11416         (execute_dwarf2_frame): ... here.  New function.
11417         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
11418         saved_do_cfi_asm to a tri-state variable.
11419         (gate_dwarf2_frame, pass_dwarf2_frame): New.
11420         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
11421         if it has yet to be done.  Don't call dwarf2cfi_function_init.
11422         * dwarf2out.h, debug.h: Update decls.
11423         * final.c (final_start_function): Don't call
11424         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
11425         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
11426         * toplev.c (lang_dependent_init): Likewise.
11427
11428 2011-07-07  Richard Henderson  <rth@redhat.com>
11429
11430         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
11431         FDE_TABLE_INCREMENT): Replace with...
11432         (fde_vec): ... this, a new vector.
11433         (current_fde): Remove.  Replace all users with cfun->fde.
11434         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
11435         (size_of_aranges, dwarf2out_finish): Likewise.
11436         (dwarf2out_alloc_current_fde): Break out from ...
11437         (dwarf2out_begin_prologue): ... here.
11438         (dwarf2out_frame_init): Remove.
11439         * dwarf2cfi.c: Update all users of current_fde.
11440         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
11441         * dwarf2out.h: Update decls.
11442         (dw_fde_node): Add fde_index member.
11443         * function.h (struct function): Add fde member.
11444
11445 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11446             Richard Henderson  <rth@redhat.com>
11447
11448         * dwarf2cfi.c (add_cfi): Remove.
11449         (dwarf2out_cfi_label): Remove force argument.  Only generate the
11450         label name.
11451         (add_fde_cfi): Simplify the different code paths.
11452         (add_cie_cfi): New.
11453         (old_cfa, old_cfa_remember): New.
11454         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
11455         (last_reg_save_label): Remove.
11456         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
11457         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11458         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11459         dwarf2out_frame_debug_cfa_expression,
11460         dwarf2out_frame_debug_cfa_restore,
11461         dwarf2out_frame_debug_cfa_window_save,
11462         dwarf2out_frame_debug_expr): Remove label parameter.
11463         (cfi_label_required_p, add_cfis_to_fde): New.
11464         (dwarf2out_frame_debug_after_prologue): New.
11465         (dwarf2cfi_frame_init): Initialize old_cfa.
11466         (dwarf2out_frame_debug_restore_state): Likewise.
11467         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
11468         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
11469         * final.c (final_start_function): Call
11470         dwarf2out_frame_debug_after_prologue.
11471
11472 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11473             Richard Henderson  <rth@redhat.com>
11474
11475         * dwarf2cfi.c (cfi_insn): New.
11476         (dwarf2out_cfi_label): Don't emit cfi label here.
11477         (add_fde_cfi): Create a NOTE_INSN_CFI.
11478         (dwarf2out_frame_debug): Setup cfi_insn.
11479         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
11480         (dwarf2out_cfi_begin_epilogue): Make static.
11481         (dwarf2out_frame_debug_restore_state): Make static.
11482         * dwarf2out.c (output_cfi_directive): Make static.
11483         (dwarf2out_emit_cfi): New.
11484         * dwarf2out.h: Update.
11485         * final.c (final): Remove CFI notes.
11486         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
11487         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
11488         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
11489         * insn-notes.def (NOTE_INSN_CFI): New.
11490         (NOTE_INSN_CFI_LABEL): New.
11491         * rtl.h (union rtunion_def): Add rt_cfi member.
11492         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
11493
11494 2011-07-07  Richard Henderson  <rth@redhat.com>
11495
11496         * dwarf2cfi.c: New file.
11497         * Makefile.in (OBJS): Add it.
11498         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
11499         * gengtype.c (open_base_files): Include dwarf2out.h.
11500         * coretypes.h (enum var_init_status): Move from ...
11501         * rtl.h: ... here.
11502         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
11503         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
11504         expand_builtin_dwarf_sp_column, init_return_column_size,
11505         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
11506         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
11507         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
11508         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
11509         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
11510         compute_barrier_args_size, dwarf2out_args_size,
11511         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
11512         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
11513         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
11514         queue_reg_save, dwarf2out_flush_queued_reg_saves,
11515         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
11516         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
11517         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
11518         dwarf2out_frame_debug_cfa_expression,
11519         dwarf2out_frame_debug_cfa_restore,
11520         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
11521         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
11522         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
11523         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
11524         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
11525         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
11526         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
11527         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
11528         dw_loc_descr_node): Move to dwarf2out.h.
11529         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
11530         mem_loc_descriptor): Export.
11531         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
11532         (dwarf2out_frame_init): Extract CIE generation code to
11533         dwarf2cfi_frame_init.
11534
11535 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
11536
11537         PR target/49660
11538         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
11539         MASK_V8PLUS, remove commented out flag and reorder.
11540
11541 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
11542
11543         PR c/49644
11544         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
11545         one non-complex and one complex argument, call c_save_expr on both
11546         operands.
11547
11548 2011-07-07  Martin Jambor  <mjambor@suse.cz>
11549
11550         PR middle-end/49495
11551         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
11552         (verify_cgraph_node): Some functinality moved to
11553         verify_edge_corresponds_to_fndecl, call it.
11554
11555 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11556
11557         * config.gcc (*local*): Remove.
11558         * doc/install-old.texi: Don't mention local configurations.
11559
11560 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
11561
11562         PR debug/49522
11563         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
11564         referencing debug insns that have been reset.
11565         (dead_debug_insert_before): Don't assert reg is non-NULL,
11566         instead return immediately if it is NULL.
11567
11568 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11569
11570         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
11571
11572 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11573
11574         * hw-doloop.c: New file.
11575         * hw-doloop.h: New file.
11576         * Makefile.in (OBJS): Add hw-doloop.o.
11577         (hw-doloop.o): New rule.
11578         ($(obj_out_file)): Add hw-doloop.h dependency.
11579         * config/bfin/bfin.c: Include "hw-doloop.h".
11580         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
11581         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
11582         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
11583         type changed to hwloop_info.  Return bool, true if the loop was
11584         successfully optimized.  Remove code that was moved to
11585         hw-doloop.c, and adjust other parts.
11586         (hwloop_fail): New static function, containing parts that used
11587         to be in bfin_optimize_loop.
11588         (bfin_discover_loop, bfin_discover_loops, free_loops,
11589         bfin_reorder_loops): Remove.
11590         (hwloop_pattern_reg): New static function.
11591         (bfin_doloop_hooks): New variable.
11592         (bfin_reorg_loops): Remove most code, call reorg_loops.
11593         * config/bfin/bfin.md (doloop_end splitter): Also enable if
11594         loop counter is a memory_operand.
11595
11596 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
11597
11598         * config.gcc: Support --with-multilib-list for x86 Linux targets.
11599
11600         * configure.ac: Mention x86-64 for --with-multilib-list.
11601         * configure: Regenerated.
11602
11603         * config/i386/gnu-user64.h (SPEC_64): Support x32.
11604         (SPEC_32): Likewise.
11605         (ASM_SPEC): Likewise.
11606         (LINK_SPEC): Likewise.
11607         (TARGET_THREAD_SSP_OFFSET): Likewise.
11608         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
11609         (SPEC_X32): New.
11610
11611         * config/i386/i386.h (TARGET_X32): New.
11612         (TARGET_LP64): New.
11613         (LONG_TYPE_SIZE): Likewise.
11614         (POINTER_SIZE): Likewise.
11615         (POINTERS_EXTEND_UNSIGNED): Likewise.
11616         (OPT_ARCH64): Support x32.
11617         (OPT_ARCH32): Likewise.
11618
11619         * config/i386/i386.opt (mx32): New.
11620
11621         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
11622         (GLIBC_DYNAMIC_LINKERX32): Likewise.
11623         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
11624         (GLIBC_DYNAMIC_LINKERX32): Likewise.
11625
11626         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
11627         (BIONIC_DYNAMIC_LINKERX32): Likewise.
11628         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
11629
11630         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
11631
11632         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
11633
11634         * doc/invoke.texi: Document -mx32.
11635
11636 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
11637
11638         * doc/invoke.texi (mwords-little-endian): Deprecate.
11639         * config/arm/arm.opt (mwords-little-endian): Likewise.
11640         * config/arm/arm.c (arm_option_override): Warn about the deprecation
11641         of -mwords-little-endian.
11642
11643 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
11644
11645         * reload1.c (choose_reload_regs): Use mode sizes to check whether
11646         an old reload register completely defines the required value.
11647
11648 2011-07-07  Richard Guenther  <rguenther@suse.de>
11649
11650         * fold-const.c (fold_unary_loc): Do not strip sign-changes
11651         for NEGATE_EXPR.
11652
11653 2011-07-07  Richard Guenther  <rguenther@suse.de>
11654
11655         * tree-vrp.c (simplify_conversion_using_ranges): New function.
11656         (simplify_stmt_using_ranges): Call it.
11657
11658 2011-07-07  Kai Tietz  <ktietz@redhat.com>
11659
11660         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
11661         (lookup_logical_inverted_value): Likewise.
11662         (simplify_bitwise_binary_1): Likewise.
11663         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
11664
11665 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11666
11667         * gcc.c (%[Spec]): Don't document.
11668         (struct spec_list): Update comment.
11669         (do_spec_1): Don't handle %[Spec].
11670         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
11671
11672 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
11673
11674         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
11675         default based on TARGET_ASM_NAMED_SECTION.
11676         * common/common-target.def (have_named_sections): Default to true.
11677         * common/config/default-common.c: Don't include tm.h.
11678         * common/config/picochip/picochip-common.c
11679         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
11680         * common/config/m32c/m32c-common.c: Remove.
11681         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
11682         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11683         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11684         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11685         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11686         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11687         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
11688
11689 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
11690
11691         PR middle-end/49640
11692         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
11693         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
11694
11695 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11696
11697         PR libmudflap/49550
11698         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
11699
11700 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11701
11702         PR target/39150
11703         * configure.ac (gcc_cv_as_hidden): Also accept
11704         x86_64-*-solaris2.1[0-9]*.
11705         (gcc_cv_as_cfi_directive): Likewise.
11706         (gcc_cv_as_comdat_group_group): Likewise.
11707         (set_have_as_tls): Likewise.
11708         * configure: Regenerate.
11709         * config.gcc (i[34567]86-*-solaris2*): Also handle
11710         x86_64-*-solaris2.1[0-9]*.
11711         * config.host (i[34567]86-*-solaris2*): Likewise.
11712         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
11713         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
11714         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
11715         (TARGET_LD_EMULATION): Use it.
11716         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
11717         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
11718         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
11719         (ASM_CPU64_DEFAULT_SPEC): Define.
11720         (ASM_CPU_SPEC): Use %(asm_cpu_default).
11721         (ASM_SPEC): Redefine.
11722         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
11723         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
11724         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
11725         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
11726         configuration.
11727         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
11728
11729 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11730
11731         * config/sol2.h (ASM_SPEC): Split into ...
11732         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
11733         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
11734         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
11735         (ASM_SPEC): Use ASM_SPEC_BASE.
11736         * config/sparc/sol2.h (ASM_SPEC): Redefine.
11737
11738 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
11739
11740         * config/avr/avr.md (*reload_insi): Change predicate #1 to
11741         const_int_operand.  Ditto for peep2 producing this insn.
11742         Add argument to output_reload_insisf call.
11743         (*movsi,*movsf): Add argument to output_movsisf call.
11744         (*reload_insf): New insn and new peep2 to produce it.
11745         * config/avr/avr-protos.h (output_movsisf): Change prototype.
11746         (output_reload_insisf): Change prototype.
11747         * config/avr/avr.c (avr_asm_len): New function.
11748         (output_reload_insisf): Rewrite.
11749         (output_movsisf): Change prototype.  output_reload_insisf for
11750         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
11751         (adjust_insn_length): Add argument to output_movsisf and
11752         output_reload_insisf call.
11753
11754 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11755
11756         * emit-rtl.c (paradoxical_subreg_p): New function.
11757         * rtl.h (paradoxical_subreg_p): Declare.
11758         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
11759         apply_distributive_law, simplify_comparison, simplify_set): Use it.
11760         * cse.c (record_jump_cond, cse_insn): Likewise.
11761         * expr.c (force_operand): Likewise.
11762         * rtlanal.c (num_sign_bit_copies1): Likewise.
11763         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
11764         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
11765         (push_reload): Use precision to check for paradoxical subregs.
11766         * expmed.c (extract_bit_field_1): Likewise.
11767
11768         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
11769         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
11770         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
11771         simplify_set, simplify_logical, expand_compound_operation,
11772         make_extraction, force_to_mode, if_then_else_cond, extended_count,
11773         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
11774         record_value_for_reg): Likewise.
11775         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
11776         * simplify-rtx. c (simplify_unary_operation_1,
11777         simplify_binary_operation_1, simplify_const_relational_operation):
11778         Likewise.
11779
11780         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
11781         instead of GET_MODE_BITSIZE where appropriate.
11782         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
11783         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
11784         init_num_sign_bit_copies_in_rep): Likewise.
11785         * cse.c (fold_rtx, cse_insn): Likewise.
11786         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
11787         * simplify-rtx.c (simplify_unary_operation_1,
11788         simplify_const_unary_operation, simplify_binary_operation_1,
11789         simplify_const_binary_operation, simplify_ternary_operation,
11790         simplify_const_relational_operation, simplify_subreg): Likewise.
11791         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
11792         simplify_if_then_else, simplify_set, expand_compound_operation,
11793         expand_field_assignment, make_extraction, if_then_else_cond,
11794         make_compound_operation, force_to_mode, make_field_assignment,
11795         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
11796         extended_count, try_widen_shift_mode, simplify_shift_const_1,
11797         simplify_comparison, record_promoted_value, simplify_compare_const,
11798         record_dead_and_set_regs_1): Likewise.
11799
11800         Revert:
11801         * simplify-rtx.c (simplify_const_binary_operation): Use the
11802         shift_truncation_mask hook instead of performing modulo by width.
11803         Compare against mode precision, not bitsize.
11804         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
11805         Use shift_truncation_mask instead of constructing the value manually.
11806
11807 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
11808
11809         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
11810         declaration.
11811         (rs6000_save_toc_in_prologue_p): Ditto.
11812
11813         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
11814         up the static chain (r11) during indirect function calls.
11815         (-msave-toc-indirect): New undocumented debug switch.
11816
11817         * config/rs6000/rs6000.c (struct machine_function): Add
11818         save_toc_in_prologue field to note whether the prologue needs to
11819         save the TOC value in the reserved stack location.
11820         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
11821         to save the TOC in the prologue, do so.
11822         (rs6000_trampoline_init): Don't allow creating AIX style
11823         trampolines if -mno-r11 is in effect.
11824         (rs6000_call_indirect_aix): New function to create AIX style
11825         indirect calls, adding support for -mno-r11 to suppress loading
11826         the static chain, and saving the TOC in the prologue instead of
11827         the call body.
11828         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
11829         TOC in the prologue.
11830
11831         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
11832         register numbers.
11833         (TOC_REGNUM): Ditto.
11834         (STATIC_CHAIN_REGNUM): Ditto.
11835         (ARG_POINTER_REGNUM): Ditto.
11836         (SFP_REGNO): Delete, unused.
11837         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
11838         function descriptor offsets.
11839         (TOC_SAVE_OFFSET_64BIT): Ditto.
11840         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
11841         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
11842         (AIX_FUNC_DESC_SC_32BIT): Ditto.
11843         (AIX_FUNC_DESC_SC_64BIT): Ditto.
11844         (ptrload): New mode attribute for the appropriate load of a pointer.
11845         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
11846         (call_indirect_aix64): Ditto.
11847         (call_value_indirect_aix32): Ditto.
11848         (call_value_indirect_aix64): Ditto.
11849         (call_indirect_nonlocal_aix32_internal): Ditto.
11850         (call_indirect_nonlocal_aix32): Ditto.
11851         (call_indirect_nonlocal_aix64_internal): Ditto.
11852         (call_indirect_nonlocal_aix64): Ditto.
11853         (call): Rewrite AIX indirect function calls.  Add support for
11854         eliminating the static chain, and for moving the save of the TOC
11855         to the function prologue.
11856         (call_value): Ditto.
11857         (call_indirect_aix<ptrsize>): Ditto.
11858         (call_indirect_aix<ptrsize>_internal): Ditto.
11859         (call_indirect_aix<ptrsize>_internal2): Ditto.
11860         (call_indirect_aix<ptrsize>_nor11): Ditto.
11861         (call_value_indirect_aix<ptrsize>): Ditto.
11862         (call_value_indirect_aix<ptrsize>_internal): Ditto.
11863         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
11864         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
11865         (call_nonlocal_aix32): Relocate in the rs6000.md file.
11866         (call_nonlocal_aix64): Ditto.
11867
11868         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
11869         -mno-r11 documentation.
11870
11871 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
11872
11873         PR other/49658
11874         * doc/extend.texi (Compound Literals): Fix typo.
11875
11876 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
11877
11878         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
11879
11880 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
11881
11882         * configure.ac (plugin-version.h): Generate
11883         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
11884         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
11885         macros.
11886
11887         * configure: Regenerate.
11888
11889         * doc/plugins.texi (Building GCC plugins): Mention
11890         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
11891
11892 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11893
11894         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
11895         * combine.c (make_extraction, gen_lowpart_or_truncate,
11896         apply_distributive_law, simplify_comparison,
11897         reg_truncated_to_mode, record_truncated_value): Use it.
11898         * cse.c (notreg_cost): Likewise.
11899         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
11900         * expr.c (convert_move, convert_modes): Likewise.
11901         * optabs.c (expand_binop, expand_unop): Likewise.
11902         * postreload.c (move2add_last_label): Likewise.
11903         * regmove.c (optimize_reg_copy_3): Likewise.
11904         * rtlhooks.c (gen_lowpart_general): Likewise.
11905         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11906
11907 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
11908
11909         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
11910
11911 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11912
11913         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
11914         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
11915         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
11916         (simplify_const_unary_operation, simplify_binary_operation_1,
11917         simplify_const_binary_operation, simplify_const_relational_operation):
11918         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
11919         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
11920         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
11921         simplify_shift_const_1, simplify_comparison): Likewise.
11922         * expr.c (convert_modes): Likewise.
11923         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
11924         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
11925         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
11926
11927         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
11928
11929 2011-07-06  Richard Guenther  <rguenther@suse.de>
11930
11931         PR tree-optimization/49645
11932         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
11933         register variables.
11934         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
11935         in type qualification here ...
11936         (copy_reference_ops_from_ref): ... not here.
11937         (vn_reference_lookup_3): ... or here.
11938         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
11939         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
11940
11941 2011-07-06  Ian Lance Taylor  <iant@google.com>
11942
11943         * doc/install.texi (Configuration): It's
11944         --enable-gnu-indirect-function, not --enable-indirect-function.
11945
11946 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11947
11948         * simplify-rtx.c (simplify_const_binary_operation): Use the
11949         shift_truncation_mask hook instead of performing modulo by width.
11950         Compare against mode precision, not bitsize.
11951         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
11952         Use shift_truncation_mask instead of constructing the value manually.
11953
11954 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
11955
11956         PR middle-end/47383
11957         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
11958         address computation and convert to address_mode if needed.
11959
11960 2011-07-06  Richard Guenther  <rguenther@suse.de>
11961
11962         * tree.c (build_common_tree_nodes_2): Merge with
11963         build_common_tree_nodes.
11964         * tree.h (build_common_tree_nodes): Adjust prototype.
11965         (build_common_tree_nodes_2): Remove.
11966         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
11967         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
11968
11969 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
11970
11971         PR tree-optimization/49618
11972         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
11973         t recurse on the decl.
11974         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
11975         return true if expr isn't known to be defined in current
11976         TU or some other LTO partition.
11977
11978 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
11979
11980         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
11981         override CASE_VALUES_THRESHOLD.
11982
11983         * stmt.c (toplevel): Include params.h.
11984         (case_values_threshold): Use the --param case-values-threshold
11985         value if non-zero, otherwise use machine dependent value.
11986         (expand_case): Use case_values_threshold.
11987
11988         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
11989
11990         * doc/invoke.texi (--param case-values-threshold): Document.
11991
11992 2011-07-05  Richard Henderson  <rth@redhat.com>
11993
11994         * dwarf2out.c (dwarf2out_cfi_label): Make static.
11995         (dwarf2out_flush_queued_reg_saves): Make static.
11996         (dwarf2out_reg_save): Remove.
11997         (dwarf2out_return_save): Remove.
11998         (dwarf2out_return_reg): Remove.
11999         (dwarf2out_reg_save_reg): Remove.
12000         (dwarf2out_def_cfa): Merge into ...
12001         (dwarf2out_frame_init): ... here.
12002         * dwarf2out.h, tree.h: Remove declarations as necessary.
12003
12004 2011-07-05  Richard Henderson  <rth@redhat.com>
12005
12006         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
12007         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12008         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
12009         the alloc insn.
12010
12011         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
12012         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
12013         (process_epilogue): Don't call dwarf2out_def_cfa.
12014
12015         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
12016         indicate the return address save.
12017         (process_cfa_register): Likewise.
12018
12019         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
12020         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
12021
12022         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
12023         for ar.pfs save at alloc insn.
12024
12025 2011-07-05  Richard Henderson  <rth@redhat.com>
12026
12027         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
12028         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12029         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
12030         stack pointer save.
12031         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
12032         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
12033         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
12034         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
12035
12036 2011-07-05  Richard Henderson  <rth@redhat.com>
12037
12038         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
12039         VUNSPEC_* constants here instead of via define_constants.
12040         (VUNSPEC_PEM): New constant.
12041         (procedure_entry_mask): New insn.
12042         (prologue): New expander.
12043         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
12044         (vax_expand_prologue): Rename from vax_output_function_prologue;
12045         emit rtl instead of text.
12046         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
12047         (print_operand): Add 'x' prefix.
12048
12049 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
12050
12051         PR middle-end/47715
12052         * calls.c (precompute_register_parameters): Promote the function
12053         argument before checking non-legitimate constant.
12054
12055 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
12056
12057         PR tree-optimization/47654
12058         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
12059         (lst_do_strip_mine_loop): Return an int.
12060         (lst_do_strip_mine): Same.
12061         (scop_do_strip_mine): Same.
12062         (scop_do_block): Loop blocking should strip-mine at least two loops.
12063         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
12064         (scop_do_interchange): Same.
12065         * graphite-poly.h (scop_do_interchange): Update declaration.
12066         (scop_do_strip_mine): Same.
12067
12068 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
12069
12070         * graphite-clast-to-gimple.c (precision_for_value): Removed.
12071         (precision_for_interval): Removed.
12072         (gcc_type_for_interval): Use mpz_sizeinbase.
12073
12074 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
12075
12076         * graphite-ppl.h (value_max): Correct computation of max.
12077
12078 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
12079
12080         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
12081
12082 2011-07-05  Richard Guenther  <rguenther@suse.de>
12083
12084         * c-decl.c (c_init_decl_processing): Defer building common
12085         tree nodes to c_common_nodes_and_builtins.
12086
12087 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
12088
12089         PR tree-optimization/49580
12090         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
12091         the loop's number of iterations.
12092         * tree-parloops.c (transform_to_exit_first_loop): Add the
12093         handling of the loop's number of iterations before the call
12094         to gimple_duplicate_sese_tail.
12095         Insert the stmt caclculating the new rhs of the loop's
12096         condition stmt to the preheader instead of iters_bb.
12097
12098 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
12099
12100         PR rtl-optimization/47449
12101         * fwprop.c (forward_propagate_subreg): Don't propagate hard
12102         register nor zero/sign extended hard register.
12103
12104 2011-07-05  Richard Guenther  <rguenther@suse.de>
12105
12106         PR tree-optimization/49518
12107         PR tree-optimization/49628
12108         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
12109         irrelevant and invariant data-references.
12110         (vect_analyze_data_ref_access): For invariant loads clear the
12111         group association.
12112
12113 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
12114
12115         PR rtl-optimization/49619
12116         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
12117         pass VOIDmode as op0_mode to recursive call, and return temp even
12118         when different from tor, just if it is not IOR of the original
12119         PLUS arguments.
12120
12121         PR rtl-optimization/49472
12122         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
12123         negating MULT, negate the second operand instead of first.
12124         (simplify_binary_operation_1) <case MULT>: If one operand is
12125         a NEG and the other is MULT, don't attempt to optimize by negation
12126         of the MULT operand if it only moves the NEG operation around.
12127
12128         PR debug/49602
12129         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
12130         get_current_def return value if it can't be trusted to be
12131         the current value of the variable in the current bb.
12132
12133 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
12134
12135         PR target/49600
12136         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
12137         general register to memory for !TARGET_INTER_UNIT_MOVES.
12138
12139 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
12140
12141         PR target/44643
12142         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
12143         instead of TREE_READONLY.
12144
12145 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
12146
12147         * doc/extend.texi (AVR Built-in Functions): Update documentation
12148         of __builtin_avr_fmul*.
12149         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
12150         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
12151         * config/avr/avr.md (fmul): Rename to fmul_insn.
12152         (fmuls): Rename to fmuls_insn.
12153         (fmulsu): Rename to fmulsu_insn.
12154         (fmul,fmuls,fmulsu): New expander.
12155         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
12156         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
12157         * config/avr/libgcc.S (__fmul): New function.
12158         (__fmuls): New function.
12159         (__fmulsu,__fmulsu_exit): New function.
12160
12161 2011-07-04  Richard Guenther  <rguenther@suse.de>
12162
12163         PR tree-optimization/49615
12164         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
12165         basic-block index check.
12166
12167 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
12168
12169         * longlong.h (count_leading_zeros, count_trailing_zeros,
12170         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
12171         resp. 64.
12172
12173 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
12174
12175         PR tree-optimization/49610
12176         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
12177         a basic block.
12178
12179 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
12180             Olivier Hainque  <hainque@adacore.com>
12181             Nicolas Setton  <setton@adacore.com>
12182
12183         * tree.h (TYPE_ARTIFICIAL): New flag.
12184         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
12185         the DIE of the type if it is artificial.
12186         (gen_array_type_die): Likewise.
12187         (gen_enumeration_type_die): Likewise.
12188         (gen_struct_or_union_type_die): Likewise.
12189         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
12190         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
12191
12192 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
12193
12194         * tree-object-size.c (pass_through_call): Handle
12195         BUILT_IN_ASSUME_ALIGNED.
12196
12197 2011-07-01  Martin Jambor  <mjambor@suse.cz>
12198
12199         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
12200
12201 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
12202
12203         PR middle-end/48016
12204         * explow.c (update_nonlocal_goto_save_area): Use proper mode
12205         for stack save area.
12206         * function.c (expand_function_start): Likewise.
12207
12208 2011-07-01  Richard Guenther  <rguenther@suse.de>
12209
12210         PR middle-end/49596
12211         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
12212         may have unknown refs.
12213
12214 2011-07-01  Kai Tietz  <ktietz@redhat.com>
12215
12216         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
12217
12218 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12219
12220         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
12221         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
12222         (Specific, mips-sgi-irix6): Likewise.
12223
12224 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12225
12226         PR libmudflap/49549
12227         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
12228
12229 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
12230
12231         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
12232         [idx]= and [idx1 ... idx2]= before initializers if needed for
12233         array initializers.
12234
12235 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
12236
12237         * config.gcc (score-*-elf): Remove score7.o.
12238         * config/score/t-score-elf: Likewise.
12239         * config/score/score.c: Merge score7 to score.c and
12240         remove forwarding functions.
12241         * config/score/score7.c: Deleted.
12242         * config/score/score7.h: Deleted.
12243
12244 2011-07-01  Richard Guenther  <rguenther@suse.de>
12245
12246         PR tree-optimization/49603
12247         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
12248
12249 2011-06-30  Martin Jambor  <mjambor@suse.cz>
12250
12251         * tree-sra.c (struct access): Rename total_scalarization to
12252         grp_total_scalarization
12253         (completely_scalarize_var): New function.
12254         (sort_and_splice_var_accesses): Set total_scalarization in the
12255         representative access.
12256         (analyze_access_subtree): Propagate total scalarization accross the
12257         tree, no holes in totally scalarized trees, simplify coverage
12258         computation.
12259         (analyze_all_variable_accesses): Call completely_scalarize_var instead
12260         of completely_scalarize_record.
12261
12262 2011-06-30  Richard Henderson  <rth@redhat.com>
12263
12264         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
12265         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
12266         * config/i386/i386.c: Don't include dwarf2out.h.
12267         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
12268         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
12269         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
12270         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
12271         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
12272
12273 2011-06-30  Richard Henderson  <rth@redhat.com>
12274
12275         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
12276         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12277         * final.c (final_scan_insn): Look for it, and invoke
12278         dwarf2out_frame_debug before the insn if found.
12279
12280 2011-06-30  Richard Henderson  <rth@redhat.com>
12281
12282         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
12283         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
12284
12285 2011-06-30  Richard Henderson  <rth@redhat.com>
12286
12287         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
12288         Define a vector of this type.
12289         (regs_saved_in_regs): Use a VEC.
12290         (num_regs_saved_in_regs): Remove.
12291         (compare_reg_or_pc): New.
12292         (record_reg_saved_in_reg): Split out from...
12293         (dwarf2out_flush_queued_reg_saves): ... here.
12294         (clobbers_queued_reg_save): Update for VEC.
12295         (reg_saved_in): Likewise.
12296         (dwarf2out_frame_debug_init): Likewise.
12297         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
12298         (dwarf2out_frame_debug_cfa_register): Likewise.
12299
12300 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
12301
12302         PR tree-optimization/49572
12303         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
12304         type of the RHS instead of that of the LHS for the expression type.
12305
12306 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
12307
12308         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
12309         unconditionally.
12310
12311 2011-06-30  Richard Guenther  <rguenther@suse.de>
12312
12313         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
12314         * tree-ssa-structalias.c (create_variable_info_for): Do not
12315         add initial constraints for non-var-decls.  Properly handle
12316         globals in other ltrans partitions.
12317         (intra_create_variable_infos): Manually create constraints for
12318         the fake no-alias parameter.
12319         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
12320         and assert there are no clones.
12321
12322 2011-06-30  Richard Guenther  <rguenther@suse.de>
12323
12324         PR tree-optimization/46787
12325         * tree-data-ref.c (dr_address_invariant_p): Remove.
12326         (find_data_references_in_stmt): Invariant accesses are ok now.
12327         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
12328         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
12329         invariant loads.
12330
12331 2011-06-30  Martin Jambor  <mjambor@suse.cz>
12332
12333         PR tree-optimization/49094
12334         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
12335         (build_accesses_from_assign): Use it.
12336
12337 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
12338
12339         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
12340         handling of BUILT_IN_ASSUME_ALIGNED.
12341
12342         PR debug/49364
12343         * dwarf2out.c (output_abbrev_section): Don't return early
12344         if abbrev_die_table_in_use is 1.
12345         (dwarf2out_finish): Instead don't call output_abbrev_section
12346         nor emit abbrev_section_label in that case.
12347
12348 2011-06-30  Nick Clifton  <nickc@redhat.com>
12349
12350         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
12351         for the V850E.
12352
12353 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
12354
12355         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
12356         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
12357
12358 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
12359
12360         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
12361         both pattern and original statements if necessary.
12362         (vect_transform_loop): Likewise.
12363         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
12364         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
12365         Mark the pattern statement only if the original statement doesn't
12366         have its own uses.
12367         (process_use): Call vect_mark_relevant with additional parameter.
12368         (vect_mark_stmts_to_be_vectorized): Likewise.
12369         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
12370         (vect_analyze_stmt): Handle both pattern and original statements
12371         if necessary.
12372         (vect_transform_stmt): Don't store vectorized pattern statement
12373         in the original statement.
12374         (vect_is_simple_use_1): Use related pattern statement only if the
12375         original statement is irrelevant.
12376         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
12377
12378 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
12379
12380         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
12381         option.
12382         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
12383         entry.
12384         (TARGET_AVX128_OPTIMAL): New definition.
12385         * config/i386/i386.c (initial_ix86_tune_features): Initialize
12386         X86_TUNE_AVX128_OPTIMAL entry.
12387         (ix86_option_override_internal): Enable the generation
12388         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
12389         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
12390         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
12391
12392 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
12393
12394         PR tree-optimization/49539
12395         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
12396         names by means of stmt_references_abnormal_ssa_name.
12397         (associate_plusminus): Call can_propagate_from before propagating
12398         from definition statements.
12399         (ssa_forward_propagate_and_combine): Remove superfluous newline.
12400
12401 2011-06-29  Richard Guenther  <rguenther@suse.de>
12402
12403         * doc/invoke.texi: Document -scev dump modifier.
12404         * tree-pass.h (TDF_SCEV): New dump flag.
12405         * tree-dump.c (dump_option_value_in): Add scev.
12406         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
12407         * tree-scalar-evolution.c: Likewise.
12408
12409 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
12410
12411         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
12412         (cxa_type_match): Correct declaration.
12413         (__gnu_unwind_pr_common): Reconstruct additional indirection
12414         when __cxa_type_match returns succeeded_with_ptr_to_base.
12415
12416 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12417
12418         PR rtl-optimization/49114
12419         * reload.c (struct replacement): Remove SUBREG_LOC member.
12420         (push_reload): Do not set it.
12421         (push_replacement): Likewise.
12422         (subst_reload): Remove dead code.
12423         (copy_replacements): Remove assertion.
12424         (copy_replacements_1): Do not handle SUBREG_LOC.
12425         (move_replacements): Likewise.
12426         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
12427         Detect subregs via recursive descent instead of via SUBREG_LOC.
12428
12429 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
12430
12431         * config/avr/avr.c (avr_encode_section_info): Dispatch to
12432         default_encode_section_info.
12433
12434 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
12435
12436         PR tree-optimization/49545
12437         * builtins.c (get_object_alignment_1): Update function comment.
12438         Do not use DECL_ALIGN for functions, but test
12439         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
12440         * fold-const.c (get_pointer_modulus_and_residue): Don't check
12441         for functions here.
12442         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
12443
12444 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
12445
12446         PR debug/49567
12447         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
12448         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
12449
12450 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
12451
12452         PR target/34734
12453         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
12454         about uninitialized data attributed 'progmem' from here...
12455         (avr_encode_section_info): ...to this new function.
12456         (TARGET_ENCODE_SECTION_INFO): New define.
12457         (avr_section_type_flags): For data in ".progmem.data", remove
12458         section flag SECTION_WRITE.
12459
12460 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
12461
12462         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
12463         _xmulhisi3_exit.
12464         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
12465         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
12466         (__umulhisi3): Ditto.
12467         * config/avr/avr.md (mulhisi3): New insn expender.
12468         (umulhisi3): New insn expender.
12469         (*mulhisi3_call): New insn.
12470         (*umulhisi3_call): New insn.
12471
12472 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
12473
12474         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
12475
12476 2011-06-28  Richard Henderson  <rth@redhat.com>
12477
12478         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
12479         all code and arguments that handled pushes.  Update all callers.
12480
12481 2011-06-28  Richard Henderson  <rth@redhat.com>
12482
12483         * config/arm/arm.c (arm_output_function_prologue): Don't call
12484         thumb1_output_function_prologue.
12485         (arm_expand_prologue): Avoid dead store.
12486         (number_of_first_bit_set): Use ctz_hwi.
12487         (thumb1_emit_multi_reg_push): New.
12488         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
12489         to emit the entire prologue as rtl.
12490         (thumb1_output_interwork): Split out from
12491         thumb1_output_function_prologue.
12492         (thumb1_output_function_prologue): Remove.
12493         (arm_attr_length_push_multi): Handle thumb1.
12494         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
12495         (prologue_thumb1_interwork): New.
12496         (*push_multi): Allow thumb1; use push_mult_memory_operand.
12497         * config/arm/predicates.md (push_mult_memory_operand): New.
12498
12499 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
12500
12501         * config/sparc/sync.md (*stbar): Delete.
12502         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
12503
12504 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
12505
12506         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
12507
12508 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12509
12510         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
12511         (TARGET_64BIT_DEFAULT): Define.
12512         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
12513         of tm_file.
12514         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
12515
12516 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
12517
12518         * common.opt (in_lto_p): New Variable entry.
12519         * flags.h (in_lto_p): Move to common.opt.
12520         * gcc.c: Include params.h.
12521         (set_option_handlers): Also use common_handle_option and
12522         target_handle_option.
12523         (main): Call global_init_params, finish_params and init_options_struct.
12524         * opts.c (debug_type_names): Move from toplev.c.
12525         (print_filtered_help): Access quiet_flag through opts pointer.
12526         (common_handle_option): Return early in the driver for some options.
12527         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
12528         opts pointer.
12529         * toplev.c (in_lto_p): Move to common.opt.
12530         (debug_type_names): Move to opts.c.
12531         * Makefile.in (OBJS): Remove opts.o.
12532         (OBJS-libcommon-target): Add opts.o.
12533         (gcc.o): Update dependencies.
12534
12535 2011-06-28  Kai Tietz  <ktietz@redhat.com>
12536
12537         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
12538
12539 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12540
12541         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
12542         with '=' constraint modifier.
12543         (*divdf3_vfp): Likewise.
12544         ("*mulsf3_vfp"): Likewise.
12545         ("*muldf3_vfp"): Likewise.
12546         ("*mulsf3negsf_vfp"): Likewise.
12547         ("*muldf3negdf_vfp"): Likewise.
12548
12549 2011-06-28  Nick Clifton  <nickc@redhat.com>
12550
12551         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
12552         relaxation when performing an incremental link.
12553
12554 2011-06-28  Kai Tietz  <ktietz@redhat.com>
12555
12556         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
12557         within BB from last to first.
12558
12559 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
12560
12561         * genattr-common.c: New.  Based on genattr.c.
12562         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
12563         (MOSTLYCLEANFILES): Add insn-attr-common.h.
12564         (opts.o): Update dependencies.
12565         (.PRECIOUS): Add insn-attr-common.h.
12566         (simple_rtl_generated_h): Add insn-attr-common.h.
12567         (build/genattr-common.o): New.
12568         (genprogrtl): Add attr-common.
12569         * genattr.c (main): Include insn-attr-common.h.  Don't generate
12570         definitions of DELAY_SLOTS or INSN_SCHEDULING.
12571         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
12572
12573 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
12574
12575         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
12576         avr-*-* and avr-*-rtems* targets.
12577
12578         * config/avr/elf.h: New file.
12579         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
12580         (TARGET_ASM_SELECT_SECTION): Define.
12581         (INIT_SECTION_ASM_OP): Undefine.
12582         (FINI_SECTION_ASM_OP): Undefine.
12583         (READONLY_DATA_SECTION_ASM_OP): Undefine.
12584         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
12585         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
12586         * config/avr/avr.h:
12587         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
12588         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
12589         (MAX_OFILE_ALIGNMENT): Move to elf.h.
12590         (STRING_LIMIT): Move to elf.h.
12591         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
12592         (ASM_DECLARE_OBJECT_NAME): Remove.
12593         (ESCAPES): Remove.
12594         (ASM_OUTPUT_SKIP): Remove.
12595         (DWARF2_DEBUGGING_INFO): Remove.
12596         (OBJECT_FORMAT_ELF): Remove.
12597         (USER_LABEL_PREFIX): Remove.
12598         (ASM_OUTPUT_EXTERNAL): Remove.
12599         (ASM_OUTPUT_ASCII): Remove.
12600         (TYPE_ASM_OP): Remove.
12601         (SIZE_ASM_OP): Remove.
12602         (WEAK_ASM_OP): Remove.
12603         (STRING_ASM_OP): Remove.
12604         (SET_ASM_OP): Remove.
12605         (ASM_WEAKEN_LABEL): Remove.
12606         (TYPE_OPERAND_FMT): Remove.
12607         (ASM_DECLARE_FUNCTION_SIZE): Remove.
12608         (ASM_FINISH_DECLARE_OBJECT): Remove.
12609         (NO_DOLLAR_IN_LABEL): Remove.
12610         (ASM_GENERATE_INTERNAL_LABEL): Remove.
12611         (ASM_OUTPUT_CASE_LABEL): Remove.
12612         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
12613         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
12614         (gas_output_ascii): Remove.
12615         (gas_output_limited_string): Remove.
12616         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
12617         * config/avr/avr-protos.h
12618         (gas_output_ascii): Remove prototye.
12619         (gas_output_limited_string): Remove prototype.
12620
12621 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
12622
12623         PR target/48637
12624         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
12625         asm operands.
12626
12627 2011-06-27  Jan Hubicka  <jh@suse.cz>
12628
12629         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
12630         node instead of references in node.
12631
12632 2011-06-27  Richard Henderson  <rth@redhat.com>
12633
12634         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
12635         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
12636         inside ifdef.
12637
12638 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
12639
12640         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
12641
12642         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
12643         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
12644         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
12645         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
12646         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
12647         (evaluate_stmt, execute_fold_all_builtins): Handle
12648         BUILT_IN_ASSUME_ALIGNED.
12649         * tree-ssa-dce.c (propagate_necessity): Likewise.
12650         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12651         call_may_clobber_ref_p_1): Likewise.
12652         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
12653         (expand_builtin_assume_aligned): New function.
12654         * doc/extend.texi (__builtin_assume_aligned): Document.
12655
12656         PR debug/49544
12657         * cselib.c (promote_debug_loc): If cselib_preserve_constants
12658         and l has two DEBUG_INSN owned locs instead of just one, adjust
12659         the second location's setting_insn too.
12660
12661 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12662
12663         PR libmudflap/38738
12664         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
12665
12666 2011-06-27  Nick Clifton  <nickc@redhat.com>
12667
12668         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
12669         bit position of highest bit set into a count of the high zero bits.
12670
12671 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12672
12673         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
12674
12675 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12676
12677         PR lto/48492
12678         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
12679         to a NULL parent.
12680
12681 2011-06-27  Richard Guenther  <rguenther@suse.de>
12682
12683         PR tree-optimization/49394
12684         * passes.c (execute_one_pass): Restore current_pass after
12685         applying IPA transforms.
12686
12687 2011-06-27  Kai Tietz  <ktietz@redhat.com>
12688
12689         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
12690         out of type precision after operation.
12691         (find_bswap): Take for limit value the integer auto-promotion
12692         into account.
12693
12694 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12695
12696         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
12697         forward scan as well.
12698
12699 2011-06-27  Tristan Gingold  <gingold@adacore.com>
12700
12701         PR target/44241
12702         * config/vms/vms-protos.h: New file.
12703         * config/vms/vms-crtlmap.map: New file.
12704         * config/vms/vms.c: New file.
12705         * config/vms/make-crtlmap.awk: New file.
12706         * config/vms/vms-crtl.h: File removed.
12707         * config/vms/vms-crtl-64.h: File removed.
12708         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
12709         * config/alpha/vms64.h: Do not include vms-crtl-64.h
12710         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
12711         clear some builtins on VMS.  Calls vms_patch_builtins.
12712         (avms_asm_output_external): Remove.
12713         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
12714         (struct crtl_name_spec): Remove
12715         (DO_CTRL_NAMES): Remove.
12716         * config/ia64/vms.h (struct crtl_name_spec): Remove
12717         (DO_CTRL_NAMES): Remove.
12718         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
12719         clear some builtins on VMS.  Calls vms_patch_builtins.
12720         (ia64_asm_output_external): Remove DO_CRTL_NAME.
12721         * config/ia64/vms64.h: Do not include vms-crtl-64.h
12722         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
12723
12724 2011-06-27  Tristan Gingold  <gingold@adacore.com>
12725
12726         * config/alpha/alpha.c (alpha_end_function): Always generate .end
12727         directive on VMS.
12728
12729 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
12730
12731         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
12732         the function receives nonlocal gotos.
12733
12734 2011-06-27  Richard Guenther  <rguenther@suse.de>
12735
12736         PR tree-optimization/49536
12737         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
12738         For non-scalar inner types use a scalar type according to
12739         the scalar inner mode.
12740
12741 2011-06-27  Richard Guenther  <rguenther@suse.de>
12742
12743         PR tree-optimization/49365
12744         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
12745
12746 2011-06-27  Richard Guenther  <rguenther@suse.de>
12747
12748         PR tree-optimization/49169
12749         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
12750         the alignment of function decls.
12751
12752 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
12753
12754         PR target/47997
12755         * config/darwin.c (darwin_mergeable_string_section): Place string
12756         constants in '.cstring' rather than '.const' when CF/NSStrings are
12757         active.
12758
12759 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
12760
12761         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
12762         (emit_save_register_window): Likewise.
12763         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
12764         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
12765         Swap back %o7/%i7 in register naming.
12766
12767 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
12768
12769         PR driver/49371
12770         * config/darwin.c (darwin_override_options): Improve warning when
12771         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
12772         is given with fpie/fPIE.
12773         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
12774         * config/darwin9.h (PIE_SPEC): New.
12775
12776 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
12777
12778         * timevar.c (timevar_print): Increase width for display of timevar
12779         name.
12780
12781 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
12782
12783         PR c++/46400
12784         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
12785         instead of TYPE_CHAIN for chain_next for types.
12786
12787 2011-06-24  Richard Henderson  <rth@redhat.com>
12788
12789         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
12790         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
12791         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
12792         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
12793         (sparc_flat_expand_prologue): Emit individual instructions
12794         instead of one of the above.
12795
12796 2011-06-24  Easwaran Raman  <eraman@google.com>
12797
12798         PR rtl-optimization/49429
12799         PR target/49454
12800         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
12801         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
12802         used to copy y into x.
12803         * calls.c (initialize_argument_information): Mark
12804         an argument addressable if it is passed by invisible reference.
12805         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
12806         if it is passed by reference.
12807
12808 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
12809
12810         PR rtl-optimization/49504
12811         * rtlanal.c (nonzero_bits1): Properly handle addition or
12812         subtraction of a pointer in Pmode if pointers extend unsigned.
12813         (num_sign_bit_copies1): Likewise.
12814
12815 2011-06-24  Martin Jambor  <mjambor@suse.cz>
12816
12817         PR tree-optimizations/49516
12818         * tree-sra.c (sra_modify_assign): Choose the safe path for
12819         aggregate copies if we also did scalar replacements.
12820
12821 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12822
12823         PR target/49335
12824         * config/arm/predicates.md (add_operator): New.
12825         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
12826
12827 2011-06-24  Andi Kleen  <ak@linux.intel.com>
12828
12829         * tree-sra.c (type_internals_preclude_sra_p): Add msg
12830         parameter. Split up ifs and report reason in *msg.
12831         (reject): Add.
12832         (find_var_candiate): Add msg variable.
12833         Split up ifs and report reason to reject.
12834         (find_param_candidates): Add msg variable.
12835         Pass msg to type_internals_preclude_sra_p.
12836
12837 2011-06-23  Jeff Law  <law@redhat.com>
12838
12839         PR middle-end/48770
12840         * reload.h (reload): Change to return a bool.
12841         * ira.c (ira): If requested by reload, run a fast DCE pass after
12842         reload has completed.  Fix comment typo.
12843         * reload1.c (need_dce): New file scoped static.
12844         (reload): Set reload_completed here.  Return whether or not a DCE
12845         pass after reload is needed.
12846         (delete_dead_insn): Set need_dce as needed.
12847
12848         PR middle-end/49465
12849         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
12850         to detect threading through joiner block.  If there was already
12851         an edge to the new target, then do not change the PHI nodes.
12852
12853 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
12854
12855         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
12856         get_pointer_alignment to see if base isn't sufficiently aligned.
12857
12858 2011-06-23  Jan Hubicka  <jh@suse.cz>
12859
12860         PR tree-optimize/49373
12861         * tree-pass.h (all_late_ipa_passes): Declare.
12862         * cgraphunit.c (init_lowered_empty_function): Fix properties.
12863         (cgraph_optimize): Execute late passes; remove unreachable funcions
12864         after materialization.
12865         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
12866         LTOing.
12867         * passes.c (all_late_ipa_passes): Declare.
12868         (dump_passes, register_pass): Handle late ipa passes.
12869         (init_optimization_passes): Move ipa_pta to late passes; schedule
12870         fixup_cfg at beggining of all_passes.
12871         (apply_ipa_transforms): New function.
12872         (execute_one_pass): When doing simple ipa pass, apply all transforms.
12873
12874 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
12875
12876         * params.c: Include common/common-target.h.  Don't include tm.h.
12877         (lang_independent_params): Move from toplev.c.
12878         (global_init_params): New.
12879         * params.h (global_init_params): Declare.
12880         * target.def (default_params): Move to common-target.def.
12881         * toplev.c (lang_independent_options): Remove.
12882         (lang_independent_params): Move to params.c.
12883         (general_init): Use global_init_params.
12884         * common/common-target.def (option_default_params): Move from
12885         target.def.
12886         * common/config/ia64/ia64-common.c: Include params.h.
12887         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12888         from ia64.c.
12889         * common/config/rs6000/rs6000-common.c: Include params.h.
12890         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12891         from rs6000.c.
12892         * common/config/sh/sh-common.c: Include params.h.
12893         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12894         from sh.c.
12895         * common/config/spu/spu-common.c: Include params.h.
12896         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
12897         from spu.c.
12898         * config/ia64/ia64.c (ia64_option_default_params,
12899         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
12900         * config/rs6000/rs6000.c (rs6000_option_default_params,
12901         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
12902         * config/sh/sh.c (sh_option_default_params,
12903         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
12904         * config/spu/spu.c (spu_option_default_params,
12905         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
12906         * Makefile.in (OBJS): Remove params.o.
12907         (OBJS-libcommon-target): Add params.o.
12908         (params.o, $(common_out_object_file)): Update dependencies.
12909         * doc/tm.texi: Regenerate.
12910
12911 2011-06-23  Alan Modra  <amodra@gmail.com>
12912
12913         PR bootstrap/49383
12914         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
12915         invocation for 2011-06-09 changes.
12916
12917 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
12918
12919         PR libgomp/49490
12920         * omp-low.c (expand_omp_for_static_nochunk): Only
12921         use n ceil/ nthreads size for the first n % nthreads threads in the
12922         team instead of all threads except for the last few ones which
12923         get less work or none at all.
12924
12925         PR debug/49496
12926         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
12927         uses.
12928
12929 2011-06-22  Richard Guenther  <rguenther@suse.de>
12930
12931         PR tree-optimization/49493
12932         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
12933         Refer to the alias target of variables.
12934         (associate_varinfo_to_alias_1): Remove.
12935         (ipa_pta_execute): Do not associate aliases with anything.
12936         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
12937         (cgraph_function_node): Likewise.
12938         (cgraph_function_or_thunk_node): Likewise.
12939         (varpool_variable_node): Likewise.
12940
12941 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
12942
12943         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
12944         * config.gcc (arm*-*-linux*): Default to gnu tls.
12945         (arm*-*-*): Add --with-tls option.
12946         (all_defaults): Add 'tls'.
12947
12948 2011-06-22  Richard Henderson  <rth@redhat.com>
12949
12950         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
12951         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12952         (dwarf2out_frame_debug_cfa_window_save): Rename from
12953         dwarf2out_window_save; make static.
12954         * tree.h (dwarf2out_window_save): Don't declare.
12955
12956         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
12957         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
12958         (emit_save_register_window): Rename from gen_save_register_window;
12959         emit the insn and add REG_CFA_* notes.
12960         (sparc_expand_prologue): Update to match.
12961         * config/sparc/sparc.md (save_register_window_1): Simplify from
12962         save_register_window<P:mode>.
12963
12964 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
12965
12966         PR target/49497
12967         * config/i386/i386.md (*lea_general_2): Always allow SImode.
12968         (*lea_general_2_zext): Likewise.
12969         (imul to lea peepholes): Use const359_operand and check
12970         TARGET_PARTIAL_REG_STALL.
12971
12972         * config/i386/predicates.md (const359_operand): New.
12973
12974 2011-06-22  Michael Matz  <matz@suse.de>
12975
12976         * cgraphunit.c (assemble_thunk): Use correct return type.
12977
12978 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
12979             Dmitry Melnik  <dm@ispras.ru>
12980
12981         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
12982         (neon_output_shift_immediate): Ditto.
12983         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
12984         prototype.
12985         (neon_output_shift_immediate): Ditto.
12986         * config/arm/neon.md (vashl<mode>3): Modified constraint.
12987         (vashr<mode>3_imm): New insn pattern.
12988         (vlshr<mode>3_imm): Ditto.
12989         (vashr<mode>3): Modified constraint.
12990         (vlshr<mode>3): Ditto.
12991         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
12992         predicate.
12993         (imm_for_neon_rshift_operand): Ditto.
12994         (imm_lshift_or_reg_neon): Ditto.
12995         (imm_rshift_or_reg_neon): Ditto.
12996
12997         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
12998
12999 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
13000
13001         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
13002         builtin calls even if likelyvalue is not CONSTANT.
13003         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
13004         Return get_value_for_expr of first operand
13005         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
13006         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13007         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
13008         their non-checking counterparts.
13009         (call_may_clobber_ref_p_1): Likewise.
13010         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
13011         like their non-checking counterparts.
13012         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13013         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
13014         like their non-checking counterparts.
13015         (find_func_clobbers): Likewise.
13016         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
13017         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
13018
13019         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
13020         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
13021         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
13022         of base type reference as argument.
13023         (resolve_addr_in_expr): Likewise.  Fix keep computation.
13024         (convert_descriptor_to_signed): Renamed to...
13025         (convert_descriptor_to_mode): ... this.  For wider types convert to
13026         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
13027         (typed_binop): New function.
13028         (scompare_loc_descriptor, ucompare_loc_descriptor,
13029         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
13030         default to unsigned type instead of signed.
13031
13032         PR debug/47858
13033         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
13034         (gimple_build_debug_source_bind_stat): New prototype.
13035         (gimple_build_debug_source_bind): Define.
13036         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
13037         gimple_debug_source_bind_get_value,
13038         gimple_debug_source_bind_get_value_ptr,
13039         gimple_debug_source_bind_set_var,
13040         gimple_debug_source_bind_set_value): New inlines.
13041         * gimple.c (gimple_build_debug_source_bind_stat): New function.
13042         * gimple-pretty-print.c (dump_gimple_debug): Handle
13043         GIMPLE_DEBUG_SOURCE_BIND.
13044         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
13045         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13046         * tree-parloops.c (eliminate_local_variables,
13047         separate_decls_in_region): Likewise.
13048         (separate_decls_in_region_debug): Renamed from
13049         separate_decls_in_region_debug_bind.  Handle
13050         gimple_debug_source_bind_p.
13051         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
13052         prototypes.
13053         (DECL_HAS_DEBUG_ARGS_P): Define.
13054         (struct tree_function_decl): Add has_debug_args_flag field.
13055         * tree.c (debug_args_for_decl): New variable.
13056         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
13057         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
13058         (rewrite_debug_stmt_uses): New function.
13059         (rewrite_stmt): Use it to rewrite debug stmt uses.
13060         * rtl.def (DEBUG_PARAMETER_REF): New.
13061         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
13062         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
13063         DEBUG_PARAMETER_REF.
13064         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
13065         * print-rtl.c (print_rtx): Likewise.
13066         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
13067         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
13068         debug stmts in the first bb.
13069         * tree-inline.c (remap_ssa_name): If remapping default def
13070         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
13071         a source bind debug stmt.
13072         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
13073         (maybe_move_debug_stmts_to_successors): Likewise.
13074         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
13075         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
13076         debug args vector from old_decl to new_decl.
13077         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
13078         or modified parameters, add debug bind stmts before call
13079         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
13080         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
13081         on DECL_DEBUG_EXPRs from debug args vector.
13082         (expand_debug_source_expr): New function.
13083         (expand_debug_locations): Use it for source bind insns.
13084         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
13085         * var-tracking.c (prepare_call_arguments): Add debug args
13086         to call_arguments if any.
13087         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
13088         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
13089         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
13090         (get_ref_die_offset, parameter_ref_descriptor): New functions.
13091         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
13092         (gen_subprogram_die): Handle parameters identified by
13093         DEBUG_PARAMETER_REF.
13094
13095 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
13096
13097         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
13098         * doc/install.texi (Configuration): Document --with-tls.
13099         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
13100         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
13101         (arm_tls_descseq_addr): New.
13102         (legitimize_tls_address): Add tlsdesc support.
13103         (arm_cannot_copy_insn_p): Check for tlscall.
13104         (arm_emit_tls_decoration): Likewise.
13105         * config/arm/arm.h (TARGET_GNU2_TLS): New.
13106         (OPTION_DEFAULT_SPECS): Add with-tls support.
13107         * config/arm/arm.md (R1_REGNUM): Define.
13108         (tlscall): New.
13109         * config/arm/arm.opt (tls_type): New enumeration type and values.
13110         (mtls-dialect): New switch.
13111         * config/arm/arm-opts.h (enum tls_type): New.
13112
13113 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
13114
13115         * attribs.c (register_attribute): Added assert to check that all
13116         attribute specs are registered with a name that is not empty and
13117         does not start with '_'.
13118         (decl_attributes): Avoid the lookup of the "naked" attribute spec
13119         if the function has no attributes.
13120         * tree.c (is_attribute_with_length_p): Removed.
13121         (is_attribute_p): Removed.
13122         (private_is_attribute_p): New.
13123         (private_lookup_attribute): New.
13124         (lookup_attribute): Removed.
13125         (lookup_ident_attribute): New.
13126         (remove_attribute): Require the first argument to be in the form
13127         'text', not '__text__'.  Updated asserts.
13128         (merge_attributes): Use lookup_ident_attributes instead of
13129         lookup_attribute.
13130         (merge_dllimport_decl_attributes): Use remove_attribute.
13131         (attribute_list_contained): Likewise.
13132         (attribute_list_equal): Immediately return 1 if the arguments are
13133         identical pointers.
13134         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
13135         'int'.  Require the first argument to be in the form 'text', not
13136         '__text__'.  Require the second argument to be an identifier.
13137         (lookup_attribute): Made inline.  Require the first argument to be
13138         in the form 'text', not '__text__'.
13139         (private_is_attribute_p, private_lookup_attribute): New.
13140         Updated comments.
13141
13142 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
13143
13144         * builtins.c: Add sync_ or SYNC__ to builtin names.
13145         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
13146         * omp-low.c: Add sync_ or SYNC__ to builtin names.
13147
13148 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
13149
13150         PR target/33049
13151         * config/avr/avr.md (extzv): New expander.
13152         (*extzv): New insn.
13153         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
13154         * config/avr/constraints.md (C04): New constraint.
13155         * doc/md.texi (Machine Constraints): Document it.
13156
13157 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
13158
13159         PR middle-end/49489
13160         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
13161         unsignedp argument instead of 1 for clrsb_optab.
13162         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
13163         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
13164         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
13165         * optabs.c (widen_leading): Call widen_operand and expand_unop
13166         with 0 as unsignedp argument instead of 1 for clrsb_optab.
13167         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
13168
13169 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
13170
13171         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
13172
13173 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
13174
13175         * gensupport.c (add_define_attr): New static function.
13176         (is_predicable): Allow multi-alternative lists for the "predicable"
13177         attribute.
13178         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
13179         (process_one_cond_exec): Call alter_attrs_for_insn.
13180         * doc/md.texi (Defining Attributes): Mention some standard names.
13181         (Conditional Execution): Update documentation for "predicable".
13182
13183         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
13184         __builtin_clrsbll): Document.
13185         * doc/rtl.texi (clrsb): New entry.
13186         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
13187         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
13188         (expand_unop): Handle clrsb_optab.
13189         (init_optabs): Initialize it.
13190         * optabs.h (enum optab_index): New entry OTI_clrsb.
13191         (clrsb_optab): Define.
13192         * genopinit.c (optabs): Add an entry for it.
13193         * builtins.c (expand_builtin): Handle clrsb builtin functions.
13194         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
13195         BUILT_IN_CLRSBLL): New.
13196         * rtl.def (CLRSB): New code.
13197         * dwarf2out.c (mem_loc_descriptor): Handle it.
13198         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13199         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
13200         and popcount.
13201         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
13202         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
13203         (__ctzDI2): Move declaration.
13204         * config/bfin/bfin.md (clrsbsi2): New expander.
13205         (signbitssi2): Use the CLRSB rtx.
13206         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
13207         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
13208
13209 2011-06-21  Richard Guenther  <rguenther@suse.de>
13210
13211         * ipa-inline-transform.c (inline_transform): Fix previous change.
13212
13213 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
13214
13215         PR tree-optimization/49478
13216         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
13217         with constant operand.
13218
13219 2011-06-21  Richard Guenther  <rguenther@suse.de>
13220
13221         * ipa-inline-transform.c (inline_transform): Fix typo.
13222
13223 2011-06-21  Richard Guenther  <rguenther@suse.de>
13224
13225         PR tree-optimization/49483
13226         * tree-vect-stmts.c (vectorizable_assignment): Also handle
13227         VIEW_CONVERT_EXPR conversions.
13228
13229 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
13230
13231         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
13232         * config/avr/avr-tables.opt: New file (generated).
13233         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
13234         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
13235         avr-mcus.def.
13236         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
13237         (avr_option_override): Don't process -mmcu= argument here.  Set
13238         avr_current_device using avr_mcu_index.
13239         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
13240         * config/avr/avr.opt (mmcu=): Use Enum.
13241         * config/avr/t-avr (avr-devices.o): Update dependencies.
13242         ($(srcdir)/config/avr/avr-tables.opt): New.
13243         * target.def (help): Remove.
13244         * doc/tm.texi.in (TARGET_HELP): Remove.
13245         * doc/tm.texi: Regenerate.
13246         * opts.c: Don't include target.h.
13247         (common_handle_option): Don't call targetm.help.
13248         * system.h (TARGET_HELP): Poison.
13249         * Makefile.in (opts.o): Update dependencies.
13250
13251 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13252
13253         * config/usegld.h: New file.
13254         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
13255         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
13256         (LIB_SPEC): Likewise.  Search /lib.
13257         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
13258         (RDYNAMIC_SPEC): Handle GNU ld.
13259         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
13260         Define.
13261         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
13262         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
13263         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
13264         (STACK_CHECK_STATIC_BUILTIN): Define.
13265         * config/sol2.opt (compat-bsd): Remove.
13266         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
13267         * config/sol2-bi.h: New file.
13268         * config/sol2-gld.h: Remove.
13269         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
13270         (NO_DBX_BNSYM_ENSYM): Remove.
13271         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
13272         (STACK_CHECK_STATIC_BUILTIN): Remove.
13273         Test USE_GLD instead of TARGET_GNU_LD.
13274         * config/i386/sol2-10.h: Rename to ...
13275         * config/i386/sol2-bi.h .. this.
13276         (SUBTARGET_EXTRA_SPECS): Redefine.
13277         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
13278         (MULTILIB_DEFAULTS): Remove.
13279         (DEFAULT_ARCH32_P): Define.
13280         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
13281         (ARCH64_SUBDIR): Define.
13282         Test USE_GLD instead of TARGET_GNU_LD.
13283         (I386_EMULATION): Rename to ...
13284         (ARCH32_EMULATION): ... this.
13285         (X86_64_EMULATION): Rename to ...
13286         (ARCH64_EMULATION): ... this.
13287         (TARGET_LD_EMULATION): Remove.
13288         (LINK_ARCH_SPEC): Remove.
13289         * config/i386/sol2-gas.h: Remove.
13290         * config/i386/t-sol2-10: Rename to ...
13291         * config/i386/t-sol2-64: ... this.
13292         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
13293         (AS_SPARC64_FLAG): Define.
13294         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
13295         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
13296         depending on TARGET_CPU_DEFAULT.
13297         (CPP_CPU_SPEC): Redefine.
13298         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
13299         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
13300         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
13301         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
13302         ASM_ARCH_DEFAULT_SPEC): Redefine.
13303         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13304         LINK_ARCH_DEFAULT_SPEC.
13305         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
13306         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
13307         (ARCH64_SUBDIR): Define.
13308         (LINK_ARCH64_SPEC): Redefine.
13309         (CC1_SPEC): Redefine.
13310         (OPTION_DEFAULT_SPECS): Redefine.
13311         (MULTILIB_DEFAULTS): Define.
13312         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
13313         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
13314         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
13315         (NO_DBX_BNSYM_ENSYM): Remove.
13316         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
13317         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
13318         (TARGET_ASM_NAMED_SECTION): Likewise.
13319         (STACK_CHECK_STATIC_BUILTIN): Remove.
13320         * config/sparc/sol2-bi.h: Remove.
13321         * config/sparc/sol2-gas-bi.h: Remove.
13322         * config/sparc/sol2-gas.h: Remove.
13323         * config/sparc/sol2-gld-bi.h: Remove.
13324         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
13325         common parts ...
13326         (*-*-solaris2*): ... here.
13327
13328 2011-06-21  Christian Bruel  <christian.bruel@st.com>
13329
13330         PR other/43564
13331         * ipa-inline.c (can_inline_edge_p): Check
13332         !DECL_DISREGARD_INLINE_LIMITS.
13333
13334 2011-06-21  Christian Bruel  <christian.bruel@st.com>
13335
13336         PR middle-end/49139
13337         * cgraphunit.c (process_function_and_variable_attributes): warn when
13338         always_inline functions that are not inline.
13339         * ipa-inline-transform.c (inline_transform): Always call
13340         optimize_inline.
13341         * tree-inline.c (tree_inlinable_function_p): Use error instead
13342         of sorry.
13343         (expand_call_inline): Likewise.
13344
13345 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
13346
13347         * Makefile.in (dg_target_exps): Set.
13348         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
13349         instead of 7, try to divide it more evenly.
13350
13351 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
13352
13353         PR target/49089
13354         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
13355         (avx256_split_unaligned_store): New definition.
13356         (ix86_option_override_internal): Enable avx256 unaligned load/store
13357         splitting only when avx256_split_unaligned_load/store is set.
13358
13359 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
13360
13361         * regrename.c (scan_rtx_reg): Handle the case where we write to an
13362         open chain in a smaller mode without failing the entire block.
13363
13364 2011-06-21  Alan Modra  <amodra@gmail.com>
13365
13366         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
13367         CONST high part large-toc address.
13368         (rs6000_tls_referenced_p): Make static.
13369         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
13370
13371 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13372
13373         PR target/49385
13374         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
13375         one of the operands is a register.
13376
13377 2011-06-20  Kai Tietz  <ktietz@redhat.com>
13378
13379         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
13380         operations in combination with binary and.
13381
13382 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
13383
13384         * regrename.c (do_replace): Don't update notes.
13385
13386 2011-06-20  Alan Modra  <amodra@gmail.com>
13387
13388         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
13389         of toc-relative address in CONST.
13390         (rs6000_delegitimize_address): Recognize changed address.
13391         (rs6000_legitimize_reload_address): Likewise.
13392         (rs6000_emit_move): Don't force these constants to memory.
13393         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
13394         toc-relative address in CONST.
13395         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
13396         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
13397
13398 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13399
13400         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
13401         (count_trailing_zeros): Likewise.
13402
13403 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13404
13405         PR other/49325
13406         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
13407         .init_array can be used with .ctors on targets.
13408         * configure: Regenerated.
13409
13410 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
13411
13412         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
13413         if the element type is volatile.
13414
13415 2011-06-18  Jan Hubicka  <jh@suse.cz>
13416
13417         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
13418         extra name aliases.
13419         (lto_symtab_resolve_can_prevail_p): Likewise.
13420         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
13421         * cgraphbuild.c (record_reference): Remove extra body alias code.
13422         (mark_load): Likewise.
13423         (mark_store): Likewise.
13424         * cgraph.h (varpool_node): Remove extra_name filed;
13425         add alias_of and extraname_alias.
13426         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
13427         (varpool_alias_aliased_node): New inline function.
13428         (varpool_variable_node): New function.
13429         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
13430         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
13431         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
13432         (input_varpool_node): Likewise.
13433         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
13434         (varpool_externally_visible_p): Remove extra body alias code.
13435         (function_and_variable_visibility): Likewise.
13436         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
13437         (ipa_pta_execute): Use it.
13438         * varpool.c (varpool_remove_node): Remove extra name alias code.
13439         (varpool_mark_needed_node): Likewise.
13440         (varpool_analyze_pending_decls): Analyze aliases.
13441         (assemble_aliases): New functoin.
13442         (varpool_assemble_decl): Use it.
13443         (varpool_create_variable_alias): New function.
13444         (varpool_extra_name_alias): Rewrite.
13445         (varpool_for_node_and_aliases): New function.
13446
13447 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
13448
13449         PR target/49411
13450         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
13451         last_arg_constant and last argument doesn't match its predicate,
13452         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
13453         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
13454         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
13455         spelling of error message.
13456         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
13457         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
13458         const_0_to_255_operand instead of const_int_operand.
13459
13460         Revert:
13461         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
13462
13463         * config/i386/sse.md (blendbits): Remove mode attribute.
13464         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
13465         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
13466         Check integer value of operand 3 in insn constraint.
13467
13468 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
13469
13470         PR rtl-optimization/48542
13471         * reload.c (find_equiv_reg): Stop looking when finding a
13472         setjmp-type call.
13473         * reload1.c (reload_as_needed): Invalidate all reload
13474         registers when crossing a setjmp-type call.
13475
13476 2011-06-16  Jeff Law  <law@redhat.com>
13477
13478         * tree-ssa-threadupdate.c (struct redirection_data): New field
13479         intermediate_edge.
13480         (THREAD_TARGET2): Define.
13481         (redirection_data_eq): Also check that the intermediate edge is equal.
13482         (lookup_redirection_data): Drop useless argument.  Extract the
13483         outgoing_edge and intermediate edge from E.  Callers updated.
13484         (copy_phi_args, update_destination_phis): New functions.
13485         (fix_duplicate_block_edges): Likewise.
13486         (create_edge_and_update_destination_phis): Duplicate all the edges
13487         hung off e->aux.  Use copy_phi_args.
13488         (create_duplicates): Use fix_duplicate_block_edges.
13489         (fixup_template_block): Likewise.
13490         (redirect_edges): If necessary, redirect the joiner block's incoming
13491         edge to the duplicate of the joiner block.
13492         (thread_block): Don't muck up loops when threading through a joiner
13493         block.
13494         (thread_through_loop_header): Handle threading through a joiner block.
13495         (mark_threaded_blocks, register_jump_thread): Likewise.
13496         * tree-flow.h (register_jump_thread): Add new argument.  Callers
13497         updated.
13498         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
13499         (thread_across_edge): Handle threading through a joiner block.
13500
13501 2011-06-16  Martin Jambor  <mjambor@suse.cz>
13502
13503         PR tree-optimization/49343
13504         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
13505         calculate offset, provide 2nd operand for the new COMPONENT_REF.
13506
13507 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
13508
13509         * config/darwin-protos.h (machopic_select_rtx_section): Move to
13510         inside RTX_CODE ifdef.
13511
13512 2011-06-16  Tom de Vries  <tom@codesourcery.com>
13513
13514         PR target/45098
13515         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
13516         Disallow NULL pointer for pointer arithmetic.
13517
13518 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13519
13520         PR target/49398
13521         Revert.
13522         2011-06-10  Wei Guozhi  <carrot@google.com>
13523
13524         PR target/45335
13525         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
13526         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
13527         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
13528         related peephole2.
13529         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
13530         related peephole2.
13531         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
13532         (arm_legitimate_ldrd_p): New prototype.
13533         (arm_output_ldrd): New prototype.
13534         * config/arm/arm.c (arm_check_ldrd_operands): New function.
13535         (arm_legitimate_ldrd_p): New function.
13536         (arm_output_ldrd): New function.
13537
13538 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
13539
13540         PR middle-end/46500
13541         * doc/tm.texi.in: Update Copyright date.
13542         * doc/tm.texi: Regenerate.
13543         * targhooks.c (default_setup_incoming_varargs): Replace
13544         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13545         (default_pretend_outgoing_varargs_named): Likewise.
13546         (hook_pass_by_reference_must_pass_in_stack): Likewise.
13547         (hook_callee_copies_named): Likewise.
13548         (default_function_arg_advance): Likewise.
13549         (default_function_arg): Likewise.
13550         (default_function_incoming_arg): Likewise.
13551         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13552         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13553         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13554         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13555         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13556         * targhooks.h (default_setup_incoming_varargs): Likewise.
13557         (default_pretend_outgoing_varargs_named): Likewise.
13558         (hook_pass_by_reference_must_pass_in_stack): Likewise.
13559         (hook_callee_copies_named): Likewise.
13560         (default_function_arg_advance): Likewise.
13561         (default_function_arg): Likewise.
13562         (default_function_incoming_arg): Likewise.
13563         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
13564         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
13565         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
13566         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13567         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
13568         * target.def (pass_by_reference): Likewise.
13569         (setup_incoming_varargs, strict_argument_naming): Likewise.
13570         (pretend_outgoing_varargs_named, callee_copies): Likewise.
13571         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
13572         (function_incoming_arg): Likewise.
13573         * target.h: Don't include "tm.h" .
13574         (cumulative_args_t): New typedef.
13575         [GCC_TM_H] (get_cumulative_args): New static inline function.
13576         [GCC_TM_H] (pack_cumulative_args): Likewise.
13577         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
13578         argument type with cumulative_args_t.
13579         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
13580         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
13581         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
13582         (frv_arg_partial_bytes, frv_function_arg): Likewise.
13583         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
13584         (frv_function_arg_1): Likewise.
13585         * config/s390/s390.c (s390_pass_by_reference): Likewise.
13586         (s390_function_arg_advance, s390_function_arg): Likewise.
13587         * config/m32c/m32c.c (m32c_function_arg): Likewise.
13588         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
13589         (m32c_strict_argument_naming): Likewise.
13590         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
13591         (spu_function_arg_advance): Likewise.
13592         (spu_setup_incoming_varargs): Likewise.  Make static.
13593         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
13594         Remove prototype.
13595         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
13596         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13597         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
13598         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
13599         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
13600         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
13601         (mep_pass_by_reference, mep_function_arg): Likewise.
13602         (mep_function_arg_advance): Likewise.
13603         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
13604         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
13605         (m32r_function_arg, m32r_function_arg_advance): Likewise.
13606         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
13607         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
13608         (ix86_function_arg, ix86_pass_by_reference): Likewise.
13609         (ix86_setup_incoming_varargs): Likewise.
13610         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
13611         (sh_strict_argument_naming): Likewise.
13612         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
13613         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
13614         (sh_function_arg_advance, sh_function_arg): Likewise.
13615         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
13616         (pdp11_function_arg_advance): Likewise.
13617         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
13618         Likewise.
13619         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
13620         * config/avr/avr.c (avr_function_arg): Likewise.
13621         (avr_function_arg_advance): Likewise.
13622         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
13623         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
13624         (xtensa_function_arg_1): Likewise.
13625         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
13626         Likewise.
13627         (xstormy16_function_arg): Likewise.
13628         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
13629         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
13630         (fr30_function_arg_advance): Likewise.
13631         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
13632         (lm32_function_arg, lm32_function_arg_advance): Likewise.
13633         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
13634         (moxie_function_arg, moxie_function_arg_advance): Likewise.
13635         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
13636         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
13637         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
13638         (cris_function_arg, cris_function_incoming_arg): Likewise.
13639         (cris_function_arg_advance, cris_function_arg_1): Likewise.
13640         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
13641         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
13642         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
13643         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
13644         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
13645         (mn10300_arg_partial_bytes): Likewise.
13646         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
13647         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
13648         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
13649         (ia64_function_arg_1): Likewise.
13650         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
13651         (m68k_function_arg): Likewise.
13652         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
13653         (rs6000_function_arg, setup_incoming_varargs): Likewise.
13654         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
13655         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
13656         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
13657         (picochip_arg_advance): Likewise.
13658         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
13659         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
13660         (mcore_function_arg_advance): Likewise.
13661         * config/score/score.c (score_pass_by_reference): Likewise.
13662         (score_function_arg_advance): Likewise.
13663         (score_arg_partial_bytes): Likewise.  Make static.
13664         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
13665         * config/arm/arm.c (arm_arg_partial_bytes): Replace
13666         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13667         (arm_function_arg, arm_function_arg_advance): Likewise.
13668         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
13669         * config/pa/pa.c (pa_pass_by_reference): Likewise.
13670         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
13671         (pa_function_arg): Likewise.
13672         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
13673         (mips_function_arg, mips_function_arg_advance): Likewise.
13674         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
13675         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
13676         * config/vax/vax.c (vax_function_arg): Likewise.
13677         (vax_function_arg_advance): Likewise.
13678         * config/h8300/h8300.c (h8300_function_arg): Likewise.
13679         (h8300_function_arg_advance): Likewise.
13680         * config/v850/v850.c (v850_pass_by_reference): Likewise.
13681         (v850_strict_argument_naming, v850_function_arg): Likewise.
13682         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
13683         (v850_setup_incoming_varargs): Likewise.
13684         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
13685         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
13686         (mmix_function_arg, mmix_pass_by_reference): Likewise.
13687         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
13688         with const void *.
13689         * config/bfin/bfin.c (setup_incoming_varargs): Replace
13690         CUMULATIVE_ARGS* argument type with cumulative_args_t.
13691         (bfin_function_arg_advance, bfin_function_arg): Likewise.
13692         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
13693         * calls.c (emit_call_1): Change type of args_so_far to
13694         cumulative_args_t.  Changed all callers.
13695         (initialize_argument_information): Likewise.
13696         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
13697         * dse.c (get_call_args): Likewise.
13698         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13699         * function.c (pass_by_reference, reference_callee_copied): Likewise.
13700         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
13701         New member args_so_far_v.  Changed all users.
13702         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
13703         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
13704         * config/mips/mips.c (mips_output_args_xfer): Likewise.
13705         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13706         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13707         * config/microblaze/microblaze.c (microblaze_expand_prologue):
13708         Likewise.
13709         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
13710         m32r_pass_by_reference.
13711
13712 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
13713
13714         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
13715         argument to be a VEC of statements.
13716         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
13717         assert that pattern statements have to have their vector type set.
13718         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
13719         Change the first argument to be a VEC of statements.  Update
13720         documentation.
13721         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
13722         (vect_handle_widen_mult_by_const): New function.
13723         (vect_recog_widen_mult_pattern):  Change the first argument to be a
13724         VEC of statements.  Update documentation.  Check that the constant is
13725         INTEGER_CST.  Support multiplication by a constant that fits an
13726         intermediate type - call vect_handle_widen_mult_by_const.
13727         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
13728         call.  Handle additional pattern statements if necessary.
13729
13730 2011-06-16  Nick Clifton  <nickc@redhat.com>
13731
13732         PR target/49427
13733         * config.gcc: Set cpu_type to v850 for any V850 architecture.
13734         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
13735         md_file, extra_modes, out_file and extra_options are these are all
13736         deduced from cpu_type.
13737
13738 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
13739
13740         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
13741         truncation mask to 63.
13742
13743 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
13744
13745         PR target/49313
13746         PR target/29524
13747         * longlong.h: Add AVR support:
13748         (count_leading_zeros): New macro.
13749         (count_trailing_zeros): New macro.
13750         (COUNT_LEADING_ZEROS_0): New macro.
13751         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
13752         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
13753         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
13754         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
13755         (LIB2FUNCS_EXCLUDE): Add _clz.
13756         * config/avr/libgcc.S (XCALL): Move up in file.
13757         (XJMP): New C Macro.
13758         (DEFUN): New asm macro.
13759         (ENDF): New asm macro.
13760         (__ffssi2): New function.
13761         (__ffshi2): New function.
13762         (__loop_ffsqi2): New function.
13763         (__ctzsi2): New function.
13764         (__ctzhi2): New function.
13765         (__clzdi2): New function.
13766         (__clzsi2): New function.
13767         (__clzhi2): New function.
13768         (__paritydi2): New function.
13769         (__paritysi2): New function.
13770         (__parityhi2): New function.
13771         (__parityqi2): New function.
13772         (__popcounthi2): New function.
13773         (__popcountsi2): New function.
13774         (__popcountdi2): New function.
13775         (__popcountqi2): New function.
13776         (__bswapsi2): New function.
13777         (__bswapdi2): New function.
13778         (__ashldi3): New function.
13779         (__ashrdi3): New function.
13780         (__lshrdi3): New function.
13781         Fix suspicous lines.
13782
13783 2011-06-16  Richard Guenther  <rguenther@suse.de>
13784
13785         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
13786         the same as x != 0.
13787         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
13788         to (bool) X & 1.
13789         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
13790         equality compares against zero for the lower bit.
13791
13792 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
13793
13794         PR tree-optimization/49419
13795         * tree-vrp.c (execute_vrp): Call init_range_assertions
13796         before estimate_numbers_of_iterations, call
13797         free_number_of_iterations_estimates before calling
13798         remove_range_assertions.
13799
13800 2011-06-16  Revital Eres  <revital.eres@linaro.org>
13801
13802         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
13803         (struct partial_schedule): Add rows_length field.
13804         (verify_partial_schedule): Check rows_length.
13805         (ps_insert_empty_row): Handle rows_length.
13806         (create_partial_schedule): Likewise.
13807         (free_partial_schedule): Likewise.
13808         (reset_partial_schedule): Likewise.
13809         (create_ps_insn): Remove rest_count argument.
13810         (remove_node_from_ps): Update rows_length.
13811         (add_node_to_ps): Update rows_length and call create_ps_insn
13812         without passing row_rest_count.
13813         (rotate_partial_schedule): Update rows_length.
13814
13815 2011-06-16  Revital Eres  <revital.eres@linaro.org>
13816
13817         * ddg.c (add_intra_loop_mem_dep): New function.
13818         (build_intra_loop_deps): Call it.
13819
13820 2011-06-13  Jeff Law  <law@redhat.com>
13821
13822         * df-problems.c (df_lr_local_compute): Manually CSE
13823         PIC_OFFSET_TABLE_REGNUM.
13824         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
13825         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
13826
13827 2011-06-13  Jan Hubicka  <jh@suse.cz>
13828
13829         * cgraphunit.c (handle_alias_pairs): New function.
13830         (cgraph_finalize_compilation_unit): Use it.
13831         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
13832         as externally visible.
13833
13834 2011-06-15  Richard Guenther  <rguenther@suse.de>
13835
13836         * expr.c (expand_expr_real_2): Reduce all integral types to
13837         bitfield precision.
13838         (expand_expr_real_1): Likewise.
13839
13840 2011-06-15  Martin Jambor  <mjambor@suse.cz>
13841
13842         PR tree-optimization/48613
13843         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
13844         ipa_node_params_vector is NULL.
13845
13846 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
13847
13848         PR debug/49382
13849         * dwarf2out.c (dw_loc_list_node): Add force field.
13850         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
13851         location in the list, even if it is modified before first real insn.
13852         (output_loc_list): Emit empty ranges with force flag set.
13853         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
13854
13855 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
13856
13857         PR target/49349
13858         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
13859         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
13860         above a fence.  Update comments.
13861         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
13862         placed just above it.  Do not allow NULL place_to_insert.
13863
13864 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
13865
13866         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
13867         (slpeel_tree_peel_loop_to_edge): Don't call
13868         remove_dead_stmts_from_loop.
13869         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
13870         remove irrelevant pattern statements.  For irrelevant statements
13871         check if it is the last statement of a detected pattern, use
13872         corresponding pattern statement instead.
13873         (destroy_loop_vec_info): No need to remove pattern statements,
13874         only free stmt_vec_info.
13875         (vect_transform_loop): For irrelevant statements check if it is
13876         the last statement of a detected pattern, use corresponding
13877         pattern statement instead.
13878         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
13879         pattern statements.  Set basic block for the new statement.
13880         (vect_pattern_recog): Update documentation.
13881         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
13882         operands of pattern statements.
13883         (vectorizable_call): Fix printing.  In case of a pattern statement
13884         use the lhs of the original statement when creating a dummy
13885         statement to replace the original call.
13886         (vect_analyze_stmt): For irrelevant statements check if it is
13887         the last statement of a detected pattern, use corresponding
13888         pattern statement instead.
13889         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
13890         statements use gsi of the original statement.
13891
13892 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
13893
13894         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
13895         common/common-target-def.h.
13896         * target.def (default_target_flags, handle_option,
13897         supports_split_stack, optimization_table, init_struct,
13898         except_unwind_info, unwind_tables_default, have_named_sections):
13899         Move to common/common-target.def.
13900         * target.h (enum opt_levels, struct default_options): Move to
13901         common/common-target.h.
13902         * targhooks.c (default_except_unwind_info,
13903         dwarf2_except_unwind_info, sjlj_except_unwind_info,
13904         default_target_handle_option, empty_optimization_table): Move to
13905         common/common-targhooks.c.
13906         * targhooks.h (default_except_unwind_info,
13907         dwarf2_except_unwind_info, sjlj_except_unwind_info,
13908         default_target_handle_option, empty_optimization_table): Move to
13909         common/common-targhooks.h.
13910         * common/common-target-def.h: Include common/common-targhooks.h.
13911         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
13912         defined.
13913         * common/common-target.def (handle_option, option_init_struct,
13914         option_optimization_table, default_target_flags,
13915         except_unwind_info, supports_split_stack, unwind_tables_default,
13916         have_named_sections): Move from target.def.
13917         (HOOK_PREFIX): Undefine at end of file.
13918         * common/common-target.h: Include input.h.
13919         (enum opt_levels, struct default_options): Move from target.h.
13920         * common/common-targhooks.c, common/common-targhooks.h: New.
13921         * config.gcc (target_has_targetm_common): Default to yes.
13922         (moxie*): Set target_has_targetm_common=no.
13923         (hppa*-*-*): Don't set target_has_targetm_common=yes.
13924         * doc/tm.texi: Regenerate.
13925         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
13926         (C_TARGET_DEF_H): Add common/common-targhooks.h.
13927         (GCC_OBJS): Remove vec.o.
13928         (OBJS): Remove hooks.o and vec.o.
13929         (OBJS-libcommon-target): Add vec.o, hooks.o and
13930         common/common-targhooks.o.
13931         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
13932         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
13933         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
13934         cfglayout.o, $(out_object_file), $(common_out_object_file)):
13935         Update dependencies.
13936         (common/common-targhooks.o): New.
13937         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
13938         * common/config/pa/pa-common.c: Include more headers.  Take
13939         copyright dates from pa.c.
13940         (pa_option_optimization_table, pa_handle_option,
13941         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
13942         TARGET_HANDLE_OPTION): Move from pa.c.
13943         * common/config/alpha/alpha-common.c,
13944         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
13945         common/config/bfin/bfin-common.c,
13946         common/config/cris/cris-common.c,
13947         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
13948         common/config/h8300/h8300-common.c,
13949         common/config/i386/i386-common.c,
13950         common/config/ia64/ia64-common.c,
13951         common/config/iq2000/iq2000-common.c,
13952         common/config/lm32/lm32-common.c,
13953         common/config/m32c/m32c-common.c,
13954         common/config/m32r/m32r-common.c,
13955         common/config/m68k/m68k-common.c,
13956         common/config/mcore/mcore-common.c,
13957         common/config/mep/mep-common.c,
13958         common/config/microblaze/microblaze-common.c,
13959         common/config/mips/mips-common.c,
13960         common/config/mmix/mmix-common.c,
13961         common/config/mn10300/mn10300-common.c,
13962         common/config/pdp11/pdp11-common.c,
13963         common/config/picochip/picochip-common.c,
13964         common/config/rs6000/rs6000-common.c,
13965         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
13966         common/config/score/score-common.c, common/config/sh/sh-common.c,
13967         common/config/sparc/sparc-common.c,
13968         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
13969         common/config/vax/vax-common.c,
13970         common/config/xstormy16/xstormy16-common.c,
13971         common/config/xtensa/xtensa-common.c: New.
13972         * config/alpha/alpha.c: Include common/common-target.h.
13973         (alpha_option_optimization_table, alpha_handle_option,
13974         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13975         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
13976         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
13977         * config/arm/arm.c (arm_option_optimization_table,
13978         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
13979         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
13980         arm-common.c.
13981         * config/avr/avr.c (avr_option_optimization_table,
13982         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
13983         to avr-common.c.
13984         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
13985         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
13986         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
13987         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
13988         * config/cris/cris.c (cris_option_optimization_table,
13989         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
13990         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
13991         cris-common.c.
13992         * config/fr30/fr30.c (fr30_option_optimization_table,
13993         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
13994         to fr30-common.c.
13995         * config/frv/frv.c (frv_option_optimization_table,
13996         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
13997         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
13998         * config/h8300/h8300.c (h8300_option_optimization_table,
13999         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14000         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
14001         * config/i386/i386-protos.h (ix86_handle_option): Declare.
14002         * config/i386/i386.c: Include common/common-target.h.
14003         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
14004         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
14005         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
14006         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
14007         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
14008         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
14009         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
14010         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
14011         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
14012         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
14013         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
14014         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
14015         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
14016         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
14017         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
14018         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
14019         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
14020         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
14021         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
14022         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
14023         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
14024         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
14025         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
14026         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
14027         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
14028         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
14029         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
14030         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
14031         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
14032         ix86_option_optimization_table, ix86_option_init_struct,
14033         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
14034         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14035         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
14036         i386-common.c.
14037         * config/i386/t-i386 (i386.o): Update dependencies.
14038         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
14039         * config/ia64/ia64.c (ia64_option_optimization_table,
14040         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
14041         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14042         ia64_handle_option): Move to ia64-common.c.
14043         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
14044         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
14045         * config/lm32/lm32.c (lm32_option_optimization_table,
14046         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
14047         to lm32-common.c.
14048         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
14049         m32c-common.c.
14050         * config/m32r/m32r.c (m32r_option_optimization_table,
14051         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14052         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
14053         m32r_handle_option): Move to m32r-common.c.
14054         (m32r_memory_move_cost): Remove comment referring to
14055         TARGET_HANDLE_OPTION.
14056         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
14057         Move to m68k-common.c.
14058         * config/mcore/mcore.c (mcore_option_optimization_table,
14059         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14060         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
14061         * config/mep/mep.c (mep_option_optimization_table,
14062         mep_handle_option, TARGET_HANDLE_OPTION,
14063         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
14064         Move to mep-common.c.
14065         * config/microblaze/microblaze.c
14066         (microblaze_option_optimization_table,
14067         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
14068         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
14069         * config/mips/mips.c (mips_handle_option,
14070         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
14071         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
14072         mips-common.c.
14073         * config/mmix/mmix.c (mmix_option_optimization_table,
14074         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
14075         Move to mmix-common.c.
14076         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
14077         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
14078         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14079         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
14080         * config/pa/pa.c: Include common/common-target.h.
14081         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
14082         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14083         pa_handle_option): Move to pa-common.c.
14084         (pa_option_override): Use targetm_common.except_unwind_info.
14085         (pa_asm_output_mi_thunk, pa_function_section): Use
14086         targetm_common.have_named_sections.
14087         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
14088         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14089         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
14090         pdp11_handle_option, pdp11_option_init_struct): Move to
14091         pdp11-common.c.
14092         * config/picochip/picochip.c (picochip_option_optimization_table,
14093         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
14094         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
14095         * config/rs6000/rs6000.c: Include common/common-target.h.
14096         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
14097         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
14098         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
14099         rs6000_handle_option): Move to rs6000-common.c.
14100         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14101         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
14102         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14103         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
14104         * config/s390/s390.c (processor_flags_table,
14105         s390_option_optimization_table, s390_option_init_struct,
14106         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
14107         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
14108         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
14109         * config/s390/s390.h (processor_flags_table): Declare.
14110         * config/score/score.c (score_option_optimization_table,
14111         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14112         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
14113         score_handle_option): Move to score-common.c.
14114         * config/sh/sh.c (sh_option_optimization_table,
14115         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
14116         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
14117         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
14118         * config/sparc/sparc.c: Include common/common-target.h.
14119         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
14120         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
14121         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
14122         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
14123         spu_option_init_struct): Move to spu-common.c.
14124         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
14125         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
14126         * config/v850/v850.c (small_memory_physical_max,
14127         v850_handle_memory_optionn v850_handle_option,
14128         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
14129         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
14130         v850-common.c.
14131         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
14132         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
14133         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
14134         Move to xtensa-common.c.
14135         * cfglayout.c: Include common/common-target.h.
14136         (fixup_reorder_chain): Use targetm_common.have_named_sections.
14137         * cfgrtl.c: Include common/common-target.h.
14138         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
14139         targetm_common.have_named_sections.
14140         * dbxout.c: Include common/common-target.h.
14141         (dbxout_function_end): Use targetm_common.have_named_sections.
14142         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
14143         targetm_common.except_unwind_info.
14144         * dwarf2out.c: Include common/common-target.h.
14145         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
14146         dwarf2out_begin_prologue, dwarf2out_frame_init,
14147         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
14148         targetm_common.except_unwind_info.
14149         * except.c: Include common/common-target.h.
14150         (init_eh, finish_eh_generation,
14151         output_one_function_exception_table): Use
14152         targetm_common.except_unwind_info.
14153         (switch_to_exception_section): Use targetm_common.have_named_sections.
14154         * explow.c: Include common/common-target.h.
14155         * expr.c: Include common/common-target.h.
14156         (build_personality_function): Use targetm_common.except_unwind_info.
14157         * function.c: Include common/common-target.h.
14158         (expand_function_end): Use targetm_common.except_unwind_info.
14159         * haifa-sched.c: Include common/common-target.h.
14160         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
14161         * lto-opts.c: Include common/common-target.h instead of target.h.
14162         (lto_reissue_options): Use targetm_common.handle_option.
14163         * opts.c: Include common/common-target.h.
14164         (target_handle_option): Use targetm_common.handle_option.
14165         (init_options_struct): Update comment referring to
14166         targetm.target_option.optimization.  Use
14167         targetm_common.default_target_flags,
14168         targetm_common.unwind_tables_default and
14169         targetm_common.option_init_struct.
14170         (default_options_optimization): Use
14171         targetm_common.option_optimization_table.
14172         (finish_options): Use targetm_common.except_unwind_info,
14173         targetm_common.unwind_tables_default,
14174         targetm_common.have_named_sections and
14175         targetm_common.supports_split_stack.
14176         * toplev.c: Include common/common-target.h.
14177         (process_options): Use targetm_common.have_named_sections.
14178         * tree-tailcall.c: Include common/common-target.h.
14179         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
14180         * tree.c: Include common/common-target.h.
14181         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
14182         * varasm.c: Include common/common-target.h.
14183         (resolve_unique_section, hot_function_section,
14184         default_function_section): Use targetm_common.have_named_sections.
14185
14186 2011-06-14  Easwaran Raman  <eraman@google.com>
14187
14188         PR rtl-optimization/44194
14189         * dse.c: Include tree-flow.h
14190         (insn_info): Add new field non_frame_wild_read.
14191         (group_info): Add new fields escaped_n and escaped_p.
14192         (kill_on_calls): New variable.
14193         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
14194         (dse_step0): Initialize kill_on_calls.
14195         (can_escape): New function.
14196         (set_usage_bits): Add additional parameter; record information
14197         about escaped locations.
14198         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
14199         (dse_step2_nospill): Set kill_on_calls based on
14200         group->escaped_n and group->escaped_n.
14201         (add_wild_read): Refactor into...
14202         (reset_active_stores): ... New function, and
14203         (free_read_records): ... New function.
14204         (add_non_frame_wild_read): New function.
14205         (scan_insn): Call add_non_frame_wild_read on non-const calls.
14206         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
14207         (dse_step5_nospill): Call scan_reads_nospill for instructions
14208         marked as non_frame_wild_read.
14209         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
14210
14211 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
14212
14213         * common/common-target-def.h, common/common-target.def,
14214         common/common-target.h, common/config/default-common.c,
14215         common/config/pa/pa-common.c: New files.
14216         * Makefile.in (common_out_file, common_out_object_file,
14217         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
14218         (OBJS-libcommon-target): Include $(common_out_object_file).
14219         (prefix.o): Update dependencies.
14220         ($(common_out_object_file), common/common-target-hooks-def.h,
14221         s-common-target-hooks-def-h): New.
14222         (s-tm-texi): Also check timestamp on common-target.def.
14223         (build/genhooks.o): Update dependencies.
14224         * config.gcc (common_out_file, target_has_targetm_common): Define.
14225         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
14226         TARGET_ALWAYS_STRIP_DOTDOT.
14227         * configure.ac (common_out_object_file): Define.
14228         (common_out_file, common_out_object_file): Substitute.
14229         (common): Create directory.
14230         * configure: Regenerate.
14231         * doc/tm.texi.in (targetm_common): Document.
14232         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
14233         * doc/tm.texi: Regenerate.
14234         * genhooks.c (hook_array): Also include common/common-target.def.
14235         * prefix.c (tm.h): Don't include.
14236         (common/common-target.h): Include.
14237         (ALWAYS_STRIP_DOTDOT): Don't define.
14238         (update_path): Use targetm_common.always_strip_dotdot instead of
14239         ALWAYS_STRIP_DOTDOT.
14240         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
14241
14242 2011-06-14  David Li  <davidxl@google.com>
14243
14244         * passes.c (execute_function_todo): Remove TODO_dump_func.
14245         (execute_one_pass): Remove TODO_dump_func.
14246         (execute_function_dump): New function.
14247         * tree-vrp.c: Remove TODO_dump_func.
14248         * regrename.c: Remove TODO_dump_func.
14249         * fwprop.c: Remove TODO_dump_func.
14250         * tree-into-ssa.c: Remove TODO_dump_func.
14251         * tree-complex.c: Remove TODO_dump_func.
14252         * tracer.c: Remove TODO_dump_func.
14253         * tree-loop-distribution.c: Remove TODO_dump_func.
14254         * postreload-gcse.c: Remove TODO_dump_func.
14255         * postreload.c: Remove TODO_dump_func.
14256         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
14257         * tree-tailcall.c: Remove TODO_dump_func.
14258         * ipa-cp.c: Remove TODO_dump_func.
14259         * final.c: Remove TODO_dump_func.
14260         * tree-emutls.c: Remove TODO_dump_func.
14261         * omp-low.c: Remove TODO_dump_func.
14262         * tree-ssa-dse.c: Remove TODO_dump_func.
14263         * tree-ssa-uncprop.c: Remove TODO_dump_func.
14264         * auto-inc-dec.c: Remove TODO_dump_func.
14265         * reorg.c: Remove TODO_dump_func.
14266         * tree-ssa-copyrename.c: Remove TODO_dump_func.
14267         * tree-ssa-ccp.c: Remove TODO_dump_func.
14268         * compare-elim.c: Remove TODO_dump_func.
14269         * mode-switching.c: Remove TODO_dump_func.
14270         * modulo-sched.c: Remove TODO_dump_func.
14271         * tree-call-cdce.c: Remove TODO_dump_func.
14272         * cse.c: Remove TODO_dump_func.
14273         * web.c: Remove TODO_dump_func.
14274         * tree-stdarg.c: Remove TODO_dump_func.
14275         * lto-streamer-out.c: Remove TODO_dump_func.
14276         * tree-ssa-math-opts.c: Remove TODO_dump_func.
14277         * tree-ssa-dom.c: Remove TODO_dump_func.
14278         * tree-nrv.c: Remove TODO_dump_func.
14279         * loop-init.c: Remove TODO_dump_func.
14280         * gimple-low.c: Remove TODO_dump_func.
14281         * ipa-inline.c: Remove TODO_dump_func.
14282         * tree-ssa-sink.c: Remove TODO_dump_func.
14283         * jump.c: Remove TODO_dump_func.
14284         * ifcvt.c: Remove TODO_dump_func.
14285         * tree-ssa-loop.c: Remove TODO_dump_func.
14286         * recog.c: Remove TODO_dump_func.
14287         * dse.c: Remove TODO_dump_func.
14288         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
14289         * matrix-reorg.c: Remove TODO_dump_func.
14290         * tree-eh.c: Remove TODO_dump_func.
14291         * regmove.c: Remove TODO_dump_func.
14292         * function.c: Remove TODO_dump_func.
14293         * tree-vectorizer.c: Remove TODO_dump_func.
14294         * ipa-split.c: Remove TODO_dump_func.
14295         * gcse.c: Remove TODO_dump_func.
14296         * tree-if-conv.c: Remove TODO_dump_func.
14297         * init-regs.c: Remove TODO_dump_func.
14298         * tree-ssa-phiopt.c: Remove TODO_dump_func.
14299         * implicit-zee.c: Remove TODO_dump_func.
14300         * lower-subreg.c: Remove TODO_dump_func.
14301         * bt-load.c: Remove TODO_dump_func.
14302         * tree-dfa.c: Remove TODO_dump_func.
14303         * except.c: Remove TODO_dump_func.
14304         * emit-rtl.c: Remove TODO_dump_func.
14305         * store-motion.c: Remove TODO_dump_func.
14306         * cfgexpand.c: Remove TODO_dump_func.
14307         * tree-cfgcleanup.c: Remove TODO_dump_func.
14308         * cfgcleanup.c: Remove TODO_dump_func.
14309         * tree-ssa-pre.c: Remove TODO_dump_func.
14310         * tree-sra.c: Remove TODO_dump_func.
14311         * tree-mudflap.c: Remove TODO_dump_func.
14312         * tree-ssa-copy.c: Remove TODO_dump_func.
14313         * cfglayout.c: Remove TODO_dump_func.
14314         * tree-ssa-forwprop.c: Remove TODO_dump_func.
14315         * tree-ssa-dce.c: Remove TODO_dump_func.
14316         * ira.c: Remove TODO_dump_func.
14317         * tree-ssa.c: Remove TODO_dump_func.
14318         * integrate.c: Remove TODO_dump_func.
14319         * tree-optimize.c: Remove TODO_dump_func.
14320         * tree-ssa-phiprop.c: Remove TODO_dump_func.
14321         * tree-object-size.c: Remove TODO_dump_func.
14322         * combine.c: Remove TODO_dump_func.
14323         * bb-reorder.c: Remove TODO_dump_func.
14324         * cprop.c: Remove TODO_dump_func.
14325         * var-tracking.c: Remove TODO_dump_func.
14326         * tree-profile.c: Remove TODO_dump_func.
14327         * tree-vect-generic.c: Remove TODO_dump_func.
14328         * reg-stack.c: Remove TODO_dump_func.
14329         * sched-rgn.c: Remove TODO_dump_func.
14330         * tree-ssa-structalias.c: Remove TODO_dump_func.
14331         * tree-switch-conversion.c: Remove TODO_dump_func.
14332         * tree-cfg.c: Remove TODO_dump_func.
14333         * tree-ssa-reassoc.c: Remove TODO_dump_func.
14334         * combine-stack-adj.c: Remove TODO_dump_func.
14335         * dce.c: Remove TODO_dump_func.
14336         * tree-ssanames.c: Remove TODO_dump_func.
14337         * regcprop.c: Remove TODO_dump_func.
14338
14339 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
14340
14341         PR middle-end/47364
14342         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
14343         and properly handle result not in Pmode.
14344
14345 2011-06-14  Robert Millan  <rmh@gnu.org>
14346
14347         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
14348         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
14349         `config/linux.h'.
14350
14351         * config/i386/kfreebsd-gnu64.h: New file.
14352         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
14353         with `i386/kfreebsd-gnu64.h'.
14354
14355         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
14356         (GNU_USER_LINK_EMULATION64): New macros.
14357         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
14358         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
14359         of hardcoding `elf_i386' and `elf_x86_64'.
14360
14361 2011-06-14  Nick Clifton  <nickc@redhat.com>
14362
14363         PR target/49403
14364         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
14365
14366         PR target/49402
14367         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
14368
14369 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
14370
14371         PR fortran/49103
14372         * tree.h (DECL_NONSHAREABLE): Define.
14373         (struct tree_decl_common): Change decl_common_unused to
14374         decl_nonshareable_flag.
14375         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
14376         Ignore vars with DECL_NONSHAREABLE bit set.
14377         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
14378         on stores to automatic aggregate vars.
14379
14380         PR rtl-optimization/49390
14381         Revert:
14382         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
14383
14384         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
14385         MEM_ALIAS_SET.
14386
14387 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
14388             Tom de Vries  <tom@codesourcery.com>
14389
14390         PR target/45098
14391         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
14392         Document changed semantics.
14393         (max_stmt_executions, max_stmt_executions_int): Declare.
14394         * tree-data-ref.c (estimated_loop_iterations)
14395         (estimated_loop_iterations_int): Move functions...
14396         * tree-ssa-loop-niter.c (estimated_loop_iterations)
14397         (estimated_loop_iterations_int): here.
14398         (record_estimate): Change nb_iterations_upper_bound and
14399         nb_iterations_estimate semantics.
14400         (max_stmt_executions, max_stmt_executions_int): New function.
14401         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
14402         (max_stmt_executions_tree): this.
14403         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
14404         estimated_loop_iterations_tree.
14405         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
14406         max_stmt_executions_int instead of estimated_loop_iterations_int.
14407         * predict.c (predict_loops): Idem.
14408         * tree-parloops.c (parallelize_loops): Idem.
14409         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
14410         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
14411         (init_omega_for_ddr_1): Idem.
14412         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
14413         (loop_prefetch_arrays): Idem
14414         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
14415         max_stmt_executions instead of estimated_loop_iterations.
14416         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
14417         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
14418         instead of nb_iterations_upper_bound.
14419
14420 2011-06-13  Jan Hubicka  <jh@suse.cz>
14421
14422         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
14423
14424 2011-06-14  Richard Henderson  <rth@redhat.com>
14425
14426         PR debug/48459
14427         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
14428         (based_loc_descr): Assert it's true.
14429         (compute_frame_pointer_to_fb_displacement): Set it, rather than
14430         aborting immediately.
14431
14432 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
14433             Mingfeng Wu  <mingfeng@faraday-tech.com>
14434
14435         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
14436
14437 2011-06-13  Jan Hubicka  <jh@suse.cz>
14438
14439         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
14440
14441 2011-06-13  Jan Hubicka  <jh@suse.cz>
14442
14443         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
14444         similarly to DECL_COMDAT.
14445         * cgraphunit.c (cgraph_analyze_function): Likewise.
14446         * ipa.c (function_and_variable_visibility): Likewise.
14447
14448 2011-06-13  Jan Hubicka  <jh@suse.cz>
14449
14450         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
14451         BINFO_VIRTUALS when streaming for ltrans unit.
14452
14453 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
14454
14455         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
14456         (movdi_internal64): Same.
14457
14458 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
14459
14460         PR target/44618
14461         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
14462         a set of similar patterns, where the MATCH_OPERAND for the function
14463         argument is replaced with individual references to hardware registers.
14464         (save_fpregs_<mode>): Ditto
14465         (restore_gpregs_<mode>): Ditto
14466         (return_and_restore_gpregs_<mode>): Ditto
14467         (return_and_restore_fpregs_<mode>): Ditto
14468         (return_and_restore_fpregs_aix_<mode>): Ditto
14469
14470 2011-06-13  Jan Hubicka  <jh@suse.cz>
14471
14472         * ipa-utils.c (postorder_stack): New structure.
14473         (ipa_reverse_postorder): Handle aliases.
14474
14475 2011-06-13  Jan Hubicka  <jh@suse.cz>
14476
14477         * ipa-inline.c (reset_edge_caches): Walk aliases.
14478         (update_caller_keys): Do not test inlinability of aliases.
14479         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
14480         (do_estimate_growth): Fix typo.
14481
14482 2011-06-13  Jan Hubicka  <jh@suse.cz>
14483
14484         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
14485         (can_remove_node_now_p): ... here; handle same comdat groups.
14486         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
14487         (inline_call): Update use of can_remove_node_now_p.
14488
14489 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
14490
14491         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
14492         condition to disallow non-identical memory locations.
14493         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
14494         preference to bit manipulation instructions.
14495
14496 2011-06-13  Jan Hubicka  <jh@suse.cz>
14497
14498         * cgraph.c (cgraph_for_node_thunks_and_aliases,
14499         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
14500         (nonremovable_p): New function.
14501         (cgraph_can_remove_if_no_direct_calls_p): New function.
14502         (used_from_object_file_p): New functoin.
14503         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
14504         references from aliases.
14505         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
14506         * ipa-inline.c (check_caller_edge): New function.
14507         (want_inline_function_called_once_p): Use it; accept aliases called
14508         once, too.
14509         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
14510
14511 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14512
14513         PR target/48454
14514         * config/arm/neon.md (vec_pack_trunc): Set the lengths
14515         correctly for the case with Quad vectors.
14516
14517 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
14518            Ira Rosen  <ira.rosen@linaro.org>
14519
14520         PR tree-optimization/49352
14521         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
14522         all, make sure loop_use_stmt after the loop is a def stmt of a used
14523         SSA_NAME that is the only one defined inside of the loop.  Don't
14524         check for COND_EXPR and GIMPLE_BINARY_RHS.
14525         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
14526         check_reduction is true.
14527
14528 2011-06-11  Jan Hubicka  <jh@suse.cz>
14529
14530         PR middle-end/49373
14531         * ipa.c (cgraph_externally_visible_p): Check resolution info.
14532
14533 2011-06-11  Jan Hubicka  <jh@suse.cz>
14534
14535         PR middle-end/48836
14536         * ipa-inline-transform.c: Include tree-pass.h
14537         (inline_transform): Set TODO_update_ssa_only_virtuals.
14538         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
14539
14540 2011-06-11  Jan Hubicka  <jh@suse.cz>
14541
14542         PR middle-end/49378
14543         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
14544         aliases and thunks.
14545
14546 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
14547
14548         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
14549         Take number of iterations to peel into account for equally frequent
14550         misalignment values.
14551
14552 2011-06-11  Jan Hubicka  <jh@suse.cz>
14553
14554         * lto-streamer-out.c (produce_symtab): Stream out the newly
14555         represented aliases.
14556
14557 2011-06-11  Jan Hubicka  <jh@suse.cz>
14558
14559         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
14560         varying args.
14561         (ipa_update_after_lto_read): Likewise.
14562         (ipa_write_node_info): Do not sream call_with_var_arguments.
14563         (ipa_read_node_info): Likewise.
14564
14565 2011-06-11  Jan Hubicka  <jh@suse.cz>
14566
14567         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
14568
14569 2011-06-11  Jan Hubicka  <jh@suse.cz>
14570
14571         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
14572         (lto_symtab_resolve_can_prevail_p): Likewise.
14573         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
14574         * cgraph.c (same_body_aliases_done): New global var.
14575         (cgraph_same_body_alias_1): Rename to ...
14576         (cgraph_create_function_alias): ... this one; reorg to new
14577         representation.
14578         (cgraph_same_body_alias): Use cgraph_create_function_alias;
14579         record references when asked to.
14580         (cgraph_add_thunk): Fix formating.
14581         (cgraph_get_node): Kill same body alias code.
14582         (cgraph_node_for_asm): Likewise.
14583         (cgraph_remove_same_body_alias): Remove.
14584         (cgraph_remove_node): Kill same body alias code.
14585         (cgraph_mark_address_taken_node): Mark also the aliased function
14586         as having address taken.
14587         (dump_cgraph_node): Dump same body aliases.
14588         (cgraph_for_node_thunks_and_aliases): Update for new alias
14589         representation.
14590         (cgraph_for_node_and_aliases): Likewise.
14591         * cgraph.h (same_body): Kll pointer.
14592         (same_body_alias): Update comment.
14593         (same_body_aliases_done): Declare.
14594         (cgraph_remove_same_body_alias): Remove declaration.
14595         (cgraph_create_function_alias): Declare.
14596         (cgraph_process_same_body_aliases): Declare.
14597         (cgraph_function_with_gimple_body_p): Check for alias.
14598         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
14599         (cgraph_alias_aliased_node): New function.
14600         (cgraph_function_node): Update for new aliases.
14601         (cgraph_function_or_thunk_node): Likewise.
14602         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
14603         (inline_call): Remove dead aliases.
14604         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
14605         name hack for same body aliases.
14606         (clone_of_p): Look through aliases.
14607         (verify_cgraph_node): Verify aliases.
14608         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
14609         (cgraph_process_same_body_aliases): New function.
14610         (process_function_and_variable_attributes): Disable weakref warning on
14611         alias.
14612         (cgraph_analyze_functions): Handle aliases.
14613         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
14614         (assemble_thunks): Rename to ...
14615         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
14616         (cgraph_expand_function): Remove alias output code.
14617         (cgraph_output_in_order): Skip aliases.
14618         (cgraph_preserve_function_body_p): Aliases don't need preserving.
14619         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
14620         (ipa_record_reference): Do not assert on alias references.
14621         (ipa_ref_has_aliases_p): New function.
14622         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
14623         (ipa_ref_has_aliases_p): Declare.
14624         * lto-cgraph.c (lto_output_node): Handle aliases.
14625         (input_node): Likewise.
14626         * lto-streamer-out.c (lto_output): Skip aliases.
14627         (produce_symtab): Kill same_body_alias code.
14628         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
14629         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
14630         * ipa-inline.c (update_caller_keys): Walk aliases.
14631         (inline_small_functions): Fix thinko in previous patch.
14632         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
14633         (function_and_variable_visibility): Do not walk same body aliases.
14634         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
14635         (ipa_pta_execute): Use it.
14636
14637 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
14638
14639         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
14640         (*vec_dupv2df): Rename from vec_dupv2df.
14641         (vec_dupv2df): New expander.
14642
14643 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
14644
14645         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
14646
14647 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
14648
14649         * config/i386/i386.md: Use default value in "isa" attribute.
14650         * config/i386/sse.md: Ditto.
14651         * config/i386/mmx.md: Ditto.
14652
14653 2011-06-10  Wei Guozhi  <carrot@google.com>
14654
14655         PR target/45335
14656         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
14657         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
14658         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
14659         related peephole2.
14660         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
14661         related peephole2.
14662         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
14663         (arm_legitimate_ldrd_p): New prototype.
14664         (arm_output_ldrd): New prototype.
14665         * config/arm/arm.c (arm_check_ldrd_operands): New function.
14666         (arm_legitimate_ldrd_p): New function.
14667         (arm_output_ldrd): New function.
14668
14669 2011-06-10  David Li  <davidxl@google.com>
14670
14671         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
14672         * passes.c (passr_eq): New function.
14673         (create_pass_tab): New function.
14674         (pass_traverse): New function.
14675         (dump_one_pass): New function.
14676         (dump_pass_list): New function.
14677         (dump_passes): New function.
14678
14679 2011-06-10  Jan Hubicka  <jh@suse.cz>
14680
14681         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
14682         setting the nothrow flag.
14683         * ipa-reference.c (propagate): Skip aliases.
14684         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
14685         (propagate_nothrow): Skip aliases; do not update cgraph.
14686         (local_pure_const): Do not update cgraph.
14687         * tree-profile.c (tree_profiling): Do fixup_cfg.
14688
14689 2011-06-10  Jan Hubicka  <jh@suse.cz>
14690
14691         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
14692         (cgraph_local_node_p): ... here; handle aliases.
14693         (has_addr_references_p): Break out from ...;
14694         (cgraph_remove_unreachable_nodes) ... here.
14695
14696 2011-06-10  Jan Hubicka  <jh@suse.cz>
14697
14698         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
14699         * common.opt (flag_inline_functions_called_once): Do not
14700         initialize to 1.
14701
14702 2011-06-10  Jan Hubicka  <jh@suse.cz>
14703
14704         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
14705         (ipcp_initialize_node_lattices): Do not deal with aliases;
14706         Do not try to propagate through thunks.
14707         (ipcp_change_tops_to_bottom): Do not deal with aliases.
14708
14709 2011-06-10  Jan Hubicka  <jh@suse.cz>
14710
14711         * ipa-prop.c (ipa_write_node_info): Stream jump functions
14712         for indirect calls.
14713         (ipa_read_node_info): Likewise.
14714
14715 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14716
14717         PR lto/49302
14718         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
14719         (build_and_insert_call): Likewise.
14720         (build_and_insert_ref): New.
14721         (gimple_expand_builtin_pow): Minor cleanup.
14722         (gimple_expand_builtin_cabs): New.
14723         (execute_cse_sincos): Add case for BUILT_IN_CABS.
14724
14725 2011-06-10  Jan Hubicka  <jh@suse.cz>
14726
14727         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
14728         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
14729         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
14730         (ipcp_propagate_stage): Skip aliases when propagating.
14731         (ipcp_need_redirect_p): Skip aliases.
14732         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
14733         collect_callers_of_node.
14734         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
14735         for aliases.
14736         (ipa_compute_jump_functions): Look through aliases.
14737
14738 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14739
14740         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
14741
14742 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14743
14744         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
14745         Adjust comments.
14746         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
14747
14748 2011-06-10  Jan Hubicka  <jh@suse.cz>
14749
14750         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
14751         Update call of gimple_get_virt_method_for_binfo.
14752         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
14753         refuse_thunks parameter.
14754         (gimple_fold_call): Update.
14755         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
14756
14757 2011-06-10  Jan Hubicka  <jh@suse.cz>
14758
14759         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
14760         (not_all_callers_have_enough_arguments_p): ... this one; turn into
14761         worker for cgraph_for_node_and_aliases.
14762         (convert_callers_for_node): Break out from ...
14763         (convert_callers): ... here.
14764         (modify_function): Use collect_callers_of_node.
14765         (ipa_early_sra): Use cgraph_for_node_and_aliases.
14766
14767 2011-06-10  Richard Guenther  <rguenther@suse.de>
14768
14769         PR tree-optimization/49361
14770         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
14771         when not already in gimple form.
14772
14773 2011-06-10  Richard Guenther  <rguenther@suse.de>
14774
14775         PR bootstrap/49344
14776         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
14777         FOR_EACH_PHI_OR_STMT_USE.
14778
14779 2011-06-10  Jan Hubicka  <jh@suse.cz>
14780
14781         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
14782         (clone_inlined_nodes): ... here.
14783         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
14784         to real destination prior inlining.
14785         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
14786         can_early_inline_edge_p, want_early_inline_function_p,
14787         want_early_inline_function_p, want_inline_small_function_p,
14788         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
14789         edge_badness, update_all_callee_keys, lookup_recursive_calls,
14790         add_new_edges_to_heap, inline_small_functions, flatten_function,
14791         inline_always_inline_functions, early_inline_small_functions): Use
14792         cgraph_function_or_thunk_node.
14793         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
14794         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
14795         (do_estimate_edge_growth_1): Break out from ...
14796         (do_estimate_growth) ... here; walk aliases.
14797         (inline_generate_summary): Skip aliases.
14798
14799 2011-06-10  Richard Guenther  <rguenther@suse.de>
14800
14801         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
14802         forward when combining, visit inserted stmts when a stmt was changed.
14803
14804 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
14805
14806         * tree.h (error_operand_p): Add.
14807         * dbxout.c (dbxout_type_fields): Use the latter.
14808         * c-decl.c (add_stmt): Likewise.
14809         * gimplify.c (omp_add_variable, omp_notice_variable,
14810         gimplify_scan_omp_clauses): Likewise.
14811
14812 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
14813
14814         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
14815         when a value is actually passed in regs.
14816
14817 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
14818             Laurent Rougé  <laurent.rouge@menta.fr>
14819
14820         * doc/invoke.texi (SPARC options): Add -mflat.
14821         * config/sparc/sparc.opt: Likewise.
14822         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
14823         (sparc_flat_expand_prologue): Declare.
14824         (sparc_flat_expand_epilogue): Likewise.
14825         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
14826         (CPP_ENDIAN_SPEC): Replace with...
14827         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
14828         (CPP_SPEC): Adjust to above change.
14829         (EXTRA_SPECS): Likewise.
14830         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
14831         (INCOMING_REGNO): Likewise.
14832         (OUTGOING_REGNO): Likewise.
14833         (LOCAL_REGNO): Likewise.
14834         (SETUP_FRAME_ADDRESSES): Likewise.
14835         (FIXED_REGISTERS): Set 0 for %fp.
14836         (CALL_USED_REGISTERS): Likewise.
14837         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
14838         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
14839         (RETURN_ADDR_REGNUM): Define.
14840         (RETURN_ADDR_RTX): Use it.
14841         (INCOMING_RETURN_ADDR_REGNUM): Define.
14842         (INCOMING_RETURN_ADDR_RTX): Use it.
14843         (DWARF_FRAME_RETURN_COLUMN): Likewise.
14844         (EH_RETURN_REGNUM): Define.
14845         (EH_RETURN_STACKADJ_RTX): Use it.
14846         (EH_RETURN_HANDLER_RTX): Delete.
14847         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
14848         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
14849         Delete.
14850         (struct machine_function): Add frame_size, apparent_frame_size,
14851         frame_base_reg, frame_base_offset, n_global_fp_regs and
14852         save_local_in_regs_p fields.
14853         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
14854         sparc_frame_base_offset, sparc_n_global_fp_regs,
14855         sparc_save_local_in_regs_p): New macros.
14856         (sparc_option_override): Error out if -fcall-saved-REG is specified
14857         for Out registers.
14858         (eligible_for_restore_insn): Fix formatting.
14859         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
14860         (eligible_for_sibcall_delay): Likewise.
14861         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
14862         (sparc_legitimate_address_p): Adjust to above change.
14863         (save_global_or_fp_reg_p): New predicate.
14864         (return_addr_reg_needed_p): Likewise.
14865         (save_local_or_in_reg_p): Likewise.
14866         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
14867         (SORR_SAVE, SORR_RESTORE): Delete.
14868         (sorr_pred_t): New typedef.
14869         (sorr_act_t): New enum.
14870         (save_or_restore_regs): Rename to...
14871         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
14872         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
14873         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
14874         mechanism.  Add CFI information for double-word saves in 32-bit mode.
14875         (emit_adjust_base_to_offset): New function extracted from...
14876         (emit_save_or_restore_regs): ...this.  Rename the rest to...
14877         (emit_save_or_restore_regs_global_fp_regs): ...this.
14878         (emit_save_or_restore_regs_local_in_regs): New function.
14879         (gen_create_flat_frame_[123]): New functions.
14880         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
14881         (sparc_flat_expand_prologue): New function.
14882         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
14883         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
14884         (sparc_flat_expand_epilogue): New function.
14885         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
14886         (output_return): Likewise.
14887         (output_sibcall): Likewise.
14888         (sparc_output_mi_thunk): Likewise.
14889         (sparc_frame_pointer_required): Likewise.
14890         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
14891         function optimization.
14892         * config/sparc/sparc.md (flat): New attribute.
14893         (prologue): Add TARGET_FLAT handling.
14894         (save_register_window): Disable if TARGET_FLAT.
14895         (create_flat_frame_[123]): New patterns.
14896         (epilogue): Add TARGET_FLAT handling.
14897         (sibcall_epilogue): Likewise.
14898         (eh_return): New expander.
14899         (eh_return_internal): New insn and splitter.
14900         (return_internal): Add TARGET_FLAT handling.
14901         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
14902         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
14903         (nonlocal_goto): Add TARGET_FLAT handling.
14904         * config/sparc/t-elf: Add -mflat multilib.
14905         * config/sparc/t-leon: Likewise.
14906
14907 2011-06-10  Jan Hubicka  <jh@suse.cz>
14908
14909         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
14910         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
14911         (self_recursive_p): Use cgraph_function_node.
14912         (propagate_pure_const): Likewise.
14913         (propagate_nothrow): Likewise.
14914         * ipa-reference.c (ipa_reference_get_not_read_global): Use
14915         cgraph_function_node.
14916         (propagate_bits): Likewise.
14917         (propagate): Likewise.
14918
14919 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14920             Richard Earnshaw  <rearnsha@arm.com>
14921
14922         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
14923         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
14924         (*thumb2_movdi_vfp): Delete.
14925         (*arm_movdi_vfp_cortexa8): Delete.
14926         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
14927         (*movdi_vfp_cortexa8): Likewise.
14928
14929 2011-06-10  Richard Guenther  <rguenther@suse.de>
14930
14931         * stor-layout.c (initialize_sizetypes): Give names to all
14932         sizetype kinds.
14933
14934 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
14935
14936         PR tree-optimization/49318
14937         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
14938         irrelevant pattern statements.
14939
14940 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14941
14942         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
14943
14944         PR bootstrap/49354
14945         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
14946         to last assignment.
14947
14948 2011-06-09  Jan Hubicka  <jh@suse.cz>
14949
14950         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
14951         do not recompute reachable flag.
14952         (cgraph_finalize_function, cgraph_analyze_functions): Set
14953         redefined_extern_inline here.
14954
14955 2011-06-09  Jan Hubicka  <jh@suse.cz>
14956
14957         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
14958         (cgraph_only_called_directly_p): ... this one; bring offline.
14959         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
14960         varpool_used_from_object_file_p): Drop names from the declaratoin.
14961         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
14962         collect_callers_of_node): New.
14963         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
14964         (cgraph_edge_recursive_p): Use cgraph_function_node.
14965         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
14966         (cgraph_node_cannot_be_local_p_1): Break out from ...
14967         (cgraph_node_can_be_local_p): ... here; walk aliases.
14968         (cgraph_for_node_thunks_and_aliases): New function.
14969         (cgraph_for_node_and_aliases): New function.
14970         (cgraph_make_node_local_1): Break out from ...
14971         (cgraph_make_node_local) ... here; use
14972         cgraph_for_node_thunks_and_aliases.
14973         (cgraph_set_nothrow_flag_1): Break out from ...
14974         (cgraph_set_nothrow_flag) ... here;
14975         use cgraph_for_node_thunks_and_aliases.
14976         (cgraph_set_const_flag_1): Break out from ...
14977         (cgraph_set_const_flag) ... here;
14978         use cgraph_for_node_thunks_and_aliases.
14979         (cgraph_set_pure_flag_1): Break out from ...
14980         (cgraph_set_pure_flag) ... here;
14981         use cgraph_for_node_thunks_and_aliases.
14982         (cgraph_propagate_frequency_1): Break out from ...
14983         (cgraph_propagate_frequency) ... here; use
14984         cgraph_for_node_thunks_and_aliases.
14985         (cgraph_used_from_object_file_p): Do not care about aliases.
14986         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
14987         New functions.
14988         (collect_callers_of_node_1, collect_callers_of_node): New functions.
14989
14990 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
14991
14992         PR rtl-optimization/49154
14993         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
14994         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
14995         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
14996         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
14997         * config/cris/cris.h (cris_register_move_cost): Remove
14998         !TARGET_V32 code.  Tweak comments.
14999
15000 2011-06-09  Jan Hubicka  <jh@suse.cz>
15001
15002         * cgraphbuild.c (record_eh_tables): Mark personality function as having
15003         address taken.
15004
15005 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
15006
15007         PR rtl-optimization/49154
15008         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
15009         is a matching slot in the hashtable, assign it to classes_ptr.
15010
15011         PR rtl-optimization/49154
15012         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
15013         register classes.
15014         * doc/tm.texi: Regenerate.
15015
15016 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
15017
15018         PR target/49307
15019         * config/sh/sh.md (UNSPEC_CHKADD): New.
15020         (chk_guard_add): New define_insn_and_split.
15021         (symGOT_load): Use chk_guard_add instead of blockage.
15022
15023 2011-06-09  Kai Tietz  <ktietz@redhat.com>
15024
15025         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
15026
15027 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
15028
15029         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
15030
15031 2011-06-09  Wei Guozhi  <carrot@google.com>
15032
15033         PR target/46975
15034         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
15035         (peephole2 for conditional move): Generate 16 bit instructions.
15036
15037 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
15038
15039         * config/i386/i386.md (*movdi_internal_rex64): Merge
15040         alternatives 6 and 8.
15041
15042 2011-06-09  David Li  <davidxl@google.com>
15043
15044         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
15045         * passes.c (passr_eq): New function.
15046         (create_pass_tab): New function.
15047         (pass_traverse): New function.
15048         (dump_one_pass): New function.
15049         (dump_pass_list): New function.
15050         (dump_passes): New function.
15051
15052 2011-06-09  David Li  <davidxl@google.com>
15053
15054         * tree-complex.c (tree_lower_complex): Gate cleanup.
15055         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
15056         (execute_optimize_stdarg): Ditto.
15057         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
15058         (execute_cleanup_eh_1): Ditto.
15059         (execute_cleanup_eh): Ditto.
15060         * gcse.c (gate_rtl_pre): Ditto.
15061         (execute_rtl_pre): Ditto.
15062         * except.c (finish_eh_generation): Ditto.
15063         (convert_to_eh_region_ranges): Ditto.
15064         * cprop.c (one_cprop_pass): Ditto.
15065
15066 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
15067
15068         PR target/48673
15069         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
15070         in all basic blocks.
15071
15072 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15073
15074         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
15075         (HAVE_ENABLE_EXECUTE_STACK): Define.
15076         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
15077         (HAVE_ENABLE_EXECUTE_STACK): Define.
15078         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
15079         (HAVE_ENABLE_EXECUTE_STACK): Define.
15080         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
15081         (ENABLE_EXECUTE_STACK): Remove.
15082         (HAVE_ENABLE_EXECUTE_STACK): Define.
15083         [IN_LIBGCC2]: Don't include <windows.h>.
15084         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
15085         (HAVE_ENABLE_EXECUTE_STACK): Define.
15086         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
15087         (HAVE_ENABLE_EXECUTE_STACK): Define.
15088         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
15089         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
15090         (HAVE_ENABLE_EXECUTE_STACK): Define.
15091         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
15092         (HAVE_ENABLE_EXECUTE_STACK): Define.
15093         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
15094         (HAVE_ENABLE_EXECUTE_STACK): Define.
15095         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
15096         (HAVE_ENABLE_EXECUTE_STACK): Define.
15097         * config/alpha/alpha.c (alpha_trampoline_init): Test
15098         HAVE_ENABLE_EXECUTE_STACK.
15099         * config/i386/i386.c (ix86_trampoline_init): Likewise.
15100         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
15101         (sparc64_initialize_trampoline): Likewise.
15102         * libgcc2.c [L_enable_execute_stack]: Remove.
15103         * system.h (ENABLE_EXECUTE_STACK): Poison.
15104         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
15105         * doc/tm.texi: Regenerate.
15106         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
15107
15108 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
15109
15110         PR middle-end/49308
15111         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
15112         variable.  After resetting and rescanning insn continue with previous
15113         statement.
15114
15115 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15116
15117         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
15118         (gcc_cv_ld_hidden): Likewise.
15119         * configure: Regenerate.
15120         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
15121         (ix86_stack_protect_fail): Mark unused.
15122         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
15123         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
15124         [TARGET_MACHO]: Don't define.
15125         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
15126         (TARGET_STACK_PROTECT_FAIL): Likewise.
15127         (rs6000_stack_protect_fail): Mark unused.
15128         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
15129         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
15130
15131 2011-06-08  Andi Kleen  <ak@linux.intel.com>
15132
15133         * varasm.c (get_section): Print location of other conflict
15134         for section conflicts.
15135
15136 2011-06-08  Andi Kleen  <ak@linux.intel.com>
15137
15138         * config/i386/driver-i386.c (host_detect_local_cpu):
15139         Add model 0x2d Intel CPU.
15140
15141 2011-06-08  Andi Kleen  <ak@linux.intel.com>
15142
15143         * reginfo.c (global_regs_decl): Add.
15144         (globalize_reg): Add decl parameter. Compute location.  Pass location
15145         to warnings and add inform. Store decl in global_regs_decl.
15146         * rtl.h (globalize_reg): Update prototype.
15147         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
15148
15149 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
15150
15151         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
15152
15153 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15154
15155         PR target/49305
15156         * config/sh/predicates.md (general_movsrc_operand): Check
15157         mode for memory with indexed address for QI and HImode.
15158         (general_movdst_operand): Likewise.
15159
15160 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
15161
15162         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
15163
15164 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
15165
15166         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
15167         (num_ssa_operands): Likewise.
15168         (op_iter_init_phiuse): Forward-declare.
15169         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
15170
15171 2011-06-08  Nick Clifton  <nickc@redhat.com>
15172
15173         * doc/invoke.texi (ARM Options): Update description of
15174         -mthumb-interwork.
15175
15176 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
15177
15178         * config/i386/driver-i386.c (host_detect_local_cpu): Support
15179         unknown Intel family 0x6 CPUs.
15180
15181 2011-06-08  Martin Jambor  <mjambor@suse.cz>
15182
15183         * tree-sra.c (mark_rw_status): Removed.
15184         (analyze_access_subtree): New parameter parent instead of
15185         mark_read and mark_write, propagate from that.
15186
15187 2011-06-08  Julian Brown  <julian@codesourcery.com>
15188
15189         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
15190         for double-precision helper functions in hard-float mode if only
15191         single-precision arithmetic is supported in hardware.
15192
15193 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
15194
15195         PR rtl-optimization/49303
15196         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
15197         code_motion_path_driver returned 0 or 1.
15198         (sel_region_finish): Clear h_d_i_d.
15199
15200 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15201
15202         * config/sh/sh.c (prepare_move_operands): Set pic register
15203         appropriately for global and local dynamic tls models even
15204         if flag_pic is unset.
15205
15206 2011-06-07  Jason Merrill  <jason@redhat.com>
15207
15208         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
15209
15210 2011-06-07  Xinliang David Li  <davidxl@google.com>
15211         * passes.c (enable_disable_pass): Handle assembler name.
15212         (is_pass_explicitly_enabled_or_disabled): Ditto.
15213
15214 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15215
15216         PR tree-optimization/48497
15217         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
15218
15219 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15220
15221         PR tree-optimization/46728
15222         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
15223         to use gimple_val_nonnegative_real_p.
15224         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
15225         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
15226
15227 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
15228
15229         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
15230
15231 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
15232
15233         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
15234         constant vectors.
15235
15236 2011-06-07  Richard Guenther  <rguenther@suse.de>
15237
15238         * stor-layout.c (initialize_sizetypes): Initialize all
15239         sizetypes based on target definitions.
15240         (set_sizetype): Remove.
15241         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
15242         * tree.h (set_sizetype): Remove.
15243
15244 2011-06-07  Nick Clifton  <nickc@redhat.com>
15245
15246         * config.gcc: Unify V850 architecture options and add support for
15247         newer V850 architectures.
15248         * config/v850/t-v850e: Delete.
15249
15250 2011-06-07  Richard Guenther  <rguenther@suse.de>
15251
15252         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
15253         Call set_sizetype from here.
15254
15255 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
15256
15257         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
15258         (*maddhisi4tb, *maddhisi4tt): New define_insns.
15259
15260 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
15261             Andrew Stubbs  <ams@codesourcery.com>
15262
15263         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
15264         multiplies.
15265         * doc/md.texi (Canonicalization of Instructions): Document widening
15266         multiply canonicalization.
15267
15268 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
15269
15270         PR gcov-profile/49299
15271         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
15272
15273 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
15274
15275         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
15276         a pointer.
15277         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
15278         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
15279         vect_recog_pow_pattern): Likewise.
15280         (vect_pattern_recog_1): Remove declaration.
15281         (widened_name_p): Remove declaration.  Add new argument to specify
15282         whether to check that both types are either signed or unsigned.
15283         (vect_recog_widen_mult_pattern): Update documentation.  Handle
15284         unsigned patterns and multiplication by constants.
15285         (vect_pattern_recog_1): Update vect_recog_func references.  Use
15286         statement information from the statement returned from pattern
15287         detection functions.
15288         (vect_pattern_recog): Update vect_recog_func reference.
15289         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
15290         multiplication by a constant use the type of the other operand.
15291
15292 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
15293
15294         PR rtl-optimization/49145
15295         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
15296
15297 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
15298
15299         PR debug/49262
15300         * dwarf2out.c (native_encode_initializer): Decrement count in each
15301         iteration.
15302
15303         PR debug/49294
15304         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
15305         non-MODE_INT modes.
15306
15307         PR c++/49264
15308         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
15309         if stmt folded into nothing.
15310         * tree-inline.c (fold_marked_statements): If a builtin at the end of
15311         a bb folded into nothing, just update cgraph edges and move to next bb.
15312         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
15313         to be NULL.  Don't compute count and frequency if new_call is NULL.
15314
15315 2011-06-04  Diego Novillo  <dnovillo@google.com>
15316
15317         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
15318         (cgraph.o): Likewise.
15319         (cgraphunit.o): Likewise.
15320         * cgraphunit.c: Include lto-streamer.h
15321         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
15322         if LTO is enabled.
15323         * lto-streamer-in.c (unpack_value_fields): Call
15324         streamer_hooks.unpack_value_fields if set.
15325         (lto_materialize_tree): For unhandled nodes, first try to
15326         call lto_streamer_hooks.alloc_tree, if it exists.
15327         (lto_input_ts_decl_common_tree_pointers): Move reading of
15328         DECL_INITIAL to lto_streamer_read_tree.
15329         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
15330         (lto_streamer_read_tree): New.
15331         (lto_reader_init): Rename from lto_init_reader.
15332         Move initialization code to lto/lto.c.
15333         * lto-streamer-out.c (pack_value_fields): Call
15334         streamer_hooks.pack_value_fields if set.
15335         (lto_output_tree_ref): For tree nodes that are not normally indexable,
15336         call streamer_hooks.indexable_with_decls_p before giving up.
15337         (lto_output_ts_decl_common_tree_pointers): Move handling
15338         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
15339         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
15340         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
15341         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
15342         (lto_streamer_write_tree): New.
15343         (lto_output): Call lto_streamer_init directly.
15344         (lto_writer_init): Remove.
15345         * lto-streamer.c (streamer_hooks): New.
15346         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
15347         instead of lto_preload_common_nodes.
15348         (lto_is_streamable): Move from lto-streamer.h
15349         (lto_streamer_hooks_init): New.
15350         (streamer_hooks): New.
15351         (streamer_hooks_init): New.
15352         * lto-streamer.h (struct output_block): Forward declare.
15353         (struct lto_input_block): Likewise.
15354         (struct data_in): Likewise.
15355         (struct bitpack_d): Likewise.
15356         (struct streamer_hooks): Declare.
15357         (streamer_hooks): Declare.
15358         (lto_streamer_hooks_init): Declare.
15359         (lto_streamer_write_tree): Declare.
15360         (lto_streamer_read_tree): Declare.
15361         (streamer_hooks_init): Declare.
15362         (lto_is_streamable): Move to lto-streamer.c
15363
15364 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15365
15366         * longlong.h (smul_ppmm): The resulting register pair contains the
15367         higher order word first.
15368
15369 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15370
15371         PR tree-optimization/46728
15372         * builtins.c (powi_table): Remove.
15373         (powi_lookup_cost): Remove.
15374         (powi_cost): Remove.
15375         (expand_powi_1): Remove.
15376         (expand_powi): Remove.
15377         (expand_builtin_pow_root): Remove.
15378         (expand_builtin_pow): Remove.
15379         (expand_builtin_powi): Eliminate handling of constant exponent.
15380         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
15381
15382 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15383
15384         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
15385
15386 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15387
15388         * dce.c (reset_unmarked_insns_debug_uses): New.
15389         (delete_unmarked_insns): Skip debug insns.
15390         (prescan_insns_for_dce): Likewise.
15391         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
15392         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
15393         active reg can be found.
15394         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
15395         (convert_regs_1): Use it.
15396
15397 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15398
15399         * tree-pretty-print.c (dump_function_header): Add flags.
15400         Don't dump decl_uid with nouid.
15401         * tree-pretty-print.h (dump_function_header): Adjust.
15402         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
15403         * passes.c (pass_init_dump_file): Pass dump_flags on.
15404         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
15405
15406 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
15407
15408         PR bootstrap/49270
15409         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
15410
15411 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
15412
15413         PR tree-optimization/49243
15414         * calls.c (setjmp_call_p): Also check if fndecl has the
15415         returns_twice attribute.
15416
15417 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15418
15419         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
15420         -ffast-math etc.
15421
15422 2011-06-06  Richard Henderson  <rth@redhat.com>
15423             Georg-Johann Lay  <avr@gjlay.de>
15424
15425         PR target/42210
15426         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
15427         New predicates.
15428         * config/avr/avr.md ("insv"): New insn expander.
15429         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
15430         "*insv.not.io", "*insv.reg"): New insns.
15431
15432 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
15433
15434         PR target/49285
15435         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
15436         to nonimmediate_operand from memory_operand for the operand that is to
15437         be forced to memory by the expander.  Lose the constraints.
15438
15439 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
15440
15441         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
15442         EH return when delayed branches are disabled.
15443
15444 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
15445
15446         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
15447         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
15448         calculation.
15449         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
15450         Simplify MODE_V1DF and MODE_V2SF handling.
15451         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
15452         Simplify MODE_SF handling.
15453
15454 2011-06-04  Jan Hubicka  <jh@suse.cz>
15455
15456         PR tree-optimization/48893
15457         PR tree-optimization/49091
15458         PR tree-optimization/49179
15459         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
15460         Bounds check.
15461
15462 2011-06-04  Jan Hubicka  <jh@suse.cz>
15463
15464         PR lto/48954
15465         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
15466         bitmaps.
15467
15468 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
15469
15470         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
15471
15472 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
15473
15474         PR target/49281
15475         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
15476         to be strictly smaller than 1 << shiftcount.
15477
15478 2011-06-04  Jan Hubicka  <jh@suse.cz>
15479
15480         PR tree-optimize/48929
15481         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
15482         of empty predicate.
15483
15484 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
15485
15486         PR debug/48333
15487         * calls.c (emit_call_1): Prefer the __builtin declaration of
15488         builtin functions.
15489
15490 2011-06-03   Diego Novillo  <dnovillo@google.com>
15491
15492         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
15493         (lto_input_tree_pointers): Likewise.
15494         * lto-streamer-out.c (pack_value_fields): Likewise.
15495         (lto_output_tree_pointers): Likewise.
15496         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
15497         and OPTIMIZATION_NODE.
15498
15499 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15500
15501         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
15502         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
15503         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
15504         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
15505         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
15506         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
15507         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
15508         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
15509         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
15510         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
15511         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
15512         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
15513         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
15514         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
15515         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
15516         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
15517         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
15518         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
15519         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
15520         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
15521         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
15522         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
15523         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
15524         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
15525         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
15526         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
15527         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
15528         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
15529         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
15530         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
15531         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
15532         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
15533         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
15534         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
15535         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
15536         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
15537         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
15538         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
15539         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
15540         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
15541         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
15542         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
15543         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
15544         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
15545         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
15546         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
15547         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
15548         * system.h (MD_UNWIND_SUPPORT): Poison.
15549         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
15550         * doc/tm.texi: Regenerate.
15551         * unwind-dw2.c: Include md-unwind-support.h instead of
15552         MD_UNWIND_SUPPORT.
15553         * config/ia64/unwind-ia64.c: Likewise.
15554         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
15555
15556 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
15557
15558         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
15559
15560 2011-06-03  Richard Henderson  <rth@redhat.com>
15561             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15562
15563         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
15564         (sigill_hdlr): Correct insn, insn size.
15565         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
15566
15567 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15568
15569         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
15570         t-slibgcc-dummy.
15571         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
15572         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
15573         * config/mips/t-iris: Remove.
15574         * config/mips/t-irix6: New file.
15575         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
15576
15577 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15578
15579         * Makefile.in (LIB2ADDEHDEP): Remove.
15580         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
15581         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
15582         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
15583         * config/t-darwin (LIB2ADDEHDEP): Remove.
15584         * config/t-freebsd (LIB2ADDEHDEP): Remove.
15585         * config/t-linux (LIB2ADDEHDEP): Remove.
15586
15587 2011-06-03  Diego Novillo  <dnovillo@google.com>
15588
15589         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
15590         (lto_register_var_decl_in_symtab): Likewise.
15591         (lto_register_function_decl_in_symtab): Likewise.
15592         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
15593         logic to uniquify_nodes.
15594
15595 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15596
15597         * config/alpha/t-osf5: Remove.
15598         * config/alpha/t-osf-pthread: Remove.
15599         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
15600         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
15601
15602 2011-06-03  Julian Brown  <julian@codesourcery.com>
15603
15604         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
15605         (strongarm1110): Use strongarm tuning.
15606         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
15607         * config/arm/arm.c (arm_strongarm_tune): New.
15608         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15609         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
15610         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
15611         setting, using previous defaults or 1 for Cortex-A5.
15612         (arm_option_override): Set max_insns_skipped from current tuning.
15613
15614 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
15615
15616         * doc/install.texi (Options specification): Document --with-specs.
15617
15618 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15619
15620         * config/arm/neon.md (orndi3_neon): Actually split it.
15621
15622 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
15623
15624         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
15625         * var-tracking.c (reverse_op): Limite recurse depth to 5.
15626
15627 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
15628
15629         PR debug/47590
15630         * target.def (delay_sched2, delay_vartrack): New.
15631         * doc/tm.texi.in: Update.
15632         * doc/tm.texi: Rebuild.
15633         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
15634         * var-tracking.c (gate_handle_var_tracking): Likewise.
15635         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
15636         (bfin_flag_var_tracking): Drop.
15637         (output_file_start): Don't save and override flag_var_tracking.
15638         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
15639         (bfin_reorg): Test original variables.
15640         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15641         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
15642         (ia64_flag_var_tracking): Drop.
15643         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15644         (ia64_file_start): Don't save and override flag_var_tracking.
15645         (ia64_override_options_after_change): Ditto
15646         flag_schedule_insns_after_reload.
15647         (ia64_reorg): Test original variables.
15648         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
15649         (picochip_flag_var_tracking): Drop.
15650         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
15651         (picochip_option_override): Don't save and override
15652         flag_schedule_insns_after_reload.
15653         (picochip_asm_file_start): Ditto flag_var_tracking.
15654         (picochip_reorg): Test original variables.
15655         * config/spu/spu.c (spu_flag_var_tracking): Drop.
15656         (TARGET_DELAY_VARTRACK): Define.
15657         (spu_var_tracking): New.
15658         (spu_machine_dependent_reorg): Call it.
15659         (asm_file_start): Don't save and override flag_var_tracking.
15660
15661 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
15662
15663         PR target/49163
15664         * config/sh/predicates.md (general_movsrc_operand): Return 0
15665         for memory and memory subreg of which address is an invalid
15666         indexed address for QI and HImode.
15667         (general_movdst_operand): Likewise.
15668
15669 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
15670
15671         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
15672         edges only, when there is a non-local label in the function.
15673         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
15674
15675 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
15676
15677         * config/i386/constraints.md (Y3): New register constraint.
15678         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
15679         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
15680         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
15681         *sse2_interleave_lowv2df.
15682
15683 2011-06-02  Julian Brown  <julian@codesourcery.com>
15684
15685         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
15686         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
15687         (arm_cortex_a5_tune): New.
15688
15689 2011-06-02  Julian Brown  <julian@codesourcery.com>
15690
15691         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
15692         * config/arm/arm.c (arm_default_branch_cost): New.
15693         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
15694         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
15695         (arm_fa726_tune): Set branch_cost field using
15696         arm_default_branch_cost.
15697         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
15698         current_tune structure.
15699         * dojump.c (tm_p.h): Include file.
15700
15701 2011-06-02  Julian Brown  <julian@codesourcery.com>
15702
15703         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
15704         tuning.
15705         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
15706         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
15707         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
15708         field.
15709         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
15710         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
15711         (arm_fa726te_tune): Add prefer_constant_pool setting.
15712         (arm_v6t2_tune, arm_cortex_tune): New.
15713         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
15714         prefer_constant_pool setting.
15715
15716 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
15717
15718         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
15719         switch statement.
15720         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
15721         (*movdf_internal) <case 6,7,8>: Ditto.
15722
15723         * config/i386/constraints.md (Y4): New register constraint.
15724         * config/i386/sse.md (vec_set<mode>_0): Merge with
15725         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
15726         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
15727         *vec_extractv2di_1_sse.
15728         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
15729         and *vec_concatv2di_rex64_sse.
15730
15731 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
15732
15733         PR target/48807
15734         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
15735         of cgraph_local_info for null before attempting to use it.
15736
15737 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
15738
15739         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
15740         (current_function_dynamic_alloc_count): Delete.
15741         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
15742         (expand_builtin_nonlocal_goto): Remove obsolete comment.
15743         (expand_builtin_update_setjmp_buf): Remove dead code.
15744         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
15745         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
15746         support.
15747         * function.c (instantiate_virtual_regs): Likewise.
15748         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
15749         for a block with a single abnormal incoming edge.
15750         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
15751         (SETJMP_VIA_SAVE_AREA): Delete.
15752         * config/sparc/sparc-protos.h (load_got_register): Declare.
15753         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
15754         (load_got_register): Make global.
15755         (sparc_frame_pointer_required): Add 'static'.
15756         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
15757         (sparc_builtin_setjmp_frame_value): New function.
15758         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
15759         (save_stack_nonlocal): New expander.
15760         (restore_stack_nonlocal): Likewise.
15761         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
15762         (nonlocal_goto_internal): New insn.
15763         (goto_handler_and_restore): Delete.
15764         (builtin_setjmp_setup): Likewise.
15765         (do_builtin_setjmp_setup): Likewise.
15766         (setjmp): Likewise.
15767         (builtin_setjmp_receiver): New expander.
15768
15769 2011-06-01  David Li  <davidxl@google.com>
15770
15771         PR middle-end/49261
15772         * tree-pretty-print.c (dump_function_header): Format cleanup.
15773
15774 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
15775
15776         PR target/49238
15777         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
15778         needed when original operands are used for msw_skip comparison.
15779
15780 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15781
15782         PR debug/49250
15783         * var-tracking.c (add_uses, add_stores): Don't call
15784         cselib_subst_to_values on ENTRY_VALUE.
15785
15786 2011-06-01  Diego Novillo  <dnovillo@google.com>
15787
15788         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
15789         output_record_start with LTO_null instead of output_zero.
15790         (lto_output_ts_binfo_tree_pointers): Likewise.
15791         (lto_output_tree): Likewise.
15792         (output_eh_try_list): Likewise.
15793         (output_eh_region): Likewise.
15794         (output_eh_lp): Likewise.
15795         (output_eh_regions): Likewise.
15796         (output_bb): Likewise.
15797         (output_function): Likewise.
15798         (output_unreferenced_globals): Likewise.
15799         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
15800         instead of NUM_TREE_CODES.
15801         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
15802         (lto_output_int_in_range): Change << to >> when shifting VAL.
15803
15804 2011-06-01  Diego Novillo  <dnovillo@google.com>
15805
15806         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
15807         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
15808
15809 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
15810
15811         PR target/45074
15812         * optabs.h (valid_multiword_target_p): Declare.
15813         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
15814         doing multi-word operations.
15815         * optabs.c (expand_binop): Likewise.
15816         (expand_doubleword_bswap): Likewise.
15817         (expand_absneg_bit): Likewise.
15818         (expand_unop): Likewise.
15819         (expand_copysign_bit): Likewise.
15820         (multiword_target_p): New function.
15821
15822 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
15823
15824         PR rtl-optimization/48830
15825         PR rtl-optimization/48808
15826         PR rtl-optimization/48792
15827         * reload.c (push_reload): Check contains_reg_of_mode.
15828         * reload1.c (strip_paradoxical_subreg): New function.
15829         (gen_reload_chain_without_interm_reg_p): Use it to handle
15830         paradoxical subregs.
15831         (emit_output_reload_insns, gen_reload): Likewise.
15832
15833 2011-06-01  David Li  <davidxl@google.com>
15834
15835         * predict.c : Change pass name
15836         * ipa.c: Ditto.
15837         * dce.c: Ditto.
15838         * tree-profile.c: Ditto.
15839         * except.c: Ditto.
15840
15841 2011-06-01  David Li  <davidxl@google.com>
15842
15843         * tree-pretty-print.c (dump_function_header): New function.
15844         * final.c (rest_of_clean_state): Use header dumper.
15845         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
15846         * passes.c (pass_init_dump_file): Use header dumper.
15847
15848 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15849
15850         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
15851         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
15852         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
15853         New functions.
15854         (mem_loc_descriptor): Use them.
15855
15856         * var-tracking.c (create_entry_value): New function.
15857         (vt_add_function_parameter): Use it.
15858
15859 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15860
15861         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
15862         Include <signal.h>, <ucontext.h>.
15863         (sigill_caught): Define.
15864         (sigill_hdlr): New function.
15865         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
15866         insns can be executed.
15867         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
15868         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
15869
15870 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15871
15872         * config/t-slibgcc-darwin: Move to ...
15873         * config/t-slibgcc-dummy: ... this.  Clarify comments.
15874         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
15875         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
15876         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
15877         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
15878         Remove i386/t-crtstuff from tmake_file.
15879         (i[34567]86-*-solaris2*): Remove t-svr4,
15880         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
15881         t-slibgcc-dummy.
15882         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
15883         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
15884         sparc/t-crtfm from tmake_file.
15885         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
15886         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
15887         Remove extra_parts.
15888         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
15889         * config/i386/t-nwld (SHLIB_LINK): Remove.
15890         * config/i386/t-rtems-i386: Rename to ...
15891         * config/i386/t-rtems: ... this.
15892         ($(T)crti.o, $(T)crtn.o): Remove.
15893         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
15894         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
15895         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
15896         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
15897         EXTRA_MULTILIB_PARTS): Remove.
15898         * config/sparc/t-sol2-64: Likewise.
15899         * config/sparc/t-sol2: Remove.
15900         * config/sparc/t-crtin: Remove.
15901         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
15902         * config/i386/gmon-sol2.c: Remove.
15903         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
15904         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
15905         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
15906         * config/i386/sol2-gc1.asm: Remove.
15907         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
15908         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
15909         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
15910         * config/t-slibgcc-sld: Remove.
15911
15912 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
15913
15914         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
15915         base_type_for_mode with op_mode instead of mode.
15916
15917 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
15918
15919         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
15920         Cortex-A15.
15921         * config/arm/arm-tune.md: Regenerate.
15922         * config/arm/arm-tables.opt: Regenerate.
15923         * config/arm/arm.c (FL_DIV): Rename...
15924         (FL_THUMB_DIV): ... to this.
15925         (FL_ARM_DIV): Define.
15926         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
15927         (arm_arch_hwdiv): Remove.
15928         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
15929         (arm_issue_rate): Add cortexr5.
15930         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
15931         __ARM_ARCH_EXT_IDIV__.
15932         (TARGET_IDIV): Define.
15933         (arm_arch_hwdiv): Remove.
15934         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
15935         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
15936         (divsi3, udivsi3): New patterns.
15937         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
15938         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
15939
15940 2011-06-01  Martin Jambor  <mjambor@suse.cz>
15941
15942         * ipa-utils.c (ipa_dfs_info): New field scc_no.
15943         * ipa-utils.c (searchc): Set scc_no.
15944
15945 2011-06-01  Martin Jambor  <mjambor@suse.cz>
15946
15947         * ipa-utils.c (searchc_env): New field allow_overwritable.
15948         (searchc): do not ignore edges to overwritable nodes if indicated
15949         by env->allow_overwritable.
15950         (ipa_reduced_postorder): Set env.allow_overwritable.
15951
15952 2011-06-01  Richard Guenther  <rguenther@suse.de>
15953
15954         * tree.c (free_lang_data): Do not reset boolean_type_node nor
15955         char_type_node.
15956         * lto-streamer.c (lto_record_common_node): Take node pointer,
15957         do not register types.
15958         (lto_preload_common_nodes): Explicitly skip preloading nodes
15959         that differ between frontends.
15960
15961 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
15962
15963         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
15964         NON_FLOAT_REGS.
15965
15966 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
15967
15968         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
15969         parameter value for dump. Dump cost on outermost call only.
15970         (rs6000_memory_move_cost): Dump cost on outermost call only.
15971
15972 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
15973
15974         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
15975         DW_OP_GNU_convert ops.
15976
15977         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
15978         cselib_preserve_constants.
15979         (cselib_lookup_1): If cselib_preserve_constants,
15980         a new VALUE is being created for REG and there is a VALUE for the
15981         same register in wider mode, add another loc with lowpart SUBREG of
15982         the wider VALUE.
15983         (cselib_subst_to_values): Handle ENTRY_VALUE.
15984         * var-tracking.c  (replace_expr_with_values): Return NULL for
15985         ENTRY_VALUE too.
15986         * dwarf2out.c (convert_descriptor_to_signed): New function.
15987         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
15988         instead of two shifts.
15989         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
15990         the right mode if needed.
15991         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
15992         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
15993         convert_descriptor_to_signed.
15994         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
15995         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
15996
15997         PR target/48688
15998         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
15999
16000 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
16001
16002         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
16003         of X87MODEI12 and SWI48x instead of SSEMODEI24.
16004         (SWI248x): New mode iterator, rename from X87MODEI.
16005         (X87MODEI): Remove mode iterator.
16006         (X87MODEI12): Ditto.
16007         (SSEMODEI24): Ditto.
16008
16009 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
16010
16011         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
16012         * doc/invoke.texi: Document max-vartrack-expr-depth.
16013         * var-tracking.c (EXPR_DEPTH): New.
16014         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
16015
16016 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
16017
16018         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
16019         * config/i386/sse.md: Add n to negated FMA pattern names.
16020
16021 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
16022
16023         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
16024
16025 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
16026
16027         * gengtype-state.c (read_state_params_structs): Initialize previous.
16028
16029 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
16030
16031         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
16032         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
16033
16034 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
16035
16036         * config/i386/i386.md (*movtf_internal): Avoid allocating general
16037         registers.  Penalize F*r->o alternative to prevent partial memory
16038         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
16039         CONST_DOUBLE immediates when optimizing function for size.  Do not move
16040         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
16041         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
16042         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
16043         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
16044         alternatives.
16045         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
16046
16047         (fp_register_operand splitters): Use fp_register_operand
16048         constraint.  Do not use FP_REG_P in insn condition.
16049         (any_fp_register_operand splitters): Use any_fp_register_operand
16050         constraint.  Do not use ANY_FP_REG_P in insn condition.
16051
16052 2011-05-31  Jan Hubicka  <jh@suse.cz>
16053
16054         * cgraph.h (cgraph_inline_failed_t): Give enum a name
16055         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
16056         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
16057         (lto_output_edge): Use output_enum and var_len_unsigned.
16058         (lto_output_varpool_node): Likewise.
16059         (input_overwrite_node): Do not take resolution parameter;
16060         extract it from a bitpack.
16061         (input_node): Do not read resolution; use input_enum and
16062         var_len_unsigned.
16063         (input_varpool_node): Likewise.
16064         (input_edge): Likewise.
16065         (input_cgraph_1): Likewise.
16066
16067 2011-05-31  Richard Guenther  <rguenther@suse.de>
16068
16069         * gimple.c (gimple_register_canonical_type): Do not register
16070         any types via gimple_register_type.
16071
16072 2011-05-31  Jan Hubicka  <jh@suse.cz>
16073
16074         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
16075         of thunks.
16076
16077 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
16078
16079         PR rtl-optimization/49235
16080         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
16081         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
16082
16083 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
16084
16085         PR tree-optimization/49093
16086         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
16087         data references.
16088
16089 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
16090
16091         PR debug/49047
16092         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
16093         for concrete functions containing the code of cloned functions.
16094
16095 2011-05-31  Richard Guenther  <rguenther@suse.de>
16096
16097         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
16098         to ...
16099         (forward_propagate_into_comparison_1): ... this.
16100         (forward_propagate_comparison): Rename to ...
16101         (forward_propagate_into_comparison): ... this.  Split out
16102         real forward propagation code to ...
16103         (forward_propagate_comparison): ... this.
16104         (forward_propagate_into_gimple_cond): Remove looping.
16105         (forward_propagate_into_cond): Likewise.
16106         (simplify_not_neg_expr): Return whether we have done something.
16107         (simplify_gimple_switch): Likewise.
16108         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
16109         (ssa_forward_propagate_and_combine): ... this.  Re-structure
16110         to do a forward forward-propagation walk on BBs and a backward
16111         stmt combining walk on BBs.  Consistently re-scan changed statements.
16112         (pass_forwprop): Adjust.
16113
16114 2011-05-30  Ian Lance Taylor  <iant@google.com>
16115
16116         * godump.c (go_format_type): Correct length of name added to
16117         obstack for anonymous field.
16118
16119 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
16120
16121         PR target/49186
16122         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
16123         part of the second operand is 0.
16124
16125 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
16126
16127         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
16128         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
16129         to memory for !TARGET_MEMORY_MISMATCH_STALL.
16130         (*movdf_internal_rex64): Do not penalize F->r alternative.
16131         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
16132         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
16133         when optimizing function for size.  Do not move CONST_DOUBLEs
16134         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
16135         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
16136         SUBREGs.  Do not check for MEM_P operands in the insn condition,
16137         check for ANY_FP_REGNO_P instead.
16138         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
16139         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
16140         function for speed.
16141         * config/i386/i386.c (ix86_option_override_internal): Do not
16142         set TARGET_INTEGER_DFMODE_MOVES here.
16143
16144 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
16145
16146         PR target/49168
16147         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
16148
16149 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
16150
16151         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
16152         DW_TAG_rvalue_reference_type even for
16153         -gdwarf-4 -fno-debug-types-section.
16154
16155 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16156
16157         PR tree-optimization/46728
16158         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
16159         (build_and_insert_binop): New.
16160         (gimple_expand_builtin_pow): Reorder args for
16161         build_and_insert_call; use build_and_insert_binop; add more
16162         optimizations for fractional exponents.
16163
16164 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
16165
16166         PR bootstrap/49190
16167
16168         Revert:
16169         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
16170
16171         * tree.h (struct tree_identifier): Inherit from tree_typed, not
16172         tree_common.
16173         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
16174         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16175         TS_BASE instead of TS_COMMON.
16176         * varasm.c (assemble_name): Remove assert.
16177
16178 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
16179
16180         * config.gcc: Keep obselete list sorted.
16181
16182 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
16183             Eric Botcazou  <ebotcazou@adacore.com>
16184
16185         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
16186         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
16187         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
16188         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
16189         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
16190
16191 2011-05-30  Richard Guenther  <rguenther@suse.de>
16192
16193         * gimple.c (gimple_types_compatible_p_1): Compare record
16194         and union type members properly.
16195
16196 2011-05-30  Richard Guenther  <rguenther@suse.de>
16197
16198         PR tree-optimization/49210
16199         * ipa-split.c (split_function): Care for the case where the call
16200         result is not trivially convertible to the result holding variable.
16201
16202 2011-05-30  Richard Guenther  <rguenther@suse.de>
16203
16204         PR tree-optimization/49218
16205         * tree-vrp.c (adjust_range_with_scev): Properly check whether
16206         overflow occured.
16207
16208 2011-05-30  Richard Guenther  <rguenther@suse.de>
16209
16210         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
16211         New function split out from ...
16212         (forward_propagate_into_gimple_cond): ... here.  Adjust.
16213         (forward_propagate_into_cond): Likewise.
16214         (forward_propagate_comparison): Also propagate into
16215         comparisons on assignment RHS.  Change return value to
16216         behave similar to forward_propagate_into_cond.
16217         (tree_ssa_forward_propagate_single_use_vars): Handle
16218         strict-overflow warnings properly for forward_propagate_comparison.
16219
16220 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16221
16222         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
16223         from plugin linker.
16224         * configure: Regenerate.
16225
16226 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
16227
16228         PR tree-optimization/49199
16229         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
16230         non-reduction operands are either defined in the loop or by induction.
16231
16232 2011-05-29  Xinliang David Li  <davidxl@google.com>
16233
16234         * opts-global.c (handle_common_deferred_options): Handle new options.
16235         * passes.c (register_one_dump_file): Call register_pass_name.
16236         (execute_one_pass): Check explicit enable/disable flag.
16237         (passr_hash): New function.
16238         (passr_eq): Ditto.
16239         (register_pass_name): Ditto.
16240         (get_pass_by_name): Ditto.
16241         (pass_hash): Ditto.
16242         (pass_eq): Ditto.
16243         (enable_pass): Ditto.
16244         (disable_pass): Ditto.
16245         (is_pass_explicitly_enabled_or_disabled): Ditto.
16246
16247 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
16248
16249         * config/i386/i386.md (*movoi_internal_avx): Use
16250         standard_sse_constant_opcode for alternative 0.
16251         (*movti_internal_sse): Ditto.
16252         (*movti_internal_rex64): Use standard_sse_constant_opcode for
16253         alternative 2.
16254         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
16255         sselog1 type moves.
16256         (*movsi_internal): Ditto.
16257         (*movdi_internal): Ditto.  Add ssecvt type moves.
16258
16259 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
16260
16261         PR target/48830
16262         * rtlanal.c (simplify_subreg_regno): Adjust comment.
16263
16264 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
16265
16266         PR rtl-optimization/49095
16267         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
16268         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
16269
16270 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
16271
16272         PR target/43995
16273         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
16274         recurse_p argument.  Only follow register copies if it is set,
16275         and prevent mips_find_pic_call_symbol from recursing.
16276         (mips_find_pic_call_symbol): Add a recurse_p argument.
16277         Pass it to mips_pic_call_symbol_from_set.
16278         (mips_annotate_pic_calls): Update accordingly.
16279
16280 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
16281
16282         * emit-rtl.c (try_split): Use a loop to search for
16283         NOTE_INSN_CALL_ARG_LOCATIONs.
16284
16285 2011-05-29  Richard Guenther  <rguenther@suse.de>
16286
16287         PR tree-optimization/49217
16288         * ipa-pure-const.c (propagate_pure_const): Fix typos.
16289
16290 2011-05-28  Jan Hubicka  <jh@suse.cz>
16291
16292         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
16293         length.
16294         (string_slot_free): Remove
16295         (create_output_block): Initialize obstack.
16296         (destroy_output_block): Free obstack.
16297         (lto_string_index): Add PERSISTENT parameter; do not duplicate
16298         the string unless it needs to be added into the hash.
16299         (lto_output_string_with_length): Add persistent attribute;
16300         handle NULL strings.
16301         (lto_output_string): Add PERSISTENT parameter.
16302         (output_string_cst, output_identifier): Simplify.
16303         (lto_output_location_bitpack): Update.
16304         (lto_output_builtin_tree): Update.
16305         * lto-streamer.h (struct output_block): Add obstack.
16306         (lto_output_string, lto_output_string_with_length): Remove
16307         declarations; functions are static now.
16308
16309 2011-05-28  Jan Hubicka  <jh@suse.cz>
16310
16311         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
16312         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
16313         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
16314         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
16315         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
16316         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
16317         unpack_ts_decl_with_vis_value_fields,
16318         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
16319         lto_get_builtin_tree): Use enum and variable length i/o.
16320         * basic-block.h (profile_status_d): Add PROFILE_LAST.
16321         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
16322         New functions.
16323         (bp_pack_enum, bp_unpack_enum): New macros.
16324
16325 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16326
16327         * genrecog.c: Remove redundant forward declarations.
16328
16329 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16330
16331         * config.gcc: Deprecate mips*-*-openbsd*.
16332
16333 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16334
16335         PR bootstrap/49195
16336         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
16337         for match_op_dup.
16338
16339 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
16340
16341         PR middle-end/48981
16342         * gengtype.c (vec_prefix_type): New function.
16343         (note_def_vec): Use vec_prefix_type and change the length
16344         attribute to be based on the prefix.
16345         * vec.c: Include coretypes.h before vec.h.
16346         (struct vec_prefix): Remove.
16347         (vec_gc_p_reserve): Change the offsetof to sizeof.
16348         (vec_gc_p_reserve_exact): Likewise.
16349         (vec_heap_p_reserve): Likewise.
16350         (vec_heap_p_reserve_exact): Likewise.
16351         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
16352         (vec_stack_p_reserve): Change the offsetof to sizeof.
16353         (vec_stack_p_reserve_exact): Likewise.
16354         * vec.h (struct vec_prefix): New struct definition.
16355         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
16356         (VEC_T_GTY(T,B)): Likewise.
16357         (DEF_VEC_FUNC_P(T)): Use prefix field.
16358         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
16359         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
16360
16361 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16362
16363         PR tree-optimization/46728
16364         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
16365         (powi_as_mults): Add gimple_set_location.
16366         (build_and_insert_call): New.
16367         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
16368         0.5, 0.25, 0.75, 1./3., or 1./6.
16369
16370 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
16371
16372         * doc/contrib.texi: Update copyright years.
16373         (Contributors): Add Zdenek Sojka.
16374
16375 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
16376
16377         * c-decl.c (c_push_function_context): Copy the current statement
16378         list stack.
16379         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
16380         (finish_struct): Call building_stmt_list_p instead of checking
16381         cur_stmt_list.
16382         * c-parser.c (c_parser_postfix_expression): Likewise.
16383         * c-typeck.c (c_end_compound_stmt): Likewise.
16384         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
16385         * tree-iterator.c (stmt_list_cache): Change to a VEC.
16386         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
16387         (free_stmt_list): Likewise.
16388         * tree.h (struct tree_statement_list): Include typed_tree instead
16389         of tree_common.
16390         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
16391         as TS_TYPED instead of TS_COMMON.
16392
16393 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16394             Uros Bizjak  <ubizjak@gmail.com>
16395
16396         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
16397         (HAVE_AS_IX86_TLSGDPTL): Define.
16398         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
16399         (HAVE_AS_IX86_TLSLDMPLT): Define.
16400         * configure: Regenerate.
16401         * config.in: Regenerate.
16402         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
16403         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
16404         TARGET_SUN_TLS, use @tlsgdplt or @plt.
16405         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
16406         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
16407         @tlsldmplt or @plt.
16408         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
16409
16410 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
16411
16412         * sched-int.h (struct _haifa_deps_insn_data): New members cond
16413         and reverse_cond.
16414         (INSN_COND, INSN_REVERSE_COND): New macros.
16415         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
16416         once.
16417         (sched_get_condition_with_rev): Cache the results, and look them up
16418         if possible.
16419         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
16420         are clobbered by the current insn.
16421         * target.def (exposed_pipline): New sched data hook.
16422         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
16423         * doc/tm.texi: Regenerate.
16424
16425 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16426
16427         PR tree-optimization/49170
16428         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
16429         sincos or cexp.
16430
16431 2011-05-27  Richard Guenther  <rguenther@suse.de>
16432
16433         PR middle-end/49189
16434         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
16435         of comparisons.
16436
16437 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
16438
16439         * haifa-sched.c (sched_scan_info): Remove.
16440         (schedule_block): Call sched_extend_luids rather than sched_init_luids
16441         with NULL args.
16442         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
16443         Remove functions.
16444         (sched_scan): Remove.
16445         (sched_extend_luids): Renamed from luids_extend_insn and no longer
16446         static.  All callers changed.
16447         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
16448         static.  All callers changed.
16449         (sched_init_luids): Remove all arguments except the first.  All
16450         callers changed.  Don't use sched_scan.
16451         (haifa_init_h_i_d): Likewise.
16452         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
16453         manually rather than using sched_init_luids.  Likewise with
16454         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
16455         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
16456         rather than sched_init_luids with NULL args.
16457         * sel-sched-ir.c (new_insns): Remove variable.
16458         (sched_scan): New static function, previously in haifa-sched.c.  Remove
16459         all arguments but the first two; all callers changed.
16460         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
16461         rather than sched_init_luids.
16462         (sel_init_bbs): Remove second argument.  All callers changed.
16463         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
16464         with NULL arguments.
16465         (create_insn_rtx_from_pattern): Likewise.
16466         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
16467         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
16468         (sched_init_insn_luid, sched_extend_luids): Declare.
16469         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
16470         declarations.
16471
16472 2011-05-27  Richard Guenther  <rguenther@suse.de>
16473
16474         PR middle-end/49177
16475         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
16476         A CMP B ? (T) true : (T) false for non-integral types T again.
16477
16478 2011-05-27  Jan Hubicka  <jh@suse.cz>
16479
16480         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
16481         so 0 means NULL string.
16482         (lto_output_string_with_length): ... here.
16483         (lto_output_string, output_string_cst, output_identifier): Update
16484         handling of NULL strings.
16485         (lto_output_location_bitpack): New function.
16486         (lto_output_location): Use it.
16487         (lto_output_tree_ref): Use output_record_start.
16488         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
16489         len values.
16490         * lto-streamer-in.c (string_for_index): Break out from ...; offset
16491         values by 1.
16492         (input_string_internal): ... here;
16493         (input_string_cst, input_identifier, lto_input_string): Update handling
16494         of NULL strings.
16495         (lto_input_location_bitpack): New function
16496         (lto_input_location): Use it.
16497         (unpack_ts_type_common_value_fields): Pack align & alias in var len
16498         values.
16499         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
16500         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
16501         (bp_pack_value): Sanity check the value range.
16502         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
16503         New functions.
16504         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
16505         New functions.
16506
16507 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
16508
16509         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
16510         call_arg_location instructions down the floor.
16511
16512 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
16513
16514         PR rtl-optimization/49154
16515         * ira.c (setup_pressure_classes): Process class without sublcasses
16516         as a candidate for pressure classes.
16517
16518 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
16519
16520         PR rtl-optimization/48575
16521         * genrecog.c (position_type): New enum.
16522         (position): New structure.
16523         (decision): Use position structure instead of a string.
16524         (root_pos, peep2_insn_pos_list): New variables.
16525         (next_position, compare_positions): New functions.
16526         (new_decision): Use position structures instead of strings.
16527         (maybe_both_true): Likewise.
16528         (change_state): Likewise.
16529         (write_tree): Likewise.
16530         (make_insn_sequence): Likewise.
16531
16532 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
16533
16534         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
16535         TS_BASE instead of TS_COMMON.
16536         (find_decls_types_r): Check for TS_TYPED structure before looking at
16537         TREE_TYPE.
16538         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
16539         Add chain field.
16540         (BLOCK_CHAIN): Use new chain field.
16541
16542 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
16543
16544         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
16545         moves expensive on Power7 also.
16546
16547 2011-05-26  Richard Guenther  <rguenther@suse.de>
16548
16549         * fold-const.c (fold_unary_loc): Remove bogus code.
16550
16551 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
16552
16553         * tree.h (struct tree_identifier): Inherit from tree_typed, not
16554         tree_common.
16555         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
16556         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
16557         TS_BASE instead of TS_COMMON.
16558         * varasm.c (assemble_name): Remove assert.
16559
16560 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
16561
16562         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
16563         substituted first.
16564         * libgcc-std.ver: Delete file.
16565
16566 2011-05-26  Richard Guenther  <rguenther@suse.de>
16567
16568         PR tree-optimization/48702
16569         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
16570         only when we know the base address is within bounds.
16571         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
16572         assume the base address of TARGET_MEM_REFs is in bounds.
16573
16574 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16575
16576         PR target/49099
16577         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
16578         declaration in TARGET_SOLARIS.
16579
16580 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
16581
16582         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
16583         The instruction is then expanded explicitly.
16584         (supported_compare): Callable instruction.
16585         (compare): Likewise.
16586
16587 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
16588
16589         PR c++/49165
16590         * gimplify.c (shortcut_cond_r): Don't special case
16591         COND_EXPRs if they have void type on one of their arms.
16592
16593 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
16594
16595         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
16596         to reduce duplication, and to achieve a slightly more logical order
16597         of operations.
16598
16599 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
16600
16601         PR tree-optimization/49161
16602         * tree-vrp.c (struct case_info): New type.
16603         (compare_case_labels): Sort case_info structs instead of
16604         trees, and not primarily by CASE_LABEL uids but by
16605         label_for_block indexes.
16606         (find_switch_asserts): Put case labels into struct case_info
16607         array instead of TREE_VEC, adjust sorting, compare label_for_block
16608         values instead of CASE_LABELs.
16609
16610 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16611
16612         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
16613         ("orndi3_neon"): Likewise.
16614         ("bic<mode>3_neon"): Likewise.
16615
16616 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
16617
16618         PR tree-optimization/49038
16619         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
16620         Ensure at least one epilogue iteration if required by data
16621         accesses with gaps.
16622         * tree-vectorizer.h (struct _loop_vec_info): Add new field
16623         to mark loops that require peeling for gaps.
16624         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
16625         (vect_get_known_peeling_cost): Take peeling for gaps into
16626         account.
16627         (vect_transform_loop): Generate epilogue if required by data
16628         access with gaps.
16629         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
16630         loop as requiring an epilogue if there are gaps in the end of
16631         the strided group.
16632
16633 2011-05-25  Ian Lance Taylor  <iant@google.com>
16634
16635         * godump.c (go_format_type): Output the first field with a usable
16636         Go type, if any.
16637
16638 2011-05-25  Ian Lance Taylor  <iant@google.com>
16639
16640         * godump.c (go_format_type): Check for invalid type names, pointer
16641         target types, and struct field types.
16642
16643 2011-05-25  Jason Merrill  <jason@redhat.com>
16644
16645         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
16646
16647 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
16648
16649         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
16650
16651 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16652
16653         * config/i386/i386.md (*movqi_extv_1)): Put back
16654         "register_operand" check in "type" calculation.
16655         (*movqi_extzv_2): Likewise.
16656
16657 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16658
16659         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
16660
16661 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
16662
16663         PR bootstrap/49160
16664         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
16665         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
16666         __divxc3, __divtc3): Wrap definitions in #ifndef.
16667
16668 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16669
16670         PR target/49142
16671         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
16672         "register_operand" check and replace q_regs_operand with
16673         QIreg_operand in "type" calculation.
16674         (*movqi_extv_1): Likewise.
16675         (*movqi_extzv_2_rex64): Likewise.
16676         (*movqi_extzv_2): Likewise.
16677
16678         * config/i386/predicates.md (QIreg_operand): New.
16679
16680 2011-05-25  Richard Guenther  <rguenther@suse.de>
16681
16682         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
16683         type-based offset disambiguation, streamline MEM_REF and
16684         TARGET_MEM_REF handling.
16685
16686 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16687
16688         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
16689         (bdesc_special_args): Add pause intrinsic.
16690
16691         * config/i386/i386.md (UNSPEC_PAUSE): New.
16692         (pause): Likewise.
16693         (*pause): Likewise.
16694         * config/i386/ia32intrin.h (__pause): Likewise.
16695
16696         * doc/extend.texi (X86 Built-in Functions): Add documentation for
16697         pause intrinsic.
16698
16699 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16700
16701         PR tree-optimization/46728
16702         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
16703         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
16704
16705 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
16706
16707         * tree.h (struct tree_exp): Inherit from struct tree_typed.
16708         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
16709         instead of TS_COMMON.
16710
16711 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
16712
16713         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
16714         LIBGCC2_GNU_PREFIX is defined.
16715         (__N): New macro.
16716         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
16717         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
16718         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
16719         __clz_tab): Define using __N.
16720         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
16721         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
16722         * target.def (libfunc_gnu_prefix): New hook.
16723         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
16724         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
16725         * doc/tm.texi: Regenerate.
16726         * system.h (LIBGCC2_GNU_PREFIX): Poison.
16727         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
16728         account.
16729         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
16730         (init_optabs): Likewise for the bswap libfuncs.
16731         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
16732         and divide.
16733         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
16734         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
16735         * libgcc-std.ver: Remove.
16736         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
16737         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
16738         libgcc-std.ver.
16739         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16740         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
16741         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
16742         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
16743         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
16744         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16745         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
16746         * config/fixed-bit.h (FIXED_OP): Define differently depending on
16747         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
16748         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
16749
16750 2011-05-25  Jan Hubicka  <jh@suse.cz>
16751
16752         * lto-streamer-out.c (output_record_start): Use lto_output_enum
16753         (lto_output_tree): Use output_record_start.
16754         * lto-streamer-in.c (input_record_start): Use lto_input_enum
16755         (lto_get_pickled_tree): Use input_record_start.
16756         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
16757         (lto_value_range_error): New function.
16758         * lto-streamer.h (lto_value_range_error): Declare.
16759         (lto_output_int_in_range, lto_input_int_in_range): New functions.
16760         (lto_output_enum, lto_input_enum): New macros.
16761
16762 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
16763
16764         * common.opt (flag_stack_usage_info): New variable.
16765         (-Wstack-usage): New option.
16766         * doc/invoke.texi (Warning options): Document -Wstack-usage.
16767         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
16768         <OPT_fstack_usage>: Likewise.
16769         * toplev.c (output_stack_usage): Handle -Wstack-usage.
16770         * calls.c (expand_call): Test flag_stack_usage_info variable instead
16771         of flag_stack_usage.
16772         (emit_library_call_value_1): Likewise.
16773         * explow.c (allocate_dynamic_stack_space): Likewise.
16774         * function.c (instantiate_virtual_regs ): Likewise.
16775         (prepare_function_start): Likewise.
16776         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
16777         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
16778         * config/arm/arm.c (arm_expand_prologue): Likewise.
16779         (thumb1_expand_prologue): Likewise.
16780         * config/avr/avr.c (expand_prologue): Likewise.
16781         * config/i386/i386.c (ix86_expand_prologue): Likewise.
16782         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
16783         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
16784         * config/mips/mips.c (mips_expand_prologue): Likewise.
16785         * config/pa/pa.c (hppa_expand_prologue): Likewise.
16786         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
16787         * config/s390/s390.c (s390_emit_prologue): Likewise.
16788         * config/sh/sh.c (sh_expand_prologue): Likewise.
16789         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
16790         * config/spu/spu.c (spu_expand_prologue): Likewise.
16791
16792 2011-05-25  Richard Guenther  <rguenther@suse.de>
16793
16794         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
16795         (gimple_canonical_types_compatible_p): Likewise.
16796
16797 2011-05-25  Jan Hubicka  <jh@suse.cz>
16798
16799         PR middle-end/49062
16800         * ipa.c (function_and_variable_visibility): Only add to same
16801         comdat group list if DECL_ONE_ONLY.
16802
16803 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
16804
16805         PR rtl-optimization/49014
16806         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
16807
16808 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16809
16810         PR target/49128
16811         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
16812
16813 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
16814
16815         PR rtl-optimization/48757
16816         * ira-build.c (loop_with_eh_edge_p): Rename to
16817         loop_with_complex_edge_p, check edges on complexity, make function
16818         conditional.
16819         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
16820         conditional.
16821
16822 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16823
16824         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
16825         force flag_ira_share_save_slots to 0.
16826
16827 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16828
16829         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
16830         (vt_initialize): Set PROLOGUE_BB unconditionally.
16831         Add block comment about CFA_BASE_RTX machinery.
16832         Reset FP_CFA_OFFSET to -1 on all invalid paths.
16833         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
16834
16835 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
16836
16837         PR objc/48187
16838         * c-parser.c (c_parser_objc_class_instance_variables): More robust
16839         parsing of syntax error in ObjC instance variable lists.  In
16840         particular, avoid an infinite loop if there is a stray ']'.
16841         Updated error message.
16842
16843 2011-05-24  Ian Lance Taylor  <iant@google.com>
16844
16845         * godump.c (go_define): Don't accept a string immediately after
16846         another operand.
16847
16848 2011-05-24  Ian Lance Taylor  <iant@google.com>
16849
16850         * godump.c (struct godump_container): Add invalid_hash field.
16851         (go_format_type): Return false if type is found in invalid_hash.
16852         (go_output_typedef): Add invalid type to invalid_hash.
16853         (go_finish): Create and delete invalid_hash.
16854
16855 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16856
16857         PR tree-optimization/46728
16858         * tree-ssa-math-opts.c (powi_table): New.
16859         (powi_lookup_cost): New.
16860         (powi_cost): New.
16861         (powi_as_mults_1): New.
16862         (powi_as_mults): New.
16863         (gimple_expand_builtin_powi): New.
16864         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
16865         (gate_cse_sincos): Remove sincos/cexp restriction.
16866
16867 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16868
16869         PR target/3746
16870         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
16871         mips-tdump native.
16872         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
16873         * mips-tdump.c: Likewise.
16874
16875 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
16876
16877         PR target/49128
16878         * config/i386/driver-i386.c (host_detect_local_cpu): Always
16879         add -mno-XXX.  Handle FMA.
16880
16881 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
16882
16883         PR rtl-optimization/48633
16884         * ira-build.c (loop_with_eh_edge_p): New function.
16885         (mark_loops_for_removal): Use it.
16886
16887 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
16888
16889         PR rtl-optimization/48971
16890         * ira.c (setup_pressure_classes): Don't check register move cost
16891         for classes with one registers.  Don't add pressure class if there
16892         is a pressure class with the same available hard registers.
16893         Check contains_reg_of_mode.  Fix a typo in collecting
16894         temp_hard_regset.  Ignore hard registers not belonging to a class.
16895
16896 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
16897
16898         PR target/49133
16899         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
16900
16901 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16902             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16903
16904         PR gcov-profile/48845
16905         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
16906
16907 2011-05-24  Richard Guenther  <rguenther@suse.de>
16908
16909         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
16910         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
16911         (gimple_types_compatible_p_1): Adjust.
16912         (iterative_hash_canonical_type): Do not bother about complete vs.
16913         incomplete types.
16914         (gimple_canonical_types_compatible_p): Likewise.
16915
16916 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16917
16918         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
16919
16920 2011-05-24  Richard Guenther  <rguenther@suse.de>
16921
16922         PR bootstrap/49078
16923         * gimple.c (gimple_register_canonical_type): Revert
16924         previous change.
16925         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
16926         does not for a tree for the case where it matters.  Cache
16927         pointer-type alias-sets.
16928
16929 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
16930
16931         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
16932         (OBJS): Remove options.o, opts-common.o and prefix.o.
16933         (OBJS-libcommon-target): New.
16934         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
16935         (BACKEND): Include libcommon-target.a.
16936         (MOSTLYCLEANFILES): Include libcommon-target.a.
16937         (libcommon-target.a): New.
16938         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
16939         prefix.o.
16940
16941 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
16942
16943         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
16944         parts of output shared with the driver.
16945         * optc-gen.awk: Don't generate parts of output not shared with the
16946         driver.
16947         * opth-gen.awk: Remove GCC_DRIVER conditionals.
16948         * doc/options.texi (SourcerInclude): Mention options-save.c.
16949         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
16950         (OBJS): Add options-save.o.
16951         (options-save.c, options-save.o): New.
16952         (options.o): Update dependencies.
16953         (gcc-options.o): Remove.
16954         (mostlyclean): Remove options-save.c.
16955
16956 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16957
16958         PR debug/49032
16959         * dbxout.c: Include cgraph.h.
16960         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
16961         and without value expr, return NULL if no varpool node exists for
16962         it or if it is not needed.
16963         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
16964
16965         PR c/49120
16966         * c-decl.c (start_decl): Convert expr to void_type_node.
16967
16968 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
16969
16970         PR rtl-optimization/48826
16971         * emit-rtl.c (try_split): When splitting a call that is followed
16972         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
16973
16974 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
16975
16976         * cfgexpand.c (expand_debug_expr): For unused non-addressable
16977         parameters passed in memory prefer using DECL_INCOMING_RTL over
16978         the pseudos it will be copied into.
16979
16980 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
16981
16982         PR target/47315
16983         * config/i386/i386.c (ix86_option_override_internal): Save the
16984         initial options after checking vzeroupper.
16985
16986 2011-05-23  David Li  <davidxl@google.com>
16987
16988         PR tree-optimization/48988
16989         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
16990         Initialize has_valid_pred for each pred chain.
16991
16992 2011-05-23  Richard Guenther  <rguenther@suse.de>
16993
16994         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
16995         (iterative_hash_gimple_type): Always hash type names.
16996
16997 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
16998
16999         * c-typeck.c (build_function_call_vec): Tweak call to
17000         check_function_arguments.
17001
17002 2011-05-23  Richard Guenther  <rguenther@suse.de>
17003
17004         PR tree-optimization/49115
17005         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
17006         is not necessarily carried out, do not claim it kills the ref.
17007         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
17008
17009 2011-05-23  Richard Guenther  <rguenther@suse.de>
17010
17011         PR middle-end/15419
17012         * builtins.c (fold_builtin_memory_op): Be less restrictive about
17013         what pointer types we accept for folding.
17014
17015 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17016
17017         * gthr-gnat.c: Remove.
17018         * gthr-gnat.h: Remove.
17019         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
17020         * config/t-freebsd (LIB2ADDEH): Likewise.
17021         * config/t-linux (LIB2ADDEH): Likewise.
17022         * config/t-sol2 (LIB2ADDEH): Likewise.
17023         * config/ia64/t-vms (LIB2ADDEH): Likewise.
17024         * configure.ac (target_thread_file): Remove gnat handling.
17025         * configure: Regenerate.
17026         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
17027
17028 2011-05-23  Tristan Gingold  <gingold@adacore.com>
17029             Eric Botcazou  <ebotcazou@adacore.com>
17030
17031         * gcov.c (create_file_names): If no object directory is specified,
17032         keep the directory of the file.
17033
17034 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17035
17036         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
17037         * configure: Regenerate.
17038
17039 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
17040
17041         PR middle-end/48973
17042         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
17043         failed and the comparison has a single bit signed type, use
17044         constm1_rtx instead of const1_rtx for true value.
17045         (do_store_flag): If ops->type is single bit signed type, disable
17046         signel bit test optimization and pass -1 instead of 1 as last
17047         parameter to emit_store_flag_force.
17048
17049 2011-05-23  Tom de Vries  <tom@codesourcery.com>
17050
17051         PR target/45098
17052         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
17053         function.
17054         (infer_loop_bounds_from_undefined): Use new function.
17055
17056 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
17057
17058         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
17059         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
17060         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
17061         and -O0 otherwise.
17062         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
17063
17064 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
17065
17066         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
17067         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
17068         returns true.
17069
17070 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
17071
17072         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
17073
17074 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
17075
17076         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
17077         UNSPEC_MOVE_PIC pattern.
17078
17079 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
17080
17081         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
17082         (sparc-*-rtems*): Likewise.
17083         (sparc64-*-elf*): Likewise.
17084         (sparc64-*-rtems*): Likewise.
17085         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
17086         * config/sparc/t-crtin: New file.
17087         * config/sparc/t-sol2 (crti.o): Delete rule.
17088         (crtn.o): Likewise.
17089         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
17090         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
17091         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
17092         (ENDFILE_SPEC): Add crtn.o.
17093
17094 2011-05-22  Tom de Vries  <tom@codesourcery.com>
17095
17096         PR middle-end/48689
17097         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
17098         CODE_CONTAINS_STRUCT (TS_COMMON).
17099
17100 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
17101
17102         PR middle-end/49029
17103         * expmed.c (extract_fixed_bit_field): Test whether target can be used
17104         only after deciding which mode to use.
17105
17106 2011-05-22  Tom de Vries  <tom@codesourcery.com>
17107
17108         PR target/45098
17109         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
17110         for call to get_shiftadd_cost.
17111
17112 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
17113
17114         PR target/49104
17115         * config/i386/cpuid.h (bit_MMXEXT): New define.
17116
17117 2011-05-22  Nick Clifton  <nickc@redhat.com>
17118
17119         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
17120         initialisation of non-existant args[2] element.  Use args[] array
17121         not arg[] array to pass arguments to build_function_type_list.
17122
17123 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
17124
17125         PR tree-optimization/49087
17126         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
17127
17128 2011-05-21  Jason Merrill  <jason@redhat.com>
17129
17130         PR c++/49092
17131         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
17132         static storage duration.
17133
17134 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
17135
17136         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
17137         frame pointer.
17138
17139 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
17140
17141         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
17142         false if there are call-saved registers here...
17143         (sparc_can_use_return_insn_p): ...but here instead.
17144         (save_or_restore_regs): Fix thinko.
17145         (sparc_expand_prologue): Use current_function_is_leaf.
17146         (sparc_frame_pointer_required): Likewise.
17147
17148 2011-05-21  Nick Clifton  <nickc@redhat.com>
17149
17150         PR target/49098
17151         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
17152
17153 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
17154
17155         * gengtype.c (walk_type): Implemented "atomic" GTY option.
17156         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
17157
17158 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
17159
17160         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
17161         * optc-gen.awk: Move common code to opt-read.awk.
17162         * opth-gen.awk: Likewise.
17163         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
17164
17165 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
17166
17167         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
17168
17169 2011-05-20  Tom de Vries  <tom@codesourcery.com>
17170
17171         PR target/45098
17172         * tree-ssa-loop-ivopts.c: Include expmed.h.
17173         (get_shiftadd_cost): New function.
17174         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
17175
17176 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
17177
17178         PR bootstrap/49086
17179         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
17180         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
17181
17182 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
17183
17184         * Makefile.in: Update comment referring to $(OBJS-common).
17185
17186 2011-05-20  Ian Lance Taylor  <iant@google.com>
17187
17188         * godump.c (go_output_typedef): Put enum constants in the macro
17189         hash table to avoid duplicate Go const definitions.
17190
17191 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
17192
17193         * Makefile.in (LIBDEPS): Add libcommon.a.
17194         (LIBS): Likewise.
17195         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
17196         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
17197         pretty-print.o and version.o.
17198         (OBJS-libcommon): New.
17199         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
17200         (BACKEND): Add libcommon.a.
17201         (MOSTLYCLEANFILES): Likewise.
17202         (libcommon.a): New.
17203         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
17204         (cpp$(exeext)): Likewise.
17205         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
17206         pretty-print.o and input.o.
17207         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
17208         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
17209         (errors.o): Remove.
17210         (mips-tfile): Don't explicitly use version.o.
17211         (mips-tdump): Likewise.
17212         (gcov.o): Depend on $(DIAGNOSTIC_H).
17213         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
17214         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
17215         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
17216         * gcov-dump.c: Include intl.h and diagnostic.h.
17217         (main): Initialize diagnostics.
17218         * gcov.c: Include diagnostic.h.
17219         (fnotice): Remove.
17220         (main): Initialize diagnostics.
17221         * lto-wrapper.c: Include diagnostic.h.
17222         (main): Initialize diagnostics.
17223
17224 2011-05-20  Michael Matz  <matz@suse.de>
17225
17226         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
17227
17228 2011-05-20  Michael Matz  <matz@suse.de>
17229             Richard Guenther  <rguenther@suse.de>
17230
17231         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
17232         use lto_streamer_cache_append directly instead of returning a VEC.
17233         (preload_common_node): Remove.
17234         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
17235         track seen nodes.
17236         (lto_streamer_cache_create): Call lto_preload_common_nodes.
17237
17238 2011-05-20  Richard Guenther  <rguenther@suse.de>
17239
17240         PR tree-optimization/49079
17241         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
17242         MEM_REFs correctly for the trailing array access detection.
17243         Special case constants the same way as decls for overall size
17244         constraining.
17245
17246 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
17247
17248         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
17249         argument expansion.
17250
17251 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
17252
17253         PR tree-optimization/49073
17254         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
17255         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
17256         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
17257
17258 2011-05-20  Richard Guenther  <rguenther@suse.de>
17259
17260         PR middle-end/48849
17261         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
17262         of pointer types the same way the middle-end does.
17263
17264 2011-05-20  Richard Guenther  <rguenther@suse.de>
17265
17266         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
17267         or pointer-to chains.  Delay all fixup to uniquify_nodes.
17268
17269 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
17270
17271         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
17272         (fma4_fmaddsub): Likewise
17273
17274 2011-05-19  Jan Hubicka  <jh@suse.cz>
17275
17276         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
17277         (GIMPLE_TYPE_PAIR_SIZE): New macro.
17278         (type_pair_cache): New static var.
17279         (lookup_type_pair): Use fixed sized custom hash; make inline.
17280         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
17281         calls of lookup_type_pair.
17282         (print_gimple_types_stats): Remove cache stats.
17283         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
17284         and gtc_ob.
17285
17286 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
17287
17288         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
17289         when TARGET_RDRND is active.
17290         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
17291         Generate dummy SImode target register when target is NULL.
17292
17293 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
17294
17295         * config/arm/arm-fpus.def: New.
17296         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
17297         arm-fpus.def.
17298         * config/arm/arm-tables.opt: Regenerate.
17299         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
17300         (arm_option_override): Don't decode FPU name to string here.
17301         * config/arm/arm.opt (mfpu=): Use Enum.
17302         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
17303         Update dependencies.
17304
17305 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
17306
17307         * collect2.c: Include diagnostic.h.
17308         (fatal_perror, fatal, error, fancy_abort): Remove.
17309         (main): Set progname.  Call xmalloc_set_program_name and
17310         diagnostic_initialize.
17311         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
17312         scan_libraries, resolve_lib_name): Call fatal_error instead of
17313         fatal and fatal_perror.
17314         * collect2.h (error, fatal, fatal_perror): Don't declare.
17315         * tlink.c: Include diagnostic-core.h.
17316         (recompile_files): Call fatal_error instead of fatal_perror.
17317         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
17318         pretty-print.o and input.o.
17319         (collect2.o, tlink.o): Update dependencies.
17320
17321 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17322
17323         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
17324
17325 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17326
17327         PR target/40483
17328         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
17329         COMDAT group syntax, both SPARC and x86 variants.
17330         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
17331         * configure: Regenerate.
17332         * config/sol2.h (TARGET_SOLARIS): Define.
17333         (PUSHSECTION_FORMAT): Remove.
17334         (SECTION_NAME_FORMAT): Define.
17335         * config/sol2.c: Include hashtab.h.
17336         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
17337         expansion, using SECTION_NAME_FORMAT.
17338         (solaris_comdat_htab): New variable.
17339         (struct comdat_entry): Define.
17340         (comdat_hash): New function.
17341         (comdat_eq): New function.
17342         (solaris_elf_asm_comdat_section): New function.
17343         (solaris_define_comdat_signature): New function.
17344         (solaris_code_end): New function.
17345         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
17346         (solaris_code_end): Declare.
17347         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
17348         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
17349         solaris_code_end.
17350         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
17351         Remove ATTRIBUTE_UNUSED.
17352         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
17353         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
17354         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
17355         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
17356         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
17357         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
17358         (PUSHSECTION_FORMAT): Remove.
17359         (SECTION_NAME_FORMAT): Redefine.
17360
17361 2011-05-19  Kai Tietz  <ktietz@redhat.com>
17362
17363         * tree-cfg.c (verify_gimple_assign_binary): Barf on
17364         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
17365         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
17366
17367 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
17368             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17369
17370         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
17371
17372 2011-05-19  Richard Guenther  <rguenther@suse.de>
17373
17374         PR middle-end/48985
17375         * tree-object-size.c (addr_object_size): If the pointed-to
17376         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
17377
17378 2011-05-19  Richard Guenther  <rguenther@suse.de>
17379
17380         * gimple.c (gimple_types_compatible_p_1): Compare names of
17381         the types themselves.
17382         (iterative_hash_gimple_type): And hash them that way.
17383         (gimple_register_type_1): If we register a main variant properly
17384         initialize the leader to ourselves.
17385
17386 2011-05-19  Tom de Vries  <tom@codesourcery.com>
17387
17388         PR target/45098
17389         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
17390         get_loop_invariant_expr_id.
17391         (get_loop_invariant_expr_id): Use get_expr_id.
17392         (parm_decl_cost): New function.
17393         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
17394         Improve bound cost estimation.  Use different inv_expr_id for elim and
17395         express cases.
17396
17397 2011-05-19  Tom de Vries  <tom@codesourcery.com>
17398
17399         PR target/45098
17400         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
17401         cost_base.cost == 0.
17402
17403 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
17404
17405         PR target/49002
17406         * config/i386/sse.md
17407         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
17408         load cast.
17409
17410 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
17411
17412         PR tree-optimization/49039
17413         * tree-vrp.c (extract_range_from_binary_expr): For
17414         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
17415         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
17416
17417 2011-05-18  Tom de Vries  <tom@codesourcery.com>
17418
17419         PR target/45098
17420         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
17421
17422 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
17423
17424         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
17425         (*tls_global_dynamic_64): Ditto.
17426         (*tls_local_dynamic_base_32_gnu): Ditto.
17427         (*tls_local_dynamic_base_64): Ditto.
17428         (tls_initial_exec_64_sun): Ditto.
17429
17430 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
17431
17432         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
17433         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
17434         bf592-none.
17435         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
17436         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
17437         * config/bfin/bfin.c (bfin_cpus): Add bf592.
17438         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
17439         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
17440         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
17441         * config/bfin/elf.h (LIB_SPEC): Add bf592.
17442
17443 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
17444
17445         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
17446         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
17447         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
17448         target_thread_pointer, arm_structure_size_boundary, struct
17449         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
17450         struct abi_name, arm_all_abis): Remove.
17451         (arm_option_override) Don't process most enumerated option values here.
17452         Don't process target_fpe_name here.  Work with integer not string for
17453         structure size boundary; use separate diagnostics for each case.
17454         * config/arm/arm.h (enum float_abi_type, enum
17455         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
17456         to arm-opts.h.
17457         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
17458         arm_structure_size_boundary): Remove.
17459         * config/arm/arm.opt (mabi=): Use Enum and Init.
17460         (arm_abi_type): New Enum and EnumValue entries.
17461         (mfloat-abi=): Use Enum and Init.
17462         (float_abi_type): New Enum and EnumValue entries.
17463         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
17464         (mfp16-format=): Use Enum and Init.
17465         (arm_fp16_format_type): New Enum and EnumValue entries.
17466         (mstructure-size-boundary=): Use UInteger and Init.
17467         (mtp=): Use Enum and Init.
17468         (arm_tp_type): New Enum and EnumValue entries.
17469
17470 2011-05-18  Richard Guenther  <rguenther@suse.de>
17471
17472         PR tree-optimization/49018
17473         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
17474         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
17475         gimple_has_side_effects.
17476
17477 2011-05-18  Richard Guenther  <rguenther@suse.de>
17478
17479         * gimple.c (gimple_register_type_1): New function, split out from ...
17480         (gimple_register_type): ... here.  Avoid infinite recursion.
17481
17482 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
17483
17484         PR tree-optimization/41881
17485         * tree-vectorizer.h (struct _loop_vec_info): Add new field
17486         reduction_chains along with a macro for its access.
17487         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
17488         (destroy_loop_vec_info): Free reduction chains.
17489         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
17490         (vect_is_slp_reduction): New function.
17491         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
17492         (vect_create_epilog_for_reduction): Support SLP reduction chains.
17493         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
17494         definition types for reduction chains.
17495         (vect_supported_load_permutation_p): Don't allow permutations for
17496         reduction chains.
17497         (vect_analyze_slp_instance): Support reduction chains.
17498         (vect_analyze_slp): Try to build SLP instance from reduction chains.
17499         (vect_get_constant_vectors):  Handle reduction chains.
17500         (vect_schedule_slp_instance): Mark the first statement of the
17501         reduction chain as reduction.
17502
17503 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
17504
17505         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
17506         names for group elements access.
17507         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
17508         reduction chains as well.  Remove data reference and interleaving
17509         related words from the fields names.
17510         * tree-vect-loop.c (vect_transform_loop): Use new names for group
17511         elements access.
17512         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
17513         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
17514         vect_update_interleaving_chain, vect_same_range_drs,
17515         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
17516         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
17517         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
17518         vect_analyze_group_access, vect_analyze_data_ref_access,
17519         vect_create_data_ref_ptr, vect_transform_strided_load,
17520         vect_record_strided_load_vectors): Likewise.
17521         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
17522         vect_model_load_cost, vectorizable_store, vectorizable_load,
17523         vect_remove_stores, new_stmt_vec_info): Likewise.
17524         * tree-vect-slp.c (vect_build_slp_tree,
17525         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
17526
17527 2011-05-18  Richard Guenther  <rguenther@suse.de>
17528
17529         PR middle-end/48989
17530         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
17531         operand verification.
17532         (verify_gimple_assign_binary): Likewise.
17533         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
17534         to non-1-precision BOOLEAN_TYPEs.
17535
17536 2011-05-18  Tom de Vries  <tom@codesourcery.com>
17537
17538         PR target/45098
17539         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
17540
17541 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
17542
17543         PR tree-optimization/49000
17544         * tree-ssa.c (execute_update_addresses_taken): Call
17545         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
17546         be rewritten and decl has been marked for renaming, reset
17547         the debug stmt.
17548
17549 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
17550
17551         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
17552         enum_opts_set when testing if attributes have set -mfpmath=.
17553
17554 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
17555
17556         * config/mips/mips.c (mips_handle_option): Remove unused variable.
17557
17558 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
17559
17560         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
17561         info->entry with 0
17562         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
17563         id.transform_lang_insert_block with NULL.
17564
17565 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
17566
17567         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
17568         (output_fp_compare): Change args 3 and 4 to bool.
17569         (ix86_expand_call): Change arg 6 to bool.
17570         (ix86_attr_length_immediate_default): Change arg 2 to bool.
17571         (ix86_attr_length_vex_default): Change arg 3 to bool.
17572         * config/i386/i386.md: Update all uses.
17573         * config/i386/i386.c: Ditto.
17574         (ix86_flags_dependent): Change return type to bool.
17575
17576 2011-05-17  Richard Guenther  <rguenther@suse.de>
17577
17578         * gimple.c (type_hash_pair_compare): Fix comparison.
17579
17580 2011-05-17  Richard Guenther  <rguenther@suse.de>
17581
17582         * gimple.c (iterative_hash_gimple_type): Simplify singleton
17583         case some more, fix final hash value of the non-singleton case.
17584
17585 2011-05-17  Richard Guenther  <rguenther@suse.de>
17586
17587         PR bootstrap/49013
17588         Revert
17589         2011-05-16  Richard Guenther  <rguenther@suse.de>
17590
17591         * gimple.c (gimple_types_compatible_p_1): Use names of the
17592         type itself, not its main variant.
17593         (iterative_hash_gimple_type): Likewise.
17594
17595 2011-05-17  Richard Guenther  <rguenther@suse.de>
17596
17597         * gimple.c (gimple_register_canonical_type): Use the main-variant
17598         leader for computing the canonical type.
17599
17600 2011-05-17  Nick Clifton  <nickc@redhat.com>
17601
17602         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
17603         moves.
17604
17605         * config/rx/rx.md: Add peephole to remove redundant extensions
17606         after loads.
17607         (bitset_in_memory): Use rx_restricted_mem_operand.
17608         (bitinvert_in_memory): Likewise.
17609         (bitclr_in_memory): Likewise.
17610
17611 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
17612             Nick Clifton  <nickc@redhat.com>
17613
17614         * config/rx/rx.md: Add peepholes to match a register move followed
17615         by a comparison of the moved register.  Replace these with an
17616         addition of zero that does both actions in one instruction.
17617
17618 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
17619
17620         PR target/48986
17621         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
17622         predicate to allow CONST_INT.
17623         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
17624
17625 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
17626
17627         * opts-common.c (opt_enum_arg_to_value): New.
17628         * opts.h (opt_enum_arg_to_value): Declare.
17629         * config/i386/i386.opt (fpmath): Remove.
17630         (mfpmath=): Use Enum, Init and Save.
17631         (fpmath_unit): New Enum and EnumValue entries.
17632         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
17633         name for function fpmath state.
17634         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
17635         * config/i386/i386.c: Include diagnostic.h.
17636         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
17637         (ix86_target_string): Take enum fpmath_unit value instead of string.
17638         (ix86_debug_options): Update call to ix86_target_string.
17639         (ix86_option_override_internal): Don't process fpmath strings here.
17640         (x86_function_specific_save, ix86_function_specific_restore):
17641         Don't handle fpmath state specially.
17642         (ix86_function_specific_print): Pass fpmath state to
17643         ix86_target_string instead of printing in this function.
17644         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
17645         Handle enum attributes.
17646         (IX86_ATTR_ENUM, ix86_opt_enum): New.
17647         (ix86_valid_target_attribute_tree): Update option_strings
17648         handling.  Handle fpmath as enum option.
17649         (ix86_can_inline_p): Update field names for function fpmath state.
17650         (ix86_expand_builtin): Update call to ix86_target_string.
17651         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
17652         (ix86_fpmath): Remove.
17653         * config/i386/t-i386 (i386.o): Update dependencies.
17654
17655 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
17656
17657         PR preprocessor/48677
17658         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
17659         from decoded_options[0], not from itself.
17660
17661 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
17662
17663         * config/i386/constraints.md (z): New constraint.
17664         * config/i386/i386.c (c): New mode attribute.
17665         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
17666         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
17667         constraint for operand 0.
17668         (*call_vzeroupper): Ditto.
17669         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
17670         (*call_rex64_ms_sysv_vzeroupper): Ditto.
17671         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
17672         Use "lzm" constraint for operand 0.
17673         (*call_pop_vzeroupper): Ditto.
17674         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
17675         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
17676         constraint for operand 0.
17677         (*sibcall_vzeroupper): Ditto.
17678         (*sibcall_rex64_ms_sysv): Ditto.
17679         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
17680         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
17681         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
17682         (*sibcall_pop_vzeroupper): Ditto.
17683         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
17684         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
17685         mode iterator.  Use "<c>zm" constraint for operand 1.
17686         (*call_value_vzeroupper): Ditto.
17687         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
17688         for operand 1.
17689         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
17690         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
17691         *call_value_pop_1.  Use "lzm" constraint for operand 1.
17692         (*call_value_pop_vzeroupper): Ditto.
17693         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
17694         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
17695         mode iterator.  Use "Uz" constraint for operand 1.
17696         (*sibcall_value_vzeroupper): Ditto.
17697         (*sibcall_value_rex64_ms_sysv): Ditto.
17698         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
17699         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
17700         constraint for operand 1.
17701         (*sibcall_value_pop_vzeroupper): Ditto.
17702         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
17703         and "z" constraint for operand 2.
17704         (*tls_global_dynamic_32_gnu): Ditto.
17705         (*tls_local_dynamic_base_32_gnu): Ditto.
17706         (*tls_local_dynamic_base_64): Ditto.
17707         (*tls_local_dynamic_32_once): Ditto.
17708         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
17709         Update all callers.
17710         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
17711
17712 2011-05-16  Richard Guenther  <rguenther@suse.de>
17713
17714         * gimple.c (gimple_types_compatible_p_1): Use names of the
17715         type itself, not its main variant.
17716         (iterative_hash_gimple_type): Likewise.
17717
17718 2011-05-16  Richard Guenther  <rguenther@suse.de>
17719
17720         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
17721         always visit pointer target and function result and argument types.
17722
17723 2011-05-16  Jason Merrill  <jason@redhat.com>
17724
17725         PR c++/48999
17726         * tree-inline.c (copy_statement_list): Put back recursion.
17727
17728 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
17729
17730         PR target/27663
17731         PR target/41076
17732         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
17733         * config/avr/avr.md ("*ior<mode>qi.byte0",
17734         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
17735
17736 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
17737
17738         PR target/45099
17739         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
17740         register is needed for a function argument.
17741
17742 2011-05-16  Richard Guenther  <rguenther@suse.de>
17743
17744         * gimple.c (struct type_hash_pair): New type.
17745         (type_hash_pair_compare): New function.
17746         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
17747
17748 2011-05-16  Revital Eres  <revital.eres@linaro.org>
17749
17750         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
17751
17752 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
17753
17754         * config/i386/i386.md (floating point move splitters): Fix
17755         usage of standard_80387_constant_p.
17756         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
17757
17758 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
17759
17760         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
17761
17762 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
17763
17764         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
17765         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
17766         (tree_ssa_lim_finalize): Likewise.
17767
17768 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
17769
17770         * config/i386/constraint.md (Yd, Yx): New register constraints.
17771         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
17772         Yd conditional register constraint.
17773         (*movtf_internal): Use standard_sse_constant_opcode.
17774         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
17775         Yx conditional register constraint.
17776         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
17777         Yd conditional register constraint.  Use standard_sse_constant_p to
17778         check for valid SSE constants and call standard_sse_constant_opcode to
17779         output SSE insn.
17780         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
17781         constants and call standard_sse_constant_opcode to output SSE insn.
17782         * config/i386/i386.c (ix86_option_ovverride_internal): Set
17783         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
17784         optimize_size is set.
17785         (standard_sse_constant_opcode): Output conditional AVX insn templates.
17786
17787 2011-05-14  Tobias Burnus  <burnus@net-b.de>
17788
17789         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
17790
17791 2011-05-13  Martin Jambor  <mjambor@suse.cz>
17792
17793         * ipa-prop.c (ipa_cst_from_jfunc): New function.
17794         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
17795         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
17796         (evaluate_conditions_for_ipcp_clone): Removed.
17797         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
17798         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
17799         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
17800
17801 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
17802
17803         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
17804         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
17805         lieu of MAY_HAVE_DEBUG_STMTS.
17806         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
17807         debug statements if !MAY_HAVE_DEBUG_STMTS.
17808
17809 2011-05-13  Martin Thuresson  <martint@google.com>
17810
17811         PR gcov-profile/47793
17812         * libgcov.c (gcov_exit): Support relative profile paths.
17813         * doc/invoke.texi (-fprofile-dir): Update for above change.
17814
17815 2011-05-13  Richard Guenther  <rguenther@suse.de>
17816
17817         * gimple.c (gimple_canonical_types_compatible_p): Do not use
17818         type-pair caching, do not compare hashes.
17819
17820 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
17821
17822         PR middle-end/48965
17823         * tree-cfg.c (edge_to_cases_cleanup): Return true.
17824         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
17825
17826 2011-05-13  Kai Tietz  <ktietz@redhat.com>
17827
17828         * gimplify.c (gimplify_expr): Make sure operand is boolified.
17829         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
17830         compatible type for TRUTH_NOT_EXPR.
17831
17832 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
17833
17834         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
17835         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
17836         can_create_pseudo_p ().
17837
17838 2011-05-13  Richard Guenther  <rguenther@suse.de>
17839
17840         PR lto/48978
17841         * gimple.c (iterative_hash_gimple_type): Revert change in
17842         pointer target and function result and argument hashing.
17843
17844 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
17845
17846         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
17847         (*movxf_internal_nointeger): Ditto.
17848         (*movdf_internal_rex64): Ditto.
17849         (*movdf_internal): Ditto.
17850         (*movdf_internal_nointeger): Ditto.
17851         (*movsf_internal): Ditto.
17852         (sincos splitters): Use can_create_pseudo ().
17853
17854 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
17855
17856         * config/i386/i386-opts.h: New.
17857         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
17858         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
17859         ix86_section_threshold): Remove.
17860         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
17861         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
17862         OPT_mbranch_cost_.
17863         (ix86_option_override_internal): Don't decode strings for options
17864         other than -march=, -mtune= and -mfpmath=.  Don't allow for
17865         __attribute__ uses in remaining diagnostics for options with
17866         string arguments.  Don't check for integer arguments being negative.
17867         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
17868         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
17869         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
17870         ix86_branch_cost, ix86_section_threshold): Remove.
17871         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
17872         HeaderInclude.
17873         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
17874         but not Var.
17875         (masm=): Use Enum and Init.
17876         (asm_dialect): New Enum and EnumValue entries.
17877         (mbranch-cost=): Use UInteger.
17878         (mlarge-data-threshold=): Use UInteger and Init.
17879         (mcmodel=): Use Enum and Init.
17880         (cmodel): New Enum and EnumValue entries.
17881         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
17882         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
17883         mregparm=): Use UInteger.
17884         (mstringop-strategy=): Use Enum and Init.
17885         (stringop_alg): New Enum and EnumValue entries.
17886         (mtls-dialect=): Use Enum and Init.
17887         (tls_dialect): New Enum and EnumValue entries.
17888         (mabi=): Use Enum and Init.
17889         (calling_abi): New Enum and EnumValue entries.
17890         (mveclibabi=): Use Enum and Init.
17891         (ix86_veclibabi): New Enum and EnumValue entries.
17892
17893 2011-05-13  Nick Clifton  <nickc@redhat.com>
17894
17895         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
17896         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
17897
17898 2011-05-13  Kai Tietz  <ktietz@redhat.com>
17899
17900         PR middle-end/48984
17901         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
17902         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
17903         (gimple_boolify): Check for cast for boolean_type_node instead for
17904         BOOLEAN_TYPE.
17905
17906 2011-05-13  Richard Guenther  <rguenther@suse.de>
17907
17908         PR tree-optimization/48172
17909         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
17910         multiplying by number of iterations for equal step.
17911         (vect_create_cond_for_alias_checks): Likewise.
17912
17913 2011-05-13  Andreas Schwab  <schwab@redhat.com>
17914
17915         * configure.ac: Use AS_HELP_STRING throughout.
17916         * configure: Regenerate.
17917
17918 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
17919
17920         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
17921         (ix86_emit_restore_regs_using_mov): Likewise.
17922         (ix86_emit_restore_sse_regs_using_mov): Likewise.
17923
17924 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
17925
17926         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
17927         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
17928         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
17929         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
17930         RTX_OK_FOR_OLO10_P): ...here.
17931         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
17932         SYMBOLIC_CONST.
17933
17934 2011-05-12  Kai Tietz  <ktietz@redhat.com>
17935
17936         * gimplify.c (gimple_boolify): Re-boolify expression
17937         arguments even if expression type is of kind BOOLEAN_TYPE.
17938         (gimplify_boolean_expr): Removed.
17939         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
17940         and XOR. Additional take care that we keep expression's type.
17941         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
17942         of TRUTH_AND|OR|XOR_EXPR.
17943
17944 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
17945
17946         PR tree-optimization/48975
17947         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
17948         on all bbs here and free and clear ifc_bbs at the end.
17949
17950 2011-05-12  Richard Guenther  <rguenther@suse.de>
17951
17952         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
17953         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
17954         until after simple checks.
17955         (gimple_types_compatible_p): Likewise.
17956         (iterative_hash_gimple_type): Always hash pointer targets
17957         and function return and argument types.
17958         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
17959         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
17960         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
17961         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
17962         completely in the simple compare section.
17963         (gimple_register_canonical_type): Query the cache again after
17964         registering.
17965
17966 2011-05-12  Richard Guenther  <rguenther@suse.de>
17967
17968         PR tree-optimization/48172
17969         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
17970         the number of iterations from the segment size calculation.
17971         (vect_create_cond_for_alias_checks): Adjust.
17972
17973 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
17974
17975         PR debug/48967
17976         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
17977         if validate_subreg fails.
17978
17979 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
17980
17981         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
17982         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
17983         early.
17984
17985 2011-05-12  DJ Delorie  <dj@redhat.com>
17986
17987         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
17988         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
17989         created builtin into rx_builtins array.
17990         (rx_builtin_decl): New function.
17991         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
17992
17993 2011-05-12  DJ Delorie  <dj@redhat.com>
17994             Nick Clifton  <nickc@redhat.com>
17995
17996         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
17997         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
17998         (rx_is_legitimate_address): Add pre-decrement and post-increment
17999         addressing in HImode and QImode.  Fix test for out of range
18000         REG+INT addressing.
18001         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
18002         (rx_align_for_label): Test label before extracting its usage count.
18003         (rx_adjust_insn_lengths): Fix selection of insn codes.
18004         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
18005
18006 2011-05-11  Jason Merrill  <jason@redhat.com>
18007
18008         * tree.c (type_hash_canon): Use struct tree_type_non_common.
18009
18010 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
18011
18012         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
18013         reindent the subsequent block.
18014
18015 2011-05-11  Satoru Takabayashi  <satorux@google.com>
18016             Paul Pluzhnikov  <ppluzhnikov@google.com>
18017
18018         * doc/install.texi (Configuration): Document --with-linker-hash-style.
18019         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
18020         * config.in: Add LINKER_HASH_STYLE.
18021         * configure.ac: Add --with-linker-hash-style.
18022         * configure: Regenerate.
18023
18024 2011-05-11  Richard Guenther  <rguenther@suse.de>
18025
18026         PR middle-end/48964
18027         * gimple.c (iterative_hash_canonical_type): Fix typo.
18028
18029 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
18030
18031         * config/i386/i386.c (legitimize_tls_address)
18032         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
18033         expanders directly for TARGET_GNU2_TLS.  Determine pic and
18034         __tls_get_addr symbol reference here.  Update call to
18035         gen_tls_global_dynamic_{32,64} for added arguments.
18036         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
18037         expanders directly for TARGET_GNU2_TLS.  Determine
18038         __tls_get_addr symbol reference here.  Update call to
18039         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
18040         unique UNSPEC REG_EQUIV to libcall block.
18041         (ix86_tls_get_addr): Declare static.
18042         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
18043         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
18044         Do not determine pic and __tls_get_addr symbol reference here. Do not
18045         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
18046         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
18047         (tls_global_dynamic_64): Add operand 2.  Do not determine
18048         __tls_get_addr symbol reference here.  Do not call
18049         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
18050         (tls_local_dynamic_base64): Ditto for operand 1.
18051
18052 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
18053
18054         * function.c (expand_function_start): Initialize stack_check_probe_note
18055         only if the generic stack checking mechanism is used.
18056
18057 2011-05-11  Richard Guenther  <rguenther@suse.de>
18058
18059         PR tree-optimization/15256
18060         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
18061         (A & B) | C, combine (A op CST1) op CST2.
18062         (tree_ssa_forward_propagate_single_use_vars): Only bother to
18063         visit assigns that have uses.
18064
18065 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
18066
18067         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
18068         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
18069         (unpack_ts_type_common_value_fields): ...this.  Update comment.
18070         (unpack_value_fields): Adjust for renaming.
18071         (lto_input_ts_type_tree_pointers): Split into...
18072         (lto_input_ts_type_common_tree_pointer): ...this and...
18073         (lto_input_ts_type_non_common_tree_pointers): ...this.
18074         (lto_input_tree_pointers): Adjust for above split.
18075         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
18076         (pack_ts_type_common_value_fields): ...this.  Update comment.
18077         (lto_output_ts_type_tree_pointers): Split into...
18078         (lto_output_ts_type_common_tree_pointers): ...this and...
18079         (lto_output_ts_type_non_common_tree_pointers): ...this.
18080         (lto_output_tree_pointers): Adjust for above split.
18081         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
18082         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
18083         * stor-layout.c (vector_type_mode): Adjust location of mode field.
18084         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
18085         Define.
18086         (struct tree_type): Split into...
18087         (struct tree_type_common: ...this and...
18088         (struct tree_type_with_lang_specific): ...this and...
18089         (struct tree_type_non_common): ...this.  Adjust accessor macros
18090         accordingly.
18091         (TYPE_VALUES_RAW): Define.
18092         (union tree_node): Update for above changes.
18093         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
18094         TS_TYPE_NON_COMMON.
18095         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
18096         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
18097         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
18098         * treestructu.def (TS_TYPE): Remove.
18099         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
18100         Define.
18101
18102 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
18103
18104         PR debug/48159
18105         * tree-ssa.c (reset_debug_uses): New function.
18106         * tree-flow.h (reset_debug_uses): New prototype.
18107         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
18108         * tree-loop-distribution.c (generate_loops_for_partition): Call
18109         reset_debug_uses on the stmts that will be removed.  Keep around
18110         all debug stmts, don't count them as bits in partition bitmap.
18111         (generate_builtin): Don't count debug stmts or labels as bits in
18112         partition bitmap.
18113
18114 2011-05-11  Richard Guenther  <rguenther@suse.de>
18115
18116         * gimple.c (gimple_type_hash_1): Merge with ...
18117         (gimple_type_hash): ... this.
18118         (gtc_visit): Remove mode parameter and simplify accordingly.
18119         (gimple_types_compatible_p_1): Likewise.
18120         (gimple_types_compatible_p): Likewise.
18121         (iterative_hash_gimple_type): Likewise.
18122         (visit): Likewise.
18123         (gimple_type_eq): Adjust.
18124
18125 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18126
18127         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
18128         enters the branch create an anti edge in the opposite direction
18129         to prevent the creation of reg-moves.
18130         * modulo-sched.c: Adjust comment to reflect the fact we are
18131         scheduling closing branch.
18132         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
18133         (stage_count): New field in struct partial_schedule.
18134         (calculate_stage_count): New function.
18135         (normalize_sched_times): Rename to reset_sched_times and handle
18136         incrementing the sched time of the nodes by a constant value
18137         passed as parameter.
18138         (duplicate_insns_of_cycles): Skip closing branch.
18139         (sms_schedule_by_order): Schedule closing branch.
18140         (ps_insn_find_column): Handle closing branch.
18141         (sms_schedule): Call reset_sched_times and adjust the code to
18142         support scheduling of the closing branch.
18143         (ps_insert_empty_row): Update calls to normalize_sched_times
18144         and rotate_partial_schedule functions.
18145
18146 2011-05-11  Richard Guenther  <rguenther@suse.de>
18147
18148         PR middle-end/48953
18149         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
18150
18151 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
18152
18153         * opts.c (finish_options): Move warning settings from process_options.
18154         * toplev.c (process_options): Move warning settings to finish_options.
18155
18156 2011-05-11  Richard Guenther  <rguenther@suse.de>
18157
18158         PR tree-optimization/18041
18159         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
18160         (simplify_bitwise_binary): ... this.  Handle operand conversions
18161         by applying them to the result instead.
18162         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
18163
18164 2011-05-11  Richard Guenther  <rguenther@suse.de>
18165
18166         * gimple.c (gimple_canonical_types_compatible_p): Split out
18167         from gimple_types_compatible_p and friends.  Do not recurse
18168         to pointed-to types.
18169         (gimple_canonical_type_eq): Use it.
18170         (iterative_hash_canonical_type): Split out from
18171         iterative_hash_gimple_type and friends.  Do not recurse
18172         to pointed-to types.
18173         (gimple_canonical_type_hash): Use it, allocate the hash here.
18174
18175 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18176
18177         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
18178         recognizing doloop.
18179
18180 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18181
18182         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
18183         instead of PREV_INSN.
18184
18185 2011-05-11  Revital Eres  <revital.eres@linaro.org>
18186
18187         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
18188         * loop-doloop.c (doloop_condition_get): Likewise.
18189         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
18190         (doloop_end): New.
18191         * config/arm/arm.md (*addsi3_compare0): Remove "*".
18192
18193 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
18194
18195         * tree.def (CASE_LABEL_EXPR): Add an operand.
18196         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
18197
18198 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18199
18200         * c-decl.c (c_override_global_bindings_to_false): Remove.
18201         (global_bindings_p): Don't check
18202         c_override_global_bindings_to_false.
18203         * c-tree.h (c_override_global_bindings_to_false): Remove.
18204         * c-typeck.c (composite_type): Don't set
18205         c_override_global_bindings_to_false.
18206
18207 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
18208
18209         PR target/48857, 48495
18210         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
18211         (VSX_MODE): Ditto.
18212         (VSX_MOVE_MODE): Ditto.
18213         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
18214         VSX vector types.  Add V2DImode.
18215         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
18216         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
18217         (MODES_TIEABLE_P): Ditto.
18218
18219         * config/rs6000/rs6000.c (rs6000_emit_move): Use
18220         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
18221         VSX_VECTOR_MODE.
18222         (init_cumulative_args): Ditto.
18223         (rs6000_function_arg_boundary): Ditto.
18224         (rs6000_function_arg_advance_1): Ditto.
18225         (rs6000_function_arg): Ditto.
18226         (rs6000_function_ok_for_sibcall): Ditto.
18227         (emit_frame_save): Ditto.
18228         (rs6000_function_value): Ditto.
18229         (rs6000_libcall_value): Ditto.
18230
18231 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18232
18233         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
18234         i386/darwin-lib.h to $libgcc_tm_file.
18235         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
18236
18237 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18238
18239         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
18240
18241 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18242
18243         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
18244         * config/rs6000/rs6000-tables.opt: New file (generated).
18245         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
18246         rs6000/rs6000-tables.opt to extra_options.
18247         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
18248         * config/rs6000/rs6000.c (rs6000_select): Remove.
18249         (processor_target_table): Move contents to rs6000-cpus.def.
18250         (darwin_rs6000_override_options): Check
18251         global_options_set.x_rs6000_cpu_index instead of
18252         rs6000_select[1].string.
18253         (rs6000_option_override_internal): Likewise.
18254         (rs6000_handle_option): Don't assert that global structures are in
18255         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
18256         (rs6000_default_cpu): New variable.
18257         (rs6000_file_start): Set it instead of local default_cpu.  Check
18258         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
18259         global_options_set.x_rs6000_tune_index instead of rs6000_select.
18260         (rs6000_darwin_file_start): Check rs6000_default_cpu and
18261         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
18262         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
18263         rs6000_select): Remove.
18264         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
18265         Remove.
18266         (mcpu=, mtune=): Use Var, Init, Enum and Save.
18267         * config/rs6000/t-rs6000
18268         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
18269         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
18270         global_options_set.x_rs6000_cpu_index instead of
18271         rs6000_select[1].string.
18272         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
18273         global_options_set.x_rs6000_cpu_index instead of
18274         rs6000_select[1].string.
18275
18276 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
18277
18278         * config.gcc (libgcc_tm_file): Define instead of including files
18279         from ../../libgcc/config/ in tm_file.
18280         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
18281         * configure: Regenerate.
18282         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
18283         libgcc_tm.h, cs-libgcc_tm.h): New.
18284         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
18285         (clean): Remove libgcc_tm.h.
18286         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
18287         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
18288         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
18289
18290 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
18291
18292         PR target/48896
18293         * config/avr/avr.c (avr_ret_register): Return unsigned int
18294         instead of int.
18295         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
18296         it to avr_libcall_value.
18297         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
18298         expand_expr.
18299         (avr_expand_binop_builtin): Ditto.
18300         (avr_expand_unop_builtin): Ditto.
18301
18302 2011-05-10  DJ Delorie  <dj@redhat.com>
18303
18304         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
18305         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
18306         * config/rx/rx.c (rx_align_for_label): Add label and
18307         uses_threshold parameters.  Do not align when the label is not
18308         used enough.
18309         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
18310
18311 2011-05-10  Richard Guenther  <rguenther@suse.de>
18312
18313         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
18314         a series of conversions and apply foldings similar to what
18315         fold-const does.
18316         (tree_ssa_forward_propagate_single_use_vars): Call it.
18317
18318 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
18319
18320         PR tree-optimization/48611
18321         PR tree-optimization/48794
18322         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
18323         referenced from RESX or EH_DISPATCH arguments.
18324
18325         PR debug/48928
18326         * dfp.c (decimal_to_decnumber): Handle conversion from
18327         dconst{1,2,m1,half}.
18328
18329 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18330
18331         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
18332         for !flag_prefer_avx128.
18333         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
18334
18335 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
18336
18337         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
18338         (fold_ternary_loc): Use expr_location_or.
18339
18340 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
18341
18342         PR debug/48853
18343         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
18344         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
18345         Pmode and mem_mode is not VOIDmode.
18346
18347 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
18348
18349         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
18350         TYPE_QUAL_RESTRICT): Convert to enum.
18351
18352 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18353
18354         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
18355         (const_pow2_1_to_8_operand): Ditto.
18356         (const_pow2_1_to_128_operand): Ditto.
18357         (const_pow2_1_to_32768_operand): Ditto.
18358         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
18359         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
18360         in insn constraint to check integer value of operand 3.
18361         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
18362
18363         (PINSR_MODE): New mode iterator.
18364         (sse2p4_1): New mode attribute.
18365         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
18366         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
18367         iterator.  Use const_int_operand instead of
18368         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
18369         exact_log2 in insn constraint to check integer value of operand 3.
18370
18371 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18372
18373         * config/i386/sse.md (blendbits): Remove mode attribute.
18374         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
18375         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
18376         Check integer value of operand 3 in insn constraint.
18377
18378 2011-05-09  Richard Guenther  <rguenther@suse.de>
18379
18380         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
18381         for diagnostics.
18382         (lto_symtab_merge): Likewise.  Do not register types here.
18383         (lto_symtab_merge_decls_2): Likewise.
18384         (lto_symtab_merge_decls_1): Likewise.
18385         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
18386         * gimple.c (enum gtc_mode): Declare.
18387         (gimple_types_compatible_p): Make static.
18388
18389 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18390
18391         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
18392         temporary register to match Pmode.
18393
18394 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18395
18396         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
18397         and *vec_concatv4si_1_avx.
18398
18399 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18400
18401         PR rtl-optimization/48927
18402         * ira-conflicts.c (commutative_constraint_p): Use
18403         recog_data.alternative_enabled_p to disable alternatives where
18404         "enabled" attribute is false.
18405         (get_dup_num): Ditto.
18406         * ira-lives.c (single_reg_class): Ditto.
18407         (ira_implicitly_set_insn_hard_regs): Ditto.
18408
18409 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
18410
18411         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
18412         (dataflow_set_preserve_mem_locs): Likewise.
18413
18414 2011-05-09  Philipp Thomas  <pth@suse.de>
18415
18416         * config/mep/mep.c (mep_validate_vliw): Syntax description
18417         should not be translated.
18418
18419 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
18420
18421         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
18422         * config/mips/mips-tables.opt: New file (generated).
18423         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
18424         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
18425         MIPS_ARCH_OPTION_NATIVE): Define.
18426         * config/mips/mips.c (mips_cpu_info_table): Move contents to
18427         mips-cpus.def.
18428         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
18429         mips_parse_cpu): Remove.
18430         (mips_cpu_info_from_opt, mips_default_arch): New.
18431         (mips_handle_option): Don't assert that global structures are in
18432         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
18433         (mips_option_override): Use new variables and functions to set
18434         state of these options.  Use strcmp to check for individual CPU names.
18435         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
18436         definition.
18437         * config/mips/mips.opt (march=): Use ToLower and Enum.
18438         (mips): Use ToLower, Enum and Var.
18439         (mtune=): Use ToLower and Enum.
18440         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
18441
18442 2011-05-08  Jan Hubicka  <jh@suse.cz>
18443
18444         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
18445         Arrange type pairs to be UID ordered.
18446         (gimple_lookup_type_leader): Make inline.
18447
18448 2011-05-09  Nick Clifton  <nickc@redhat.com>
18449
18450         PR target/48899
18451         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
18452         PROCESSOR_DEFAULT.
18453
18454         PR target/48897
18455         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
18456         variable 's'.
18457
18458 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
18459
18460         * combine.c (simplify_comparison): Abstract out parts into...
18461         (simplify_compare_const): ... new function.
18462         (try_combine): Generalize parallel arithmetic/compare combining
18463         to call simplify_compare_const() and CANONICALIZE_COMPARE().
18464
18465 2011-05-08  Jan Hubicka  <jh@suse.cz>
18466
18467         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
18468         (cgraph_create_virtual_clone): Call hooks once virtual clone
18469         is finished.
18470         * cgraph.h (cgraph_clone_node): Update prototype.
18471         * ipa-cp.c (ipcp_estimate_growth): Use
18472         estimate_ipcp_clone_size_and_time.
18473         * ipa-inline-transform.c (clone_inlined_nodes): Update.
18474         * lto-cgraph.c (input_node): Update.
18475         * ipa-inline.c (recursive_inlining): Update.
18476         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
18477         (evaluate_conditions_for_known_args): Break out from ...
18478         (evaluate_conditions_for_edge): ... here.
18479         (evaluate_conditions_for_ipcp_clone): New function.
18480         (inline_node_duplication_hook): Update clone summary based
18481         on parameter map.
18482         (estimate_callee_size_and_time): Rename to ...
18483         (estimate_node_size_and_time): take NODE instead of EDGE;
18484         take POSSIBLE_TRUTHS as argument.
18485         (estimate_callee_size_and_time): Update.
18486         (estimate_ipcp_clone_size_and_time): New function.
18487         (do_estimate_edge_time): Update.
18488
18489 2011-05-08  Richard Guenther  <rguenther@suse.de>
18490
18491         PR middle-end/48908
18492         PR middle-end/48905
18493         * expmed.c (expand_shift_1): Compute adjusted constant shift
18494         amount manually.
18495
18496 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
18497
18498         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
18499
18500 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
18501
18502         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
18503
18504 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
18505
18506         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
18507
18508 2011-05-07  Jan Hubicka  <jh@suse.cz>
18509
18510         * ipa-inline-transform.c (inline_call): Account when program size
18511         decreases.
18512         * ipa-inline.c (relative_time_benefit): New function.
18513         (edge_badness): Reorganize to be power 2 based; fix thinko when
18514         computing badness for negative growth; update comments to match
18515         reality; better dumps.
18516
18517 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
18518
18519         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
18520         type to bool and adjust comment.
18521         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
18522         (fold_mathfn_compare): Remove calls to global_bindings_p.
18523         (fold_inf_compare): Likewise.
18524         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
18525         * c-tree.h (global_bindings_p): Adjust prototype.
18526         * c-decl.c (global_bindings_p): Return bool and simplify.
18527
18528 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
18529
18530         PR tree-optimization/48837
18531         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
18532         when accumulator transformation is performed.
18533
18534 2011-05-06  Jan Hubicka  <jh@suse.cz>
18535
18536         * i386.h (ix86_tune_indices): Add
18537         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
18538         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
18539         * i386.c (initial_ix86_tune_features): Add
18540         X86_SOFTARE_PREFETCHING_BENEFICIAL.
18541         (software_prefetching_beneficial_p): Remove predicate.
18542         (ix86_option_override_internal): Use new macro.
18543
18544 2011-05-06  Jan Hubicka  <jh@suse.cz>
18545
18546         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
18547
18548 2011-05-06  Jan Hubicka  <jh@suse.cz>
18549
18550         * cgraph.c (cgraph_add_thunk): Create real function node instead
18551         of alias node; finalize it and mark needed/reachale; arrange visibility
18552         to be right and add it into the corresponding same comdat group list.
18553         (dump_cgraph_node): Dump thunks.
18554         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
18555         cgraph_function_with_gimple_body_p,
18556         cgraph_first_function_with_gimple_body,
18557         cgraph_next_function_with_gimple_body): New functions.
18558         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
18559         New macros.
18560         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
18561         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18562         * cgraphunit.c (cgraph_finalize_function): Only look into possible
18563         devirtualization when optimizing.
18564         (verify_cgraph_node): Verify thunks.
18565         (cgraph_analyze_function): Analyze thunks.
18566         (cgraph_mark_functions_to_output): Output thunks only in combination
18567         with function they are assigned to.
18568         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
18569         alias into normal node.
18570         (assemble_thunks): New functoin.
18571         (cgraph_expand_function): Use it.
18572         * lto-cgraph.c (lto_output_node): Stream thunks.
18573         (input_overwrite_node): Stream in thunks.
18574         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
18575         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
18576         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
18577         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
18578         (inline_analyze_function): Do not care about thunk jump functions.
18579         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
18580         * ipa-prop.c (ipa_prop_write_jump_functions): Use
18581         cgraph_function_with_gimple_body_p.
18582         * passes.c (do_per_function_toporder): Use
18583         cgraph_function_with_gimple_body_p.
18584         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
18585         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
18586         (function_called_by_processed_nodes_p): Likewise.
18587
18588 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
18589
18590         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
18591         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
18592         entries.
18593         (mabi=): Replace with separate entries for mabi=altivec,
18594         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
18595         mabi=ieeelongdouble and mabi=ibmlongdouble.
18596         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
18597         check for -mabi=spe without SPE ABI support here.
18598         (rs6000_handle_option): Replace OPT_mabi_ handling with
18599         OPT_mabi_altivec and OPT_mabi_spe handling.
18600
18601 2011-05-06  Cary Coutant  <ccoutant@google.com>
18602
18603         * dwarf2out.c (contains_subprogram_definition): New function.
18604         (should_move_die_to_comdat): Call it.
18605
18606 2011-05-06  Jeff Law  <law@redhat.com>
18607
18608         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
18609         remove_ctrl_stmt_and_useless_edges.
18610         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
18611         (fixup_template_block, thread_single_edge): Likewise.
18612         (mark_threaded_blocks): Use THREAD_TARGET.
18613
18614 2011-05-06  Alan Modra  <amodra@gmail.com>
18615
18616         PR target/48900
18617         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
18618         const0_rtx as the arg to the dummy __tls_get_addr libcall.
18619
18620 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
18621
18622         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
18623         constraint modifier to "r".
18624
18625 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
18626
18627         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
18628         fall through for OPT_mcmodel_.
18629
18630 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18631
18632         * config/s390/s390.c (s390_asm_trampoline_template): Comment
18633         instruction sizes.
18634         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
18635
18636 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18637
18638         PR target/47930
18639         * config/arm/arm.opt (marm): Document it.
18640         (mthumb): Reject negative variant.
18641
18642 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
18643
18644         PR target/48898
18645         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
18646         Fix typo in "ccvt" variable name.
18647
18648 2011-05-06  Tristan Gingold  <gingold@adacore.com>
18649
18650         PR target/48895
18651         * config/vms/vms-ar.c (main): Remove cwd variable.
18652
18653 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
18654
18655         PR debug/48902
18656         * var-tracking.c (prepare_call_arguments): Move else before #endif.
18657
18658 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
18659
18660         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
18661         * gimplify.c (gimplify_switch_expr): Likewise.
18662         * omp-low.c (expand_omp_sections): Likewise.
18663         * tree-eh.c (lower_try_finally_switch): Likewise.
18664         (lower_eh_dispatch): Likewise.
18665         * tree.h (build_case_label): Declare.
18666         * tree.c (build_case_label): Define.
18667
18668 2011-05-05  Jason Merrill  <jason@redhat.com>
18669
18670         PR c++/40975
18671         * tree-inline.c (copy_tree_r): Use copy_statement_list.
18672         (copy_statement_list): Don't recurse.
18673         * stor-layout.c (copy_self_referential_tree_r): Don't allow
18674         STATEMENT_LIST.
18675
18676 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18677
18678         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
18679         through from -mfpu= handling.
18680         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
18681
18682 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
18683
18684         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
18685         POST_MODIFY.
18686
18687 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
18688
18689         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
18690         for 11.31.
18691         (hppa[12]*-*-hpux11*): Ditto.
18692         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
18693         * config/ia64/hpux-unix2003.h: New.
18694         * config/pa/pa-hpux1131.opt: New.
18695         * config/pa/pa-hpux1131.h: New.
18696         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
18697         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
18698         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
18699
18700 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
18701
18702         PR debug/48853
18703         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
18704         instead of mode as 3rd argument to recursive call.
18705         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
18706         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
18707         VOIDmode.
18708         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
18709         don't give up if mode is Pmode and mem_mode is not VOIDmode.
18710         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
18711         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
18712
18713 2011-05-05  Julian Brown  <julian@codesourcery.com>
18714
18715         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
18716         parenthesis in D-register case.
18717
18718 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18719
18720         * opt-functions.awk (var_type_struct): Handle Enum options.
18721         * optc-gen.awk: Don't check range of variables of character type.
18722         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
18723         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
18724         rs6000_sdata_name, rs6000_explicit_options): Remove.
18725         (rs6000_option_override_internal): Check for -malign-power here.
18726         Use global_options_set instead of rs6000_explicit_options.
18727         (rs6000_parse_fpu_option): Remove.
18728         (rs6000_handle_option): Access variables via opts and opts_set
18729         pointers.  Use error_at and warning_at.  Add fall-through
18730         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
18731         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
18732         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
18733         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
18734         here.  Don't use rs6000_parse_fpu_option.
18735         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
18736         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
18737         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
18738         (mrecip=): Use Var.
18739         (mspe): Use Var and Save.
18740         (mtraceback=): Use Enum and Var.
18741         (rs6000_traceback_type): New Enum and EnumValue entries.
18742         (mfloat-gprs=): Use Enum, Var and Save.
18743         (rs6000_float_gprs): New Enum and EnumValue entries.
18744         (mlong-double-): use Var and Save.
18745         (msched-costly-dep=, minsert-sched-nops=): Use Var.
18746         (malign-): Use Enum and Var.
18747         (rs6000_alignment_flags): New Enum and EnumValue entries.
18748         (mfpu=): Use Enum.
18749         (fpu_type_t): New Enum and EnumValue entries.
18750         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18751         global_options_set instead of rs6000_explicit_options.
18752         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18753         global_options_set instead of rs6000_explicit_options.
18754         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18755         global_options_set instead of rs6000_explicit_options.
18756         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
18757         global_options_set instead of rs6000_explicit_options.
18758         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
18759         global_options_set instead of rs6000_explicit_options.
18760         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18761         global_options_set instead of rs6000_explicit_options.
18762         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
18763         definition.
18764         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18765         global_options_set instead of rs6000_explicit_options.
18766         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
18767         (rs6000_cmodel): New Enum and EnumValue entries.
18768         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18769         global_options_set instead of rs6000_explicit_options.
18770         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
18771         (mtls-size=): Use Enum and Var.
18772         (rs6000_tls_size): New Enum and EnumValue entries.
18773
18774 2011-05-05  Michael Matz  <matz@suse.de>
18775
18776         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
18777         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
18778         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
18779         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
18780         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
18781         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
18782         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
18783         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
18784         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
18785         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
18786         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
18787         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
18788         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
18789         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
18790         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
18791         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
18792
18793 2011-05-05  Richard Guenther  <rguenther@suse.de>
18794
18795         * expmed.c (expand_variable_shift): Rename to ...
18796         (expand_shift_1): ... this.  Take an expanded shift amount.
18797         For rotates recurse directly not building trees for the shift amount.
18798         (expand_variable_shift): Wrap around expand_shift_1.
18799         (expand_shift): Adjust.
18800
18801 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
18802
18803         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
18804
18805 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
18806
18807         * tree.h (get_pending_sizes): Remove prototype.
18808         (put_pending_size): Likewise.
18809         (put_pending_sizes): Likewise.
18810         * stor-layout.c (pending_sizes): Delete.
18811         (get_pending_sizes): Likewise.
18812         (put_pending_size): Likewise.
18813         (put_pending_sizes): Likewise.
18814         (variable_size): Do not call put_pending_size and tidy up.
18815         * function.h (struct function): Remove dont_save_pending_sizes_p.
18816         * lto-streamer-in.c (input_function): Do not stream it.
18817         * lto-streamer-out.c (output_function): Likewise.
18818         * tree-inline.c (initialize_cfun): Do not copy it.
18819         * c-decl.c (store_parm_decls): Do not set it.
18820         * omp-low.c (create_task_copyfn): Likewise.
18821         * tree-optimize.c (tree_rest_of_compilation): Likewise.
18822
18823 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
18824
18825         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
18826         conditions.
18827         (*movdf_internal): Ditto.
18828         (*movdf_internal_nointeger): Ditto.
18829         (*movsf_internal): Ditto.
18830
18831 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
18832
18833         * c-decl.c (finish_decl): Don't call get_pending_sizes.
18834         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
18835         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
18836         (c_variable_size): Remove.
18837         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
18838         call put_pending_sizes.
18839         (get_parm_info): Add parameter expr.  Use it to set
18840         arg_info->pending_sizes.
18841         (store_parm_decls): Use arg_info->pending_sizes instead or calling
18842         get_pending_sizes.
18843         * c-parser.c (c_parser_parms_declarator): Update call to
18844         c_parser_parms_list_declarator.
18845         (c_parser_parms_list_declarator): Take parameter expr.  Update
18846         call to push_parm_decl.  Update recursive call.  Don't call
18847         get_pending_sizes.  Update calls to get_parm_info.
18848         (c_parser_objc_method_definition): Update calls to
18849         c_parser_objc_method_decl and objc_start_method_definition.
18850         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
18851         (c_parser_objc_method_decl): Add parameter expr.  Update call to
18852         grokparm.
18853         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
18854         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
18855         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
18856
18857 2011-05-05  Michael Hope  <michael.hope@linaro.org>
18858
18859         PR pch/45979
18860         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
18861         __ARM_EABI__ hosts.
18862
18863 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18864
18865         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
18866         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
18867         (spu_output_mi_thunk): New function.
18868
18869 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18870
18871         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
18872         targetm.asm_out.print_operand.
18873         * config/sol2.c: Include target.h.
18874
18875 2011-05-04  Jan Hubicka  <jh@suse.cz>
18876
18877         * ipa-inline.c (reset_edge_caches): New function.
18878         (update_caller_keys): Add check_inlinablity_for; do not
18879         reset edge caches; remove now unnecesary loop.
18880         (update_callee_keys): Add comments; reset node_growth_cache of callee.
18881         (update_all_callee_keys): Likewise.
18882         (inline_small_functions): Sanity check cache; update code
18883         recomputing it.
18884
18885 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
18886
18887         PR rtl-optimization/47612
18888         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
18889         as the last insn of the sequence to be moved.
18890
18891 2011-05-04  Tobias Burnus  <burnus@net-b.de>
18892
18893         PR fortran/48864
18894         * doc/invoke.texi (Ofast): Document that it
18895         enables Fortran's -fno-protect-parens.
18896
18897 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
18898
18899         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
18900
18901 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
18902
18903         * stor-layout.c (variable_size): Do not issue errors.
18904
18905 2011-05-04  Richard Guenther  <rguenther@suse.de>
18906
18907         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
18908         for array-ref indices.
18909         (tree_coverage_counter_addr): Likewise.
18910         (build_fn_info_type): Use size_int for index types.
18911         (build_gcov_info): Likewise.
18912
18913 2011-05-04  Richard Guenther  <rguenther@suse.de>
18914
18915         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
18916         to build_int_cst.
18917         * c-typeck.c (really_start_incremental_init): Use bitsize_int
18918         for constructor indices.
18919         (push_init_level): Likewise.
18920
18921 2011-05-04  Richard Guenther  <rguenther@suse.de>
18922
18923         * explow.c (promote_mode): Move variable declarations before code.
18924
18925 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
18926
18927         * tree.h (build_function_type_array): Declare.
18928         (build_varargs_function_type_array): Declare.
18929         (build_function_type_vec, build_varargs_function_type_vec): Define.
18930         * tree.c (build_function_type_array_1): New function.
18931         (build_function_type_array): New function.
18932         (build_varargs_function_type_array): New function.
18933
18934 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
18935
18936         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
18937         before setting STMT_VINFO_TYPE.
18938
18939 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18940
18941         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
18942         instead of spu_pass_by_reference.
18943
18944 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18945
18946         * calls.c (emit_library_call_value_1): Invoke
18947         promote_function_mode hook on libcall arguments.
18948         * explow.c (promote_function_mode, promote_mode): Handle TYPE
18949         argument being NULL.
18950         * targhooks.c (default_promote_function_mode): Lisewise.
18951         * config/s390/s390.c (s390_promote_function_mode): Likewise.
18952         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
18953
18954         * doc/tm.texi: Document that TYPE argument might be NULL.
18955
18956 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18957
18958         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
18959
18960 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18961
18962         From Bernd Schmidt
18963         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
18964
18965 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18966
18967         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
18968         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
18969         Move ...
18970         * mips-tfile.c: ... here.
18971         Don't include coretypes.h, tm.h, filenames.h.
18972         (saber_stop): Remove definition and all calls.
18973         [__SABER__]: Remove.
18974         (__LINE__): Remove default.
18975         (Size_t, Ptrdiff_t): Remove definitions.
18976         Replace by size_t, ptrdiff_t.
18977         [!MIPS_DEBUGGING_INFO]: Remove.
18978         (SHASH_SIZE, THASH_SIZE): Remove defaults.
18979         (progname): Add const.
18980         (STATIC): Remove.
18981         Replace all uses by static.
18982         (ALIGN_SYMTABLE_OFFSET): Remove default.
18983         * mips-tdump.c: Don't include coretypes.h, tm.h.
18984         Remove !MIPS_IS_STAB guard.
18985         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
18986         $(TM_H), filenames.h dependencies.
18987         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
18988
18989 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18990
18991         From Jie Zhang
18992         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
18993         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
18994
18995 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
18996
18997         From Bernd Schmidt
18998         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
18999         account and save/restore RETS.
19000         (PROFILE_BEFORE_PROLOGUE): Define.
19001         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
19002         the push insn to use predecrement.
19003
19004 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
19005
19006         From Jie Zhang
19007         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
19008
19009 2011-05-04  Nick Clifton  <nickc@redhat.com>
19010
19011         * config/mn10300/mn10300.c: Include cfgloop.h.
19012         (DUMP): New macro.
19013         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
19014         Lcc or a FLcc insn into the instruction stream.
19015         (mn10300_block_contains_call): New function.  Returns true if the
19016         given basic block contains a CALL insn.
19017         (mn10300_loop_contains_call_insn): New function.  Returns true if
19018         the given loop contains a CALL insn.
19019         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
19020         to use the SETLB and Lcc or FLcc insns.
19021         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
19022         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
19023         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
19024         disable the SETLB optimization.
19025         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
19026         __SETLB__ or __NO_SETLB__.
19027         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
19028         (movsf_internal): Handle MDR register.
19029         (cmpsi): Make visible.
19030         (setlb): New pattern.
19031         (Lcc): New pattern.
19032         (FLcc): New pattern.
19033
19034 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
19035
19036         PR target/48860
19037         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
19038         for reg<->xmm moves.
19039         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
19040         (vec_concatv2di_rex64_sse): Ditto.
19041         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
19042         (*vec_extractv2di_1_rex64): Ditto.
19043
19044         Revert:
19045         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
19046
19047         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
19048         reg<->xmm moves.
19049         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
19050
19051 2011-05-04  Richard Guenther  <rguenther@suse.de>
19052
19053         * tree.h (int_const_binop): Remove notrunc argument.
19054         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
19055         create integer constants that are properly truncated.
19056         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
19057         (const_binop): Remove zero notrunc argument to int_const_binop.
19058         (size_binop_loc): Likewise.
19059         (fold_div_compare): Likewise.
19060         (maybe_canonicalize_comparison_1): Likewise.
19061         (fold_comparison): Likewise.
19062         (fold_binary_loc): Likewise.
19063         (multiple_of_p): Likewise.
19064         * expr.c (store_constructor): Likewise.
19065         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
19066         (maybe_fold_stmt_addition): Likewise.
19067         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
19068         * stor-layout.c (layout_type): Likewise.
19069         * tree-data-ref.c (tree_fold_divides_p): Likewise.
19070         * tree-sra.c (build_ref_for_offset): Likewise.
19071         (build_user_friendly_ref_for_offset): Likewise.
19072         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
19073         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
19074         * tree-ssa-loop-niter.c (inverse): Likewise.
19075         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
19076         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
19077         * tree-switch-conversion.c (check_range): Likewise.
19078         (build_constructors): Likewise.
19079         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
19080         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
19081         (extract_range_from_assert): Likewise.
19082         (vrp_int_const_binop): Likewise.
19083         (extract_range_from_binary_expr): Likewise.
19084         (extract_range_from_unary_expr): Likewise.
19085         (check_array_ref): Likewise.
19086         (find_case_label_range): Likewise.
19087         (simplify_div_or_mod_using_ranges): Likewise.
19088         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
19089         comparing case labels for merging.
19090
19091 2011-05-03  Mark Wielaard  <mjw@redhat.com>
19092
19093         * dwarf2out.c (debug_str_hash_forced): Removed.
19094         (gen_label_for_indirect_string): Removed.
19095         (get_debug_string_label): Removed.
19096         (AT_string_form): Generate label directly.
19097         (output_indirect_string): Test indirect_string_node for
19098         DW_FORM_strp instead of checking label and refcount.
19099         (prune_indirect_string): Removed.
19100         (prune_unused_types): Don't check debug_str_hash_forced or
19101         call prune_indirect_string.
19102
19103 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
19104
19105         PR other/48093
19106         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
19107
19108 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
19109
19110         PR debug/47994
19111         PR debug/47919
19112         * combine.c (try_combine): Skip debug insns at m_split tests.
19113
19114 2011-04-26  Mark Wielaard  <mjw@redhat.com>
19115
19116         PR42288
19117         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
19118         when info_section_emitted.
19119
19120 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
19121
19122         * config/mips/mips-opts.h: New.
19123         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
19124         to mips-opts.h.
19125         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
19126         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
19127         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
19128         via opts pointer.
19129         * config/mips/mips.h (enum mips_code_readable_setting): Move to
19130         mips-opts.h.
19131         (mips_abi, mips_code_readable): Don't declare.
19132         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
19133         (mabi=): Use Enum and Var.
19134         (mips_abi): New Enum and EnumValue entries.
19135         (mcode-readable=): Use Enum and Var.
19136         (mips_code_readable_setting): New Enum and EnumValue entries.
19137         (mr10k-cache-barrier=): Use Enum and Var.
19138         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
19139
19140 2011-05-03  Jan Hubicka  <jh@suse.cz>
19141
19142         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
19143         replace hash by pointer map.
19144         (cgraph_node_set_element_def, cgraph_node_set_element,
19145         const_cgraph_node_set_element, varpool_node_set_element_def,
19146         varpool_node_set_element, const_varpool_node_set_element): Remove.
19147         (free_cgraph_node_set, free_varpool_node_set): New function.
19148         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
19149         * tree-emutls.c: Free varpool node set.
19150         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
19151         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
19152         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
19153         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
19154         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
19155         Move here from ipa.c; implement using pointer_map
19156         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
19157         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
19158         debug_cgraph_node_set, varpool_node_set_new,
19159         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
19160         dump_varpool_node_set, debug_varpool_node_set):
19161         Move to ipa-uitls.c.
19162         * passes.c (ipa_write_summaries): Update.
19163
19164 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19165
19166         From Mike Frysinger:
19167         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
19168         bf542/bf544/bf547/bf548/bf549.
19169
19170 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
19171
19172         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
19173
19174 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19175
19176         From Bernd Schmidt:
19177         * config/bfin/bfin.md (MOVCC): New mode_macro.
19178         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
19179         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
19180         comments from generated assembly.
19181
19182 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19183
19184         From Bernd Schmidt
19185         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
19186         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
19187         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
19188         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
19189         * config/bfin/lib1funcs.asm (___muldi3): New function.
19190
19191 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19192
19193         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
19194         build_function_type_list instead of build_function_type.
19195         Rearrange initialization of `args' to do so.
19196
19197 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19198
19199         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
19200         instead of build_function_type.
19201
19202 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19203
19204         * config/rs6000/rs6000.c (spe_init_builtins): Call
19205         build_function_type_list instead of build_function_type.
19206         (paired_init_builtins, altivec_init_builtins): Likewise.
19207         (builtin_function_type): Likewise.
19208
19209 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19210
19211         * config/sh/sh.c (sh_media_init_builtins): Call
19212         build_function_type_list instead of build_function_type.
19213
19214 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19215
19216         * config/sparc/sparc.c (sparc_file_end): Call
19217         build_function_type_list instead of build_function_type.
19218
19219 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19220
19221         * config/alpha/alpha.c (alpha_init_builtins): Call
19222         build_function_type_list instead of build_function_type.
19223
19224 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19225
19226         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
19227         build_function_type_list instead of build_function_type.
19228
19229 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19230
19231         * config/iq2000/i2000.c (iq2000_init_builtins): Call
19232         build_function_type_list instead of build_function_type.
19233         Delete `endlink' variable.
19234
19235 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19236
19237         * config/avr/avr.c (avr_init_builtins): Call
19238         build_function_type_list instead of build_function_type.
19239
19240 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19241
19242         * config/picochip/picochip.c (picochip_init_builtins): Call
19243         build_function_type_list instead of build_function_type.
19244         Delete `endlink' variable.
19245
19246 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
19247
19248         * config/bfin/bfin.c (bfin_init_builtins): Call
19249         build_function_type_list instead of build_function_type.
19250
19251 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19252
19253         From Bernd Schmidt
19254         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
19255         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
19256
19257 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19258
19259         From Jie Zhang:
19260         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
19261         libbffastfp overrides libgcc when -mfast-fp.
19262
19263 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19264
19265         Originally from Bernd Schmidt
19266         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
19267         * config/bfin/bfin.c (override_options): Test it and error if
19268         TARGET_FDPIC.
19269
19270 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
19271
19272         Originally From Bernd Schmidt
19273         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
19274         FD-PIC.
19275
19276 2011-05-03  Jeff Law  <law@redhat.com>
19277
19278         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
19279         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
19280         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
19281         than accessing AUX field directly.  Free the AUX field before
19282         clearing it.
19283         (thread_block, thread_through_loop_header): Likewise.
19284         (thread_single_edge, mark_threaded_blocks): Likewise.
19285         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
19286         (register_jump_thread): Do not attempt to thread to a NULL edge.
19287
19288 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
19289
19290         * function.c (init_function_start): Call decide_function_section.
19291         * varasm.c (decide_function_section): New function.
19292         (assemble_start_function): When not using
19293         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
19294         or first_function_block_is_cold.
19295         * rtl.h (decide_function_section): Declare.
19296
19297 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
19298             Jakub Jelinek  <jakub@redhat.com>
19299
19300         PR target/48774
19301         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
19302         only succeed if req_mode is the same as set_mode.
19303
19304 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
19305
19306         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
19307         * genemit.c (gen_exp): Handle RETURN.
19308         * emit-rtl.c (verify_rtx_sharing): Likewise.
19309         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
19310         * rtl.c (copy_rtx): RETURN is shared.
19311         * rtl.h (enum global_rtl_index): Add GR_RETURN.
19312         (ret_rtx): New.
19313         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
19314         * config/s390/s390.c (s390_emit_epilogue): Likewise.
19315         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
19316         * config/cris/cris.c (cris_expand_return): Likewise.
19317         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
19318         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
19319         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
19320         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
19321         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
19322         Likewise.
19323         * config/v850/v850.c (expand_epilogue): Likewise.
19324         * config/bfin/bfin.c (bfin_expand_call): Likewise.
19325         * config/arm/arm.md (epilogue): Likewise.
19326         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
19327         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
19328         variable to ret_reg.
19329
19330 2011-05-03  Richard Guenther  <rguenther@suse.de>
19331
19332         PR lto/48846
19333         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
19334         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
19335         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
19336
19337 2011-05-03  Richard Guenther  <rguenther@suse.de>
19338
19339         * c-decl.c (grokdeclarator): Instead of looking at
19340         TREE_OVERFLOW check if the constant fits in the index type.
19341
19342 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
19343
19344         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
19345         (vec_store_lanes<mode><mode>): Likewise.
19346
19347 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
19348
19349         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
19350         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
19351         convert_optab_index values.
19352         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
19353         * genopinit.c (optabs): Initialize the new optabs.
19354         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
19355         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
19356         (expand_STORE_LANES): New functions.
19357         * tree.h (build_array_type_nelts): Declare.
19358         * tree.c (build_array_type_nelts): New function.
19359         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
19360         (vect_model_load_cost): Likewise.
19361         (vect_store_lanes_supported, vect_load_lanes_supported)
19362         (vect_record_strided_load_vectors): Declare.
19363         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
19364         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
19365         (vect_transform_strided_load): Split out statement recording into...
19366         (vect_record_strided_load_vectors): ...this new function.
19367         * tree-vect-stmts.c (create_vector_array, read_vector_array)
19368         (write_vector_array, create_array_ref): New functions.
19369         (vect_model_store_cost): Add store_lanes_p argument.
19370         (vect_model_load_cost): Add load_lanes_p argument.
19371         (vectorizable_store): Try to use store-lanes functions for
19372         interleaved stores.
19373         (vectorizable_load): Likewise load-lanes and loads.
19374         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
19375         to vect_model_store_cost.
19376         (vect_build_slp_tree): Likewise vect_model_load_cost.
19377
19378 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
19379
19380         * hooks.h (hook_bool_mode_uhwi_false): Declare.
19381         * hooks.c (hook_bool_mode_uhwi_false): New function.
19382         * target.def (array_mode_supported_p): New hook.
19383         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
19384         * doc/tm.texi: Regenerate.
19385         * stor-layout.c (mode_for_array): New function.
19386         (layout_type): Use it.
19387         * config/arm/arm.c (arm_array_mode_supported_p): New function.
19388         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
19389
19390 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
19391
19392         PR target/48723
19393         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
19394         for -fstack-check if the size to allocate is negative.
19395
19396 2011-05-02  Lawrence Crowl  <crowl@google.com>
19397
19398         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
19399         (timevar_cond_start): New for starting a timer only when it is not
19400         already running.
19401         (timevar_cond_stop): New for stopping a timer when it was not already
19402         running.
19403
19404         * timevar.c (timevar_stop): Enable start/stop timers to start again.
19405         (timevar_cond_start): New as above.
19406         (timevar_cond_stop): New as above.
19407
19408         * timevar.def: Add start/stop timers for compiler phases,
19409         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
19410         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
19411         and TV_PHASE_FINALIZE.
19412         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
19413         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
19414         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
19415         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
19416         Make unused TV_OVERLOAD into a start/stop timer.
19417
19418         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
19419         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
19420         to indicate that they are start/stop timers.
19421
19422         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
19423         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
19424         Move initialization to do_compile.
19425         (do_compile): Add initialization from above.
19426         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
19427
19428         * c-decl.c (c_write_global_declarations): Add start/stop of
19429         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
19430
19431         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
19432         or TV_PARSE_INLINE, as appropriate.
19433         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
19434         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
19435
19436 2011-05-02  Jason Merrill  <jason@redhat.com>
19437
19438         PR c++/40975
19439         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
19440
19441 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
19442
19443         PR c/35445
19444         * c-decl.c (finish_decl): Only create a composite if the types are
19445         compatible.
19446
19447 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
19448
19449         * config/fr30/fr30-protos.h (Mmode): Don't define.
19450         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
19451         definition where used.
19452         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
19453         define.  Expand definitions where used.
19454         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
19455         Expand definitions where used.
19456         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
19457         rx_function_arg, rx_function_arg_advance,
19458         rx_function_arg_boundary): Expand definitions of those macros.
19459         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
19460         definition where used.
19461
19462 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
19463
19464         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
19465         reg<->xmm moves.
19466         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
19467         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
19468         with *movv2sf_internal_rex64_avx.
19469         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
19470         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
19471         Use %v prefix in insn mnemonic to handle TARGET_AVX.
19472         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
19473         "vex" in "prefix" attribute calculation.
19474         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
19475
19476 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
19477
19478         PR target/47951
19479         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
19480         inputs match the output.
19481
19482 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
19483
19484         PR target/47955
19485         * config/m68k/m68k.c (m68k_expand_prologue): Set
19486         current_function_static_stack_size.
19487
19488 2011-05-02   Jan Hubicka  <jh@suse.cz>
19489
19490         * lto-streamer.c (lto_streamer_cache_insert_1,
19491         lto_streamer_cache_lookup, lto_streamer_cache_create,
19492         lto_streamer_cache_delete): Use pointer map instead of hashtable.
19493         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
19494
19495 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
19496
19497         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
19498         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
19499         config/m68k/t-opts: New files.
19500         * config/m68k/m68k-tables.opt: New file (generated).
19501         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
19502         extra_options and m68k/t-opts to tmake_file.
19503         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
19504         (all_isas): Initialize using m68k-isas.def.
19505         (all_microarchs): Initialize using m68k-microarchs.def.
19506         (m68k_find_selection): Remove.
19507         (m68k_handle_option): Don't assert that global structures are in
19508         use.  Use error_at.  Access variables via opts pointer.  Don't
19509         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
19510         directly for -m68020-40 and -m68020-60.
19511         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
19512         m68k_tune_entry here.
19513         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
19514         to m68k-opts.h.
19515         (m68k_library_id_string): Remove declaration.
19516         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
19517         (m68k_library_id_string): New Variable.
19518         (march=, mcpu=, mtune=): Use Enum and Var.
19519
19520 2011-05-02  Richard Guenther  <rguenther@suse.de>
19521
19522         * varasm.c (output_constructor_regular_field): Compute zero-based
19523         index with double-ints.  Make sure to ICE instead of producing
19524         wrong code.
19525         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
19526         in asserts.  Properly use a signed type.
19527
19528 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
19529
19530         * config/i386/sse.md (V): New mode iterator.
19531         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
19532         TARGET_SSE2.
19533         (V_256): Rename from AVX256MODE.
19534         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
19535         condition to all users.
19536         (VF1): Ditto.
19537         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
19538         condition to all users.
19539         (VF_128): Make V4SF mode unconditional.
19540         (VF_256): Rename from AVX256MODEF2P.
19541         (VI4F_128): Rename from SSEMODE4S.
19542         (VI8F_128): Rename from SSEMODE2D.
19543         (VI4F_256): Rename from AVX256MODE8P.
19544         (VI8F_256): Rename from AVX256MODE4P.
19545         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
19546         (ssescalarmodesuffix): Remove SF and DF modes.
19547         (SSEMODE124): Remove.
19548         (SSEMODE1248): Ditto.
19549         (SSEMODEF2P): Ditto.
19550         (AVXMODEF2P): Ditto.
19551         (AVXMODEFDP): Ditto.
19552         (AVXMODEFSP): Ditto.
19553         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
19554         unconditional.
19555         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
19556         unconditional.
19557         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
19558         xop_pcmov_<mode>256.  Use V mode iterator.
19559
19560         Adjust RTX patterns globally for renamed mode attributes.
19561
19562 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19563
19564         * haifa-sched.c (sched_emit_insn): Emit insn before first
19565         non-scheduled insn.  Inform back-end about new insn.  Add
19566         new insn to scheduled_insns list.
19567
19568 2011-05-02  Richard Guenther  <rguenther@suse.de>
19569
19570         PR tree-optimization/48822
19571         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
19572         (process_scc): Indicate which iteration we start.
19573
19574 2011-05-02  Jan Hubicka  <jh@suse.cz>
19575
19576         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
19577         (lto_section_overrun): New.
19578         * lto-section-out.c (append_block): Rename to ...
19579         (lto_append_block): ... this one; export.
19580         (lto_output_1_stream): Move lto lto-streamer.h
19581         (lto_output_data_stream): Update.
19582         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
19583         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
19584         functions.
19585
19586 2011-05-02  Richard Guenther  <rguenther@suse.de>
19587
19588         * tree.c (tree_code_counts): New global array.
19589         (record_node_allocation_statistics): Count individual tree codes.
19590         (dump_tree_statistics): Dump individual code stats.
19591
19592 2011-05-01  Jan Hubicka  <jh@suse.cz>
19593
19594         * ipa-inline.c (caller_growth_limits): Fix thinko when
19595         looking for largest stack frame.
19596         * ipa-inline.h (dump_inline_summary): Declare.
19597         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
19598         on stack usage.
19599         (dump_inline_summary): Export.
19600         (debug_inline_summary): Declare as DEBUG_FUNCTION.
19601
19602 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
19603
19604         * reginfo.c (memory_move_cost): Change rclass argument type form
19605         'enum reg_class' to reg_class_t.
19606         * reload.h (memory_move_cost): Update prototype.
19607         * postreload.c reload_cse_simplify_set): Change type dclass var to
19608         reg_class_t.
19609         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
19610         Update prototype.
19611         (ira_allocate_and_set_costs): Change aclass argument type form
19612         'enum reg_class' to reg_class_t.
19613         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
19614         Change aclass argument type to reg_class_t.
19615         (update_conflict_hard_reg_costs): Change type aclass and pref vars
19616         to reg_class_t.
19617         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
19618         memory_move_cost call.
19619
19620         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
19621         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
19622         Change type tmp var to reg_class_t.
19623
19624 2011-04-30  Jan Hubicka  <jh@suse.cz>
19625
19626         * ipa-inline.c (can_inline_edge_p): Disregard limits when
19627         inlining into function with flatten attribute.
19628         (want_inline_small_function_p): Be more realistic about inlining
19629         cold calls where callee size grows.
19630
19631 2011-04-30  Jan Hubicka  <jh@suse.cz>
19632
19633         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
19634         flags.
19635
19636 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
19637
19638         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
19639         PRINT_OPERAND_PUNCT_VALID_P): Remove.
19640         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
19641         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
19642         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19643         (print_operand): Rename to...
19644         (sparc_print_operand): ...this. Make static. Adjust
19645         sparc_print_operand function call.
19646         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
19647         functions.
19648
19649 2011-04-30  Jan Hubicka  <jh@suse.cz>
19650
19651         PR middle-end/48752
19652         * ipa-inline.c (early_inliner): Disable when doing late
19653         addition of function.
19654
19655 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
19656
19657         * dwarf2out.c (get_address_mode): New inline.
19658         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
19659         if not dwarf_strict emit
19660         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
19661         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
19662         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
19663         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
19664         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
19665         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
19666         mem_loc_descriptor callers.
19667         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
19668         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
19669         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
19670         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
19671         (base_types): New variable.
19672         (get_base_type_offset, calc_base_type_die_sizes,
19673         base_type_for_mode, mark_base_types, base_type_cmp,
19674         move_marked_base_types): New functions.
19675         (calc_die_sizes): Assert that die_offset is 0 or equal to
19676         next_die_offset.
19677         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
19678         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
19679         callers.  If not dwarf_strict, call mem_loc_descriptor even for
19680         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
19681         (gen_subprogram_die): Don't give up on call site parameters
19682         with non-integral or large integral modes.  Adjust
19683         mem_loc_descriptor callers.
19684         (prune_unused_types): Call prune_unused_types_mark on base_types
19685         vector entries.
19686         (resolve_addr): Call mark_base_types.
19687         (dwarf2out_finish): Call move_marked_base_types.
19688
19689         PR tree-optimization/48809
19690         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
19691         type.
19692         (gen_inbound_check): Don't compute index_expr - range_min in utype
19693         again, instead reuse SSA_NAME initialized in build_arrays.
19694         Remove two useless gsi_for_stmt calls.
19695
19696 2011-04-29  Jeff Law  <law@redhat.com>
19697
19698         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
19699
19700 2011-04-29  Martin Jambor  <mjambor@suse.cz>
19701
19702         * cgraph.h (cgraph_postorder): Remove declaration.
19703         * ipa-utils.h (ipa_free_postorder_info): Declare.
19704         (ipa_reverse_postorder): Likewise.
19705         * cgraphunit.c: Include ipa-utils.h.
19706         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
19707         * ipa-inline.c: Include ipa-utils.h.
19708         (ipa_inline): Update call to ipa_reverse_postorder.
19709         * ipa-pure-const.c (propagate_pure_const): Update call to
19710         ipa_reduced_postorder and ipa_print_order.  Call
19711         ipa_free_postorder_info to clean up.
19712         (propagate_nothrow): Likewise.
19713         * ipa-reference.c (propagate): Removed a useless call to
19714         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
19715         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
19716         * ipa.c: Include ipa-utils.h.
19717         (ipa_profile): Update call to ipa_reverse_postorder.
19718         (cgraph_postorder): Moved to...
19719         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
19720         (ipa_utils_print_order): Renamed to ipa_print_order.
19721         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
19722         comments.
19723         (ipa_free_postorder_info): New function.
19724         * passes.c: Include ipa-utils.h.
19725         (do_per_function_toporder): Update call to ipa_reverse_postorder.
19726         (ipa_write_summaries): Likewise.
19727         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
19728         (cgraphunit.o): Likewise.
19729         (ipa.o): Likewise.
19730         (ipa-inline.o): Likewise.
19731
19732 2011-04-29  Jan Hubicka  <jh@suse.cz>
19733
19734         * ipa-inline.h (clause_t): Turn into unsigned int.
19735         * ipa-inline-analysis.c (add_clause): Do more simplification.
19736         (and_predicates): Shortcut more cases.
19737         (predicates_equal_p): Move forward; check that clauses are properly
19738         ordered.
19739         (or_predicates): Shortcut more cases.
19740         (edge_execution_predicate): Rewrite as...
19741         (set_cond_stmt_execution_predicate): ... this function; handle
19742         __builtin_constant_p.
19743         (set_switch_stmt_execution_predicate): New .
19744         (compute_bb_predicates): New.
19745         (will_be_nonconstant_predicate): Update TODO.
19746         (estimate_function_body_sizes): Use compute_bb_predicates
19747         and free them later, always try to estimate if stmt is constant.
19748         (estimate_time_after_inlining, estimate_size_after_inlining):
19749         Gracefully handle optimized out edges.
19750         (read_predicate): Fix off by one error.
19751
19752 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
19753
19754         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
19755
19756 2011-04-27  Xinliang David Li  <davidxl@google.com>
19757
19758         * tree-profile.c (init_ic_make_global_vars): Set
19759         tls attribute on ic vars.
19760         * coverage.c (coverage_end_function): Initialize
19761         function_list with zero.
19762
19763 2011-04-29  Richard Guenther  <rguenther@suse.de>
19764
19765         * builtins.c (fold_builtin_classify_type): Use integer_type_node
19766         for the type of the result.
19767         (fold_builtin_isascii): Likewise.
19768         (fold_builtin_toascii): Use integer_type_node where appropriate.
19769         (fold_builtin_logb): Likewise.
19770         (fold_builtin_frexp): Likewise.
19771         (fold_builtin_strstr): Likewise.
19772         (fold_builtin_strpbrk): Likewise.
19773         (fold_builtin_fputs): Likewise.
19774         (fold_builtin_sprintf): Likewise.
19775         (fold_builtin_snprintf): Likewise.
19776         (fold_builtin_printf): Likewise.
19777         (do_mpfr_remquo): Use a proper type for the assigned constant.
19778         (do_mpfr_lgamma_r): Likewise.
19779         * dwarf2out.c (resolve_one_addr): Use size_int.
19780         * except.c (init_eh): Likewise.
19781         (assign_filter_values): Use integer_type_node for filter values.
19782         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
19783         indices.
19784         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
19785         for EH region numbers.
19786         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
19787         for the shift amount.
19788
19789 2011-04-29  Richard Guenther  <rguenther@suse.de>
19790
19791         * expr.h (expand_shift): Rename to ...
19792         (expand_variable_shift): ... this.
19793         (expand_shift): Take a constant shift amount.
19794         * expmed.c (expand_shift): Rename to ...
19795         (expand_variable_shift): ... this.
19796         (expand_shift): New wrapper around expand_variable_shift.
19797         * expr.c (convert_move, emit_group_load_1, emit_group_store,
19798         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
19799         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
19800         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
19801         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
19802         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
19803         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
19804         emit_store_flag_1, emit_store_flag): Likewise.
19805         * builtins.c (expand_builtin_signbit): Likewise.
19806         * calls.c (load_register_parameters): Likewise.
19807         * function.c (assign_parm_setup_block): Likewise.
19808         * lower-subreg.c (resolve_shift_zext): Likewise.
19809         * optabs.c (widen_bswap, expand_abs_nojump,
19810         expand_one_cmpl_abs_nojump, expand_float): Likewise.
19811         * spu/spu.c (spu_expand_extv): Likewise.
19812         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
19813
19814 2011-04-29  Richard Guenther  <rguenther@suse.de>
19815
19816         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
19817         for the remapped region number.
19818         * predict.c (build_predict_expr): Use integer_type_node for the
19819         predict kind.
19820         * fold-const.c (fold_binary_loc): Use integer_type_node for
19821         the shift amount.  Use a proper type for the PLUS_EXPR operand.
19822
19823 2011-04-29  Michael Matz  <matz@suse.de>
19824
19825         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
19826         other trees that just builtins.
19827         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
19828
19829 2011-04-29  Richard Guenther  <rguenther@suse.de>
19830
19831         * tree-nested.c (get_trampoline_type): Use size_int.
19832         (get_nl_goto_field): Likewise.
19833         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
19834         for all indexes.
19835         (lower_eh_constructs_2): Likewise.
19836         (lower_resx): Likewise.
19837         (lower_eh_dispatch): Likewise.
19838         * tree-mudflap.c (mf_build_string): Use size_int.
19839         (mudflap_register_call): Use integer_type_node for the flag.
19840         (mudflap_enqueue_constant): Use size_int.
19841         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
19842         instead of rebuilding it.
19843
19844 2011-04-29  Richard Guenther  <rguenther@suse.de>
19845
19846         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
19847         Handle OBJ_TYPE_REF.
19848         (find_func_aliases_for_call): Use it more consistently.
19849
19850 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
19851
19852         * haifa-sched.c (last_nondebug_scheduled_insn): New.
19853         (rank_for_schedule): Use it.
19854         (schedule_block): Set it.
19855
19856 2011-04-28  David Li  <davidxl@google.com>
19857
19858         * tree.c (crc32_string): Use crc32_byte.
19859         (crc32_byte): New function.
19860         * tree.h (crc32_byte): New function.
19861         * gcov.c (read_graph_file): Handle new cfg_cksum.
19862         (read_count_file): Ditto.
19863         * profile.c (instrument_values): Ditto.
19864         (get_exec_counts): Ditto.
19865         (read_profile_edge_counts): Ditto.
19866         (compute_branch_probabilities): Ditto.
19867         (compute_value_histograms): Ditto.
19868         (branch_prob): Ditto.
19869         (end_branch_prob): Ditto.
19870         * coverage.c (read_counts_file): Ditto.
19871         (get_coverage_counts): Ditto.
19872         (tree_coverage_counter_addr): Ditto.
19873         (coverage_checksum_string): Ditto.
19874         (coverage_begin_output): Ditto.
19875         (coverage_end_function): Ditto.
19876         (build_fn_info_type): Ditto.
19877         (build_fn_info_value): Ditto.
19878         * libgcov.c (gcov_exit): Ditto.
19879         * gcov-dump.c (tag_function): Ditto.
19880         (compute_checksum): Remove.
19881
19882 2011-04-29  Alan Modra  <amodra@gmail.com>
19883
19884         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
19885         unspec plus offset.  Tidy macho code.
19886
19887 2011-04-29  Martin Jambor  <mjambor@suse.cz>
19888
19889         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
19890         node instead of a decl.  Update all callers.
19891         * cgraph.h: Update declaration.
19892
19893 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
19894
19895         PR tree-optimization/48765
19896         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
19897         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
19898         to indicate if loop aware SLP is being used.  Scan the statements
19899         and update the vectorization factor according to the type of
19900         vectorization before statement analysis.
19901         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
19902         pass it to vect_analyze_loop_operations.
19903         (vectorizable_reduction): Set number of copies to 1 in case of pure
19904         SLP statement.
19905         * tree-vect-stmts.c (vectorizable_conversion,
19906         vectorizable_assignment, vectorizable_shift,
19907         vectorizable_operation, vectorizable_type_demotion,
19908         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
19909         Likewise.
19910         (vectorizable_condition): Move the check that it is not SLP
19911         vectorization before the number of copies check.
19912         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
19913         to vectorize the loop using SLP.
19914
19915 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
19916
19917         PR middle-end/48597
19918         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
19919         inline asm.
19920
19921 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
19922
19923         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
19924         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
19925         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19926         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19927         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
19928         linux*.h headers.
19929         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
19930         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19931         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19932         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19933         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
19934         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
19935         REG_NAME.
19936         * config/i386/linux.h (REG_NAME): Don't define.
19937         * config/i386/linux64.h (REG_NAME): Don't define.
19938         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
19939         Undefine before defining.
19940
19941 2011-04-28  Jan Hubicka  <jh@suse.cz>
19942
19943         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
19944         nonconstant_names array.
19945         (estimate_function_body_sizes): Build nonconstant_names array; handle
19946         BUILT_IN_CONSTANT_P.
19947
19948 2011-04-28  Richard Guenther  <rguenther@suse.de>
19949
19950         PR bootstrap/48804
19951         Revert
19952         2011-04-28  Richard Guenther  <rguenther@suse.de>
19953
19954         * tree-ssa-structalias.c (solve_constraints): Build succ graph
19955         as late as possible.
19956
19957 2011-04-28  Richard Guenther  <rguenther@suse.de>
19958
19959         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
19960         (debug_constraint): Do it here.
19961         (dump_constraints): And here.
19962         (rewrite_constraints): And here.
19963         (dump_constraint_edge): Remove.
19964         (dump_constraint_graph): Rewrite to produce DOT output.
19965         (solve_constraints): Build succ graph as late as possible.
19966         Dump constraint graphs before and after solving.
19967
19968 2011-04-28  Richard Guenther  <rguenther@suse.de>
19969
19970         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19971         New function split out from ...
19972         (find_func_aliases): ... here.  Call it.
19973         (find_func_aliases_for_call): Likewise.
19974
19975 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19976
19977         * internal-fn.h (internal_fn_name_array): Declare.
19978         (internal_fn_flags_array): Likewise.
19979
19980 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
19981
19982         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
19983         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
19984         Move from sse.md.
19985         (ssemodefsuffix): Remove.
19986         (ssevecmodesuffix): New mode attribute.
19987         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
19988         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
19989         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
19990         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
19991         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
19992         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
19993         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
19994         ssemodesuffix mode attribute.
19995         (float splitters): Use ssevecmodesuffix mode attribute.
19996         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
19997         (sseinsmode): Rename from avxvecmode.
19998         (avxsizesuffix): Rename from avxmodesuffix.
19999         (sseintvecmode): Rename from avxpermvecmode.
20000         (ssedoublevecmode): Rename from ssedoublesizemode.
20001         (ssehalfvecmode): Rename from avxhalfvecmode.
20002         (ssescalarmode): Rename from avxscalarmode.
20003         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
20004         templates for ssemodesuffix mode attribute.
20005         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
20006         mode attribute.
20007
20008         Adjust RTX patterns globally for renamed mode attributes.
20009
20010 2011-04-27  Jan Hubcika  <jh@suse.cz>
20011
20012         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
20013         * ipa-inline-analysis.c: Include alloc-pool.h.
20014         (edge_predicate_pool): New.
20015         (trye_predicate_p): New function
20016         (false_predicate_p): New function.
20017         (add_clause): Sanity check that false clauses are "optimized";
20018         never add clauses to predicate that is already known to be false.
20019         (and_predicate): Use flase_predicate_p.
20020         (evaulate_predicate): Rename to ...
20021         (evaluate_predicate): ... this one; update all callers; assert
20022         that false is not listed among possible truths.
20023         (dump_predicate): Use true_predicate_p.
20024         (account_size_time): Use false_predicate_p.
20025         (evaulate_conditions_for_edge): Rename to ...
20026         (evaluate_conditions_for_edge) ... this one.
20027         (edge_set_predicate): New function.
20028         (inline_edge_duplication_hook): Duplicate edge predicates.
20029         (inline_edge_removal_hook): Free edge predicates.
20030         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
20031         (dump_inline_summary): Update.
20032         (estimate_function_body_sizes): Set edge predicates.
20033         (estimate_calls_size_and_time): Handle predicates.
20034         (estimate_callee_size_and_time): Update.
20035         (remap_predicate): Add toplev_predicate; update comment.
20036         (remap_edge_predicates): New function.
20037         (inline_merge_summary): Compute toplev predicate; update.
20038         (read_predicate): New function.
20039         (read_inline_edge_summary): Use it.
20040         (inline_read_section): Likewise.
20041         (write_predicate): New function.
20042         (write_inline_edge_summary): Use it.
20043         (inline_write_summary): Likewise.
20044         (inline_free_summary): Free alloc pool and edge summary vec.
20045
20046 2011-04-27  Richard Guenther  <rguenther@suse.de>
20047
20048         * tree-ssa-structalias.c (changed_count): Remove.
20049         (changed): Use a bitmap.
20050         (unify_nodes): Adjust.
20051         (do_sd_constraint): Likewise.
20052         (do_ds_constraint): Likewise.
20053         (do_complex_constraint): Likewise.
20054         (solve_graph): Likewise.
20055
20056 2011-04-27  Jan Hubicka  <jh@suse.cz>
20057
20058         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
20059
20060 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
20061
20062         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
20063         (avx_vperm2f128_*_operand): Ditto.
20064         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
20065         Use avx_vpermilp_parallel in insn condition.
20066         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
20067         Use avx_vperm2f128_parallel in insn condition.
20068
20069 2011-04-27  Richard Guenther  <rguenther@suse.de>
20070
20071         * Makefile.in (tree-ssa-structalias.o): Remove
20072         gt-tree-ssa-structalias.h dependency.
20073         (GTFILES): Remove tree-ssa-structalias.c.
20074         * tree.c (allocate_decl_uid): New function.
20075         (make_node_stat): Use it.
20076         (copy_node_stat): Likewise.
20077         * tree.h (allocate_decl_uid): Declare.
20078         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
20079         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
20080         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
20081         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
20082         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
20083         (struct heapvar_map): Likewise.
20084         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
20085         heapvar_insert): Likewise.
20086         (make_heapvar_for): Rename to ...
20087         (make_heapvar): ... this.  Simplify.
20088         (fake_var_decl_obstack): New global var.
20089         (build_fake_var_decl): New function.
20090         (make_constraint_from_heapvar): Adjust.
20091         (handle_lhs_call): Likewise.
20092         (create_function_info_for): Likewise.
20093         (intra_create_variable_infos): Likewise.
20094         (init_alias_vars): Allocate fake_var_decl_obstack.
20095         (init_alias_heapvars, delete_alias_heapvars): Remove.
20096         (compute_points_to_sets): Do not call init_alias_heapvars.
20097         (ipa_pta_execute): Likewise.
20098         (delete_points_to_sets): Free fake_var_decl_obstack.
20099
20100 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20101
20102         * config/spu/divmovti4.c (union qword_UTItype): New data type.
20103         (si_from_UTItype, si_to_UTItype): New functions.
20104         (__udivmodti4): Use them to implement type-punning.
20105         * config/spu/multi3.c (union qword_TItype): New data type.
20106         (si_from_TItype, si_to_TItype): New functions.
20107         (__multi3): Use them to implement type-punning.
20108
20109 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20110
20111         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
20112
20113 2011-04-27  Jan Hubicka  <jh@suse.cz>
20114
20115         * ipa-prop.c (function_insertion_hook_holder): New holder.
20116         (ipa_add_new_function): New function.
20117         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
20118         Register/deregister holder.
20119
20120 2011-04-27  Richard Guenther  <rguenther@suse.de>
20121
20122         PR tree-optimization/48772
20123         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
20124
20125 2011-04-27  Richard Guenther  <rguenther@suse.de>
20126
20127         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
20128         TARGET_MEM_REF handling.
20129
20130 2011-04-27  Nick Clifton  <nickc@redhat.com>
20131
20132         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
20133         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
20134         (REG_CLASS_NAMES): Likewise.
20135         (REG_CLASS_CONTENTS): Likewise.
20136         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
20137         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
20138         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
20139         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
20140         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
20141         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
20142         duplicate register classes.
20143         (frv_class_likely_spilled_p): Likewise.
20144         (frv_register_move_cost): Likewise.
20145
20146         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
20147         end of the regno_reg_class array.
20148
20149 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
20150
20151         PR c/48742
20152         * c-typeck.c (build_binary_op): Don't wrap arguments if
20153         int_operands is true.
20154
20155 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
20156
20157         PR target/48767
20158         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
20159         targetm.calls.must_pass_in_stack for void type.
20160
20161 2011-04-26  Jan Hubicka  <jh@suse.cz>
20162
20163         * cgraphbuild.c (build_cgraph_edges): Update call
20164         of cgraph_create_edge and cgraph_create_indirect_edge.
20165         * cgraph.c (cgraph_create_edge_including_clones,
20166         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
20167         cgraph_update_edges_for_call_stmt_node): Do not take nest
20168         argument; do not initialize call_stmt_size/time.
20169         (dump_cgraph_node): Do not dump nest.
20170         (cgraph_clone_edge): Do not take loop_nest argument;
20171         do not propagate it; do not clone call_stmt_size/time.
20172         (cgraph_clone_node): Likewise.
20173         (cgraph_create_virtual_clone): Update.
20174         * cgraph.h (struct cgraph_edge): Remove
20175         call_stmt_size/call_stmt_time/loop_nest.
20176         (cgraph_create_edge, cgraph_create_indirect_edge,
20177         cgraph_create_edge_including_clones, cgraph_clone_node): Update
20178         prototype.
20179         * tree-emutls.c (gen_emutls_addr): Update.
20180         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
20181         loop_nest; handle indirect calls, too.
20182         (clone_inlined_nodes): Do not care about updating inline summaries.
20183         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
20184         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
20185         stream call_stmt_size/call_stmt_time/loop_nest.
20186         * ipa-inline.c (edge_badness): Update.
20187         (ipa_inline): dump summaries after inlining.
20188         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
20189         New.
20190         (inline_edge_summary): New function.
20191         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
20192         (inline_edge_removal_hook): Handle edge summaries.
20193         (inline_edge_duplication_hook): New hook.
20194         (inline_summary_alloc): Alloc hooks.
20195         (initialize_growth_caches): Do not register removal hooks.
20196         (free_growth_caches); Do not free removal hook.
20197         (dump_inline_edge_summary): New function.
20198         (dump_inline_summary): Use it.
20199         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
20200         (inline_update_callee_summaries): New function.
20201         (inline_merge_summary): Use it.
20202         (do_estimate_edge_time, do_estimate_edge_growth): Update.
20203         (read_inline_edge_summary): New function.
20204         (inline_read_section): Use it.
20205         (write_inline_edge_summary): New function.
20206         (inline_write_summary): Use it.
20207         (inline_free_summary): Free edge new holders.
20208         * tree-inline.c (copy_bb): Update.
20209
20210 2011-04-26  Jason Merrill  <jason@redhat.com>
20211
20212         * tree-eh.c (lower_try_finally_switch): Create the label along with
20213         the CASE_LABEL_EXPR.
20214
20215 2011-04-26  David S. Miller  <davem@davemloft.net>
20216             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20217
20218         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
20219         * configure: Regenerate.
20220
20221 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
20222
20223         PR target/48258
20224         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
20225         reduction.
20226         (VEC_reduc): New code iterator and splitters for vector reduction.
20227         (VEC_reduc_name): Ditto.
20228         (VEC_reduc_rtx): Ditto.
20229         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
20230         (reduc_<VEC_reduc_name>_v4sf): Ditto.
20231
20232         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
20233         support for extracting SF on VSX.
20234
20235         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
20236         generating xscvspdp.
20237         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
20238         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
20239         double add, minimum, maximum vector reduction.
20240         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
20241         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
20242         optimize double vector reduction.
20243         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
20244
20245 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
20246
20247         * config/fr30/fr30.h (inhibit_libc): Don't define.
20248         * config/m32r/m32r-protos.h: Correct comment.
20249         * config/v850/v850.h (GHS_default_section_names,
20250         GHS_current_section_names): Use tree, not union tree_node *.
20251
20252 2011-04-26  Xinliang David Li  <davidxl@google.com>
20253
20254         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
20255         * c-family/c-opts.c (c_common_handle_option): Set
20256         warn_maybe_uninitialized.
20257         * opts.c (common_handle_option): Ditto.
20258         * common.opt:  New option.
20259         * tree-ssa.c (warn_uninit): Add one more parameter.
20260         (warn_uninitialized_var): Pass warning code.
20261         * tree-flow.h: Interface change.
20262
20263 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20264
20265         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
20266         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
20267         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
20268
20269 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20270
20271         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
20272         * config/mips/mips.opt (mmips-tfile): Remove.
20273
20274         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
20275         mips-tdump reference to ...
20276         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
20277         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
20278         reference by Tru64 UNIX.
20279
20280 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
20281
20282         PR debug/48768
20283         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
20284         is error_mark_node, set value to NULL.
20285
20286         PR tree-optimization/48734
20287         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
20288         if return value from maybe_fold_*_comparsions isn't something
20289         the code is prepared to handle.
20290
20291 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
20292
20293         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
20294         mode check.
20295         (ext_QIreg_nomode_operands): Remove.
20296         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
20297         (*andsi_1): Ditto.
20298         (*andhi_1): Ditto.
20299
20300 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
20301
20302         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
20303
20304 2011-04-26  Richard Guenther  <rguenther@suse.de>
20305
20306         * c-typeck.c (build_unary_op): Do not expand array-refs via
20307         pointer arithmetic.  Only adjust qualifiers for function types.
20308
20309 2011-04-26  Richard Guenther  <rguenther@suse.de>
20310
20311         PR middle-end/48694
20312         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
20313         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
20314         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
20315         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
20316
20317 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
20318
20319         * doc/extend.texi: Document __underlying_type.
20320
20321 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
20322
20323         * config/rs6000/titan.md (automata_option "progress"): Remove.
20324
20325 2011-04-25  Jeff Law  <law@redhat.com>
20326
20327         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
20328
20329 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
20330
20331         * system.h (ENUM_BITFIELD): Remove.
20332
20333 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
20334             Eric Botcazou  <ebotcazou@adacore.com>
20335
20336         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
20337         for STORE_FLAG_VALUE==-1 case.
20338
20339 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
20340
20341         PR target/43804
20342         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
20343         LEGITIMATE_PIC_OPERAND_P.
20344
20345 2011-04-24  Jan Hubicka  <jh@suse.cz>
20346
20347         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
20348         WPA hack.
20349         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
20350         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
20351         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
20352         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
20353         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
20354         Sanity check predicate length.
20355         (remap_predicate): Likewise; sanity check jump functions.
20356         (inline_read_section, inline_write_summary): Sanity check
20357         predicate length.
20358
20359 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
20360
20361         PR other/48748
20362         * doc/extend.texi (Type Traits): Document __is_standard_layout,
20363         __is_literal_type, and __is_trivial; update throughout about
20364         possibly cv-qualified void types.
20365
20366 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
20367
20368         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
20369         testsuite and make it version agnostic.
20370
20371 2011-04-22  Jan Hubicka  <jh@suse.cz>
20372
20373         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
20374
20375 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
20376
20377         PR c/48685
20378         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
20379         to VOID_TYPE even around MODIFY_EXPR.
20380
20381 2011-04-22  Mike Stump  <mikestump@comcast.net>
20382
20383         * gensupport.c (read_md_rtx): Fix typo in comment.
20384         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
20385         comment.
20386
20387 2011-04-22  Jan Hubicka  <jh@suse.cz>
20388
20389         * gengtype.c (open_base_files): Add ipa-inline.h include.
20390         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
20391         ipa-prop.c; update all uses.
20392         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
20393         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
20394         merge summary of inlined function into former caller.
20395         * ipa-inline.c (max_benefit): Remove.
20396         (edge_badness): Compensate for removal of benefits.
20397         (update_caller_keys): Use
20398         reset_node_growth_cache/reset_edge_growth_cache.
20399         (update_callee_keys): Likewise.
20400         (update_all_callee_keys): Likewise.
20401         (inline_small_functions): Do not collect max_benefit; do not reset
20402         estimated_growth; call free_growth_caches and initialize_growth_caches.
20403         * ipa-inline.h (struct condition, type clause_t, struct predicate,
20404         struct size_time_entry): New structures.
20405         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
20406         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
20407         and estimated_growth.
20408         (edge_growth_cache_entry): New structure.
20409         (node_growth_cache, edge_growth_cache): New global vars.
20410         (estimate_growth): Turn into inline.
20411         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
20412         initialize_growth_caches, free_growth_caches): Declare.
20413         (estimate_edge_growth): Rewrite.
20414         (estimate_edge_time): Implement as inline cache lookup.
20415         (reset_node_growth_cache, reset_edge_growth_cache): New inline
20416         functions.
20417         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
20418         (NUM_CONDITIONS): New constant.
20419         (predicate_conditions): New enum.
20420         (IS_NOT_CONSTANT): New constant.
20421         (edge_removal_hook_holder): New var.
20422         (node_growth_cache, edge_growth_cache): New global vars.
20423         (true_predicate, single_cond_predicate, false_predicate,
20424         not_inlined_predicate, add_condition, add_clause, and_predicates,
20425         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
20426         dump_clause, dump_predicate, account_size_time,
20427         evaulate_conditions_for_edge): New functions.
20428         (inline_summary_alloc): Move to heap.
20429         (inline_node_removal_hook): Clear condition and entry vectors.
20430         (inline_edge_removal_hook): New function.
20431         (initialize_growth_caches, free_growth_caches): New function.
20432         (dump_inline_summary): Update.
20433         (edge_execution_predicate): New function.
20434         (will_be_nonconstant_predicate): New function.
20435         (estimate_function_body_sizes): Compute BB and constantness predicates.
20436         (compute_inline_parameters): Do not clear estimated_growth.
20437         (estimate_edge_size_and_time): New function.
20438         (estimate_calls_size_and_time): New function.
20439         (estimate_callee_size_and_time): New function.
20440         (remap_predicate): New function.
20441         (inline_merge_summary): New function.
20442         (do_estimate_edge_time): New function based on...
20443         (estimate_edge_time): ... this one.
20444         (do_estimate_edge_growth): New function.
20445         (do_estimate_growth): New function based on....
20446         (estimate_growth): ... this one.
20447         (inline_analyze_function): Analyze after deciding on jump functions.
20448         (inline_read_section): New function.
20449         (inline_read_summary): Use it.
20450         (inline_write_summary): Write all the new data.
20451         * ipa-prop.c (ipa_get_param_decl_index): Export.
20452         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
20453         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
20454         Declare.
20455         (ipa_get_lattice): Move here from ipa-cp.c
20456         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
20457         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
20458         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
20459         cgraph_edge_inlinable_p): Remove.
20460         * cgraphunit.c: Include ipainline.h
20461         (cgraph_process_new_functions): Update call of
20462         compute_inline_parameters.
20463
20464 2011-04-22  Richard Guenther  <rguenther@suse.de>
20465
20466         * tree.c (build_int_cst): Properly create canonicalized integer
20467         constants.
20468         (build_int_cst_type): Remove scary comments.
20469
20470 2011-04-22  Xinliang David Li  <davidxl@google.com>
20471
20472         * toplev.c (process_options): Enable -Werror=coverage-mismatch
20473         by default when -Wno-error is not specified.
20474         * opts-global.c (decode_options): Remove call to
20475         control_warning_options.
20476
20477 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
20478
20479         PR tree-optimization/48717
20480         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
20481         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
20482
20483 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
20484
20485         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
20486         definition where used.
20487
20488 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
20489
20490         PR c/48716
20491         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
20492         TREE_STATIC variables declared inside of some OpenMP construct.
20493
20494 2011-04-22  Martin Jambor  <mjambor@suse.cz>
20495
20496         PR middle-end/48585
20497         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
20498
20499 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
20500
20501         PR c/36750
20502         * c-typeck.c (pop_init_level): Do not warn about initializing
20503         with ` = {0}'.
20504
20505 2011-04-22  Alan Modra  <amodra@gmail.com>
20506
20507         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
20508         when returning call_cookie.
20509         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
20510         pointers, to functions with no more vector args than the current
20511         function, and some non-local calls for ABI_V4.
20512         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
20513         sibcall_nonlocal_aix64): Combine to ..
20514         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
20515         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
20516         (sibcall_value_nonlocal_aix<mode>): ..likewise.
20517         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
20518         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
20519         operand.
20520         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
20521         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
20522         sibcall_value_symbolic_64): Delete.
20523
20524 2011-04-21  Xinliang David Li  <davidxl@google.com>
20525
20526         * cgraph.h: Remove pid.
20527         * cgraph.c: Remove pid.
20528         * value-prof.c (init_node_map): New function.
20529         (del_node_map): New function.
20530         (find_func_by_funcdef_no): New function.
20531         (gimple_ic_transform): Call new function.
20532         * cgraphunit.c (cgraph_finalize_function): Remove pid.
20533         * function.c (get_last_funcdef_no): New function.
20534         * function.h (get_last_funcdef_no): New function.
20535         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
20536         to libgcov function.
20537         (tree-profiling): Call node map init and delete function.
20538
20539 2011-04-21  Ian Lance Taylor  <iant@google.com>
20540
20541         * godump.c (go_format_type): Use exported Go name for anonymous
20542         field name.
20543
20544 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20545
20546         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
20547         Call builtin_function_type_list instead of builtin_function_type.
20548         (UNARY, BINARY, TRINARY, QUAD): Likewise.
20549
20550 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20551
20552         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
20553         build_function_type_list instead of build_function_type.
20554         Delete variable `endlink'.
20555
20556 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20557
20558         * config/s390/s390.c (s390_init_builtins): Call
20559         build_function_type_list instead of build_function_type.
20560
20561 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
20562
20563         * config/ia64/ia64.c (ia64_init_builtins): Call
20564         build_function_type_list instead of builtin_function_type.
20565
20566 2011-04-21  Easwaran Raman  <eraman@google.com>
20567
20568         * cfgexpand.c (stack_var): Remove OFFSET...
20569         (add_stack_var): ...and its reference here...
20570         (expand_stack_vars): ...and here.
20571         (stack_var_cmp): Sort by descending order of size.
20572         (partition_stack_vars): Change heuristic.
20573         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
20574         (dump_stack_var_partition): Add newline after each partition.
20575
20576 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
20577             Jeff Law  <law@redhat.com>
20578
20579         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
20580         * gengtype.c (matching_file_name_substitute): Likewise.
20581
20582 2011-04-21  Richard Guenther  <rguenther@suse.de>
20583
20584         PR lto/48703
20585         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
20586
20587 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
20588
20589         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
20590
20591 2011-04-21  Richard Guenther  <rguenther@suse.de>
20592
20593         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
20594         file name.
20595
20596 2011-04-21  Richard Guenther  <rguenther@suse.de>
20597
20598         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
20599         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
20600         Use DECL_P, not SSA_VAR_P.
20601         (ptr_derefs_may_alias_p): Likewise.
20602         (ptr_deref_may_alias_ref_p_1): Likewise.
20603         (decl_refs_may_alias_p): Likewise.
20604         (refs_may_alias_p_1): Likewise.
20605         (ref_maybe_used_by_call_p_1): Likewise.
20606         (call_may_clobber_ref_p_1): Likewise.
20607         (indirect_ref_may_alias_decl_p): Assume indirect refrences
20608         are either MEM_REF or TARGET_MEM_REF.
20609         (indirect_refs_may_alias_p): Likewise.
20610         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
20611         for MEM_EXPR of indirect calls.
20612
20613 2011-04-21  Tristan Gingold  <gingold@adacore.com>
20614
20615         * vmsdbgout.c (write_srccorr): Compute file length from the string.
20616         (dst_file_info_struct): Remove flen field.
20617         (lookup_filename): Remove code that set flen field.
20618
20619 2011-04-21  Tristan Gingold  <gingold@adacore.com>
20620
20621         * config/ia64/ia64.c (ia64_start_function): Add a guard.
20622
20623 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
20624
20625         PR target/48708
20626         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
20627         vec_extract and vec_concat for non-SSE4_1 targets.
20628
20629 2011-04-21  Richard Guenther  <rguenther@suse.de>
20630
20631         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
20632         return statements.
20633
20634 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
20635
20636         * config/i386/cygming.h (union tree_node, TREE): Don't define or
20637         undefine.
20638         (FILE): Don't undefine.
20639
20640 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
20641
20642         * config/alpha/alpha.c (struct machine_function): Use rtx, not
20643         struct rtx_def *.
20644         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
20645         struct rtx_def *.
20646         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
20647         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
20648         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
20649         rtx_def *.
20650         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
20651         definitions where used.
20652         * config/microblaze/microblaze.h (struct microblaze_args): Use
20653         rtx, not struct rtx_def *.
20654         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
20655         rtx_def *.
20656         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
20657         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
20658         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
20659         not struct rtx_def *.
20660         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
20661         struct rtx_def *.
20662         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
20663         rtx_def *.
20664         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
20665
20666 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20667
20668         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
20669         operand_equal_p to compare DR_BASE_ADDRESSes.
20670         (vect_check_interleaving): Likewise.
20671
20672 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20673
20674         PR target/46329
20675         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
20676         for all Neon struct constants.
20677
20678 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20679
20680         * target.def (legitimate_constant_p): New hook.
20681         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
20682         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
20683         * doc/tm.texi: Regenerate.
20684         * hooks.h (hook_bool_mode_rtx_true): Declare.
20685         * hooks.c (hook_bool_mode_rtx_true): Define.
20686         * system.h (LEGITIMATE_CONSTANT_P): Poison.
20687         * calls.c (precompute_register_parameters): Replace uses of
20688         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
20689         (emit_library_call_value_1): Likewise.
20690         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
20691         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
20692         * ira-costs.c (scan_one_insn): Likewise.
20693         * recog.c (general_operand, immediate_operand): Likewise.
20694         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
20695         * reload1.c (init_eliminable_invariants): Likewise.
20696
20697         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
20698         mode argument.
20699         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
20700         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
20701         argument.
20702         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20703         * config/alpha/predicates.md (input_operand): Update call to
20704         alpha_legitimate_constant_p.
20705
20706         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
20707         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
20708         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
20709         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20710         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
20711         (arm_legitimate_constant_p): New functions.
20712         (arm_cannot_force_const_mem): Make static.
20713
20714         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
20715
20716         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
20717         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
20718         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
20719         instead of bfin_legitimate_constant_p.
20720         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
20721         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20722
20723         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
20724
20725         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
20726
20727         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
20728         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
20729         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20730         (frv_legitimate_constant_p): Make static.  Add a mode argument.
20731
20732         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
20733         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
20734         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
20735
20736         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
20737         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
20738         * config/i386/i386.c (legitimate_constant_p): Rename to...
20739         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
20740         argument.
20741         (ix86_cannot_force_const_mem): Update accordingly.
20742         (ix86_legitimate_address_p): Likewise.
20743         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20744         * config/i386/i386.md: Update commentary.
20745
20746         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
20747         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
20748         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20749         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
20750
20751         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
20752
20753         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
20754         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
20755         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20756         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
20757
20758         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
20759         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
20760         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
20761
20762         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
20763         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20764         (m32r_legitimate_constant_p): New function.
20765
20766         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
20767         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
20768         LEGITIMATE_CONSTANT_P.
20769         (LEGITIMATE_CONSTANT_P): Delete.
20770         * config/m68k/m68k.c (m68k_expand_prologue): Call
20771         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
20772         (m68k_legitimate_constant_p): New function.
20773         * config/m68k/m68k.md: Update comments.
20774
20775         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
20776         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20777         (mcore_legitimate_constant_p): New function.
20778
20779         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
20780         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
20781         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
20782         Add a mode argument.
20783         (mep_legitimate_address): Update accordingly.
20784         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20785
20786         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
20787         Delete.
20788         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
20789         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
20790         static.  Check OP's mode for VOIDmode.
20791         (microblaze_legitimate_constant_p): New function.
20792         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20793
20794         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
20795         * config/mips/mips.c (mips_legitimate_constant_p): New function.
20796         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
20797         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20798         * config/mips/predicates.md: Update comments.
20799
20800         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
20801         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
20802         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20803         (mmix_legitimate_constant_p): Make static, return a bool, and take
20804         a mode argument.
20805         (mmix_print_operand_address): Update accordingly.
20806
20807         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
20808         Delete.
20809         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
20810         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
20811         static.  Add a mode argument.
20812         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20813
20814         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
20815
20816         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
20817         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20818         (pa_legitimate_constant_p): New function.
20819
20820         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
20821
20822         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
20823         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20824         (pdp11_legitimate_constant_p): New function.
20825
20826         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
20827         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20828         (rs6000_legitimate_constant_p): New function.
20829
20830         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
20831         (rx_legitimate_constant_p): ...this.
20832         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
20833         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
20834         (rx_legitimate_constant_p): ...this.
20835         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20836         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
20837
20838         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
20839         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
20840         * config/s390/s390.c (legitimate_constant_p): Rename to...
20841         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
20842         and add a mode argument.
20843         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20844
20845         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
20846
20847         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
20848         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20849         (sh_legitimate_constant_p): New function.
20850
20851         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
20852         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
20853         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20854         (legitimate_constant_p): Rename to...
20855         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
20856         argument.
20857         (constant_address_p): Update accordingly.
20858
20859         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
20860         argument and return a bool.
20861         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
20862         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20863         (spu_legitimate_constant_p): Add a mode argument and return a bool.
20864         (spu_rtx_costs): Update accordingly.
20865         * config/spu/predicates.md (vec_imm_operand): Likewise.
20866
20867         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
20868
20869         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
20870         * config/v850/v850.c (v850_legitimate_constant_p): New function.
20871         (TARGET_LEGITIMATE_CONSTANT_P): Define.
20872
20873         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
20874         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
20875         * config/vax/vax.c (legitimate_constant_p): Likewise.
20876
20877         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
20878         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
20879         (xtensa_legitimate_constant_p): New function.
20880
20881 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
20882
20883         * target.def (cannot_force_const_mem): Add a mode argument.
20884         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
20885         * doc/tm.texi: Regenerate.
20886         * hooks.h (hook_bool_mode_rtx_false): Declare.
20887         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
20888         (hook_bool_mode_const_rtx_true): Likewise.
20889         (hook_bool_mode_rtx_false): New function.
20890         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
20891         to be non-VOID.  Update call to cannot_force_const_mem.
20892         (find_reloads): Update accordingly.
20893         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
20894         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
20895         argument.
20896         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
20897         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
20898         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
20899         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
20900         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
20901         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
20902         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
20903         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20904         (m68k_cannot_force_const_mem): ...this new function.
20905         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
20906         argument.
20907         (mips_const_insns, mips_legitimize_const_move): Update calls.
20908         (mips_secondary_reload_class): Likewise.
20909         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
20910         (pa_cannot_force_const_mem): ...this new function.
20911         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
20912         (rs6000_cannot_force_const_mem): ...this new function.
20913         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
20914         argument.
20915         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
20916         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
20917         to...
20918         (xtensa_cannot_force_const_mem): ...this new function.
20919
20920 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20921
20922         * config/mips/mips.c (mips16_build_function_stub): Call
20923         build_function_type_list instead of build_function_type.
20924         (mips16_build_call_stub): Likewise.
20925
20926 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20927
20928         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
20929         instead of build_function_type.
20930
20931 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
20932
20933         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
20934         instead of build_function_type.
20935
20936 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
20937
20938         PR target/48678
20939         * config/i386/i386.md (insv): Change operand 0 constraint to
20940         "register_operand".  Change operand 1 and 2 constraint to
20941         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
20942         * config/i386/sse.md (sse4_1_pinsrb): Export.
20943         (sse2_pinsrw): Ditto.
20944         (sse4_1_pinsrd): Ditto.
20945         (sse4_1_pinsrq): Ditto.
20946         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
20947         * config/i386/i386.c (ix86_expand_pinsr): New.
20948
20949 2011-04-20  Easwaran Raman  <eraman@google.com>
20950
20951         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
20952         containing union type only with -fstrict-aliasing.
20953
20954 2011-04-20  Jim Meyering  <meyering@redhat.com>
20955
20956         Remove useless if-before-free tests.
20957         * calls.c (expand_call, save_area): Likewise.
20958         * cfgcleanup.c (try_forward_edges): Likewise.
20959         * collect2.c (collect_execute): Likewise.
20960         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
20961         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
20962         * coverage.c (coverage_checksum_string): Likewise.
20963         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
20964         * cselib.c (cselib_init): Likewise.
20965         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
20966         (df_set_clean_cfg): Likewise.
20967         * function.c (free_after_compilation): Likewise.
20968         * gcc.c (do_spec_1, main): Likewise.
20969         * gcov.c (create_file_names): Likewise.
20970         * gensupport.c (identify_predicable_attribute): Likewise.
20971         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
20972         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
20973         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
20974         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
20975         * ipa-pure-const.c (local_pure_const): Likewise.
20976         * ipa-reference.c (propagate): Likewise.
20977         * ira-costs.c (free_ira_costs): Likewise.
20978         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
20979         * matrix-reorg.c (mat_free): Likewise.
20980         * prefix.c (get_key_value): Likewise.
20981         * profile.c (compute_value_histograms): Likewise.
20982         * reload1.c (free_reg_equiv): Likewise.
20983         * sched-deps.c (free_deps): Likewise.
20984         * sel-sched-ir.c (fence_clear): Likewise.
20985         * sese.c (set_rename, if_region_set_false_region): Likewise.
20986         * tree-data-ref.c (free_rdg): Likewise.
20987         * tree-eh.c (lower_try_finally): Likewise.
20988         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
20989         * tree-ssa-live.c (delete_var_map): Likewise.
20990         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
20991         * tree-ssa-pre.c (phi_trans_add): Likewise.
20992
20993 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
20994
20995         PR tree-optimization/48611
20996         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
20997         beyond ERT_MUST_NOT_THROW region.
20998
20999 2011-04-20  Catherine Moore  <clm@codesourcery.com>
21000
21001         * config/mips/mips.opt (mfix-24k): New.
21002         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
21003         * config/mips/mips.md (length): Increase by 4 for stores if
21004         fixing 24K errata.
21005         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
21006         all noreorder if fixing 24K errata.
21007         * doc/invoke.texi: Document mfix-24k.
21008
21009 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
21010
21011         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
21012         quad-word modes, reduce to 9-bit index range when above 1016 limit.
21013
21014 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
21015
21016         * config/arm/arm.c (arm_gen_constant): Move movw support ....
21017         (const_ok_for_op): ... to here.
21018
21019 2011-04-20  Kai Tietz  <ktietz@redhat.com>
21020
21021         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
21022         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
21023
21024 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
21025
21026         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
21027
21028 2011-04-20  Richard Guenther  <rguenther@suse.de>
21029
21030         PR tree-optimization/47892
21031         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
21032         are if-convertible.
21033
21034 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
21035
21036         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
21037
21038 2011-04-20  Tristan Gingold  <gingold@adacore.com>
21039
21040         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
21041
21042 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
21043
21044         PR target/18145
21045
21046         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
21047         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
21048         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
21049         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
21050         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
21051
21052         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
21053         New prototype.
21054
21055         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
21056         (avr_asm_named_section, avr_asm_output_aligned_common,
21057         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
21058         New functions to update...
21059         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
21060         (avr_asm_init_sections): Overwrite section callbacks for
21061         data_section, bss_section.
21062         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
21063         from here to...
21064         (avr_file_end): ...here.
21065
21066 2011-04-20  Richard Guenther  <rguenther@suse.de>
21067
21068         PR middle-end/48695
21069         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
21070         objects and types here.  Adjust for their offset before comparing.
21071
21072 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
21073
21074         * tree-vect-stmts.c (vectorizable_store): Only chain one related
21075         statement per copy.
21076
21077 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
21078
21079         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
21080         (GIMPLE_H): Include $(INTERNAL_FN_H).
21081         (OBJS-common): Add internal-fn.o.
21082         (internal-fn.o): New rule.
21083         * internal-fn.def: New file.
21084         * internal-fn.h: Likewise.
21085         * internal-fn.c: Likewise.
21086         * gimple.h: Include internal-fn.h.
21087         (GF_CALL_INTERNAL): New gf_mask.
21088         (gimple_statement_call): Put fntype into a union with a new
21089         internal_fn field.
21090         (gimple_build_call_internal): Declare.
21091         (gimple_build_call_internal_vec): Likewise.
21092         (gimple_call_same_target_p): Likewise.
21093         (gimple_call_internal_p): New function.
21094         (gimple_call_internal_fn): Likewise.
21095         (gimple_call_fntype): Return null for internal calls.
21096         (gimple_call_set_fntype): Assert that the function is not internal.
21097         (gimple_call_set_fn): Likewise.
21098         (gimple_call_set_fndecl): Likewise.
21099         (gimple_call_set_internal_fn): New function.
21100         (gimple_call_addr_fndecl): Handle null functions.
21101         (gimple_call_return_type): Likewise null types.
21102         * gimple.c (gimple_build_call_internal_1): New function.
21103         (gimple_build_call_internal): Likewise.
21104         (gimple_build_call_internal_vec): Likewise.
21105         (gimple_call_same_target_p): Likewise.
21106         (gimple_call_flags): Handle calls to internal functions.
21107         (gimple_call_fnspec): New function.
21108         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
21109         (gimple_has_side_effects): Handle null functions.
21110         (gimple_rhs_has_side_effects): Likewise.
21111         (gimple_call_copy_skip_args): Handle calls to internal functions.
21112         * cfgexpand.c (expand_call_stmt): Likewise.
21113         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
21114         * gimple-fold.c (gimple_fold_call): Handle null functions.
21115         (gimple_fold_stmt_to_constant_1): Don't fold
21116         calls to internal functions.
21117         * gimple-low.c (gimple_check_call_args): Handle calls to internal
21118         functions.
21119         * gimple-pretty-print.c (dump_gimple_call): Likewise.
21120         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
21121         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
21122         (do_warn_unused_result): Likewise.
21123         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
21124         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
21125         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
21126         the target of a call.
21127         (initialize_hash_element): Update accordingly.
21128         (hashable_expr_equal_p): Use gimple_call_same_target_p.
21129         (iterative_hash_hashable_expr): Handle calls to internal functions.
21130         (print_expr_hash_elt): Likewise.
21131         * tree-ssa-pre.c (can_value_number_call): Likewise.
21132         (eliminate): Handle null functions.
21133         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
21134         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
21135         (find_func_aliases): Likewise.
21136         * value-prof.c (gimple_ic_transform): Likewise.
21137         (gimple_indirect_call_to_profile): Likewise.
21138         * lto-streamer-in.c (input_gimple_stmt): Likewise.
21139         * lto-streamer-out.c (output_gimple_stmt): Likewise.
21140
21141 2011-04-19  Jan Hubicka  <jh@suse.cz>
21142
21143         * ipa-inline-transform.c (save_inline_function_body): Add comments.
21144         * ipa-inline.c (inline_small_functions): Compute summaries first,
21145         populate heap later.
21146
21147 2011-04-19  Jan Hubicka  <jh@suse.cz>
21148
21149         * cgraph.h (save_inline_function_body): Remove.
21150         * ipa-inline-transform.c: New file, broke out of...
21151         * ipa-inline.c: ... this one; Update toplevel comment.
21152         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
21153         make global.
21154         (update_noncloned_frequencies): Move to ipa-inline-transform.c
21155         (cgraph_mark_inline_edge): Rename to inline_call; move to
21156         ipa-inline-transform.c.
21157         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
21158         move to ipa-inline-transform.c
21159         (recursive_inlining, inline_small_functions, flatten_function,
21160         ipa_inline, inline_always_inline_functions,
21161         early_inline_small_functions): Update.
21162         (inline_transform): Move to ipa-inline-transform.c.
21163         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
21164         Declare.
21165         * Makefile.in (ipa-inline-transform.o): New file.
21166         * cgraphunit.c (save_inline_function_body): Move to
21167         ipa-inline-transform.c
21168
21169 2011-04-19  DJ Delorie  <dj@redhat.com>
21170
21171         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
21172         registers if we already know there aren't any.
21173         (m32c_emit_epilogue): Don't emit a barrier here.
21174         (m32c_emit_eh_epilogue): Likewise.
21175         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
21176         operands at expand time.
21177         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
21178         int" wchar type.
21179         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
21180         duplicates.  Provide aliases instead.
21181         * config/m32c/prologue.md (eh_return): Emit a barrier here.
21182         (eh_epilogue): Add a "(return)" here as a hint to other parts of
21183         the compiler.
21184
21185 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
21186
21187         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
21188         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
21189         (general_or_i64_p, sparc_register_move_cost): New function.
21190
21191 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21192
21193         * doc/install.texi (Configuration, --enable-threads): Remove mach.
21194         Add lynx, mipssde.  Sort table.
21195
21196 2011-04-19  Xinliang David Li  <davidxl@google.com>
21197
21198         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
21199         not negative.
21200
21201 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
21202
21203         PR target/48678
21204         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
21205         is a SUBREG with non-MODE_INT mode inside of it.
21206
21207 2011-04-19  Martin Jambor  <mjambor@suse.cz>
21208
21209         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
21210         also according to actual contants.
21211         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
21212         (gimple_fold_call): Use it.
21213         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
21214
21215 2011-04-19  Martin Jambor  <mjambor@suse.cz>
21216
21217         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
21218         non-pointer assignments.
21219
21220 2011-04-19  Martin Jambor  <mjambor@suse.cz>
21221
21222         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
21223         account anc_offset and otr_type from the indirect edge info.
21224         * ipa-prop.c (get_ancestor_addr_info): New function.
21225         (compute_complex_ancestor_jump_func): Assignment analysis moved to
21226         get_ancestor_addr_info, call it.
21227         (ipa_note_param_call): Do not initialize information about polymorphic
21228         calls, return the indirect call graph edge.  Remove the last
21229         parameter, adjust all callers.
21230         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
21231         parameters.  Initialize polymorphic information in the indirect edge.
21232
21233 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
21234
21235         PR lto/48148
21236         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
21237         the types if they have different enumeration identifiers.
21238
21239 2011-04-19  Jan Hubicka  <jh@suse.cz>
21240
21241         * cgraph.h (cgraph_optimize_for_size_p): Declare.
21242         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
21243         * predict.c (cgraph_optimize_for_size_p): Break out from ...
21244         (optimize_function_for_size_p) ... here.
21245
21246 2011-04-19  Richard Guenther  <rguenther@suse.de>
21247
21248         PR lto/48207
21249         * tree.c (free_lang_data): Do not reset the decl-assembler-name
21250         langhook.
21251
21252 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
21253
21254         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
21255         if DECL_NO_INLINE_WARNING_P is set on the function.
21256
21257 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
21258
21259         PR fortran/47976
21260         * reload1.c (inc_for_reload): Return void. All callers changed.
21261         (emit_input_reload_insns): Don't try to delete previous output
21262         reloads to a register, or record spill_reg_store for autoincs.
21263
21264 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
21265
21266         * gengtype.h: Updated copyright year.
21267         (struct input_file_st): Add inpisplugin field.
21268         (type_fileloc): New function.
21269         * gengtype.c
21270         (write_typed_struct_alloc_def): Add gcc_assert.
21271         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
21272         (write_typed_alloc_defns): Don't output for plugin files.
21273         (input_file_by_name): Clear inpisplugin field.
21274         (main): Set inpisplugin field for plugin files.
21275
21276 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
21277
21278         * gengtype-state.c (string_eq): New.
21279         (read_state): Use string_eq instead of strcmp when creating the
21280         state_ident_tab.
21281
21282 2011-04-19  Wei Guozhi  <carrot@google.com>
21283
21284         PR target/47855
21285         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
21286         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
21287         linkage.
21288         * config/arm/constraints.md (Uu): New constraint.
21289         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
21290
21291 2011-04-19  Tristan Gingold  <gingold@adacore.com>
21292
21293         * config.gcc (-*-*-*vms): Added.
21294         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
21295         definitions moved.
21296         * config/vms/vms-ld.c: New file.
21297         * config/vms/vms-ar.c: New file.
21298         * config/vms/t-vmsnative: New file.
21299
21300 2011-04-18  Xinliang David Li  <davidxl@google.com>
21301
21302         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
21303
21304 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
21305
21306         PR middle-end/48661
21307         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
21308         if TREE_TYPE (v) is non-NULL.
21309
21310         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
21311         gimple_get_virt_mehtod_for_binfo.
21312         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
21313         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
21314         callers.
21315         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
21316
21317 2011-04-18  Michael Matz  <matz@suse.de>
21318             Steve Ellcey  <sje@cup.hp.com>
21319
21320         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
21321         use its mode as source mode if it isn't VOIDmode.
21322
21323 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
21324
21325         * doc/passes.texi: Fill crossref nodes.
21326
21327 2011-04-18  Jim Meyering  <meyering@redhat.com>
21328
21329         Fix doubled-word typos in comments and strings
21330         * config/alpha/vms-unwind.h: s/for for/for/
21331         * config/arm/unwind-arm.h: Likewise.
21332         * config/microblaze/microblaze.c: Likewise.
21333         * config/sh/constraints.md: s/in in/in/
21334         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
21335
21336 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
21337
21338         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
21339         (AVX_FLOAT_MODE_P): Ditto.
21340         (AVX128_VEC_FLOAT_MODE_P): Ditto.
21341         (AVX256_VEC_FLOAT_MODE_P): Ditto.
21342         (AVX_VEC_FLOAT_MODE_P): Ditto.
21343         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
21344         (UNSPEC_MASKSTORE): Ditto.
21345         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
21346         Merge from <sse>_movmsk<ssemodesuffix> and
21347         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
21348         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
21349         iterator.
21350         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
21351         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
21352         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
21353
21354 2011-04-18  Jan Hubicka  <jh@suse.cz>
21355
21356         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
21357
21358         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
21359         (want_inline_function_called_once_p): Break out the logic from
21360         ipa_inline.
21361         (edge_badness): Ensure that profile is not misupdated.
21362         (lookup_recursive_calls): Prioritize by call frequencies.
21363         (inline_small_functions): Move program size estimates here;
21364         actually process whole queue even when unit growth has been
21365         met. (to properly compute inline_failed reasons and for the
21366         case unit size decrease.) Revisit comments on recursive inlining.
21367         (ipa_inline): Remove unit summary code; first inline hot calls
21368         of functions called once, cold calls next.
21369         (order, nnodes): Remove unused variables.
21370         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
21371         (GTFILES): Remove ipa-inline.c
21372         * sel-sched.c (fill_insns): Silence uninitialized var warning.
21373
21374 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
21375
21376         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
21377
21378 2011-04-18  Jie Zhang  <jie@codesourcery.com>
21379             Richard Earnshaw  <rearnsha@arm.com>
21380
21381         * arm.c (neon_builtin_type_bits): Remove.
21382         (typedef enum neon_builtin_mode): New.
21383         (T_MAX): Don't define.
21384         (typedef enum neon_builtin_datum): Remove bits, codes[],
21385         num_vars and base_fcode.  Add mode, code and fcode.
21386         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
21387         VAR10): Change accordingly.
21388         (neon_builtin_data[]): Change accordingly
21389         (arm_init_neon_builtins): Change accordingly.
21390         (neon_builtin_compare): Remove.
21391         (locate_neon_builtin_icode): Remove.
21392         (arm_expand_neon_builtin): Change accordingly.
21393
21394         * arm.h (enum arm_builtins): Move to ...
21395         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
21396
21397         * arm.c (arm_builtin_decl): Declare.
21398         (TARGET_BUILTIN_DECL): Define.
21399         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
21400         (arm_builtin_decls[]): New.
21401         (arm_init_neon_builtins): Store builtin declarations in
21402         arm_builtin_decls[].
21403         (arm_init_tls_builtins): Likewise.
21404         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
21405         (arm_builtin_decl): New.
21406
21407 2011-04-18  Richard Guenther  <rguenther@suse.de>
21408
21409         * tree.c (upper_bound_in_type): Build properly canonicalized
21410         INTEGER_CSTs.
21411         (lower_bound_in_type): Likewise.
21412
21413 2011-04-18  Richard Guenther  <rguenther@suse.de>
21414
21415         * gimple.h (gimple_call_addr_fndecl): New function.
21416         (gimple_call_fndecl): Use it.
21417         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
21418         for direct calls.
21419         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
21420         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
21421
21422 2011-04-18  Richard Guenther  <rguenther@suse.de>
21423
21424         PR middle-end/48650
21425         * tree.c (build_string): STRING_CST is now derived from tree_typed.
21426
21427 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
21428
21429         PR lto/48492
21430         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
21431         DECL_IN_CONSTANT_POOL without RTL.
21432
21433 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
21434             Ira Rosen  <ira.rosen@linaro.org>
21435
21436         PR target/48252
21437         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
21438         to match neon_vzip/vuzp/vtrn_internal.
21439         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
21440         outputs explicitly dependent on both inputs.
21441         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
21442
21443 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
21444
21445         PR tree-optimization/48616
21446         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
21447         whether the shift is by scalar or vector based on whether all SLP
21448         scalar stmts have the same rhs.
21449
21450 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
21451
21452         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
21453         memory operands.
21454
21455 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
21456
21457         PR target/43700
21458         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
21459         registers.
21460
21461 2011-04-17  Jan Hubicka  <jh@suse.cz>
21462
21463         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
21464         * cgrpahunit.c (cgraph_finalize_function): Do not set
21465         finalized_by_frontend.
21466         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21467         finalized_by_frontend.
21468
21469 2011-04-17  Jan Hubicka  <jh@suse.cz>
21470
21471         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
21472         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
21473         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
21474         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
21475         method.
21476         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
21477         gimple-fold.c
21478         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
21479
21480 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
21481
21482         PR lto/48538
21483         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
21484         is non-null before accessing it.
21485         (input_cgraph): Remove trailing spaces.
21486
21487 2011-04-17  Revital Eres  <revital.eres@linaro.org>
21488
21489         * params.def (sms-min-sc): New param flag.
21490         * modulo-sched.c (sms_schedule): Use it.
21491         * doc/invoke.texi (sms-min-sc): Document it.
21492
21493 2011-04-17  Jan Hubicka  <jh@suse.cz>
21494
21495         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
21496         present, also set gimple_call_set_cannot_inline.
21497         * ipa-inline.c: Update toplevel comment.
21498         (MAX_TIME): Remove.
21499         (cgraph_clone_inlined_nodes): Fix linebreaks.
21500         (cgraph_check_inline_limits): Restructure to ...
21501         (caller_growth_limits): ... this one; be more tolerant
21502         on growth in nested inline chains; add explanatory comment;
21503         fix stack accounting thinko introduced by previous patch.
21504         (cgraph_default_inline_p): Remove.
21505         (report_inline_failed_reason): New function.
21506         (can_inline_edge_p): New function.
21507         (can_early_inline_edge_p): New function.
21508         (leaf_node_p): Move upwards in file.
21509         (want_early_inline_function_p): New function.
21510         (want_inline_small_function_p): New function.
21511         (want_inline_self_recursive_call_p): New function.
21512         (cgraph_edge_badness): Rename to ...
21513         (edge_badness) ... this one; fix linebreaks.
21514         (update_edge_key): Update call of edge_baddness; add
21515         detailed dump about queue updates.
21516         (update_caller_keys): Use can_inline_edge_p and
21517         want_inline_small_function_p.
21518         (cgraph_decide_recursive_inlining): Rename to...
21519         (recursive_inlining): Use can_inline_edge_p and
21520         want_inline_self_recursive_call_p; simplify and remove no longer
21521         valid FIXME.
21522         (cgraph_set_inline_failed): Remove.
21523         (add_new_edges_to_heap): Use can_inline_edge_p and
21524         want_inline_small_function_p.
21525         (cgraph_decide_inlining_of_small_functions): Rename to ...
21526         (inline_small_functions): ... this one; cleanup; use
21527         can/want predicates; cleanup debug ouput; work edges till fibheap
21528         is exhausted and do not stop once unit growth is reached; remove
21529         later loop processing remaining edges.
21530         (cgraph_flatten): Rename to ...
21531         (flatten_function): ... this one; use can_inline_edge_p
21532         and can_early_inline_edge_p predicates.
21533         (cgraph_decide_inlining): Rename to ...
21534         (ipa_inline): ... this one; remove unreachable nodes before
21535         inlining functions called once; simplify the pass.
21536         (cgraph_perform_always_inlining): Rename to ...
21537         (inline_always_inline_functions): ... this one; use
21538         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
21539         (cgraph_decide_inlining_incrementally): Rename to ...
21540         (early_inline_small_functions): ... this one; simplify
21541         using new predicates; cleanup; make dumps prettier.
21542         (cgraph_early_inlining): Rename to ...
21543         (early_inliner): newer inline regular functions into always-inlines;
21544         fix updating of call stmt summaries.
21545         (pass_early_inline): Update for new names.
21546         (inline_transform): Fix formating.
21547         (gate_cgraph_decide_inlining): Rename to ...
21548         (pass_ipa_inline): ... this one.
21549         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
21550         * ipa-inline-analysis.c (dump_inline_summary): Update.
21551         (compute_inline_parameters): Do not compute disregard_inline_limits;
21552         look for mismatching arguments.
21553         (estimate_growth): Fix handlig of non-trivial self recursion.
21554         (inline_read_summary): Do not read info->disregard_inline_limits.
21555         (inline_write_summary): Do not write info->disregard_inline_limits.
21556         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
21557         and move all checks into can_inline_edge_p predicate; re-enable code
21558         comparing optimization levels.
21559         (expand_call_inline): Do not test inline_forbidden_into_p.
21560         * Makefile.in (ipa-inline.o): Update arguments.
21561
21562 2011-04-17  Revital Eres  <revital.eres@linaro.org>
21563
21564         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
21565
21566 2011-04-17  Revital Eres  <revital.eres@linaro.org>
21567
21568         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
21569
21570 2011-04-17  Michael Matz  <matz@suse.de>
21571
21572         PR tree-optimization/48622
21573         PR lto/48645
21574         * ipa-inline-analysis.c (inline_read_summary): Read size/time
21575         in same order as they're written.
21576
21577 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21578
21579         * config/pa/predicates.md: Reorganize and simplify predicates.
21580         Eliminate duplicate code checks.
21581         (arith_operand): Rename to arith14_operand
21582         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
21583         * config/pa/pa.md: Use renamed operands.
21584         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
21585         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
21586         arith11_operand, adddi3_operand, indexed_memory_operand,
21587         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
21588         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
21589         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
21590         move_dest_operand, move_src_operand, prefetch_cc_operand,
21591         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
21592         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
21593         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
21594         div_operand, int5_operand, movb_comparison_operator,
21595         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
21596         arith_double_operand, ireg_operand, lhs_lshift_operand,
21597         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
21598         integer_store_memory_operand): Likewise.
21599         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
21600         (integer_store_memory_operand, read_only_operand,
21601         function_label_operand, borx_reg_operand,
21602         non_hard_reg_operand): Likewise.
21603         (eq_neq_comparison_operator): Delete unused operator.
21604         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
21605         function_label_operand.
21606         (emit_move_sequence): Likewise.
21607
21608 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
21609
21610         * config/i386/sse.md (sseunpackmode): New mode attribute.
21611         (ssepackmode): Ditto.
21612         (vec_pack_trunc_<mode>): Macroize expander from
21613         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
21614         (vec_unpacks_lo_<mode>): Macroize expander from
21615         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21616         (vec_unpacks_hi_<mode>): Macroize expander from
21617         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21618         (vec_unpacku_lo_<mode>): Macroize expander from
21619         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21620         (vec_unpacku_hi_<mode>): Macroize expander from
21621         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
21622         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
21623         ix86_expand_sse4_unpack.
21624         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
21625
21626 2011-04-16  Jan Hubicka  <jh@suse.cz>
21627
21628         * cgraphbuild.c: Include ipa-inline.h.
21629         (reset_inline_failed): Use initialize_inline_failed.
21630         * cgraph.c: Include ipa-inline.h.
21631         (cgraph_create_node_1): Do not initialize estimated_growth.
21632         (initialize_inline_failed): More to ipa-inline-analysis.c
21633         (dump_cgraph_node): Do not dump inline flags.
21634         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
21635         and disregard_inline_limits flags.
21636         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
21637         time, size, estimated_growth.
21638         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
21639         Update.
21640         * cgraphunit.c (cgraph_decide_is_function_needed): Use
21641         DECL_DISREGARD_INLINE_LIMITS.
21642         (cgraph_analyze_function): Do not initialize
21643         node->local.disregard_inline_limits.
21644         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
21645         inlinable, versionable and disregard_inline_limits.
21646         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
21647         cgraph_check_inline_limits, cgraph_default_inline_p,
21648         cgraph_edge_badness, update_caller_keys, update_callee_keys,
21649         add_new_edges_to_heap): Update.
21650         (cgraph_decide_inlining_of_small_function): Update; set
21651         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
21652         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
21653         cgraph_decide_inlining_incrementally): Update.
21654         * ipa-inline.h (inline_summary): Add inlinable, versionable,
21655         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
21656         time, size and estimated_growth parameters.
21657         (estimate_edge_growth): Update.
21658         (initialize_inline_failed): Declare.
21659         * ipa-split.c: Include ipa-inline.h
21660         (execute_split_functions): Update.
21661         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
21662         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
21663         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
21664         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
21665         estimated_growth to INT_MIN.
21666         (inline_node_duplication_hook): Likewise.
21667         (dump_inline_summary): Dump new fields.
21668         (compute_inline_parameters): Update.
21669         (estimate_edge_time, estimate_time_after_inlining,
21670         estimate_size_after_inlining, estimate_growth, inline_read_summary,
21671         inline_write_summary):
21672         (initialize_inline_failed): Move here from cgraph.c.
21673         * tree-sra.c: Include ipa-inline.h.
21674         (ipa_sra_preliminary_function_checks): Update.
21675         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
21676         ipa-inline.h.
21677
21678 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
21679
21680         * config/i386/sse.md (V16): New mode iterator.
21681         (VI1, VI8): Ditto.
21682         (AVXMODEQI, AVXMODEDI): Remove.
21683         (sse2, sse3): New mode attribute.
21684         (mov<mode>): Use V16 mode iterator.
21685         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
21686         (push<mode>1): Use V16 mode iterator.
21687         (movmisalign<mode>): Ditto.
21688         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21689         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
21690         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
21691         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
21692         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
21693         avx_movdqu<avxmodesuffix>.
21694         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
21695         *avx_movdqu<avxmodesuffix>.
21696         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
21697         avx_lddqu<avxmodesuffix>.
21698         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
21699         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
21700         avx_movnt<AVXMODEDI:mode>.
21701         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
21702         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
21703
21704 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
21705
21706         PR target/48629
21707         * haifa-sched.c (prune_ready_list, schedule_block): Use
21708         sched_pressure_p rather than flag_sched_pressure.
21709
21710 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
21711
21712         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
21713         cgraph_get_node instead of cgraph_get_create_node.
21714
21715 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
21716
21717         * cfgexpand.c (expand_debug_expr): Use
21718         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
21719
21720 2011-04-15  Michael Matz  <matz@suse.de>
21721
21722         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
21723         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
21724         * function.c (gimplify_parameters): Ditto.
21725         * gimplify.c (gimplify_vla_decl): Ditto.
21726
21727         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
21728         (gimple_call_set_alloca_for_var): New inline function.
21729         (gimple_call_alloca_for_var_p): Ditto.
21730         * gimple.c (gimple_build_call_from_tree): Remember
21731         CALL_ALLOCA_FOR_VAR_P state.
21732         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
21733
21734         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
21735         calls if they were for VLA objects.
21736
21737 2011-04-15  Martin Jambor  <mjambor@suse.cz>
21738
21739         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
21740         of ADR_EXPRs.
21741
21742 2011-04-15  Martin Jambor  <mjambor@suse.cz>
21743
21744         PR middle-end/48601
21745         * tree-emutls.c (lower_emutls_function_body): Call
21746         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
21747         result is non-NULL.
21748
21749 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
21750
21751         * c-decl.c (detect_field_duplicates): Call
21752         objc_detect_field_duplicates instead of objc_get_interface_ivars.
21753
21754 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
21755
21756         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
21757         * gimple.c (gimple_asm_clobbers_memory_p): Define.
21758         * ipa-pure-const.c (check_stmt): Call it.
21759         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
21760
21761 2011-04-15  Richard Guenther  <rguenther@suse.de>
21762
21763         PR tree-optimization/48290
21764         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
21765         Properly decide inhibiting propagation based on the valueized
21766         operand.  Do loop-closed SSA form preserving here ...
21767         (init_copy_prop): ... not here.
21768
21769 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
21770
21771         PR target/48612
21772         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
21773         (*ieee_smax<mode>3): Likewise.
21774
21775 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21776
21777         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
21778         Replace match_operand with match_dup for the third operand in
21779         these expanders.
21780
21781 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
21782
21783         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
21784         to track processing of conditionals.  Update all callers.
21785         (try_combine, simplify_if_then_else): Update.
21786
21787 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
21788
21789         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
21790         -fsched-pressure.
21791
21792 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
21793
21794         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
21795         instead of match_operand for operand 3.
21796
21797 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
21798
21799         * recog.h (insn_operand_data): Add an "allows_mem" field.
21800         * genoutput.c (output_operand_data): Initialize it.
21801         * optabs.c (maybe_legitimize_operand_same_code): New function.
21802         (maybe_legitimize_operand): Use it when matching the original
21803         op->value.
21804
21805 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
21806
21807         * gimplify.c: Fix issues in comments throughout.
21808         (voidify_wrapper_expr): Fix long line.
21809         (build_stack_save_restore): Likewise.
21810         (gimplify_loop_expr): Likewise.
21811         (gimplify_compound_lval): Likewise.
21812         (gimplify_init_ctor_eval): Likewise.
21813         (gimplify_modify_expr_rhs): Likewise.
21814         (omp_notice_threadprivate_variable): Likewise.
21815
21816 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
21817
21818         * cfgexpand.c (expand_call_stmt): Convert the function type to the
21819         original one if this is not a builtin function.
21820
21821 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
21822
21823         PR target/48605
21824         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
21825         offset it as needed based on top 2 bits in operands[3], change
21826         MEM mode to SFmode and mask those 2 bits away from operands[3].
21827
21828 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
21829
21830         * c-parser.c (c_parser_objc_protocol_definition): Updated for
21831         change from objc_declare_protocols() to objc_declare_protocol().
21832
21833 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
21834
21835         * config/i386/sse.md (sse4_1): New mode attribute.
21836         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
21837         avx_blend<ssemodesuffix><avxmodesuffix> and
21838         sse4_1_blend<ssemodesuffix> using VF mode iterator.
21839         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
21840         avx_blendv<ssemodesuffix><avxmodesuffix> and
21841         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
21842         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
21843         avx_dp<ssemodesuffix><avxmodesuffix> and
21844         sse4_1_dp<ssemodesuffix> using VF mode iterator.
21845         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
21846         (sse4_1_packusdw): Merge with *avx_packusdw.
21847         (sse4_1_pblendvb): Merge with *avx_pblendvb.
21848         (sse4_1_pblendw): Merge with *avx_pblendw.
21849         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
21850         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
21851         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
21852         VF mode iterator.
21853         (sse4_1_round<ssescalarmodesuffix>): Merge with
21854         *avx_round<ssescalarmodesuffix>.
21855         (aesenc): Merge with *avx_aesenc.
21856         (aesenclast): Merge with *avx_aesenclast.
21857         (aesdec): Merge with *avx_aesdec.
21858         (aesdeclast): Merge with *avx_aesdeclast.
21859         (pclmulqdq): Merge with *pclmulqdq.
21860         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
21861         New predicate.
21862         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
21863
21864 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
21865
21866         PR middle-end/48608
21867         * cfgexpand.c (get_decl_align_unit): Renamed to ...
21868         (align_local_variable): This.  Update DECL_ALIGN.
21869         (add_stack_var): Updated.
21870         (expand_one_stack_var): Likewise.
21871
21872 2011-04-14  Richard Guenther  <rguenther@suse.de>
21873
21874         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
21875         Remove.
21876         (dse_initialize_block_local_data, dse_leave_block,
21877         record_voperand_set, get_stmt_uid): Likewise.
21878         (dse_possible_dead_store_p): Allow any kind of killing stmt.
21879         (dse_optimize_stmt): Remove voperand set handling code.
21880         Simplify and improve to handle any kind of killing stmt.
21881         (dse_record_phi): Remove.
21882         (dse_enter_block): Simplify.
21883         (tree_ssa_dse): Likewise.
21884         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
21885
21886 2011-04-14  Jan Hubicka  <jh@suse.cz>
21887
21888         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
21889         * cgraph.h (struct inline_summary): Move to ipa-inline.h
21890         (cgraph_local_info): Remove inline_summary.
21891         * ipa-cp.c: Include ipa-inline.h.
21892         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
21893         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
21894         accesor.
21895         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
21896         (input_overwrite_node): Do not set inline summary.
21897         (input_node): Do not stream inline summary.
21898         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
21899         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
21900         growth; we do not have inline parameters computed for that anyway.
21901         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
21902         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
21903         (inline_summary_t): New type and VECtor.
21904         (debug_inline_summary, dump_inline_summaries): Declare.
21905         (inline_summary): Use VOCtor.
21906         (estimate_edge_growth): Kill hack computing call stmt size directly.
21907         * lto-section-in.c (lto_section_name): Add inline section.
21908         * ipa-inline-analysis.c: Include lto-streamer.h
21909         (node_removal_hook_holder, node_duplication_hook_holder): New holders
21910         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
21911         (inline_summary_vec): Define.
21912         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
21913         dump_inline_summaries): New functions.
21914         (estimate_function_body_sizes): Properly compute size/time of outgoing
21915         calls.
21916         (compute_inline_parameters): Alloc inline_summary; do not compute
21917         size/time of incomming calls.
21918         (estimate_edge_time): Avoid missing time summary hack.
21919         (inline_read_summary): Read inline summary info.
21920         (inline_write_summary): Write inline summary info.
21921         (inline_free_summary): Free all hooks and inline summary vector.
21922         * lto-streamer.h: Add LTO_section_inline_summary section.
21923         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
21924         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
21925
21926 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21927
21928         * tree-vectorizer.h (vect_strided_store_supported): Add a
21929         HOST_WIDE_INT argument.
21930         (vect_strided_load_supported): Likewise.
21931         (vect_permute_store_chain): Return void.
21932         (vect_transform_strided_load): Likewise.
21933         (vect_permute_load_chain): Delete.
21934         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
21935         count argument.  Check that the count is a power of two.
21936         (vect_strided_load_supported): Likewise.
21937         (vect_permute_store_chain): Return void.  Update after above changes.
21938         Assert that the access is supported.
21939         (vect_permute_load_chain): Likewise.
21940         (vect_transform_strided_load): Return void.
21941         * tree-vect-stmts.c (vectorizable_store): Update calls after
21942         above interface changes.
21943         (vectorizable_load): Likewise.
21944         (vect_analyze_stmt): Don't check for strided powers of two here.
21945
21946 2011-04-14  Richard Guenther  <rguenther@suse.de>
21947
21948         PR tree-optimization/48590
21949         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21950         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21951         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
21952         BUILT_IN_STACK_SAVE.
21953         * tree-ssa-dce.c (propagate_necessity): Handle
21954         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
21955
21956 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
21957
21958         * c-parser.c (c_parser_objc_class_declaration): Updated call to
21959         objc_declare_class.
21960
21961 2011-04-14  Richard Guenther  <rguenther@suse.de>
21962
21963         * tree.h (get_object_alignment_1): Declare.
21964         * builtins.c (get_object_alignment_1): Split out worker from ...
21965         (get_object_alignment): ... here.
21966         * fold-const.c (get_pointer_modulus_and_residue): Use
21967         get_object_alignment_1.
21968
21969 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21970
21971         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
21972         type parameter.
21973         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
21974         parameter.  Generalise code to handle arrays as well as vectors.
21975         (vect_setup_realignment): Update accordingly.
21976         * tree-vect-stmts.c (vectorizable_store): Likewise.
21977         (vectorizable_load): Likewise.
21978
21979 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21980
21981         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
21982         within the per-copy loop.
21983
21984 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21985
21986         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
21987         in the dump file.
21988
21989 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
21990
21991         * doc/options.texi (Negative): Explicitly mention that the
21992         Negative chain must be circular.
21993
21994 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
21995
21996         * function.h (block_chainon): Declare.
21997         * function.c (block_chainon): Define.
21998
21999 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
22000             Eric Weddington  <eric.weddington@atmel.com>
22001             Georg-Johann Lay  <avr@gjlay.de>
22002
22003         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
22004         New Includes
22005         (avr_init_builtins, avr_expand_builtin,
22006         avr_expand_delay_cycles, avr_expand_unop_builtin,
22007         avr_expand_binop_builtin ): New functions.
22008         (avr_builtin_id): New enum
22009         (struct avr_builtin_description): New struct
22010         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
22011         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
22012
22013         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
22014         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
22015         UNSPECV_DELAY_CYCLES): new enumeration values
22016         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
22017         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
22018         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
22019         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
22020         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
22021         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
22022         "fmulsu"): New insns
22023
22024         * config/avr/avr-c.c: fix line endings
22025         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
22026         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
22027         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
22028         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
22029         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
22030
22031         * doc/extend.texi (AVR Built-in Functions): New node
22032         (Target Builtins): Add documentation of AVR
22033         built-in functions.
22034
22035 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
22036
22037         PR target/44643
22038         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
22039         alone. Error if non-const data has attribute progmem.
22040
22041 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
22042
22043         * tree.h (struct tree_constructor): Include tree_typed instead of
22044         tree_common.
22045         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
22046         TS_TYPED instead of TS_COMMON.
22047
22048 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
22049
22050         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
22051         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
22052         (sse2_psadbw): Merge with *avx_psadbw.
22053         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
22054         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
22055         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
22056         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
22057         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
22058         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
22059         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
22060         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
22061         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
22062         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
22063         (ssse3_palignrti): Merge with *avx_palignrti.
22064
22065 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
22066
22067         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
22068         * tree-ssanames.c (fini_ssanames): VEC_free it.
22069         (make_ssa_name_fn): Update for VECness of free_ssanames.
22070         (release_ssa_name, release_dead_ssa_names): Likewise.
22071         * tree.h (struct tree_ssa_name): Include tree_typed instead of
22072         tree_common.
22073         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
22074         TS_TYPED instead of TS_COMMON.
22075
22076 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
22077
22078         * postreload-gcse.c (gcse_after_reload_main): Add calls to
22079         statistics_counter_event.
22080         * tree-ssa-copyrename.c (stats): Define.
22081         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
22082         statistics_counter_event.
22083         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
22084         (bswap_stats, widen_mul_stats): Define.
22085         (insert_reciprocals): Increment rdivs_inserted.
22086         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
22087         rfuncs_inserted.  Add calls to statistics_counter_event.
22088         (execute_cse_sincos_1): Increment inserted.
22089         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
22090         statistics_counter_event.
22091         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
22092         of bswap_stats.  Add calls to statistics_counter_event.
22093         (convert_mult_to_widen): Increment widen_mults_inserted.
22094         (convert_plusminus_to_widen): Increment maccs_inserted.
22095         (convert_mult_to_fma): Increment fmas_inserted.
22096         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
22097         calls to statistics_counter_event.
22098
22099 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
22100
22101         PR rtl-optimization/48455
22102         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
22103         `temp_costs->mem_cost'.
22104
22105 2011-04-13  Jan Hubicka  <jh@suse.cz>
22106
22107         * ipa-inline.h: New file.
22108         * ipa-inline-analysis.c: New file. Broken out of ...
22109         * ipa-inline.c: ... this file; update toplevel comment;
22110         include ipa-inline.h
22111         (inline_summary): Move to ipa-inline.h
22112         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
22113         ipa-inline-analysis.c.
22114         (cgraph_estimate_time_after_inlining): Rename to
22115         estiamte_time_after_inlining; move to ipa-inline-analysis.c
22116         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
22117         to estimate_edge_growth.
22118         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
22119         rename to estimate_size_after_inlining.
22120         (cgraph_mark_inline_edge): Update for new naming convention.
22121         (cgraph_check_inline_limits): Likewise.
22122         (cgraph_edge_badness): Likewise.
22123         (cgraph_decide_recursive_inlining): Likewise.
22124         (cgraph_decide_inlining_of_small_functions): Likewise.
22125         (cgraph_decide_inlining_incrementally): Likewise.
22126         (cgraph_estimate_growth): Rename to estimate_growth; move to
22127         ipa-inline-analysis.c.
22128         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
22129         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
22130         (compute_inline_parameters): Likewise.
22131         (compute_inline_parameters_for_current): Likewise.
22132         (pass_inline_parameters): Likewise.
22133         (inline_indirect_intraprocedural_analysis): Likewise.
22134         (analyze_function): Rename to inline_analyze_function; likewise.
22135         (add_new_function): Move to ipa-inline-analysis.c.
22136         (inline_generate_summary): Likewise.
22137         (inline_read_summary): Likewise.
22138         (inline_write_summary): Likewise.
22139         * Makefile.in (ipa-inline-analysis.c): New file.
22140
22141 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22142
22143         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
22144         * configure: Regenerate.
22145
22146 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
22147
22148         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
22149         instead of tree_common.
22150         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
22151         Likewise.
22152         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
22153         TS_TYPED rather than TS_COMMON.
22154         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
22155
22156 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
22157
22158         PR target/45263
22159         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
22160         r20 around calls of __tablejump_elpm__
22161
22162 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
22163
22164         PR middle-end/48591
22165         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
22166         NULL.
22167         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
22168
22169 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
22170
22171         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
22172         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
22173         (cfi_vec): New typedef.
22174         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
22175         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
22176         (cie_cfi_vec): New static variable.
22177         (cie_cfi_head): Delete.
22178         (add_cfi): Accept a cfi_vec * as first argument. All callers and
22179         declaration changed. Use vector rather than list operations.
22180         (new_cfi): Don't initialize the dw_cfi_next field.
22181         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
22182         rather than list operations.
22183         (lookup_cfa): Use vector rather than list operations.
22184         (output_cfis): New argument upto. Accept a cfi_vec rather than
22185         a dw_cfi_ref list head as argument. All callers changed.
22186         Iterate over the vector using upto as a maximum index.
22187         (output_all_cfis): New static function.
22188         (output_fde): Use vector rather than list operations. Use the
22189         new upto argument for output_cfis rather than manipulating a
22190         list.
22191         (dwarf2out_begin_prologue): Change initializations to match
22192         new struct members.
22193         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
22194         from the vector length rather than searching for the end of a list.
22195         Use output_all_cfis.
22196         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
22197
22198 2011-04-13  Nick Clifton  <nickc@redhat.com>
22199
22200         * config/rx/rx.md (movmemsi): Do not use this pattern when
22201         volatile pointers are involved.
22202
22203 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
22204
22205         * config/i386/sse.md (pinsrbits): Remove.
22206         (sse2_packsswb): Merge with *avx_packsswb.
22207         (sse2_packssdw): Merge with *avx_packssdw.
22208         (sse2_packuswb): Merge with *avx_packuswb.
22209         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
22210         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
22211         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
22212         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
22213         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
22214         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
22215         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
22216         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
22217         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
22218         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
22219         (sse2_loadld): Merge with *avx_loadld.
22220         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
22221         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
22222         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
22223         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
22224         (vec_concatv2di): Merge with *vec_concatv2di_avx.
22225
22226 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
22227
22228         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
22229         calling TREE_CHAIN.
22230         * print-tree.c (print_node): Likewise.
22231         * tree-inline.c (copy_tree_r): Likewise.
22232         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
22233         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
22234         instead of TS_COMMON.
22235         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
22236         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
22237         (copy_node_stat): Zero TREE_CHAIN only if necessary.
22238         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
22239         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
22240         ...and these...
22241         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
22242         * tree.h: ...here.
22243         (TREE_CHAIN): Check for a TS_COMMON structure.
22244         (TREE_TYPE): Check for a TS_TYPED structure.
22245
22246 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
22247
22248         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
22249         cgraph_get_create_node instead of cgraph_node.
22250
22251 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
22252
22253         * c-parser.c (c_parser_initelt): Updated call to
22254         objc_build_message_expr.
22255         (c_parser_postfix_expression): Likewise.
22256
22257 2011-04-12  Kai Tietz  <ktietz@redhat.com>
22258
22259         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
22260         MASK_MS_BITFIELD_LAYOUT bit.
22261
22262 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
22263
22264         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
22265         assert it is always true.
22266         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
22267         moves.
22268
22269 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
22270
22271         * c-parser.c (c_lex_one_token): Rewritten conditional used when
22272         compiling Objective-C to be more efficient.
22273
22274 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
22275
22276         * opts-common.c (decode_cmdline_options_to_array): Remove variable
22277         argv_copied.
22278
22279 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22280
22281         * recog.h, genoutput.c, optabs.c: Revert last patch.
22282
22283 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22284
22285         PR target/48090
22286         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
22287
22288 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22289
22290         * recog.h (insn_operand_data): Add an "allows_mem" field.
22291         * genoutput.c (output_operand_data): Initialize it.
22292         * optabs.c (maybe_legitimize_operand_same_code): New function.
22293         (maybe_legitimize_operand): Use it when matching the original
22294         op->value.
22295
22296 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22297
22298         * genpreds.c (process_define_predicate): Move most processing
22299         to gensupport.c.  Continue to validate the expression.
22300         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
22301         (process_define_predicate): Move processing to gensupport.c.
22302         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
22303         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
22304         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
22305         argument.
22306         (valid_predicate_name_p): New function, split out from old
22307         genpreds.c:process_define_predicate.
22308         (process_define_predicate): New function, combining code from
22309         old genpreds.c and genrecog.c functions.
22310         (process_rtx): Call it for DEFINE_PREDICATE and
22311         DEFINE_SPECIAL_PREDICATE.
22312
22313 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
22314
22315         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
22316         size of a '%A' memory reference.
22317         (T_DREG, T_QREG): New neon_builtin_type_bits.
22318         (arm_init_neon_builtins): Assert that the load and store operands
22319         are neon_struct_operands.
22320         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
22321         (NEON_ARG_MEMORY): New builtin_arg.
22322         (neon_dereference_pointer): New function.
22323         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
22324         Handle NEON_ARG_MEMORY.
22325         (arm_expand_neon_builtin): Update after above interface changes.
22326         Use NEON_ARG_MEMORY for loads and stores.
22327         * config/arm/predicates.md (neon_struct_operand): New predicate.
22328         * config/arm/iterators.md (V_two_elem): Tweak formatting.
22329         (V_three_elem): Use BLKmode for accesses that have no associated mode.
22330         (V_four_elem): Tweak formatting.
22331         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
22332         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
22333         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
22334         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
22335         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
22336         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
22337         (neon_vst4<mode>): Replace pointer operand with a memory operand.
22338         Use %A in the output template.
22339         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
22340         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
22341         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
22342         the width of the memory access.  Remove post-increment.
22343         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
22344
22345 2011-04-12  Nick Clifton  <nickc@redhat.com>
22346
22347         * config/v850/v850.c (expand_prologue): Do not use the CALLT
22348         instruction for interrupt handlers if the target is the basic V850
22349         architecture.
22350         (expand_epilogue): Likewise.
22351
22352 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
22353
22354         PR rtl-optimization/48549
22355         * combine.c (propagate_for_debug): Also stop after BB_END of
22356         this_basic_block.  Process LAST and just stop processing after it.
22357         (combine_instructions): If last_combined_insn has been deleted,
22358         set last_combined_insn to its PREV_INSN.
22359
22360 2011-04-12  Richard Guenther  <rguenther@suse.de>
22361
22362         PR tree-optimization/46076
22363         * gimple.h (struct gimple_statement_call): Add fntype field.
22364         (gimple_call_fntype): Adjust.
22365         (gimple_call_set_fntype): New function.
22366         * gimple.c (gimple_build_call_1): Set the call function type.
22367         * gimplify.c (gimplify_call_expr): Preserve the function
22368         type the frontend used for the call.
22369         (gimplify_modify_expr): Likewise.
22370         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
22371         function type.
22372         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
22373         function type.
22374         * tree-ssa.c (useless_type_conversion_p): Function pointer
22375         conversions are useless.
22376
22377 2011-04-12  Martin Jambor  <mjambor@suse.cz>
22378
22379         * cgraph.h (cgraph_node): Remove function declaration.
22380         (cgraph_create_node): Declare.
22381         (cgraph_get_create_node): Likewise.
22382         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
22383         Updated all callers.
22384         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
22385         the decl does not already exist.  Call cgraph_get_create_node instead
22386         of cgraph_node.
22387         (cgraph_get_create_node): New function.
22388         (cgraph_same_body_alias): Update comment.
22389         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
22390         assert it does not return NULL.
22391         (cgraph_update_edges_for_call_stmt): Likewise.
22392         (cgraph_clone_edge): Likewise.
22393         (cgraph_create_virtual_clone): Likewise.
22394         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
22395         instead of cgraph_node.
22396         (cgraph_add_new_function): Call cgraph_create_node or
22397         cgraph_get_create_node instead of cgraph_node.
22398         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
22399         instead of cgraph_node.
22400         (record_eh_tables): Likewise.
22401         (mark_address): Likewise.
22402         (mark_load): Likewise.
22403         (build_cgraph_edges): Call cgraph_get_create_node instead
22404         of cgraph_node.
22405         (rebuild_cgraph_edges): Likewise.
22406         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
22407         instead of cgraph_node.
22408         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
22409         cgraph_node.
22410         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
22411         cgraph_create_node instead of cgraph_node.
22412         * c-decl.c (finish_function): Call cgraph_get_create_node instead
22413         of cgraph_node.
22414         * lto-cgraph.c (input_node): Likewise.
22415         * lto-streamer-in.c (input_function): Likewise.
22416         * varasm.c (mark_decl_referenced): Likewise.
22417         (assemble_alias): Likewise.
22418
22419 2011-04-12  Martin Jambor  <mjambor@suse.cz>
22420
22421         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
22422         instead of cgraph_node and assert it does not return NULL.
22423         * lto-streamer-in.c (lto_read_body): Likewise.
22424         * omp-low.c (new_omp_context): Likewise.
22425         (create_task_copyfn): Likewise.
22426         * tree-emutls.c (lower_emutls_function_body): Likewise.
22427         * matrix-reorg.c (transform_allocation_sites): Likewise.
22428
22429 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
22430
22431         PR c/48552
22432         * c-typeck.c (build_asm_expr): Error out on attempts to use
22433         void type outputs or inputs for constraints that allow reg or
22434         don't allow memory.
22435
22436 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
22437             Richard Earnshaw  <rearnsha@arm.com>
22438
22439         PR target/48250
22440         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
22441         to use sign-magnitude offsets. Reject unsupported unaligned
22442         cases. Add detailed description in comments.
22443         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
22444         condition from TARGET_32BIT to TARGET_ARM.
22445
22446 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
22447
22448         * tree.h (struct typed_tree): New.
22449         (struct tree_common): Include it instead of tree_base.
22450         (TREE_TYPE): Update for new location of type field.
22451         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
22452         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
22453         (union tree_node): Add typed field.
22454         * treestruct.def (TS_TYPED): New.
22455         * lto-streamer.c (check_handled_ts_structures): Handle it.
22456         * tree.c (MARK_TS_TYPED): New macro.
22457         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
22458
22459 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
22460
22461         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
22462         (force_nonfallthru): Do not alter the loop nest if no basic block
22463         was created.
22464
22465 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
22466
22467         * config/i386/sse.md (VI): New mode iterator.
22468         (SSEMODEI): Remove.
22469         (AVX256MODEI): Ditto.
22470         (AVXMODEF4P): Ditto.
22471         (avxvecpsmode): Ditto.
22472         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
22473         (sse2_andnot<mode>3): New expander.
22474         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
22475         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
22476         (<any_logic:code><mode>3): Use VI mode iterator.
22477         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
22478         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
22479         (*andnottf3): Handle AVX three-operand constraints.
22480         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
22481
22482 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22483             Robert Millan  <rmh@gnu.org>
22484
22485         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
22486         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
22487         GNU_USER_DYNAMIC_LINKER64): Define.
22488         (REG_NAME): Don't undefine.
22489         (MD_UNWIND_SUPPORT): Undefine.
22490         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
22491         (REG_NAME): Don't undefine.
22492         (MD_UNWIND_SUPPORT): Undefine.
22493         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
22494
22495 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22496
22497         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
22498         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
22499
22500 2011-04-11  Xinliang David Li  <davidxl@google.com>
22501
22502         * value-profile.c (check_ic_target): New function.
22503         (gimple_ic_transform): Sanity check indirect call target.
22504         * gimple-low.c (gimple_check_call_args): Interface change.
22505         (gimple_check_call_matching_types): New function.
22506         * tree-inline.c (tree_can_inline_p): Call new function.
22507
22508 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
22509
22510         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
22511         tree-pretty-print.h & realmpfr.h.
22512
22513 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
22514
22515         PR middle-end/48464
22516         * ira.c (setup_pressure_classes): Fix typo in loop condition.
22517         (setup_allocno_and_important_classes): Ditto.
22518
22519 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22520
22521         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
22522         GNU_USER_DYNAMIC_LINKER.
22523         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
22524         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22525         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
22526         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22527         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22528         GNU_USER_TARGET_OS_CPP_BUILTINS.
22529         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
22530         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22531         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22532         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22533         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
22534         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22535         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22536         GNU_USER_TARGET_OS_CPP_BUILTINS.
22537         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22538         GNU_USER_DYNAMIC_LINKER.
22539         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22540         GNU_USER_TARGET_OS_CPP_BUILTINS.
22541         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
22542         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22543         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
22544         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22545         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
22546         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
22547         GNU_USER_DYNAMIC_LINKER64): Remove.
22548         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
22549         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22550         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22551         GNU_USER_DYNAMIC_LINKER.
22552         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22553         GNU_USER_TARGET_OS_CPP_BUILTINS.
22554         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22555         GNU_USER_TARGET_OS_CPP_BUILTINS.
22556         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
22557         to GNU_USER_TARGET_OS_CPP_BUILTINS.
22558         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
22559         GNU_USER_TARGET_OS_CPP_BUILTINS.
22560         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
22561         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
22562         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22563         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
22564         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22565         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22566         GNU_USER_DYNAMIC_LINKER.
22567         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
22568         GNU_USER_TARGET_OS_CPP_BUILTINS.
22569         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
22570         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22571         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22572         GNU_USER_DYNAMIC_LINKER.
22573         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22574         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22575         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
22576         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22577         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22578         GNU_USER_DYNAMIC_LINKER.
22579         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
22580         GNU_USER_DYNAMIC_LINKERN32.
22581         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
22582         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
22583         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
22584         GNU_USER_DYNAMIC_LINKER32.
22585         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
22586         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22587         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22588         GNU_USER_DYNAMIC_LINKER.
22589         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
22590         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22591         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
22592         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22593         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22594         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
22595         GNU_USER_DYNAMIC_LINKER32.
22596         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
22597         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
22598         GNU_USER_DYNAMIC_LINKER.
22599         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
22600         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22601         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22602         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
22603         GNU_USER_DYNAMIC_LINKER64.
22604         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
22605         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22606         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22607         GNU_USER_DYNAMIC_LINKER.
22608         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
22609         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22610         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
22611         GNU_USER_DYNAMIC_LINKER.
22612         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
22613         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22614         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
22615         GNU_USER_DYNAMIC_LINKER32.
22616         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22617         GNU_USER_DYNAMIC_LINKER64.
22618         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
22619         GNU_USER_DYNAMIC_LINKER64.
22620         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
22621         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22622         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
22623         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
22624         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
22625
22626 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22627
22628         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
22629         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
22630         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
22631         GNU_USER_DYNAMIC_LINKER.
22632         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22633         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
22634         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
22635         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
22636         GNU_USER_DYNAMIC_LINKER64.
22637         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
22638         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
22639         GNU_USER_LINK_EMULATION.
22640         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
22641         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
22642         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
22643         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
22644         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
22645         CPP_SPEC, CC1_SPEC): Remove.
22646         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
22647         (GNU_USER_DYNAMIC_LINKER): Define.
22648         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
22649         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
22650         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
22651         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
22652         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
22653         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
22654         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22655         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
22656         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
22657         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
22658         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
22659         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
22660         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
22661         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
22662         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
22663         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
22664         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22665         GNU_USER_DYNAMIC_LINKER.
22666         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22667         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22668         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22669         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22670         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
22671         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
22672         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
22673         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
22674         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
22675         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
22676
22677 2011-04-11  Kai Tietz  <ktietz@redhat.com>
22678
22679         PR target/9601
22680         PR target/11772
22681         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
22682         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
22683         comment.
22684         (ix86_is_msabi_thiscall): Removed.
22685         (ix86_is_type_thiscall): Likewise.
22686         (ix86_get_callcvt): New function.
22687         (ix86_comp_type_attributes): Simplify check.
22688         (ix86_function_regparm): Use ix86_get_callcvt for calling
22689         convention attribute checks.
22690         (ix86_return_pops_args): Likewise.
22691         (ix86_static_chain): Likewise.
22692         (x86_this_parameter): Likewise.
22693         (x86_output_mi_thunk): Likewise.
22694         (ix86_function_type_abi): Optimize check for types without attributes.
22695         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
22696         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
22697         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
22698         by flag-values.
22699         (IX86_BASE_CALLCVT): Helper macro.
22700         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
22701         Use ix86_get_callcvt for calling convention attribute checks and avoid
22702         symbol-decoration for stdcall in TARGET_RTD case.
22703         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
22704         Likewise.
22705         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
22706         for declaration.
22707
22708 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
22709
22710         * config/i386/sse.md (VI_128): New mode iterator.
22711         (VI12_128): Rename from SSEMODE12.
22712         (VI14_128): Rename from SSEMODE14.
22713         (VI124_128): New mode iterator.
22714         (VI24_128): Rename from SSEMODE248.
22715         (VI248_128): Rename from SSEMODE248.
22716         (SSEMODE124C8): Remove.
22717         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
22718         (*sse2_<plusminus_insn><mode>3): Merge with
22719         *avx_<plusminus_insn><mode>3.
22720         (*mulv8hi3): Merge with *avx_mulv8hi3.
22721         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
22722         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
22723         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
22724         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
22725         (ashr<mode>3): Merge with *avx_ashr<mode>3.
22726         (lshr<mode>3): Merge with *avx_lshr<mode>3.
22727         (ashl<mode>3): Merge with *avx_ashl<mode>3.
22728         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
22729         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
22730         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
22731         (*<smaxmin:code>v8hi3): Ditto.
22732         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
22733         (*<smaxmin:code>v16qi3): Ditto.
22734         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
22735         (*sse2_eq<mode>3): Ditto.
22736         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
22737         (*sse2_gt<mode>3): Ditto.
22738         (vcondv2di): Split out of vcond<mode>.
22739         (vconduv2di): Split out of vcondu<mode>.
22740
22741 2011-04-11  Richard Guenther  <rguenther@suse.de>
22742
22743         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
22744         before calling tree_low_cst.
22745
22746 2011-04-11  Richard Guenther  <rguenther@suse.de>
22747
22748         * stor-layout.c (layout_type): Compute all array index size operations
22749         in the original type.
22750         (initialize_sizetypes): Add comment.
22751         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
22752
22753 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
22754
22755         * common.opt (Tbss=, Tdata=, Ttext=): New options.
22756
22757 2011-04-11  Martin Jambor  <mjambor@suse.cz>
22758
22759         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
22760         of cgraph_node, handle NULL return value.
22761         (cgraph_global_info): Likewise.
22762         (cgraph_rtl_info): Likewise.
22763         * tree-inline.c (estimate_num_insns): Likewise.
22764         * gimplify.c (unshare_body): Likewise.
22765         (unvisit_body): Likewise.
22766         (gimplify_body): Likewise.
22767         * predict.c (optimize_function_for_size_p): Likewise.
22768         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
22769         (call_may_clobber_ref_p_1): Likewise.
22770         * varasm.c (function_section_1): Likewise.
22771         (assemble_start_function): Likewise.
22772
22773 2011-04-11  Martin Jambor  <mjambor@suse.cz>
22774
22775         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
22776         of cgraph_node.
22777         * final.c (rest_of_clean_state): Likewise.
22778         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
22779         * passes.c (pass_init_dump_file): Likewise.
22780         (execute_all_ipa_transforms): Likewise.
22781         (function_called_by_processed_nodes_p): Likewise.
22782         * predict.c (maybe_hot_frequency_p): Likewise.
22783         (probably_never_executed_bb_p): Likewise.
22784         (compute_function_frequency): Likewise.
22785         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
22786         (unnest_nesting_tree_1): Likewise.
22787         (lower_nested_functions): Likewise.
22788         * tree-optimize.c (execute_fixup_cfg): Likewise.
22789         (tree_rest_of_compilation): Likewise.
22790         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
22791         * tree-sra.c (ipa_early_sra): Likewise.
22792         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
22793         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
22794         * ipa.c (record_cdtor_fn): Likewise.
22795         * ipa-inline.c (cgraph_early_inlining): Likewise.
22796         (compute_inline_parameters_for_current): Likewise.
22797         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
22798         * ipa-pure-const.c (local_pure_const): Likewise.
22799         * ipa-split.c (split_function): Likewise.
22800         (execute_split_functions): Likewise.
22801         * cgraphbuild.c (build_cgraph_edges): Likewise.
22802         (rebuild_cgraph_edges): Likewise.
22803         (cgraph_rebuild_references): Likewise.
22804         (remove_cgraph_callee_edges): Likewise.
22805         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
22806         (verify_cgraph_node): Likewise.
22807         (cgraph_analyze_functions): Likewise.
22808         (cgraph_preserve_function_body_p): Likewise.
22809         (save_inline_function_body): Likewise.
22810         (save_inline_function_body): Likewise.
22811         * tree-inline.c (copy_bb): Likewise.
22812         (optimize_inline_calls): Likewise.
22813
22814 2011-04-11  Martin Jambor  <mjambor@suse.cz>
22815
22816         PR tree-optimization/48195
22817         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
22818         ipa_check_create_edge_args.
22819         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
22820         ipa_check_create_edge_args.
22821         * ipa-inline.c (inline_generate_summary): Do not call
22822         ipa_check_create_node_params and ipa_check_create_edge_args.
22823         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
22824         ipa_check_create_edge_args.
22825
22826 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
22827
22828         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
22829         instead of loop.
22830         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
22831         * function.c (record_hard_reg_sets): Likewise.
22832         * ira.c (compute_regs_asm_clobbered): Likewise.
22833         * sched-deps.c (sched_analyze_1): Likewise.
22834         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
22835
22836 2011-04-09  Xinliang David Li  <davidxl@google.com>
22837
22838         PR tree-optimization/PR48484
22839         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
22840         has_valid_pred lazily
22841
22842 2011-04-09  Duncan Sands  <baldrick@free.fr>
22843
22844         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
22845
22846 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
22847
22848         * combine.c (combine_validate_cost): Adjust comments.  Set registered
22849         cost of I0 to zero at the end, if any.
22850
22851 2011-04-08  Xinliang David Li  <davidxl@google.com>
22852
22853         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
22854         to insane profile data.
22855
22856 2011-04-08  Xinliang David Li  <davidxl@google.com>
22857
22858         * ipa-cp.c (ipcp_update_profiling): Correct
22859          negative scale factor due to insane profile data.
22860
22861 2011-04-08  Xinliang David Li  <davidxl@google.com>
22862
22863         * final.c (dump_basic_block_info): New function.
22864         (final): Dump basic block.
22865         (final_scan_insn): Remove old dump.
22866
22867 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
22868
22869         PR target/47829
22870         * config.gcc (i386-*-freebsd): Disable unwind table generation for
22871         crtbegin/crtend.
22872
22873 2011-04-08  Michael Matz  <matz@suse.de>
22874
22875         PR middle-end/48389
22876         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
22877         functions.
22878         (rebuild_jump_labels): Call rebuild_jump_labels_1.
22879         * rtl.h (rebuild_jump_labels_chain): Declare.
22880         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
22881         insns inserted on edges.
22882
22883 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
22884
22885         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
22886         * config/arm/arm-arches.def: New.
22887         * config/arm/arm-opts.h: New.
22888         * config/arm/genopt.sh: New.
22889         * config/arm/arm-tables.opt: New (generated).
22890         * config/arm/arm.c (arm_handle_option, arm_target_help,
22891         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
22892         (all_architectures): Get most table contents from arm-arches.def.
22893         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
22894         arm_selected_tune here.
22895         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
22896         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
22897         (march=, mcpu=, mtune=): Use Enum and Var.
22898         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
22899         (arm.o): Update dependencies.
22900
22901 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
22902
22903         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
22904         of header_file.
22905         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
22906         (write_typed_alloc_defns): Likewise.
22907         (main): Calls write_typed_alloc_defns with output_header.
22908
22909 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
22910
22911         PR inline-asm/48435
22912         * ira-color.c (setup_profitable_hard_regs): Add comments.
22913         Don't take prohibited hard regs into account.
22914         (setup_conflict_profitable_regs): Rename to
22915         get_conflict_profitable_regs.
22916         (check_hard_reg_p): Check prohibited hard regs.
22917
22918 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
22919
22920         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
22921         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
22922         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
22923
22924 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22925
22926         PR target/48366
22927         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
22928         move from floating point to shift amount register.
22929         (emit_move_sequence): Remove secondary reload support for floating
22930         point to shift amount amount register copies.
22931         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
22932         amount register copies.
22933         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
22934         register, return false if mode isn't a scalar integer mode.
22935         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
22936
22937 2011-04-08  Richard Guenther  <rguenther@suse.de>
22938
22939         * gimple.c (gimple_call_flags): Remove kludge.
22940
22941 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22942
22943         * sel-sched.c (sel_region_init): Move call to
22944         sel_setup_region_sched_flags after setup_current_loop_nest.
22945
22946 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
22947
22948         PR rtl-optimization/48272
22949         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
22950         init_insn_reg_pressure_info.  Adjust a caller.
22951         * sched-int.h (init_insn_reg_pressure_info): Declare.
22952         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
22953         when sched-pressure is enabled.
22954
22955 2011-04-08  Richard Guenther  <rguenther@suse.de>
22956
22957         * gimple.c (gimple_set_modified): Do not queue calls to
22958         MODIFIED_NORETURN_CALLS here ...
22959         * tree-ssa-operands.c (update_stmt_operands): ... but here.
22960
22961 2011-04-08  Richard Guenther  <rguenther@suse.de>
22962
22963         PR lto/48467
22964         * toplev.c (lang_dependent_init): Do not open asm_out_file
22965         in WPA mode, nor perform debug machinery initialization.
22966         (finalize): Do not unlink asm_out_file in WPA mode.
22967
22968 2011-04-08  Richard Guenther  <rguenther@suse.de>
22969
22970         * gimple.h (gimple_call_fntype): New function.
22971         (gimple_call_return_type): Use it.
22972         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
22973         * gimple-low.c (gimple_check_call_args): Likewise.
22974         * gimple.c (gimple_call_flags): Likewise.
22975         (gimple_call_arg_flags): Likewise.
22976         (gimple_call_return_flags): Likewise.
22977         * tree-cfg.c (verify_gimple_call): Likewise.
22978         (do_warn_unused_result): Likewise.
22979         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
22980         * value-prof.c (gimple_ic_transform): Fix fndecl check.
22981
22982 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
22983
22984         PR rtl-optimization/48235
22985         * sel-sched.c (code_motion_process_successors): Recompute the last
22986         insn in basic block if control flow changed.
22987         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
22988         Update condition for ilist_remove.
22989
22990 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
22991
22992         PR rtl-optimization/48302
22993         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
22994         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
22995         it to record added preheader blocks.
22996         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
22997         on to sel_add_loop_preheaders.
22998         (sel_region_init): Move call to setup_current_loop_nest after
22999         sel_init_bbs.
23000
23001 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
23002
23003         PR target/48273
23004         * cfgloop.h (loop_has_exit_edges): New helper.
23005         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
23006         non-clonable.
23007         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
23008         that have no exit edges.
23009
23010 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
23011
23012         PR rtl-optimization/48442
23013         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
23014         all callers.  Adjust assert.
23015
23016 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
23017
23018         PR tree-optimization/48377
23019         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
23020         is_packed to true even for types with smaller TYPE_ALIGN than
23021         TYPE_SIZE.
23022
23023 2011-04-08  Richard Guenther  <rguenther@suse.de>
23024
23025         PR bootstrap/48513
23026         * doc/tm.texi: Re-generate.
23027
23028 2011-04-08  Wei Guozhi  <carrot@google.com>
23029
23030         PR target/47855
23031         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
23032         * config/arm/arm.c (arm_attr_length_push_multi): New function.
23033         * config/arm/arm.md (*push_multi): Change the length computation to
23034         call a C function.
23035
23036 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
23037
23038         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
23039         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
23040         * doc/tm.texi: Regenerate.
23041         * system.h (ASM_OUTPUT_BSS): Poison.
23042         * varasm.c (asm_output_bss): Remove function.
23043         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
23044
23045         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
23046         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
23047         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
23048         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23049         Likewise.
23050         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23051         Likewise.
23052         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
23053         Likewise.
23054         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
23055
23056 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
23057
23058         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
23059         EnumValue lines.
23060
23061 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
23062
23063         * config/m68k/m68k.c (m68k_handle_option): Don't handle
23064         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
23065         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
23066         OPT_mcpu32.
23067         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
23068         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
23069         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
23070         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
23071         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
23072         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
23073         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
23074         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
23075         options.  Don't map other m68k options manually.  Don't handle
23076         old-style options as canonical.
23077         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
23078         * doc/install.texi (m68k-*-*): Document binutils version requirement.
23079
23080 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
23081
23082         * basic-block.h (force_nonfallthru): Move to...
23083         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
23084         (force_nonfallthru): ...here.
23085         * cfghooks.c (force_nonfallthru): New function.
23086         * cfgrtl.c (force_nonfallthru): Rename into...
23087         (rtl_force_nonfallthru): ...this.
23088         (commit_one_edge_insertion): Do not set AUX field.
23089         (commit_edge_insertions): Do not discover new basic blocks.
23090         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
23091         (cfg_layout_rtl_cfg_hooks): Likewise.
23092         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
23093         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
23094         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
23095
23096 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
23097
23098         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
23099         Remove macros.
23100
23101 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
23102
23103         * config/i386/sse.md: Update copyright year.
23104         (avxcvtvecmode): Remove.
23105         (sse_movhlps): Merge with *avx_movhlps.
23106         (sse_movlhps): Merge with *avx_movlhps.
23107         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
23108         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
23109         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
23110         (sse_loadhps): Merge with *avx_loadhps.
23111         (sse_storelps): Merge with *avx_storelps.
23112         (sse_loadlps): Merge with *avx_loadlps.
23113         (sse_movss): Merge with *avx_movss.
23114         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
23115         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
23116         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
23117         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
23118         (vec_set<mode>_0): Ditto.
23119         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
23120         (sse4_1_insertps): Merge with *avx_insertps.
23121         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
23122         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
23123         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
23124         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
23125         (sse2_storehpd): Merge with *avx_storehpd.
23126         (sse2_loadhpd): Merge with *avx_loadhpd.
23127         (sse2_loadlpd): Merge with *avx_loadlpd.
23128         (sse2_movsd): Merge with *avx_movsd.
23129         (*vec_concatv2df): Merge with *vec_concatv2df.
23130
23131 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
23132
23133         PR debug/48343
23134         * combine.c (combine_instructions): Add last_combined_insn,
23135         update it if insn is after it, pass it to all try_combine calls.
23136         (try_combine): Add last_combined_insn parameter, pass it instead of
23137         i3 to propagate_for_debug.
23138
23139 2011-04-07  Nick Clifton  <nickc@redhat.com>
23140
23141         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
23142         to handle MDR <-> data register transfers.
23143         (movhi_internal): Likewise.
23144
23145 2011-04-07  Alan Modra  <amodra@gmail.com>
23146
23147         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
23148         previous stack info.
23149
23150 2011-04-07  Tom de Vries  <tom@codesourcery.com>
23151
23152         PR target/43920
23153         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
23154         flow_find_cross_jump.  Swap variables to implement backward replacement.
23155         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
23156
23157 2011-04-07  Tom de Vries  <tom@codesourcery.com>
23158
23159         PR target/43920
23160         * cfgcleanup.c (walk_to_nondebug_insn): New function.
23161         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
23162         and bb2.
23163         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
23164         src1 or src2.  Redirect edges to the last basic block.  Update
23165         frequency and count on multiple basic blocks in case of fallthru.
23166
23167 2011-04-07  Tom de Vries  <tom@codesourcery.com>
23168
23169         PR target/43920
23170         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
23171         function.
23172         (old_insns_match_p): Change return type.  Replace return false/true
23173         with return dir_none/dir_both.  Use can_replace_by.
23174         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
23175         direction from dir_p.  Register replacement direction in dir, last_dir
23176         and afterlast_dir.  Handle new return type of old_insns_match_p using
23177         merge_dir.  Return replacement direction in dir_p.
23178         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
23179         return type of old_insns_match_p.
23180         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
23181         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
23182         flow_find_cross_jump.
23183         * basic-block.h (enum replace_direction): New type.
23184         (flow_find_cross_jump): Add parameter to declaration.
23185
23186 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
23187
23188         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
23189         (AVXMODEDCVTPS2DQ): Ditto.
23190         (VEC_FLOAT_MODE): Ditto.
23191         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
23192         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
23193         (<any_logic:code><mode>3): Use VF mode iterator.
23194         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
23195         Use VF mode iterator.
23196         (copysign<mode>3): Use VF mode iterator.
23197         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
23198         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
23199         (*<any_logic:code><MODEF:mode>3): Merge with
23200         *avx_<any_logic:code><MODEF:mode>3.
23201         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
23202         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
23203         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
23204         (avx_cvtdq2ps<avxmodesuffix>): Remove.
23205         (sse2_cvtdq2ps): Use %v modifier.
23206         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
23207         (avx_cvtps2dq<avxmodesuffix>): Remove.
23208         (sse2_cvtps2dq): Use %v modifier.
23209         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
23210         (avx_cvttps2dq<avxmodesuffix>): Remove.
23211         (sse2_cvttps2dq): Use %v modifier.
23212         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
23213         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
23214         (sse2_cvtsd2siq): Fix insn template.
23215         (sse2_cvtsd2siq_2): Ditto.
23216         (sse2_cvttsd2siq): Ditto.
23217         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
23218         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
23219
23220 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
23221
23222         * gcov-io.c: Use GCC Runtime Library Exception.
23223
23224 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
23225
23226         PR debug/48466
23227         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
23228         as base_reg whatever register reg has been eliminated to, instead
23229         of hardcoding STACK_POINTER_REGNUM.
23230
23231 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
23232
23233         * doc/tm.texi.in: Document C target hooks as separate from general
23234         target hooks.
23235         * doc/tm.texi: Regenerate.
23236         * genhooks.c (struct hook_desc): Add docname field.
23237         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
23238         docname field.
23239         (hook_array): Include c-target.def.
23240         (emit_documentation): Use docname field in output.
23241         (emit_init_macros): Take docname argument.  Only emit definitions
23242         for hooks matching docname.
23243         (main): Expect additional arguments in all cases.  Pass argument
23244         to emit_init_macros.
23245         * target.def: Move initial macro definitions and comments to
23246         target-hooks-macros.h.
23247         (gcc_targetcm): Move to c-family/c-target.def.
23248         * target.h (targetcm): Move declaration to c-family/c-target.h.
23249         * targhooks.c (default_handle_c_option): Move to
23250         c-family/c-opts.c.
23251         * targhooks.h (default_handle_c_option): Move declaration to
23252         c-family/c-common.h.
23253         * target-hooks-macros.h: New file.
23254         * config.gcc (target_has_targetcm): Define and use to add to
23255         c_target_objs and cxx_target_objs.
23256         * config/default-c.c: New file.
23257         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
23258         of target.h and target-def.h.
23259         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
23260         (darwin_objc_construct_string, darwin_cfstring_ref_p,
23261         darwin_check_cfstring_format_arg): Make static.
23262         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
23263         TARGET_STRING_OBJECT_REF_TYPE_P,
23264         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
23265         * config/darwin-protos.h (darwin_objc_construct_string,
23266         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
23267         declare.
23268         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
23269         TARGET_STRING_OBJECT_REF_TYPE_P,
23270         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
23271         * config/t-darwin (darwin-c.o): Update dependencies.
23272         * system.h (TARGET_HAS_TARGETCM): Poison.
23273         * Makefile.in (TARGET_H): Update.
23274         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
23275         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
23276         (default-c.o): New target.
23277         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
23278         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
23279         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
23280         c-target.def.
23281         (build/genhooks.o): Update dependencies.
23282
23283 2011-04-06  Richard Guenther  <rguenther@suse.de>
23284
23285         * ipa-inline.c (enum inlining_mode): Remove.
23286         (cgraph_flatten): Use some other token.
23287         (cgraph_edge_early_inlinable_p): New function, split out from ...
23288         (cgraph_perform_always_inlining): New function, split out from ...
23289         (cgraph_decide_inlining_incrementally): ... here.
23290         (cgraph_mark_inline_edge): Adjust.
23291         (cgraph_early_inlining): Re-structure.
23292         (pass_early_inline): Require SSA form.
23293
23294 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
23295             Julian Brown  <julian@codesourcery.com>
23296             Mark Shinwell  <shinwell@codesourcery.com>
23297
23298         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
23299         LO_REGS only for Thumb-1.
23300         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
23301         be used in short instructions when optimising for size on Thumb-2.
23302
23303 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
23304
23305         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
23306         associated with user returns to be preserved.
23307
23308 2011-04-06  Tristan Gingold  <gingold@adacore.com>
23309
23310         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
23311         symbol_queue_size, DBXOUT_DECR_NESTING,
23312         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
23313         if XCOFF_DEBUGGING_INFO.
23314
23315 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
23316
23317         * config/i386/i386.md (attribute isa): New.
23318         (attribute enabled): New.
23319         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
23320         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
23321         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
23322         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
23323         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
23324         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
23325         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
23326         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
23327
23328         * config/i386/sse.md (VF): New mode iterator.
23329         (VF1): Ditto.
23330         (VF2): Ditto.
23331         (VF_128): Ditto.
23332         (SSEMODEF4): Remove.
23333         (attribute sse): Handle V8SF and V4DF modes.
23334         (<absneg:code><mode>2): Use VF mode iterator.
23335         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
23336         mode iterator.
23337         (<plusminus_insn><mode>3): Use VF mode iterator.
23338         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
23339         Use VF mode iterator.
23340         (<sse>_vm<plusminus_insn><mode>3): Merge with
23341         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
23342         (mul<mode>3): Use VF mode iterator.
23343         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
23344         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
23345         mode iterator.
23346         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
23347         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
23348         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
23349         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
23350         mode iterator.
23351         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
23352         Use VF1 mode iterator.
23353         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
23354         (sqrt<VF2:mode>2): New expander.
23355         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
23356         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
23357         and sqrtv2df2.  Use VF mode iterator.
23358         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
23359         mode iterator.
23360         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
23361         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
23362         Use VF1 mode iterator.
23363         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
23364         (<smaxmin:code><mode>3): Use VF mode iterator.
23365         (*<smaxmin:code><mode>3_finite): Merge with
23366         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
23367         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
23368         (<sse>_vm<smaxmin:code><mode>2): Merge with
23369         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
23370         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
23371         mode iterator.
23372         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
23373         mode iterator.
23374         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
23375         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
23376         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
23377         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
23378         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
23379         VF mode iterator.
23380         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
23381         Use VF_128 mode iterator.
23382         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
23383         mode iterator.
23384         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
23385         VF_128 mode iterator.
23386         (vcond<mode>): Use VF mode iterator.
23387         * config/i386/predicates.md (sse_comparison_operator): Merge with
23388         avx_comparison_float_operator.  Do not declare as special_predicate.
23389         * config/i386/i386.c (struct builtin_description): Update for renamed
23390         compare patterns.
23391         (ix86_expand_args_builtin): Ditto.
23392         (ix86_expand_sse_compare_mask): Ditto.
23393
23394 2011-04-06  Richard Guenther  <rguenther@suse.de>
23395
23396         * tree-inline.c (estimate_num_insns): For calls simply account
23397         for all passed arguments and a used return value.
23398
23399 2011-04-06  Richard Guenther  <rguenther@suse.de>
23400
23401         PR tree-optimization/47663
23402         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
23403         call_stmt_time fields.
23404         (cgraph_edge_inlinable_p): Declare.
23405         (cgraph_edge_recursive_p): New inline function.
23406         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
23407         (cgraph_clone_edge): Copy it.
23408         * ipa-inline.c (cgraph_estimate_edge_time): New function.
23409         Account for call stmt time.
23410         (cgraph_estimate_time_after_inlining): Take edge argument.
23411         (cgraph_estimate_edge_growth): Account call stmt size.
23412         (cgraph_estimate_size_after_inlining): Take edge argument.
23413         (cgraph_mark_inline_edge): Adjust.
23414         (cgraph_check_inline_limits): Likewise.
23415         (cgraph_recursive_inlining_p): Remove.
23416         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
23417         (cgraph_decide_recursive_inlining): Take edge argument and
23418         adjust.
23419         (cgraph_decide_inlining_of_small_functions): Do not avoid
23420         diags for recursive inlining here.
23421         (cgraph_flatten): Adjust.
23422         (cgraph_decide_inlining_incrementally): Likewise.
23423         (estimate_function_body_sizes): Remove call cost handling.
23424         (compute_inline_parameters): Initialize caller edge call costs.
23425         (cgraph_estimate_edge_growth): New function.
23426         (cgraph_estimate_growth): Use it.
23427         (cgraph_edge_badness): Likewise.
23428         (cgraph_check_inline_limits): Take an edge argument.
23429         (cgraph_decide_inlining_of_small_functions): Adjust.
23430         (cgraph_decide_inlining): Likewise.
23431         * tree-inline.c (estimate_num_insns): Only account for call
23432         return value if it is used.
23433         (expand_call_inline): Avoid diagnostics on recursive inline
23434         functions here.
23435         * lto-cgraph.c (lto_output_edge): Output edge call costs.
23436         (input_edge): Input edge call costs.
23437
23438 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23439
23440         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
23441
23442 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
23443
23444         * doc/invoke.texi (Spec Files): Fix typo.
23445
23446 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
23447
23448         * profile.c (branch_prob): Move declaration of local variable.  Remove
23449         obsolete ??? comment.  Expand the location explicitly instead of using
23450         the LOCATION_FILE and LOCATION_LINE macros.
23451
23452 2011-04-06  Wei Guozhi  <carrot@google.com>
23453
23454         PR target/47855
23455         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
23456         (arm_cond_branch): Likewise.
23457         (arm_cond_branch_reversed): Likewise.
23458         (arm_jump): Likewise.
23459         (push_multi): Likewise.
23460         * config/arm/constraints.md (Py): New constraint.
23461
23462 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23463
23464         PR bootstrap/48471
23465         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
23466         Move these...
23467         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
23468         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
23469         #ifdef DBX_DEBUGGING_INFO.
23470
23471 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
23472
23473         PR bootstrap/48403
23474         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
23475         if old and new states differ.
23476
23477 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
23478
23479         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
23480         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
23481         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
23482         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
23483         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
23484         mcfv4e): Use Alias.
23485         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
23486         ColdFire options to -mcpu= options.
23487
23488 2011-04-05  Jeff Law  <law@redhat.com>
23489
23490         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
23491         check if BB is a successor of LOOP->header and return
23492         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
23493
23494 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
23495
23496         * cprop.c (struct reg_use): Remove.
23497         (reg_use_table): Make an array of RTX.
23498         (find_used_regs, constprop_register, local_cprop_pass,
23499         bypass_block): Simplify users of reg_use_table.
23500         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
23501         on one of the uses found by find_used_regs.
23502
23503 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23504
23505         PR bootstrap/48469
23506         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
23507         declaration.
23508
23509 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23510
23511         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
23512         as an rtx.
23513         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
23514
23515 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
23516
23517         PR middle-end/48441
23518         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
23519
23520 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23521
23522         * combine.c: Include obstack.h.
23523         (struct insn_link): Define.
23524         (uid_log_links): Adjust type.
23525         (FOR_EACH_LOG_LINK): New macro.
23526         (insn_link_obstack): Declare.
23527         (alloc_insn_link): Define.
23528         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
23529         type of link variables.
23530         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
23531         (try_combine, record_promoted_values, distribute_notes): Likewise.
23532         (distribute_links): Likewise.  Tweak prototype.
23533         (clear_log_links): Delete.
23534         (adjust_for_new_dest): Call alloc_insn_link.
23535         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
23536
23537 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23538
23539         * gcse.c (modify_mem_list): Convert to an array of VECs.
23540         (canon_modify_mem_list, compute_transp): Tweak formatting.
23541         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
23542         (load_killed_in_block_p): Likewise.
23543         (record_last_mem_set_info): Likewise.
23544         (clear_modify_mem_tables): Likewise.
23545
23546 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23547
23548         PR middle-end/48461
23549         * function.c (emit_use_return_register_into_block): Only define if
23550         HAVE_return.
23551
23552 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
23553
23554         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
23555
23556 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
23557
23558         * config/rx/rx-opts.h: New.
23559         * config/rx/rx.c (rx_cpu_type): Remove.
23560         (rx_handle_option): Don't assert that global structures are in
23561         use.  Access variables via opts pointer.  Defer most handling of
23562         OPT_mint_register_.  Use error_at.
23563         (rx_option_override): Handle deferred OPT_mint_register_ here.
23564         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
23565         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
23566         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
23567         (rx_cpu_types): New Enum and EnumValue entries.
23568         (mint-register=): Use Defer and use Var accordingly.
23569
23570 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23571
23572         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
23573         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
23574         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
23575         Move these...
23576         (debug_free_queue, debug_nesting, symbol_queue_index):
23577         ...and these...
23578         * dbxout.c: ...to here.  Make static.
23579
23580 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
23581
23582         * gcse.c (modify_pair): Define.  Define a VEC of it.
23583         (canon_modify_mem_list): Convert to an array of VECs.
23584         (free_insn_expr_list_list): Delete.
23585         (clear_modify_mem_tables): Call VEC_free instead.
23586         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
23587         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
23588         (canon_list_insert, compute_transp): Likewise.
23589
23590 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23591
23592         PR target/43920
23593         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
23594         for size.
23595
23596 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23597
23598         PR target/43920
23599         * function.c (emit_use_return_register_into_block): New function.
23600         (thread_prologue_and_epilogue_insns): Use
23601         emit_use_return_register_into_block.
23602
23603 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23604
23605         PR target/43920
23606         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
23607         insn.
23608
23609 2011-04-05  Tom de Vries  <tom@codesourcery.com>
23610
23611         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
23612
23613 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
23614
23615         * config/arm/arm.md (define_constants for unspec): Replace with
23616         define_c_enum.
23617         (define_constants for unspecv): Replace with define_c_enum.
23618         * config/arm/neon.md (define_constants for unspec): Replace with
23619         define_c_enum.
23620
23621 2011-04-04  Richard Henderson  <rth@redhat.com>
23622
23623         PR bootstrap/48400
23624         * dwarf2out.c (output_line_info): Always emit line info from
23625         at least one section.
23626         (dwarf2out_init): Create text_section_line_info here ...
23627         (set_cur_line_info_table): ... not here.
23628
23629 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
23630
23631         PR target/48380
23632         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
23633         not called.
23634
23635         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
23636
23637 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
23638
23639         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
23640         (expr_equiv_p): Remove.
23641         (insert_set_in_table): Look at <dest, src> pair instead of expr.
23642         (hash_scan_set): Update call to insert_set_in_table.
23643         (dump_hash_table): Dump <dest, src> pair.
23644         (lookup_set): Simplify.  Lookup <dest, src> pair.
23645         (compute_transp): Remove, fold heavily simplified code into...
23646         (compute_local_properties): ...here.  Expect COMP and TRANSP
23647         unconditionally.
23648         (find_avail_set): Take set directly from struct expr.
23649         (find_bypass-set): Likewise.
23650         (bypass_block): Likewise.
23651         (cprop_insn): Likewise.  Remove redundant INSN_P test.
23652
23653         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
23654         checks on form of COND from find_implicit_sets to here.
23655         (find_implicit_sets): Cleanup control flow. Split critical edges
23656         if it exposes implicit sets.  Allocate/resize implicit_sets as
23657         necessary.
23658         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
23659         changed something.  Run df_analyze after find_implicit_sets if any
23660         edges were split.  Do not allocate implicit_sets here.
23661
23662         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
23663         (gcse_obstack): Renamed to cprop_obstack.
23664         (GNEW, GNEWVEC, GNEWVAR): Remove.
23665         (gmalloc): Remove.
23666         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
23667         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
23668         (gcse_alloc): Likewise, and rename to cprop_alloc.
23669         (alloc_gcse_men, free_gcse_mem): Remove.
23670         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
23671         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
23672         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
23673
23674         * cprop.c (oprs_not_set_p): Remove.
23675         (mark_set, mark_clobber): Remove.
23676         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
23677         (reg_not_set_p): New function.
23678         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
23679         (cprop_insn): Likewise.
23680         (cprop_jump): Use FOR_EACH_EDGE.
23681
23682 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
23683
23684         PR bootstrap/48403
23685         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
23686         (rank_for_schedule): Use scheduled_insns vector instead of
23687         last_scheduled_insn.
23688         (ok_for_early_queue_removal): Likewise.
23689         (queue_to_ready): Search forward in nonscheduled_insns_begin if
23690         we have a dbg_cnt.
23691         (choose_ready): Likewise.
23692         (commit_schedule): Use VEC_iterate.
23693         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
23694         a dbg_cnt, use it and ensure the first insn is in the ready list.
23695         (haifa_sched_init): Allocate scheduled_insns.
23696         (sched_extend_ready_list): Don't allocate it; reserve space.
23697         (haifa_sched_finish): Free it.
23698
23699 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
23700
23701         * optc-gen.awk: Always remove type from Variable entry before
23702         recording in var_seen.
23703
23704 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
23705
23706         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
23707         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
23708         call to tidy_fallthru_edges.
23709
23710 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
23711
23712         * doc/options.texi (ToLower): Document.
23713         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
23714         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
23715         * opts.h (cl_option): Add cl_tolower field.
23716         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
23717         arguments with lowercase strings.
23718         * config/rx/rx.opt (mcpu=): Add ToLower.
23719         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
23720         argument.
23721
23722 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
23723
23724         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
23725
23726 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
23727
23728         * config/vax/vax.c: Include reload.h.
23729
23730 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
23731
23732         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
23733         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
23734         (sparc_preferred_reload_class): New function.
23735
23736 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
23737
23738         PR debug/48401
23739         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
23740         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
23741
23742 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
23743
23744         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
23745         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
23746
23747 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
23748
23749         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
23750         (ASM_OUTPUT_ALIGNED_BSS): Define.
23751
23752 2011-04-03  Michael Matz  <matz@suse.de>
23753
23754         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
23755         and next_slot members.
23756         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
23757         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
23758         (lto_streamer_cache_append): Declare.
23759         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
23760         unsigned index, remove offset parameter, ensure that we append
23761         or update existing entries.
23762         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
23763         parameter, update next_slot for append.
23764         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
23765         parameter.
23766         (lto_streamer_cache_insert_at): Likewise.
23767         (lto_streamer_cache_append): New function.
23768         (lto_streamer_cache_lookup): Use unsigned index.
23769         (lto_streamer_cache_get): Likewise.
23770         (lto_record_common_node): Don't test tree_node_can_be_shared.
23771         (preload_common_node): Adjust call to lto_streamer_cache_insert.
23772         (lto_streamer_cache_delete): Don't free offsets member.
23773         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
23774         (lto_output_string_with_length): Use lto_output_data_stream.
23775         (lto_output_tree_header): Remove ix parameter, don't write it.
23776         (lto_output_builtin_tree): Likewise.
23777         (lto_write_tree): Adjust callers to above, don't track and write
23778         offset, write unsigned index.
23779         (output_unreferenced_globals): Don't emit all global vars.
23780         (write_global_references): Use unsigned indices.
23781         (lto_output_decl_state_refs): Likewise.
23782         (write_symbol): Likewise.
23783         * lto-streamer-in.c (lto_input_chain): Move earlier.
23784         (input_function): Use unsigned index.
23785         (input_alias_pairs): Don't read and then ignore all global vars.
23786         (lto_materialize_tree): Remove ix_p parameter, don't read index,
23787         don't pass it back, use lto_streamer_cache_append.
23788         (lto_register_var_decl_in_symtab): Use unsigned index.
23789         (lto_register_function_decl_in_symtab): Likewise.
23790         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
23791         index.
23792         (lto_get_builtin_tree): Don't read index, use
23793         lto_streamer_cache_append.
23794         (lto_read_tree): Adjust call to lto_materialize_tree.
23795
23796         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
23797         don't use function calls in arguments to MIN.
23798
23799         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
23800         twice.
23801
23802         * gimple.c (gimple_type_leader_entry): Mark deletable.
23803
23804 2011-04-03  Alan Modra  <amodra@gmail.com>
23805
23806         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
23807
23808 2011-04-03  Michael Matz  <matz@suse.de>
23809
23810         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
23811         an integer.
23812         * tree.h (tree_decl_non_common.vindex): Adjust comment.
23813
23814 2011-04-03  Michael Matz  <matz@suse.de>
23815
23816         * cgraphbuild.c (record_reference): Canonicalize constructor values.
23817         * gimple-fold.c (canonicalize_constructor_val): Accept being called
23818         without function context.
23819         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
23820         current_function_decl and cfun.
23821
23822 2011-04-03  Michael Matz  <matz@suse.de>
23823
23824         * tree.c (decl_init_priority_insert): Don't create entry for
23825         default priority.
23826         (decl_fini_priority_insert): Ditto.
23827         (fields_compatible_p, find_compatible_field): Remove.
23828         * tree.h (fields_compatible_p, find_compatible_field): Remove.
23829         * gimple.c (gimple_compare_field_offset): Adjust block comment.
23830
23831 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
23832
23833         * combine.c (try_combine): Remove useless local variable.
23834
23835 2011-04-03  Richard Guenther  <rguenther@suse.de>
23836             Ira Rosen  <ira.rosen@linaro.org>
23837
23838         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
23839         non-variable offsets and compare the remaining bases of the two
23840         accesses instead of looking for exact same data-ref.
23841
23842 2011-04-02  Kai Tietz  <ktietz@redhat.com>
23843
23844         PR target/48416
23845         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
23846
23847         * i386.c (ix86_is_msabi_thiscall): New helper function.
23848         (ix86_is_type_thiscall): New helper function.
23849         (ix86_comp_type_attributes): Handle thiscall for method-functions
23850         special.
23851         (init_cumulative_args): Likewise.
23852         (find_drap_reg): Likewise.
23853         (ix86_static_chain): Likewise.
23854         (x86_this_parameter): Likewise.
23855         (x86_output_mi_thunk): Likewise.
23856
23857 2011-04-01  Olivier Hainque  <hainque@adacore.com>
23858             Nicolas Setton  <setton@adacore.com>
23859             Eric Botcazou  <ebotcazou@adacore.com>
23860
23861         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
23862         (add_gnat_descriptive_type_attribute): New function.
23863         (gen_array_type_die): Call it.
23864         (gen_enumeration_type_die): Likewise.
23865         (gen_struct_or_union_type_die): Likewise.
23866         (modified_type_die): Likewise.
23867         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
23868         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
23869         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
23870
23871 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
23872
23873         PR bootstrap/48148
23874         * dwarf2out.c (resolve_addr): Don't call force_decl_die
23875         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
23876
23877         Revert:
23878         2011-03-17  Richard Guenther  <rguenther@suse.de>
23879
23880         PR bootstrap/48148
23881         * lto-cgraph.c (input_overwrite_node): Clear the abstract
23882         origin for decls in other ltrans units.
23883         (input_varpool_node): Likewise.
23884
23885 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
23886
23887         PR middle-end/48335
23888         * expr.c (expand_assignment): Handle all possibilities
23889         if TO_RTX is CONCAT.
23890         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
23891         (store_split_bit_field): If SUBREG_REG (op0) or
23892         op0 itself has smaller mode than word, return it
23893         for offset 0 and const0_rtx for out-of-bounds stores.
23894         If word is const0_rtx, skip it.
23895
23896 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
23897
23898         * config/h8300/h8300.c (print_operand_address): Rename to...
23899         (h8300_print_operand_address): ...this. Make static. Adjust comments.
23900         Call h8300_print_operand and h8300_print_operand_address instead of
23901         print_operand and print_operand_address. Declare.
23902         (print_operand): Renake to...
23903         (h8300_print_operand): ...this. Make static. Adjust comments.
23904         Call h8300_print_operand instead of print_operand. Declare.
23905         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
23906         (h8300_register_move_cost): Likewise.
23907         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
23908         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
23909         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
23910         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
23911         * config/h8300/h8300-protos.h (print_operand): Delete.
23912         (print_operand_address): Delete.
23913
23914 2011-04-01  Richard Henderson  <rth@redhat.com>
23915
23916         PR 48400
23917         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
23918         in strict mode before dwarf4.  Re-order tests to early out
23919         before switching sections.
23920
23921 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
23922
23923         * config/h8300/constraints.md: New file.
23924         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
23925         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
23926         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
23927         * config/h8300/predicates.md (bit_operand): Likewise.
23928         (incdec_operand): Use satisfies_constraint_M and
23929         satisfies_constraint_O.  Don't use C code block.
23930         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
23931         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
23932         (compute_mov_length): Use satisfies_constraint_G.
23933         (fix_bit_operand): Use satisfies_constraint_U.
23934         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
23935         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
23936         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
23937         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
23938         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
23939         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
23940         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
23941         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
23942         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
23943         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
23944         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
23945         (EXTRA_MEMORY_CONSTRAINT): Delete.
23946
23947 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
23948             Michael Meissner  <meissner@linux.vnet.ibm.com>
23949
23950         PR target/48262
23951         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
23952         operands, as per the specifications.
23953
23954         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
23955         (vec_extract_evenv4sf): Ditto.
23956         (vec_extract_evenv8hi): Ditto.
23957         (vec_extract_evenv16qi): Ditto.
23958         (vec_extract_oddv4si): Ditto.
23959
23960 2011-03-31  Mark Wielaard  <mjw@redhat.com>
23961
23962         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
23963         high_pc attribute if the CU has no associated code. Only output
23964         DW_AT_entry_pc for CU if not generating strict dwarf and
23965         dwarf_version < 4.
23966
23967 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
23968
23969         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
23970         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
23971         out of ...
23972         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
23973         * final.c (final_start_function): Call the new function rather
23974         than using a NULL argument for dwarf2out_frame_debug.
23975
23976         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
23977         that contains the prologue.
23978
23979         * haifa-sched.c (queue_insn): New arg REASON.  All callers
23980         changed.  Print it in debugging output.
23981
23982         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
23983
23984         * sched-ebb.c (begin_schedule_ready): Remove second argument.
23985         Split most of the code into...
23986         (begin_move_insn): ... here.  New function.
23987         (ebb_sched_info): Add a pointer to it.
23988         * haifa-sched.c (scheduled_insns): New static variable.
23989         (sched_extend_ready_list): Allocate it.
23990         (schedule_block): Use it to record the order of scheduled insns.
23991         Perform RTL changes to move insns only after all scheduling
23992         decisions have been made.
23993         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
23994         begin_move_insn field.
23995         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
23996         * sched-int.h (struct haifa_sched_info): Remove second argument
23997         from begin_schedule_ready hook.  Add new member begin_move_insn.
23998         * sched-rgn.c (begin_schedule_ready): Remove second argument.
23999         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
24000
24001         * haifa-sched.c (prune_ready_list): New function, broken out of
24002         schedule_block.
24003         (schedule_block): Use it.
24004
24005 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24006
24007         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
24008
24009 2011-04-01  Kai Tietz  <ktietz@redhat.com>
24010
24011         * config.gcc (*-*-mingw*): Allow as option the
24012         posix threading model.
24013         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
24014         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
24015         definition.
24016         (CPP_SPEC): Add pthread/no-pthread handling.
24017         (LIB_SPEC): Likewise.
24018         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
24019         (LIB_SPEC): Likewise.
24020         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
24021         flag to pass -pthread option for shared libgcc build.
24022         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
24023         for shared libgcc build.
24024         * config/i386/t-mingw-pthread: New file.
24025         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
24026         New define to enable use of library pthread by default.
24027         * config/i386/mingw.opt (pthread): New driver option.
24028         (no-pthread): New driver option.
24029         * config/i386/cygming.opt: Make sure trailing empty line is retained.
24030         * config/i386/mingw-w64.opt: Likewise.
24031
24032 2011-04-01  Gary Funck  <gary@intrepid.com>
24033
24034         * c-decl.c (grokdeclarator): Fix formatting.
24035
24036 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
24037
24038         * expr.c (emit_block_move_via_movmem): Use n_generator_args
24039         instead of n_operands.
24040         (set_storage_via_setmem): Likewise.
24041         * optabs.c (maybe_gen_insn): Likewise.
24042         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
24043         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
24044         (mips_expand_builtin_direct): Likewise.
24045         * config/spu/spu.c (expand_builtin_args): Likewise.
24046
24047 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
24048
24049         * recog.h (insn_data_d): Add n_generator_args.
24050         * genoutput.c (data): Likewise.
24051         (output_insn_data): Print it.
24052         (max_opno, num_dups): Delete.
24053         (scan_operands): Just fill in "d->operand[...]".
24054         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
24055
24056 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
24057
24058         * gensupport.h (pattern_stats): New structure.
24059         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
24060         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
24061         (max_operand_1, max_operand_vec): Delete.
24062         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
24063
24064 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
24065
24066         * emit-rtl.c (emit_pattern_after_setloc): New function.
24067         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
24068         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
24069         (emit_pattern_after): New function.
24070         (emit_insn_after, emit_jump_insn_after): Call it.
24071         (emit_call_insn_after, emit_debug_insn_after): Likewise.
24072         (emit_pattern_before_setloc): New function.
24073         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
24074         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
24075         Likewise.
24076         (emit_pattern_before): New function.
24077         (emit_insn_before, emit_jump_insn_before): Call it.
24078         (emit_call_insn_before, emit_debug_insn_before): Likewise.
24079
24080 2011-03-31  Richard Henderson  <rth@redhat.com>
24081
24082         * dwarf2out.c (dw_separate_line_info_ref): Remove.
24083         (dw_separate_line_info_entry): Remove.
24084         (enum dw_line_info_opcode): New.
24085         (dw_line_info_entry): Use it.
24086         (dw_line_info_table, dw_line_info_table_p): New.
24087         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
24088         (line_info_table, line_info_label_num): Remove.
24089         (line_info_table_in_use): Remove.
24090         (separate_line_info_table): Remove.
24091         (separate_line_info_table_allocated): Remove.
24092         (separate_line_info_table_in_use): Remove.
24093         (LINE_INFO_TABLE_INCREMENT): Remove.
24094         (line_info_label_num): New.
24095         (cur_line_info_table): New.
24096         (text_section_line_info, cold_text_section_line_info): New.
24097         (separate_line_info): New.
24098         (SEPARATE_LINE_CODE_LABEL): Remove.
24099         (print_dwarf_line_table): Remove.
24100         (debug_dwarf): Don't dump it.
24101         (output_one_line_info_table): New.
24102         (output_line_info): Use it.
24103         (new_line_info_table): New.
24104         (set_cur_line_info_table): New.
24105         (dwarf2out_switch_text_section): Use it.
24106         (dwarf2out_begin_function): Likewise.
24107         (push_dw_line_info_entry): New.
24108         (dwarf2out_source_line): Rewrite for new line info tables.
24109         (dwarf2out_init): Remove dead initailizations.
24110
24111 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
24112
24113         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
24114         various flags.
24115         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
24116         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
24117         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
24118         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
24119         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
24120         * opt-functions.awk (flag_init, switch_bit_fields): New.
24121         (switch_flags): Don't handle flags moved to bit-fields.  Don't
24122         generate CL_MISSING_OK or CL_SAVE.
24123         * optc-gen.awk: Update to generate bit-field output as well as
24124         flags field.
24125         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
24126         bit-field instead of CL_REJECT_DRIVER flag.
24127         * opts-common.c (generate_canonical_option,
24128         decode_cmdline_option): Use bit-fields instead of CL_* flags.
24129         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
24130         instead of CL_REJECT_NEGATIVE flag.
24131         * toplev.c (print_switch_values): Use cl_report bit-field instead
24132         of CL_REPORT flag.
24133
24134 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
24135
24136         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
24137         a zero minimum index only if it is redundant.
24138
24139 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
24140
24141         PR rtl-optimization/48381
24142         * ira-color.c (assign_hard_reg): Use hard reg set intersection
24143         instead of ira_class_hard_reg_index for calculating conflicting
24144         hard registers.
24145
24146 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
24147
24148         * cprop.c: Clean up hash table building.
24149         (reg_avail_info): Remove.
24150         (oprs_available_p): Remove.
24151         (record_last_reg_set_info): Remove.
24152         (record_last_set_info): Remove.
24153         (reg_available_p): New function.
24154         (gcse_constant_p): Do not treat unfolded conditions as constants.
24155         (make_set_regs_unavailable): New function.
24156         (hash_scan_set): Simplify with new reg_available_p.
24157         (compute_hash_table_work): Traverse insns stream only once.
24158         Do not compute reg_avail_info. Traverse insns in reverse order.
24159         Record implicit sets after recording explicit sets from the block.
24160
24161 2011-03-31  Michael Matz  <matz@suse.de>
24162
24163         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
24164
24165 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
24166
24167         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
24168         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
24169         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24170         (h8300_mode_dependent_address_p): New function.
24171         (h8300_get_index): Make static.
24172
24173 2011-03-31  Jeff Law  <law@redhat.com>
24174
24175         * reload1.c (elimination_effects): Fix typo in recent change.
24176
24177         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
24178         typo potentially leading to null pointer dereference.
24179
24180         * caller-save.c (new_saved_hard_reg): Eliminate return value.
24181         (setup_save_areas): Corresponding changes to avoid useless
24182         assignments.
24183
24184         * jump.c (reversed_comparison_code_parts): Avoid successive return
24185         statements when REVERSE_CONDITION is defined.
24186
24187         * expr.c (expand_assignment): Avoid useless assignments.
24188         (expand_expr_real_1): Likewise.
24189         (expand_expr_real_2): Avoid useless statements.
24190
24191         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
24192
24193         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
24194
24195         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
24196         statements.
24197
24198         * stmt.c (expand_expr_stmt): Avoid useless assignment.
24199
24200 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
24201
24202         PR target/47109
24203         * doc/tm.texi.in (TARGET_VERSION): Remove.
24204         * doc/tm.texi: Regenerate.
24205         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
24206         * collect2.c (main): Don't use TARGET_VERSION.
24207         * mips-tdump.c (main): Don't use TARGET_VERSION.
24208         * mips-tfile.c (main): Don't use TARGET_VERSION.
24209         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
24210         * config/rs6000/vxworksae.h: Remove.
24211         * config/alpha/alpha.h (TARGET_VERSION): Remove.
24212         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
24213         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
24214         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
24215         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
24216         * config/arm/arm.h (TARGET_VERSION): Remove.
24217         * config/arm/coff.h (TARGET_VERSION): Remove.
24218         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
24219         * config/arm/elf.h (TARGET_VERSION): Remove.
24220         * config/arm/freebsd.h (TARGET_VERSION): Remove.
24221         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
24222         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
24223         * config/arm/pe.h (TARGET_VERSION): Remove.
24224         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
24225         * config/arm/semi.h (TARGET_VERSION): Remove.
24226         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
24227         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
24228         * config/arm/vxworks.h (TARGET_VERSION): Remove.
24229         * config/avr/avr.h (TARGET_VERSION): Remove.
24230         * config/bfin/bfin.h (TARGET_VERSION): Remove.
24231         * config/fr30/fr30.h (TARGET_VERSION): Remove.
24232         * config/frv/frv.h (TARGET_VERSION): Remove.
24233         * config/h8300/h8300.h (TARGET_VERSION): Remove.
24234         * config/i386/cygwin.h (TARGET_VERSION): Remove.
24235         * config/i386/darwin.h (TARGET_VERSION): Remove.
24236         * config/i386/darwin64.h (TARGET_VERSION): Remove.
24237         * config/i386/djgpp.h (TARGET_VERSION): Remove.
24238         * config/i386/freebsd.h (TARGET_VERSION): Remove.
24239         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
24240         * config/i386/gnu.h (TARGET_VERSION): Remove.
24241         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
24242         * config/i386/i386elf.h (TARGET_VERSION): Remove.
24243         * config/i386/linux.h (TARGET_VERSION): Remove.
24244         * config/i386/linux64.h (TARGET_VERSION): Remove.
24245         * config/i386/lynx.h (TARGET_VERSION): Remove.
24246         * config/i386/mingw32.h (TARGET_VERSION): Remove.
24247         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
24248         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
24249         * config/i386/netware.h (TARGET_VERSION): Remove.
24250         * config/i386/nto.h (TARGET_VERSION): Remove.
24251         * config/i386/openbsd.h (TARGET_VERSION): Remove.
24252         * config/i386/vxworks.h (TARGET_VERSION): Remove.
24253         * config/ia64/elf.h (TARGET_VERSION): Remove.
24254         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
24255         * config/ia64/hpux.h (TARGET_VERSION): Remove.
24256         * config/ia64/linux.h (TARGET_VERSION): Remove.
24257         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
24258         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
24259         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
24260         * config/lm32/lm32.h (TARGET_VERSION): Remove.
24261         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
24262         * config/m32c/m32c.h (TARGET_VERSION): Remove.
24263         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
24264         * config/m32r/m32r.h (TARGET_VERSION): Remove.
24265         * config/m68k/linux.h (TARGET_VERSION): Remove.
24266         * config/m68k/m68k.h (TARGET_VERSION): Remove.
24267         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
24268         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
24269         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
24270         * config/mep/mep.h (TARGET_VERSION): Remove.
24271         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
24272         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
24273         * config/mips/iris6.h (MACHINE_TYPE): Remove.
24274         * config/mips/linux.h (TARGET_VERSION): Remove.
24275         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
24276         * config/mips/vxworks.h (TARGET_VERSION): Remove.
24277         * config/mmix/mmix.h (TARGET_VERSION): Remove.
24278         * config/mn10300/linux.h (TARGET_VERSION): Remove.
24279         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
24280         * config/pa/pa.h (TARGET_VERSION): Remove.
24281         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
24282         * config/picochip/picochip.h (TARGET_VERSION): Remove.
24283         * config/rs6000/aix.h (TARGET_VERSION): Remove.
24284         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
24285         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
24286         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
24287         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
24288         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
24289         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
24290         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
24291         * config/rs6000/linux.h (TARGET_VERSION): Remove.
24292         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
24293         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
24294         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
24295         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
24296         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
24297         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
24298         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
24299         * config/s390/linux.h (TARGET_VERSION): Remove.
24300         * config/s390/s390.h (TARGET_VERSION): Remove.
24301         * config/s390/tpf.h (TARGET_VERSION): Remove.
24302         * config/score/score.h (TARGET_VERSION): Remove.
24303         * config/sh/linux.h (TARGET_VERSION): Remove.
24304         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
24305         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
24306         * config/sh/sh.h (TARGET_VERSION): Remove.
24307         * config/sh/sh64.h (TARGET_VERSION): Remove.
24308         * config/sh/superh.h (TARGET_VERSION): Remove.
24309         * config/sh/vxworks.h (TARGET_VERSION): Remove.
24310         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
24311         * config/sparc/linux.h (TARGET_VERSION): Remove.
24312         * config/sparc/linux64.h (TARGET_VERSION): Remove.
24313         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
24314         TARGET_NAME32, TARGET_NAME): Remove.
24315         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
24316         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
24317         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
24318         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
24319         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
24320         * config/spu/spu.h (TARGET_VERSION): Remove.
24321         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
24322         * config/v850/v850.h (TARGET_VERSION): Remove.
24323         * config/vax/linux.h (TARGET_VERSION): Remove.
24324         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
24325         * config/xtensa/elf.h (TARGET_VERSION): Remove.
24326         * config/xtensa/linux.h (TARGET_VERSION): Remove.
24327
24328 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
24329
24330         PR target/48142
24331         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
24332         frame-related from frame-unrelated adjustments to the stack pointer.
24333
24334 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
24335
24336         * common.opt (fdebug-types-section): Move earlier.
24337         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
24338
24339 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
24340
24341         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
24342         var.
24343
24344 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
24345
24346         * tree.h (CASE_CHAIN): Define.
24347         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
24348         (gimple_redirect_edge_and_branch): Likewise.
24349
24350 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24351
24352         PR middle-end/48367
24353         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
24354         calculation.
24355
24356 2011-03-30  Jeff Law  <law@redhat.com>
24357
24358         * PR bootstrap/48371
24359         * reload1.c (reload): Fix botch in last change.
24360
24361         * reload.h (struct reload): Fix typo introduced in last change.
24362
24363 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
24364
24365         * config/arm/arm.opt (mhard-float, msoft-float): Mark
24366         Undocumented.  Remove help text.
24367         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
24368         -mhard-float.
24369
24370 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
24371
24372         * doc/options.texi (NegativeAlias): Document.
24373         (Alias): Mention NegativeAlias.
24374         * opt-functions.awk: Handle NegativeAlias.
24375         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
24376         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
24377         * opts.h (CL_NEGATIVE_ALIAS): Define.
24378         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
24379         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
24380         OPT_mspe_.
24381         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
24382         Alias entries.
24383         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24384         mno-spe and mno-isel instead of mspe=no and -misel=no.
24385
24386 2011-03-29  Mark Wielaard  <mjw@redhat.com>
24387
24388         * common.opt (fdebug-types-section): New flag.
24389         * doc/invoke.texi: Document new -fno-debug-types-section flag.
24390         * dwarf2out.c (use_debug_types): New define.
24391         (struct die_struct): Mark die_id with GTY desc use_debug_types.
24392         (print_die): Guard output of type unit signatures using
24393         use_debug_types.
24394         (build_abbrev_table): Replace assert of dwarf_version >= 4
24395         with assert on use_debug_types.
24396         (size_of_die): Likewise.
24397         (unmark_dies): Likewise.
24398         (value_format): Decide AT_ref_external form on use_debug_types.
24399         (output_die): Replace dwarf_version version check guard with
24400         use_debug_types where appropriate.
24401         (modified_type_die): Likewise.
24402         (gen_reference_type_die): Likewise.
24403         (dwarf2out_start_source_file): Likewise.
24404         (dwarf2out_end_source_file): Likewise.
24405         (prune_unused_types_walk_attribs): Likewise.
24406         (dwarf2out_finish): Likewise.
24407
24408 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24409
24410         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
24411
24412 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
24413
24414         PR rtl-optimization/48332
24415         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
24416         mode of input operand N and modeN to its actual mode.
24417
24418 2011-03-30  Jeff Law  <law@redhat.com>
24419
24420         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
24421         define accessor macro.
24422         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
24423         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
24424         (reg_equiv_init): Likewise.
24425         (reg_equivs_size): New variable.
24426         (reg_equiv_init_size): Remove.
24427         (allocate_initial_values): Move prototype to here from....
24428         * integrate.h (allocate_initial_values): Remove prototype.
24429         * integrate.c: Include reload.h.
24430         (allocate_initial_values): Corresponding changes.
24431         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
24432         (fix_reg_equiv_init, no_equiv): Corresponding changes.
24433         (update_equiv_regs): Corresponding changes.
24434         (ira): Corresponding changes.
24435         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
24436         (push_secondary_reload): Corresponding changes.
24437         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
24438         (make_memloc, find_reloads_address): Corresponding changes.
24439         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
24440         (find_reloads_address_1): Corresponding changes.
24441         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
24442         (refers_to_regno_for_reload_p): Corresponding changes.
24443         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
24444         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
24445         * reload1.c: Include ggc.h.
24446         (grow_reg_equivs): New function.
24447         (replace_pseudos_in, reload): Corresponding changes.
24448         (calculate_needs_all_insns, alter_regs): Corresponding changes.
24449         (eliminate_regs_1, elimination_effects): Corresponding changes.
24450         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
24451         (delete_output_reload): Likewise.
24452         * caller-save.c (mark_referenced_regs): Corresponding changes.
24453         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
24454         * frv/predicates.md (frv_load_operand): Corresponding changes.
24455         * microblaze/microblaze.c (double_memory_operand): Corresponding
24456         changes.
24457         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
24458         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
24459         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
24460         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
24461         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
24462         changes.
24463         * pa/pa.c (emit_move_sequence): Corresponding changes.
24464         * vax/vax.c (nonindexed_address_p): Corresponding changes.
24465
24466 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
24467
24468         PR target/47551
24469         * config/arm/arm.c (coproc_secondary_reload_class): Handle
24470         structure modes.  Don't check neon_vector_mem_operand for
24471         vector or structure modes.
24472
24473 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
24474             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
24475
24476         PR target/43590
24477         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
24478         operand 1 and reshuffle the operands to match.
24479         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
24480
24481 2011-03-30  Christian Schüler  <cschueler@gmx.de>
24482
24483         PR driver/48208
24484         * config/c.opt (F): Added 'Driver' to -F option.
24485
24486         PR driver/48260
24487         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
24488           handler function.
24489         * config/darwin.opt: Added '-arch' option.
24490
24491 2011-03-30  Nick Clifton  <nickc@redhat.com>
24492
24493         * config/rx/rx.md: Add peepholes and patterns to combine
24494         extending loads and simple arithmetic instructions.
24495         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
24496         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
24497         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
24498         modes to use pre-decrement and post-increment addressing.
24499         (rx_is_restricted_memory_address): Add range checking of REG+INT
24500         addresses.
24501         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
24502         (rx_memory_move_cost): Adjust cost of stores.
24503         (rx_adjust_insn_length): New function.
24504
24505 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
24506
24507         PR c/48305
24508         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
24509         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
24510         matching arg00/arg01 types.
24511
24512 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
24513
24514         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
24515         last_location to UNKNOWN_LOCATION.
24516
24517 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
24518
24519         PR target/48349
24520         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
24521         FLOAT_SSE_REGS.
24522
24523 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
24524             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24525
24526         PR bootstrap/48337
24527         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
24528         Init(PROCESSOR_V7).
24529         (sparc_cpu): Likewise.
24530         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
24531         PROCESSOR_V7.
24532
24533 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
24534
24535         PR target/48336
24536         PR middle-end/48342
24537         PR rtl-optimization/48345
24538         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
24539         hard regs for given mode from profitable regs when doing secondary
24540         allocation.
24541
24542 2011-03-29  Jeff Law  <law@redhat.com>
24543
24544         PR bootstrap/48327
24545         * tree-ssa-threadupdate.c (struct redirection_data): Remove
24546         do_not_duplicate field.
24547         (lookup_redirection_data): Corresponding changes.
24548         (create_duplicates): Always create a template block.
24549         (redirect_edges): Remove code which reused the original block
24550         when it was going to become unreachable code.
24551         (thread_block): Don't set do_not_duplicate field.
24552
24553 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
24554
24555         * lto-opts.c (register_user_option_p, lto_register_user_option):
24556         Make type argument unsigned.
24557         * lto-streamer.h (lto_register_user_option): Make type argument
24558         unsigned.
24559         * opth-gen.awk: Make CL_* macros unsigned.
24560         * opts-common.c (find_opt): Make lang_mask argument unsigned.
24561         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
24562         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
24563         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
24564         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
24565         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
24566         (find_opt): Make lang_mask argument unsigned.
24567
24568 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
24569
24570         PR rtl-optimization/48331
24571         PR rtl-optimization/48334
24572         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
24573         for any used algorithm.
24574
24575 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
24576
24577         * ira-conflicts.c (build_object_conflicts): Add unused attribute
24578         to parent_max.
24579
24580 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
24581
24582         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
24583         (alpha_option_override): Don't set alpha_sr_alias_set.
24584         (emit_frame_store_1): Use gen_frame_mem rather than calling
24585         set_mem_alias_set.
24586         (alpha_expand_epilogue): Ditto.
24587
24588 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
24589
24590         PR tree-optimization/48290
24591         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
24592         vectorization, check that relevant phis in the basic block after
24593         the inner loop are really inner loop's exit phis.
24594
24595 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
24596
24597         PR debug/48190
24598         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
24599         (cached_dw_loc_list_def): New structure.
24600         (cached_dw_loc_list): New typedef.
24601         (cached_dw_loc_list_table): New variable.
24602         (cached_dw_loc_list_table_hash): New function.
24603         (cached_dw_loc_list_table_eq): Likewise.
24604         (add_location_or_const_value_attribute): Take a bool cache_p.
24605         Cache the list when the parameter is true.
24606         (gen_formal_parameter_die): Update caller.
24607         (gen_variable_die): Likewise.
24608         (dwarf2out_finish): Likewise.
24609         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
24610         while generating debug info for the decl.
24611         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
24612         (dwarf2out_init): Initialize cached_dw_loc_list_table.
24613         (resolve_addr): Cache the result of resolving a chain of
24614         location lists.
24615
24616 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
24617
24618         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
24619         conflict object hard regset nodes have intersecting hard reg sets.
24620
24621         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
24622         after regstat_init_n_sets_and_refs.
24623
24624         * ira.c: Add more comments at the top.
24625         (setup_stack_reg_pressure_class, setup_pressure_classes):
24626         Add comments how we compute the register pressure classes.
24627         (setup_allocno_and_important_classes): Add more comments.
24628         (setup_class_translate_array, reorder_important_classes)
24629         (setup_reg_class_relations): Add comments.
24630
24631         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
24632         start of the file.
24633
24634         * ira-color.c: Add 2011 to the Copyright line.
24635         (assign_hard_reg):  Add more comments.
24636         (improve_allocation): Ditto.
24637
24638         * ira-costs.c: Add 2011 to the Copyright line.
24639         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
24640         comments.
24641         (setup_regno_cost_classes_by_mode): Ditto.
24642
24643         Initial patches from ira-improv branch:
24644
24645         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
24646
24647         * ira-build.c (ira_create_object): Remove initialization of
24648         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
24649         (ira_create_allocno): Remove initialization of
24650         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
24651         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
24652         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24653         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
24654         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
24655         Initialize ALLOCNO_ADD_DATA.
24656         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
24657         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
24658         ALLOCNO_REG.
24659         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
24660         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
24661
24662         * ira.c (ira_reallocate): Remove.
24663         (setup_pressure_classes): Call
24664         ira_init_register_move_cost_if_necessary.  Use
24665         ira_register_move_cost instead of ira_get_register_move_cost.
24666         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
24667         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
24668
24669         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
24670         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
24671         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
24672         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
24673         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
24674         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
24675         Fix formatting.
24676         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
24677         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24678         (struct allocno_color_data): New.
24679         (allocno_color_data_t): New typedef.
24680         (allocno_color_data): New definition.
24681         (ALLOCNO_COLOR_DATA): New macro.
24682         (struct object_color_data): New.
24683         (object_color_data_t): New typedef.
24684         (object_color_data): New definition.
24685         (OBJECT_COLOR_DATA): New macro.
24686         (update_copy_costs, calculate_allocno_spill_cost): Call
24687         ira_init_register_move_cost_if_necessary.  Use
24688         ira_register_move_cost instead of ira_get_register_move_cost.
24689         (move_spill_restore, update_curr_costs): Ditto.
24690         (allocno_spill_priority): Make it inline.
24691         (color_pass): Allocate and free allocno_color_dat and object_color_data.
24692         (struct coalesce_data, coalesce_data_t): New.
24693         (allocno_coalesce_data): New definition.
24694         (ALLOCNO_COALESCE_DATA): New macro.
24695         (merge_allocnos, coalesced_allocno_conflict_p): Use
24696         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
24697         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
24698         (coalesce_allocnos): Ditto.
24699         (setup_coalesced_allocno_costs_and_nums): Ditto.
24700         (collect_spilled_coalesced_allocnos): Ditto.
24701         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
24702         (setup_slot_coalesced_allocno_live_ranges): Ditto.
24703         (coalesce_spill_slots): Ditto.
24704         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
24705         free allocno_coalesce_data.
24706
24707         * ira-conflicts.c: Fix formatting.
24708         (process_regs_for_copy): Call
24709         ira_init_register_move_cost_if_necessary.  Use
24710         ira_register_move_cost instead of ira_get_register_move_cost.
24711         (build_object_conflicts): Optimize.
24712
24713         * ira-costs.c (record_reg_classes): Optimize.  Call
24714         ira_init_register_move_cost_if_necessary.  Use
24715         ira_register_move_cost, ira_may_move_in_cost, and
24716         ira_may_move_out_cost instead of ira_get_register_move_cost and
24717         ira_get_may_move_cost.
24718         (record_address_regs): Ditto.
24719         (scan_one_insn): Optimize.
24720         (find_costs_and_classes): Optimize.
24721         (process_bb_node_for_hard_reg_moves): Call
24722         ira_init_register_move_cost_if_necessary.  Use
24723         ira_register_move_cost instead of ira_get_register_move_cost.
24724
24725         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
24726         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
24727         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
24728         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
24729         definitions.
24730         (ira_initiate_emit_data, ira_finish_emit_data)
24731         (create_new_allocno): New functions.
24732         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
24733         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
24734         Use ira_register_move_cost instead of ira_get_register_move_cost.
24735
24736         * ira-int.h: Fix some comments.
24737         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
24738         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
24739         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
24740         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
24741         add_data.
24742         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
24743         bitfield after mode.  Make hard_regno a short int.  Make
24744         hard_regno short.  Remove first_coalesced_allocno and
24745         next_coalesced_allocno.  Move mem_optimized_dest_p,
24746         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
24747         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
24748         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
24749         temp, colorable_p.  Add new member add_data.
24750         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
24751         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
24752         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
24753         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
24754         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
24755         (ALLOCNO_ADD_DATA): New macro.
24756         (ira_emit_data_t): New typedef.
24757         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
24758         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
24759         from struct ira_allocno.
24760         (ALLOCNO_EMIT_DATA): New macro.
24761         (ira_allocno_emit_data, allocno_emit_reg): New.
24762         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
24763         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
24764         (OBJECT_ADD_DATA): New macro.
24765         (ira_reallocate): Remove.
24766         (ira_initiate_emit_data, ira_finish_emit_data): New.
24767         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
24768         (ira_init_register_move_cost_if_necessary): New.
24769         (ira_object_conflict_iter_next): Merge into
24770         ira_object_conflict_iter_cond.
24771         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
24772
24773         * ira-live.c (process_single_reg_class_operands): Call
24774         ira_init_register_move_cost_if_necessary.  Use
24775         ira_register_move_cost instead of ira_get_register_move_cost.
24776
24777         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
24778
24779         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
24780
24781         * ira-costs.c: Fix formatting.
24782         (cost_classes, cost_classes_num): Remove.
24783         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
24784         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
24785         (cost_classes_del, cost_classes_htab): New.
24786         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
24787         (initiate_regno_cost_classes, setup_cost_classes): New.
24788         (setup_regno_cost_classes_by_aclass): New.
24789         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
24790         (record_reg_classes): Use regno_cost_classes instead of
24791         cost_classes.  Move checking opposite operand up.
24792         (record_address_regs): Use regno_cost_classes
24793         instead of cost_classes.
24794         (scan_one_insn): Ditto.  Use always general register.
24795         (print_allocno_costs): Use regno_cost_classes instead of
24796         cost_classes.
24797         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
24798         (find_costs_and_classes): Set up cost classes for each registers.
24799         Use also their mode for this.  Use regno_cost_classes instead of
24800         cost_classes.
24801         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
24802         cost_classes.
24803         (free_ira_costs, ira_init_costs): Don't use cost_classes.
24804         (ira_costs, ira_set_pseudo_classes): Call
24805         initiate_regno_cost_classes and finish_regno_cost_classes.
24806
24807         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
24808
24809         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
24810
24811         * target.def (ira_cover_classes): Remove.
24812
24813         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
24814
24815         * doc/tm.texi.in: Ditto.
24816
24817         * ira-conflicts.c: Remove mentioning cover classes from the file.
24818         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
24819         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
24820
24821         * targhooks.c (default_ira_cover_classes): Remove.
24822
24823         * targhooks.h (default_ira_cover_classes): Ditto.
24824
24825         * haifa-sched.c: Remove mentioning cover classes from the file.
24826         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
24827         ira_pressure_classes and ira_pressure_classes_num instead of
24828         ira_reg_class_cover_size and ira_reg_class_cover.  Use
24829         sched_regno_pressure_class instead of sched_regno_cover_class.
24830         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
24831         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
24832
24833         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
24834         classes from the file.
24835         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
24836         (struct object_hard_regs, struct object_hard_regs_node): New.
24837         (struct ira_object): New members profitable_hard_regs,
24838         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
24839         (struct ira_allocno): Rename cover_class to aclass.  Rename
24840         cover_class_cost and updated_cover_class_cost to class_cost and
24841         updated_class_cost.  Remove splay_removed_p and
24842         left_conflict_size.  Add new members colorable_p.
24843         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
24844         (ALLOCNO_COLORABLE_P): New macro.
24845         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
24846         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
24847         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
24848         (OBJECT_...): Rename parameter C to O.
24849         (OBJECT_PROFITABLE_HARD_REGS): New macro.
24850         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
24851         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
24852         (struct target_ira_int): New members x_ira_max_memory_move_cost,
24853         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
24854         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
24855         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
24856         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
24857         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
24858         x_ira_reg_class_subunion.
24859         (ira_max_memory_move_cost, ira_max_register_move_cost)
24860         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
24861         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
24862         (ira_important_class_nums, ira_reg_class_superunion): New macros.
24863         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
24864         (ira_reg_class_union): Rename to ira_reg_class_subunion.
24865         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
24866         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
24867         (ira_tune_allocno_costs_and_cover_classes): Rename to
24868         ira_tune_allocno_costs.
24869         (ira_debug_hard_regs_forest): New.
24870         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
24871         (ira_object_conflict_iter_next): Fix comments.
24872         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
24873         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
24874         cover_class to aclass.
24875         (ira_allocate_and_accumulate_costs): Ditto.
24876         (ira_allocate_and_set_or_copy_costs): Ditto.
24877
24878         * opts.c (decode_options): Remove ira_cover_class check.
24879
24880         * ira-color.c: Remove mentioning cover classes from the file.  Use
24881         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
24882         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
24883         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
24884         (splay-tree.h): Remove include.
24885         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
24886         before copy_freq_compare_func.
24887         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
24888         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
24889         New definitions.
24890         (hard_regs_roots, hard_regs_node_vec): Ditto.
24891         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
24892         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
24893         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
24894         (create_new_object_hard_regs_node): Ditto.
24895         (add_new_object_hard_regs_node_to_forest): Ditto.
24896         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
24897         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
24898         Ditto.
24899         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
24900         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
24901         (remove_unused_object_hard_regs_nodes): Ditto.
24902         (enumerate_object_hard_regs_nodes): Ditto.
24903         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
24904         (object_hard_regs_subnode_t): Ditto.
24905         (struct object_hard_regs_subnode): Ditto.
24906         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
24907         (setup_object_hard_regs_subnode_index): Ditto.
24908         (get_object_hard_regs_subnodes_num): Ditto.
24909         (form_object_hard_regs_nodes_forest): Ditto.
24910         (finish_object_hard_regs_nodes_tree): Ditto.
24911         (finish_object_hard_regs_nodes_forest): Ditto.
24912         (allocnos_have_intersected_live_ranges_p): Rename to
24913         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
24914         (pseudos_have_intersected_live_ranges_p): Rename to
24915         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
24916         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
24917         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
24918         (update_copy_costs): Remove assert.  Skip cost update if the hard
24919         reg does not belong the class.
24920         (assign_hard_reg): Process only profitable hard regs.
24921         (uncolorable_allocnos_num): Make it scalar.
24922         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
24923         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
24924         and ira_reg_class_max_nregs.
24925         (bucket_allocno_compare_func): Check frequency first.
24926         (sort_bucket): Add compare function as a parameter.
24927         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
24928         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
24929         (push_allocno_to_stack): Rewrite for checking new allocno
24930         colorability.
24931         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
24932         (push_only_colorable): Pass new parameter to sort_bucket.
24933         (push_allocno_to_spill): Remove.
24934         (allocno_spill_priority_compare): Make it inline and rewrite.
24935         (splay_tree_allocate, splay_tree_free): Remove.
24936         (allocno_spill_sort_compare): New function.
24937         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
24938         build and use splay tree.  Choose first allocno in uncolorable
24939         allocno bucket to spill.  Remove setting spill cost.
24940         (all_conflicting_hard_regs): Remove.
24941         (setup_allocno_available_regs_num): Check only profitable hard
24942         regs.  Print info about hard regs nodes.
24943         (setup_allocno_left_conflicts_size): Remove.
24944         (put_allocno_into_bucket): Don't call
24945         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
24946         (improve_allocation): New.
24947         (color_allocnos): Call setup_profitable_hard_regs,
24948         form_object_hard_regs_nodes_forest, improve_allocation,
24949         finish_object_hard_regs_nodes_forest.  Setup spill cost.
24950         (print_loop_title): Use pressure classes.
24951         (color_allocnso): Ditto.
24952         (do_coloring): Remove allocation and freeing splay_tree_node_pool
24953         and allocnos_for_spilling.
24954         (ira_sort_regnos_for_alter_reg): Don't setup members
24955         {first,next}_coalesced_allocno.
24956         (color): Remove allocating and freeing removed_splay_allocno_vec.
24957         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
24958         prohibited_class_mode_regs.
24959
24960         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
24961         formatting.
24962         (update_allocno_pressure_excess_length): Use pressure classes.
24963         (inc_register_pressure, dec_register_pressure): Check for pressure
24964         class.
24965         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
24966         pressure class.  Use ira_reg_class_nregs instead of
24967         ira_reg_class_max_nregs.
24968         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
24969         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
24970         (single_reg_class): Use ira_reg_class_nregs instead of
24971         ira_reg_class_max_nregs.
24972         (process_bb_node_lives): Use pressure classes.
24973
24974         * ira-emit.c: Remove mentioning cover classes from the file.  Use
24975         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
24976         (change_loop): Use pressure classes.
24977         (modify_move_list): Call ira_set_allocno_class instead of
24978         ira_set_allocno_cover_class.
24979
24980         * ira-build.c: Remove mentioning cover classes from the file.  Use
24981         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
24982         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
24983         ALLOCNO_UPDATED_CLASS_COST instead of
24984         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
24985         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
24986         (ira_create_allocno): Remove initialization of
24987         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
24988         ALLOCNO_COLORABLE_P.
24989         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
24990         Update conflict regs for the objects.
24991         (create_cap_allocno): Remove assert.  Don't propagate
24992         ALLOCNO_AVAILABLE_REGS_NUM.
24993         (ira_free_allocno_costs): New function.
24994         (finish_allocno): Change a part of code into call of
24995         ira_free_allocno_costs.
24996         (low_pressure_loop_node_p): Use pressure classes.
24997         (object_range_compare_func): Don't compare classes.
24998         (setup_min_max_conflict_allocno_ids): Ditto.
24999
25000         * loop-invariant.c: Remove mentioning cover classes from the file.
25001         Use ira_pressure_classes and ira_pressure_classes_num instead of
25002         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
25003         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
25004         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
25005         Use reg_allocno_class instead of reg_cover_class.
25006         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
25007         STACK_REG_COVER_CLASS.
25008         (get_regno_cover_class): Rename to get_regno_pressure_class.
25009         (move_loop_invariants): Initialize and finalize regstat.
25010
25011         * ira.c: Remove mentioning cover classes from the file.  Add
25012         comments about coloring without cover classes.  Use ALLOCNO_CLASS
25013         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
25014         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
25015         setup_class_subset_and_memory_move_costs.
25016         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
25017         (setup_cover_and_important_classes): Rename to
25018         setup_allocno_and_important_classes.
25019         (setup_class_translate_array): New.
25020         (setup_class_translate): Call it for allocno and pressure classes.
25021         (cover_class_order): Rename to allocno_class_order.
25022         (comp_reg_classes_func): Use ira_allocno_class_translate instead
25023         of ira_class_translate.
25024         (reorder_important_classes): Set up ira_important_class_nums.
25025         (setup_reg_class_relations): Set up ira_reg_class_superunion.
25026         (print_class_cover): Rename to print_classes.  Add parameter.
25027         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
25028         Print pressure classes too.
25029         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
25030         setup_reg_subclasses.
25031         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
25032         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
25033         (setup_prohibited_class_mode_regs): Use
25034         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
25035         (clarify_prohibited_class_mode_regs): New function.
25036         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
25037         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
25038         (ira_init_once): Initialize them.
25039         (free_register_move_costs): Process them.
25040         (ira_init): Move calls of find_reg_classes and
25041         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
25042         Call clarify_prohibited_class_mode_regs.
25043         (ira_no_alloc_reg): Remove.
25044         (too_high_register_pressure_p): Use pressure classes.
25045
25046         * sched-deps.c: Remove mentioning cover classes from the file.
25047         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
25048         ira_pressure_classes and ira_pressure_classes_num instead of
25049         ira_reg_class_cover_size and ira_reg_class_cover.
25050         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
25051         sched_regno_pressure_class instead of sched_regno_cover_class.
25052         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
25053         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
25054
25055         * ira.h: Add 2010 to Copyright.
25056         (ira_no_alloc_reg): Remove external.
25057         (struct target_ira): Rename x_ira_hard_regno_cover_class,
25058         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
25059         x_ira_class_translate to x_ira_hard_regno_allocno_class,
25060         x_ira_allocno_classes_num, x_ira_allocno_classes, and
25061         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
25062         x_ira_pressure_classes, x_ira_pressure_class_translate, and
25063         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
25064         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
25065         x_ira_no_alloc_regs.
25066         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
25067         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
25068         ira_allocno_classes_num and ira_allocno_classes.
25069         (ira_class_translate): Rename to ira_allocno_class_translate.
25070         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
25071         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
25072         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
25073         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
25074         (ira_no_alloc_regs): New.
25075
25076         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
25077         classes from the file.  Use ALLOCNO_CLASS instead of
25078         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
25079         ALLOCNO_COVER_CLASS_COST.
25080         (regno_cover_class): Rename to regno_aclass.
25081         (record_reg_classes): Use ira_reg_class_subunion instead of
25082         ira_reg_class_union.
25083         (record_address_regs): Check overflow.
25084         (scan_one_insn): Ditto.
25085         (print_allocno_costs): Print total mem cost fore regional allocation.
25086         (print_pseudo_costs): Use REG_N_REFS.
25087         (find_costs_and_classes): Use classes intersected with them on the
25088         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
25089         ira_reg_class_union.  Use ira_allocno_class_translate and
25090         regno_aclass instead of ira_class_translate and regno_cover_class.
25091         Modify code for finding regno_aclass.  Setup preferred classes for
25092         the next pass.
25093         (setup_allocno_cover_class_and_costs): Rename to
25094         setup_allocno_class_and_costs.  Use regno_aclass instead of
25095         regno_cover_class.  Use ira_set_allocno_class instead of
25096         ira_set_allocno_cover_class.
25097         (init_costs, finish_costs): Use regno_aclass instead of
25098         regno_cover_class.
25099         (ira_costs): Use setup_allocno_class_and_costs instead of
25100         setup_allocno_cover_class_and_costs.
25101         (ira_tune_allocno_costs_and_cover_classes): Rename to
25102         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
25103         by processing objects.  Use ira_reg_class_max_nregs instead of
25104         ira_reg_class_nregs.
25105
25106         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
25107
25108         * sched-int.h: Remove mentioning cover classes from the file.
25109         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
25110
25111         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
25112         classes from the file.
25113         (struct reg_pref): Rename coverclass into allocnoclass.
25114         (reg_cover_class): Rename to reg_allocno_class.
25115
25116         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
25117
25118         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
25119
25120         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
25121
25122         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
25123
25124         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
25125
25126         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
25127
25128         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
25129
25130         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
25131
25132         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
25133
25134         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
25135
25136         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
25137         (i386_ira_cover_classes): Ditto.
25138
25139         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
25140
25141         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
25142
25143         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
25144
25145         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
25146
25147         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
25148
25149         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
25150
25151         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
25152         (mips_ira_cover_classes): Ditto.
25153
25154         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
25155
25156         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
25157
25158         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
25159
25160         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
25161
25162         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
25163
25164         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
25165         (IRA_COVER_CLASSES_VSX): Ditto.
25166
25167         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
25168         (rs6000_ira_cover_classes): Ditto.
25169
25170         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
25171
25172         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
25173
25174         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
25175
25176         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
25177
25178         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
25179
25180         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
25181
25182         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
25183
25184         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
25185
25186         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
25187
25188         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
25189
25190 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
25191
25192         PR debug/48253
25193         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
25194         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
25195         dw_fde_unlikely_section_end_label, cold_in_std_section,
25196         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
25197         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
25198         fields.
25199         (output_fde): Use dw_fde_second_{begin,end} if second is
25200         true, otherwise dw_fde_{begin,end}.
25201         (output_call_frame_info): Test dw_fde_second_begin != NULL
25202         instead of dw_fde_switched_sections.
25203         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
25204         fields, initialize new fields.  Initialize in_std_section
25205         unconditionally from the first partition.
25206         (dwarf2out_end_epilogue): Don't override dw_fde_end when
25207         dw_fde_second_begin is non-NULL.
25208         (dwarf2out_switch_text_section): Stop initializing removed
25209         dw_fde_struct fields, initialize new fields, initialize
25210         also dw_fde_end here.  Set dw_fde_switch_cfi even when
25211         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
25212         (struct var_loc_list_def): Add last_before_switch field.
25213         (arange_table, arange_table_allocated, arange_table_in_use,
25214         ARANGE_TABLE_INCREMENT, add_arange): Removed.
25215         (size_of_aranges): Count !in_std_section and !second_in_std_section
25216         hunks in fdes, instead of looking at arange_table_in_use.
25217         (output_aranges): Add aranges_length argument, don't call
25218         size_of_aranges here.  Instead of using aranges_table*
25219         emit ranges for fdes when !in_std_section resp.
25220         !second_in_std_section.
25221         (dw_loc_list): Break ranges crossing section switch.
25222         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
25223         use dw_fde_second_end instead of dw_fde_end as end of last range.
25224         (gen_subprogram_die): Don't call add_arange.  Use
25225         dw_fde_{begin,end} for first partition and if switched
25226         section dw_fde_second_{begin,end} for the second.
25227         (var_location_switch_text_section_1,
25228         var_location_switch_text_section): New functions.
25229         (dwarf2out_begin_function): Initialize cold_text_section even
25230         when function_section () isn't text_section.
25231         (prune_unused_types): Don't walk arange_table.
25232         (dwarf2out_finish): Don't needlessly test
25233         flag_reorder_blocks_and_partition when testing cold_text_section_used.
25234         If info_section_emitted, call size_of_aranges and if it indicates
25235         non-empty .debug_aranges, call output_aranges with the computed
25236         size.  Stop using removed dw_fde_struct fields, use
25237         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
25238         for second.
25239
25240         PR debug/48203
25241         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
25242         create ENTRY_VALUE if incoming or address of incoming's MEM
25243         is a hard REG.
25244         * dwarf2out.c (mem_loc_descriptor): Don't emit
25245         DW_OP_GNU_entry_value of DW_OP_fbreg.
25246         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
25247         on ENTRY_VALUE is able to find the canonical parameter VALUE.
25248         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
25249         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
25250         ENTRY_VALUE_EXPs.
25251         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
25252         is a REG_P or MEM_P with REG_P address, compute hash directly
25253         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
25254         (preserve_only_constants): Don't clear VALUES forwaring
25255         ENTRY_VALUE to some other VALUE.
25256
25257 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
25258
25259         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
25260         instead of GEN_INT.
25261
25262 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
25263
25264         * cfgexpand.c (expand_gimple_cond): Always set the source location and
25265         block before expanding the statement.
25266         (expand_gimple_stmt_1): Likewise.  Set them here...
25267         (expand_gimple_stmt): ...and not here.  Tidy.
25268         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
25269         unknown.
25270
25271 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
25272
25273         * Makefile.in: New rule for cprop.o.
25274         * gcse.c: Move constant/copy propagation to cprop.c.
25275         (compute_local_properties): Only handle expression tables.
25276         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
25277         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
25278         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
25279         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
25280         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
25281         compute_cprop_data, find_used_regs, try_replace_reg,
25282         find_avail_set, cprop_jump, constprop_register, cprop_insn,
25283         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
25284         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
25285         find_bypass_set, reg_killed_on_edge, bypass_block,
25286         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
25287         execute_rtl_cprop, pass_rtl_cprop): Move to...
25288         * cprop.c: ...here.  New file, constant/copy propagation for RTL
25289         moved from gcse.c to here with minor cleanups in duplicated code.
25290
25291 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
25292
25293         * config/i386/i386.c (flag_opts): Fix a typo in
25294         -mavx256-split-unaligned-store.
25295
25296 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
25297
25298         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
25299         LIBCALL_VALUE): Remove macros.
25300         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25301         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25302         (h8300_function_value, h8300_libcall_value,
25303         h8300_function_value_regno_p): New functions.
25304
25305 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
25306
25307         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
25308
25309 2011-03-28  Jeff Law  <law@redhat.com>
25310
25311         * tree-ssa-threadupdate.c (redirect_edges): Call
25312         create_edge_and_update_destination_phis as needed.
25313         (create_edge_and_update_destination_phis): Accept new BB argument.
25314         All callers updated.
25315         (thread_block): Do not update the profile when threading around
25316         intermediate blocks.
25317         (thread_single_edge): Likewise.
25318         (determine_bb_domination_status): If BB is not a successor of the
25319         loop header, return NONDOMINATING.
25320         (register_jump_thread): Note when we register a jump thread around
25321         an intermediate block.
25322         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
25323         (thread_across_edge): Use it.
25324
25325 2011-03-28  Tristan Gingold  <gingold@adacore.com>
25326
25327         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
25328         when for_return is 2.
25329
25330 2011-03-28  Jeff Law  <law@redhat.com>
25331
25332         * var-tracking.c (canonicalize_values_mark): Delete unused
25333         lhs assignment.
25334         (canonicalize_values_star, set_variable_part): Likewise.
25335         (clobber_variable_part, delete_variable_part): Likewise.
25336
25337 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
25338
25339         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
25340
25341 2011-03-28  Martin Jambor  <mjambor@suse.cz>
25342
25343         * tree-inline.c (expand_call_inline): Do not check that destination
25344         node is analyzed.
25345         (optimize_inline_calls): Assert that destination node is analyzed.
25346         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
25347         not call tree_lowering_passes.
25348         * cgraph.h (cgraph_analyze_function): Declare.
25349         * cgraphunit.c (cgraph_analyze_function): Make public.
25350
25351 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
25352
25353         * config/sparc/sparc-opts.h: New.
25354         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
25355         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
25356         (sparc_option_override): Store processor_type enumeration rather
25357         than string in cpu_default.  Remove name and enumeration from
25358         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
25359         without using sparc_select.  Use target_flags_explicit instead of
25360         fpu_option_set.
25361         * config/sparc/sparc.h (enum processor_type): Move to
25362         sparc-opts.h.
25363         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
25364         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
25365         HeaderInclude entry.
25366         (mcpu=, mtune=): Use Var and Enum.
25367         (sparc_processor_type): New Enum and EnumValue entries.
25368
25369 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25370             Iain Sandoe  <iains@gcc.gnu.org>
25371
25372         PR target/48245
25373         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
25374
25375 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
25376
25377         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
25378         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
25379         Insert new statements at it in lieu of STMT.
25380         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
25381         * tree-vect-stmts.c (vectorizable_store): Likewise.
25382         (vectorizable_load): Likewise.
25383
25384 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
25385
25386         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
25387         (divtf3): Ditto.
25388         (multf3): Ditto.
25389         (subtf3): Ditto.
25390
25391 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25392
25393         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
25394         unaligned 256bit load/store.
25395         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
25396         (*avx_movdqu<avxmodesuffix>): Likewise.
25397
25398 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25399
25400         PR target/48288
25401         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
25402         * config/pa/pa.md (iordi3): Use new predicate in expander.
25403         (iorsi3): Likewise.
25404
25405 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
25406
25407         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
25408         FUNCTION_VALUE_REGNO_P): Remove macros.
25409         * config/mips/mips-protos.h (mips_function_value): Remove.
25410         * config/mips/mips.c (mips_function_value): Rename to...
25411         (mips_function_value_1): ... this. Make static.  Handle receiving
25412         the function type in 'fn_decl_or_type' argument.
25413         (mips_function_value, mips_libcall_value,
25414         mips_function_value_regno_p): New function.
25415         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25416         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25417
25418 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25419
25420         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
25421         and -mavx256-split-unaligned-store.
25422         (ix86_option_override_internal): Split 32-byte AVX unaligned
25423         load/store by default.
25424         (ix86_avx256_split_vector_move_misalign): New.
25425         (ix86_expand_vector_move_misalign): Use it.
25426
25427         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
25428         -mavx256-split-unaligned-store.
25429
25430         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
25431         256bit load/store.  Generate unaligned store on misaligned memory
25432         operand.
25433         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
25434         256bit load/store.
25435         (*avx_movdqu<avxmodesuffix>): Likewise.
25436
25437         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
25438         -mavx256-split-unaligned-store.
25439
25440 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
25441
25442         PR target/38598
25443         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
25444         Update commentary.
25445
25446 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
25447
25448         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
25449         opno arguments with an expand_operand.  Use create_input_operand.
25450         (mips_prepare_builtin_target): Delete.
25451         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
25452         functions.
25453         (mips_expand_builtin_direct): Use create_output_operand and
25454         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
25455         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
25456         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
25457
25458 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
25459
25460         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
25461         function.
25462         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
25463
25464 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
25465
25466         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
25467         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
25468         basic blocks and call commit_edge_insertions directly.
25469         (fixup_abnormal_edges): Move from here to...
25470         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
25471         on the edges and return whether some have actually been inserted.
25472         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
25473         compensation code.
25474
25475 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
25476
25477         PR rtl-optimization/48144
25478         * sel-sched-ir.c (merge_history_vect): Factor out from ...
25479         (merge_expr_data): ... here.
25480         (av_set_intersect): Rename to av_set_code_motion_filter.
25481         Update all callers.  Call merge_history_vect when an expression
25482         is found in both sets.
25483         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
25484
25485 2011-03-26  Alan Modra  <amodra@gmail.com>
25486
25487         * config/rs6000/predicates.md (word_offset_memref_op): Handle
25488         cmodel medium addresses.
25489         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
25490         64-bit gpr loads and stores.
25491         (rs6000_secondary_reload_ppc64): New function.
25492         * config/rs6000/rs6000-protos.h: Declare it.
25493         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
25494
25495 2011-03-26  Alan Modra  <amodra@gmail.com>
25496
25497         PR target/47487
25498         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
25499         GNU Go in traceback table.
25500
25501 2011-03-25  Richard Henderson  <rth@redhat.com>
25502
25503         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
25504         if there are exactly 6 operands.
25505         (set_storage_via_setmem): Similarly.
25506
25507 2011-03-25  Kai Tietz  <ktietz@redhat.com>
25508
25509         * collect2.c (write_c_file_stat): Handle backslash
25510         as right-hand directory separator.
25511         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
25512         checking just for slash.
25513         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
25514         instead of checking for trailing slash.
25515         * gcc.c (record_temp_file): Use filename_cmp instead
25516         of strcmp.
25517         (do_spec_1): Likewise.
25518         (replace_outfile_spec_function): Likewise.
25519         (is_directory): Use filename_ncmp instead of strncmp.
25520         (print_multilib_info): Likewise.
25521         * gcov.c (find_source): Use filename_cmp instead
25522         instead of strcmp.
25523         (make_gcov_file_name): Fix order of slash/backslash
25524         checks.
25525         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
25526         (add_standard_paths): Likewise.
25527         * mips-tfile.c (saber_stop): Handle backslash.
25528         * prefix.c (update_path): Use filename_ncmp instead of
25529         strncmp.
25530         * profile.c (output_location): Use filename_cmp instead
25531         of strcmp.
25532         * read-md.c (handle_toplevel_file): Handle backslash.
25533         * tlink.c (frob_extension):  Likewise.
25534         * tree-cfg.c (same_line_p): Use filename_cmp instead of
25535         strcmp.
25536         * tree-dump.c (dequeue_and_dump): Handle backslash.
25537         * tree.c (get_file_function_name): Likewise.
25538         * gengtype.c (read_input_list): Likewise.
25539         (get_file_realbasename): Likewise.
25540         (get_output_file_with_visibility): Use filename_cmp
25541         instead of strcmp.
25542
25543 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
25544
25545         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
25546         case to VFPv1.
25547
25548 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
25549
25550         * fold-const.c (expr_location_or): New function.
25551         (fold_truth_not_expr): Call it.
25552
25553 2011-03-25  Jeff Law  <law@redhat.com>
25554
25555         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
25556         va_end.
25557         * c-family/c-common.c (def_fn_type): Likewise.
25558         * emit-rtl.c (gen_rtvec): Likewise.
25559         * lto/lto-lang.c (def_fn_type): Likewise.
25560
25561 2011-03-25  Richard Guenther  <rguenther@suse.de>
25562
25563         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
25564         also generate copies.
25565         (fini_copy_prop): Handle constant values properly.
25566
25567 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
25568
25569         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
25570         mode size instead of bitsize with DWARF2_ADDR_SIZE.
25571         (hash_loc_operands, compare_loc_operands): Handle
25572         DW_OP_GNU_entry_value.
25573
25574 2011-03-25  Kai Tietz  <ktietz@redhat.com>
25575
25576         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
25577         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
25578         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
25579         comment and use macro TARGET_64BIT_MS_ABI instead.
25580         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
25581         and change default behavior for 32-bit MS_ABI.
25582         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
25583         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
25584         32-bit, too.
25585         (ix86_cfun_abi): Likewise.
25586         (ix86_maybe_switch_abi): Adjust comment.
25587         (init_cumulative_args): Check for bit-ness in MS_ABI case.
25588         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
25589         instead of checking for SYSV_ABI.
25590         (ix86_nsaved_sseregs): Likewise.
25591         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
25592         to 16 bytes.
25593         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
25594         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
25595         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
25596         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
25597         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
25598
25599 2011-03-25  Richard Guenther  <rguenther@suse.de>
25600
25601         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
25602         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25603         (verify_gimple): Remove.
25604         * tree-cfg.c (verify_gimple_call): Merge verification
25605         from verify_stmts.
25606         (verify_gimple_phi): Merge verification from verify_stmts.
25607         (verify_gimple_label): New function.
25608         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
25609         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
25610         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
25611         (verify_stmts): Rename to verify_gimple_in_cfg.
25612         (verify_gimple_in_cfg): New function.
25613         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
25614         * tree-ssa.c (verify_ssa): Likewise.
25615         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
25616
25617 2011-03-25  Richard Guenther  <rguenther@suse.de>
25618
25619         * passes.c (init_optimization_passes): Add FRE pass after
25620         early SRA.
25621
25622 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
25623             Andrew Stubbs  <ams@codesourcery.com>
25624
25625         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
25626         for Cortex-A8.
25627         (arm_movdi_vfp_cortexa8): New pattern.
25628         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
25629         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
25630         instructions when tuning for Cortex-A8.  Set attribute "arch".
25631         * config/arm/arm.md: Move include arm-tune.md up a bit.
25632         (define_attr "arch"): Add "onlya8" and "nota8" values.
25633         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
25634
25635 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
25636
25637         PR bootstrap/48282
25638         Revert:
25639         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25640
25641         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25642         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
25643         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25644         * passes.c (init_optimization_passes): Move
25645         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25646
25647 2011-03-25  Kai Tietz  <ktietz@redhat.com>
25648
25649         * c-typeck.c (comptypes_internal): Replace target
25650         hook call of comp_type_attributes by version in tree.c file.
25651         * gimple.c (gimple_types_compatible_p_1): Likewise.
25652         * tree-ssa.c (useless_type_conversion_p): Likewise.
25653         * tree.c (build_type_attribute_qual_variant): Likewise.
25654         (attribute_value_equal): New static helper function.
25655         (comp_type_attributes): New function.
25656         (merge_attributes): Use attribute_value_equal for comparison.
25657         (attribute_list_contained): Likewise.
25658         * tree.h (comp_type_attributes): New prototype.
25659
25660 2011-03-25  Richard Guenther  <rguenther@suse.de>
25661
25662         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
25663         of complex types at -O0.
25664         (verify_gimple_assign_binary): Likewise.
25665         (verify_gimple_assign_ternary): Likewise.
25666
25667 2011-03-24  Mark Wielaard  <mjw@redhat.com>
25668
25669         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
25670         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
25671
25672 2011-03-24  Mark Wielaard  <mjw@redhat.com>
25673
25674         PR debug/48041
25675         * dwarf2out.c (output_abbrev_section): Only write table when
25676         abbrev_die_table_in_use > 1.
25677
25678 2011-02-24  Richard Henderson  <rth@redhat.com>
25679
25680         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
25681         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
25682         (alpha_expand_unaligned_load_words): Use extql.
25683         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
25684         (emit_insxl): Handle all modes for consistency.
25685
25686 2011-02-24  Richard Henderson  <rth@redhat.com>
25687
25688         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
25689         (alpha_expand_unaligned_load): Likewise.
25690         (alpha_expand_unaligned_store): Likewise.
25691         (alpha_expand_unaligned_load_words): Likewise.
25692         (alpha_expand_unaligned_store_words): Likewise.
25693         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
25694         (alpha_split_lock_test_and_set_12): Likewise.
25695         (print_operand, alpha_fold_builtin_extxx): Likewise.
25696         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
25697         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
25698         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
25699         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
25700         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
25701         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
25702         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
25703         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
25704         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
25705         (extwl, extll, extql): Similarly.
25706         (inswh, inslh, insqh): Similarly.
25707         (mskbl, mskwl, mskll, mskql): Similarly.
25708         (mskwh, msklh, mskqh): Similarly.
25709
25710 2011-02-24  Richard Henderson  <rth@redhat.com>
25711
25712         * config/alpha/alpha.md (attribute isa): Add er, ner.
25713         (attribute enabled): Handle them.
25714         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
25715
25716 2011-02-24  Richard Henderson  <rth@redhat.com>
25717
25718         * config/alpha/alpha.md (attribute isa): Add vms.
25719         (attribute enabled): Handle it.
25720         (*movsf): Merge *movsf_{nofix,fix,nofp}.
25721         (*movdf): Merge *movdf_{nofix,fix,nofp}.
25722         (*movtf): Rename from *movtf_internal for consistency.
25723         (*movsi): Merge with *movsi_nt_vms.
25724         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
25725         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
25726         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
25727         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
25728
25729 2011-02-24  Richard Henderson  <rth@redhat.com>
25730
25731         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
25732         (extendqisi2, extendhisi2): Likewise.
25733         (extendqidi2): Simplify BWX/non-BWX expansions.
25734         (extendhidi2): Similarly.
25735
25736 2011-02-24  Richard Henderson  <rth@redhat.com>
25737
25738         * config/alpha/alpha.md (attribute isa): New.
25739         (attribute enabled): New.
25740         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
25741         (zero_extendqisi2, zero_extendqidi2): Similarly.
25742         (zero_extendhisi2, zero_extendhidi2): Similarly.
25743         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
25744
25745 2011-02-24  Richard Henderson  <rth@redhat.com>
25746
25747         * config/alpha/predicates.md (input_operand): Revert last change;
25748         update comment to mention 32-bit VMS rather than Windows.
25749
25750 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25751
25752         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
25753         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
25754         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
25755         * passes.c (init_optimization_passes): Move
25756         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
25757
25758 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
25759
25760         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
25761
25762 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
25763
25764         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
25765         correctly.
25766
25767 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
25768
25769         PR debug/48204
25770         * simplify-rtx.c (simplify_const_unary_operation): Call
25771         real_convert when changing mode class with FLOAT_EXTEND.
25772
25773 2011-03-24  Nick Clifton  <nickc@redhat.com>
25774
25775         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
25776         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
25777         * config/rx/rx.c (rx_option_override): Set align_jumps,
25778         align_loops and align_labels if not set by the user.
25779         (rx_align_for_label): New function.
25780         (rx_max_skip_for_label): New function.
25781         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
25782         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
25783         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
25784         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
25785         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
25786
25787 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25788
25789         PR rtl-optimization/48263
25790         * optabs.c (expand_binop_directly): Reinstate convert_modes code
25791         and original commutative_p handling.  Use maybe_gen_insn.
25792
25793 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25794
25795         * reload.c (find_reloads_subreg_address): Add address_reloaded
25796         parameter and return true there if the full address has been
25797         reloaded.
25798         (find_reloads_toplev): Pass address_reloaded flag.
25799         (find_reloads_address_1): Don't use address_reloaded parameter.
25800
25801 2011-03-24  Jeff Law  <law@redhat.com>
25802
25803         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
25804         unused variable "ann".
25805         (remove_unused_locals): Likewise.
25806
25807         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
25808         statement.
25809
25810         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
25811         after it is freed.
25812
25813 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25814
25815         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
25816         for invalid symbolic addresses.
25817         (s390_secondary_reload): Don't use s390_check_symref_alignment for
25818         larl operands.
25819
25820 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
25821
25822         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
25823         the argument in calls to fold_truth_not_expr.
25824
25825 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25826
25827         * tree.c (record_node_allocation_statistics): New function.
25828         (make_node_stat, copy_node_stat, build_string): Call it.
25829         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
25830         (build1_stat, build_omp_clause): Likewise.
25831
25832 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25833
25834         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
25835         last commit.
25836
25837 2011-03-24  Richard Guenther  <rguenther@suse.de>
25838
25839         PR tree-optimization/48271
25840         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
25841         blocks that still exist.
25842
25843 2011-03-24  Richard Guenther  <rguenther@suse.de>
25844
25845         PR tree-optimization/48270
25846         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
25847         not free datarefs before ddrs.
25848
25849 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
25850
25851         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
25852         from the address built for a reference with variable offset.
25853
25854 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
25855
25856         PR target/48237
25857         * config/i386/i386.md (*movdf_internal_rex64): Do not split
25858         alternatives that can be handled with movq or movabsq insn.
25859         (*movdf_internal): Disable for !TARGET_64BIT.
25860         (*movdf_internal_nointeger): Ditto.
25861         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
25862
25863 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
25864
25865         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
25866         (FUNCTION_ARG_ADVANCE): Likewise.
25867         * tm.texi.in: Change references to them to hook references.
25868         * tm.texi: Regenerate.
25869         * targhooks.c (default_function_arg): Eliminate check for target macro.
25870         (default_function_incoming_arg): Likewise.
25871         (default_function_arg_advance): Likewise.
25872         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
25873         (function_arg_advance): Likewise.
25874         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
25875
25876 2011-03-24  Richard Guenther  <rguenther@suse.de>
25877
25878         PR middle-end/48269
25879         * tree-object-size.c (addr_object_size): Do not double-account
25880         for MEM_REF offsets.
25881
25882 2011-03-24  Diego Novillo  <dnovillo@google.com>
25883
25884         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
25885         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
25886         (lto_input_data_block): Move from lto-opts.c.  Make extern.
25887         Update all users.
25888         (lto_input_string): Rename from input_string.  Make extern.
25889         Update all users.
25890         * lto-streamer-out.c (lto_output_string_with_length): Rename from
25891         output_string_with_length.
25892         Output 0 to indicate a non-NULL string.  Update all callers to
25893         not emit 0.
25894         (lto_output_string): Rename from output_string.  Make extern.
25895         Update all users.
25896         (lto_output_decl_state_streams): Make extern.
25897         (lto_output_decl_state_refs): Make extern.
25898         * lto-streamer.h (lto_input_string): Declare.
25899         (lto_input_data_block): Declare.
25900         (lto_output_string): Declare.
25901         (lto_output_string_with_length): Declare.
25902         (lto_output_decl_state_streams): Declare.
25903         (lto_output_decl_state_refs): Declare.
25904
25905 2011-03-24  Richard Guenther  <rguenther@suse.de>
25906
25907         PR tree-optimization/46562
25908         * tree.c (build_invariant_address): New function.
25909         * tree.h (build_invariant_address): Declare.
25910         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
25911         a renamed function moved ...
25912         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
25913         Take valueization callback parameter.
25914         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
25915         * gimple-fold.h: New file.
25916         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
25917         (ccp_fold, fold_const_aggregate_ref,
25918         fold_ctor_reference, fold_nonarray_ctor_reference,
25919         fold_array_ctor_reference, fold_string_cst_ctor_reference,
25920         get_base_constructor): Move ...
25921         * gimple-fold.c: ... here.
25922         (gimple_fold_stmt_to_constant_1): New function
25923         split out from ccp_fold.  Take a valueization callback parameter.
25924         Valueize all operands.
25925         (gimple_fold_stmt_to_constant): New wrapper function.
25926         (fold_const_aggregate_ref_1): New function split out from
25927         fold_const_aggregate_ref.  Take a valueization callback parameter.
25928         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
25929         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
25930         invariant POINTER_PLUS_EXPRs to invariant form.
25931         (vn_valueize): New function.
25932         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
25933         * tree-vrp.c (vrp_valueize): New function.
25934         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
25935         to fold statements to constants.
25936         * tree-ssa-pre.c (eliminate): Properly guard propagation of
25937         function declarations.
25938         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
25939         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
25940
25941 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
25942
25943         * config/h8300/predicates.md (jump_address_operand): Fix register
25944         mode check.
25945
25946 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
25947
25948         * doc/invoke.texi (max-stores-to-sink): Document.
25949         * params.h (MAX_STORES_TO_SINK): Define.
25950         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
25951         if either vectorization or if-conversion is disabled.
25952         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
25953         tree-vect-data-refs.c vect_equal_offsets.
25954         (dr_equal_offsets_p): New function.
25955         (find_data_references_in_bb): Remove static.
25956         * tree-data-ref.h (find_data_references_in_bb): Declare.
25957         (dr_equal_offsets_p): Likewise.
25958         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
25959         (vect_drs_dependent_in_basic_block): Update calls to
25960         vect_equal_offsets.
25961         (vect_check_interleaving): Likewise.
25962         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
25963         (cond_if_else_store_replacement): Rename to...
25964         (cond_if_else_store_replacement_1): ... this.  Change arguments and
25965         documentation.
25966         (cond_if_else_store_replacement): New function.
25967         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
25968         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
25969
25970 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
25971
25972         PR target/46934
25973         * config/arm/arm.md (casesi): Use the gen_int_mode() function
25974         to subtract lower bound instead of GEN_INT().
25975
25976 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
25977
25978         PR other/48179
25979         PR other/48221
25980         PR other/48234
25981         * doc/extend.texi (Alignment): Move section to match order in TOC.
25982         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
25983         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
25984
25985 2011-03-23  Jeff Law  <law@redhat.com>
25986
25987         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
25988         before removing the edge.
25989
25990         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
25991         it may have been freed by redirect_branch_edge or
25992         redirect_edge_succ_nodup.
25993
25994 2011-03-23  Richard Guenther  <rguenther@suse.de>
25995
25996         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
25997         (check_va_list_escapes): Likewise.
25998         (check_all_va_list_escapes): Likewise.
25999
26000 2011-03-23  Richard Guenther  <rguenther@suse.de>
26001
26002         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
26003         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
26004         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
26005         (alias.o): Likewise.
26006         (ipa-type-escape.o): Remove.
26007         (ipa-struct-reorg.o): Likewise.
26008         (GTFILES): Remove ipa-struct-reorg.c.
26009         * alias.c: Do not include ipa-type-escape.h.
26010         * tree-ssa-alias.c: Likewise.
26011         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
26012         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
26013         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
26014         and ipa-type-escape passes.
26015         * tree-pass.h (pass_ipa_type_escape): Remove.
26016         (pass_ipa_struct_reorg): Likewise.
26017         * ipa-struct-reorg.h: Remove.
26018         * ipa-struct-reorg.c: Likewise.
26019         * ipa-type-escape.h: Likewise.
26020         * ipa-type-escape.c: Likewise.
26021         * doc/invoke.texi (-fipa-struct-reorg): Remove.
26022         (--param struct-reorg-cold-struct-ratio): Likewise.
26023         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
26024         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
26025         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
26026
26027 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26028
26029         * config/s390/2084.md: Enable all insn reservations also for z9_ec
26030         cpu attribute value.
26031         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
26032         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
26033         * config/s390/s390.c (processor_flags_table): New constant array.
26034         (s390_handle_arch_option): Remove.
26035         (s390_handle_option): Remove s390_handle_arch_option invocations
26036         and OPT_mwarn_framesize_ handling.
26037         (s390_option_override): Remove s390_handle_arch_option invocation.
26038         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
26039         warnings.
26040         * config/s390/s390.md (cpu attribute): Add z9_ec value.
26041         * config/s390/s390.opt (s390_tune, s390_arch)
26042         (march=): Replace s390_arch_option enum and values with
26043         processor_type.  Set variable name to s390_arch.  Set
26044         initialization value.
26045         (mtune=): Replace s390_arch_option with processor_type.  Set
26046         variable name to s390_tune.  Set initialization value.
26047
26048 2011-03-23  Julian Brown  <julian@codesourcery.com>
26049
26050         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
26051         accesses which are not naturally aligned.
26052
26053 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
26054
26055         PR target/47553
26056         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
26057
26058 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
26059
26060         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
26061         parameter from "int" to "enum insn_code".
26062         (expand_operand_type): New enum.
26063         (expand_operand): New structure.
26064         (create_expand_operand): New function.
26065         (create_fixed_operand, create_output_operand): Likewise
26066         (create_input_operand, create_convert_operand_to): Likewise.
26067         (create_convert_operand_from, create_address_operand): Likewise.
26068         (create_integer_operand): Likewise.
26069         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
26070         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
26071         (expand_insn, expand_jump_insn): Likewise.
26072         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
26073         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
26074         (expand_movstr, expand_builtin___clear_cache): Likewise.
26075         (expand_builtin_lock_release): Likewise.
26076         * explow.c (allocate_dynamic_stack_space): Likewise.
26077         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
26078         and use the default handling in that case.
26079         * expmed.c (check_predicate_volatile_ok): Delete.
26080         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
26081         (emit_cstore): Likewise.
26082         * expr.c (emit_block_move_via_movmem): Likewise.
26083         (set_storage_via_setmem, expand_assignment): Likewise.
26084         (emit_storent_insn, try_casesi): Likewise.
26085         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
26086         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
26087         (expand_vec_shift_expr, expand_binop_directly): Likewise.
26088         (expand_twoval_unop, expand_twoval_binop): Likewise.
26089         (expand_unop_direct, emit_indirect_jump): Likewise.
26090         (emit_conditional_move, vector_compare_rtx): Likewise.
26091         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
26092         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
26093         (expand_sync_lock_test_and_set): Likewise.
26094         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
26095         (emit_unop_insn): Likewise.
26096         (expand_copysign_absneg): Change icode to an insn_code.
26097         (create_convert_operand_from_type): New function.
26098         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
26099         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
26100         (expand_insn, expand_jump_insn): Likewise.
26101         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
26102         than const_int_operand for operand 2.
26103
26104 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26105
26106         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
26107         if possible.
26108
26109 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26110
26111         * emit-rtl.c (emit_pattern_before_noloc): New function.
26112         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
26113         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
26114         (emit_pattern_after_noloc): New function.
26115         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
26116         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
26117
26118 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26119
26120         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
26121         (__ffsDI2): Likewise.
26122
26123 2011-03-22  Richard Henderson  <rth@redhat.com>
26124
26125         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
26126         of !TARGET_ABI_OPEN_VMS.
26127         (alpha_trampoline_init, alpha_start_function): Likewise.
26128         (alpha_expand_epilogue, alpha_file_start): Likewise.
26129         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
26130         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
26131         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
26132         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
26133         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
26134
26135 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26136
26137         * config/s390/s390-opts.h: New.
26138         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
26139         s390_arch_flags, s390_warn_framesize, s390_stack_size,
26140         s390_stack_guard): Remove.
26141         (s390_handle_arch_option): Return void.  Take enum
26142         s390_arch_option value instead of string and searching array.
26143         (s390_handle_option): Don't assert that global structures are in
26144         use.  Access variables via opts pointer.  Use error_at.  Don't use
26145         sscanf for -mstack-guard= or -mstack-size=.  Update call to
26146         s390_handle_arch_option.
26147         (s390_option_override): Update call to s390_handle_arch_option.
26148         (s390_emit_prologue): Use %d format for s390_stack_size in
26149         diagnostic.  Use %wd for HOST_WIDE_INT.
26150         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
26151         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
26152         * config/s390/s390.opt (config/s390/s390-opts.h): New
26153         HeaderInclude entry.
26154         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
26155         s390_arch_flags, s390_warn_framesize): New Variable entries.
26156         (s390_arch_option): New Enum and EnumValue entries.
26157         (march=): Use Enum instead of Var.
26158         (mstack-guard=, mstack-size=): Use UInteger and Var.
26159         (mtune=): Use Enum.
26160
26161 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26162
26163         * config/score/score.c (score_handle_option): Don't assert that
26164         global structures are in use.  Access target_flags via opts
26165         pointer.  Use value of -march= option to determine target_flags
26166         settings.
26167         * config/score/score.opt (march=): Use Enum.
26168         (score_arch): New Enum and EnumValue entries.
26169
26170 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26171
26172         * config/mep/mep.c (option_mtiny_specified): Remove.
26173         (mep_option_override): Move register handling for -mivc2 from
26174         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
26175         instead of option_mtiny_specified.
26176         (mep_handle_option): Access target_flags via opts pointer.  Don't
26177         assert that global structures are in use.  Defer part of -mivc2
26178         handling and move it to mep_option_override.
26179         * config/mep/mep.opt (IVC2): New Mask entry.
26180         (mivc2): Use Var and Defer instead of Mask.
26181
26182 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26183
26184         * config/v850/v850-opts.h: New.
26185         * config/v850/v850.c (small_memory): Replace with
26186         small_memory_physical_max array.  Make that array static const.
26187         (v850_handle_memory_option): Take integer value of argument.  Take
26188         gcc_options pointer, option text and location.  Return void.
26189         Update for changes to small memory structures.
26190         (v850_handle_option): Access target_flags via opts pointer.  Don't
26191         assert that global structures are in use.  Update calls to
26192         v850_handle_memory_option.
26193         (v850_encode_data_area): Update references to small memory settings.
26194         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
26195         (enum small_memory_type): Move to v850-opts.h.
26196         * config/v850/v850.opt (config/v850/v850-opts.h): New
26197         HeaderInclude entry.
26198         (small_memory_max): New Variable entry.
26199         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
26200         (mtda, mzda): Likewise.
26201
26202 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26203
26204         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
26205         pointer.  Don't assert that global structures are in use.
26206
26207 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26208
26209         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
26210         via opts pointer.  Don't assert that global structures are in use.
26211
26212 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26213
26214         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
26215         (munix=93): Use Var.
26216         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
26217         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
26218         * config/pa/pa-opts.h: New.
26219         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
26220         (pa_handle_option): Don't assert that global structures are in
26221         use.  Access target_flags via opts pointer.  Don't handle
26222         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
26223         OPT_munix_98 here.
26224         (pa_option_override): Handle deferred OPT_mfixed_range_.
26225
26226 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26227
26228         * config/mn10300/mn10300-opts.h: New.
26229         * config/mn10300/mn10300.c (mn10300_processor,
26230         mn10300_tune_string): Remove.
26231         (mn10300_handle_option): Don't assert that global structures are
26232         in use.  Access mn10300_processor via opts pointer.  Don't handle
26233         OPT_mtune_ here.
26234         * config/mn10300/mn10300.h (enum processor_type): Move to
26235         mn10300-opts.h.
26236         (mn10300_processor): Remove.
26237         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
26238         HeaderInclude entry.
26239         (mn10300_processor): New Variable entry.
26240         (mtune=): Use Var.
26241
26242 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26243
26244         * config/microblaze/microblaze.c: Don't include opts.h.
26245         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
26246         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
26247         (mno-clearbss): Use Var and Warn.
26248
26249 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26250
26251         * config/m32r/m32r-opts.h: New.
26252         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
26253         (m32r_handle_option): Don't assert that global structures are in
26254         use.  Access target_flags and m32r_cache_flush_func via opts
26255         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
26256         OPT_mno_flush_trap here.
26257         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
26258         include of m32r-opts.h.
26259         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
26260         HeaderInclude entry.
26261         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
26262         (mmodel=): Use Enum and Var.
26263         (m32r_model): New Enum and EnumValue entries.
26264         (mno-flush-trap): Use Var.
26265         (msdata=): Use Enum and Var.
26266         (m32r_sdata): New Enum and EnumValue entries.
26267
26268 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26269
26270         * config/m32c/m32c.c: Don't include opts.h.
26271         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
26272         m32c_handle_option): Remove.
26273         (m32c_option_override): Check global_options_set.x_target_memregs
26274         instead of target_memregs_set.
26275         * config/m32c/m32c.h (target_memregs): Remove.
26276         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
26277         variable.
26278
26279 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26280
26281         * config/iq2000/iq2000-opts.h: New.
26282         * config/iq2000/iq2000.c: Don't include opts.h.
26283         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
26284         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
26285         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
26286         HeaderInclude entry.
26287         (iq2000_tune): New Variable entry.
26288         (march=): Add comment.  Use Enum.
26289         (iq2000_arch): New Enum and EnumValue entries.
26290         (mcpu=): Use Enum and Var.
26291         (iq2000_tune): New Enum and EnumValue entries.
26292
26293 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26294
26295         * config/ia64/ia64-opts.h: New.
26296         * config/ia64/ia64.c (ia64_tune): Remove.
26297         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
26298         here.  Use error_at.
26299         (ia64_option_override): Handle deferred OPT_mfixed_range_.
26300         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
26301         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
26302         HeaderInclude entry.
26303         (ia64_tune): New Variable entry.
26304         (mfixed-range=): Use Defer and Var.
26305         (mtune=): Use Enum and Var.
26306         (ia64_tune): New Enum and EnumValue entries.
26307
26308 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26309
26310         * config/frv/frv-opts.h: New.
26311         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
26312         frv-opts.h.
26313         (frv_cpu_type): Remove.
26314         * config/frv/frv.c: Don't include opts.h.
26315         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
26316         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
26317         (frv_cpu_type): New Variable entry.
26318         (frv_cpu): New Enum and EnumValue entries.
26319
26320 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26321
26322         * config/cris/cris.c (cris_handle_option): Access target_flags via
26323         opts pointer.  Don't assert that global structures are in use.
26324         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
26325         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
26326
26327 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26328
26329         * config/bfin/bfin-opts.h: New.
26330         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
26331         bfin_si_revision, bfin_workarounds): Remove.
26332         (bfin_cpus): Make static const.
26333         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
26334         not bfin_lib_id_given.
26335         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
26336         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
26337         pointer. Use error_at.  Don't assert that global structures are in use.
26338         * config/bfin/bfin.h: Include bfin-opts.h.
26339         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
26340         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
26341         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
26342         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
26343         entries.
26344
26345 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26346
26347         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
26348         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
26349         or -msoft-float here.
26350         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
26351         -msoft-float and -mhard-float.
26352         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
26353         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
26354         msoft-float.
26355         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
26356         -msoft-float.
26357         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
26358         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
26359         not mhard-float.
26360         (LIBGCC_SPEC): Don't handle -msoft-float.
26361         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
26362         -mhard-float.
26363         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
26364         msoft-float.
26365         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
26366         -mfloat-abi=*, not -msoft-float and -mhard-float.
26367         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
26368         -msoft-float.
26369         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
26370         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
26371         mhard-float and msoft-float.
26372         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
26373         mfloat-abi=soft in comments, not mhard-float and msoft-float.
26374         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
26375         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
26376         mhard-float.
26377         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
26378         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
26379         msoft-float.
26380         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
26381         not mhard-float.
26382         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
26383         not msoft-float.
26384
26385 2011-03-22  Richard Henderson  <rth@redhat.com>
26386
26387         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
26388         TARGET_ABI_WINDOWS_NT.
26389         (alpha_output_function_end_prologue): Likewise.
26390         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
26391         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
26392         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
26393         (trap, *movsi_nt_vms): Likewise.
26394         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
26395         (*tablejump_osf_nt_internal): Remove.
26396         * config/alpha/predicates.md (input_operand): Only test Pmode.
26397
26398 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26399
26400         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
26401         via opts pointer.  Use error_at.  Don't assert that global
26402         structures are in use.
26403
26404 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26405
26406         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
26407         (ix86_handle_option): Access ix86_isa_flags and
26408         ix86_isa_flags_explicit via opts pointer.  Don't assert that
26409         global structures are in use.
26410         (ix86_function_specific_save, ix86_function_specific_restore):
26411         Update ix86_isa_flags_explicit field name.
26412         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
26413         (ix86_isa_flags_explicit): Rename TargetSave entry to
26414         x_ix86_isa_flags_explicit.
26415
26416 2011-03-22  Richard Henderson  <rth@redhat.com>
26417
26418         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
26419         (alpha_option_override, direct_return): Likewise.
26420         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
26421         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
26422         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
26423         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
26424         (alpha_expand_epilogue, alpha_end_function): Likewise.
26425         (alpha_init_libfuncs): Likewise.
26426         (struct machine_function): Remove unicosmk members.
26427         (print_operand) ['t']: Remove.
26428         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
26429         unicosmk_output_module_name, unicosmk_output_common,
26430         current_section_align, unicosmk_output_text_section_asm_op,
26431         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
26432         unicosmk_section_type_flags, unicosmk_unique_section,
26433         unicosmk_asm_named_section, unicosmk_insert_attributes,
26434         unicosmk_output_align, unicosmk_defer_case_vector,
26435         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
26436         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
26437         unicosmk_output_ssib, unicosmk_add_call_info_word,
26438         unicosmk_extern_head, unicosmk_output_default_externs,
26439         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
26440         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
26441         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
26442         * config/alpha/alpha-protos.h: Update.
26443         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
26444         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
26445         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
26446         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
26447         (*mulsi_se, mulvsi3): Likewise.
26448         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
26449         (*divmodsi_internal, call, call_value, realign): Likewise.
26450         (moddi3, umoddi3): Likewise; remove duplicate expander.
26451         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
26452         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
26453         (*movdi_nofix): Remove r/U alternative.
26454         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
26455         * config/alpha/constraints.md ("U"): Remove.
26456         * config/alpha/predicates.md (call_operand"): Don't test
26457         TARGET_ABI_UNICOSMK.
26458
26459 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26460
26461         * target.def (handle_option): Take gcc_options and
26462         cl_decoded_option pointers and location_t.
26463         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
26464         * doc/tm.texi: Regenerate.
26465         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
26466         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
26467         * lto-opts.c (lto_reissue_options): Generate option structure for
26468         targetm.handle_option call.
26469         * opts.c (target_handle_option): Update call to
26470         targetm.handle_option.  Remove assertions about values now passed
26471         down to hook.
26472         * targhooks.c (default_target_handle_option): New.
26473         * targhooks.h (default_target_handle_option): Declare.
26474         * config/alpha/alpha.c: Include opts.h.
26475         (alpha_handle_option): Update to new hook interface.
26476         * config/arm/arm.c: Include opts.h.
26477         (arm_handle_option): Update to new hook interface.
26478         * config/arm/t-arm (arm.o): Update dependencies.
26479         * config/bfin/bfin.c: Include opts.h.
26480         (bfin_handle_option): Update to new hook interface.
26481         * config/cris/cris.c: Include opts.h.
26482         (cris_handle_option): Update to new hook interface.
26483         * config/frv/frv.c: Include opts.h.
26484         (frv_handle_option): Update to new hook interface.
26485         * config/i386/i386.c: Include opts.h.
26486         (ix86_handle_option): Update to new hook interface.
26487         (ix86_valid_target_attribute_inner_p): Generate option structure
26488         for call to ix86_handle_option.
26489         * config/i386/t-i386 (i386.o): Update dependencies.
26490         * config/ia64/ia64.c: Include opts.h.
26491         (ia64_handle_option): Update to new hook interface.
26492         * config/ia64/t-ia64 (ia64.o): Update dependencies.
26493         * config/iq2000/iq2000.c: Include opts.h.
26494         (iq2000_handle_option): Update to new hook interface.
26495         * config/m32c/m32c.c: Include opts.h.
26496         (m32c_handle_option): Update to new hook interface.
26497         * config/m32r/m32r.c: Include opts.h.
26498         (m32r_handle_option): Update to new hook interface.
26499         * config/m68k/m68k.c: Include opts.h.
26500         (m68k_handle_option): Update to new hook interface.
26501         * config/mep/mep.c: Include opts.h.
26502         (mep_handle_option): Update to new hook interface.
26503         * config/microblaze/microblaze.c: Include opts.h.
26504         (microblaze_handle_option): Update to new hook interface.
26505         * config/mips/mips.c: Include opts.h.
26506         (mips_handle_option): Update to new hook interface.
26507         * config/mn10300/mn10300.c: Include opts.h.
26508         (mn10300_handle_option): Update to new hook interface.
26509         * config/pa/pa.c: Include opts.h.
26510         (pa_handle_option): Update to new hook interface.
26511         * config/pdp11/pdp11.c: Include opts.h.
26512         (pdp11_handle_option): Update to new hook interface.
26513         * config/rs6000/rs6000.c: Include opts.h.
26514         (rs6000_handle_option): Update to new hook interface.
26515         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
26516         * config/rx/rx.c: Include opts.h.
26517         (rx_handle_option): Update to new hook interface.
26518         * config/s390/s390.c: Include opts.h.
26519         (s390_handle_option): Update to new hook interface.
26520         * config/score/score.c: Include opts.h.
26521         (score_handle_option): Update to new hook interface.
26522         * config/sh/sh.c: Include opts.h.
26523         (sh_handle_option): Update to new hook interface.
26524         * config/sparc/sparc.c: Include opts.h.
26525         (sparc_handle_option): Update to new hook interface.
26526         * config/v850/v850.c: Include opts.h.
26527         (v850_handle_option): Update to new hook interface.
26528
26529 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26530
26531         * gcc.c (driver_unknown_option_callback): Only permit and save
26532         unknown -Wno- options.
26533         (driver_wrong_lang_callback): Save options directly instead of via
26534         driver_unknown_option_callback.
26535
26536 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
26537
26538         * combine.c (simplify_set): Try harder to find the best CC mode when
26539         simplifying a nested COMPARE on the RHS.
26540
26541 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
26542
26543         * config/alpha/gnu.h: Remove.
26544         * config/arc: Remove directory.
26545         * config/arm/netbsd.h: Remove.
26546         * config/arm/t-pe: Remove.
26547         * config/crx: Remove directory.
26548         * config/i386/netbsd.h: Remove.
26549         * config/m68hc11: Remove directory.
26550         * config/m68k/uclinux-oldabi.h: Remove.
26551         * config/mcore/mcore-pe.h: Remove.
26552         * config/mcore/t-mcore-pe: Remove.
26553         * config/netbsd-aout.h: Remove.
26554         * config/rs6000/gnu.h: Remove.
26555         * config/sh/sh-symbian.h: Remove.
26556         * config/sh/symbian-base.c: Remove.
26557         * config/sh/symbian-c.c: Remove.
26558         * config/sh/symbian-cxx.c: Remove.
26559         * config/sh/symbian-post.h: Remove.
26560         * config/sh/symbian-pre.h: Remove.
26561         * config/sh/t-symbian: Remove.
26562         * config/svr3.h: Remove.
26563         * config/vax/netbsd.h: Remove.
26564         * config.build: Don't handle i[34567]86-*-pe.
26565         * config.gcc: Remove handling of deprecations for most deprecated
26566         targets.
26567         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
26568         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
26569         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
26570         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
26571         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
26572         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
26573         Remove cases.
26574         * config.host: Don't handle i[34567]86-*-pe.
26575         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
26576         (ASM_SPEC32): Don't handle -mcall-gnu.
26577         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
26578         -mcall-gnu.
26579         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
26580         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
26581         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
26582         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
26583         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
26584         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
26585         conditional on SYMBIAN.
26586         * configure.ac: Don't handle powerpc*-*-gnu*.
26587         * configure: Regenerate.
26588         * doc/extend.texi (interrupt attribute): Don't mention CRX.
26589         * doc/install-old.texi (m6811, m6812): Don't mention.
26590         * doc/install.texi (arc-*-elf*): Don't document multilib option.
26591         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
26592         (m68k-uclinuxoldabi): Don't mention.
26593         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
26594         Remove.
26595         (-mcall-gnu): Remove.
26596         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
26597         families): Remove constraint documentation.
26598
26599 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
26600
26601         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
26602         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
26603         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
26604
26605 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
26606
26607         PR target/48226
26608         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
26609         vector when peeking at the next token for vector, don't expand the
26610         keywords.
26611
26612 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
26613
26614         * config/avr/avr-protos.h (expand_epilogue): Change prototype
26615         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
26616         * config/avr/avr.c (init_cumulative_args)
26617         (avr_function_arg_advance): Use it.
26618         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
26619         sibcall epilogues.
26620         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
26621         (avr_function_ok_for_sibcall): ...this new function.
26622         (avr_lookup_function_attribute1): New static Function.
26623         (avr_naked_function_p, interrupt_function_p)
26624         (signal_function_p, avr_OS_task_function_p)
26625         (avr_OS_main_function_p): Use it.
26626         * config/avr/avr.md ("sibcall", "sibcall_value")
26627         ("sibcall_epilogue"): New expander.
26628         ("*call_insn", "*call_value_insn"): New insn.
26629         ("call_insn", "call_value_insn"): Remove
26630         ("call", "call_value", "epilogue"): Change expander to handle
26631         sibling calls.
26632
26633 2011-03-21  Nick Clifton  <nickc@redhat.com>
26634
26635         * doc/invoke.texi (Overall Options): Move closing brace to end of
26636         options list.
26637         (Optimization Options): Add missing @gol.
26638         (Directory Options): Likewise.
26639         (i386 and x86-64 Options): Likewise.
26640         (RS6000 and PowerPC Options): Likewise.
26641         (i386 and x86-64 Windows Options): Likewise.
26642         (V850 Options): Add text missing from descriptions.
26643
26644 2011-03-22  Richard Henderson  <rth@redhat.com>
26645
26646         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
26647         (avr_incoming_return_addr_rtx): New.
26648         (emit_push_byte): New.
26649         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
26650         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
26651         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
26652         (emit_pop_byte): New.
26653         (expand_epilogue): Use it.  Pop frame pointer by bytes.
26654         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
26655         (INCOMING_RETURN_ADDR_RTX): New.
26656         (INCOMING_FRAME_SP_OFFSET): New.
26657         (ARG_POINTER_CFA_OFFSET): New.
26658         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
26659         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
26660         (pophi): Remove.
26661
26662         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
26663
26664 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26665
26666         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
26667         (FUNCTION_ARG_ADVANCE): Likewise.
26668         * tm.texi.in: Change references to them to hook references.
26669         * tm.texi: Regenerate.
26670         * targhooks.c (default_function_arg): Eliminate check for target
26671         macro.
26672         (default_function_incoming_arg): Likewise.
26673         (default_function_arg_advance): Likewise.
26674         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
26675         (function_arg_advance): Likewise.
26676         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
26677
26678 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
26679
26680         * tree.c (build_call_1): New function.
26681         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
26682
26683 2011-03-22  Richard Guenther  <rguenther@suse.de>
26684
26685         PR tree-optimization/48228
26686         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
26687         for single-arg PHIs.
26688
26689 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
26690
26691         PR rtl-optimization/48143
26692         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
26693         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
26694         sse2_cvtps2pd): Likewise.
26695
26696 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26697
26698         * recog.c (canonicalize_change_group): Use validate_unshare_change.
26699
26700 2011-03-22  Richard Guenther  <rguenther@suse.de>
26701
26702         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
26703         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
26704         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
26705         and REALIGN_LOAD_EXPR.
26706         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
26707         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
26708         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
26709         DOT_PROD_EXPR case ...
26710         (expand_expr_real_2): ... here.
26711         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
26712         and REALIGN_LOAD_EXPR.
26713         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
26714         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
26715         (vect_create_epilog_for_reduction): Likewise.
26716         (vectorizable_reduction): Likewise.
26717         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
26718         * tree-vect-stmts.c (vectorizable_load): Likewise.
26719
26720 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
26721
26722         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
26723
26724 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26725
26726         * config/s390/s390.c (s390_delegitimize_address): Fix offset
26727         handling for PLTOFF/GOTOFF.
26728
26729 2011-03-22  Nick Clifton  <nickc@redhat.com>
26730
26731         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
26732         trailing backslash from the end of the macro definition.
26733
26734 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26735
26736         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
26737         and PLT unspecs.
26738
26739 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
26740
26741         * expr.h (prepare_operand): Move to...
26742         * optabs.h (prepare_operand): ...here and change the insn code
26743         parameter from "int" to "enum insn_code".
26744         (insn_operand_matches): Declare.
26745         * expr.c (init_expr_target): Use insn_operand_matches.
26746         (compress_float_constant): Likewise.
26747         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
26748         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
26749         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
26750         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
26751         Likewise.
26752         (gen_cond_trap): Likewise.
26753         (prepare_operand): Likewise.  Change icode to an insn_code.
26754         (insn_operand_matches): New function.
26755         * reload.c (find_reloads_address_1): Use insn_operand_matches.
26756         * reload1.c (gen_reload): Likewise.
26757         * targhooks.c (default_secondary_reload): Likewise.
26758
26759 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
26760
26761         * config/alpha/alpha.md (unspec): New define_c_enum.
26762         (unspecv): Ditto.
26763
26764 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
26765
26766         PR debug/48214
26767         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
26768         between a call and its CALL_ARG_LOCATION note.
26769
26770 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
26771
26772         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
26773
26774 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
26775
26776         PR c/42544
26777         PR c/48197
26778         * c-common.c (shorten_compare): If primopN is first sign-extended
26779         to opN and then zero-extended to result type, set primopN to opN.
26780
26781 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
26782
26783         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
26784         for barrier handlers.
26785
26786 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
26787
26788         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
26789         UNSPEC constants to be in the unspec enumeration, and redefine
26790         all UNSPECV constants to be in the unspecv enumeration, so that
26791         dumps print which unspec/unspec_volatile this is.
26792         * config/rs6000/vector.md (UNSPEC_*): Ditto.
26793         * config/rs6000/paired.md (UNSPEC_*): Ditto.
26794         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
26795         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
26796         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
26797
26798         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
26799         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
26800         UNSPECV_LWSYNC, since these are used as unspec_volatile.
26801         * config/rs6000/sync.md (isync, lwsync): Ditto.
26802
26803 2011-03-21  Richard Guenther  <rguenther@suse.de>
26804
26805         * params.def (lto-min-partition): Fix typo.
26806
26807 2011-03-21  Richard Guenther  <rguenther@suse.de>
26808
26809         PR c/47939
26810         * c-decl.c (grokdeclarator): Drop to the main variant only
26811         for array types.  Drop flag_gen_aux_info check.
26812
26813 2011-03-21  Richard Guenther  <rguenther@suse.de>
26814
26815         PR translation/47911
26816         * params.def (lto-partitions): Fix typo.
26817         (lto-min-partition): Fix wording.
26818
26819 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
26820
26821         * config/rs6000/t-freebsd: Remove duplication from file.
26822
26823 2011-03-21  Richard Guenther  <rguenther@suse.de>
26824
26825         PR middle-end/47661
26826         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
26827
26828 2011-03-21  Richard Guenther  <rguenther@suse.de>
26829
26830         PR lto/48210
26831         * params.def (lto-partitions): Require at least 1 partition.
26832
26833 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26834
26835         * gthr-solaris.h: Remove.
26836         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
26837         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
26838         (LIB_SPEC): Likewise.
26839         * config/sol2.opt (threads): Remove.
26840         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
26841         (sparc*-*-solaris2*): Likewise.
26842         * configure.ac (enable_threads): Enable solaris support.
26843         * configure: Regenerate.
26844         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
26845         * doc/install.texi (Configuration, --enable-threads=lib): Remove
26846         solaris.
26847
26848 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26849
26850         * config.gcc: Obsolete *-*-solaris2.8*.
26851         * doc/install.texi (Specific, *-*-solaris2*): Document it.
26852
26853 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26854
26855         PR bootstrap/48135
26856         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
26857         reference.  Solaris 8 perl works.
26858
26859 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26860
26861         PR bootstrap/48135
26862         * doc/install.texi (Prerequisites): Move jar etc. up.
26863         Explain support library version requirements.
26864
26865 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26866
26867         PR bootstrap/48135
26868         * doc/install.texi (Prerequisites): Move Perl to build
26869         requirements.  Always necessary on Solaris 2 with Sun ld.
26870
26871 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26872
26873         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
26874         binutils 2.21.
26875         (Specific, i?86-*-solaris2.[89]): Likewise.
26876         (Specific, i?86-*-solaris2.10): Likewise.
26877         (Specific, mips-sgi-irix6): Likewise.
26878         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
26879         Update for binutils 2.21.
26880
26881 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26882
26883         * configure.ac (gcc_cv_lto_plugin): Fix typo.
26884         Allow -fuse-linker-plugin for non-default plugin linker.
26885         * configure: Regenerate.
26886
26887 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
26888
26889         PR bootstrap/48167
26890         * gengtype.c (files_rules): Added rule for cp/parser.h.
26891
26892 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
26893
26894         PR target/48213
26895         * config/s390/s390.c (s390_delegitimize_address): Don't call
26896         lowpart_subreg if orig_x has BLKmode.
26897
26898 2011-03-21  Kai Tietz  <ktietz@redhat.com>
26899
26900         PR target/12171
26901         * doc/plugins.texi: Adjust documentation for plugin register_callback.
26902         * tree.h (attribute_spec): Add new member affects_type_identity.
26903         * attribs.c (empty_attribute_table): Adjust attribute_spec
26904         initializers.
26905         * config/alpha/alpha.c: Likewise.
26906         * config/arc/arc.c: Likewise.
26907         * config/arm/arm.c: Likewise.
26908         * config/avr/avr.c: Likewise.
26909         * config/bfin/bfin.c: Likewise.
26910         * config/crx/crx.c: Likewise.
26911         * config/darwin.h: Likewise.
26912         * config/h8300/h8300.c: Likewise.
26913         * config/i386/cygming.h: Likewise.
26914         * config/i386/i386.c: Likewise.
26915         * config/ia64/ia64.c: Likewise.
26916         * config/m32c/m32c.c: Likewise.
26917         * config/m32r/m32r.c: Likewise.
26918         * config/m68hc11/m68hc11.c: Likewise.
26919         * config/m68k/m68k.c: Likewise.
26920         * config/mcore/mcore.c: Likewise.
26921         * config/mep/mep.c: Likewise.
26922         * config/microblaze/microblaze.c: Likewise.
26923         * config/mips/mips.c: Likewise.
26924         * config/rs6000/rs6000.c: Likewise.
26925         * config/rx/rx.c: Likewise.
26926         * config/sh/sh.c: Likewise.
26927         * config/sol2.h: Likewise.
26928         * config/sparc/sparc.c: Likewise.
26929         * config/spu/spu.c: Likewise.
26930         * config/stormy16/stormy16.c: Likewise.
26931         * config/v850/v850.c: Likewise.
26932
26933 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
26934
26935         * simplify-rtx.c (simplify_binary_operation_1): Handle
26936         (xor (and A B) C) case when B and C are both constants.
26937
26938 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
26939
26940         * tree-dfa.c (add_referenced_var): Fix typo in comment.
26941
26942 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
26943
26944         PR bootstrap/48168
26945         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
26946
26947 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
26948
26949         PR rtl-optimization/48156
26950         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
26951         assume df and df_lr are not NULL.
26952
26953 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
26954
26955         PR debug/48023
26956         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
26957         between a call and its CALL_ARG_LOCATION note.
26958
26959 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
26960
26961         PR debug/48178
26962         * config/sh/sh.c (find_barrier): Don't emit a constant pool
26963         between a call and its corresponding CALL_ARG_LOCATION note.
26964
26965 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
26966
26967         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
26968         instead of loop. Use HARD_REGISTER_NUM_P predicate.
26969         * haifa-sched.c (setup_ref_regs): Ditto.
26970         * caller-save.c (add_used_regs_1): Ditto.
26971         * dse.c (look_for_hardregs): Ditto.
26972         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
26973         * sched-rgn.c (check_live_1): Ditto.
26974
26975 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
26976
26977         * c-decl.c (diagnose_mismatched_decls): Give an error for
26978         redefining a typedef with variably modified type.
26979
26980 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
26981
26982         * c-decl.c (grokfield): Don't allow typedefs for structures or
26983         unions with no tag by default.
26984         * doc/extend.texi (Unnamed Fields): Update.
26985
26986 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
26987
26988         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26989         Rewrite using indirect functions.
26990         (lwp_slwpcb): Ditto.
26991         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
26992         (avx_vinsertf128<mode>): Ditto.
26993
26994 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26995
26996         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
26997         unspecs.
26998
26999 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27000
27001         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
27002         splitting between a call and its corresponding CALL_ARG_LOCATION note.
27003
27004 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
27005
27006         PR rtl-optimization/48170
27007         * gcse.c (hoist_code): Remove bogus asserts.
27008
27009 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
27010
27011         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
27012         computation for prologue/epilogue.
27013
27014 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27015
27016         * Makefile.in (check-consistency): Remove.
27017
27018 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
27019
27020         PR debug/48176
27021         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
27022         arange_table_in_use is 0, but either text_section_used or
27023         cold_text_section_used is true.  Don't call it if
27024         !info_section_emitted.
27025
27026 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
27027
27028         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
27029         FUNCTION_VALUE_REGNO_P): Remove.
27030         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
27031         Remove.
27032         * config/avr/avr.c (avr_ret_register): Make static inline.
27033         (avr_function_value_regno_p): New function.
27034         (avr_libcall_value): Make static. Add 'func' argument.
27035         (avr_function_value): Make static. Rename 'func' argument to
27036         'fn_decl_or_type', forward it to avr_libcall_value. Call
27037         avr_ret_register function instead of RET_REGISTER macro.
27038         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
27039
27040 2011-03-18  Jason Merrill  <jason@redhat.com>
27041
27042         PR c++/23372
27043         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
27044
27045 2011-03-18  Richard Guenther  <rguenther@suse.de>
27046
27047         * doc/install.texi (--enable-gold): Remove.
27048         (--with-plugin-ld): Document.
27049         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
27050
27051 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
27052
27053         PR middle-end/47790
27054         * expr.c (optimize_bitfield_assignment_op): Revamp to work
27055         again after expansion changes.
27056
27057 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
27058
27059         * combine.c (try_combine): Do simplification only call of
27060         subst() on i2 even when i1 is present. Update comments.
27061
27062 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
27063
27064         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
27065         and UNSPEC_PCREL_SYMOFF.
27066
27067 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27068
27069         * config/s390/s390.md: Use define_c_enum for the unspec constant
27070         definitions.
27071
27072 2011-03-18  Richard Henderson  <rth@redhat.com>
27073             Jakub Jelinek  <jakub@redhat.com>
27074
27075         PR bootstrap/48161
27076         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
27077         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
27078
27079 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
27080
27081         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27082         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
27083         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
27084         Change return type to bool.
27085         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27086
27087 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
27088
27089         PR debug/48163
27090         * var-tracking.c (prepare_call_arguments): If CALL target
27091         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
27092         pc instead of looking it up using cselib_lookup and use
27093         Pmode for it if x has VOIDmode.
27094         * dwarf2out.c (gen_subprogram_die): If also both first and
27095         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
27096
27097         PR debug/48163
27098         * function.c (assign_parms): For data.passed_pointer parms
27099         use MEM of data.entry_parm instead of data.entry_parm itself
27100         as DECL_INCOMING_RTL.
27101         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
27102         also when passed and declared mode is the same, DECL_RTL
27103         is a MEM with pseudo as address and DECL_INCOMING_RTL is
27104         a MEM too.
27105
27106 2011-03-16  Jeff Law  <law@redhat.com>
27107
27108         PR rtl-optimization/37273
27109         * ira-costs.c (scan_one_insn): Detect constants living in memory and
27110         handle them like argument loads from stack slots.  Do not double
27111         count memory for memory constants and argument loads from stack slots.
27112
27113 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27114
27115         PR debug/48160
27116         * var-tracking.c (prepare_call_arguments): Check SUBREG.
27117
27118 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27119
27120         PR target/48171
27121         * config/i386/i386.opt: Add Save to -mavx and -mfma.
27122
27123 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
27124
27125         PR bootstrap/48153
27126         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
27127         if dwarf_strict.
27128         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
27129         Clear call_arg_locations and call_arg_loc_last always.
27130
27131         PR middle-end/48152
27132         * var-tracking.c (prepare_call_arguments): If argument needs to be
27133         passed by reference, adjust argtype and mode.
27134
27135 2011-03-17  Richard Guenther  <rguenther@suse.de>
27136
27137         PR middle-end/48134
27138         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
27139         a value make sure to fold the statement.
27140
27141 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
27142
27143         PR target/43872
27144         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
27145         return condition with !cfun->calls_alloca.
27146
27147 2011-03-17  Richard Guenther  <rguenther@suse.de>
27148
27149         PR bootstrap/48148
27150         * lto-cgraph.c (input_overwrite_node): Clear the abstract
27151         origin for decls in other ltrans units.
27152         (input_varpool_node): Likewise.
27153
27154 2011-03-17  Richard Guenther  <rguenther@suse.de>
27155
27156         PR middle-end/48165
27157         * tree-object-size.c (compute_object_offset): Properly return
27158         the offset operand of MEM_REFs as sizetype.
27159
27160 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
27161
27162         PR rtl-optimization/48141
27163         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
27164         * dse.c: Include params.h.
27165         (active_local_stores_len): New variable.
27166         (add_wild_read, dse_step1): Clear it when setting active_local_stores
27167         to NULL.
27168         (record_store, check_mem_read_rtx): Decrease it when removing
27169         from the chain.
27170         (scan_insn): Likewise.  Increase it when adding to chain, if it
27171         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
27172         set active_local_stores to NULL before the addition.
27173         * Makefile.in (dse.o): Depend on $(PARAMS_H).
27174
27175         PR rtl-optimization/48141
27176         * dse.c (record_store): If no positions are needed in an insn
27177         that cannot be deleted, at least unchain it from active_local_stores.
27178
27179 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
27180
27181         PR debug/47510
27182         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
27183         (lookup_type_die_strip_naming_typedef): ... here.
27184         (get_context_die): Use it.
27185         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
27186         the anonymous struct named by the naming typedef.
27187
27188 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27189
27190         PR target/48154
27191         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
27192         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
27193
27194 2011-03-16  Jeff Law  <law@redhat.com>
27195
27196         * tree-vrp.c (identify_jump_threads): Slightly simplify type
27197         check for operands of conditional.  Allow type to be a pointer.
27198
27199 2011-03-16  Richard Guenther  <rguenther@suse.de>
27200
27201         PR tree-optimization/48149
27202         * fold-const.c (fold_binary_loc): Fold
27203         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
27204
27205 2011-03-16  Richard Guenther  <rguenther@suse.de>
27206
27207         PR tree-optimization/26134
27208         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
27209         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
27210         (non_rewritable_mem_ref_base): Handle complex type component
27211         accesses, constrain offsets for vector and complex extracts
27212         more properly.
27213
27214 2011-03-16  Richard Guenther  <rguenther@suse.de>
27215
27216         PR tree-optimization/48146
27217         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
27218         operands avoiding the need for renaming.
27219
27220 2011-03-16  Richard Guenther  <rguenther@suse.de>
27221
27222         * gimple-fold.c (maybe_fold_reference): Open-code relevant
27223         constant folding.  Move MEM_REF canonicalization first.
27224         Rely on fold_const_aggregate_ref for initializer folding.
27225         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
27226
27227 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
27228
27229         PR middle-end/48136
27230         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
27231         arg0/arg1 or their arguments are always fold converted to matching
27232         types.
27233
27234         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
27235         to nargs.
27236
27237 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27238
27239         PR lto/46944
27240         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
27241         Handle in-tree gold.
27242         (ld_vers): Extract binutils version for gold.
27243         (gcc_cv_ld_hidden): Handle gold here.
27244         (gcc_cv_lto_plugin): Determine level of linker plugin support.
27245         * configure: Regenerate.
27246         * config.in: Regenerate.
27247         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
27248         -fuse-linker-plugin otherwise.
27249         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
27250         (LINK_COMMAND_SPEC): Use it.
27251         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
27252
27253 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
27254
27255         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
27256         * calls.c: Remove debug.h include.
27257         (emit_call_1): Don't call virtual_call_token debug hook.
27258         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
27259         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
27260         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
27261         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
27262         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
27263         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
27264         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
27265         dwarf2out_virtual_call): Remove.
27266         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
27267         copy_call_info and virtual_call hooks.
27268         (dwarf2out_init): Don't initialize vcall_insn_table,
27269         debug_dcall_section and debug_vcall_section.
27270         (prune_unused_types): Don't mark nodes from dcall_table.
27271         (dwarf2out_finish): Don't output dcall or vcall tables.
27272         * final.c (final_scan_insn): Don't call direct_call or
27273         virtual_call debug hooks.
27274         * debug.h (struct gcc_debug_hooks): Remove direct_call,
27275         virtual_call_token, copy_call_info and virtual_call hooks.
27276         (debug_nothing_uid): Remove prototype.
27277         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
27278         copy_call_info and virtual_call hooks.
27279         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
27280         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
27281         * debug.c (do_nothing_debug_hooks): Likewise.
27282         (debug_nothing_uid): Remove.
27283         * doc/invoke.texi (-fenable-icf-debug): Remove.
27284         * common.opt (-fenable-icf-debug): Likewise.
27285
27286         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
27287         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
27288         call's MEM.  Handle functions returning aggregate through a hidden
27289         first pointer.  For virtual calls add clobbered pc to call arguments
27290         chain.
27291         * dwarf2out.c (gen_subprogram_die): Emit
27292         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
27293         can't be emitted.
27294
27295         PR debug/45882
27296         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
27297         * rtl.h (ENTRY_VALUE_EXP): Define.
27298         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
27299         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
27300         * print-rtl.c (print_rtx): Likewise.
27301         * gengtype.c (adjust_field_rtx_def): Likewise.
27302         * var-tracking.c (vt_add_function_parameter): Adjust
27303         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
27304         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
27305         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
27306         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
27307         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
27308
27309         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
27310         Call var_location debug hook even on CALL_INSNs.
27311         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
27312         * rtl.def (ENTRY_VALUE): New.
27313         * dwarf2out.c: Include cfglayout.h.
27314         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
27315         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
27316         (struct call_arg_loc_node): New type.
27317         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
27318         tail_call_site_count): New variables.
27319         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
27320         DW_TAG_GNU_call_site_parameter.
27321         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
27322         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
27323         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
27324         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
27325         and DW_AT_GNU_all_source_call_sites.
27326         (mem_loc_descriptor): Handle ENTRY_VALUE.
27327         (add_src_coords_attributes): Don't add enything if
27328         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
27329         (dwarf2out_abstract_function): Save and clear call_arg_location,
27330         call_site_count and tail_call_site_count around dwarf2out_decl call.
27331         (gen_call_site_die): New function.
27332         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
27333         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
27334         (dwarf2out_function_decl): Clear call_arg_locations,
27335         call_arg_loc_last, set call_site_count and tail_call_site_count
27336         to -1 and free block_map.
27337         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
27338         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
27339         followed by any real instructions.
27340         (dwarf2out_begin_function): Set call_site_count and
27341         tail_call_site_count to 0.
27342         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
27343         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
27344         attempt to force a DIE for it and worst case remove the attribute.
27345         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
27346         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
27347         the decl itself.
27348         * var-tracking.c: Include tm_p.h.
27349         (vt_stack_adjustments): For calls call note_register_arguments.
27350         (argument_reg_set): New variable.
27351         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
27352         ensure the VALUE is resolved.
27353         (call_arguments): New variable.
27354         (prepare_call_arguments): New function.
27355         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
27356         (struct expand_loc_callback_data): Add ignore_cur_loc field.
27357         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
27358         always use the best expression.
27359         (vt_expand_loc): Add ignore_cur_loc argument.
27360         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
27361         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
27362         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
27363         note for all calls.
27364         (vt_add_function_parameter): Use cselib_lookup_from_insn.
27365         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
27366         argument.  Don't call cselib_preserve_only_values and
27367         cselib_reset_table.
27368         (note_register_arguments): New function.
27369         (vt_initialize): Compute argument_reg_set.  Call
27370         vt_add_function_parameters before processing basic blocks instead of
27371         afterwards.  For calls call prepare_call_arguments before calling
27372         cselib_process_insn.
27373         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
27374         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
27375         (var-tracking.o): Depend on $(TM_P_H).
27376         * cfglayout.h (insn_scope): New prototype.
27377         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
27378         * cfglayout.c (insn_scope): No longer static.
27379         * insn-notes.def (CALL_ARG_LOCATION): New.
27380         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
27381         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
27382         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
27383         nothing for DECL_EXTERNAL BLOCK_VARS.
27384
27385 2011-03-16  Alan Modra  <amodra@gmail.com>
27386
27387         PR target/45844
27388         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
27389         create invalid offset address for vsx splat insn.
27390         * config/rs6000/predicates.md (splat_input_operand): New.
27391         * config/rs6000/vsx.md (vsx_splat_*): Use it.
27392
27393 2011-03-15  Xinliang David Li  <davidxl@google.com>
27394
27395         PR c/47837
27396         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
27397         (normalize_preds): New function.
27398         (is_use_properly_guarded): Normalize def predicates.
27399
27400 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
27401
27402         PR target/46788
27403         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
27404         in the output template.
27405
27406 2011-03-15  Richard Guenther  <rguenther@suse.de>
27407
27408         PR middle-end/47650
27409         * tree-pretty-print.c (dump_function_declaration): Properly
27410         dump unprototyped and varargs function types.
27411
27412 2011-03-15  Richard Guenther  <rguenther@suse.de>
27413
27414         PR tree-optimization/13954
27415         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
27416         and friends.
27417
27418 2011-03-15  Richard Guenther  <rguenther@suse.de>
27419
27420         PR tree-optimization/48037
27421         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
27422         selects into BIT_FIELD_REFs.
27423         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
27424         vector select.
27425
27426 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
27427
27428         PR tree-optimization/48129
27429         * builtins.c (fold_builtin_snprintf): Convert to type of
27430         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
27431         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
27432
27433 2011-03-15  Richard Guenther  <rguenther@suse.de>
27434
27435         PR tree-optimization/41490
27436         * tree-ssa-dce.c (propagate_necessity): Handle returns without
27437         value but with VUSE.
27438         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
27439         return statements.
27440         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
27441         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
27442         * tree-tailcall.c (find_tail_calls): Ignore returns.
27443
27444 2011-03-15  Richard Guenther  <rguenther@suse.de>
27445
27446         PR middle-end/48031
27447         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
27448         or variable-indexed array accesses when in gimple form.
27449
27450 2011-03-15  Richard Guenther  <rguenther@suse.de>
27451
27452         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
27453
27454 2011-03-15  Alan Modra  <amodra@gmail.com>
27455
27456         PR target/48032
27457         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
27458         presume symbol_refs without a symbol_ref_decl are suitably
27459         aligned, nor other trees we may see here.  Handle anchor symbols.
27460         (legitimate_constant_pool_address_p): Comment.  Add mode param.
27461         Check cmodel=medium addresses.  Adjust all calls.
27462         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
27463         creating cmodel=medium optimized access to locals.
27464         * config/rs6000/constraints.md (R): Pass QImode to
27465         legitimate_constant_pool_address_p.
27466         * config/rs6000/predicates.md (input_operand): Pass mode to
27467         legitimate_constant_pool_address_p.
27468         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
27469         Update prototype.
27470
27471 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
27472
27473         PR target/48053
27474         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
27475         64-bit constants being loaded into registers other than GPRs such
27476         as loading 0 into a VSX register.
27477
27478 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27479
27480         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
27481
27482 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
27483
27484         PR middle-end/47917
27485         * builtins.c (fold_builtin_snprintf): New function.
27486         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
27487         (fold_builtin_4): Likewise.
27488
27489         PR middle-end/38878
27490         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
27491         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
27492         and C - X == X also strip nops from +/-/p+ operand.
27493         When optimizing -X == C, fold C to arg0's type.
27494
27495         PR debug/47946
27496         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
27497         emit it as add_AT_int instead of add_AT_unsigned.
27498
27499 2011-03-14  Tom Tromey  <tromey@redhat.com>
27500
27501         * unwind-dw2.c: Include sys/sdt.h if it exists.
27502         (_Unwind_DebugHook): Use STAP_PROBE2.
27503         * config.in, configure: Rebuild.
27504         * configure.ac: Check for sys/sdt.h.
27505
27506 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
27507
27508         * config/i386/i386.md (ROUND_FLOOR): New constant.
27509         (ROUND_CEIL): Ditto.
27510         (ROUND_TRUNC): Ditto.
27511         (ROUND_MXCSR): Ditto.
27512         (ROUND_NO_EXC): Ditto.
27513         (rint<mode>2): Use new defines instead of numerical constants.
27514         (floor<mode>2): Ditto.
27515         (ceil<mode>2): Ditto.
27516         (btrunc<mode>2): Ditto.
27517         * config/i386/i386-builtin-types.def: Define ROUND function type
27518         aliases.
27519         * config/i386/i386.c (enum ix86_builtins): Add
27520         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
27521         (struct builtin_description): Add
27522         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
27523         (ix86_expand_sse_round): New static function.
27524         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
27525         function types.
27526         (ix86_builtin_vectorized_function): Handle
27527         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
27528
27529 2011-03-14  Tom Tromey  <tromey@redhat.com>
27530
27531         * c-parser.c (c_parser_asm_string_literal): Clear
27532         warn_overlength_strings.
27533
27534 2011-03-14  Tom Tromey  <tromey@redhat.com>
27535
27536         * c-parser.c (disable_extension_diagnostics): Save
27537         warn_overlength_strings.
27538         (restore_extension_diagnostics): Restore warn_overlength_strings.
27539
27540 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
27541
27542         * BASE-VER: Change to 4.7.0.
27543
27544 2011-03-14  Richard Guenther  <rguenther@suse.de>
27545
27546         PR middle-end/48098
27547         * tree.c (build_vector_from_val): Adjust assert to requirements
27548         and reality.
27549
27550 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
27551
27552         PR bootstrap/48102
27553         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
27554
27555 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
27556
27557         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
27558         terms of target_flags_explicit. Adjust copyright year.
27559
27560         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
27561         * config/rs6000/t-freebsd: New file. Add override for
27562         LIB2FUNCS_EXTRA.
27563
27564 2011-03-13  Chris Demetriou  <cgd@google.com>
27565
27566         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
27567         (-fno-diagnostics-show-option): this, to reflect current default.
27568         (-Werror=): Update text about -fno-diagnostics-show-option.
27569
27570 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
27571
27572         PR target/48053
27573         * config/rs6000/predicates.md (easy_vector_constant_add_self,
27574         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
27575         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
27576         mode is not V2DImode or V2DFmode.
27577         (vspltis_constant): Do not handle V2DImode and V2DFmode.
27578         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
27579         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
27580         registers to 0.
27581         (movdi_internal64): Likewise.
27582
27583 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
27584
27585         PR tree-optimization/47127
27586         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
27587         parameter.
27588         (set_cloog_options): Same.
27589         (scop_to_clast): Same.
27590         (print_clast_stmt): Do not call cloog_state_malloc and
27591         cloog_state_free.
27592         (print_generated_program): Same.
27593         (gloog): Same.
27594         * graphite-clast-to-gimple.h (cloog_state): Declared.
27595         (scop_to_clast): Adjust declaration.
27596         * graphite.c (cloog_state): Defined here.
27597         (graphite_initialize): Call cloog_state_malloc.
27598         (graphite_finalize): Call cloog_state_free.
27599
27600 2011-03-11  Jason Merrill  <jason@redhat.com>
27601
27602         * attribs.c (lookup_attribute_spec): Take const_tree.
27603         * tree.h: Adjust.
27604
27605 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
27606
27607         * config/sparc/sparc.c (sparc_option_override): Use
27608         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
27609
27610 2011-03-11  Richard Guenther  <rguenther@suse.de>
27611
27612         PR tree-optimization/48067
27613         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
27614         multiplication result will be only used once on the target
27615         stmt.
27616
27617 2011-03-11  Richard Guenther  <rguenther@suse.de>
27618
27619         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
27620
27621 2011-03-11  Richard Guenther  <rguenther@suse.de>
27622
27623         PR lto/48073
27624         * tree.c (find_decls_types_r): Do not walk types only reachable
27625         from IDENTIFIER_NODEs.
27626
27627 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
27628
27629         PR middle-end/48044
27630         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
27631         all vnode->force_output nodes as needed.
27632
27633 2011-03-11  Jason Merrill  <jason@redhat.com>
27634
27635         PR c++/48069
27636         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
27637         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
27638
27639 2011-03-11  Martin Jambor  <mjambor@suse.cz>
27640
27641         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
27642         cgraph_node.
27643
27644 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
27645
27646         PR tree-optimization/48063
27647         * ipa-inline.c (cgraph_decide_inlining): Don't try to
27648         inline functions called once if !tree_can_inline_p (node->callers).
27649
27650 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
27651
27652         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
27653         extra_objs.
27654         * config/score/score3.c: Delete.
27655         * config/score/score3.h: Delete.
27656         * config/score/mul-div.S: Delete.
27657         * config/score/sfp-machine.h: Add new file.
27658         * config/score/constraints.md: Add new file.
27659         * config/score/t-score-softfp: Add new file.
27660         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
27661         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
27662         (score7_extra_constraint): Delete.
27663         (score7_option_override): Remove unused code.
27664         * config/score/score.c: Remove score3 and score5 define and code.
27665         * config/score/score.h: Remove score3 and score5 define and code.
27666         * config/score/score.md: Remove score3 template and unusual insn.
27667         * config/score/score.opt: Remove score3 and score5 options.
27668
27669 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27670
27671         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
27672         when _HPUX_SOURCE is defined.
27673         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
27674
27675 2011-03-10  Jason Merrill  <jason@redhat.com>
27676
27677         PR c++/48029
27678         * stor-layout.c (layout_type): Don't set structural equality
27679         on arrays of incomplete type.
27680         * tree.c (type_hash_eq): Handle comparing them properly.
27681
27682 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
27683
27684         PR debug/48043
27685         * config/s390/s390.c (s390_delegitimize_address): Make sure the
27686         result mode matches original rtl mode.
27687
27688 2011-03-10  Nick Clifton  <nickc@redhat.com>
27689
27690         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
27691         (andsi3, andsi3_flags): Fix timings for three operand alternative.
27692
27693 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
27694
27695         PR rtl-optimization/47866
27696         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
27697         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
27698         if target wasn't scalar.
27699         * function.c (assign_stack_temp_for_type): Assert that neither
27700         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
27701         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
27702         macro.
27703         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
27704
27705 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27706
27707         * config/s390/s390-protos.h (s390_label_align): New prototype.
27708         * config/s390/s390.c (s390_label_align): New function.
27709         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
27710
27711 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
27712
27713         PR target/47755
27714         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
27715         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
27716         (output_vec_const_move): Ditto.
27717
27718 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
27719
27720         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
27721         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
27722         * config/mips/mips.c (mips_preferred_reload_class): Make static.
27723         Change 'rclass' argument and result type to reg_class_t.
27724         (TARGET_PREFERRED_RELOAD_CLASS): Define.
27725
27726 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
27727
27728         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
27729         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
27730         (TARGET_MEMORY_MOVE_COST): Define.
27731         (avr_register_move_cost, avr_memory_move_cost): New Functions.
27732
27733 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
27734
27735         PR debug/47881
27736         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
27737         removed anything.
27738
27739         PR tree-optimization/48022
27740         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
27741         for EQ/NE_EXPR.
27742
27743 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
27744
27745         PR debug/47991
27746         * var-tracking.c (find_use_val): Return NULL for
27747         cui->sets && cui->store_p BLKmode MEMs.
27748
27749 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
27750
27751         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
27752         Remove.
27753         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
27754         xstormy16_print_operand_address): Remove.
27755         * config/stormy16/stormy16.c (xstormy16_print_operand,
27756         xstormy16_print_operand_address): Make static.
27757         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
27758
27759 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
27760
27761         PR target/47862
27762         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
27763         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
27764         before definition.
27765
27766 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
27767
27768         PR bootstrap/48000
27769         * cfgloopmanip.c (fix_bb_placements): Return immediately
27770         if FROM is BASE_LOOP's header.
27771
27772 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
27773
27774         * gimplify.c (gimplify_function_tree): Fix building calls
27775         to __builtin_return_address.
27776
27777 2011-03-07  Alan Modra  <amodra@gmail.com>
27778
27779         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
27780         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
27781         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
27782         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
27783         return_mode args.
27784         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
27785         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
27786         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
27787         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
27788         * config/rs6000/rs6000.c
27789         (rs6000_elf_end_indicate_exec_stack): Rename to..
27790         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
27791         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
27792         (rs6000_file_start): ..here.
27793         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
27794         file scope variables.
27795         (call_ABI_of_interest): New function.
27796         (init_cumulative_args): Set above vars when function return value
27797         is a float, vector, or small struct.
27798         (rs6000_function_arg_advance_1): Likewise for function args.
27799         (rs6000_va_start): Set rs6000_passes_float if variable arg function
27800         references float args.
27801
27802 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
27803
27804         * doc/cfg.texi: Remove "See" before @ref.
27805         * doc/invoke.texi: Likewise.
27806
27807 2011-03-05  Jason Merrill  <jason@redhat.com>
27808
27809         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
27810
27811 2011-03-05  Anthony Green  <green@moxielogic.com>
27812
27813         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
27814
27815 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
27816
27817         PR rtl-optimization/47899
27818         * cfgloopmanip.c (fix_bb_placements): Fix first argument
27819         to flow_loop_nested_p when moving the loop upward.
27820
27821 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
27822
27823         PR target/47719
27824         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
27825
27826 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
27827
27828         PR tree-optimization/47967
27829         * ipa-cp.c (build_const_val): Return NULL instead of creating
27830         VIEW_CONVERT_EXPR for mismatching sizes.
27831         (ipcp_create_replace_map): Return NULL if build_const_val failed.
27832         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
27833         give up on versioning.
27834
27835 2011-03-05  Alan Modra  <amodra@gmail.com>
27836
27837         PR target/47986
27838         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
27839         full cmodel medium/large lo_sum + high addresses.
27840
27841 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27842
27843         * config/s390/s390.c (s390_decompose_address): Reject non-literal
27844         pool references in UNSPEC_LTREL_OFFSET.
27845
27846 2011-03-04  Jan Hubicka  <jh@suse.cz>
27847
27848         PR lto/47497
27849         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
27850         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
27851         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
27852         Add node pointers.
27853         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
27854         cgraph_add_thunk): Add node pointers.
27855         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
27856         associated to right node.
27857         (input_node): Update use of cgraph_same_body_alias
27858         and cgraph_add_thunk.
27859
27860 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
27861
27862         * config/i386/i386.opt (mprefer-avx128): New flag.
27863         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
27864         modes when the flag -mprefer-avx128 is on.
27865
27866 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
27867
27868         * dwarf2out.c (compare_loc_operands): Fix address handling.
27869
27870 2011-03-04  Alan Modra  <amodra@gmail.com>
27871
27872         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
27873
27874 2011-03-04  Richard Guenther  <rguenther@suse.de>
27875
27876         PR middle-end/47968
27877         * expmed.c (extract_bit_field_1): Prefer vector modes that
27878         vec_extract patterns can handle.
27879
27880 2011-03-04  Richard Guenther  <rguenther@suse.de>
27881
27882         PR middle-end/47975
27883         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
27884
27885 2011-03-04  Richard Henderson  <rth@redhat.com>
27886
27887         * explow.c (emit_stack_save): Remove 'after' parameter.
27888         (emit_stack_restore): Likewise.
27889         * expr.h: Update to match.
27890         * builtins.c, calls.c, stmt.c: Likewise.
27891         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
27892         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
27893         * function.c (expand_function_end): Insert the emit_stack_save
27894         sequence before parm_birth_insn instead of after.
27895
27896 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
27897
27898         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
27899         (ssse3_pmaddubsw128): Ditto.
27900         (ssse3_pmaddubsw): Ditto.
27901
27902 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
27903
27904         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
27905
27906 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
27907
27908         PR c/47963
27909         * gimplify.c (omp_add_variable): Only call omp_notice_variable
27910         on TYPE_SIZE_UNIT if it is a DECL.
27911
27912         PR debug/47283
27913         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
27914         first operand is not is_gimple_mem_ref_addr, try to fold it.
27915         If the operand still isn't is_gimple_mem_ref_addr, clear
27916         MEM_EXPR on op0.
27917
27918 2011-03-03  Richard Guenther  <rguenther@suse.de>
27919
27920         PR middle-end/47283
27921         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
27922         match comment.
27923         (refs_may_alias_p_1): For release branches return true if
27924         we are confused by our input.
27925
27926 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27927
27928         * config/s390/s390.c (s390_function_value): Rename to ...
27929         (s390_function_and_libcall_value): ... this.
27930         (s390_function_value): New function.
27931         (s390_libcall_value): New function.
27932         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
27933         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
27934         target macro definitions.
27935         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
27936
27937 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
27938
27939         * config/i386/freebsd64.h (CC1_SPEC): Define.
27940         * config/i386/linux64.h (CC1_SPEC): Define.
27941         * config/i386/x86-64.h (CC1_SPEC): Don't define.
27942
27943 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
27944
27945         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
27946         Remove.
27947         * config/stormy16/stormy16.c: Include reload.h.
27948         (xstormy16_memory_move_cost): New function.
27949         (TARGET_MEMORY_MOVE_COST): Define.
27950
27951 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
27952
27953         PR rtl-optimization/47925
27954         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
27955         with side effects.  Remove the more-specific check for volatile asms.
27956
27957 2011-03-02  Alan Modra  <amodra@gmail.com>
27958
27959         PR target/47935
27960         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
27961         toc relative addresses for valid offsets.
27962
27963 2011-03-01  Richard Guenther  <rguenther@suse.de>
27964
27965         PR tree-optimization/47890
27966         * tree-vect-loop.c (get_initial_def_for_induction): Set
27967         related stmt properly.
27968
27969 2011-03-01  Richard Guenther  <rguenther@suse.de>
27970
27971         PR lto/47924
27972         * lto-streamer.c (lto_record_common_node): Also register
27973         the canonical type.
27974
27975 2011-03-01  Richard Guenther  <rguenther@suse.de>
27976
27977         PR lto/46911
27978         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
27979         Do not stream DECL_ABSTRACT_ORIGIN.
27980         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27981         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27982         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27983         Do not stream DECL_ABSTRACT_ORIGIN.
27984         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
27985         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
27986
27987 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
27988
27989         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
27990         FUNCTION_VALUE_REGNO_P): Remove.
27991         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
27992         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
27993         Add 'outgoing' argument.
27994         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
27995         function.
27996         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27997         TARGET_FUNCTION_VALUE_REGNO_P): Define.
27998
27999 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
28000
28001         PR debug/28047
28002         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
28003         (lookup_filename): Likewise.
28004         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
28005
28006 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
28007             Jakub Jelinek  <jakub@redhat.com>
28008
28009         PR middle-end/47893
28010         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
28011         (assign_stack_local_1): Change last argument type to int.
28012         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
28013         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
28014         don't record padding space into frame_space_list nor use those areas.
28015         (assign_stack_local): Adjust caller.
28016         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
28017         of assign_stack_local, pass 0 as last argument.
28018         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
28019         callers.
28020
28021 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
28022
28023         PR debug/47283
28024         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
28025         Use target address_mode and pointer_mode hooks instead of hardcoded
28026         Pmode and ptr_mode.  Handle some simple cases of extending if
28027         POINTERS_EXTEND_UNSIGNED < 0.
28028         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
28029         Call convert_debug_memory_address.
28030         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
28031         convert_debug_memory_address.
28032
28033         PR middle-end/46790
28034         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
28035         * configure: Regenerated.
28036         * config.in: Regenerated.
28037         * varasm.c (default_function_section): Return NULL
28038         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
28039
28040 2011-02-28  Martin Jambor  <mjambor@suse.cz>
28041
28042         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
28043         the description to match the printed values.
28044
28045 2011-02-28  Richard Guenther  <rguenther@suse.de>
28046
28047         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
28048         of the copied scope tree.
28049
28050 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28051
28052         * doc/extend.texi (Function Attributes): Avoid deeply (and
28053         wrongly) nested tables.
28054
28055 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
28056
28057         PR middle-end/47903
28058         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
28059         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
28060         r isn't op0 nor op1.
28061
28062 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
28063
28064         * config/avr/avr.md: Remove magic comment for emacs.
28065
28066 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
28067
28068         PR target/45261
28069         * config/avr/avr.c (avr_option_override): Use error on bad options.
28070         (avr_help): New function.
28071         (TARGET_HELP): Define.
28072
28073 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
28074
28075         PR target/42240
28076         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
28077         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
28078
28079 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
28080
28081         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
28082         (ARM Options): Ditto.
28083         (i386 and x86-64 Options): Ditto.
28084         (RX Options): Ditto.
28085         (SPARC Options): Ditto.
28086
28087 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
28088
28089         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
28090         FreeBSD 6 and later.  Generally use cpu generic.
28091
28092 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
28093
28094         * doc/cpp.texi: Update copyright years.
28095
28096 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
28097
28098         PR target/46898
28099         * config/lm32/lm32.md (ashrsi3): Added needed variable.
28100
28101 2011-02-25  Jon Beniston  <jon@beniston.com>
28102
28103         PR target/46898
28104         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
28105         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
28106         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
28107         (lm32_block_move_inline): Add type cast to remove warning.
28108         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
28109         (gen_int_relational): Move declarations to start of function.
28110
28111 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
28112
28113         PR tree-optimization/45470
28114         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
28115         can throw internally only.
28116         * tree-vect-stmts.c (vectorizable_call): Likewise.
28117
28118 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
28119
28120         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
28121         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
28122         * config/stormy16/stormy16-protos.h
28123         (xstormy16_preferred_reload_class): Remove.
28124         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
28125         static. Change 'rclass' argument and return type to reg_class_t.
28126         (TARGET_PREFERRED_RELOAD_CLASS,
28127         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
28128
28129 2011-02-24  Richard Guenther  <rguenther@suse.de>
28130
28131         * lto-streamer-in.c (input_bb): Do not find referenced vars
28132         in debug statements.
28133
28134 2011-02-23  Jason Merrill  <jason@redhat.com>
28135
28136         * common.opt (fabi-version): Document v5 and v6.
28137
28138 2011-02-23  Richard Guenther  <rguenther@suse.de>
28139
28140         PR tree-optimization/47849
28141         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
28142
28143 2011-02-23  Jie Zhang  <jie@codesourcery.com>
28144
28145         * opts-common.c (decode_cmdline_option): Print empty string
28146         argument as "" in decoded->orig_option_with_args_text.
28147         * gcc.c (execute): Print empty string argument as ""
28148         in the verbose output.
28149         (do_spec_1): Keep empty string argument.
28150
28151 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
28152
28153         * config.gcc: Declare score-* and crx-* obsolete.
28154
28155 2011-02-23  Jie Zhang  <jie@codesourcery.com>
28156
28157         PR rtl-optimization/47763
28158         * web.c (web_main): Ignore naked clobber when replacing register.
28159
28160 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
28161
28162         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
28163         Remove.
28164
28165 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
28166
28167         PR doc/47848
28168         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
28169
28170 2011-02-22  Mike Stump  <mikestump@comcast.net>
28171
28172         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
28173         assembler.
28174         * configure: Regenerate.
28175
28176 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
28177
28178         PR rtl-optimization/46002
28179         * ira-color.c (update_copy_costs): Change class intersection
28180         test to reg_class_contents[] test of 'hard_regno'.
28181
28182 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
28183
28184         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
28185         than Driver option.
28186         * config/hpux11.opt (mt): Likewise.
28187         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
28188         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
28189         * config/vax/elf.opt (mno-asm-pic): Likewise.
28190         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
28191
28192 2011-02-21  Mike Stump  <mikestump@comcast.net>
28193
28194         PR target/47822
28195         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
28196         tree so we can get save the type.
28197         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
28198         for CFString instead of trying to use past the end of the builtins.
28199         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
28200         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
28201         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
28202         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
28203         Rename to darwin_builtin_cfstring.
28204         (darwin_init_cfstring_builtins): Return the built type.
28205
28206 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
28207
28208         PR target/47840
28209         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
28210         (_mm256_insert_epi64): Use _mm_insert_epi64.
28211
28212 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
28213
28214         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28215         * config/stormy16/stormy16-protos.h
28216         (xstormy16_mode_dependent_address_p): Remove.
28217         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
28218         Make static. Change return type to bool. Change argument type to
28219         const_rtx. Remove dead code.
28220         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28221
28222 2011-02-21  Richard Guenther  <rguenther@suse.de>
28223
28224         PR lto/47820
28225         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
28226         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
28227         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
28228         TUs context.
28229         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
28230         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
28231
28232 2011-02-20  Richard Guenther  <rguenther@suse.de>
28233
28234         PR lto/47822
28235         * tree.c (free_lang_data_in_decl): Clean builtins from
28236         the TU decl BLOCK_VARS.
28237
28238 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
28239
28240         PR debug/47620
28241         PR debug/47630
28242         * haifa-sched.c (fix_tick_ready): Skip tick computation
28243         for debug insns.
28244
28245 2011-02-19  Richard Guenther  <rguenther@suse.de>
28246
28247         PR lto/47647
28248         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
28249         Remove lazy BLOCK_VARS streaming.
28250         (lto_input_ts_block_tree_pointers): Likewise.
28251         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
28252
28253 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
28254
28255         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
28256
28257 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
28258
28259         * config/i386/biarch32.h, config/i386/mach.h,
28260         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
28261
28262 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
28263
28264         PR target/47800
28265         * config/i386/i386.md (peephole2 for shift and plus): Use
28266         operands[1] original mode in the first insn.
28267
28268 2011-02-18  Mike Stump  <mikestump@comcast.net>
28269
28270         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
28271
28272 2011-02-18  Jan Hubicka  <jh@suse.cz>
28273
28274         PR middle-end/47788
28275         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
28276         to zero when the function is not inlinable at all.
28277
28278 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28279
28280         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
28281         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
28282         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
28283         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
28284         * config/pa/t-pa64: Likewise.
28285         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
28286
28287 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
28288
28289         PR driver/47787
28290         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
28291
28292 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28293
28294         PR target/47792
28295         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
28296
28297 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
28298
28299         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
28300         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
28301         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
28302         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
28303         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
28304         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
28305         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
28306         m32r_load_postinc_p, m32r_store_preinc_predec_p,
28307         m32r_legitimate_address_p): New functions.
28308         * config/m32r/constraints.md (constraint "S"): Don't use
28309         STORE_PREINC_PREDEC_P.
28310         (constraint "U"): Don't use LOAD_POSTINC_P.
28311
28312 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
28313
28314         PR rtl-optimization/46178
28315         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
28316         compute ira_hard_regno_cover_class[].
28317
28318 2011-02-18  Richard Guenther  <rguenther@suse.de>
28319
28320         PR lto/47798
28321         * lto-streamer.h (lto_global_var_decls): Declare.
28322         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
28323         statics for global var processing.
28324
28325 2011-02-18  Richard Guenther  <rguenther@suse.de>
28326
28327         PR tree-optimization/47737
28328         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
28329         edge dominance check.
28330
28331 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
28332
28333         PR debug/47780
28334         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
28335         avoid invalid rtx sharing.
28336
28337 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
28338
28339         * doc/cpp.texi (Obsolete Features): Add background on the
28340         origin of assertions.
28341
28342 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
28343
28344         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
28345         objc_abi == 2.
28346         * config/darwin.c (output_objc_section_asm_op): Added support for
28347         ABI v1 and v2.
28348         (is_objc_metadata): New.
28349         (darwin_objc2_section): New.
28350         (darwin_objc1_section): New.
28351         (machopic_select_section): Added support for ABI v1 and v2.
28352         (darwin_emit_objc_zeroed): New.
28353         (darwin_output_aligned_bss): Detect objc metadata and treat it
28354         appropriately.
28355         (darwin_asm_output_aligned_decl_common): Same.
28356         (darwin_asm_output_aligned_decl_local): Same.
28357         * config/darwin-sections.def: Updated for ABI v1 and v2.
28358         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
28359         compiling Objective-C code for the NeXT runtime, default to using
28360         ABI version 0 for 32-bit, and version 2 for 64-bit.
28361
28362 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28363
28364         * common.opt (optimize_fast): New Variable.
28365         * opts.c (default_options_optimization): Use opts->x_optimize_fast
28366         instead of local variable ofast.
28367
28368 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
28369
28370         * doc/invoke.texi (fobjc-abi-version): Documented.
28371         (fobjc-nilcheck): Documented.
28372         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
28373         version.
28374
28375 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28376
28377         PR driver/47390
28378         * common.opt (export-dynamic): New Driver option.
28379         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
28380
28381 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28382
28383         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
28384
28385 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
28386             Jan Hubicka  <jh@suse.cz>
28387
28388         PR debug/47106
28389         PR debug/47402
28390         * cfgexpand.c (account_used_vars_for_block): Remove.
28391         (estimated_stack_frame_size): Use referenced vars.
28392         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
28393         that were referenced in the original function.  Test src_fn
28394         rather than cfun.  Drop redundant get_var_ann.
28395         (setup_one_parameter): Drop redundant get_var_ann.
28396         (declare_return_variable): Likewise.
28397         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
28398         (copy_arguments_for_versioning): Drop redundant get_var_ann.
28399         * ipa-inline.c (compute_inline_parameters): Do not compute
28400         disregard_inline_limits here.
28401         (compute_inlinable_for_current, pass_inlinable): New.
28402         (pass_inline_parameters): Require PROP_referenced_vars.
28403         * cgraphunit.c (cgraph_process_new_functions): Don't run
28404         compute_inline_parameters explicitly unless function is in SSA form.
28405         (cgraph_analyze_function): Set .disregard_inline_limits.
28406         * tree-sra.c (convert_callers): Compute inliner parameters
28407         only for functions already in SSA form.
28408
28409 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28410
28411         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
28412         -mlittle-endian-data.
28413
28414 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
28415
28416         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
28417         -mno-fpu, not -fpu and -no-fpu.
28418         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
28419         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
28420
28421 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
28422
28423         PR target/43653
28424         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
28425         input reload with PLUS RTX.
28426
28427 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28428
28429         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
28430         of InverseVar(MDMX).
28431
28432 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28433
28434         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
28435         --m4-340.
28436
28437 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28438
28439         * config/mn10300/mn10300.opt (mno-crt0): New.
28440
28441 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28442
28443         * config/m68k/uclinux.opt (static-libc): New Driver option.
28444
28445 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28446
28447         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
28448
28449 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
28450
28451         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
28452         %{muser-extend-enabled}.
28453
28454 2011-02-16  Richard Guenther  <rguenther@suse.de>
28455
28456         PR tree-optimization/47738
28457         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
28458         the TODO from tree_predictive_commoning.
28459
28460 2011-02-15  Jeff Law  <law@redhat.com>
28461
28462         Revert
28463         2011-01-25  Jeff Law  <law@redhat.com>
28464
28465         PR rtl-optimization/37273
28466         * ira-costs.c (scan_one_insn): Detect constants living in memory and
28467         handle them like argument loads from stack slots.  Do not double
28468         count memory for memory constants and argument loads from stack slots.
28469
28470 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
28471
28472         PR target/47755
28473         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
28474         mode for vector constants.  Remove code that checks for TImode.
28475
28476 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28477
28478         PR debug/47106
28479         PR debug/47402
28480         * cgraph.h (compute_inline_parameters): Return void.
28481         * ipa-inline.c (compute_inline_parameters): Adjust.
28482
28483 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28484
28485         PR debug/47106
28486         PR debug/47402
28487         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
28488         rather than decl.
28489         * cfgexpand.c (estimated_stack_frame_size): Likewise.
28490         * ipa-inline.c (compute_inline_parameters): Adjust.
28491
28492 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28493
28494         PR debug/47106
28495         PR debug/47402
28496         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
28497         Adjust all users.  Pass FN to...
28498         * tree-flow-inline.h (first_referenced_var): ... this.  Add
28499         fn argument.
28500         * ipa-struct-reorg.c: Adjust.
28501         * tree-dfa.c: Adjust.
28502         * tree-into-ssa.c: Adjust.
28503         * tree-sra.c: Adjust.
28504         * tree-ssa-alias.c: Adjust.
28505         * tree-ssa-live.c: Adjust.
28506         * tree-ssa.c: Adjust.
28507         * tree-ssanames.c: Adjust.
28508         * tree-tailcall.c: Adjust.
28509
28510 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
28511
28512         PR debug/47106
28513         PR debug/47402
28514         * tree-flow.h (referenced_var_lookup): Add fn parameter.
28515         Adjust all callers.
28516         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
28517         * tree-flow-inline.h: Adjust.
28518         * gimple-pretty-print.c: Adjust.
28519         * tree-into-ssa.c: Adjust.
28520         * tree-ssa.c: Adjust.
28521         * cfgexpand.c: Adjust.
28522
28523 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
28524
28525         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
28526         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28527         (EXTRA_CONSTRAINT): Delete.
28528         * config/iq2000/constraints.md: New file.
28529         * config/iq2000/iq2000.md: Include it.
28530         (define_insn ""): Delete.
28531         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
28532         unsupported constraint letters from patterns.
28533         (call_value, call_value_internal1): Likewise.
28534         (call_value_multiple_internal1): Likewise.
28535
28536 2011-02-15  Nick Clifton  <nickc@redhat.com>
28537
28538         * config/mn10300/mn10300.c: Include tm-constrs.h.
28539         (struct liw_data): New data structure describing an LIW candidate
28540         instruction.
28541         (extract_bundle): Use struct liw_data.  Allow small integer
28542         operands for some instructions.
28543         (check_liw_constraints): Use struct liw_data.  Remove swapped
28544         parameter.  Add comments describing the checks.  Fix bug when
28545         assigning the source of liw1 to the source of liw2.
28546         (liw_candidate): Delete.  Code moved into extract_bundle.
28547         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
28548         before swapping.
28549         * config/mn10300/predicates.md (liw_operand): New predicate.
28550         Allows registers and small integer constants.
28551         * config/mn10300/constraints.md (O): New constraint.  Accetps
28552         integers in the range -8 to +7 inclusive.
28553         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
28554         for moving a small integer into a register.  Give this alternative
28555         LIW attributes.
28556         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
28557         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
28558         using the J,K,L and M constraints,
28559         (liw): Remove SI mode on second operands to allow for HI and QI
28560         mode values.
28561         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
28562         instruction.
28563
28564 2011-02-15  Richard Guenther  <rguenther@suse.de>
28565
28566         PR tree-optimization/47743
28567         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
28568         for a non-type-compatible VN lookup bail out.
28569
28570 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
28571
28572         * config/fr30/constraints.md: New file.
28573         * config/fr30/fr30.md: Include it.
28574         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
28575         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28576         (EXTRA_CONSTRAINT): Delete.
28577
28578 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
28579
28580         * config/frv/constraints.md: New file.
28581         * config/frv/predicates.md: Include it.
28582         * config/frv/frv.c (reg_class_from_letter): Delete.
28583         (frv_option_override): Don't initialize it.
28584         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
28585         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
28586         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
28587         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28588         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
28589         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28590         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
28591         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
28592         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
28593         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
28594         (REG_CLASS_FROM_CONSTRAINT): Delete.
28595
28596 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
28597
28598         PR middle-end/47581
28599         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
28600         if frame size is 0 in a leaf function.
28601
28602 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28603
28604         PR pch/14940
28605         * config/alpha/host-osf.c: New file.
28606         * config/alpha/x-osf: New file.
28607         * config.host (alpha*-dec-osf*): Use it.
28608
28609 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
28610
28611         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28612         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
28613         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
28614         (rx_mode_dependent_address_p): ...this. Make static. Change argument
28615         type to const_rtx.
28616         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28617
28618 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
28619
28620         * config/stormy16/constraints.md: New file.
28621         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
28622         Use satisfies_constraint_Q and satisfies_constraint_R.
28623         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
28624         Delete.
28625         (xstormy16_legitiamte_address_p): Declare.
28626         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
28627         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28628         (EXTRA_CONSTRAINT): Delete.
28629         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
28630         Un-staticize.
28631         (xstormy16_extra_constraint_p): Delete.
28632
28633 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
28634
28635         PR tree-optimization/46494
28636         * loop-unroll.c (split_edge_and_insert): Adjust comment.
28637         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
28638         (pass_rtl_loop_done): Add TODO_verify_flow.
28639         * fwprop.c (pass_rtl_fwprop): Likewise.
28640         * modulo-sched.c (pass_sms): Likewise.
28641         * tree-ssa-dom.c (pass_dominator): Likewise.
28642         * tree-ssa-loop-ch.c (pass_ch): Likewise.
28643         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
28644         (pass_tree_loop_done): Likewise.
28645         * tree-ssa-pre.c (execute_pre): Likewise.
28646         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
28647         * tree-ssa-sink.c (pass_sink_code): Likewise.
28648         * tree-vrp.c (pass_vrp): Likewise.
28649
28650 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
28651
28652         * config/v850/constraints.md: New file.
28653         * config/v850/v850.md: Include it.
28654         * config/v850/predicates.md (reg_or_0_operand): Use
28655         satisfies_constraint_G.
28656         (special_symbolref_operand): Use satisfies_constraint_K.
28657         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
28658         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
28659         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
28660         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
28661         (EXTRA_CONSTRAINT): Delete.
28662         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
28663         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
28664         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
28665
28666 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
28667
28668         PR target/47696
28669         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
28670         description.
28671
28672 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
28673
28674         * config/mcore/constraints.md: New file.
28675         * config/mcore/mcore.md: Include it.
28676         * config/mcore/mcore.c (reg_class_from_letter): Delete.
28677         * config/mcore/mcore.h (reg_class_from_letter): Delete.
28678         (REG_CLASS_FROM_LETTER): Delete.
28679         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
28680         insn_const_int_ok_for_constraint.
28681         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
28682         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
28683         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
28684         (EXTRA_CONSTRAINT): Delete.
28685
28686 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28687
28688         PR ada/41929
28689         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
28690         (IS_SIGHANDLER): Define.
28691         (sparc64_is_sighandler): New function, split off from
28692         sparc64_fallback_frame_state.
28693         (sparc_is_sighandler): New function, split off from
28694         sparc_fallback_frame_state.
28695         (sparc64_fallback_frame_state): Merge with ...
28696         (sparc_fallback_frame_state): ... this into ...
28697         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
28698         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
28699         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
28700         stack instead of hardcoded offsets.
28701
28702 2011-02-14  Andriy Gapon  <avg@freebsd.org>
28703
28704         PR target/45808
28705         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
28706
28707 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28708
28709         * configure: Regenerate.
28710
28711 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
28712
28713         PR driver/45731
28714         * gcc.c (asm_options): Correct spec matching --target-help.
28715
28716 2011-02-12  Martin Jambor  <mjambor@suse.cz>
28717
28718         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
28719         to gimple call error.
28720
28721 2011-02-12  Mike Stump  <mikestump@comcast.net>
28722
28723         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
28724         comments in backslash regions.
28725
28726 2011-02-12  Mike Stump  <mikestump@comcast.net>
28727             Jakub Jelinek  <jakub@redhat.com>
28728             Iain Sandoe  <iains@gcc.gnu.org>
28729
28730         PR target/47324
28731         * dwarf2out.c (output_cfa_loc): When required, apply the
28732         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
28733         (output_loc_sequence): Likewise.
28734         (output_loc_operands_raw): Likewise.
28735         (output_loc_sequence_raw): Likewise.
28736         (output_cfa_loc): Likewise.
28737         (output_loc_list): Suppress register number adjustment when
28738         calling output_loc_sequence()
28739         (output_die): Likewise.
28740
28741 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
28742
28743         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
28744         Remove macros.
28745         * config/xtensa/xtensa.c (xtensa_register_move_cost,
28746         xtensa_memory_move_cost): New functions.
28747         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
28748
28749 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
28750
28751         PR lto/47225
28752         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
28753         in the current directory.
28754         * configure: Rebuilt.
28755
28756 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
28757
28758         * config/darwin.c (darwin_override_options): Add a hunk missed
28759         from the commit of r168571.  Trim comment line lengths and
28760         correct indents of the preceding block.
28761
28762 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
28763
28764         * gcc.c (driver_handle_option): Concatenate the argument to -F with
28765         the switch.
28766
28767 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
28768
28769         * common.opt (nostartfiles): New Driver option.
28770
28771 2011-02-11  Xinliang David Li  <davidxl@google.com>
28772
28773         PR tree-optimization/47707
28774         * tree-chrec.c (convert_affine_scev): Keep type precision.
28775
28776 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
28777
28778         PR tree-optimization/47420
28779         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
28780
28781 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
28782
28783         PR rtl-optimization/47614
28784         * rtl.h (check_for_inc_dec): Declare.
28785         * dse.c (check_for_inc_dec): Externalize...
28786         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
28787         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
28788
28789 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
28790
28791         PR driver/47678
28792         * gcc.c (main): Do not compile inputs if there were errors in
28793         option handling.
28794         * opts-common.c (read_cmdline_option): Check for wrong language
28795         after other error checks.
28796
28797 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
28798
28799         * cgraph.c: Fix comment typos.
28800         * cgraph.h: Likewise.
28801         * cgraphunit.c: Likewise.
28802         * ipa-cp.c: Likewise.
28803         * ipa-inline.c: Likewise.
28804         * ipa-prop.c: Likewise.
28805         * ipa-pure-const.c: Likewise.
28806         * ipa-ref.c: Likewise.
28807         * ipa-reference.c: Likewise.
28808
28809 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
28810
28811         PR debug/47684
28812         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
28813
28814 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28815
28816         PR testsuite/47400
28817         * doc/sourcebuild.texi (Require Support): Document
28818         dg-require-ascii-locale.
28819
28820 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
28821
28822         * doc/lto.texi (Write summary): Fix missing parentheses.
28823
28824 2011-02-10  DJ Delorie  <dj@redhat.com>
28825
28826         * config/m32c/m32c.c (m32c_option_override): Disable
28827         -fcombine-stack-adjustments until flag value tracking and compare
28828         optimization can be rewritten.
28829
28830 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
28831
28832         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
28833         PROCESSOR_POWER7.
28834         (PROCESSOR_DEFAULT64): Likewise.
28835
28836 2011-02-10  Richard Henderson  <rth@redhat.com>
28837
28838         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
28839         change from 2011-02-03.
28840         * config/rx/rx.c (flags_from_code): Likewise.
28841         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
28842         is valid, n/pz otherwise.
28843         (rx_select_cc_mode): Return CCmode if Y is not zero.
28844
28845 2011-02-10  Richard Guenther  <rguenther@suse.de>
28846
28847         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
28848
28849 2011-02-10  Richard Guenther  <rguenther@suse.de>
28850
28851         PR tree-optimization/47677
28852         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
28853
28854 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
28855
28856         PR target/47665
28857         * combine.c (make_compound_operation): Only change shifts into
28858         multiplication for SCALAR_INT_MODE_P.
28859
28860 2011-02-10  Jie Zhang  <jie@codesourcery.com>
28861
28862         PR testsuite/47622
28863         Revert
28864         2011-02-05  Jie Zhang  <jie@codesourcery.com>
28865         PR debug/42631
28866         * web.c (entry_register): Don't clobber the number of the
28867         first uninitialized reference in used[].
28868
28869 2011-02-09  Richard Guenther  <rguenther@suse.de>
28870
28871         PR tree-optimization/47664
28872         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
28873         all edges again.
28874
28875 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
28876
28877         PR target/46481
28878         PR target/47032
28879         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
28880         PROCESSOR_POWER7.
28881         (PROCESSOR_DEFAULT64): Same.
28882         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
28883
28884 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28885
28886         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
28887
28888 2011-02-09  Martin Jambor  <mjambor@suse.cz>
28889
28890         PR middle-end/45505
28891         * tree-sra.c (struct access): New flags grp_scalar_read and
28892         grp_scalar_write.  Changed description of assignment read and write
28893         flags.
28894         (dump_access): Dump new flags, reorder all of them.
28895         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
28896         to detect multiple scalar reads.
28897         (analyze_access_subtree): Use the new scalar read write flags instead
28898         of the old flags.  Adjusted comments.
28899
28900 2011-02-08  DJ Delorie  <dj@redhat.com>
28901
28902         PR target/47548
28903         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
28904         patterns.
28905
28906 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28907
28908         * config/m68k/uclinux.opt: New.
28909         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
28910
28911 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28912
28913         * config/cris/elf.opt (sim): New Driver option.
28914
28915 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28916
28917         * config/xtensa/elf.opt: New.
28918         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
28919
28920 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28921
28922         * config/vax/elf.opt: New.
28923         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
28924
28925 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28926
28927         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
28928
28929 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28930
28931         * config/gnu-user.opt: New.
28932         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
28933         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
28934         *-*-uclinux*): Use gnu-user.opt.
28935
28936 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
28937
28938         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
28939         * config/i386/gnu.h (CPP_SPEC): Likewise.
28940
28941 2011-02-08  Ian Lance Taylor  <iant@google.com>
28942
28943         * common.opt (fcx-limited-range): Add SetByCombined flag.
28944         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
28945         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
28946         (fassociative-math, freciprocal-math): Likewise.
28947         (funsafe-math-optimizations): Likewise.
28948         * opth-gen.awk: Handle SetByCombined.
28949         * optc-gen.awk: Likewise.
28950         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
28951         (set_unsafe_math_optimizations_flags): Likewise.
28952         * doc/options.texi (Option properties): Document SetByCombined.
28953
28954 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
28955
28956         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
28957         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
28958         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
28959         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
28960         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
28961
28962 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
28963
28964         PR tree-optimization/46834
28965         PR tree-optimization/46994
28966         PR tree-optimization/46995
28967         * graphite-sese-to-poly.c (used_outside_reduction): New.
28968         (detect_commutative_reduction): Call used_outside_reduction.
28969         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
28970         translate_scalar_reduction_to_array only when at least one
28971         loop-phi/close-phi tuple has been detected.
28972
28973 2011-02-08  Richard Guenther  <rguenther@suse.de>
28974
28975         PR middle-end/47639
28976         * tree-vect-generic.c (expand_vector_operations_1): Update
28977         stmts here ...
28978         (expand_vector_operations): ... not here.  Cleanup EH info
28979         and the CFG if required.
28980
28981 2011-02-08  Richard Guenther  <rguenther@suse.de>
28982
28983         PR tree-optimization/47641
28984         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
28985         require type compatibility.
28986
28987 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28988
28989         * gimple-low.c (lower_function_body): Don't remove the location of
28990         the return statement here.
28991         (lower_gimple_return): Do it here instead but only if the return
28992         statement is actually used twice.
28993
28994 2011-02-08  Richard Guenther  <rguenther@suse.de>
28995
28996         PR tree-optimization/47632
28997         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
28998         unused up_to_stmt parameter, return whether cfg-cleanup is
28999         necessary, remove EH info properly.
29000         (forward_propagate_into_gimple_cond): Adjust caller.
29001         (forward_propagate_into_cond): Likewise.
29002         (forward_propagate_comparison): Likewise.
29003         (tree_ssa_forward_propagate_single_use_vars): Make
29004         forward_propagate_comparison case similar to the two others.
29005
29006 2011-02-08  Nick Clifton  <nickc@redhat.com>
29007
29008         * config/mn10300/mn10300.opt (mliw): New command line option.
29009         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
29010         (liw_bundling): New automaton.
29011         (liw): New attribute.
29012         (liw_op): New attribute.
29013         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
29014         (movsi_internal): Add LIW attributes.
29015         (andsi3): Likewise.
29016         (iorsi3): Likewise.
29017         (xorsi3): Likewise.
29018         (addsi3): Separate register and immediate alternatives.
29019         Add LIW attributes.
29020         (subsi3): Likewise.
29021         (cmpsi): Likewise.
29022         (aslsi3): Likewise.
29023         (lshrsi3): Likewise.
29024         (ashrsi3): Likewise.
29025         (liw): New pattern.
29026         * config/mn10300/mn10300.c (liw_op_names): New
29027         (mn10300_print_operand): Handle 'W' operand descriptor.
29028         (extract_bundle): New function.
29029         (check_liw_constraints): New function.
29030         (liw_candidate): New function.
29031         (mn10300_bundle_liw): New function.
29032         (mn10300_reorg): New function.
29033         (TARGET_MACHINE_DEPENDENT_REORG): Define.
29034         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
29035         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
29036         __LIW__ or __NO_LIW__.
29037         * doc/invoke.texi: Describe the -mliw command line option.
29038
29039 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29040
29041         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
29042         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
29043         pthread_mutex_unlock): Remove.
29044         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
29045         * config/pa/t-pa64: Likewise.
29046         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
29047         shared libc if not linking against libpthread.
29048         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
29049
29050 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
29051
29052         PR target/47558
29053         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
29054         on 10.6 and later to ensure that we always use the unwinder from
29055         the system.  Only add -no_compact_unwind when tarteting darwin
29056         10.6 or later.
29057
29058 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
29059
29060         PR target/46997
29061         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
29062         (vec_interleave_lowv2sf): Ditto.
29063         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
29064         (vec_extract_oddv2sf): Ditto.
29065
29066 2011-02-07  Mike Stump  <mikestump@comcast.net>
29067
29068         PR target/42333
29069         Add __ieee_divdc3 entry point.
29070         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
29071         entry point.
29072         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
29073         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
29074         * config/darwin.c (darwin_rename_builtins): Add.
29075         * config/darwin-protos.h (darwin_rename_builtins): Add.
29076
29077 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
29078
29079         PR target/47636
29080         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
29081         for the condition.
29082
29083 2011-02-07  Mike Stump  <mikestump@comcast.net>
29084
29085         * config/darwin.opt (mmacosx-version-min): Update default OS version.
29086
29087 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
29088
29089         PR target/47534
29090         * config/avr/libgcc.S (exit): Move .endfunc
29091
29092 2011-02-07  Richard Guenther  <rguenther@suse.de>
29093
29094         PR tree-optimization/47615
29095         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
29096         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
29097         (run_scc_vn): Initialize it.
29098         (visit_reference_op_load): Use it.
29099         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
29100
29101 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29102
29103         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
29104         DImode trapping arithmetic libfuncs.
29105
29106 2011-02-07  Richard Guenther  <rguenther@suse.de>
29107
29108         PR tree-optimization/47621
29109         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
29110         two duplicates ...
29111         (execute_update_addresses_taken): ... here.  Make it more
29112         conservative in what we accept.
29113
29114 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
29115
29116         * config/sparc/freebsd.h (ASM_SPEC): Define.
29117         * config/sparc/vxworks.h (ASM_SPEC): Define.
29118
29119 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
29120
29121         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
29122
29123 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
29124
29125         * doc/invoke.texi: Remove reference to compiler internals from
29126         user documentation.
29127
29128         * reg-notes.def: Remove REG_VALUE_PROFILE.
29129         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
29130
29131 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
29132
29133         PR middle-end/47610
29134         * varasm.c (default_section_type_flags): If decl is NULL,
29135         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
29136
29137 2011-02-05  Jie Zhang  <jie@codesourcery.com>
29138
29139         PR debug/42631
29140         * web.c (entry_register): Don't clobber the number of the
29141         first uninitialized reference in used[].
29142
29143 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
29144
29145         PR tree-optimization/46194
29146         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
29147         (build_classic_dist_vector_1): Do not represent classic distance
29148         vectors when the access functions are variating in different loops.
29149
29150 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
29151
29152         * config/mips/iris6.opt: New.
29153         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
29154
29155 2011-02-04  Richard Henderson  <rth@redhat.com>
29156             Steve Ellcey  <sje@cup.hp.com>
29157
29158         PR target/46997
29159         * config/ia64/predicates.md (mux1_brcst_element): New.
29160         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
29161         * config/ia64/ia64.c (ia64_unpack_assemble): New.
29162         (ia64_unpack_sign): New.
29163         (ia64_expand_unpack): Rewrite using new routines.
29164         (ia64_expand_widen_sum): Ditto.
29165         (ia64_expand_dot_prod_v8qi): Ditto.
29166         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
29167         routines, add endian check.
29168         (pmpy2_even): Rename from pmpy2_r, add endian check.
29169         (pmpy2_odd): Rename from pmpy2_l, add endian check.
29170         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
29171         (vec_widen_smult_hi_v4hi): Ditto.
29172         (vec_widen_umult_lo_v4hi): Ditto.
29173         (vec_widen_umult_hi_v4hi): Ditto.
29174         (mulv2si3): Change endian checks.
29175         (sdot_prodv4hi): Rewrite with new calls.
29176         (udot_prodv4hi): New.
29177         (vec_pack_ssat_v4hi): Add endian check.
29178         (vec_pack_usat_v4hi): Ditto.
29179         (vec_pack_ssat_v2si): Ditto.
29180         (max1_even): Rename from max1_r, add endian check.
29181         (max1_odd): Rename from max1_l, add endian check.
29182         (*mux1_rev): Format change.
29183         (*mux1_mix): Ditto.
29184         (*mux1_shuf): Ditto.
29185         (*mux1_alt): Ditto.
29186         (*mux1_brcst_v8qi): Use new predicate.
29187         (vec_extract_evenv8qi): Remove endian check.
29188         (vec_extract_oddv8qi): Ditto.
29189         (vec_interleave_lowv4hi): Format change.
29190         (vec_interleave_highv4hi): Ditto.
29191         (mix2_even): Rename from mix2_r, add endian check.
29192         (mix2_odd): Rename from mux2_l, add endian check.
29193         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
29194         (vec_extract_evenodd_helper): Format change.
29195         (vec_extract_evenv4hi): Remove endian check.
29196         (vec_extract_oddv4hi): Remove endian check.
29197         (vec_interleave_lowv2si): Format change.
29198         (vec_interleave_highv2si): Format change.
29199         (vec_initv2si): Remove endian check.
29200         (vecinit_v2si): Add endian check.
29201         (reduc_splus_v2sf): Add endian check.
29202         (reduc_smax_v2sf): Ditto.
29203         (reduc_smin_v2sf): Ditto.
29204         (vec_initv2sf): Remove endian check.
29205         (fpack): Add endian check.
29206         (fswap): Add endian check.
29207         (vec_interleave_highv2sf): Add endian check.
29208         (vec_interleave_lowv2sf): Add endian check.
29209         (fmix_lr): Add endian check.
29210         (vec_setv2sf): Format change.
29211         (*vec_extractv2sf_0_be): Use shift to extract operand.
29212         (*vec_extractv2sf_1_be): New.
29213         (vec_pack_trunc_v4hi): Add endian check.
29214         (vec_pack_trunc_v2si): Format change.
29215
29216 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
29217
29218         PR inline-asm/23200
29219         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
29220         do bb, locus and block comparison and disallow loads if it is not set.
29221         (stmt_is_replaceable_p): New function.
29222         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
29223         callers.
29224         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
29225         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
29226         SSA_NAME_DEF_STMT.
29227         * tree-flow.h (stmt_is_replaceable_p): New prototype.
29228
29229 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
29230
29231         * config/rs6000/xilinx.opt: New.
29232         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
29233
29234 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
29235
29236         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
29237
29238 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
29239
29240         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
29241         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
29242         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
29243         secondary_reload_info, xtensa_secondary_reload): Remove.
29244         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
29245         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
29246         (xtensa_preferred_reload_class): Make static. Change return and
29247         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
29248         Use CONST_DOUBLE_P predicate.
29249         (xtensa_preferred_output_reload_class): New function.
29250         (xtensa_secondary_reload): Make static.
29251
29252 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
29253
29254         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
29255         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
29256         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
29257
29258 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
29259
29260         PR middle-end/31490
29261         * output.h (SECTION_RELRO): Define.
29262         (SECTION_MACH_DEP): Adjust.
29263         (get_variable_section): New prototype.
29264         * varpool.c (varpool_finalize_named_section_flags): New function.
29265         (varpool_assemble_pending_decls): Call it.
29266         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
29267         * cgraphunit.c (cgraph_output_in_order): Call
29268         varpool_finalize_named_section_flags.
29269         * varasm.c (get_section): Allow section flags conflicts between
29270         relro and read-only sections if the section hasn't been declared yet.
29271         Set SECTION_OVERRIDE after diagnosing section type conflict.
29272         (get_variable_section): No longer static.
29273         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
29274         readonly sections that need relocations.
29275         (decl_readonly_section_1): New function.
29276         (decl_readonly_section): Use it.
29277
29278         Revert:
29279         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
29280                     Steve Ellcey  <sje@cup.hp.com>
29281
29282         PR middle-end/31490
29283         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
29284         if section attribute used.
29285
29286 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
29287
29288         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
29289         * config/darwin.c (SECTION_NO_ANCHOR): Define.
29290         (darwin_init_sections): Remove assertion.
29291
29292 2011-02-03  Nick Clifton  <nickc@redhat.com>
29293
29294         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
29295         lt and ge.
29296         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
29297         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
29298         instead of "n" and "pz".
29299         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
29300         CC_FLAG_S.
29301
29302 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
29303
29304         PR target/47312
29305         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
29306         fma, expand FMA_EXPR as fma{,f,l} call.
29307
29308         PR lto/47274
29309         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
29310         copy them into a unsigned char variable and pass address of it to
29311         lto_output_data_stream.
29312
29313         PR target/47564
29314         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
29315         around backend_init_target and lang_dependent_init_target calls.
29316         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
29317         (verify_cgraph_node): Don't call set_cfun here.  Use
29318         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
29319         Set error_found for incorrectly represented calls to thunks.
29320
29321 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
29322
29323         PR debug/43092
29324         PR rtl-optimization/43494
29325         * rtl.h (for_each_inc_dec_fn): New type.
29326         (for_each_inc_dec): Declare.
29327         * rtlanal.c (struct for_each_inc_dec_ops): New type.
29328         (for_each_inc_dec_find_inc_dec): New fn.
29329         (for_each_inc_dec_find_mem): New fn.
29330         (for_each_inc_dec): New fn.
29331         * dse.c (struct insn_size): Remove.
29332         (replace_inc_dec, replace_inc_dec_mem): Remove.
29333         (emit_inc_dec_insn_before): New fn.
29334         (check_for_inc_dec): Use it, along with for_each_inc_dec.
29335         (canon_address): Pass mem modes to cselib_lookup.
29336         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
29337         (cselib_lookup_from_insn): Likewise.
29338         (cselib_subst_to_values): Likewise.
29339         * cselib.c (find_slot_memmode): New var.
29340         (cselib_find_slot): New fn.  Use it instead of
29341         htab_find_slot_with_hash everywhere.
29342         (entry_and_rtx_equal_p): Use find_slot_memmode.
29343         (autoinc_split): New fn.
29344         (rtx_equal_for_cselib_p): Rename and implement in terms of...
29345         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
29346         Deal with autoinc.  Special-case recursion into MEMs.
29347         (cselib_hash_rtx): Likewise.
29348         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
29349         address and MEM modes.
29350         (cselib_subst_to_values): Add memmode, pass it on.
29351         Deal with autoinc.
29352         (cselib_lookup): Add memmode argument, pass it on.
29353         (cselib_lookup_from_insn): Add memmode.
29354         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
29355         (struct cselib_record_autoinc_data): New.
29356         (cselib_record_autoinc_cb): New fn.
29357         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
29358         mode to cselib_lookup.  Reset autoinced REGs here instead of...
29359         (cselib_process_insn): ... here.
29360         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
29361         to cselib_lookup.
29362         (add_uses): Likewise, also to cselib_subst_to_values.
29363         (add_stores): Likewise.
29364         * sched-deps.c (add_insn_mem_dependence): Pass mode to
29365         cselib_subst_to_values.
29366         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
29367         * gcse.c (do_local_cprop): Adjusted.
29368         * postreload.c (reload_cse_simplify_set): Adjusted.
29369         (reload_cse_simplify_operands): Adjusted.
29370         * sel-sched-dump (debug_mem_addr_value): Pass mode.
29371
29372 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
29373
29374         PR tree-optimization/45122
29375         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
29376         unsafe assumptions when there's more than one loop exit.
29377
29378 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
29379
29380         PR target/47272
29381         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29382         Document using vector double with the load/store builtins, and
29383         that the load/store builtins always use Altivec instructions.
29384
29385         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
29386         to use altivec memory instructions, even on VSX.
29387         (vector_altivec_store_<mode>): Ditto.
29388
29389         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
29390         function.
29391
29392         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
29393         V2DF, V2DI support to load/store overloaded builtins.
29394
29395         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
29396         altivec load/store builtins for V2DF/V2DI types.
29397
29398         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29399         set avoid indexed addresses on power6 if -maltivec.
29400         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
29401         vector_altivec_load/vector_altivec_store builtins.
29402         (altivec_expand_st_builtin): Ditto.
29403         (altivec_expand_builtin): Add VSX memory builtins.
29404         (rs6000_init_builtins): Add V2DI types to internal types.
29405         (altivec_init_builtins): Add support for V2DF/V2DI altivec
29406         load/store builtins.
29407         (rs6000_address_for_altivec): Insure memory address is appropriate
29408         for Altivec.
29409
29410         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
29411         vec_vsx_ld and vec_vsx_st.
29412         (vsx_store_<mode>): Ditto.
29413
29414         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
29415         variables to hold long long types for VSX vector memory builtins.
29416         (RS6000_BTI_unsigned_long_long): Ditto.
29417         (long_long_integer_type_internal_node): Ditti.
29418         (long_long_unsigned_type_internal_node): Ditti.
29419
29420         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
29421         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
29422         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
29423
29424         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
29425         short cuts.
29426         (vec_vsx_st): Ditto.
29427
29428 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
29429
29430         * config/pa/pa-hpux10.opt: New.
29431         * config/hpux11.opt (pthread): New Driver option.
29432         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
29433         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
29434
29435 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
29436
29437         * config/ia64/vms.opt: New.
29438         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
29439
29440 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
29441
29442         PR target/47580
29443         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
29444         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
29445         generator functions.
29446         (vsx_floatuns<VSi><mode>2): Ditto.
29447         (vsx_fix_trunc<mode><VSi>2): Ditto.
29448         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
29449
29450 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
29451
29452         * config/i386/djgpp.opt (posix): New Driver option.
29453
29454 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
29455
29456         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
29457         Move to the unsupported targets list.
29458
29459 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
29460
29461         PR rtl-optimization/47525
29462         * df-scan.c: Update copyright years.
29463         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
29464         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
29465
29466 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29467
29468         * config/i386/sysv4.h (TARGET_VERSION): Remove.
29469         (SUBTARGET_RETURN_IN_MEMORY): Remove.
29470         (ASM_OUTPUT_ASCII): Remove.
29471         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
29472
29473 2011-02-02  Jeff Law  <law@redhat.com>
29474
29475         PR middle-end/47543
29476         * reload.c (find_reloads_address): Handle reg+d address where both
29477         components are invalid by reloading the entire address.
29478
29479 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
29480             Richard Guenther  <rguenther@suse.de>
29481
29482         PR tree-optimization/40979
29483         PR bootstrap/47044
29484         * passes.c (init_optimization_passes): After LIM call copy_prop
29485         and DCE to clean up.
29486         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
29487
29488 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
29489
29490         PR tree-optimization/47576
29491         PR tree-optimization/47555
29492         * doc/invoke.texi (scev-max-expr-complexity): Documented.
29493         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29494         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
29495         * tree-scalar-evolution.c (follow_ssa_edge): Use
29496         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
29497
29498 2011-02-02  Richard Guenther  <rguenther@suse.de>
29499
29500         PR tree-optimization/47566
29501         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
29502
29503 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
29504
29505         PR debug/47106
29506         PR debug/47402
29507         * tree-inline.c (declare_return_variable): Remove unused caller
29508         variable.
29509
29510         PR debug/47106
29511         PR debug/47402
29512         * tree-flow-inline.h (clear_is_used, is_used_p): New.
29513         * cfgexpand.c (account_used_vars_for_block): Use them.
29514         * tree-nrv.c (tree_nrv): Likewise.
29515         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
29516         (dump_scope_block): Likewise.
29517         (remove_unused_locals): Likewise.
29518
29519         PR debug/47106
29520         PR debug/47402
29521         * tree-inline.c (declare_return_variable): Add result decl to
29522         local decls only once.
29523         * gimple-low.c (record_vars_into): Mark newly-created variables
29524         as referenced.
29525
29526 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
29527
29528         PR debug/47498
29529         PR debug/47501
29530         PR debug/45136
29531         PR debug/45130
29532         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29533         debug insns.
29534         (no_real_insns_p, schedule_block, set_priorities): Drop special
29535         treatment of boundary debug insns.
29536         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29537         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
29538         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29539         (BOUNDARY_DEBUG_INSN_P): Likewise.
29540         (SCHEDULE_DEBUG_INSN_P): Likewise.
29541         * sched-rgn.c (init_ready_list): Drop special treatment of
29542         boundary debug insns.
29543         * final.c (rest_of_clean_state): Clear notes' BB.
29544
29545 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29546
29547         * config/openbsd.opt (assert=): New Driver option.
29548
29549 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29550
29551         * config/i386/nto.opt: New.
29552         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
29553
29554 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29555
29556         * config/i386/netware.opt: New.
29557         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
29558
29559 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29560
29561         * config/interix.opt (posix): New Driver option.
29562
29563 2011-02-01  DJ Delorie  <dj@redhat.com>
29564
29565         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
29566
29567         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
29568         class for A0/A1.
29569
29570 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
29571
29572         PR tree-optimization/47561
29573         * toplev.c (process_options): Print the Graphite flags.  Add
29574         flag_loop_flatten to the list of options requiring Graphite.
29575
29576 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29577
29578         * config/i386/cygming.opt (posix): New Driver option.
29579
29580 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29581
29582         * config/arm/vxworks.opt: New.
29583         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
29584
29585 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
29586
29587         * config/alpha/elf.opt: New.
29588         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
29589         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
29590
29591 2011-02-01  Richard Guenther  <rguenther@suse.de>
29592
29593         PR tree-optimization/47559
29594         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
29595         store-motion on references that can throw.
29596
29597 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
29598
29599         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
29600         * tree-pass.h (TDF_CSELIB): New macro.
29601         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
29602         cselib_lookup): Check for it rather than for TDF_DETAILS.
29603
29604 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
29605
29606         PR driver/47547
29607         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
29608         is HOST_BIT_BUCKET.
29609
29610         * opts.c (finish_options): Don't add x_aux_base_name if it is
29611         HOST_BIT_BUCKET.
29612
29613 2011-02-01  Richard Guenther  <rguenther@suse.de>
29614
29615         PR tree-optimization/47555
29616         Revert
29617         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
29618
29619         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
29620
29621 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
29622
29623         PR gcc/46692
29624         * config/lm32/t-lm32: Add multilib for all CPU options.
29625
29626 2011-02-01  Richard Guenther  <rguenther@suse.de>
29627
29628         PR tree-optimization/47541
29629         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
29630         sure to have a field at offset zero.
29631
29632 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
29633
29634         * config/arc/arc.opt (EB, EL): New Driver options.
29635
29636 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
29637
29638         * config/alpha/osf5.opt: New.
29639         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
29640
29641 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
29642
29643         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
29644
29645 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
29646
29647         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
29648         -floop-interchange.
29649         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
29650         is an alias of -floop-interchange and that it requires the
29651         Graphite infrastructure.
29652         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
29653         flag_loop_interchange based on the value of flag_tree_loop_linear.
29654
29655 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
29656             Richard Guenther  <rguenther@suse.de>
29657
29658         PR tree-optimization/47538
29659         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
29660         type instead of r1type, except for comparisons.  For right
29661         shifts and comparisons punt if there are mismatches in
29662         sizetype vs. non-sizetype types.
29663
29664 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29665
29666         * doc/sourcebuild.texi (Effective-Target Keywords): Document
29667         avx_runtime.
29668
29669 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29670
29671         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
29672         version number.
29673         * configure: Regenerate.
29674
29675 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29676
29677         * configure.ac (gcc_cv_ld_static_option): Define.
29678         (gcc_cv_ld_dynamic_option): Define.
29679         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
29680         instead.
29681         (HAVE_LD_STATIC_DYNAMIC): Update message.
29682         (LD_STATIC_OPTION): Define.
29683         (LD_DYNAMIC_OPTION): Define.
29684         * configure: Regenerate.
29685         * config.in: Regenerate.
29686         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
29687         HAVE_LD_STATIC_DYNAMIC]: Use them.
29688
29689 2011-01-31  Nick Clifton  <nickc@redhat.com>
29690
29691         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
29692         registers inside interrupt handlers if the handler is not a leaf
29693         function.
29694
29695 2011-01-31  Nick Clifton  <nickc@redhat.com>
29696
29697         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
29698         reg_renumber returning an INVALID_REGNUM.
29699
29700 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
29701
29702         PR libgcj/44341
29703         * doc/install.texi: Document host options discarded when cross
29704         configuring target libraries.
29705
29706 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
29707
29708         Reverted:
29709         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
29710         PR debug/45136
29711         PR debug/45130
29712         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
29713         debug insns.
29714         (no_real_insns_p, schedule_block, set_priorities): Drop special
29715         treatment of boundary debug insns.
29716         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
29717         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
29718         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
29719         (BOUNDARY_DEBUG_INSN_P): Likewise.
29720         (SCHEDULE_DEBUG_INSN_P): Likewise.
29721         * sched-rgn.c (init_ready_list): Drop special treatment of
29722         boundary debug insns.
29723         * final.c (rest_of_clean-state): Clear notes' BB.
29724
29725 2011-01-31  Alan Modra  <amodra@gmail.com>
29726
29727         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
29728         toc relative expressions as we do in print_operand_address.
29729
29730 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
29731
29732         * doc/extend.texi: Follow spelling conventions.
29733         * doc/invoke.texi: Fix a typo.
29734
29735 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
29736
29737         * config/hpux11.opt: New.
29738         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
29739         ia64*-*-hpux*): Use hpux11.opt.
29740
29741 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
29742
29743         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
29744         to tmake_file.
29745
29746 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
29747
29748         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
29749         support sites.
29750
29751 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
29752
29753         * doc/install.texi (Binaries): Remove outdated reference for
29754         Motorola 68HC11/68HC12 downloads.
29755
29756 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
29757
29758         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
29759         Drepper's paper.
29760
29761 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
29762
29763         PR bootstrap/47147
29764         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
29765         used by NetBSD.
29766
29767 2011-01-28  Ahmad Sharif  <asharif@google.com>
29768
29769         * value-prof.c (check_counter): Corrected error message.
29770
29771 2011-01-29  Jie Zhang  <jie@codesourcery.com>
29772
29773         * config/arm/arm.c (arm_legitimize_reload_address): New.
29774         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
29775         arm_legitimize_reload_address.
29776         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
29777
29778 2011-01-28  Ian Lance Taylor  <iant@google.com>
29779
29780         * godump.c (go_define): Ignore macros whose definitions include
29781         two adjacent operands.
29782
29783 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
29784
29785         PR target/42894
29786         * varasm.c (force_const_mem): Store copy of x in desc->constant
29787         instead of x itself.
29788         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
29789         itself into REG_EQUAL note.
29790
29791 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
29792
29793         * config/freebsd.opt (posix, rdynamic): New Driver options.
29794
29795 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29796
29797         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
29798         -Bstatic/-Bdynamic.
29799         * configure: Regenerate.
29800
29801 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
29802
29803         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
29804         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
29805
29806 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
29807
29808         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
29809         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
29810         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
29811         (s390_preferred_reload_class): Make static. Change return and
29812         'rclass' argument type to reg_class_t.
29813
29814 2011-01-27  Jan Hubicka  <jh@suse.cz>
29815
29816         PR middle-end/46949
29817         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
29818         (process_function_and_variable_attributes): Check defined weakrefs.
29819
29820 2011-01-27  Martin Jambor  <mjambor@suse.cz>
29821
29822         PR tree-optimization/47228
29823         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
29824         build_ref_for_offset.
29825
29826 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29827
29828         * config/spu/spu-elf.h (ASM_SPEC): Remove.
29829
29830 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
29831
29832         PR rtl-optimization/46856
29833         * postreload.c (reload_combine_recognize_const_pattern): Do not
29834         separate cc0 setter and user on cc0 targets.
29835
29836 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
29837
29838         PR c/43082
29839         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
29840         passed a VOID_TYPE expression, immediately emit an error and
29841         return error_mark_node.
29842
29843 2011-01-26  Jeff Law  <law@redhat.com>
29844
29845         PR rtl-optimization/47464
29846         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
29847         rather than may_trap_p as needed.
29848
29849 2011-01-26  DJ Delorie  <dj@redhat.com>
29850
29851         PR rtl-optimization/46878
29852         * combine.c (insn_a_feeds_b): Check for the implicit cc0
29853         setter/user dependency as well.
29854
29855 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
29856
29857         PR rtl-optimization/44469
29858         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
29859         after removing trivially dead basic blocks.
29860
29861 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29862
29863         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
29864         * config/frv/frv.h (LINK_SPEC): Likewise.
29865         * config/i386/netware.h (LINK_SPEC): Likewise.
29866         * config/m68k/linux.h (ASM_SPEC): Likewise.
29867         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
29868         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
29869         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29870         * config/sparc/linux.h (ASM_SPEC): Likewise.
29871         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29872         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29873
29874 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29875
29876         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
29877         * config/frv/frv.h (ASM_SPEC): Likewise.
29878         * config/m68k/linux.h (ASM_SPEC): Likewise.
29879         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
29880         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
29881         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29882         * config/sparc/linux.h (ASM_SPEC): Likewise.
29883         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29884         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29885
29886 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29887
29888         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
29889         * config/frv/frv.h (LINK_SPEC): Likewise.
29890         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
29891
29892 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
29893
29894         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
29895         * config/frv/frv.h (ASM_SPEC): Likewise.
29896         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
29897         * config/m68k/linux.h (ASM_SPEC): Likewise.
29898         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
29899         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
29900         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29901         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
29902         * config/sparc/linux.h (ASM_SPEC): Likewise.
29903         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29904         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29905         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
29906
29907 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
29908
29909         PR target/46997
29910         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
29911         (*mux2): Ditto.
29912         (vec_extract_evenodd_help): Ditto.
29913         (vec_extract_evenv4hi): Ditto.
29914         (vec_extract_oddv4hi): Ditto.
29915         (vec_interleave_lowv2si): Ditto.
29916         (vec_interleave_highv2si): Ditto.
29917         (vec_extract_evenv2si): Ditto.
29918         (vec_extract_oddv2si: Ditto.
29919         (vec_pack_trunc_v2si): Ditto.
29920
29921 2011-01-22  Jan Hubicka  <jh@suse.cz>
29922
29923         PR target/47237
29924         * cgraph.h (cgraph_local_info): New field can_change_signature.
29925         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
29926         signature can change.
29927         (ipcp_estimate_growth): Call sequence simplify only if calle signature
29928         can change.
29929         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
29930         (cgraph_function_versioning): We can not change signature of functions
29931         that don't allow that.
29932         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
29933         (lto_input_node): Likewise.
29934         * ipa-inline.c (compute_inline_parameters): Compute
29935         local.can_change_signature.
29936         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
29937         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
29938         functions that can not change signature.
29939         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
29940         init_cumulative_args): Do not use local calling conventions
29941         for functions that can not change signature.
29942
29943 2011-01-22  Jan Hubicka  <jh@suse.cz>
29944
29945         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
29946
29947 2011-01-26  Richard Guenther  <rguenther@suse.de>
29948
29949         PR tree-optimization/47190
29950         * cgraphunit.c (process_common_attributes): New function.
29951         (process_function_and_variable_attributes): Use it.
29952
29953 2011-01-26  Richard Guenther  <rguenther@suse.de>
29954
29955         PR lto/47423
29956         * cgraphbuild.c (record_eh_tables): Record reference to personality
29957         function.
29958
29959 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
29960
29961         PR debug/45454
29962         * sel-sched.c (moveup_expr): Don't let debug insns prevent
29963         non-debug insns from moving up.
29964
29965 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
29966
29967         PR target/40125
29968         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
29969         t-dlldir{,-x} fragment for build and add it to tmake_file.
29970         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
29971         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
29972         * config/i386/t-dlldir: New file.
29973         (SHLIB_DLLDIR): Define.
29974         * config/i386/t-dlldir-x: New file.
29975         (SHLIB_DLLDIR): Define.
29976         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
29977         (SHLIB_INSTALL): Use it.
29978
29979 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
29980
29981         PR target/47246
29982         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
29983         lower bound of the allowed Thumb-2 coprocessor load/store
29984         index range to -256. Add explaining comment.
29985
29986 2011-01-25  Ian Lance Taylor  <iant@google.com>
29987
29988         * godump.c (go_define): Improve lexing of macro expansion to only
29989         accept expressions which match Go spec.
29990
29991 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
29992
29993         PR c++/43601
29994         * tree.c (handle_dll_attribute): Handle it.
29995         * doc/extend.texi (@item dllexport): Mention it.
29996         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
29997
29998 2011-01-25  Ian Lance Taylor  <iant@google.com>
29999
30000         PR tree-optimization/26854
30001         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
30002         (decl_jump_unsafe): Move higher in file, with no other change.
30003         (bind): Set has_jump_unsafe_decl if appropriate.
30004         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
30005         (check_earlier_gotos): Likewise.
30006         (c_check_switch_jump_warnings): Likewise.
30007
30008 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
30009
30010         * doc/invoke.texi (Warning Options): Add missing hyphen.
30011         (-fprofile-dir): Minor grammatical fixes.
30012         (-fbranch-probabilities): Likewise.
30013
30014 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
30015
30016         PR debug/45136
30017         PR debug/45130
30018         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
30019         debug insns.
30020         (no_real_insns_p, schedule_block, set_priorities): Drop special
30021         treatment of boundary debug insns.
30022         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
30023         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
30024         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
30025         (BOUNDARY_DEBUG_INSN_P): Likewise.
30026         (SCHEDULE_DEBUG_INSN_P): Likewise.
30027         * sched-rgn.c (init_ready_list): Drop special treatment of
30028         boundary debug insns.
30029         * final.c (rest_of_clean-state): Clear notes' BB.
30030
30031 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30032
30033         * Makefile.in (LAMBDA_H): Removed.
30034         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
30035         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
30036         lambda-trans.o, and tree-loop-linear.o.
30037         (lto-symtab.o): Remove dependence on LAMBDA_H.
30038         (tree-loop-linear.o): Remove rule.
30039         (lambda-mat.o): Same.
30040         (lambda-trans.o): Same.
30041         (lambda-code.o): Same.
30042         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
30043         (tree-vect-slp.o): Same.
30044         * hwint.h (gcd): Moved here.
30045         (least_common_multiple): Same.
30046         * lambda-code.c: Removed.
30047         * lambda-mat.c: Removed.
30048         * lambda-trans.c: Removed.
30049         * lambda.h: Removed.
30050         * tree-loop-linear.c: Removed.
30051         * lto-symtab.c: Do not include lambda.h.
30052         * omega.c (gcd): Removed.
30053         * passes.c (init_optimization_passes): Remove pass_linear_transform.
30054         * tree-data-ref.c (print_lambda_vector): Moved here.
30055         (lambda_vector_copy): Same.
30056         (lambda_matrix_copy): Same.
30057         (lambda_matrix_id): Same.
30058         (lambda_vector_first_nz): Same.
30059         (lambda_matrix_row_add): Same.
30060         (lambda_matrix_row_exchange): Same.
30061         (lambda_vector_mult_const): Same.
30062         (lambda_vector_negate): Same.
30063         (lambda_matrix_row_negate): Same.
30064         (lambda_vector_equal): Same.
30065         (lambda_matrix_right_hermite): Same.
30066         * tree-data-ref.h: Do not include lambda.h.
30067         (lambda_vector): Moved here.
30068         (lambda_matrix): Same.
30069         (dependence_level): Same.
30070         (lambda_transform_legal_p): Removed declaration.
30071         (lambda_collect_parameters): Same.
30072         (lambda_compute_access_matrices): Same.
30073         (lambda_vector_gcd): Same.
30074         (lambda_vector_new): Same.
30075         (lambda_vector_clear): Same.
30076         (lambda_vector_lexico_pos): Same.
30077         (lambda_vector_zerop): Same.
30078         (lambda_matrix_new): Same.
30079         * tree-flow.h (least_common_multiple): Removed declaration.
30080         * tree-parloops.c (lambda_trans_matrix): Moved here.
30081         (LTM_MATRIX): Same.
30082         (LTM_ROWSIZE): Same.
30083         (LTM_COLSIZE): Same.
30084         (LTM_DENOMINATOR): Same.
30085         (lambda_trans_matrix_new): Same.
30086         (lambda_matrix_vector_mult): Same.
30087         (lambda_transform_legal_p): Same.
30088         * tree-pass.h (pass_linear_transform): Removed declaration.
30089         * tree-ssa-loop.c (tree_linear_transform): Removed.
30090         (gate_tree_linear_transform): Removed.
30091         (pass_linear_transform): Removed.
30092         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
30093         flag_loop_interchange.
30094
30095 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
30096
30097         PR tree-optimization/47265
30098         PR tree-optimization/47443
30099         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
30100         if name still has some uses.
30101
30102 2011-01-25  Martin Jambor  <mjambor@suse.cz>
30103
30104         PR tree-optimization/47382
30105         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
30106         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
30107
30108 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
30109
30110         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
30111         sjlj_except_unwind_info.
30112
30113 2011-01-25  Richard Guenther  <rguenther@suse.de>
30114
30115         PR tree-optimization/47426
30116         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
30117         visible functions results escape.
30118
30119 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
30120
30121         PR target/45701
30122         * config/arm/arm.c (any_sibcall_uses_r3): New function.
30123         (arm_get_frame_offsets): Use it.
30124
30125 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30126             Jakub Jelinek  <jakub@redhat.com>
30127
30128         PR tree-optimization/47271
30129         * tree-if-conv.c (bb_postdominates_preds): New.
30130         (if_convertible_bb_p): Call bb_postdominates_preds.
30131         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
30132         (predicate_scalar_phi): Call bb_postdominates_preds.
30133
30134 2011-01-25  Nick Clifton  <nickc@redhat.com>
30135
30136         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
30137         * config/rx/rx.c (rx_function_value): Likewise.
30138         (rx_promote_function_mode): Likewise.
30139         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
30140         in order to make it legitimate.
30141         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
30142         make sure that the first operand is the same as the result register.
30143         (addsi3_unspec): Delete.
30144         (subdi3): Do not accept immediate operands.
30145         (subdi3_internal): Likewise.
30146
30147 2011-01-25  Jeff Law  <law@redhat.com>
30148
30149         PR rtl-optimization/37273
30150         * ira-costs.c (scan_one_insn): Detect constants living in memory and
30151         handle them like argument loads from stack slots.  Do not double
30152         count memory for memory constants and argument loads from stack slots.
30153
30154 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
30155
30156         PR tree-optimization/47427
30157         PR tree-optimization/47428
30158         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
30159         coalesce if the new root var would be TREE_READONLY.
30160
30161 2011-01-25  Richard Guenther  <rguenther@suse.de>
30162
30163         PR middle-end/47414
30164         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
30165         correct type for TBAA.
30166
30167 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30168
30169         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
30170         (close_phi_written_to_memory): Call for_each_index with
30171         dr_indices_valid_in_loop.
30172
30173 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30174
30175         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
30176         when it is initialized.
30177
30178 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30179
30180         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
30181         call to graphite_find_data_references_in_stmt.
30182         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
30183         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
30184         call to graphite_find_data_references_in_stmt.
30185         (analyze_drs_in_stmts): Same.
30186         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
30187         in which the scalar analysis of indices is performed.
30188         (create_data_ref): Same.  Update call to dr_analyze_indices.
30189         (find_data_references_in_stmt): Update call to create_data_ref.
30190         (graphite_find_data_references_in_stmt): Same.
30191         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
30192         declaration.
30193         (create_data_ref): Same.
30194         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
30195         call to create_data_ref.
30196
30197 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30198
30199         * graphite-sese-to-poly.c (build_poly_scop): Move
30200         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
30201
30202 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30203
30204         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
30205         VAR_DECL, PARM_DECL, and RESULT_DECL.
30206
30207 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30208
30209         * graphite-dependences.c (reduction_dr_1): Allow several reductions
30210         in a reduction PBB.
30211         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
30212         that have already been marked as PBB_IS_REDUCTION.
30213
30214 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30215
30216         * graphite-scop-detection.c (same_close_phi_node): New.
30217         (remove_duplicate_close_phi): New.
30218         (make_close_phi_nodes_unique): New.
30219         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
30220
30221 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30222
30223         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
30224         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
30225         of both data references to be the same.
30226
30227 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30228
30229         * graphite-dependences.c (build_lexicographical_constraint): Remove
30230         the gdim parameter.
30231         (build_lexicographical_constraint): Adjust call to
30232         ppl_powerset_is_empty.
30233         (dependence_polyhedron): Same.
30234         (graphite_legal_transform_dr): Same.
30235         (graphite_carried_dependence_level_k): Same.
30236         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
30237         parameter.
30238         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
30239
30240 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30241
30242         * graphite-sese-to-poly.c
30243         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
30244         (close_phi_written_to_memory): New.
30245         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
30246         and unshare_expr.
30247
30248 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30249
30250         * doc/install.texi: Update the expected version number of PPL to 0.11.
30251         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
30252         #if PPL_VERSION_MINOR < 11.
30253
30254 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30255
30256         * graphite-dependences.c: Include graphite-cloog-util.h.
30257         (new_poly_ddr): Inlined into dependence_polyhedron.
30258         (free_poly_ddr): Moved close by new_poly_ddr.
30259         (dependence_polyhedron_1): Renamed dependence_polyhedron.
30260         Early return NULL when ppl_powerset_is_empty returns true.
30261         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
30262         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
30263         (graphite_legal_transform_dr): Call new_poly_ddr.
30264         (graphite_carried_dependence_level_k): Same.
30265         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
30266         (dot_transformed_deps_stmt_1): Removed.
30267         (dot_deps_stmt_1): Call dot_deps_stmt_2.
30268         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
30269         (dot_deps_1): Call dot_deps_2.
30270         * Makefile.in (graphite-dependences.o): Add missing dependence on
30271         graphite-cloog-util.h.
30272
30273 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30274
30275         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
30276         (build_lexicographical_constraint): Same.
30277         (dependence_polyhedron_1): Same.
30278         (graphite_legal_transform_dr): Same.
30279         (graphite_carried_dependence_level_k): Same.
30280         * graphite-ppl.c (ppl_powerset_is_empty): New.
30281         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
30282         * tree-data-ref.c (dump_data_reference): Print the basic block index.
30283
30284 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30285
30286         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
30287         the "a followed by b" relation and document it.
30288
30289 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30290
30291         * graphite-dependences.c (build_lexicographical_constraint): Stop the
30292         iteration when the bag of constraints is empty.
30293
30294 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30295
30296         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
30297
30298 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30299
30300         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
30301         nest and two loop depths as parameters.
30302         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
30303         lst_perfect_nestify.
30304
30305 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30306
30307         * graphite-dependences.c (print_pddr): Call
30308         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
30309
30310 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
30311
30312         * graphite-ppl.c (debug_gmp_value): New.
30313         * graphite-ppl.h (debug_gmp_value): Declared.
30314
30315 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
30316
30317         * doc/install.texi: Document availability of cloog-0.16.
30318
30319 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
30320
30321         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
30322         invalid postdominance info.
30323
30324 2011-01-24  Jan Hubicka  <jh@suse.cz>
30325
30326         PR c/21659
30327         * doc/extend.texi (weak pragma): Drop claim that it must
30328         appear before definition.
30329         * varasm.c (merge_weak, declare_weak): Only sanity check
30330         that DECL is not output at a time it is declared weak.
30331
30332 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
30333
30334         * machmode.def: Fixed comments.
30335
30336 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
30337
30338         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
30339
30340 2011-01-24  Paul Koning  <ni1d@arrl.net>
30341
30342         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
30343         WORDS_BIG_ENDIAN.
30344
30345 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
30346
30347         PR target/46519
30348         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
30349         (block_info): Add scanned and prev.
30350         (move_or_delete_vzeroupper_2): Return if the basic block
30351         has been scanned and the upper 128bit state is unchanged
30352         from the last scan.
30353         (move_or_delete_vzeroupper_1): Return true if the exit
30354         state is changed.
30355         (move_or_delete_vzeroupper): Visit basic blocks using the
30356         work-list based algorithm based on vt_find_locations in
30357         var-tracking.c.
30358
30359         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
30360
30361 2011-01-24  Nick Clifton  <nickc@redhat.com>
30362
30363         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
30364         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
30365         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
30366         then define __v850e1__.
30367         * doc/invoke.texi: Document -mv850es.
30368
30369 2011-01-24  Richard Henderson  <rth@redhat.com>
30370
30371         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
30372         compound unordered comparisons.
30373         * config/rx/rx.c (rx_split_fp_compare): Remove.
30374         * config/rx/rx-protos.h: Update.
30375         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
30376         (cbranchsf4): Don't call rx_split_fp_compare.
30377         (*cbranchsf4): Use rx_split_cbranch.
30378         (*cmpsf): Don't accept "i" constraint.
30379         (*conditional_branch): Only valid after reload.
30380         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
30381
30382 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
30383
30384         PR target/47385
30385         * config/rs6000/altivec.md (vector constant splitters): Add
30386         support for creating vector single precision constants if -mvsx is
30387         used and we would create the constant using Altivec primitives.
30388
30389 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
30390             Richard Sandiford  <rdsandiford@googlemail.com>
30391
30392         PR rtl-optimization/47166
30393         * reload1.c (emit_reload_insns): Disable the spill_reg_store
30394         mechanism for PRE_MODIFY and POST_MODIFY.
30395         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
30396         reloadreg.
30397
30398 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
30399
30400         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
30401
30402 2011-01-22  Jan Hubicka  <jh@suse.cz>
30403
30404         PR lto/47333
30405         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
30406
30407 2011-01-22  Jan Hubicka  <jh@suse.cz>
30408
30409         PR tree-optimization/43884
30410         PR lto/44334
30411         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
30412         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
30413
30414 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
30415
30416         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
30417         * config/s390/s390.c (s390_register_move_cost,
30418         s390_memory_move_cost): New.
30419         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
30420
30421 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30422
30423         PR middle-end/47401
30424         * except.c (sjlj_assign_call_site_values): Move setting the
30425         crtl->uses_eh_lsda flag to ...
30426         (sjlj_mark_call_sites): ... here.
30427         (sjlj_emit_function_enter): Support NULL dispatch label.
30428         (sjlj_build_landing_pads): In a function with no landing pads
30429         that still has must-not-throw regions, generate code to register
30430         a personality function with empty LSDA.
30431
30432 2011-01-21  Richard Henderson  <rth@redhat.com>
30433
30434         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
30435
30436         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
30437
30438         * compare-elim.c: New file.
30439         * Makefile.in (OBJS-common): Add it.
30440         (compare-elim.o): New.
30441         * common.opt (fcompare-elim): New.
30442         * opts.c (default_options_table): Add OPT_fcompare_elim.
30443         * tree-pass.h (pass_compare_elim_after_reload): New.
30444         * passes.c (init_optimization_passes): Add it.
30445         * recog.h: Protect against re-inclusion.
30446         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
30447         * doc/invoke.texi (-fcompare-elim): Document it.
30448         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
30449         * doc/tm.texi: Rebuild.
30450
30451 2011-01-22  Nick Clifton  <nickc@redhat.com>
30452
30453         * config/rx/rx.md (cstoresf4): Pass comparison operator to
30454         rx_split_fp_compare.
30455
30456 2011-01-22  Nick Clifton  <nickc@redhat.com>
30457
30458         * config/rx/rx.md (UNSPEC_CONST): New.
30459         (deallocate_and_return): Wrap the amount popped off the stack in
30460         an UNSPEC_CONST in order to stop it being rejected by
30461         -mmax-constant-size.
30462         (pop_and_return): Add a "(return)" rtx.
30463         (call): Drop the immediate operand.
30464         (call_internal): Likewise.
30465         (call_value): Likewise.
30466         (call_value_internal): Likewise.
30467         (sibcall_internal): Likewise.
30468         (sibcall_value_internal): Likewise.
30469         (sibcall): Likewise.  Generate an explicit call using
30470         sibcall_internal.
30471         (sibcall_value): Likewise.
30472         (mov<>): FAIL if a constant operand is not legitimate.
30473         (addsi3_unpsec): New pattern.
30474
30475         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
30476         (ok_for_max_constant): New function.
30477         (gen_safe_add): New function.
30478         (rx_expand_prologue): Use gen_safe_add.
30479         (rx_expand_epilogue): Likewise.
30480         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
30481         UNSPEC CONSTs.
30482
30483 2011-01-21  Jeff Law  <law@redhat.com>
30484
30485         PR tree-optimization/47053
30486         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
30487         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
30488         statements are deleted.
30489         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
30490         is nonempty, then purge dead edges and cleanup the CFG.
30491
30492 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
30493
30494         PR debug/47402
30495         Temporarily revert:
30496         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
30497         PR debug/47106
30498         * tree-dfa.c (create_var_ann): Mark variable as used.
30499
30500 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
30501
30502         PR middle-end/45566
30503         * except.c (convert_to_eh_region_ranges): Emit queued no-region
30504         notes from other section in hot/cold partitioning even if
30505         last_action is -3.  Increment call_site_base.
30506
30507         PR rtl-optimization/47366
30508         * fwprop.c (forward_propagate_into): Return bool.  If
30509         any changes are made, -fnon-call-exceptions is used and
30510         REG_EH_REGION note is present, call purge_dead_edges
30511         and return true if it purged anything.
30512         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
30513         any EH edges were purged.
30514
30515 2011-01-21  Jeff Law  <law@redhat.com>
30516
30517         PR rtl-optimization/41619
30518         * caller-save.c (setup_save_areas): Break out code to determine
30519         which hard regs are live across calls by examining the reload chains
30520         so that it is always used.
30521         Eliminate code which checked REG_N_CALLS_CROSSED.
30522
30523 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
30524
30525         PR tree-optimization/47355
30526         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
30527         NOP has non-debug uses beyond PHIs in new_bb.
30528
30529 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
30530
30531         PR debug/47106
30532         * cfgexpand.c (account_used_vars_for_block): Only account vars
30533         that are annotated as used.
30534         (estimated_stack_frame_size): Don't set TREE_USED.
30535         * tree-dfa.c (create_var_ann): Mark variable as used.
30536
30537 2011-01-21  Richard Guenther  <rguenther@suse.de>
30538
30539         PR middle-end/47395
30540         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
30541
30542 2011-01-21  Richard Guenther  <rguenther@suse.de>
30543
30544         PR tree-optimization/47365
30545         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
30546         (vn_reference_lookup_pieces): Adjust.
30547         (vn_reference_lookup): Likewise.
30548         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
30549         (vn_reference_lookup_3): Only look through kills if in
30550         VN_WALKREWRITE mode.
30551         (vn_reference_lookup_pieces): Adjust.
30552         (vn_reference_lookup): Likewise.
30553         (visit_reference_op_load): Likewise.
30554         (visit_reference_op_store): Likewise.
30555         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
30556         (compute_avail): Likewise.
30557         (eliminate): Likewise.
30558
30559 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
30560
30561         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
30562         DECL_IGNORED_P non-reg vars if they are used.
30563
30564         PR tree-optimization/47391
30565         * varpool.c (const_value_known_p): Return false if
30566         decl is volatile.
30567
30568 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
30569
30570         PR bootstrap/47215
30571         * config/i386/i386.c (ix86_local_alignment): Handle
30572         case for va_list_type_node is nil.
30573         (ix86_canonical_va_list_type): Likewise.
30574
30575 2011-01-21  Alan Modra  <amodra@gmail.com>
30576
30577         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
30578         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
30579
30580 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30581
30582         * config/arm/arm.md (define_attr type): Rename f_load
30583         and f_store to f_fpa_load and f_fpa_store. Update.
30584         (write_conflict): Deal with rename fallout.
30585         (*push_fp_multi): Likewise.
30586         * config/arm/fpa.md (f_load): Use f_fpa_load.
30587         (f_store): Use f_fpa_store.
30588         (*movsf_fpa): Likewise.
30589         (*movdf_fpa): Likewise.
30590         (*movxf_fpa): Likewise.
30591         (*thumb2_movsf_fpa): Likewise.
30592         (*thumb2_movdf_fpa): Likewise.
30593         (*thumb2_movxf_fpa): Likewise.
30594         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
30595         f_loadd and f_stored.
30596         (*thumb2_movdi_vfp): Likewise.
30597         (*thumb2_movsf_vfp): Fix attribute to f_loads.
30598         (*thumb2_movsi_vfp): Likewise.
30599         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
30600         Use f_loads instead of f_load.
30601         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
30602
30603 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
30604
30605         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
30606         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
30607         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
30608         (xtensa_mode_dependent_address_p): New function.
30609         (constantpool_address_p): Make static. Change return type to bool.
30610         Change argument type to const_rtx. Use CONST_INT_P predicate.
30611
30612 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
30613
30614         PR debug/46583
30615         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
30616
30617 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
30618
30619         PR debug/47283
30620         * cfgexpand.c (expand_debug_expr): Instead of generating
30621         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
30622         etc. handling.
30623
30624 2011-01-20  Richard Guenther  <rguenther@suse.de>
30625
30626         PR middle-end/47370
30627         * tree-inline.c (remap_gimple_op_r): Recurse manually for
30628         the pointer operand of MEM_REFs.
30629
30630 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
30631
30632         PR tree-optimization/46130
30633         * ipa-split.c (consider_split): If return_bb contains non-virtual
30634         PHIs other than for retval or if split_function would not adjust it,
30635         refuse to split.
30636
30637 2011-01-20  Richard Guenther  <rguenther@suse.de>
30638
30639         PR tree-optimization/47167
30640         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
30641         Revert previous change, only avoid enumeral type changes.
30642
30643 2011-01-19  Mike Stump  <mikestump@comcast.net>
30644
30645         * doc/tm.texi.in (BRANCH_COST): Englishify.
30646         * doc/tm.texi (BRANCH_COST): Likewise.
30647
30648 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
30649
30650         PR c++/47291
30651         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
30652         (gen_scheduled_generic_parms_dies): New functions.
30653         (gen_struct_or_union_type_die): Schedule template parameters DIEs
30654         generation for the end of CU compilation.
30655         (dwarf2out_finish): Generate template parameters DIEs here.
30656
30657 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30658
30659         PR debug/46240
30660         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
30661         debug bind stmt on merge edges.
30662
30663 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30664
30665         PR debug/47079
30666         PR debug/46724
30667         * function.c (instantiate_expr): Instantiate incoming rtl of
30668         implicit arguments, and recurse on VALUE_EXPRs.
30669         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
30670         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
30671
30672 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
30673
30674         * c-parser.c (c_parser_for_statement): Initialize
30675         collection_expression.
30676
30677 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30678
30679         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
30680
30681 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30682
30683         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
30684         (LINK_SHLIB_SPEC): Don't use %(link_path).
30685         (SUBTARGET_EXTRA_SPECS): Remove link_path.
30686
30687 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30688
30689         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
30690         (NO_SHARED_LIB_SUPPORT): Remove.
30691         (LINK_SHLIB_SPEC): Remove one conditional definition.
30692
30693 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
30694
30695         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
30696         %{call_shared}.
30697         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
30698         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
30699         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
30700         %{call_shared} and conditionals on these options not being passed.
30701         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
30702         %{call_shared}.
30703
30704 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
30705
30706         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
30707         simplify.
30708
30709         * ipa-split.c: Spelling fixes.
30710
30711 2011-01-19  Richard Henderson  <rth@redhat.com>
30712
30713         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
30714         (*mulsi3): Likewise.
30715
30716         * longlong.h [__mn10300__] (count_leading_zeros): New.
30717         [__mn10300__] (umul_ppmm, smul_ppmm): New.
30718         [__mn10300__] (add_ssaaaa, subddmmss): New.
30719         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
30720         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
30721
30722 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30723
30724         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
30725
30726 2011-01-19  Richard Henderson  <rth@redhat.com>
30727
30728         * config/mn10300/mn10300.md (addsi3_flags): New.
30729         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
30730         (subsi3_flags, subc_internal, subdi3): New.
30731         (subdi3_internal, *subdi3_degenerate): New.
30732         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
30733
30734         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
30735         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
30736         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
30737         * config/mn10300/mn10300-protos.h: Update.
30738         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
30739         (return_ret): Likewise.  Rename from return_internal_regs.
30740         (return_internal): Remove.
30741
30742         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
30743         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
30744         (mn10300_legitimate_constant_p): Likewise.
30745         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
30746         (mn10300_frame_size): New.
30747         (mn10300_expand_prologue): Use it.
30748         (mn10300_expand_epilogue): Likewise.
30749         (mn10300_initial_offset): Likewise.
30750         * config/mn10300/mn10300-protos.h: Update.
30751         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
30752         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
30753         (prologue, epilogue, return_internal): Tidy output code.
30754         (mn10300_store_multiple_operation, return): Likewise.
30755         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
30756         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
30757         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
30758         (load_pic, am33_load_pic): New.
30759         (mn10300_load_pic0, mn10300_load_pic1): New.
30760
30761         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
30762         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
30763         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
30764         (cc_flags_for_mode, cc_flags_for_code): New.
30765         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
30766         overflow flag is not valid.  Validate that the flags we need
30767         for the comparison are valid.
30768         (mn10300_output_cmp): Remove.
30769         (mn10300_output_add): New.
30770         (mn10300_select_cc_mode): Use cc_flags_for_code.
30771         (mn10300_split_cbranch): New.
30772         (mn10300_match_ccmode): New.
30773         (mn10300_split_and_operand_count): New.
30774         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
30775         to the function.
30776         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
30777         (addsi3): ... here.  Use mn10300_output_add.
30778         (*addsi3_flags): New.
30779         (*am33_subsi3, *mn10300_subsi3): Merge...
30780         (subsi3): ... here.  Use attribute isa.
30781         (*subsi3_flags): New.
30782         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
30783         when possible.
30784         (*am33_andsi3, *mn10300_andsi3): Merge...
30785         (andsi3): ... here.
30786         (*andsi3_flags): New.
30787         (andsi3 splitters): New.
30788         (*am33_iorsi3, *mn10300_iorsi3): Merge...
30789         (iorsi3): ... here.
30790         (*iorsi3_flags): New.
30791         (*am33_xorsi3, *mn10300_xorsi3): Merge...
30792         (xorsi3): ... here.
30793         (*xorsi3_flags): New.
30794         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
30795         (one_cmplsi2): ... here.
30796         (*one_cmplsi2_flags): New.
30797         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
30798         instead of "dax" in constraints.  Use mn10300_split_cbranch.
30799         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
30800         use matching constraints to eliminate a self-comparison.
30801         (*integer_conditional_branch): Rename from integer_conditional_branch.
30802         Use int_mode_flags to match CC_REG.
30803         (*cbranchsi4_btst, *btstsi): New.
30804         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
30805         mn10300_split_cbranch.
30806         (*am33_cmpsf): Rename from am33_cmpsf.
30807         (*float_conditional_branch): Rename from float_conditional_branch.
30808         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
30809         (zero_extendqisi2): ... here.
30810         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
30811         (zero_extendhisi2): ... here.
30812         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
30813         (extendqisi2): ... here.
30814         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
30815         (extendhisi2): ... here.
30816         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
30817         (ashlsi3): ... here.
30818         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
30819         (lshrsi3): ... here.
30820         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
30821         (ashrsi3): ... here.
30822         (consecutive add peephole): Remove.
30823         * config/mn10300/predicates.md (label_ref_operand): New.
30824         (int_mode_flags): New.
30825         (CCZN_comparison_operator): New.
30826
30827         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
30828         (throughput_42_latency_43): New reservation.
30829         (mulsidi3, umulsidi3): New expanders.
30830         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
30831         the MDR register to allocation; separately allocate the low and
30832         high parts of the DImode result.
30833         (umulsidi3_internal): Similarly.
30834         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
30835         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
30836         (udivsi3, umodsi3): Remove.
30837         (udivmodsi4, divmodsi4): New expanders.
30838         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
30839         (*divmodsi4): Simiarly.
30840         (ext_internal): New.
30841
30842         * config/mn10300/constraints.md ("z"): New constraint.
30843         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
30844         (FIXED_REGISTERS): Don't fix MDR.
30845         (CALL_USED_REGSITERS): Reformat nicely.
30846         (REG_ALLOC_ORDER): Add MDR.
30847         (enum regclass): Add MDR_REGS.
30848         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
30849         (IRA_COVER_CLASSES): Add MDR_REGS.
30850         (REGNO_REG_CLASS): Handle MDR_REG.
30851         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
30852         (mn10300_register_move_cost): Likewise.
30853         * config/mn10300/mn10300.md (MDR_REG): New.
30854         (*movsi_internal): Handle moves to/from MDR_REGS.
30855
30856         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
30857         POST_MODIFY.
30858         (mn10300_secondary_reload): Tidy combination reload classes.
30859         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
30860         addresses for AM33.  Allow symbolic offsets for reg+imm.
30861         (mn10300_regno_in_class_p): New.
30862         (mn10300_legitimize_reload_address): New.
30863         * config/mn10300/mn10300.h (enum reg_class): Remove
30864         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
30865         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
30866         SP_OR_GENERAL_REGS.
30867         (REG_CLASS_NAMES): Update to match.
30868         (REG_CLASS_CONTENTS): Likewise.
30869         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
30870         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
30871         (REGNO_IN_RANGE_P): Remove.
30872         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
30873         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
30874         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
30875         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
30876         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
30877         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
30878         (REGNO_GENERAL_P): New.
30879         (HAVE_POST_MODIFY_DISP): New.
30880         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
30881         (LEGITIMIZE_RELOAD_ADDRESS): New.
30882         * config/mn10300/mn10300-protos.h: Update.
30883
30884         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
30885         DATA_REGS for AM33 stack-pointer destination.
30886         (mn10300_preferred_output_reload_class): Likewise.
30887         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
30888         into a form appropriate for ...
30889         (TARGET_SECONDARY_RELOAD): New.
30890         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
30891         * config/mn10300/mn10300-protos.h: Update.
30892         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
30893         reload_insi; use the "A" constraint for the scratch; handle AM33
30894         moves of sp to non-address registers.
30895
30896         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
30897         (*movqi_internal): ... here.
30898         (*am33_movhi, *mn10300_movhi): Merge into...
30899         (*movhi_internal): ... here.
30900         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
30901         as the source/destination of moves from/to SP.
30902         (movsf): Only allow for AM33-2.
30903         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
30904         any integer constant constraint.  Only allow for AM33-2.  Tidy
30905         all of the alternative outputs.
30906         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
30907         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
30908         for MN103.
30909         (udivsi3, umodsi3): New patterns for MN103 only.
30910
30911 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
30912
30913         * doc/tm.texi.in: Spell out that a lack of register class unions
30914         can lead to ICEs.
30915         * doc/tm.texi: Regenerate.
30916
30917 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
30918
30919         PR rtl-optimization/47337
30920         * dce.c (check_argument_store): New function.
30921         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
30922
30923         PR tree-optimization/47290
30924         * tree-eh.c (infinite_empty_loop_p): New function.
30925         (cleanup_empty_eh): Use it.
30926
30927 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
30928
30929         PR target/46997
30930         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
30931         (a64_expand_widen_sum): Ditto.
30932         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
30933         (vec_extract_evenodd_help): Ditto.
30934         (vec_extract_evenv4hi): Ditto.
30935         (vec_extract_oddv4hi): Ditto.
30936         (vec_extract_evenv2si): Ditto.
30937         (vec_extract_oddv2si): Ditto.
30938         (vec_extract_evenv2sf): Ditto.
30939         (vec_extract_oddv2sf): Ditto.
30940         (vec_pack_trunc_v4hi: Ditto.
30941         (vec_pack_trunc_v2si): Ditto.
30942         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
30943         (vec_interleave_highv8qi): Ditto.
30944         (mix1_r): Ditto.
30945         (vec_extract_oddv8qi): Ditto.
30946         (vec_interleave_lowv4hi): Ditto.
30947         (vec_interleave_highv4hi): Ditto.
30948         (vec_interleave_lowv2si): Ditto.
30949         (vec_interleave_highv2si): Ditto.
30950
30951 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30952
30953         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
30954         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
30955         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
30956         (pa_c_mode_for_suffix): New.
30957         (TARGET_EXPAND_BUILTIN): Define.
30958         (TARGET_C_MODE_FOR_SUFFIX): Define.
30959         (pa_builtins): Define.
30960         (pa_init_builtins): Register __float128 type and init new support
30961         builtins.
30962         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
30963         * config/pa/quadlib.c (_U_Qfcopysign): New.
30964
30965 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
30966
30967         PR middle-end/46894
30968         * explow.c (allocate_dynamic_stack_space): Do not assume more than
30969         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
30970         are defined.
30971
30972 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30973
30974         PR tree-optimization/47179
30975         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
30976         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
30977
30978 2011-01-18  Richard Guenther  <rguenther@suse.de>
30979
30980         PR rtl-optimization/47216
30981         * emit-rtl.c: Include tree-flow.h.
30982         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
30983         of replicating it with different semantics.
30984         * Makefile.in (emit-rtl.o): Adjust.
30985
30986 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30987
30988         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
30989         (cortex_a9_dp): Handle neon types correctly.
30990
30991 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
30992
30993         PR rtl-optimization/47299
30994         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
30995         subtarget.  Use normal multiplication if both operands are constants.
30996         * expmed.c (expand_widening_mult): Don't try to optimize constant
30997         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
30998         before using it.
30999
31000 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31001
31002         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
31003         spacing after 'e.g.', typos, comma, hyphenation.
31004
31005 2011-01-17  Richard Henderson  <rth@redhat.com>
31006
31007         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
31008         (rx_restricted_mem_operand): New.
31009         (rx_shift_operand): Use register_operand.
31010         (rx_source_operand, rx_compare_operand): Likewise.
31011         * config/rx/rx.md (addsi3_flags): New expander.
31012         (adddi3): Rewrite as expander.
31013         (adc_internal, *adc_flags, adddi3_internal): New patterns.
31014         (subsi3_flags): New expander.
31015         (subdi3): Rewrite as expander.
31016         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
31017
31018         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
31019         (rx_init_builtins): Remove sat builtin.
31020         (rx_expand_builtin): Likewise.
31021         * config/rx/rx.md (ssaddsi3): New.
31022         (*sat): Rename from sat.  Represent the CC_REG input.
31023
31024         * config/rx/predicates.md (rshift_operator): New.
31025         * config/rx/rx.c (rx_expand_insv): Remove.
31026         * config/rx/rx-protos.h: Update.
31027         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
31028         operand to the canonical position.
31029         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
31030         (*bitclr, *bitclr_in_memory): Similarly.
31031         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
31032         (insv): Retain the zero_extract in the expansion.
31033
31034         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
31035         (bswaphi2, bitinvert, revw): Likewise.
31036
31037         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
31038         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
31039         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
31040         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
31041         (bitset, bitset_in_memory): Likewise.
31042         (bitinvert, bitinvert_in_memory): Likewise.
31043         (bitclr, bitclr_in_memory): Likewise.
31044         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
31045         (rx_strend, rx_cmpstrn): Likewise.
31046         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
31047         (bitop peep2 patterns): Remove.
31048
31049         * config/rx/rx.c (rx_match_ccmode): New.
31050         * config/rx/rx-protos.h: Update.
31051         * config/rx/rx.md (abssi2): Clobber, don't set flags.
31052         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
31053         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
31054         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
31055         (fix_truncsfsi2, floatsisf2): Likewise.
31056         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
31057         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
31058         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
31059         (*subsi3_flags, *xorsi3_flags): New.
31060
31061         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
31062
31063         * config/rx/rx.c (rx_print_operand): Remove workaround for
31064         unsplit comparison operations.
31065
31066         * config/rx/rx.md (movsicc): Split after reload.
31067         (*movsicc): Merge *movsieq and *movsine via match_operator.
31068         (*stcc): New pattern.
31069
31070         * config/rx/rx.c (rx_float_compare_mode): Remove.
31071         * config/rx/rx.h (rx_float_compare_mode): Remove.
31072         * config/rx/rx.md (cstoresi4): Split after reload.
31073         (*sccc): New pattern.
31074
31075         * config/rx/predicates.md (label_ref_operand): New.
31076         (rx_z_comparison_operator): New.
31077         (rx_zs_comparison_operator): New.
31078         (rx_fp_comparison_operator): New.
31079         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
31080         Validate that the flags are set properly for the comparison.
31081         (rx_gen_cond_branch_template): Remove.
31082         (rx_cc_modes_compatible): Remove.
31083         (mode_from_flags): New.
31084         (flags_from_code): Rename from flags_needed_for_conditional.
31085         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
31086         (rx_select_cc_mode): Likewise.
31087         (rx_split_fp_compare): New.
31088         (rx_split_cbranch): New.
31089         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
31090         (*cbranchsi4): Use match_operator and rx_split_cbranch.
31091         (*cbranchsf4): Similarly.
31092         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
31093         match_operator and rx_split_cbranch.
31094         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
31095         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
31096         (*cmpsi): Rename from cmpsi.
31097         (*tstsi): Rename from tstsi.
31098         (*cmpsf): Rename from cmpsf; use CC_Fmode.
31099         (*conditional_branch): Rename from conditional_branch.
31100         (*reveresed_conditional_branch): Remove.
31101         (b<code>): Remove expander.
31102         * config/rx/rx-protos.h: Update.
31103
31104         * config/rx/rx.c (rx_compare_redundant): Remove.
31105         * config/rx/rx.md (cmpsi): Don't use it.
31106         * config/rx/rx-protos.h: Update.
31107
31108         * config/rx/rx-modes.def (CC_F): New mode.
31109         * config/rx/rx.c (rx_select_cc_mode): New.
31110         * config/rx/rx.h (SELECT_CC_MODE): Use it.
31111         * config/rx/rx-protos.h: Update.
31112
31113 2011-01-17  Richard Henderson  <rth@redhat.com>
31114
31115         * except.c (dump_eh_tree): Fix stray ; after for statement.
31116
31117 2011-01-17  Richard Guenther  <rguenther@suse.de>
31118
31119         PR tree-optimization/47313
31120         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
31121         handling before copying the body.  Properly deal with
31122         by-reference result in SSA form.
31123
31124 2011-01-17  Ian Lance Taylor  <iant@google.com>
31125
31126         PR target/47219
31127         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
31128         (struct_value_alias_set): Don't define.
31129         (sparc_option_override): Don't set sparc_sr_alias_set and
31130         struct_value_alias_set.
31131         (save_or_restore_regs): Use gen_frame_mem rather than calling
31132         set_mem_alias_set.
31133         (sparc_struct_value_rtx): Likewise.
31134
31135 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
31136
31137         PR target/47318
31138         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
31139         (_mm_maskstore_pd): Likewise.
31140         (_mm_maskload_ps): Likewise.
31141         (_mm_maskstore_ps): Likewise.
31142         (_mm256_maskload_pd): Change mask to __m256i.
31143         (_mm256_maskstore_pd): Likewise.
31144         (_mm256_maskload_ps): Likewise.
31145         (_mm256_maskstore_ps): Likewise.
31146
31147         * config/i386/i386-builtin-types.def: Updated.
31148         (ix86_expand_special_args_builtin): Likewise.
31149
31150         * config/i386/i386.c (bdesc_special_args): Update
31151         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
31152         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
31153         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
31154         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
31155
31156         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
31157         Use <avxpermvecmode> on mask register.
31158         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
31159
31160 2011-01-17  Olivier Hainque  <hainque@adacore.com>
31161             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
31162             Eric Botcazou  <ebotcazou@adacore.com>
31163
31164         PR target/46655
31165         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
31166         if <= USHRT_MAX in 32-bit mode.
31167
31168 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31169
31170         * doc/install.texi (Configuration, Specific): Wrap long
31171         lines in examples.  Allow line wrapping in long options
31172         and URLs where beneficial for PDF output.
31173
31174 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
31175
31176         * config/mips/mips.c (mips_classify_symbol): Don't return
31177         SYMBOL_PC_RELATIVE for nonlocal labels.
31178
31179 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
31180
31181         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
31182
31183 2011-01-15  Jan Hubicka  <jh@suse.cz>
31184
31185         PR tree-optimization/47276
31186         * ipa.c (function_and_variable_visibility): Do not try to mark alias
31187         declarations as needed.
31188
31189 2011-01-15  Martin Jambor  <mjambor@suse.cz>
31190
31191         * common.opt (fdevirtualize): New flag.
31192         * doc/invoke.texi (Option Summary): Document it.
31193         * opts.c (default_options_table): Add devirtualize flag.
31194         * ipa-prop.c (detect_type_change): Return immediately if
31195         devirtualize flag is not set.
31196         (detect_type_change_ssa): Likewise.
31197         (compute_known_type_jump_func): Likewise.
31198         (ipa_analyze_virtual_call_uses): Likewise.
31199
31200 2011-01-14  Martin Jambor  <mjambor@suse.cz>
31201
31202         PR tree-optimization/45934
31203         PR tree-optimization/46302
31204         * ipa-prop.c (type_change_info): New type.
31205         (stmt_may_be_vtbl_ptr_store): New function.
31206         (check_stmt_for_type_change): Likewise.
31207         (detect_type_change): Likewise.
31208         (detect_type_change_ssa): Likewise.
31209         (compute_complex_assign_jump_func): Check for dynamic type change.
31210         (compute_complex_ancestor_jump_func): Likewise.
31211         (compute_known_type_jump_func): Likewise.
31212         (compute_scalar_jump_functions): Likewise.
31213         (ipa_analyze_virtual_call_uses): Likewise.
31214         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
31215
31216 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31217
31218         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
31219         * config/i386/i386.opt (msse5): New Alias.
31220
31221 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31222
31223         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
31224         * config/sparc/linux64.h (CC1_SPEC): Likewise.
31225         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
31226         * config/sparc/sparc.h (CC1_SPEC): Likewise.
31227
31228 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31229
31230         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
31231         -mcpu options.
31232         * config/sparc/linux64.h (CC1_SPEC): Likewise.
31233         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
31234         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
31235         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
31236         Likewise.
31237         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
31238
31239 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31240
31241         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
31242
31243 2011-01-14  Mike Stump  <mikestump@comcast.net>
31244
31245         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
31246         * config/fr30/fr30.md: Likweise
31247         (movsi_push): Likewise.
31248         (movsi_pop): Likewise.
31249         (enter_func): Likewise.
31250         * config/moxie/moxie.md (movsi_push): Likewise.
31251         (movsi_pop): Likewise.
31252
31253 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31254
31255         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
31256         %{no_archive} %{exact_version}.
31257         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
31258         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
31259         %{no_archive} %{exact_version}.
31260         * config/mips/openbsd.h (LINK_SPEC): Likewise.
31261         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
31262         * config/mips/vxworks.h: Likewise.
31263
31264 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31265
31266         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
31267
31268 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31269
31270         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
31271         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
31272
31273 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31274
31275         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
31276         -nodefaultlib.
31277
31278 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31279
31280         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
31281         for mcpu not cpu.
31282         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
31283         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
31284         not cpu.
31285         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
31286         Don't handle -shlib.
31287
31288 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31289
31290         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
31291         (CC1_SPEC): Don't handle -profile.
31292
31293 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31294
31295         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
31296         * config/mips/mips.h (CC1_SPEC): Likewise.
31297
31298 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31299
31300         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
31301         * config/mips/mips.h (CC1_SPEC): Likewise.
31302
31303 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31304
31305         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
31306         * config/m32r/linux.h (LINK_SPEC): Likewise.
31307         * config/mips/linux.h (LINK_SPEC): Likewise.
31308         * config/mips/linux64.h (LINK_SPEC): Likewise.
31309         * config/sparc/linux.h (LINK_SPEC): Likewise.
31310         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
31311         LINK_SPEC): Likewise.
31312         * config/xtensa/linux.h (LINK_SPEC): Likewise.
31313
31314 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31315
31316         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
31317         %{version:-v}.
31318         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
31319
31320 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31321
31322         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
31323         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
31324
31325 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
31326
31327         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
31328
31329 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31330
31331         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
31332         supports -Bstatic/-Bdynamic.
31333         * configure: Regenerate.
31334
31335 2011-01-14  Jan Hubicka  <jh@suse.cz>
31336             Jack Howarth  <howarth@bromo.med.uc.edu>
31337
31338         PR target/46037
31339         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
31340         when checking debug_info_level. Test write_symbols instead of
31341         debug_hooks->var_location when setting flag_var_tracking_uninit.
31342
31343 2011-01-14  Richard Guenther  <rguenther@suse.de>
31344
31345         PR tree-optimization/47179
31346         * target.def (ref_may_alias_errno): New target hook.
31347         * targhooks.h (default_ref_may_alias_errno): Declare.
31348         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
31349         (default_ref_may_alias_errno): New function.
31350         * target.h (struct ao_ref_s): Declare.
31351         * tree-ssa-alias.c: Include target.h.
31352         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
31353         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
31354         (targhooks.o): Likewise.
31355         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
31356         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
31357
31358 2011-01-14  Richard Guenther  <rguenther@suse.de>
31359
31360         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
31361
31362 2011-01-14  Richard Guenther  <rguenther@suse.de>
31363
31364         PR tree-optimization/47280
31365         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
31366         return CFG changes.
31367         (tree_ssa_forward_propagate_single_use_vars): Deal with
31368         CFG changes from associate_plusminus.
31369
31370 2011-01-14  Richard Guenther  <rguenther@suse.de>
31371
31372         PR middle-end/47281
31373         Revert
31374         2011-01-11  Richard Guenther  <rguenther@suse.de>
31375
31376         PR tree-optimization/46076
31377         * tree-ssa.c (useless_type_conversion_p): Conversions from
31378         unprototyped to empty argument list function types are useless.
31379
31380 2011-01-14  Richard Guenther  <rguenther@suse.de>
31381
31382         PR tree-optimization/47286
31383         * tree-ssa-structalias.c (new_var_info): Register variables are global.
31384
31385 2011-01-14  Martin Jambor  <mjambor@suse.cz>
31386
31387         PR middle-end/46823
31388         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
31389
31390 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
31391
31392         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
31393         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
31394         * config/xtensa/xtensa.c (xtensa_libcall_value,
31395         xtensa_function_value_regno_p): New functions.
31396         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
31397
31398 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
31399
31400         PR c++/47213
31401         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
31402         PE specific hook.
31403         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
31404         New function prototype.
31405         * config/i386/winnt.c (i386_pe_assemble_visibility):
31406         Warn only if attribute was specified by user.
31407
31408 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
31409
31410         PR target/47251
31411         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
31412         floating point.
31413         (floatunsdidf2_fcfidu): Ditto.
31414
31415 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31416
31417         * config/s390/s390.c (print_operand_address): Replace 'error' with
31418         'output_operand_lossage'.
31419         (print_operand): Likewise.
31420
31421 2011-01-13  Jeff Law  <law@redhat.com>
31422
31423         PR rtl-optimization/39077
31424         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
31425         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
31426         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
31427         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
31428         * gcse.c (prune_insertions_deletions): New function.
31429         (compute_pre_data): Use it.
31430
31431 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
31432
31433         PR debug/PR46973
31434         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
31435         static function.
31436         (prune_unused_types_mark): Use it.
31437
31438 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
31439
31440         PR rtl-optimization/45352
31441         * sel-sched.c: Update copyright years.
31442         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
31443         in the advancing loop when we have issued issue_rate insns.
31444
31445 2011-01-12  Richard Henderson  <rth@redhat.com>
31446
31447         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
31448         (TARGET_MD_ASM_CLOBBERS): New.
31449
31450         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
31451         (TARGET_DELEGITIMIZE_ADDRESS): New.
31452
31453         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
31454         (clzsi2, *bsch): New patterns.
31455
31456         * config/mn10300/mn10300.md (INT): New mode iterator.
31457         (*mov<INT>_clr): New pattern, and peep2 to generate it.
31458
31459         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
31460         flag_split_wide_types.
31461
31462         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
31463         (mn10300_trampoline_init): Rewrite without a template, an immediate
31464         load and a direct branch.
31465         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
31466
31467 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
31468
31469         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31470         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
31471         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
31472         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31473
31474 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
31475
31476         PR debug/47209
31477         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
31478         of type.
31479
31480 2011-01-12  Jan Hubicka  <jh@suse.cz>
31481
31482         PR driver/47244
31483         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
31484         (PLUGIN_COND_CLOSE): New macro.
31485         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
31486
31487 2011-01-12  Richard Guenther  <rguenther@suse.de>
31488
31489         PR lto/47259
31490         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
31491         register variables in a MEM_REF.
31492
31493 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
31494
31495         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
31496         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
31497         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
31498         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
31499         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
31500         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
31501         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
31502         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
31503         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
31504         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
31505         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
31506         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
31507         * config/gnu-user.h: New.  Copied from linux.h.
31508         (LINUX_TARGET_STARTFILE_SPEC): Rename to
31509         GNU_USER_TARGET_STARTFILE_SPEC.
31510         (LINUX_TARGET_ENDFILE_SPEC): Rename to
31511         GNU_USER_TARGET_ENDFILE_SPEC.
31512         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
31513         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
31514         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
31515         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
31516         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
31517         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
31518         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
31519         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
31520         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
31521         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
31522         * config/arm/linux-eabi.h (CC1_SPEC): Use
31523         GNU_USER_TARGET_CC1_SPEC.
31524         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
31525         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
31526         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
31527         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
31528         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
31529         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
31530         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
31531         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
31532
31533 2011-01-12  Richard Guenther  <rguenther@suse.de>
31534
31535         PR other/46946
31536         * doc/invoke.texi (ffast-math): Document it is turned on
31537         with -Ofast.
31538
31539 2011-01-12  Jan Hubicka  <jh@suse.cz>
31540
31541         PR tree-optimization/47233
31542         * opts.c (common_handle_option): Disable ipa-reference with profile
31543         feedback.
31544
31545 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
31546
31547         * c-parser.c (c_parser_objc_at_property_declaration): Improved
31548         error message.
31549
31550 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
31551
31552         * c-parser.c (c_lex_one_token): Updated and reindented some
31553         comments.  No changes in code.
31554
31555 2011-01-11  Ian Lance Taylor  <iant@google.com>
31556
31557         * godump.c (go_output_var): Don't output the variable if there is
31558         already a type with the same name.
31559
31560 2011-01-11  Ian Lance Taylor  <iant@google.com>
31561
31562         * godump.c (go_format_type): Don't generate float80.
31563
31564 2011-01-11  Richard Henderson  <rth@redhat.com>
31565
31566         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
31567         declaration.  Rewrite for both speed and size.
31568         (mn10300_address_cost_1): Remove.
31569         (mn10300_register_move_cost): New.
31570         (mn10300_memory_move_cost): New.
31571         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
31572         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
31573         extensions, shifts, BSWAP, CLZ.
31574         (mn10300_wide_const_load_uses_clr): Remove.
31575         (TARGET_REGISTER_MOVE_COST): New.
31576         (TARGET_MEMORY_MOVE_COST): New.
31577         * config/mn10300/mn10300-protos.h: Update.
31578         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
31579
31580         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
31581         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
31582         * config/mn10300/mn10300-protos.h: Update.
31583         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
31584         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
31585         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
31586         (*test_int_bitfield, *test_byte_bitfield): Remove.
31587         (*bit_test, *subreg_bit_test): Remove.
31588         * config/mn10300/predicates.md (const_8bit_operand): Remove.
31589
31590         * config/mn10300/constraints.md ("c"): Rename from "A".
31591         ("A", "D"): New constraint letters.
31592         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
31593         (fmssf4, fnmasf4, fnmssf4): Likewise.
31594
31595         * config/mn10300/mn10300.md (isa): New attribute.
31596         (enabled): New attribute.
31597
31598         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
31599         (abssf2, negsf2): Define only for hardware fp.
31600         (sqrtsf2): Reformat.
31601         (addsf3, subsf3, mulsf3): Merge expander and insn.
31602
31603         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
31604         (DEBUGGER_AUTO_OFFSET): Remove.
31605         (DEBUGGER_ARG_OFFSET): Remove.
31606
31607         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
31608         Emit register stores with the same offsets as the hardware.
31609         (mn10300_store_multiple_operation): Don't check that the register
31610         save offsets are monotonic.
31611         * config/mn10300/mn10300-protos.h: Update.
31612
31613         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
31614
31615         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
31616         in terms of the value on the stack, not the MDR register.
31617
31618 2011-01-11  Jan Hubicka  <jh@suse.cz>
31619
31620         PR lto/45721
31621         PR lto/45375
31622         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
31623         (symbol_alias_set_destroy, symbol_alias_set_contains,
31624         propagate_aliases_backward): Declare.
31625         * lto-streamer-out.c (struct sets): New sturcture.
31626         (trivally_defined_alias): New function.
31627         (output_alias_pair_p): Rewrite.
31628         (output_unreferenced_globals): Fix output of alias pairs.
31629         (produce_symtab): Likewise.
31630         * ipa.c (function_and_variable_visibility): Set weak alias destination
31631         as needed in lto.
31632         * varasm.c (symbol_alias_set_t): Remove.
31633         (symbol_alias_set_destroy): Export.
31634         (propagate_aliases_forward, propagate_aliases_backward): New functions
31635         based on ...
31636         (compute_visible_aliases): ... this one; remove.
31637         (trivially_visible_alias): New
31638         (trivially_defined_alias): New.
31639         (remove_unreachable_alias_pairs): Rewrite.
31640         (finish_aliases_1): Reorganize code checking if alias is defined.
31641         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
31642         in LTO mode.
31643
31644 2011-01-11  Richard Guenther  <rguenther@suse.de>
31645
31646         PR tree-optimization/46076
31647         * tree-ssa.c (useless_type_conversion_p): Conversions from
31648         unprototyped to empty argument list function types are useless.
31649
31650 2011-01-11  Richard Guenther  <rguenther@suse.de>
31651
31652         PR middle-end/45235
31653         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
31654         volatile MEMs as MEM_READONLY_P.
31655
31656 2011-01-11  Richard Guenther  <rguenther@suse.de>
31657
31658         PR tree-optimization/47239
31659         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
31660
31661 2011-01-11  Jeff Law  <law@redhat.com>
31662
31663         PR tree-optimization/47086
31664         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
31665         IVs from statements that might throw.
31666
31667 2011-01-10  Jan Hubicka  <jh@suse.cz>
31668
31669         PR lto/45375
31670         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
31671
31672 2011-01-10  Jan Hubicka  <jh@suse.cz>
31673
31674         PR lto/45375
31675         * profile.c (read_profile_edge_counts): Ignore profile inconistency
31676         when correcting profile.
31677
31678 2011-01-10  Jan Hubicka  <jh@suse.cz>
31679
31680         PR lto/46083
31681         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
31682         DECL_FINI_PRIORITY.
31683         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
31684         Restore DECL_FINI_PRIORITY.
31685
31686 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31687
31688         * doc/gimple.texi: Fix quoting of multi-word return values in
31689         @deftypefn statements.  Ensure presence of return value.  Wrap
31690         overlong @deftypefn lines.
31691         (is_gimple_operand, is_gimple_min_invariant_address): Remove
31692         descriptions of removed functions.
31693         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
31694         of multi-word return value in @deftypefn statement.
31695
31696 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31697
31698         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
31699         (Conditional Expressions, Logical Operators)
31700         (Statement and operand traversals): Do not indent smallexample
31701         code.  Fix duplicate function argument in example.
31702
31703 2011-01-10  Jeff Law  <law@redhat.com>
31704
31705         PR tree-optimization/47141
31706         * ipa-split.c (split_function): Handle case where we are
31707         returning a value and the return block has a virtual operand phi.
31708
31709 2011-01-10  Jan Hubicka  <jh@suse.cz>
31710
31711         PR tree-optimization/47234
31712         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
31713         (pass_feedback_split_functions): Declare.
31714         * passes.c (init_optimization_passes): Add ipa-split as subpass of
31715         tree-profile.
31716         * ipa-split.c (gate_split_functions): Update comments; disable
31717         split-functions for profile_arc_flag and branch_probabilities.
31718         (gate_feedback_split_functions): New function.
31719         (execute_feedback_split_functions): New function.
31720         (pass_feedback_split_functions): New global var.
31721
31722 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
31723
31724         PR lto/46760
31725         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
31726         calling gimple_call_set_cannot_inline.
31727
31728 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
31729
31730         * config/darwin-sections.def: Remove unused section.
31731
31732 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
31733
31734         PR c++/47218
31735         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
31736
31737 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
31738
31739         PR objc/47232
31740         * c-parser.c (c_parser_declaration_or_fndef): Improved
31741         error message.
31742
31743 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
31744
31745         * config/i386/winnt.c (i386_pe_start_function): Make sure
31746         to switch back to function's section.
31747
31748 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
31749
31750         PR gcc/46902
31751         PR testsuite/46912
31752         * plugin.c: Move include of dlfcn.h from here...
31753         * system.h: ... to here.
31754
31755 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31756
31757         * doc/cpp.texi (C++ Named Operators): Fix markup for header
31758         file name.
31759         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
31760         two extra empty pages in PDF output.
31761
31762 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
31763
31764         PR objc/47078
31765         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
31766         for error recovery purposes behave as if it was not specified so
31767         that the default type is usd.
31768
31769 2011-01-07  Jan Hubicka  <jh@suse.cz>
31770
31771         PR tree-optmization/46469
31772         * ipa.c (function_and_variable_visibility): Clear needed flags on
31773         nodes with external decls; handle weakrefs merging correctly.
31774
31775 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
31776
31777         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
31778         not false.
31779
31780 2011-01-07  Jan Hubicka  <jh@suse.cz>
31781
31782         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
31783         and no longer claim that gold is required for linker plugin.
31784         * configure: Regenerate.
31785         * gcc.c (PLUGIN_COND): New macro.
31786         (LINK_COMMAND_SPEC): Use it.
31787         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
31788         * config.in (HAVE_LTO_PLUGIN): New.
31789         * configure.ac (--with-lto-plugin): New parameter; autodetect
31790         HAVE_LTO_PLUGIN.
31791
31792 2011-01-07  Jan Hubicka  <jh@suse.cz>
31793
31794         PR tree-optimization/46367
31795         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
31796         when we can update original.
31797         (cgraph_mark_inline_edge): Sanity check.
31798         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
31799
31800 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31801
31802         * config/spu/spu.h (ASM_COMMENT_START): Define.
31803
31804 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
31805
31806         PR driver/42445
31807         * gcc.c (%>S): New.
31808         (SWITCH_KEEP_FOR_GCC): Likewise.
31809         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
31810         (do_spec_1): Handle "%>".
31811
31812         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
31813
31814 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
31815
31816         PR target/47201
31817         * config/i386/i386.c (ix86_delegitimize_address): If
31818         simplify_gen_subreg fails, return orig_x.
31819
31820         PR bootstrap/47187
31821         * value-prof.c (gimple_stringop_fixed_value): Handle
31822         lhs of the call properly.
31823
31824 2011-01-07  Jan Hubicka  <jh@suse.cz>
31825
31826         PR lto/45375
31827         * lto-opt.c (lto_reissue_options): Set flag_shlib.
31828
31829 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
31830
31831         * target.def (function_switched_text_sections): New hook.
31832         * doc/tm.texi: Regenerated.
31833         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
31834         * final.c (default_function_switched_text_sections): New.
31835         (final_scan_insn): Call function_switched_text_sections when a
31836         mid-function section change occurs.
31837         * output.h (default_function_switched_text_sections): Declare.
31838         * config/darwin-protos.h (darwin_function_switched_text_sections):
31839         Likewise.
31840         * config/darwin.c (darwin_function_switched_text_sections): New.
31841         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
31842
31843 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
31844
31845         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
31846         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
31847         the secondary code fragment when outputting for DWARF == 2.
31848
31849 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
31850
31851         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
31852         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
31853         Remove.
31854         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
31855         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
31856
31857 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
31858
31859         PR debug/46704
31860         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
31861         when it is not empty.
31862
31863 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
31864
31865         Bobcat Enablement
31866         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
31867         (case ${target}): Add btver1.
31868         * config/i386/driver-i386.c (host_detect_local_cpu): Let
31869         -march=native recognize btver1 processors.
31870         * config/i386/i386-c.c (ix86_target_macros_internal): Add
31871         btver1 def_and_undef
31872         * config/i386/i386.c (struct processor_costs btver1_cost): New
31873         btver1 cost table.
31874         (m_BTVER1): New definition.
31875         (m_AMD_MULTIPLE): Includes m_BTVER1.
31876         (initial_ix86_tune_features): Add btver1 tune.
31877         (processor_target_table): Add btver1 entry.
31878         (static const char *const cpu_names): Add btver1 entry.
31879         (software_prefetching_beneficial_p): Add btver1.
31880         (ix86_option_override_internal): Add btver1 instruction sets.
31881         (ix86_issue_rate): Add btver1.
31882         (ix86_adjust_cost): Add btver1.
31883         * config/i386/i386.h (TARGET_BTVER1): New definition.
31884         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
31885         (enum processor_type): Add PROCESSOR_BTVER1.
31886         * config/i386/i386.md (define_attr "cpu"): Add btver1.
31887
31888 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31889
31890         PR target/43309
31891         * config/i386/i386.c (legitimize_tls_address)
31892         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
31893         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
31894         (tls_initial_exec_64_sun): New pattern.
31895
31896 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
31897
31898         * doc/invoke.texi (Overall Options): Improve wording and markup
31899         of the description of -wrapper.
31900
31901 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
31902
31903         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
31904         rdynamic, threads): New Driver options.
31905
31906 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31907
31908         PR target/38118
31909         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
31910         if coming from .tdata.
31911         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
31912
31913 2011-01-06  Jan Hubicka  <jh@suse.cz>
31914
31915         PR lto/47188
31916         * collect2.c (main): Do not enable LTOmode when plugin is active.
31917
31918 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31919
31920         PR other/45915
31921         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
31922         --version output if supported.
31923         * configure: Regenerate.
31924
31925 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
31926
31927         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
31928         Driver options.
31929
31930 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
31931
31932         PR c/47150
31933         * c-convert.c (convert): When converting a complex expression
31934         other than COMPLEX_EXPR to a different complex type, ensure
31935         c_save_expr is called instead of save_expr, unless in_late_binary_op.
31936         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
31937         when converting COMPLEX_TYPE.
31938
31939 2011-01-06  Ira Rosen  <irar@il.ibm.com>
31940
31941         PR tree-optimization/47139
31942         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
31943         only the last reduction value is used outside the loop.  Update
31944         documentation.
31945
31946 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
31947
31948         * config/rtems.opt: New.
31949         * config.gcc (*-*-rtems*): Use rtems.opt.
31950
31951 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
31952
31953         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
31954         processors do not support 3DNow instructions.
31955
31956 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31957
31958         * config/spu/spu.c (spu_option_override): Set parameter
31959         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
31960
31961 2011-01-05  Jan Hubicka  <jh@suse.cz>
31962
31963         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
31964         at the command line.
31965
31966 2011-01-05  Martin Jambor  <mjambor@suse.cz>
31967
31968         PR lto/47162
31969         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
31970         deltas on streamed outgoing edges.
31971         (output_node_opt_summary): Output info for outgoing edges only when
31972         the node is in new parameter set.
31973         (output_cgraph_opt_summary): New parameter set, passed to the two
31974         aforementioned functions.  Update its forward declaration and its
31975         callee too.
31976
31977 2011-01-05  Tom Tromey  <tromey@redhat.com>
31978
31979         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
31980         operator to c_finish_omp_atomic.
31981         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
31982         (build_unary_op): Update.
31983         (build_modify_expr): Update.
31984         (build_asm_expr): Update.
31985
31986 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31987
31988         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
31989         newly inserted insns.
31990         (pad_bb): Likewise.
31991         (spu_emit_branch_hint): Likewise.
31992         (insert_hbrp_for_ilb_runout): Likewise.
31993         (spu_machine_dependent_reorg): Call df_finish_pass after
31994         schedule_insns returns.
31995
31996 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31997
31998         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
31999
32000 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
32001
32002         PR tree-optimization/47005
32003         * tree-sra.c (struct access): Add 'non_addressable' bit.
32004         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
32005         (decide_one_param_reduction): Return 0 if the parameter is passed by
32006         reference and one of the accesses in the group is non_addressable.
32007
32008 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
32009
32010         PR tree-optimization/47056
32011         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
32012         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
32013         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
32014
32015 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
32016
32017         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
32018         initializer.  Skip view conversions from aggregate types.
32019
32020 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
32021
32022         PR bootstrap/47055
32023         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
32024
32025 2011-01-04  Philipp Thomas  <pth@suse.de>
32026
32027         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
32028         obvious typo.
32029
32030 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32031
32032         * function.c (thread_prologue_and_epilogue_insns): Do not crash
32033         on empty epilogue sequences.
32034
32035 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
32036
32037         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
32038         non-static): New Driver options.
32039
32040 2011-01-04  Jie Zhang  <jie@codesourcery.com>
32041
32042         PR driver/47137
32043         * gcc.c (default_compilers[]): Set combinable field to 0
32044         for all assembly languages.
32045
32046 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
32047
32048         * config/mips/loongson3a.md: New file.
32049         * config/mips/mips.md: Include loongson3a.md.
32050         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
32051         TUNE_LOONGSON_3A.
32052
32053 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
32054
32055         PR middle-end/47017
32056         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
32057         instead of convert_memory_address_addr_space on the base expression.
32058
32059 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32060
32061         * config/spu/spu.c (spu_option_override): Update error text
32062         for bad -march= / -mtune= values.
32063
32064 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32065
32066         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
32067         if branch-hint optimization will be performed.
32068
32069 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
32070
32071         PR tree-optimization/47148
32072         * ipa-split.c (split_function): Convert arguments to
32073         DECL_ARG_TYPE if possible.
32074
32075         PR tree-optimization/47155
32076         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
32077         when computing uns.
32078
32079         PR rtl-optimization/47157
32080         * combine.c (try_combine): If undobuf.other_insn becomes
32081         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
32082         and set *new_direct_jump_p too.
32083
32084 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
32085
32086         PR tree-optimization/47021
32087         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
32088
32089 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
32090
32091         * gcc.c (process_command): Update copyright notice dates.
32092         * gcov.c (print_version): Likewise.
32093         * gcov-dump.c (print_version): Likewise.
32094         * mips-tfile.c (main): Likewise.
32095         * mips-tdump.c (main): Likewise.
32096
32097 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32098
32099         PR tree-optimization/46801
32100         * tree-sra.c (type_internals_preclude_sra_p): Check whether
32101         aggregate fields start at byte boundary instead of the bit-field flag.
32102
32103 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
32104
32105         PR driver/47137
32106         * gcc.c (main): Revert revision 168407.
32107
32108 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32109
32110         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
32111
32112 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32113
32114         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
32115         vector optab to expand vector/scalar shift, update gimple to vector.
32116
32117 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32118
32119         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
32120         a thunk.
32121
32122 2011-01-03  Martin Jambor  <mjambor@suse.cz>
32123
32124         PR tree-optimization/46984
32125         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
32126         HOST_WIDE_INT.
32127         (cgraph_create_indirect_edge): Fixed line length.
32128         (cgraph_indirect_call_info): Declare.
32129         (cgraph_make_edge_direct) Update declaration.
32130         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
32131         (cgraph_create_indirect_edge): Use it.
32132         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
32133         callees.
32134         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
32135         the new thunk_delta representation.
32136         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
32137         HOST_WIDE_INT.
32138         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
32139         (ipa_read_indirect_edge_info): Likewise.
32140         * lto-cgraph.c (output_edge_opt_summary): New function.
32141         (output_node_opt_summary): Call it on all outgoing edges.
32142         (input_edge_opt_summary): New function.
32143         (input_node_opt_summary): Call it on all outgoing edges.
32144
32145 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
32146
32147         PR driver/47137
32148         * gcc.c (main): Don't check have_o when settting combine_inputs.
32149
32150 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
32151
32152         * regrename.c: Add general comment describing the pass.
32153         (struct du_head): Remove 'length' field.
32154         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
32155         (regrename_optimize): Do not sort chains.  Rework comments, add others.
32156         Force renaming to the preferred class (if any) in the first pass and do
32157         not consider registers that belong to it in the second pass.
32158         (create_new_chain): Do not set 'length' field.
32159         (scan_rtx_reg): Likewise.
32160
32161 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
32162
32163         PR tree-optimization/47140
32164         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
32165         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
32166         to bit_value_binop.
32167
32168         PR rtl-optimization/47028
32169         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
32170         parm_birth_insn instead of at the beginning of first bb.
32171
32172 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
32173
32174         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
32175         Remove the word "see" before "@pxref".
32176         * doc/rtl.texi: Remove the word "see" before "@pxref".
32177
32178 2011-01-01  Jan Hubicka  <jh@suse.cz>
32179
32180         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
32181         memory.
32182
32183 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
32184
32185         PR target/38662
32186         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
32187
32188 \f
32189 Copyright (C) 2011 Free Software Foundation, Inc.
32190
32191 Copying and distribution of this file, with or without modification,
32192 are permitted in any medium without royalty provided the copyright
32193 notice and this notice are preserved.